hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(83,0,38)

statement ok
INSERT INTO tab0 VALUES(26,0,79)

statement ok
INSERT INTO tab0 VALUES(43,81,24)

statement ok
INSERT INTO tab1 VALUES(22,6,8)

statement ok
INSERT INTO tab1 VALUES(28,57,45)

statement ok
INSERT INTO tab1 VALUES(82,44,71)

statement ok
INSERT INTO tab2 VALUES(15,61,87)

statement ok
INSERT INTO tab2 VALUES(91,59,79)

statement ok
INSERT INTO tab2 VALUES(92,41,58)

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1806
-650
-6806

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0
----
24
38
79

query I rowsort
SELECT ALL + + 33 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
33
33
33

query I rowsort
SELECT ALL - 83 + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
-12
-38
-75

query I rowsort
SELECT ALL - 12 AS col2 FROM tab2 GROUP BY tab2.col2
----
-12
-12
-12

query I rowsort
SELECT + 92 FROM tab0 GROUP BY tab0.col0
----
92
92
92

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0, cor1.col2
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9
SELECT DISTINCT 11 DIV - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT 11 / - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1
0

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT ALL - 54 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
-54
-54

query I rowsort
SELECT 7 * cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
308
399
42

query I rowsort
SELECT 69 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
24
38
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT ALL + CAST( col0 AS SIGNED ) FROM tab1 GROUP BY tab1.col0
----
22
28
82

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL + CAST ( col0 AS INTEGER ) FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT - ( + 51 ) AS col1 FROM tab1 GROUP BY tab1.col1
----
-51
-51
-51

query I rowsort
SELECT - ( 18 ) * - tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
1062
1098
738

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab1 GROUP BY col1
----
56

query I rowsort
SELECT 8 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
8
8
8

query I rowsort
SELECT - 64 * - tab0.col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
0
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 col1 FROM tab2 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT ( 2 ) FROM tab2 GROUP BY tab2.col0
----
2
2
2

query I rowsort
SELECT DISTINCT 30 FROM tab0 cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT + 92 DIV + 53 FROM tab2 GROUP BY tab2.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-24
SELECT + 92 / + 53 FROM tab2 GROUP BY tab2.col2
----
1
1
1

query I rowsort
SELECT + 10 AS col2 FROM tab2 GROUP BY tab2.col0
----
10
10
10

query I rowsort
SELECT col1 - tab1.col1 AS col2 FROM tab1 GROUP BY col1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col0 FROM tab2, tab1 AS cor0 GROUP BY tab2.col1
----
-57
-57
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-28
SELECT CAST( NULL AS SIGNED ) FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-28
SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT - 73 FROM tab1 GROUP BY tab1.col2
----
-73
-73
-73

query I rowsort
SELECT 21 AS col0 FROM tab1 GROUP BY tab1.col0
----
21
21
21

query I rowsort
SELECT DISTINCT - - 59 FROM tab1 GROUP BY tab1.col1
----
59

query I rowsort
SELECT + 74 + + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
112
153
98

query I rowsort
SELECT DISTINCT 66 * + tab0.col0 FROM tab0 GROUP BY tab0.col0
----
1716
2838
5478

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
22
28
82

onlyif mysql # DIV for integer division: 
query I rowsort label-36
SELECT DISTINCT cor0.col0 DIV + 24 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT cor0.col0 / + 24 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
1
3

query I rowsort
SELECT ALL - tab1.col1 + + 19 FROM tab1 GROUP BY tab1.col1
----
-25
-38
13

onlyif mysql # DIV for integer division: 
query I rowsort label-38
SELECT DISTINCT - cor0.col1 DIV + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-3
0

skipif mysql # not compatible
query I rowsort label-38
SELECT DISTINCT - cor0.col1 / + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-3
0

query I rowsort
SELECT ALL + ( + 22 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
22
22
22

query I rowsort
SELECT DISTINCT 94 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1
----
94

query I rowsort
SELECT - 0 * 48 + - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT - 0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
0

query I rowsort
SELECT ALL - + tab1.col1 * tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
-1936
-3249
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT DISTINCT cor0.col2 DIV - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT cor0.col2 / - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1

query I rowsort
SELECT ALL tab1.col0 + 75 * 59 AS col1 FROM tab1 GROUP BY tab1.col0
----
4447
4453
4507

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT 19 DIV cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-46
SELECT 19 / cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT - + tab2.col2 + 10 AS col0 FROM tab2 GROUP BY tab2.col2
----
-48
-69
-77

query I rowsort
SELECT + 96 FROM tab0 cor0 GROUP BY col2
----
96
96
96

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 FROM tab0 cor0 GROUP BY col2
----
1444
576
6241

query I rowsort
SELECT - col0 * 27 AS col1 FROM tab0 GROUP BY tab0.col0
----
-1161
-2241
-702

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1 cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT + 6 * + 6 AS col2 FROM tab0 GROUP BY tab0.col1
----
36
36

query I rowsort
SELECT - + 89 AS col2 FROM tab2 GROUP BY tab2.col1
----
-89
-89
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL + + tab1.col1 DIV + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL + + tab1.col1 / + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
1
1
1

query I rowsort
SELECT + - ( - 10 ) AS col0 FROM tab0 GROUP BY tab0.col2
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT ALL 91 DIV + 41 AS col1 FROM tab2 GROUP BY tab2.col2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL 91 / + 41 AS col1 FROM tab2 GROUP BY tab2.col2
----
2
2
2

query I rowsort
SELECT - tab1.col0 * + 76 FROM tab1 GROUP BY tab1.col0
----
-1672
-2128
-6232

query I rowsort
SELECT 59 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
59
59
59

query I rowsort
SELECT 73 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
73
73
73

query I rowsort
SELECT tab2.col2 - 17 AS col0 FROM tab2 GROUP BY tab2.col2
----
41
62
70

query I rowsort
SELECT DISTINCT - tab0.col2 - + tab0.col2 FROM tab0 GROUP BY tab0.col2
----
-158
-48
-76

query I rowsort
SELECT cor0.col2 * + 89 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
4005
6319
712

query I rowsort
SELECT + - 19 FROM tab0 GROUP BY col0
----
-19
-19
-19

query I rowsort
SELECT ALL - tab1.col0 AS col0 FROM tab1 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT ALL - 85 FROM tab2, tab2 AS cor0 GROUP BY tab2.col0
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT - + COALESCE ( 37, + tab2.col1, - 38 * - tab2.col2 + - 41 * tab2.col0 ) DIV 45 FROM tab2 GROUP BY col0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort label-66
SELECT - + COALESCE ( 37, + tab2.col1, - 38 * - tab2.col2 + - 41 * tab2.col0 ) / 45 FROM tab2 GROUP BY col0
----
0
0
0

query I rowsort
SELECT + 41 FROM tab0 GROUP BY tab0.col0
----
41
41
41

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab1 cor0 GROUP BY col1
----
59

query I rowsort
SELECT ALL + 48 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
48
48
48

query I rowsort
SELECT ALL - tab1.col2 + + tab1.col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL cor0.col2 + col2 FROM tab0 cor0 GROUP BY cor0.col2
----
158
48
76

query I rowsort
SELECT + cor0.col2 * - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1944
0
0

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
153
30
73

query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
-81
0

query I rowsort
SELECT 34 FROM tab2 GROUP BY tab2.col1
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + tab0.col0 col2 FROM tab0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT cor0.col2 * 36 + 55 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
1675
2611
343

onlyif mysql # DIV for integer division: 
query I rowsort label-80
SELECT + 32 DIV + tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-80
SELECT + 32 / + tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
0
0
0

query I rowsort
SELECT DISTINCT 38 FROM tab0 GROUP BY tab0.col1
----
38

query I rowsort
SELECT - 81 + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-66
10
11

query I rowsort
SELECT + cor0.col2 * - col2 + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
-1980
-4970
-56

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, col2
----
58
79
87

query I rowsort
SELECT ALL + tab1.col2 + col2 FROM tab1 GROUP BY tab1.col2
----
142
16
90

onlyif mysql # DIV for integer division: 
query I rowsort label-86
SELECT 59 DIV tab2.col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-86
SELECT 59 / tab2.col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
0
0
1

query I rowsort
SELECT ALL 42 FROM tab0 GROUP BY tab0.col2
----
42
42
42

query I rowsort
SELECT - 71 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
-71
-71
-71

query I rowsort
SELECT + cor0.col2 + + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, col1
----
138
148
99

query I rowsort
SELECT cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col2
----
24
38
79

query I rowsort
SELECT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor1.col2, cor1.col0
----
22
28
82

query I rowsort
SELECT ALL + 52 AS col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
52
52
52

query I rowsort
SELECT DISTINCT tab2.col1 + 54 FROM tab2 GROUP BY tab2.col1
----
113
115
95

query I rowsort
SELECT + 77 FROM tab1 GROUP BY tab1.col1
----
77
77
77

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab1 GROUP BY tab1.col1
----
-54

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT cor1.col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL - - tab0.col0 FROM tab0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT + 52 + + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
134
74
80

query I rowsort
SELECT ALL 19 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
19
19
19

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
-81
0
0

query I rowsort
SELECT + col2 * 50 FROM tab1 GROUP BY tab1.col2
----
2250
3550
400

query I rowsort
SELECT ALL + 6 AS col2 FROM tab2 GROUP BY tab2.col0
----
6
6
6

query I rowsort
SELECT DISTINCT - 67 * tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-1474
-1876
-5494

query I rowsort
SELECT 70 AS col2 FROM tab2 AS cor0 GROUP BY col0
----
70
70
70

query I rowsort
SELECT DISTINCT - 70 * + 45 FROM tab1 GROUP BY tab1.col2
----
-3150

query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 + 93 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-132
-8188
-8371

query I rowsort
SELECT DISTINCT - + ( + 13 ) FROM tab0 GROUP BY col1
----
-13

query I rowsort
SELECT + tab1.col2 * 30 AS col0 FROM tab1 GROUP BY tab1.col2
----
1350
2130
240

query I rowsort
SELECT 6 AS col0 FROM tab1 GROUP BY col2
----
6
6
6

query I rowsort
SELECT 60 FROM tab1 GROUP BY col0
----
60
60
60

query I rowsort
SELECT - + tab2.col1 - - col1 FROM tab2 GROUP BY tab2.col1
----
0
0
0

query I rowsort
SELECT DISTINCT 55 FROM tab1 GROUP BY tab1.col1
----
55

query I rowsort
SELECT - cor0.col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT 38 FROM tab0 AS cor0 GROUP BY cor0.col0
----
38
38
38

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab2 GROUP BY tab2.col2
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col1 FROM tab0 GROUP BY tab0.col2
----
50
50
50

query I rowsort
SELECT + 60 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col2 FROM tab2 cor0 GROUP BY cor0.col0
----
55
55
55

query I rowsort
SELECT cor0.col2 + 68 * cor0.col2 FROM tab2 AS cor0 GROUP BY col2
----
4002
5451
6003

query I rowsort
SELECT ALL - 22 AS col1 FROM tab2 GROUP BY tab2.col1
----
-22
-22
-22

query I rowsort
SELECT DISTINCT - 81 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col1 + cor0.col2 col1 FROM tab0 AS cor0 GROUP BY col1, col2
----
38
6585
79

query I rowsort
SELECT ALL + + 20 AS col1 FROM tab1 GROUP BY tab1.col0
----
20
20
20

query I rowsort
SELECT DISTINCT 70 FROM tab0 GROUP BY tab0.col0
----
70

query I rowsort
SELECT - tab1.col2 * ( 4 * - tab1.col2 ) FROM tab1 GROUP BY col2
----
20164
256
8100

query I rowsort
SELECT ALL - - 0 FROM tab2 GROUP BY tab2.col2
----
0
0
0

query I rowsort
SELECT ALL 79 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
79
79
79

query I rowsort
SELECT + 22 AS col2 FROM tab2 GROUP BY tab2.col1
----
22
22
22

query I rowsort
SELECT 81 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2
----
81
81
81

query I rowsort
SELECT - tab1.col2 * tab1.col2 FROM tab1 GROUP BY tab1.col2 HAVING NOT NULL IS NOT NULL
----
-2025
-5041
-64

query I rowsort
SELECT DISTINCT - 2 + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-2
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT DISTINCT - CAST( + 21 AS SIGNED ) FROM tab1 GROUP BY tab1.col2
----
-21

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT - CAST ( + 21 AS INTEGER ) FROM tab1 GROUP BY tab1.col2
----
-21

query I rowsort
SELECT DISTINCT + - 72 + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
-1
-27
-64

query I rowsort
SELECT + - 54 - + tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
-145
-146
-69

query I rowsort
SELECT + + 60 AS col0 FROM tab2 GROUP BY tab2.col1
----
60
60
60

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-139
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT ALL + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT ALL 51 FROM tab0 AS cor0 GROUP BY col1
----
51
51

query I rowsort
SELECT ALL - col2 * 99 FROM tab1 GROUP BY tab1.col2
----
-4455
-7029
-792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-144
SELECT ALL + CAST( NULL AS SIGNED ) * - 66 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL + CAST ( NULL AS INTEGER ) * - 66 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - 20 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-20
-20
-20

query I rowsort
SELECT - col1 * + tab1.col1 - 26 FROM tab1 GROUP BY tab1.col1
----
-1962
-3275
-62

query I rowsort
SELECT + col0 * tab2.col0 + - tab2.col0 FROM tab2 GROUP BY tab2.col0
----
210
8190
8372

query I rowsort
SELECT - tab0.col0 * + tab0.col0 - 29 FROM tab0 GROUP BY tab0.col0
----
-1878
-6918
-705

query I rowsort
SELECT - cor0.col2 * 6 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-144
-228
-474

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-150
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab2 cor0 GROUP BY cor0.col2, col2
----
58
79
87

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col2, col2
----
58
79
87

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 HAVING NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab2 WHERE ( col2 * - tab2.col2 ) IS NULL GROUP BY tab2.col1
----

query I rowsort
SELECT ALL + 0 AS col1 FROM tab1 GROUP BY tab1.col1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - 88 col2 FROM tab2 AS cor0 GROUP BY cor0.col2, col1, col0
----
5104
6952
7656

query I rowsort
SELECT DISTINCT + cor0.col2 * + 1 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT + 51 - + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-10
-8
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2
2
2

query I rowsort
SELECT ALL - - 29 - - tab1.col0 * col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
513
6753
813

query I rowsort
SELECT + - 27 AS col0 FROM tab2 GROUP BY tab2.col0
----
-27
-27
-27

query I rowsort
SELECT - 55 * - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1430
2365
4565

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
15
91
92

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, col2
----
0
0
81

query I rowsort
SELECT - 97 FROM tab0 GROUP BY col1
----
-97
-97

query I rowsort
SELECT + 0 FROM tab1 GROUP BY col2
----
0
0
0

query I rowsort
SELECT ALL tab2.col2 * tab2.col2 - + 87 FROM tab2 GROUP BY tab2.col2
----
3277
6154
7482

query I rowsort
SELECT DISTINCT tab1.col2 AS col1 FROM tab1 GROUP BY col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
15
15
15

query I rowsort
SELECT 9 AS col1 FROM tab1 GROUP BY tab1.col1
----
9
9
9

query I rowsort
SELECT DISTINCT - 15 FROM tab2 GROUP BY tab2.col1
----
-15

query I rowsort
SELECT DISTINCT 47 * - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1
----
-1927
-2773
-2867

query I rowsort
SELECT + cor0.col0 * + 12 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
312
516
996

query I rowsort
SELECT 3 * + 29 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
87
87
87

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT + - 93 AS col2 FROM tab2 GROUP BY tab2.col2
----
-93
-93
-93

query I rowsort
SELECT 65 AS col2 FROM tab1 GROUP BY tab1.col0
----
65
65
65

query I rowsort
SELECT ALL 12 * - 99 AS col1 FROM tab0 GROUP BY tab0.col2
----
-1188
-1188
-1188

query I rowsort
SELECT ALL 31 FROM tab0 GROUP BY tab0.col2
----
31
31
31

query I rowsort
SELECT ALL - + 60 FROM tab0 GROUP BY tab0.col2
----
-60
-60
-60

query I rowsort
SELECT 14 * + 0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
-22
-28
-82

query I rowsort
SELECT + 88 * + tab2.col1 - ( - tab2.col1 ) AS col2 FROM tab2 GROUP BY tab2.col1
----
3649
5251
5429

query I rowsort
SELECT DISTINCT - 48 FROM tab2 cor0 GROUP BY cor0.col0
----
-48

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab1 GROUP BY tab1.col0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 + - 29 col0 FROM tab2 GROUP BY tab2.col0
----
56

query I rowsort
SELECT ALL col0 + tab1.col0 AS col1 FROM tab1 GROUP BY tab1.col0
----
164
44
56

query I rowsort
SELECT + 10 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
10
10
10

query I rowsort
SELECT ALL - - 15 FROM tab0 GROUP BY tab0.col0
----
15
15
15

query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab2 GROUP BY col2
----
43

query I rowsort
SELECT + 75 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
75
75
75

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT + 4 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
4
4
4

query I rowsort
SELECT 41 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
41
41
41

query I rowsort
SELECT ALL 51 * + 17 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
867
867

query I rowsort
SELECT ALL - 74 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-74
-74
-74

query I rowsort
SELECT DISTINCT ( + tab0.col0 ) AS col1 FROM tab0 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 9 + col1 FROM tab2 GROUP BY tab2.col1
----
32
50
52

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT - tab1.col0 + + tab1.col0 DIV - 71 AS col1 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-83

skipif mysql # not compatible
query I rowsort label-198
SELECT - tab1.col0 + + tab1.col0 / - 71 AS col1 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-83

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col1
----
-81
0
0

query I rowsort
SELECT ALL - + 7 AS col1 FROM tab1 GROUP BY tab1.col1
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - 66 FROM tab0 GROUP BY tab0.col2
----
-66
-66
-66

query I rowsort
SELECT ALL 37 FROM tab2 GROUP BY tab2.col2
----
37
37
37

query I rowsort
SELECT DISTINCT cor0.col1 - 85 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-28
-41
-79

query I rowsort
SELECT ALL - 32 + + 89 FROM tab0 GROUP BY tab0.col2
----
57
57
57

query I rowsort
SELECT + 33 FROM tab0 AS cor0 GROUP BY col1
----
33
33

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT DISTINCT COALESCE ( - 30, - col1 * cor0.col2 + - 56 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-30

query I rowsort
SELECT ALL + 94 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1
----
94
94
94

query I rowsort
SELECT - + 16 * tab2.col2 + 41 FROM tab2 GROUP BY tab2.col2
----
-1223
-1351
-887

query I rowsort
SELECT ALL + 44 - + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-13
0
38

query I rowsort
SELECT DISTINCT - 27 FROM tab0 GROUP BY tab0.col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-212
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - tab1.col2 FROM tab1 GROUP BY tab1.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - tab1.col2 FROM tab1 GROUP BY tab1.col2
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, col2
----
15
91
92

query I rowsort
SELECT ALL NULLIF ( + cor0.col2, cor0.col1 / - cor0.col2 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor1.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + tab2.col2 * tab2.col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
3364
6241
7569

query I rowsort
SELECT 74 FROM tab1 GROUP BY tab1.col1
----
74
74
74

query I rowsort
SELECT DISTINCT + 77 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
77

query I rowsort
SELECT - 19 AS col1 FROM tab0 GROUP BY tab0.col2
----
-19
-19
-19

query I rowsort
SELECT 49 FROM tab2 AS cor0 GROUP BY cor0.col0
----
49
49
49

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab0 GROUP BY tab0.col0
----
15

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col1
----
-44
-57
-6

query I rowsort
SELECT - 42 FROM tab0 cor0 GROUP BY col1
----
-42
-42

query I rowsort
SELECT DISTINCT 80 FROM tab2 GROUP BY tab2.col2
----
80

query I rowsort
SELECT ALL 39 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
39
39
39

query I rowsort
SELECT ALL + tab0.col1 * - tab0.col1 FROM tab0 GROUP BY tab0.col1
----
-6561
0

query I rowsort
SELECT - col0 + + tab1.col0 FROM tab1 GROUP BY tab1.col0 HAVING NOT NULL IS NULL
----

query I rowsort
SELECT + col2 + + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
142
16
90

onlyif mysql # DIV for integer division: 
query I rowsort label-229
SELECT tab2.col1 DIV - tab2.col1 + - tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
-42
-60
-62

skipif mysql # not compatible
query I rowsort label-229
SELECT tab2.col1 / - tab2.col1 + - tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
-42
-60
-62

query I rowsort
SELECT ALL - + 39 * - 79 FROM tab0 GROUP BY tab0.col0
----
3081
3081
3081

query I rowsort
SELECT 4 * - tab1.col0 + - tab1.col0 AS col1 FROM tab1 GROUP BY tab1.col0
----
-110
-140
-410

query I rowsort
SELECT cor0.col1 + + col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
114
12
88

query I rowsort
SELECT + 35 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
35
35
35

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
45
71
8

query I rowsort
SELECT - 83 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-83
-83
-83

query I rowsort
SELECT COALESCE ( cor0.col1, cor0.col1 ) FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
1892
6972
702

query I rowsort
SELECT DISTINCT + tab0.col2 + + COALESCE ( - 84, + col2 ) AS col0 FROM tab0 GROUP BY tab0.col2
----
-46
-5
-60

query I rowsort
SELECT + tab1.col2 - 96 FROM tab1 GROUP BY tab1.col2
----
-25
-51
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-240
SELECT ALL cor0.col1 DIV + 6 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
13

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL cor0.col1 / + 6 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
13

query I rowsort
SELECT + - 23 AS col2 FROM tab2, tab0 AS cor0 GROUP BY tab2.col2
----
-23
-23
-23

query I rowsort
SELECT - 19 + - tab1.col0 AS col1 FROM tab1 GROUP BY col0
----
-101
-41
-47

query I rowsort
SELECT - 95 FROM tab1 GROUP BY tab1.col2
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT - col1 DIV + tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-244
SELECT - col1 / + tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
-1
-1
-1

query I rowsort
SELECT + 39 FROM tab0 GROUP BY tab0.col0
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-246
SELECT + 89 + col2 * - ( + cor0.col1 DIV col1 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
10
2
31

skipif mysql # not compatible
query I rowsort label-246
SELECT + 89 + col2 * - ( + cor0.col1 / col1 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
10
2
31

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col1 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
0
3483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL CASE cor0.col1 WHEN + cor0.col0 THEN cor0.col1 * col0 + + cor0.col1 END col1 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
114
12
88

query I rowsort
SELECT DISTINCT - tab0.col2 * 99 FROM tab0 GROUP BY tab0.col2
----
-2376
-3762
-7821

query I rowsort
SELECT ALL + tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1 HAVING NULL IS NULL
----
44
57
6

query I rowsort
SELECT - cor0.col2 * 38 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1444
-3002
-912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-81
-81
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-254
SELECT + tab0.col2 DIV tab0.col2 FROM tab0 GROUP BY tab0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-254
SELECT + tab0.col2 / tab0.col2 FROM tab0 GROUP BY tab0.col2
----
1
1
1

query I rowsort
SELECT - 20 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1820
-1840
-300

query I rowsort
SELECT ALL 99 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
99
99
99

query I rowsort
SELECT - 61 + 87 FROM tab2 AS cor0 GROUP BY cor0.col1
----
26
26
26

query I rowsort
SELECT - + tab0.col0 + - 61 FROM tab0 GROUP BY col0
----
-104
-144
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 67 col1 FROM tab2 GROUP BY tab2.col2
----
-67
-67
-67

query I rowsort
SELECT + - 33 FROM tab0 GROUP BY tab0.col1
----
-33
-33

query I rowsort
SELECT ALL + - 61 AS col0 FROM tab2 GROUP BY tab2.col2
----
-61
-61
-61

query I rowsort
SELECT ALL - 57 AS col1 FROM tab2 GROUP BY tab2.col2
----
-57
-57
-57

query I rowsort
SELECT tab2.col2 - + ( tab2.col2 ) FROM tab2 GROUP BY col2
----
0
0
0

query I rowsort
SELECT - 86 AS col1 FROM tab0 GROUP BY tab0.col0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 col0 FROM tab2 GROUP BY tab2.col0
----
-2
-2
-2

query I rowsort
SELECT ALL 95 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
95
95
95

onlyif mysql # DIV for integer division: 
query I rowsort label-267
SELECT - + 44 DIV 30 AS col2 FROM tab1 GROUP BY tab1.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-267
SELECT - + 44 / 30 AS col2 FROM tab1 GROUP BY tab1.col1
----
-1
-1
-1

query I rowsort
SELECT 68 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
68
68
68

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
15
91
92

query I rowsort
SELECT ALL + 73 FROM tab0 GROUP BY tab0.col1
----
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
3
3
3

query I rowsort
SELECT ALL - 40 FROM tab2 GROUP BY tab2.col1
----
-40
-40
-40

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col0 + ( + cor0.col0 ) FROM tab0 AS cor0 GROUP BY col0, cor0.col0
----
166
52
86

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
2025
5041
64

query I rowsort
SELECT ALL 33 FROM tab1 AS cor0 GROUP BY col2
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-277
SELECT cor0.col2 + - cor0.col2 DIV cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
57
78
86

skipif mysql # not compatible
query I rowsort label-277
SELECT cor0.col2 + - cor0.col2 / cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
57
78
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
75

query I rowsort
SELECT - col1 + + 89 FROM tab2 GROUP BY col1
----
28
30
48

query I rowsort
SELECT DISTINCT - 49 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-49

query I rowsort
SELECT ALL + - 80 FROM tab0 GROUP BY tab0.col2
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + 10 FROM tab0 GROUP BY col2
----
10

query I rowsort
SELECT - ( 74 ) FROM tab2 GROUP BY tab2.col0
----
-74
-74
-74

query I rowsort
SELECT - tab2.col0 * 63 AS col2 FROM tab2 GROUP BY tab2.col0
----
-5733
-5796
-945

query I rowsort
SELECT ALL tab0.col2 AS col1 FROM tab0 GROUP BY col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 + 78 col0 FROM tab0 GROUP BY tab0.col1
----
159
78

query I rowsort
SELECT ALL tab1.col1 * - 35 - + 69 AS col1 FROM tab1 GROUP BY tab1.col1
----
-1609
-2064
-279

query I rowsort
SELECT ALL 89 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
89
89

query I rowsort
SELECT - tab0.col2 * 26 AS col1 FROM tab0 GROUP BY tab0.col2
----
-2054
-624
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 36 * - 67 + col0 col0 FROM tab0 GROUP BY col0
----
2438
2455
2495

query I rowsort
SELECT DISTINCT - + 76 FROM tab1 GROUP BY tab1.col0
----
-76

query I rowsort
SELECT DISTINCT + - 82 AS col0 FROM tab2 GROUP BY tab2.col2
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col1 FROM tab0 GROUP BY tab0.col2
----
36
36
36

query I rowsort
SELECT - 78 FROM tab1 GROUP BY tab1.col2
----
-78
-78
-78

query I rowsort
SELECT - 51 AS col0 FROM tab2 GROUP BY tab2.col2
----
-51
-51
-51

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab1 GROUP BY tab1.col1
----
-37

query I rowsort
SELECT + + 14 AS col1 FROM tab1 GROUP BY tab1.col1
----
14
14
14

query I rowsort
SELECT 71 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-299
SELECT - CAST( 44 AS SIGNED ) + 81 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-299
SELECT - CAST ( 44 AS INTEGER ) + 81 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
37
37
37

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT 88 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
88
88
88

query I rowsort
SELECT 50 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor0.col2
----
50
50
50

query I rowsort
SELECT ALL - tab1.col0 + + 52 AS col2 FROM tab1 GROUP BY tab1.col0
----
-30
24
30

query I rowsort
SELECT DISTINCT - cor0.col1 + ( cor0.col2 - + cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-81
0

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

query I rowsort
SELECT ALL cor0.col0 * + 43 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
1204
3526
946

query I rowsort
SELECT ALL - cor0.col0 * - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT ALL 70 FROM tab0 GROUP BY tab0.col1
----
70
70

query I rowsort
SELECT ALL - 12 AS col1 FROM tab0 GROUP BY tab0.col1
----
-12
-12

query I rowsort
SELECT + - 15 AS col2 FROM tab0 GROUP BY tab0.col1
----
-15
-15

query I rowsort
SELECT DISTINCT + cor0.col1 + 96 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
102
140
153

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
26
43
83

query I rowsort
SELECT ALL 56 * 42 AS col2 FROM tab1 GROUP BY tab1.col2
----
2352
2352
2352

query I rowsort
SELECT + 32 FROM tab1 cor0 GROUP BY cor0.col0
----
32
32
32

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
0

query I rowsort
SELECT - 92 FROM tab2 GROUP BY tab2.col2
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT - + tab0.col0 + tab0.col0 AS col1 FROM tab0, tab2 AS cor0 GROUP BY tab0.col0
----
0

query I rowsort
SELECT - cor0.col2 * + 53 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1272
-2014
-4187

query I rowsort
SELECT - 25 FROM tab0 GROUP BY tab0.col1
----
-25
-25

query I rowsort
SELECT ALL - tab0.col2 * 3 FROM tab0 GROUP BY tab0.col2
----
-114
-237
-72

query I rowsort
SELECT ALL - 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
-40
-40
-40

query I rowsort
SELECT 79 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
79
79
79

query I rowsort
SELECT + 86 FROM tab2 AS cor0 GROUP BY cor0.col0
----
86
86
86

query I rowsort
SELECT ALL + - tab1.col2 AS col2 FROM tab1 GROUP BY col2
----
-45
-71
-8

query I rowsort
SELECT + 24 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
24
24
24

query I rowsort
SELECT cor0.col0 * + cor0.col0 - - 87 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
571
6811
871

query I rowsort
SELECT + tab2.col0 - + 44 AS col2 FROM tab2 GROUP BY tab2.col0
----
-29
47
48

query I rowsort
SELECT ALL 79 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
79
79
79

query I rowsort
SELECT 4 * - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-104
-172
-332

query I rowsort
SELECT - 27 AS col0 FROM tab0 GROUP BY tab0.col1
----
-27
-27

query I rowsort
SELECT - 79 FROM tab2 GROUP BY tab2.col2
----
-79
-79
-79

query I rowsort
SELECT ALL 70 FROM tab1 AS cor0 GROUP BY col0
----
70
70
70

query I rowsort
SELECT - 46 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-46
-46
-46

query I rowsort
SELECT + tab1.col0 + tab1.col0 AS col2 FROM tab1 GROUP BY tab1.col0
----
164
44
56

query I rowsort
SELECT + 95 AS col1 FROM tab0 GROUP BY tab0.col0
----
95
95
95

query I rowsort
SELECT + col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT + 64 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
64
64
64

query I rowsort
SELECT 68 + - 68 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-29

query I rowsort
SELECT ALL 85 AS col0 FROM tab0 GROUP BY tab0.col0
----
85
85
85

query I rowsort
SELECT ALL 58 AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
58
58
58

query I rowsort
SELECT + - tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

query I rowsort
SELECT ALL 21 AS col2 FROM tab0 GROUP BY tab0.col0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab2 GROUP BY tab2.col0
----
1
1
1

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT + + 10 FROM tab1 GROUP BY tab1.col2
----
10
10
10

query I rowsort
SELECT + tab1.col2 - - tab1.col2 FROM tab1 GROUP BY tab1.col2
----
142
16
90

query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1 GROUP BY tab1.col2 HAVING NULL IS NULL
----
45
71
8

query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2 GROUP BY tab2.col1 HAVING tab2.col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col0 FROM tab1, tab2 AS cor0 GROUP BY tab1.col0
----
-29
-29
-29

query I rowsort
SELECT + cor0.col0 + col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
166
52
86

query I rowsort
SELECT DISTINCT - 11 FROM tab1 GROUP BY tab1.col0
----
-11

query I rowsort
SELECT DISTINCT - + 95 + 57 FROM tab0 GROUP BY col0
----
-38

query I rowsort
SELECT ALL + 80 AS col1 FROM tab1 GROUP BY col0
----
80
80
80

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, col2
----
26
43
83

query I rowsort
SELECT DISTINCT - col0 + + tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
0

query I rowsort
SELECT 96 FROM tab0 AS cor0 GROUP BY col1
----
96
96

query I rowsort
SELECT cor0.col1 * - 43 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, col2
----
-1763
-2537
-2623

query I rowsort
SELECT DISTINCT + tab1.col2 + tab1.col2 FROM tab1 GROUP BY col2
----
142
16
90

query I rowsort
SELECT DISTINCT 95 FROM tab1 AS cor0 GROUP BY col1
----
95

query I rowsort
SELECT + 77 FROM tab0 GROUP BY tab0.col1
----
77
77

query I rowsort
SELECT - 72 AS col2 FROM tab2 GROUP BY tab2.col1
----
-72
-72
-72

query I rowsort
SELECT ALL 28 FROM tab2 GROUP BY tab2.col2
----
28
28
28

query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab0 GROUP BY tab0.col2
----
8

query I rowsort
SELECT DISTINCT + 33 + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
112
120
91

query I rowsort
SELECT + 68 * - tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-2992
-3876
-408

onlyif mysql # DIV for integer division: 
query I rowsort label-369
SELECT DISTINCT + cor0.col0 * - cor0.col1 + + 24 DIV - cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-3772
-5369
-916

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + cor0.col0 * - cor0.col1 + + 24 / - cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-3772
-5369
-916

query I rowsort
SELECT DISTINCT cor0.col0 * NULLIF ( + 12, cor0.col0 ) FROM tab1 AS cor0 GROUP BY col0
----
264
336
984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 75 col0 FROM tab1 GROUP BY tab1.col2
----
-75

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT + 57 FROM tab2 GROUP BY col2
----
57
57
57

query I rowsort
SELECT ALL 4 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
4
4
4

query I rowsort
SELECT + col1 * - col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
-1681
-3481
-3721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 - - tab0.col2 col0 FROM tab0 GROUP BY tab0.col2
----
0
0
0

query I rowsort
SELECT + cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
2565
3124
48

query I rowsort
SELECT ALL cor0.col2 * 64 AS col1 FROM tab2 AS cor0 GROUP BY col2, cor0.col2
----
3712
5056
5568

onlyif mysql # DIV for integer division: 
query I rowsort label-379
SELECT - CASE - 97 WHEN 83 THEN NULL ELSE - col1 DIV cor0.col1 END + 7 FROM tab1 AS cor0 GROUP BY col1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-379
SELECT - CASE - 97 WHEN 83 THEN NULL ELSE - col1 / cor0.col1 END + 7 FROM tab1 AS cor0 GROUP BY col1
----
8
8
8

query I rowsort
SELECT ( - cor0.col1 ) FROM tab1 AS cor0 GROUP BY col1
----
-44
-57
-6

query I rowsort
SELECT ALL - 27 FROM tab2 GROUP BY tab2.col0
----
-27
-27
-27

query I rowsort
SELECT - 69 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col2, cor0.col2
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-383
SELECT ALL + tab2.col2 DIV + 15 AS col1 FROM tab2 GROUP BY tab2.col2
----
3
5
5

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL + tab2.col2 / + 15 AS col1 FROM tab2 GROUP BY tab2.col2
----
3
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 29 col2 FROM tab0 GROUP BY tab0.col0
----
29
29
29

query I rowsort
SELECT ALL ( tab1.col1 ) - tab1.col1 FROM tab1 GROUP BY tab1.col1
----
0
0
0

query I rowsort
SELECT 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
34
34
34

query I rowsort
SELECT - + 35 AS col0 FROM tab2 GROUP BY tab2.col2
----
-35
-35
-35

query I rowsort
SELECT - 77 * - 27 AS col1 FROM tab1 GROUP BY tab1.col1
----
2079
2079
2079

query I rowsort
SELECT ALL - 78 AS col0 FROM tab2 GROUP BY tab2.col2
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT NULLIF ( 37, + cor0.col0 ) col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
37
37
37

query I rowsort
SELECT + col1 * 35 + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
1476
2124
2196

query I rowsort
SELECT + col2 AS col2 FROM tab1 GROUP BY col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 - cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-142
-16
-90

query I rowsort
SELECT ALL - + tab1.col0 - 21 FROM tab1 GROUP BY tab1.col0
----
-103
-43
-49

query I rowsort
SELECT DISTINCT - 46 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-46

query I rowsort
SELECT ALL + + tab1.col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 * 13 col1 FROM tab1 GROUP BY tab1.col2
----
104
585
923

onlyif mysql # DIV for integer division: 
query I rowsort label-398
SELECT cor0.col1 DIV - cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-398
SELECT cor0.col1 / - cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT NULLIF ( 47, cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
47

query I rowsort
SELECT DISTINCT - 35 * - 83 FROM tab2 AS cor0 GROUP BY cor0.col0
----
2905

query I rowsort
SELECT - 15 FROM tab2 AS cor0 GROUP BY col1
----
-15
-15
-15

query I rowsort
SELECT DISTINCT - tab1.col1 - + 91 AS col1 FROM tab1 GROUP BY col1
----
-135
-148
-97

query I rowsort
SELECT 81 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1, cor1.col1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT ALL - 72 AS col1 FROM tab2 GROUP BY tab2.col1
----
-72
-72
-72

query I rowsort
SELECT - + 78 AS col0 FROM tab1 GROUP BY tab1.col2
----
-78
-78
-78

query I rowsort
SELECT - + 18 * tab2.col1 FROM tab2 GROUP BY tab2.col1
----
-1062
-1098
-738

query I rowsort
SELECT + 95 - - 67 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
162
162
162

query I rowsort
SELECT - 24 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
-24
-24
-24

query I rowsort
SELECT + - 81 + tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-53
-59
1

query I rowsort
SELECT ALL 4 AS col2 FROM tab2 GROUP BY tab2.col1
----
4
4
4

query I rowsort
SELECT ALL + 27 AS col0 FROM tab0 GROUP BY tab0.col1
----
27
27

query I rowsort
SELECT DISTINCT 21 + cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
112
113
36

query I rowsort
SELECT DISTINCT + col1 * - tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
-1681
-3481
-3721

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1 cor0 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
56

query I rowsort
SELECT + + tab2.col0 * + tab2.col0 FROM tab2 GROUP BY tab2.col0
----
225
8281
8464

query I rowsort
SELECT + tab0.col2 - - col2 FROM tab0 GROUP BY tab0.col2
----
158
48
76

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab0 GROUP BY tab0.col2
----
8

query I rowsort
SELECT 29 FROM tab0 GROUP BY col2
----
29
29
29

query I rowsort
SELECT 59 FROM tab0 GROUP BY col2
----
59
59
59

query I rowsort
SELECT - 35 * - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1575
2485
280

query I rowsort
SELECT ALL + 88 * 11 FROM tab2 GROUP BY tab2.col2
----
968
968
968

query I rowsort
SELECT DISTINCT - 79 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-79

query I rowsort
SELECT ALL - 76 FROM tab0 GROUP BY tab0.col2
----
-76
-76
-76

query I rowsort
SELECT ALL + + tab1.col0 - col0 AS col1 FROM tab1 GROUP BY tab1.col0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 38 col1 FROM tab2 GROUP BY tab2.col0
----
-38
-38
-38

query I rowsort
SELECT + - 72 AS col1 FROM tab1 GROUP BY tab1.col1
----
-72
-72
-72

query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
96

query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
0
0
6561

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab0 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT cor0.col1 - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT 78 FROM tab0 GROUP BY tab0.col1
----
78

query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab2 GROUP BY tab2.col1
----
-50

query I rowsort
SELECT - tab1.col2 - - tab1.col2 FROM tab1 GROUP BY tab1.col2
----
0
0
0

query I rowsort
SELECT + cor0.col0 * cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col2, col0
----
484
6724
784

query I rowsort
SELECT ALL - tab1.col2 FROM tab1 GROUP BY col2 HAVING NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + tab2.col1 - + tab2.col1 FROM tab2 GROUP BY tab2.col1
----
0

query I rowsort
SELECT DISTINCT - tab1.col1 / - tab1.col1 FROM tab1 WHERE ( tab1.col1 ) BETWEEN NULL AND ( tab1.col1 ) GROUP BY tab1.col1
----

query I rowsort
SELECT ALL + - 1 + 69 * tab2.col1 FROM tab2 GROUP BY tab2.col1
----
2828
4070
4208

query I rowsort
SELECT DISTINCT + 40 * - col1 FROM tab0 GROUP BY tab0.col1
----
-3240
0

query I rowsort
SELECT ALL - 19 AS col2 FROM tab2 GROUP BY tab2.col0
----
-19
-19
-19

query I rowsort
SELECT ALL - 51 FROM tab0 cor0 GROUP BY cor0.col2
----
-51
-51
-51

query I rowsort
SELECT ALL - - ( + 12 ) FROM tab2 GROUP BY tab2.col2
----
12
12
12

query I rowsort
SELECT DISTINCT + - 25 FROM tab0 GROUP BY tab0.col1
----
-25

query I rowsort
SELECT 56 FROM tab0 GROUP BY tab0.col1
----
56
56

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1, cor0.col0
----
15
91
92

query I rowsort
SELECT ( + 68 ) * cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
2992
3876
408

query I rowsort
SELECT cor0.col2 - + COALESCE ( 94, cor0.col2 ) FROM tab0 AS cor0 GROUP BY col2
----
-15
-56
-70

query I rowsort
SELECT ALL - 63 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-63
-63
-63

query I rowsort
SELECT 12 FROM tab1 cor0 GROUP BY cor0.col1
----
12
12
12

query I rowsort
SELECT 80 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
80
80
80

query I rowsort
SELECT - 91 FROM tab0 GROUP BY tab0.col2
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-454
SELECT - CAST( 56 AS SIGNED ) + col2 AS col0 FROM tab0 GROUP BY tab0.col2
----
-18
-32
23

skipif mysql # not compatible
query I rowsort label-454
SELECT - CAST ( 56 AS INTEGER ) + col2 AS col0 FROM tab0 GROUP BY tab0.col2
----
-18
-32
23

query I rowsort
SELECT ( 46 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
46
46
46

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
27

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab1 GROUP BY col1
----
70

query I rowsort
SELECT + 1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
0
0
81

query I rowsort
SELECT ALL 4 + 35 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
39
39
39

query I rowsort
SELECT ALL 74 AS col2 FROM tab1 GROUP BY tab1.col0
----
74
74
74

query I rowsort
SELECT ALL - 88 * - col0 - tab2.col0 AS col2 FROM tab2 GROUP BY tab2.col0
----
1305
7917
8004

query I rowsort
SELECT + tab0.col0 * - 39 FROM tab0 GROUP BY tab0.col0
----
-1014
-1677
-3237

query I rowsort
SELECT - cor0.col1 * - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
1681
3481
3721

query I rowsort
SELECT col2 * tab0.col2 FROM tab0 WHERE NULL IS NOT NULL GROUP BY tab0.col2
----

query I rowsort
SELECT col1 * cor0.col1 + 18 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
18
6579

onlyif mysql # DIV for integer division: 
query I rowsort label-467
SELECT + cor0.col0 DIV - 22 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-467
SELECT + cor0.col0 / - 22 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1
-1
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

query I rowsort
SELECT ALL + tab0.col2 + 38 FROM tab0 GROUP BY tab0.col2
----
117
62
76

query I rowsort
SELECT + tab0.col0 + col0 FROM tab0 GROUP BY tab0.col0
----
166
52
86

query I rowsort
SELECT DISTINCT 82 FROM tab1 cor0 GROUP BY cor0.col1
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col2 FROM tab0 GROUP BY tab0.col1
----
0
81

query I rowsort
SELECT 24 * + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
1080
1704
192

query I rowsort
SELECT 4 * - cor0.col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
-152
-316
-96

query I rowsort
SELECT ALL + 10 * + 80 FROM tab0 GROUP BY tab0.col1
----
800
800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col1 FROM tab2 GROUP BY tab2.col2
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-478
SELECT ALL + + CAST( - tab0.col1 AS SIGNED ) AS col1 FROM tab0 GROUP BY col1
----
-81
0

skipif mysql # not compatible
query I rowsort label-478
SELECT ALL + + CAST ( - tab0.col1 AS INTEGER ) AS col1 FROM tab0 GROUP BY col1
----
-81
0

query I rowsort
SELECT - cor0.col1 + cor0.col1 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6480

query I rowsort
SELECT DISTINCT - tab0.col1 * - 65 AS col0 FROM tab0 GROUP BY tab0.col1
----
0
5265

query I rowsort
SELECT + ( cor1.col1 ) * + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col1
----
1936
3249
36

query I rowsort
SELECT + + 47 FROM tab0 GROUP BY tab0.col0
----
47
47
47

query I rowsort
SELECT ALL 57 AS col2 FROM tab2 GROUP BY tab2.col0
----
57
57
57

query I rowsort
SELECT - + col1 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT 65 + - 85 * cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2
----
-1975
-3165
-6650

query I rowsort
SELECT DISTINCT tab1.col0 * - 4 AS col1 FROM tab1 GROUP BY tab1.col0
----
-112
-328
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - COALESCE ( - 70, + 8 + cor0.col0, ( cor0.col1 ) ) - cor0.col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col0
----
-12
42
48

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col2, cor0.col2
----
-22
-28
-82

query I rowsort
SELECT DISTINCT + tab0.col1 * tab0.col1 FROM tab0 GROUP BY tab0.col1
----
0
6561

query I rowsort
SELECT DISTINCT - - col2 * + 88 AS col1 FROM tab2 GROUP BY tab2.col2
----
5104
6952
7656

query I rowsort
SELECT + NULLIF ( col1, + cor0.col1 ) AS col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-71
-71
-71

query I rowsort
SELECT ALL + - col0 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT ALL - col1 - + tab2.col1 FROM tab2 GROUP BY tab2.col1
----
-118
-122
-82

query I rowsort
SELECT - - tab2.col0 * 77 FROM tab2 GROUP BY tab2.col0
----
1155
7007
7084

query I rowsort
SELECT - 44 FROM tab2 cor0 GROUP BY cor0.col2
----
-44
-44
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-497
SELECT ALL - CAST( 78 AS SIGNED ) AS col2 FROM tab2 GROUP BY col1
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL - CAST ( 78 AS INTEGER ) AS col2 FROM tab2 GROUP BY col1
----
-78
-78
-78

query I rowsort
SELECT ALL + 83 - - 20 FROM tab0 GROUP BY tab0.col0
----
103
103
103

query I rowsort
SELECT cor0.col2 + + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
102
150
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT tab0.col0 DIV 58 FROM tab0 GROUP BY tab0.col0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-501
SELECT tab0.col0 / 58 FROM tab0 GROUP BY tab0.col0
----
0
0
1

query I rowsort
SELECT 76 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
34

query I rowsort
SELECT DISTINCT col1 - - cor0.col1 * - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, col2
----
-2508
-3080
-42

query I rowsort
SELECT ALL - 10 FROM tab1 GROUP BY tab1.col2
----
-10
-10
-10

query I rowsort
SELECT + - 39 AS col0 FROM tab0 GROUP BY tab0.col0
----
-39
-39
-39

query I rowsort
SELECT 17 FROM tab2 AS cor0 GROUP BY cor0.col1
----
17
17
17

query I rowsort
SELECT ALL + 37 FROM tab2 AS cor0 GROUP BY cor0.col0
----
37
37
37

query I rowsort
SELECT 81 FROM tab2 cor0 GROUP BY cor0.col0
----
81
81
81

query I rowsort
SELECT + ( 92 ) AS col0 FROM tab1 cor0 GROUP BY cor0.col2
----
92
92
92

query I rowsort
SELECT + 46 FROM tab0 AS cor0 GROUP BY col0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * 34 col1 FROM tab1 GROUP BY tab1.col0
----
3196
3196
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col0 FROM tab0 cor0 GROUP BY cor0.col1
----
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT ALL cor0.col2 DIV cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL cor0.col2 / cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
0
0
1

query I rowsort
SELECT DISTINCT - col1 * tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1
----
-6561
0

query I rowsort
SELECT + - 10 AS col2 FROM tab1 GROUP BY tab1.col2
----
-10
-10
-10

query I rowsort
SELECT ALL 68 AS col2 FROM tab1 GROUP BY tab1.col0
----
68
68
68

query I rowsort
SELECT DISTINCT tab1.col1 * col1 AS col0 FROM tab1 GROUP BY col1
----
1936
3249
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab2 GROUP BY tab2.col0
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-521
SELECT - 18 + + tab1.col0 DIV + 17 FROM tab1 GROUP BY tab1.col0
----
-14
-17
-17

skipif mysql # not compatible
query I rowsort label-521
SELECT - 18 + + tab1.col0 / + 17 FROM tab1 GROUP BY tab1.col0
----
-14
-17
-17

query I rowsort
SELECT ALL - cor0.col1 * - 74 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3034
4366
4514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-524
SELECT DISTINCT tab2.col1 DIV 55 + + tab2.col1 FROM tab2 GROUP BY col1
----
41
60
62

skipif mysql # not compatible
query I rowsort label-524
SELECT DISTINCT tab2.col1 / 55 + + tab2.col1 FROM tab2 GROUP BY col1
----
41
60
62

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1 GROUP BY col1
----
44
57
6

query I rowsort
SELECT DISTINCT + col2 * + 40 AS col2 FROM tab2 GROUP BY tab2.col2
----
2320
3160
3480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 66 col0 FROM tab0 GROUP BY tab0.col2
----
-66
-66
-66

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab2 GROUP BY col0
----
61

query I rowsort
SELECT DISTINCT - 76 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-76

query I rowsort
SELECT DISTINCT + tab1.col2 * - 71 FROM tab1 GROUP BY tab1.col2
----
-3195
-5041
-568

query I rowsort
SELECT ALL + 79 FROM tab0 AS cor0 GROUP BY cor0.col0
----
79
79
79

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT + - tab1.col1 * tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
-1936
-3249
-36

query I rowsort
SELECT DISTINCT - 97 AS col2 FROM tab0 GROUP BY tab0.col0
----
-97

query I rowsort
SELECT 25 FROM tab2 AS cor0 GROUP BY cor0.col1
----
25
25
25

query I rowsort
SELECT DISTINCT + ( tab1.col1 ) FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT - 42 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-42
-42
-42

query I rowsort
SELECT - - 83 FROM tab0 GROUP BY tab0.col0
----
83
83
83

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1806
-650
-6806

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-540
SELECT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 91 ) col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-91
-91
-91

query I rowsort
SELECT + + tab0.col1 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT DISTINCT + + 98 AS col2 FROM tab1 GROUP BY tab1.col1
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col2 HAVING NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2 GROUP BY tab2.col0 HAVING NOT NULL IN ( tab2.col0 + + tab2.col0 )
----

query I rowsort
SELECT DISTINCT + + tab0.col2 AS col2 FROM tab0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT + tab2.col2 * + 96 AS col1 FROM tab2 GROUP BY tab2.col2
----
5568
7584
8352

query I rowsort
SELECT + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1, col2
----
0
0
81

query I rowsort
SELECT 3 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
3
3
3

query I rowsort
SELECT DISTINCT + cor0.col2 - + cor0.col2 * + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-3306
-6162
-7482

query I rowsort
SELECT 46 AS col1 FROM tab2 GROUP BY tab2.col0
----
46
46
46

query I rowsort
SELECT DISTINCT + 37 - 97 * cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
-2291
-3649
-7626

query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
3772
5369
915

onlyif mysql # DIV for integer division: 
query I rowsort label-554
SELECT + cor0.col0 DIV - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-554
SELECT + cor0.col0 / - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1
-1
-1

query I rowsort
SELECT 10 AS col1 FROM tab2 GROUP BY tab2.col1
----
10
10
10

query I rowsort
SELECT ALL + - 27 * 30 AS col0 FROM tab0 GROUP BY tab0.col1
----
-810
-810

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
89

query I rowsort
SELECT + 61 * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2745
4331
488

query I rowsort
SELECT DISTINCT + 71 FROM tab0 AS cor0 GROUP BY cor0.col2
----
71

query I rowsort
SELECT 95 FROM tab1 AS cor0 GROUP BY cor0.col2
----
95
95
95

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + - 63 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1
1962
4978

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT - 8 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
-8
-8
-8

query I rowsort
SELECT DISTINCT + - tab0.col2 * 82 FROM tab0 GROUP BY col2
----
-1968
-3116
-6478

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
79

query I rowsort
SELECT DISTINCT + 70 FROM tab1 AS cor0 GROUP BY col1
----
70

query I rowsort
SELECT ALL - 21 FROM tab1 GROUP BY col2
----
-21
-21
-21

query I rowsort
SELECT + - 95 FROM tab2 GROUP BY col0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
53

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-9

query I rowsort
SELECT ALL - + tab2.col1 + - 0 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col0, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT + + 54 * tab0.col0 + col0 * tab0.col0 FROM tab0 GROUP BY tab0.col0
----
11371
2080
4171

query I rowsort
SELECT DISTINCT 79 + col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
101
107
161

query I rowsort
SELECT ALL tab0.col0 + col0 AS col1 FROM tab0 GROUP BY col0
----
166
52
86

query I rowsort
SELECT cor0.col1 + + 60 * 54 FROM tab0 AS cor0 GROUP BY cor0.col1
----
3240
3321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 - - 75 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
95
95
95

query I rowsort
SELECT - - 29 - tab2.col1 FROM tab2 GROUP BY tab2.col1
----
-12
-30
-32

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT DISTINCT ( + 93 ) * + 76 FROM tab1 AS cor0 GROUP BY cor0.col1
----
7068

query I rowsort
SELECT ALL + ( 23 ) + - cor0.col2 AS col1 FROM tab2 cor0 GROUP BY cor0.col2
----
-35
-56
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * - tab1.col0 col2 FROM tab1 GROUP BY tab1.col0
----
-484
-6724
-784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col0 FROM tab2 AS cor0 GROUP BY col2
----
-87
-87
-87

query I rowsort
SELECT 9 * + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
369
531
549

query I rowsort
SELECT ALL + 57 * tab2.col0 FROM tab2 GROUP BY tab2.col0
----
5187
5244
855

onlyif mysql # DIV for integer division: 
query I rowsort label-586
SELECT + cor0.col1 DIV + cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-586
SELECT + cor0.col1 / + cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
1
1

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT + COALESCE ( + 82, - cor0.col0 * col1 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
82
82
82

query I rowsort
SELECT ALL 55 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
55
55
55

query I rowsort
SELECT cor0.col2 * - col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0
----
-1305
-5336
-7189

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT - 6 DIV + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-590
SELECT - 6 / + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col0, cor0.col2
----
31
31
31

query I rowsort
SELECT + 44 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
44
44
44

query I rowsort
SELECT 88 FROM tab0 AS cor0 GROUP BY col2
----
88
88
88

query I rowsort
SELECT ALL + + 71 FROM tab0 GROUP BY tab0.col0
----
71
71
71

query I rowsort
SELECT ALL - 91 FROM tab2 GROUP BY col2
----
-91
-91
-91

query I rowsort
SELECT 23 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
23
23

query I rowsort
SELECT + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2, cor1.col1
----
7
7
7

query I rowsort
SELECT DISTINCT - - 51 FROM tab1 GROUP BY tab1.col2
----
51

query I rowsort
SELECT - 93 FROM tab2 GROUP BY tab2.col1
----
-93
-93
-93

query I rowsort
SELECT 20 AS col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2
----
20
20
20

query I rowsort
SELECT + - 60 FROM tab0 GROUP BY tab0.col2
----
-60
-60
-60

query I rowsort
SELECT ALL 34 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-603
SELECT ALL 37 DIV cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-603
SELECT ALL 37 / cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 - + cor0.col1 * + cor0.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1
----
-19
-1919
-3232

query I rowsort
SELECT - 40 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-40
-40
-40

query I rowsort
SELECT ALL + tab1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0 GROUP BY tab0.col0 HAVING NULL IS NULL
----
-26
-43
-83

query I rowsort
SELECT ALL tab2.col2 + tab2.col2 AS col0 FROM tab2 GROUP BY col2
----
116
158
174

query I rowsort
SELECT DISTINCT - tab1.col1 * - tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
1936
3249
36

query I rowsort
SELECT DISTINCT 0 FROM tab0 cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT - + 47 AS col1 FROM tab0 GROUP BY tab0.col2
----
-47
-47
-47

query I rowsort
SELECT + 73 AS col2 FROM tab2 GROUP BY tab2.col0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col2 FROM tab2 GROUP BY tab2.col1
----
-52
-52
-52

query I rowsort
SELECT + 43 + col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
114
51
88

query I rowsort
SELECT ALL 49 AS col0 FROM tab0 GROUP BY tab0.col1
----
49
49

query I rowsort
SELECT DISTINCT + 99 FROM tab2 AS cor0 GROUP BY col2
----
99

query I rowsort
SELECT ALL cor0.col0 * + col2 + + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
1056
2133
3192

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL 95 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
95
95
95

query I rowsort
SELECT + - 9 + 18 * tab2.col2 AS col0 FROM tab2 GROUP BY tab2.col2
----
1035
1413
1557

onlyif mysql # DIV for integer division: 
query I rowsort label-622
SELECT cor0.col1 DIV 19 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
0
2
3

skipif mysql # not compatible
query I rowsort label-622
SELECT cor0.col1 / 19 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
0
2
3

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT ALL + - 0 AS col2 FROM tab2 GROUP BY col1
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * - 33 AS col1 FROM tab0 GROUP BY col1
----
0
2673

query I rowsort
SELECT + + 18 AS col2 FROM tab1 GROUP BY tab1.col1
----
18
18
18

query I rowsort
SELECT 91 AS col2 FROM tab1 GROUP BY tab1.col2
----
91
91
91

query I rowsort
SELECT cor0.col2 * + cor0.col1 FROM tab0 cor0 GROUP BY col1, cor0.col2
----
0
0
1944

query I rowsort
SELECT 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
13
13
13

query I rowsort
SELECT DISTINCT - + 46 AS col1 FROM tab2 GROUP BY tab2.col0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col2 FROM tab1 GROUP BY tab1.col0
----
0

query I rowsort
SELECT DISTINCT - - col1 + tab2.col1 FROM tab2 GROUP BY tab2.col1
----
118
122
82

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL 29 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
29
29

query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab0 AS cor0 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT 82 AS col2 FROM tab0 GROUP BY tab0.col0
----
82
82
82

query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab2 GROUP BY tab2.col0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab1 cor0 GROUP BY col1, cor0.col0
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 - tab1.col2 col0 FROM tab1 GROUP BY tab1.col2
----
0
0
0

query I rowsort
SELECT tab0.col1 FROM tab0 WHERE NULL IS NOT NULL GROUP BY tab0.col1
----

query I rowsort
SELECT DISTINCT tab0.col2 AS col1 FROM tab0 GROUP BY tab0.col2 HAVING NOT NULL IS NOT NULL
----
24
38
79

query I rowsort
SELECT ALL - + tab1.col0 * + tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-484
-6724
-784

query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
41
59
61

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1 cor0 GROUP BY col2, col1
----
45
71
8

query I rowsort
SELECT + 85 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT cor0.col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-646
SELECT cor0.col1 / cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
0
0
3

query I rowsort
SELECT DISTINCT - 49 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-648
SELECT - cor0.col1 * NULLIF ( cor0.col0, col0 * - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
-3772
-5369
-915

skipif mysql # not compatible
query I rowsort label-648
SELECT - cor0.col1 * NULLIF ( cor0.col0, col0 * - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
-3772
-5369
-915

query I rowsort
SELECT ALL + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col0
----
15
91
92

query I rowsort
SELECT cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-651
SELECT DISTINCT + tab2.col0 + tab2.col0 DIV 6 FROM tab2 GROUP BY tab2.col0
----
106
107
17

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT + tab2.col0 + tab2.col0 / 6 FROM tab2 GROUP BY tab2.col0
----
106
107
17

query I rowsort
SELECT + col0 + + cor0.col0 * - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-110
-1568
-3526

query I rowsort
SELECT - + tab2.col2 - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
-116
-158
-174

query I rowsort
SELECT ALL 66 FROM tab1 AS cor0 GROUP BY cor0.col1
----
66
66
66

query I rowsort
SELECT DISTINCT 90 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
90

query I rowsort
SELECT 86 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
86
86
86

query I rowsort
SELECT - + 33 AS col2 FROM tab0 GROUP BY col0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT + - tab1.col0 + tab1.col0 FROM tab1 GROUP BY tab1.col0
----
0

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
3483

query I rowsort
SELECT + 9 FROM tab1 GROUP BY col1
----
9
9
9

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 GROUP BY col0, cor0.col2
----
22
28
82

query I rowsort
SELECT ALL + cor0.col1 * - 2 FROM tab2 AS cor0 GROUP BY col1
----
-118
-122
-82

query I rowsort
SELECT + + ( tab1.col2 ) * + 60 FROM tab1 GROUP BY tab1.col2
----
2700
4260
480

query I rowsort
SELECT 93 AS col0 FROM tab1 GROUP BY tab1.col2
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-665
SELECT DISTINCT CAST( - 85 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-85

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT CAST ( - 85 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-85

query I rowsort
SELECT ALL cor0.col2 * + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
2378
4661
5307

query I rowsort
SELECT cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col2
----
58
79
87

query I rowsort
SELECT 29 - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-52
29
29

query I rowsort
SELECT + tab2.col2 + tab2.col2 FROM tab2 GROUP BY col2
----
116
158
174

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT - col1 DIV 92 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-670
SELECT - col1 / 92 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT - 98 AS col2 FROM tab0 GROUP BY tab0.col0
----
-98

query I rowsort
SELECT DISTINCT - 27 FROM tab1 GROUP BY tab1.col2
----
-27

query I rowsort
SELECT DISTINCT + 31 FROM tab2 GROUP BY tab2.col2
----
31

query I rowsort
SELECT - 20 AS col0 FROM tab0 GROUP BY tab0.col2
----
-20
-20
-20

query I rowsort
SELECT 45 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
45
45
45

query I rowsort
SELECT ALL - 36 + - col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-127
-128
-51

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
0
0
81

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT tab0.col0 * - 35 AS col2 FROM tab0 GROUP BY col0
----
-1505
-2905
-910

onlyif mysql # DIV for integer division: 
query I rowsort label-680
SELECT DISTINCT + col1 DIV tab2.col1 col1 FROM tab2 GROUP BY tab2.col1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-680
SELECT DISTINCT + col1 / tab2.col1 col1 FROM tab2 GROUP BY tab2.col1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 * tab2.col1 col0 FROM tab2 GROUP BY tab2.col1
----
3280
4720
4880

query I rowsort
SELECT - 93 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-93
-93
-93

query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
15
91
92

query I rowsort
SELECT ALL - 70 FROM tab2 cor0 GROUP BY cor0.col2
----
-70
-70
-70

query I rowsort
SELECT ALL 67 FROM tab2 AS cor0 GROUP BY col0
----
67
67
67

query I rowsort
SELECT ALL + + tab1.col2 + tab1.col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
142
16
90

query I rowsort
SELECT ALL + COALESCE ( + tab2.col0, + tab2.col0, + 34 * + 28 ) AS col0 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT DISTINCT + - 1 AS col1 FROM tab2 GROUP BY tab2.col2
----
-1

query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab2 GROUP BY tab2.col2
----
86

query I rowsort
SELECT DISTINCT + tab0.col2 * tab0.col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
1444
576
6241

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
82

query I rowsort
SELECT ALL 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col0
----
32
32
32
32
32
32

query I rowsort
SELECT ALL + cor0.col1 + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
138
148
99

query I rowsort
SELECT ALL NULLIF ( cor0.col2, cor0.col2 - cor0.col0 ) + - cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
-11
-14
17

query I rowsort
SELECT ALL - - 21 FROM tab0 GROUP BY tab0.col1
----
21
21

query I rowsort
SELECT ALL 30 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
30
30
30

query I rowsort
SELECT ALL - 31 AS col1 FROM tab2 GROUP BY tab2.col2
----
-31
-31
-31

query I rowsort
SELECT tab2.col1 + col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
118
122
82

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2 HAVING NULL IS NOT NULL
----

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2 HAVING NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 69 FROM tab1 GROUP BY tab1.col0
----
69

query I rowsort
SELECT + + 90 + 45 FROM tab2 GROUP BY tab2.col2
----
135
135
135

query I rowsort
SELECT - 94 AS col2 FROM tab0 GROUP BY tab0.col0
----
-94
-94
-94

query I rowsort
SELECT - 35 * tab1.col0 AS col2 FROM tab1 GROUP BY tab1.col0
----
-2870
-770
-980

query I rowsort
SELECT 8 FROM tab1 GROUP BY tab1.col0
----
8
8
8

query I rowsort
SELECT ALL 38 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
38
38
38

query I rowsort
SELECT + tab1.col1 - 97 FROM tab1 GROUP BY col1
----
-40
-53
-91

query I rowsort
SELECT + cor0.col0 - cor0.col0 FROM tab0 cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * 88 col1 FROM tab1 AS cor0 GROUP BY col1
----
3872
5016
528

query I rowsort
SELECT DISTINCT 49 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
49

query I rowsort
SELECT + 3 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
3
3
3

query I rowsort
SELECT 62 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
62
62
62

query I rowsort
SELECT 52 FROM tab1 AS cor0 GROUP BY cor0.col1
----
52
52
52

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
26
43
83

query I rowsort
SELECT ALL ( - 92 ) FROM tab2 GROUP BY col0
----
-92
-92
-92

query I rowsort
SELECT ALL + 35 + - 43 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col0, cor0.col2
----
-8
-8
-8

query I rowsort
SELECT + + col0 * + tab1.col0 AS col2 FROM tab1 GROUP BY tab1.col0
----
484
6724
784

query I rowsort
SELECT ALL - + 50 + tab2.col0 FROM tab2 GROUP BY tab2.col0
----
-35
41
42

query I rowsort
SELECT ALL + col1 * cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
1936
3249
36

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT ALL cor0.col2 DIV - col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-722
SELECT ALL cor0.col2 / - col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

query I rowsort
SELECT - + tab1.col1 + tab1.col1 * + tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
1892
30
3192

query I rowsort
SELECT 58 FROM tab2 GROUP BY tab2.col1
----
58
58
58

query I rowsort
SELECT - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2, cor0.col0
----
9 values hashing to 976cc931872319f6c60dc588d08fa95d

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
58
79
87

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
41
59
61

query I rowsort
SELECT DISTINCT - tab0.col0 * - tab0.col0 + + tab0.col0 AS col2 FROM tab0 GROUP BY tab0.col0
----
1892
6972
702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-730
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 60 col0 FROM tab0 GROUP BY tab0.col2
----
-60
-60
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-732
SELECT ALL COALESCE ( - cor0.col0, cor0.col1 ) DIV + COALESCE ( + cor0.col0, cor0.col1 * + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL COALESCE ( - cor0.col0, cor0.col1 ) / + COALESCE ( + cor0.col0, cor0.col1 * + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-733
SELECT cor0.col2 DIV + col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-733
SELECT cor0.col2 / + col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
0
0
1

query I rowsort
SELECT + col1 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 HAVING NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-735
SELECT DISTINCT cor0.col1 * - cor0.col1 - + cor0.col1 DIV 60 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1681
-3481
-3722

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT cor0.col1 * - cor0.col1 - + cor0.col1 / 60 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1681
-3481
-3722

query I rowsort
SELECT + col2 - - 62 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2
----
100
141
86

query I rowsort
SELECT - + 29 AS col1 FROM tab2 GROUP BY tab2.col0
----
-29
-29
-29

query I rowsort
SELECT ALL - 28 * 56 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1568
-1568
-1568

query I rowsort
SELECT tab2.col0 * 8 FROM tab2 GROUP BY tab2.col0
----
120
728
736

query I rowsort
SELECT - tab2.col0 + + tab2.col0 FROM tab2 GROUP BY tab2.col0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
37
37
37

query I rowsort
SELECT DISTINCT 70 * - 82 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-5740

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
36

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
34

query I rowsort
SELECT ALL - 24 AS col1 FROM tab1 GROUP BY tab1.col0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT 16 AS col0 FROM tab1 cor0 GROUP BY cor0.col2
----
16

query I rowsort
SELECT + - col1 * tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-1936
-3249
-36

query I rowsort
SELECT ALL - - 73 AS col2 FROM tab1 GROUP BY tab1.col1
----
73
73
73

query I rowsort
SELECT - cor0.col0 + - cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-182
-184
-30

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0, cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
3483

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-22
-28
-82

query I rowsort
SELECT - 66 * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-2970
-4686
-528

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT - cor0.col0 - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-182
-184
-30

query I rowsort
SELECT + 3 FROM tab2 AS cor0 GROUP BY col1
----
3
3
3

query I rowsort
SELECT DISTINCT cor0.col2 * - 52 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
-1248
-1976
-4108

query I rowsort
SELECT ALL tab1.col0 FROM tab1, tab2 AS cor0 GROUP BY tab1.col0
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * + 66 col0 FROM tab2 cor0 GROUP BY cor0.col2
----
2706
2706
2706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-760
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 23 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
23
23
23

query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2 GROUP BY tab2.col0 HAVING ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT - + 68 FROM tab1 GROUP BY tab1.col1
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 87 col2 FROM tab1 GROUP BY tab1.col1
----
87

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0
----
45
71
8

query I rowsort
SELECT - + tab0.col2 + + 14 FROM tab0 GROUP BY tab0.col2
----
-10
-24
-65

query I rowsort
SELECT + + 86 FROM tab1 GROUP BY tab1.col2
----
86
86
86

query I rowsort
SELECT 18 FROM tab2 GROUP BY tab2.col0
----
18
18
18

query I rowsort
SELECT DISTINCT + cor0.col2 - + col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT + col2 DIV cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-770
SELECT + col2 / cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0
----
58
79
87

query I rowsort
SELECT + 30 FROM tab2 GROUP BY col2
----
30
30
30

query I rowsort
SELECT ALL + 45 AS col2 FROM tab1 cor0 GROUP BY col0, cor0.col1
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-774
SELECT + 1 DIV - 2 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-774
SELECT + 1 / - 2 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
0
0
0

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-776
SELECT - CAST( NULL AS SIGNED ) + - 56 * tab1.col0 col2 FROM tab1 GROUP BY tab1.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-776
SELECT - CAST ( NULL AS INTEGER ) + - 56 * tab1.col0 col2 FROM tab1 GROUP BY tab1.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 48 FROM tab0 GROUP BY col0
----
-48
-48
-48

query I rowsort
SELECT - 28 * 22 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-616
-616
-616

query I rowsort
SELECT - 21 * + col1 FROM tab0 AS cor0 GROUP BY col1
----
-1701
0

query I rowsort
SELECT - 89 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-89
-89
-89

query I rowsort
SELECT DISTINCT 60 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col1
----
60

query I rowsort
SELECT ( 20 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
20
20
20

query I rowsort
SELECT - - 57 AS col2 FROM tab1 GROUP BY tab1.col2
----
57
57
57

query I rowsort
SELECT DISTINCT + - 89 AS col0 FROM tab0 GROUP BY tab0.col0
----
-89

query I rowsort
SELECT - 87 * - col0 AS col0 FROM tab2 AS cor0 GROUP BY col0
----
1305
7917
8004

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ALL 20 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
20
20
20

query I rowsort
SELECT ALL 44 AS col2 FROM tab1 GROUP BY tab1.col0
----
44
44
44

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab0 GROUP BY tab0.col1
----
71

query I rowsort
SELECT DISTINCT 47 FROM tab2 cor0 GROUP BY cor0.col1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col1
----
-81
0

query I rowsort
SELECT DISTINCT - 1 FROM tab1 GROUP BY tab1.col1
----
-1

query I rowsort
SELECT tab2.col1 + - 45 * - 12 AS col0 FROM tab2 GROUP BY tab2.col1
----
581
599
601

query I rowsort
SELECT ALL - - 83 * + 53 AS col2 FROM tab0 GROUP BY tab0.col2
----
4399
4399
4399

query I rowsort
SELECT - 95 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col1
----
-95
-95
-95

query I rowsort
SELECT + - col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
-45
-71
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT - tab0.col2 DIV - 56 FROM tab0 GROUP BY tab0.col2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-797
SELECT - tab0.col2 / - 56 FROM tab0 GROUP BY tab0.col2
----
0
0
1

query I rowsort
SELECT + - 89 FROM tab0 GROUP BY tab0.col1
----
-89
-89

query I rowsort
SELECT ALL - - 7 AS col2 FROM tab0 GROUP BY tab0.col1
----
7
7

query I rowsort
SELECT ALL - NULLIF ( + cor0.col2, cor0.col1 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-45
-71
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-801
SELECT + tab2.col0 DIV - tab2.col0 AS col1 FROM tab2 GROUP BY col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-801
SELECT + tab2.col0 / - tab2.col0 AS col1 FROM tab2 GROUP BY col0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT tab2.col0 - tab2.col0 FROM tab2 GROUP BY tab2.col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT cor0.col2 DIV + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
0
0
5

skipif mysql # not compatible
query I rowsort label-803
SELECT cor0.col2 / + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
0
0
5

query I rowsort
SELECT DISTINCT + 68 FROM tab0 GROUP BY col1
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 57 col2 FROM tab0 GROUP BY tab0.col1
----
-57

query I rowsort
SELECT ALL + col0 * tab1.col0 FROM tab1 GROUP BY tab1.col0
----
484
6724
784

onlyif mysql # DIV for integer division: 
query I rowsort label-807
SELECT DISTINCT cor0.col1 DIV ( + cor0.col1 ) + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
42
60
62

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT cor0.col1 / ( + cor0.col1 ) + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
42
60
62

query I rowsort
SELECT DISTINCT - 9 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
-9

query I rowsort
SELECT 14 FROM tab1 AS cor0 GROUP BY col1
----
14
14
14

query I rowsort
SELECT DISTINCT NULLIF ( cor0.col1, + cor0.col1 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT 51 FROM tab0 cor0 GROUP BY cor0.col1
----
51
51

query I rowsort
SELECT col1 + tab0.col1 FROM tab0 GROUP BY tab0.col1
----
0
162

query I rowsort
SELECT - cor0.col2 + - cor0.col2 FROM tab2 cor0 GROUP BY col2
----
-116
-158
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 * + cor0.col1 col0 FROM tab0 AS cor0 GROUP BY col1
----
0
6480

query I rowsort
SELECT DISTINCT - cor0.col1 + + 68 FROM tab1 AS cor0 GROUP BY cor0.col1
----
11
24
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-816
SELECT - CAST( NULL AS SIGNED ) + - tab0.col1 AS col0 FROM tab0 GROUP BY col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT - CAST ( NULL AS INTEGER ) + - tab0.col1 AS col0 FROM tab0 GROUP BY col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
67

query I rowsort
SELECT + - 28 AS col1 FROM tab0 GROUP BY tab0.col0
----
-28
-28
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-819
SELECT ALL 3 DIV tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-819
SELECT ALL 3 / tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
0
0
0

query I rowsort
SELECT + + 33 AS col1 FROM tab2 GROUP BY tab2.col1
----
33
33
33

query I rowsort
SELECT ALL + + 19 * - tab1.col0 FROM tab1, tab0 AS cor0 GROUP BY tab1.col0
----
-1558
-418
-532

query I rowsort
SELECT ALL + + 89 AS col1 FROM tab1 GROUP BY tab1.col2
----
89
89
89

query I rowsort
SELECT DISTINCT + cor0.col1 - - col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
162

query I rowsort
SELECT DISTINCT NULLIF ( 73, + cor1.col2 - + cor1.col2 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1, cor1.col2
----
73

query I rowsort
SELECT ALL + ( + 10 ) FROM tab0 GROUP BY tab0.col0
----
10
10
10

query I rowsort
SELECT + 84 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
3696
4788
504

query I rowsort
SELECT + 65 + col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
108
148
91

query I rowsort
SELECT ALL - - tab1.col0 AS col0 FROM tab1 GROUP BY col0
----
22
28
82

query I rowsort
SELECT ALL - cor0.col2 - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-102
-150
-170

query I rowsort
SELECT 78 FROM tab2 cor0 GROUP BY cor0.col1
----
78
78
78

query I rowsort
SELECT ALL - + 90 AS col1 FROM tab2 GROUP BY tab2.col2
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
-1936
-3249
-36

query I rowsort
SELECT + - tab1.col2 + - tab1.col2 FROM tab1 GROUP BY tab1.col2
----
-142
-16
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 76 col0 FROM tab0 GROUP BY col1
----
76
76

query I rowsort
SELECT ALL + 71 AS col2 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
71
71
71

query I rowsort
SELECT DISTINCT 90 FROM tab2 AS cor0 GROUP BY col2
----
90

query I rowsort
SELECT + 22 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col1
----
22
22
22

query I rowsort
SELECT 56 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
56
56
56

query I rowsort
SELECT ALL 76 AS col0 FROM tab0 GROUP BY tab0.col2
----
76
76
76

query I rowsort
SELECT - 36 AS col0 FROM tab0 GROUP BY tab0.col2
----
-36
-36
-36

query I rowsort
SELECT cor0.col0 + - col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT 40 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
40

query I rowsort
SELECT - cor0.col2 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab1 GROUP BY tab1.col1
----
35

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1444
-576
-6241

query I rowsort
SELECT + cor0.col2 + + 83 FROM tab1 AS cor0 GROUP BY col2
----
128
154
91

query I rowsort
SELECT DISTINCT 36 - + 27 FROM tab0 AS cor0 GROUP BY col0
----
9

query I rowsort
SELECT + 45 AS col1 FROM tab1 GROUP BY tab1.col1
----
45
45
45

query I rowsort
SELECT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
15
91
92

onlyif mysql # DIV for integer division: 
query I rowsort label-851
SELECT DISTINCT cor0.col2 DIV ( - cor0.col2 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-1

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT cor0.col2 / ( - cor0.col2 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-1

query I rowsort
SELECT ALL - 26 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-26
-26
-26

query I rowsort
SELECT + + 10 AS col2 FROM tab1 GROUP BY tab1.col0
----
10
10
10

query I rowsort
SELECT DISTINCT 9 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, col2
----
9

query I rowsort
SELECT 25 AS col1 FROM tab0 GROUP BY tab0.col0
----
25
25
25

query I rowsort
SELECT ALL 33 * + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
1353
1947
2013

query I rowsort
SELECT DISTINCT col0 - - 85 AS col1 FROM tab0 GROUP BY tab0.col0
----
111
128
168

query I rowsort
SELECT ALL + 78 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
78
78
78

query I rowsort
SELECT cor0.col1 + cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col2, col0
----
0
0
162

query I rowsort
SELECT DISTINCT + - 52 * - 60 FROM tab1 GROUP BY tab1.col2
----
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col2 FROM tab2 GROUP BY tab2.col1
----
64
64
64

query I rowsort
SELECT + cor0.col0 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
484
6724
784

query I rowsort
SELECT ALL + ( 91 ) AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
91
91
91

query I rowsort
SELECT DISTINCT 93 * - 50 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-4650

query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab1 GROUP BY tab1.col0
----
7

query I rowsort
SELECT DISTINCT - ( COALESCE ( - 90, tab2.col1 ) ) AS col2 FROM tab2 GROUP BY tab2.col1
----
90

query I rowsort
SELECT + 8 AS col2 FROM tab0 GROUP BY col1
----
8
8

query I rowsort
SELECT ALL cor1.col1 * + 39 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
1599
2301
2379

query I rowsort
SELECT cor0.col2 * - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, col1
----
-1260
-176
-5822

query I rowsort
SELECT + 76 FROM tab1 GROUP BY tab1.col1
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-871
SELECT ALL cor0.col1 DIV - 36 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL cor0.col1 / - 36 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-2
0
0

query I rowsort
SELECT 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-873
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col2 + + tab1.col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
142
16
90

query I rowsort
SELECT + 64 AS col1 FROM tab2 GROUP BY tab2.col2
----
64
64
64

query I rowsort
SELECT ALL - 84 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-84
-84
-84

query I rowsort
SELECT + 67 FROM tab2 AS cor0 GROUP BY cor0.col2
----
67
67
67

query I rowsort
SELECT 7 * col0 FROM tab1 cor0 GROUP BY cor0.col0
----
154
196
574

query I rowsort
SELECT - cor0.col1 * + ( - cor0.col1 ) AS col2 FROM tab1 AS cor0 GROUP BY col1
----
1936
3249
36

query I rowsort
SELECT ALL 72 + - tab0.col2 AS col0 FROM tab0 GROUP BY col2
----
-7
34
48

query I rowsort
SELECT ALL - ( 65 ) AS col0 FROM tab1 GROUP BY tab1.col2
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - - 1 * + tab0.col0 FROM tab0 GROUP BY tab0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col2 FROM tab1 cor0 GROUP BY col0
----
0
0
0

query I rowsort
SELECT 42 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
42
42
42

query I rowsort
SELECT ALL + - tab1.col0 * - tab1.col0 FROM tab1 GROUP BY tab1.col0
----
484
6724
784

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col2, cor0.col0
----
-41
-59
-61

query I rowsort
SELECT ALL tab1.col0 * ( - 5 ) FROM tab1 GROUP BY col0
----
-110
-140
-410

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT DISTINCT cor0.col1 DIV + 7 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
6
8

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT cor0.col1 / + 7 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
6
8

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT ALL COALESCE ( - 8, + col2, + col0 ) AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT + - tab0.col1 * 26 AS col2 FROM tab0 GROUP BY tab0.col1
----
-2106
0

query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col2 AS col1 FROM tab0 GROUP BY col2
----
158
48
76

query I rowsort
SELECT ALL 11 FROM tab1 AS cor0 GROUP BY cor0.col0
----
11
11
11

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
30

query I rowsort
SELECT col2 + 32 FROM tab0 AS cor0 GROUP BY cor0.col2
----
111
56
70

query I rowsort
SELECT - 83 * cor0.col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-6723
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab1 GROUP BY tab1.col0
----
-32

query I rowsort
SELECT ALL - 93 * - col1 FROM tab1 GROUP BY tab1.col1
----
4092
5301
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - 3 * cor0.col1 + 92 FROM tab0 cor0 GROUP BY col2, cor0.col1
----
-151
92

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab1 GROUP BY tab1.col0
----
82

query I rowsort
SELECT ALL 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
68
68
68

query I rowsort
SELECT - 32 FROM tab0 GROUP BY tab0.col2
----
-32
-32
-32

query I rowsort
SELECT cor0.col0 + - cor0.col0 FROM tab0 cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT ALL - 7 + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
8
84
85

query I rowsort
SELECT ALL cor0.col1 - 33 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-27
11
24

query I rowsort
SELECT DISTINCT 72 FROM tab1, tab2 AS cor0 GROUP BY tab1.col2
----
72

query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1 GROUP BY tab1.col1 HAVING NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 68 FROM tab1 cor0 GROUP BY cor0.col2
----
-68

query I rowsort
SELECT DISTINCT 59 FROM tab0 GROUP BY tab0.col0
----
59

query I rowsort
SELECT cor0.col2 * 2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
142
16
90

query I rowsort
SELECT 38 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
38
38
38

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT ALL - 67 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-67
-67
-67

query I rowsort
SELECT ALL + cor0.col1 + - 86 FROM tab2 AS cor0 GROUP BY col1
----
-25
-27
-45

query I rowsort
SELECT DISTINCT 67 - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
10
23
61

query I rowsort
SELECT - cor0.col0 + - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-166
-52
-86

query I rowsort
SELECT ALL 42 + - 79 AS col0 FROM tab1 GROUP BY tab1.col2
----
-37
-37
-37

query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab2 GROUP BY tab2.col2
----
-43

query I rowsort
SELECT 6 AS col1 FROM tab1 AS cor0 GROUP BY col2
----
6
6
6

query I rowsort
SELECT - tab1.col1 + + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
105
38
79

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
99

query I rowsort
SELECT cor0.col0 + + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
182
184
30

query I rowsort
SELECT + + 39 AS col2 FROM tab0 GROUP BY tab0.col0
----
39
39
39

query I rowsort
SELECT - + 57 FROM tab0 GROUP BY tab0.col0
----
-57
-57
-57

query I rowsort
SELECT ALL cor0.col2 FROM tab2 AS cor0 GROUP BY col2, cor0.col2
----
58
79
87

query I rowsort
SELECT ALL + 70 FROM tab2 AS cor0 GROUP BY col0
----
70
70
70

query I rowsort
SELECT + 56 * col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
1456
2408
4648

query I rowsort
SELECT + 66 FROM tab2 AS cor0 GROUP BY col1
----
66
66
66

query I rowsort
SELECT col0 - - tab2.col0 * + tab2.col0 FROM tab2 GROUP BY tab2.col0
----
240
8372
8556

query I rowsort
SELECT 38 FROM tab1 GROUP BY tab1.col1
----
38
38
38

query I rowsort
SELECT + ( + tab2.col0 ) FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT ALL 25 * cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1450
1975
2175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
35
35
35

query I rowsort
SELECT + 94 FROM tab2 AS cor0 GROUP BY col0
----
94
94
94

query I rowsort
SELECT 2 FROM tab1 cor0 GROUP BY col2
----
2
2
2

query I rowsort
SELECT DISTINCT 32 * - col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2
----
-1216
-2528
-768

query I rowsort
SELECT ALL + 47 AS col0 FROM tab0 GROUP BY col2
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 18 col1 FROM tab2 GROUP BY col2
----
18
18
18

query I rowsort
SELECT DISTINCT cor0.col0 * - 19 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1577
-494
-817

query I rowsort
SELECT 65 + - 98 FROM tab2 cor0 GROUP BY col1
----
-33
-33
-33

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 GROUP BY col1, col0
----
22
28
82

query I rowsort
SELECT ALL - cor0.col2 * - col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT + - tab0.col0 * + tab0.col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
-1849
-676
-6889

onlyif mysql # DIV for integer division: 
query I rowsort label-946
SELECT DISTINCT - cor0.col0 DIV 9 FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
-2
-4
-9

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT - cor0.col0 / 9 FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
-2
-4
-9

query I rowsort
SELECT 42 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
42
42
42

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor0.col2
----
85

query I rowsort
SELECT cor0.col0 - col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
0
0
0

query I rowsort
SELECT - 10 * - 46 + tab1.col1 * tab1.col1 FROM tab1 GROUP BY tab1.col1
----
2396
3709
496

query I rowsort
SELECT - 44 AS col0 FROM tab0 GROUP BY tab0.col0
----
-44
-44
-44

query I rowsort
SELECT + - 5 FROM tab2 GROUP BY tab2.col0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - 66 + - 42 AS col0 FROM tab1 GROUP BY tab1.col0
----
-108

query I rowsort
SELECT cor0.col1 * + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1681
3481
3721

query I rowsort
SELECT DISTINCT + 44 FROM tab2 cor0 GROUP BY cor0.col2
----
44

query I rowsort
SELECT DISTINCT 56 FROM tab1 AS cor0 GROUP BY cor0.col1
----
56

query I rowsort
SELECT - + tab1.col2 - 74 FROM tab1 GROUP BY tab1.col2
----
-119
-145
-82

query I rowsort
SELECT ALL - - ( + 8 ) FROM tab1 GROUP BY tab1.col2
----
8
8
8

query I rowsort
SELECT - NULLIF ( - cor0.col0, cor0.col0 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col1
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-961
SELECT DISTINCT - tab2.col2 DIV tab2.col2 FROM tab2 GROUP BY tab2.col2
----
-1

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT - tab2.col2 / tab2.col2 FROM tab2 GROUP BY tab2.col2
----
-1

query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL + tab0.col0 * - col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
-1849
-676
-6889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-964
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 GROUP BY col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 92 ) - + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
13
34
5

query I rowsort
SELECT - 58 FROM tab0 GROUP BY tab0.col1
----
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + 20 col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-2
-62
-8

query I rowsort
SELECT 42 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
42
42
42

query I rowsort
SELECT cor0.col1 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
2378
4661
5307

query I rowsort
SELECT cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2 HAVING NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT - tab2.col1 DIV - tab2.col1 AS col0 FROM tab2 GROUP BY tab2.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-971
SELECT - tab2.col1 / - tab2.col1 AS col0 FROM tab2 GROUP BY tab2.col1
----
1
1
1

query I rowsort
SELECT - cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
-45
-71
-8

query I rowsort
SELECT - + 14 FROM tab2 GROUP BY col2
----
-14
-14
-14

query I rowsort
SELECT 31 AS col2 FROM tab2 GROUP BY col1
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
60
60

query I rowsort
SELECT - 64 FROM tab2 GROUP BY tab2.col2
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
45
45
45

query I rowsort
SELECT DISTINCT + 30 FROM tab2 GROUP BY tab2.col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT 37 DIV 98 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-979
SELECT 37 / 98 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ALL - 1 FROM tab0 GROUP BY tab0.col0
----
-1
-1
-1

query I rowsort
SELECT + 46 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT DISTINCT cor0.col1 DIV - cor0.col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-982
SELECT DISTINCT cor0.col1 / - cor0.col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1

query I rowsort
SELECT 68 FROM tab1 AS cor0 GROUP BY cor0.col1
----
68
68
68

query I rowsort
SELECT 26 FROM tab2 cor0 GROUP BY col0
----
26
26
26

query I rowsort
SELECT DISTINCT + 29 FROM tab0 AS cor0 GROUP BY cor0.col0
----
29

query I rowsort
SELECT - 96 + - col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-111
-187
-188

query I rowsort
SELECT ALL 28 - 37 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT cor0.col1 - + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT cor0.col0 * ( + cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 FROM tab1 cor0 GROUP BY col2, cor0.col2
----
2025
5041
64

query I rowsort
SELECT + NULLIF ( + cor0.col2, + cor0.col2 ) / - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 36 FROM tab2 AS cor0 GROUP BY col1
----
-36

query I rowsort
SELECT cor0.col1 * cor0.col1 + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
0
0
6642

query I rowsort
SELECT + + tab0.col0 + - tab0.col0 AS col2 FROM tab0 GROUP BY tab0.col0
----
0
0
0

query I rowsort
SELECT - 68 AS col2 FROM tab2 GROUP BY tab2.col0
----
-68
-68
-68

query I rowsort
SELECT - 17 * - tab2.col0 FROM tab2 GROUP BY tab2.col0
----
1547
1564
255

query I rowsort
SELECT + 5 * - tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-220
-285
-30

query I rowsort
SELECT DISTINCT + - 77 AS col2 FROM tab1 GROUP BY tab1.col0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-999
SELECT ALL CAST( tab1.col0 AS SIGNED ) FROM tab1 GROUP BY tab1.col0
----
22
28
82

skipif mysql # not compatible
query I rowsort label-999
SELECT ALL CAST ( tab1.col0 AS INTEGER ) FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT - 34 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
-34
-34
-34

query I rowsort
SELECT ALL - 50 AS col2 FROM tab0 GROUP BY tab0.col1
----
-50
-50

query I rowsort
SELECT ALL 31 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
31
31
31

query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
28

query I rowsort
SELECT 62 + - cor0.col0 * 82 FROM tab0 AS cor0 GROUP BY col0
----
-2070
-3464
-6744

query I rowsort
SELECT + 59 AS col2 FROM tab0 GROUP BY tab0.col2
----
59
59
59

query I rowsort
SELECT + 85 FROM tab2 GROUP BY tab2.col0
----
85
85
85

query I rowsort
SELECT DISTINCT + 30 * + 71 AS col2 FROM tab1 GROUP BY tab1.col2
----
2130

query I rowsort
SELECT ALL - ( - 75 ) AS col1 FROM tab1 GROUP BY col2
----
75
75
75

query I rowsort
SELECT ALL - 31 * cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-2542
-682
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - tab0.col1 col0 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT cor0.col0 * + 34 FROM tab0 cor0 GROUP BY cor0.col0
----
1462
2822
884

query I rowsort
SELECT ALL - cor0.col0 + + 63 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-19
35
41

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
45
71
8

query I rowsort
SELECT DISTINCT + 96 FROM tab2 AS cor0 GROUP BY cor0.col1
----
96

query I rowsort
SELECT ALL + - 0 FROM tab2 GROUP BY col1
----
0
0
0

query I rowsort
SELECT ALL + 11 * 66 AS col2 FROM tab0 GROUP BY tab0.col0
----
726
726
726

query I rowsort
SELECT ALL - 47 FROM tab0 GROUP BY tab0.col0
----
-47
-47
-47

query I rowsort
SELECT - + 94 AS col1 FROM tab2 GROUP BY tab2.col2
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT DISTINCT 95 DIV 28 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
3

skipif mysql # not compatible
query I rowsort label-1019
SELECT DISTINCT 95 / 28 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
3

query I rowsort
SELECT + 94 AS col0 FROM tab1 cor0 GROUP BY col1
----
94
94
94

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT COALESCE ( - 62, cor0.col1, - 51, - 15 * + cor0.col1 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-62
-62
-62

query I rowsort
SELECT + 30 FROM tab0 GROUP BY tab0.col2
----
30
30
30

query I rowsort
SELECT + 52 FROM tab1 GROUP BY tab1.col2
----
52
52
52

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT + 17 DIV - col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT + 17 / - col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
-2
0
0

query I rowsort
SELECT ALL cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
15
91
92

query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
-19
-45
53

query I rowsort
SELECT DISTINCT - 27 - - cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
-21
17
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
68
68
68

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT DISTINCT + COALESCE ( + 35, + col2, NULLIF ( cor0.col0, - cor0.col0 ) + cor0.col1 * + cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1033
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 78 * + 67 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-5226
-5226

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, col0
----
-58
-79
-87

query I rowsort
SELECT ALL ( + cor0.col0 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2, cor0.col0
----
9 values hashing to 4fe903723f7427a19598c1293ff90703

query I rowsort
SELECT DISTINCT - - 98 AS col0 FROM tab0 GROUP BY tab0.col2
----
98

query I rowsort
SELECT - ( 65 ) FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-65
-65
-65

query I rowsort
SELECT ALL COALESCE ( + 64, - cor0.col1 * - cor0.col1 - cor0.col0 ) * + 33 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1
----
2112
2112
2112

query I rowsort
SELECT cor0.col1 * - 19 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1083
-114
-836

query I rowsort
SELECT ALL cor0.col0 * 86 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
2236
3698
7138

query I rowsort
SELECT cor0.col0 + 76 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
102
119
159

onlyif mysql # DIV for integer division: 
query I rowsort label-1043
SELECT ALL cor0.col1 DIV cor0.col1 + - cor0.col1 * + cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1935
-3248
-35

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL cor0.col1 / cor0.col1 + - cor0.col1 * + cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1935
-3248
-35

query I rowsort
SELECT DISTINCT + tab0.col0 + ( 3 ) FROM tab0 GROUP BY col0
----
29
46
86

onlyif mysql # DIV for integer division: 
query I rowsort label-1045
SELECT ALL + tab0.col2 DIV 51 AS col1 FROM tab0 GROUP BY tab0.col2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL + tab0.col2 / 51 AS col1 FROM tab0 GROUP BY tab0.col2
----
0
0
1

query I rowsort
SELECT - CASE + tab2.col0 WHEN 74 THEN NULL ELSE tab2.col0 END AS col2 FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

query I rowsort
SELECT ALL - + tab0.col0 * - tab0.col0 AS col1 FROM tab0 GROUP BY tab0.col0
----
1849
676
6889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0 AS cor0 GROUP BY col0, col2
----
24
38
79

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
41
59
61

query I rowsort
SELECT DISTINCT 92 FROM tab0 AS cor0 GROUP BY cor0.col1
----
92

query I rowsort
SELECT - - 68 FROM tab2 GROUP BY col0
----
68
68
68

query I rowsort
SELECT ALL col1 + - tab1.col1 FROM tab1 GROUP BY tab1.col1
----
0
0
0

query I rowsort
SELECT + 86 * - tab0.col2 FROM tab0 GROUP BY tab0.col2
----
-2064
-3268
-6794

query I rowsort
SELECT 70 AS col2 FROM tab1 GROUP BY tab1.col1
----
70
70
70

query I rowsort
SELECT + cor0.col2 + cor0.col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
116
158
174

query I rowsort
SELECT + 36 * cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY col0, cor0.col2
----
3276
3312
540

query I rowsort
SELECT ALL cor0.col2 FROM tab0 cor0 GROUP BY col0, cor0.col2
----
24
38
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT - tab1.col2 DIV 61 FROM tab1 GROUP BY tab1.col2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1058
SELECT - tab1.col2 / 61 FROM tab1 GROUP BY tab1.col2
----
-1
0
0

query I rowsort
SELECT ALL - NULLIF ( col1, col0 ) FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-41
-59
-61

query I rowsort
SELECT 45 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
45
45
45

query I rowsort
SELECT ALL + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col2, cor1.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + cor0.col2 * - 11 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-638
-869
-957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
45
71
8

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col0
----
15
91
92

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor1.col0, cor0.col1
----
9 values hashing to ad2e5fa6d094292bda21bf46c78171b8

query I rowsort
SELECT - tab2.col2 + + 96 FROM tab2 GROUP BY tab2.col2
----
17
38
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1067
SELECT ALL + 14 DIV tab1.col2 FROM tab1 GROUP BY tab1.col2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1067
SELECT ALL + 14 / tab1.col2 FROM tab1 GROUP BY tab1.col2
----
0
0
1

query I rowsort
SELECT - 73 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
-73
-73
-73

query I rowsort
SELECT - 95 AS col0 FROM tab0 GROUP BY tab0.col0
----
-95
-95
-95

query I rowsort
SELECT ALL 93 * tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2
----
2232
3534
7347

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT + tab0.col2 DIV - tab0.col2 + + col2 * tab0.col2 AS col0 FROM tab0 GROUP BY col2
----
1443
575
6240

skipif mysql # not compatible
query I rowsort label-1071
SELECT + tab0.col2 / - tab0.col2 + + col2 * tab0.col2 AS col0 FROM tab0 GROUP BY col2
----
1443
575
6240

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
51

query I rowsort
SELECT - cor0.col0 * 52 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1352
-2236
-4316

query I rowsort
SELECT + 92 FROM tab1 AS cor0 GROUP BY col2
----
92
92
92

query I rowsort
SELECT ALL cor0.col1 - - cor0.col2 * + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
2082
5085
70

query I rowsort
SELECT + cor0.col1 * - 72 FROM tab0 AS cor0 GROUP BY col1
----
-5832
0

query I rowsort
SELECT - 34 FROM tab1 AS cor0 GROUP BY col1
----
-34
-34
-34

query I rowsort
SELECT - + 28 FROM tab0 GROUP BY tab0.col2
----
-28
-28
-28

query I rowsort
SELECT DISTINCT 94 * + col2 FROM tab2 GROUP BY tab2.col2
----
5452
7426
8178

query I rowsort
SELECT - 20 + tab1.col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
-12
25
51

query I rowsort
SELECT ALL 98 FROM tab0 AS cor0 GROUP BY cor0.col0
----
98
98
98

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT + cor0.col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1083
SELECT + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + tab1.col1 AS col0 FROM tab1 GROUP BY col1
----
0
0
0

query I rowsort
SELECT cor0.col0 * - cor0.col0 + col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-462
-6642
-756

query I rowsort
SELECT ALL - ( tab2.col0 ) FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

query I rowsort
SELECT ALL + 53 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
53
53
53

query I rowsort
SELECT + - 42 AS col2 FROM tab1 GROUP BY tab1.col0
----
-42
-42
-42

query I rowsort
SELECT ALL col2 * + 94 FROM tab0 AS cor0 GROUP BY cor0.col2
----
2256
3572
7426

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT DISTINCT COALESCE ( 35, - tab0.col2, + tab0.col1 ) FROM tab0 GROUP BY tab0.col0
----
35

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2 cor0 GROUP BY col0, cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT - 31 AS col1 FROM tab1 GROUP BY tab1.col2
----
-31

query I rowsort
SELECT DISTINCT 90 FROM tab1 AS cor0 GROUP BY cor0.col0
----
90

query I rowsort
SELECT + 83 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
83
83
83

query I rowsort
SELECT 28 FROM tab1 cor0 GROUP BY cor0.col1, col0
----
28
28
28

query I rowsort
SELECT ALL - 7 FROM tab0 GROUP BY tab0.col1
----
-7
-7

query I rowsort
SELECT - 40 + - 42 AS col0 FROM tab0 GROUP BY tab0.col1
----
-82
-82

query I rowsort
SELECT - 63 + + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
-20
-37
20

query I rowsort
SELECT - ( col0 ) AS col2 FROM tab0 cor0 GROUP BY cor0.col0, col1
----
-26
-43
-83

query I rowsort
SELECT - + tab0.col2 * - tab0.col2 + - tab0.col2 AS col2 FROM tab0 GROUP BY tab0.col2
----
1406
552
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col2 FROM tab1 GROUP BY tab1.col1
----
-11
-11
-11

query I rowsort
SELECT tab2.col2 * tab2.col2 + tab2.col2 AS col0 FROM tab2 GROUP BY tab2.col2
----
3422
6320
7656

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT cor0.col1 DIV - cor0.col1 col0 FROM tab1 AS cor0 GROUP BY col1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1103
SELECT cor0.col1 / - cor0.col1 col0 FROM tab1 AS cor0 GROUP BY col1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1104
SELECT DISTINCT cor0.col0 DIV - 89 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT cor0.col0 / - 89 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT cor0.col0 * + 51 FROM tab1 AS cor0 GROUP BY col0
----
1122
1428
4182

query I rowsort
SELECT - 72 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-15
-28
-66

query I rowsort
SELECT DISTINCT cor0.col2 - 22 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-14
23
49

query I rowsort
SELECT DISTINCT ( tab2.col0 ) AS col1 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT - 57 AS col1 FROM tab0 GROUP BY tab0.col0
----
-57
-57
-57

query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT + ( 72 ) * + 20 FROM tab1 GROUP BY tab1.col1
----
1440
1440
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-1113
SELECT ALL - cor0.col0 DIV + ( - cor0.col0 ) FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL - cor0.col0 / + ( - cor0.col0 ) FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
1
1
1

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab0 GROUP BY tab0.col0
----
9

query I rowsort
SELECT DISTINCT + + tab1.col1 * + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
1936
3249
36

query I rowsort
SELECT 43 FROM tab1 AS cor0 GROUP BY col0
----
43
43
43

query I rowsort
SELECT 33 * + cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
1452
1881
198

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
15
91
92

query I rowsort
SELECT ALL + 31 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1
----
31
31
31

query I rowsort
SELECT ALL + tab2.col0 + tab2.col0 AS col0 FROM tab2 GROUP BY col0
----
182
184
30

query I rowsort
SELECT DISTINCT - - 95 FROM tab2 GROUP BY tab2.col1
----
95

query I rowsort
SELECT 4 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT COALESCE ( 30, col1 ) + cor0.col0 DIV - cor0.col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
29
29
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort label-1123
SELECT COALESCE ( 30, col1 ) + cor0.col0 / - cor0.col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
29
29
29

query I rowsort
SELECT 35 FROM tab1 GROUP BY col2
----
35
35
35

query I rowsort
SELECT ALL cor0.col2 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1260
176
5822

query I rowsort
SELECT ALL - - 52 + + 61 FROM tab1 GROUP BY tab1.col1
----
113
113
113

query I rowsort
SELECT - 86 + 27 FROM tab0 GROUP BY tab0.col1
----
-59
-59

query I rowsort
SELECT - 46 AS col2 FROM tab1 GROUP BY tab1.col1
----
-46
-46
-46

query I rowsort
SELECT 30 * tab0.col0 AS col1 FROM tab0 GROUP BY tab0.col0
----
1290
2490
780

query I rowsort
SELECT 95 FROM tab0 AS cor0 GROUP BY cor0.col2
----
95
95
95

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col1
----
33

query I rowsort
SELECT DISTINCT + - 21 AS col2 FROM tab0 GROUP BY tab0.col0
----
-21

query I rowsort
SELECT ALL 3 * - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-135
-213
-24

query I rowsort
SELECT 97 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
97
97
97

query I rowsort
SELECT DISTINCT - 0 + + col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1681
3481
3721

query I rowsort
SELECT cor0.col2 - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * - tab0.col1 col2 FROM tab0 GROUP BY tab0.col1
----
-6561
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
11

query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab1 cor0 GROUP BY cor0.col1
----
114
12
88

query I rowsort
SELECT ALL - 70 + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-70
11

query I rowsort
SELECT ALL - + tab2.col2 AS col0 FROM tab2 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT ALL 49 FROM tab2 AS cor0 GROUP BY col2
----
49
49
49

query I rowsort
SELECT + tab2.col2 FROM tab2, tab2 AS cor0 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab2 GROUP BY tab2.col2
----
-81

query I rowsort
SELECT DISTINCT tab2.col2 * - 97 AS col2 FROM tab2 GROUP BY tab2.col2
----
-5626
-7663
-8439

onlyif mysql # DIV for integer division: 
query I rowsort label-1146
SELECT + 14 DIV tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1146
SELECT + 14 / tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
0
0
2

query I rowsort
SELECT + col1 FROM tab1 AS cor0 GROUP BY col0, col1
----
44
57
6

query I rowsort
SELECT - cor0.col0 - + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-166
-52
-86

query I rowsort
SELECT + 78 FROM tab2 GROUP BY tab2.col0
----
78
78
78

query I rowsort
SELECT 6 AS col1 FROM tab2 GROUP BY tab2.col0
----
6
6
6

query I rowsort
SELECT ALL 0 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT 8 + + tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
100
23
99

query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
26
43
83

query I rowsort
SELECT - 67 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1474
-1876
-5494

query I rowsort
SELECT 83 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + COALESCE ( tab2.col1, tab2.col1 ) col0 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT ALL 77 AS col2 FROM tab1 GROUP BY tab1.col1
----
77
77
77

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col2 * col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-1980
-4970
-56

query I rowsort
SELECT 87 FROM tab2 cor0 GROUP BY cor0.col2
----
87
87
87

query I rowsort
SELECT + 14 * tab0.col0 + col0 AS col1 FROM tab0 GROUP BY col0
----
1245
390
645

query I rowsort
SELECT + tab0.col2 + col2 FROM tab0 GROUP BY tab0.col2
----
158
48
76

query I rowsort
SELECT - 72 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-72
-72
-72

query I rowsort
SELECT tab0.col2 * tab0.col2 FROM tab0 GROUP BY tab0.col2 HAVING ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT + 22 * + 26 FROM tab0 GROUP BY tab0.col0
----
572
572
572

query I rowsort
SELECT ALL - + 73 * - tab2.col1 AS col0 FROM tab2 GROUP BY tab2.col1
----
2993
4307
4453

query I rowsort
SELECT 81 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col1
----
81
81
81

query I rowsort
SELECT DISTINCT - 50 + 80 AS col2 FROM tab2 AS cor0 GROUP BY col0
----
30

query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
79

query I rowsort
SELECT 89 * tab2.col2 AS col1 FROM tab2 GROUP BY tab2.col2
----
5162
7031
7743

query I rowsort
SELECT col2 + col2 FROM tab2 GROUP BY tab2.col2
----
116
158
174

query I rowsort
SELECT DISTINCT - - 22 FROM tab1 GROUP BY tab1.col1
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-1173
SELECT DISTINCT cor0.col1 DIV - 78 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT cor0.col1 / - 78 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
-1
0

query I rowsort
SELECT + ( + 66 ) AS col0 FROM tab2 GROUP BY tab2.col2
----
66
66
66

query I rowsort
SELECT 6 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
6
6
6

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
28

query I rowsort
SELECT + 33 FROM tab0 cor0 GROUP BY cor0.col2
----
33
33
33

query I rowsort
SELECT - 13 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
45
66
74

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
-24
-38
-79

query I rowsort
SELECT DISTINCT - 53 FROM tab2 GROUP BY tab2.col1
----
-53

query I rowsort
SELECT + - 10 FROM tab0 GROUP BY tab0.col0
----
-10
-10
-10

query I rowsort
SELECT ALL + 93 AS col0 FROM tab2 cor0 GROUP BY col2, col2
----
93
93
93

query I rowsort
SELECT 41 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
41
41

query I rowsort
SELECT DISTINCT ( 81 ) AS col0 FROM tab2 GROUP BY tab2.col2
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 GROUP BY tab1.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 GROUP BY tab1.col2
----
NULL

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT cor0.col2 DIV + 65 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1187
SELECT cor0.col2 / + 65 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
1
1

query I rowsort
SELECT 5 FROM tab1 GROUP BY col0
----
5
5
5

query I rowsort
SELECT 90 FROM tab2 cor0 GROUP BY cor0.col1
----
90
90
90

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY col0, col2
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT DISTINCT + cor0.col1 * CAST( 11 AS SIGNED ) FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
451
649
671

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + cor0.col1 * CAST ( 11 AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
451
649
671

query I rowsort
SELECT - 25 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + tab1.col1 - - tab1.col1 * tab1.col1 FROM tab1 GROUP BY tab1.col1
----
1980
3306
42

query I rowsort
SELECT ALL col1 * tab1.col1 AS col2 FROM tab1 GROUP BY col1
----
1936
3249
36

query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 FROM tab1 GROUP BY col2
----
-2025
-5041
-64

query I rowsort
SELECT DISTINCT - - tab1.col0 * - 50 + tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-1078
-1372
-4018

query I rowsort
SELECT ALL + tab0.col2 * col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
1444
576
6241

query I rowsort
SELECT ALL + - tab1.col0 + tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
0
0
0

query I rowsort
SELECT cor0.col1 * cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
1681
3481
3721

query I rowsort
SELECT 88 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
88
88
88

query I rowsort
SELECT ( cor0.col0 ) * - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1849
-676
-6889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab1 GROUP BY col1
----
44
57
6

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-10

query I rowsort
SELECT ALL col2 * - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-2025
-5041
-64

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
-26
-43
-83

query I rowsort
SELECT + - 14 FROM tab0 GROUP BY col1
----
-14
-14

query I rowsort
SELECT - cor0.col2 + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
0
0
0

query I rowsort
SELECT ALL 27 - - 39 * - 18 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-675
-675
-675

query I rowsort
SELECT + cor0.col1 - + 85 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
-24
-26
-44

query I rowsort
SELECT + ( 94 ) * - tab1.col2 FROM tab1 GROUP BY col2
----
-4230
-6674
-752

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT ALL + - COALESCE ( + 25, tab2.col2 + + tab2.col1, tab2.col1 * tab2.col0 ) AS col0 FROM tab2 GROUP BY col1
----
-25
-25
-25

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT + CASE - 35 WHEN + tab2.col0 + - tab2.col0 THEN NULL WHEN - 76 THEN - tab2.col2 ELSE + 3 END FROM tab2 GROUP BY tab2.col0
----
3
3
3

query I rowsort
SELECT DISTINCT + 69 AS col2 FROM tab1 GROUP BY col1
----
69

query I rowsort
SELECT + 90 FROM tab0 GROUP BY tab0.col1
----
90
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT - tab2.col1 DIV - col1 FROM tab2 GROUP BY tab2.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1215
SELECT - tab2.col1 / - col1 FROM tab2 GROUP BY tab2.col1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1216
SELECT ALL - CAST( 12 AS SIGNED ) FROM tab0 GROUP BY tab0.col0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL - CAST ( 12 AS INTEGER ) FROM tab0 GROUP BY tab0.col0
----
-12
-12
-12

query I rowsort
SELECT ALL + tab0.col1 - - 13 FROM tab0 GROUP BY tab0.col1
----
13
94

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT DISTINCT 81 DIV - tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT 81 / - tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-2
-3
0

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT 98 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
98
98
98

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor1.col2, cor0.col0
----
-26
-43
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 64 col1 FROM tab1, tab1 AS cor0 GROUP BY tab1.col2
----
-64

query I rowsort
SELECT + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL - 80 * + tab0.col0 AS col1 FROM tab0 GROUP BY tab0.col0
----
-2080
-3440
-6640

query I rowsort
SELECT DISTINCT + 27 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
27

query I rowsort
SELECT 9 FROM tab0 AS cor0 GROUP BY cor0.col1
----
9
9

query I rowsort
SELECT DISTINCT - 53 FROM tab2 GROUP BY col0
----
-53

query I rowsort
SELECT DISTINCT + - 69 AS col0 FROM tab0 GROUP BY col0
----
-69

query I rowsort
SELECT tab1.col2 * col2 FROM tab1 GROUP BY tab1.col2
----
2025
5041
64

query I rowsort
SELECT + 35 AS col2 FROM tab1 GROUP BY tab1.col2
----
35
35
35

query I rowsort
SELECT - tab0.col0 * - tab0.col0 + col0 AS col2 FROM tab0 GROUP BY tab0.col0
----
1892
6972
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * 31 col1 FROM tab2 AS cor0 GROUP BY col2, cor0.col1, col1
----
1271
1829
1891

query I rowsort
SELECT 89 FROM tab1 GROUP BY tab1.col2
----
89
89
89

query I rowsort
SELECT DISTINCT + 97 FROM tab0 GROUP BY tab0.col1
----
97

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT - 22 * 13 - tab2.col0 AS col1 FROM tab2 GROUP BY tab2.col0
----
-301
-377
-378

query I rowsort
SELECT - + 71 FROM tab1 GROUP BY tab1.col0
----
-71
-71
-71

query I rowsort
SELECT + 50 - + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-7
44
6

query I rowsort
SELECT ALL + + 7 FROM tab2 GROUP BY tab2.col0
----
7
7
7

query I rowsort
SELECT ALL cor0.col0 * 71 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1065
6461
6532

query I rowsort
SELECT cor0.col2 + - 70 FROM tab0 AS cor0 GROUP BY col2
----
-32
-46
9

query I rowsort
SELECT + 23 + + 85 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
108
108
108

query I rowsort
SELECT ALL 27 FROM tab0 GROUP BY tab0.col2
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - 9 col1 FROM tab2 AS cor0 GROUP BY col1
----
32
50
52

query I rowsort
SELECT 95 * tab2.col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
5510
7505
8265

query I rowsort
SELECT + cor0.col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL GROUP BY cor0.col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
54
54
54

query I rowsort
SELECT 0 * 24 + + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL cor0.col0 + 53 * 98 FROM tab0 AS cor0 GROUP BY col0
----
5220
5237
5277

query I rowsort
SELECT - 2 * col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
-114
-12
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col1 FROM tab2 cor0 GROUP BY col1, cor0.col2
----
-63

query I rowsort
SELECT ALL 50 AS col0 FROM tab0 GROUP BY tab0.col0
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT DISTINCT + - tab1.col2 DIV tab1.col2 FROM tab1 GROUP BY col2
----
-1

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT + - tab1.col2 / tab1.col2 FROM tab1 GROUP BY col2
----
-1

query I rowsort
SELECT ALL + 35 AS col1 FROM tab1 cor0 GROUP BY cor0.col0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT ALL - + col2 DIV tab1.col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - + col2 / tab1.col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT ALL + cor0.col1 + + col1 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
118
122
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - tab0.col2 + ( 20 ) * - col2 col2 FROM tab0 GROUP BY tab0.col2
----
-1501
-456
-722

query I rowsort
SELECT + col2 * col2 FROM tab2 GROUP BY tab2.col2
----
3364
6241
7569

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-34

query I rowsort
SELECT ALL 84 * - cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-4872
-6636
-7308

query I rowsort
SELECT - tab2.col2 * - tab2.col2 FROM tab2 GROUP BY col2
----
3364
6241
7569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 95 ) col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-95
-95
-95

query I rowsort
SELECT cor0.col0 - - 37 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
119
59
65

query I rowsort
SELECT - 57 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-57
-57
-57

query I rowsort
SELECT - + 89 * tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
-1335
-8099
-8188

query I rowsort
SELECT - 55 FROM tab0 GROUP BY col0
----
-55
-55
-55

query I rowsort
SELECT + - 63 + tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
-19
-57
-6

query I rowsort
SELECT ALL - 91 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-91
-91
-91

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
-22
-28
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 77 ) - cor0.col0 col0 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
-168
-169
-92

query I rowsort
SELECT ALL + tab2.col2 * 6 AS col1 FROM tab2 GROUP BY col2
----
348
474
522

query I rowsort
SELECT DISTINCT cor0.col1 + + 87 FROM tab1 AS cor0 GROUP BY cor0.col1
----
131
144
93

query I rowsort
SELECT DISTINCT 4 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT - cor0.col2 DIV + 62 + cor0.col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
45
70
8

skipif mysql # not compatible
query I rowsort label-1275
SELECT - cor0.col2 / + 62 + cor0.col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
45
70
8

query I rowsort
SELECT ALL + 69 FROM tab0 GROUP BY tab0.col0
----
69
69
69

query I rowsort
SELECT + 71 AS col1 FROM tab1 GROUP BY tab1.col1
----
71
71
71

query I rowsort
SELECT + col2 * + 37 FROM tab1 GROUP BY tab1.col2
----
1665
2627
296

query I rowsort
SELECT 94 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
94
94

query I rowsort
SELECT ALL + 19 FROM tab2 AS cor0 GROUP BY cor0.col1
----
19
19
19

query I rowsort
SELECT 23 * + 56 AS col0 FROM tab0 cor0 GROUP BY cor0.col0
----
1288
1288
1288

onlyif mysql # DIV for integer division: 
query I rowsort label-1282
SELECT ALL - cor0.col1 DIV + 23 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3
0

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - cor0.col1 / + 23 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3
0

query I rowsort
SELECT DISTINCT + - tab0.col1 FROM tab0 GROUP BY col1
----
-81
0

query I rowsort
SELECT DISTINCT - + 1 FROM tab0 GROUP BY tab0.col1
----
-1

query I rowsort
SELECT DISTINCT + + ( - 27 ) FROM tab1 GROUP BY tab1.col1
----
-27

query I rowsort
SELECT - 86 AS col1 FROM tab2 GROUP BY tab2.col2
----
-86
-86
-86

query I rowsort
SELECT - 63 * - 84 FROM tab0 GROUP BY tab0.col2
----
5292
5292
5292

query I rowsort
SELECT 65 FROM tab0 cor0 GROUP BY col0
----
65
65
65

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

query I rowsort
SELECT ALL + 20 - 11 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
9
9
9

query I rowsort
SELECT ( 22 ) FROM tab0 GROUP BY tab0.col0
----
22
22
22

query I rowsort
SELECT ALL + 48 + + tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
139
140
63

query I rowsort
SELECT + 44 * tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
1804
2596
2684

query I rowsort
SELECT + 89 AS col2 FROM tab1 GROUP BY tab1.col1
----
89
89
89

query I rowsort
SELECT DISTINCT - 9 + + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
13
19
73

query I rowsort
SELECT tab0.col0 * 83 + + tab0.col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
2184
3612
6972

query I rowsort
SELECT DISTINCT cor0.col1 - 8 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
33
51
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col1 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT ALL + 28 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
28
28
28

query I rowsort
SELECT 0 * cor0.col2 + - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
54

query I rowsort
SELECT ALL 61 FROM tab0 GROUP BY col1
----
61
61

query I rowsort
SELECT 0 AS col2 FROM tab2 GROUP BY tab2.col2
----
0
0
0

query I rowsort
SELECT DISTINCT + - 47 FROM tab1 GROUP BY col1
----
-47

query I rowsort
SELECT DISTINCT - - 94 FROM tab0 GROUP BY col1
----
94

query I rowsort
SELECT ALL 61 + + col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
142
61

query I rowsort
SELECT ALL + 28 AS col0 FROM tab2 GROUP BY tab2.col0
----
28
28
28

query I rowsort
SELECT 56 AS col2 FROM tab0 GROUP BY tab0.col1
----
56
56

query I rowsort
SELECT NULLIF ( - cor0.col2, cor0.col2 ) + cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col0
----
1406
552
6162

query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-39

query I rowsort
SELECT ALL NULLIF ( cor0.col2, + cor0.col2 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + tab0.col2 * 1 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT + 44 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
44
44

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
86

query I rowsort
SELECT DISTINCT - 84 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1316
SELECT ALL cor0.col0 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL cor0.col0 / + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( tab2.col2 ) * - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
3364
6241
7569

query I rowsort
SELECT ALL 94 * - COALESCE ( - cor0.col0 * + cor0.col0, - 69 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
45496
632056
73696

query I rowsort
SELECT DISTINCT - 70 AS col1 FROM tab2 GROUP BY tab2.col1
----
-70

query I rowsort
SELECT ALL tab0.col2 AS col1 FROM tab0 GROUP BY col2 HAVING NOT NULL IS NOT NULL
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 cor0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT ALL 10 FROM tab0 AS cor0 GROUP BY cor0.col1
----
10
10

query I rowsort
SELECT 48 + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
119
56
93

query I rowsort
SELECT ALL + + 30 FROM tab0 GROUP BY tab0.col0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT tab2.col2 DIV tab2.col2 AS col0 FROM tab2 GROUP BY col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1325
SELECT tab2.col2 / tab2.col2 AS col0 FROM tab2 GROUP BY col2
----
1
1
1

query I rowsort
SELECT + + tab0.col2 AS col0 FROM tab0 GROUP BY col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * + 25 col0 FROM tab0 GROUP BY tab0.col0
----
1075
2075
650

query I rowsort
SELECT - 31 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1329
SELECT ALL tab0.col2 DIV - 22 AS col0 FROM tab0 GROUP BY col2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL tab0.col2 / - 22 AS col0 FROM tab0 GROUP BY col2
----
-1
-1
-3

query I rowsort
SELECT - tab1.col2 AS col2 FROM tab1, tab2 AS cor0 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT - - 8 AS col1 FROM tab0 GROUP BY col0
----
8
8
8

query I rowsort
SELECT ALL + ( + cor0.col1 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT ALL 39 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
121
61
67

query I rowsort
SELECT - 16 + col0 FROM tab1 GROUP BY col0
----
12
6
66

query I rowsort
SELECT DISTINCT + 48 + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
106
127
135

query I rowsort
SELECT 57 AS col2 FROM tab2 GROUP BY tab2.col0
----
57
57
57

query I rowsort
SELECT 64 * 88 FROM tab0 GROUP BY tab0.col0
----
5632
5632
5632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab0 GROUP BY tab0.col2
----
-52
-52
-52

query I rowsort
SELECT DISTINCT - 0 * cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT cor0.col0 DIV 30 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1340
SELECT cor0.col0 / 30 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
1
2

query I rowsort
SELECT DISTINCT - 39 + - 66 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-105

query I rowsort
SELECT - col2 * cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
-2025
-5041
-64

query I rowsort
SELECT - 5 FROM tab0 AS cor0 GROUP BY col0
----
-5
-5
-5

query I rowsort
SELECT + 55 FROM tab0 GROUP BY tab0.col1
----
55
55

query I rowsort
SELECT ALL 35 * - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
-3185
-3220
-525

query I rowsort
SELECT 23 FROM tab2 AS cor0 GROUP BY cor0.col0
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT DISTINCT 64 DIV + col0 + cor0.col0 * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
486
6724
786

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT 64 / + col0 + cor0.col0 * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
486
6724
786

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-225
-8281
-8464

query I rowsort
SELECT + NULLIF ( - cor0.col0, cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT 79 + - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-8
0
21

query I rowsort
SELECT DISTINCT - tab0.col0 + tab0.col0 FROM tab0 GROUP BY tab0.col0 HAVING NULL IS NOT NULL
----

query I rowsort
SELECT col2 - + col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
0
0
0

query I rowsort
SELECT 82 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
82
82
82

onlyif mysql # DIV for integer division: 
query I rowsort label-1354
SELECT ALL + - tab1.col0 DIV tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL + - tab1.col0 / tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-1
-1
-1

query I rowsort
SELECT cor0.col1 * - cor0.col1 FROM tab2 cor0 GROUP BY cor0.col0, col1, cor0.col0
----
-1681
-3481
-3721

query I rowsort
SELECT ALL cor0.col2 + + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY col0, cor0.col2
----
153
30
73

query I rowsort
SELECT ALL + tab1.col0 + - tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
0
0
0

query I rowsort
SELECT + col2 + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
116
158
174

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0 AS cor0 GROUP BY col2, col0
----
26
43
83

query I rowsort
SELECT ALL + 39 FROM tab1 GROUP BY tab1.col2
----
39
39
39

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
60

query I rowsort
SELECT DISTINCT + col0 * + tab2.col0 FROM tab2 GROUP BY tab2.col0
----
225
8281
8464

query I rowsort
SELECT ALL 0 FROM tab2 GROUP BY col1
----
0
0
0

query I rowsort
SELECT + 50 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1365
SELECT DISTINCT CAST( NULL AS SIGNED ) + - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT col1 * 96 AS col1 FROM tab0 GROUP BY col1
----
0
7776

query I rowsort
SELECT ALL - 85 AS col1 FROM tab0 GROUP BY tab0.col1
----
-85
-85

query I rowsort
SELECT + 43 AS col0 FROM tab1 GROUP BY tab1.col1
----
43
43
43

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-52

query I rowsort
SELECT cor0.col2 + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT ALL + - tab2.col2 * + tab2.col2 FROM tab2 GROUP BY col2
----
-3364
-6241
-7569

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col2
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab2 GROUP BY tab2.col2
----
81
81
81

query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
105
121
67

query I rowsort
SELECT DISTINCT 75 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1376
SELECT ALL tab2.col1 DIV col1 + 52 * 75 FROM tab2 GROUP BY tab2.col1
----
3901
3901
3901

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL tab2.col1 / col1 + 52 * 75 FROM tab2 GROUP BY tab2.col1
----
3901
3901
3901

query I rowsort
SELECT ALL - 22 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-22
-22
-22

query I rowsort
SELECT + 93 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
93
93
93

query I rowsort
SELECT DISTINCT - 98 FROM tab0 cor0 GROUP BY cor0.col1
----
-98

query I rowsort
SELECT - cor0.col1 + 51 * 15 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
684
765

query I rowsort
SELECT ALL - 56 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-56
-56
-56

query I rowsort
SELECT - cor0.col0 * cor0.col0 FROM tab1 AS cor0 GROUP BY col0
----
-484
-6724
-784

query I rowsort
SELECT DISTINCT + tab0.col2 + + col2 FROM tab0 GROUP BY tab0.col2
----
158
48
76

query I rowsort
SELECT DISTINCT - 6 * - tab2.col1 AS col0 FROM tab2 GROUP BY tab2.col1
----
246
354
366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

onlyif mysql # DIV for integer division: 
query I rowsort label-1386
SELECT + + 89 DIV 89 col1 FROM tab0 GROUP BY tab0.col0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1386
SELECT + + 89 / 89 col1 FROM tab0 GROUP BY tab0.col0
----
1
1
1

query I rowsort
SELECT ALL 74 - - cor0.col1 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
110
2010
3323

query I rowsort
SELECT 43 FROM tab1 AS cor0 GROUP BY col1
----
43
43
43

query I rowsort
SELECT 16 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
16
16
16

query I rowsort
SELECT DISTINCT 73 * + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1898
3139
6059

query I rowsort
SELECT col1 + - 21 FROM tab1 AS cor0 GROUP BY col1
----
-15
23
36

query I rowsort
SELECT ALL + 23 - - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
31
68
94

query I rowsort
SELECT 20 * cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col0
----
1640
440
560

query I rowsort
SELECT + 85 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT DISTINCT + cor0.col2 DIV 12 FROM tab2 AS cor0 GROUP BY cor0.col2
----
4
6
7

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT + cor0.col2 / 12 FROM tab2 AS cor0 GROUP BY cor0.col2
----
4
6
7

query I rowsort
SELECT - cor0.col2 + + 65 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-14
-22
7

query I rowsort
SELECT ALL + 19 * col1 AS col0 FROM tab1 cor0 GROUP BY col1
----
1083
114
836

query I rowsort
SELECT 10 + col2 FROM tab0 GROUP BY tab0.col2
----
34
48
89

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

query I rowsort
SELECT ALL 91 FROM tab1 GROUP BY tab1.col0
----
91
91
91

query I rowsort
SELECT ALL + - 85 FROM tab2 GROUP BY tab2.col1
----
-85
-85
-85

query I rowsort
SELECT DISTINCT 87 * - cor0.col2 + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0
----
-4988
-6794
-7482

query I rowsort
SELECT - ( + 87 ) AS col2 FROM tab1 GROUP BY tab1.col2
----
-87
-87
-87

query I rowsort
SELECT ALL 13 + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, col1, cor0.col0
----
39
56
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
19

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
24
38
79

query I rowsort
SELECT - - 74 AS col2 FROM tab1 GROUP BY tab1.col0
----
74
74
74

query I rowsort
SELECT + 80 FROM tab1 GROUP BY tab1.col2
----
80
80
80

query I rowsort
SELECT - 52 * - col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
2288
2964
312

query I rowsort
SELECT + 56 AS col1 FROM tab0 GROUP BY tab0.col0
----
56
56
56

query I rowsort
SELECT - + tab1.col0 * + tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
-484
-6724
-784

onlyif mysql # DIV for integer division: 
query I rowsort label-1413
SELECT + 97 DIV cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-1413
SELECT + 97 / cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
6

query I rowsort
SELECT ALL - 35 AS col1 FROM tab1 GROUP BY tab1.col1
----
-35
-35
-35

query I rowsort
SELECT + 65 + col2 * tab1.col2 FROM tab1 GROUP BY tab1.col2
----
129
2090
5106

query I rowsort
SELECT - + 1 + tab0.col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
-1
80

query I rowsort
SELECT ALL + + 65 FROM tab2 GROUP BY tab2.col2
----
65
65
65

query I rowsort
SELECT DISTINCT 9 FROM tab1 GROUP BY tab1.col1
----
9

query I rowsort
SELECT DISTINCT 19 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1
----
19

query I rowsort
SELECT ( 17 ) + 18 FROM tab1 AS cor0 GROUP BY col0
----
35
35
35

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1 HAVING - col1 IS NOT NULL
----
0
81

query I rowsort
SELECT DISTINCT col0 * tab0.col0 AS col2 FROM tab0 WHERE NOT + tab0.col1 * tab0.col0 IS NULL GROUP BY tab0.col0 HAVING NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + col2 col0 FROM tab2 GROUP BY tab2.col2
----
0
0
0

query I rowsort
SELECT col0 + - cor0.col0 * + col0 FROM tab0 AS cor0 GROUP BY col0
----
-1806
-650
-6806

query I rowsort
SELECT DISTINCT 95 FROM tab1 GROUP BY tab1.col1
----
95

query I rowsort
SELECT 57 + - col2 * col2 FROM tab0 cor0 GROUP BY cor0.col2
----
-1387
-519
-6184

query I rowsort
SELECT + ( + 47 ) FROM tab2 GROUP BY tab2.col1
----
47
47
47

query I rowsort
SELECT DISTINCT + 36 FROM tab2 GROUP BY tab2.col2
----
36

query I rowsort
SELECT - ( 87 ) FROM tab2 GROUP BY tab2.col1
----
-87
-87
-87

query I rowsort
SELECT ALL 45 FROM tab2 AS cor0 GROUP BY cor0.col0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + 67 col2 FROM tab1 GROUP BY tab1.col1
----
10
23
61

query I rowsort
SELECT ALL + tab1.col1 * 37 - - 10 FROM tab1 GROUP BY tab1.col1
----
1638
2119
232

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT - 92 + + 81 * tab0.col0 FROM tab0 GROUP BY tab0.col0
----
2014
3391
6631

onlyif mysql # DIV for integer division: 
query I rowsort label-1435
SELECT DISTINCT + + tab1.col0 DIV 84 - + 96 AS col2 FROM tab1 GROUP BY tab1.col0
----
-96

skipif mysql # not compatible
query I rowsort label-1435
SELECT DISTINCT + + tab1.col0 / 84 - + 96 AS col2 FROM tab1 GROUP BY tab1.col0
----
-96

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
114
12
88

query I rowsort
SELECT ALL + NULLIF ( 60, cor0.col2 ) FROM tab2 cor0 GROUP BY cor0.col2
----
60
60
60

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab1 GROUP BY tab1.col1
----
9

query I rowsort
SELECT 36 * + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1548
2988
936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-43
-5
-56

query I rowsort
SELECT cor0.col2 + - 38 FROM tab0 cor0 GROUP BY cor0.col2
----
-14
0
41

query I rowsort
SELECT + + 65 FROM tab2 GROUP BY tab2.col1
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - tab0.col2 col2 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT ALL - tab1.col1 * tab1.col1 AS col2 FROM tab1 GROUP BY col1
----
-1936
-3249
-36

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT cor0.col0 + col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT + 82 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
82
82
82

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
3364
6241
7569

onlyif mysql # DIV for integer division: 
query I rowsort label-1449
SELECT 96 DIV - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1449
SELECT 96 / - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1
-2
-4

query I rowsort
SELECT ALL + 22 * + cor0.col2 - cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1218
1659
1827

query I rowsort
SELECT ALL 83 * col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
3735
5893
664

query I rowsort
SELECT 20 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
20
20
20

query I rowsort
SELECT ALL + 69 + + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
127
148
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - tab0.col1 col2 FROM tab0 GROUP BY col1
----
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 col2 FROM tab2 GROUP BY col0
----
15
91
92

query I rowsort
SELECT - 77 - + col2 FROM tab2 GROUP BY tab2.col2
----
-135
-156
-164

query I rowsort
SELECT ALL + 5 FROM tab0 GROUP BY tab0.col0
----
5
5
5

query I rowsort
SELECT - 73 AS col1 FROM tab2 GROUP BY tab2.col0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT ALL col2 * tab1.col2 FROM tab1 GROUP BY tab1.col2
----
2025
5041
64

query I rowsort
SELECT DISTINCT - 51 FROM tab0 cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT ALL - CASE + cor0.col0 WHEN - cor0.col0 THEN NULL ELSE CAST( - 59 AS SIGNED ) END FROM tab0 AS cor0 GROUP BY cor0.col0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL - CASE + cor0.col0 WHEN - cor0.col0 THEN NULL ELSE CAST ( - 59 AS INTEGER ) END FROM tab0 AS cor0 GROUP BY cor0.col0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 + 33 col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
35
35
35

query I rowsort
SELECT DISTINCT CASE cor0.col2 WHEN CASE - 14 WHEN cor0.col0 THEN cor0.col0 + 95 * + cor0.col0 WHEN - cor0.col2 THEN cor0.col2 END THEN + col2 WHEN - col2 THEN + col0 WHEN + col0 THEN NULL END AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
NULL

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
24
38
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT ALL tab0.col2 DIV 82 AS col2 FROM tab0 GROUP BY tab0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL tab0.col2 / 82 AS col2 FROM tab0 GROUP BY tab0.col2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT col2 DIV cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1468
SELECT col2 / cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT DISTINCT 38 * 30 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1140

query I rowsort
SELECT + 28 * col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
2268

query I rowsort
SELECT DISTINCT + cor0.col2 + 14 FROM tab2 AS cor0 GROUP BY cor0.col2
----
101
72
93

query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
1260
176
5822

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT ALL - - col0 DIV - tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - - col0 / - tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
-1
-1
-1

query I rowsort
SELECT - 31 + tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
-23
14
40

query I rowsort
SELECT ALL 24 + 27 FROM tab1 GROUP BY tab1.col2
----
51
51
51

query I rowsort
SELECT ALL - tab2.col2 * 88 FROM tab2 GROUP BY tab2.col2
----
-5104
-6952
-7656

query I rowsort
SELECT - 56 FROM tab1 AS cor0 GROUP BY col2
----
-56
-56
-56

query I rowsort
SELECT ALL - + 46 + + tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
-18
-24
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * + 72 col1 FROM tab1 GROUP BY tab1.col1
----
3168
4104
432

query I rowsort
SELECT ALL - 43 FROM tab0 cor0 GROUP BY cor0.col2
----
-43
-43
-43

query I rowsort
SELECT DISTINCT + - 85 FROM tab2 GROUP BY tab2.col0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT DISTINCT - 28 DIV 2 AS col0 FROM tab1 GROUP BY tab1.col1
----
-14

skipif mysql # not compatible
query I rowsort label-1482
SELECT DISTINCT - 28 / 2 AS col0 FROM tab1 GROUP BY tab1.col1
----
-14

query I rowsort
SELECT ALL + 1 AS col2 FROM tab2 GROUP BY tab2.col1
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1484
SELECT DISTINCT 47 DIV - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1
0

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT 47 / - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1
0

query I rowsort
SELECT ALL 63 FROM tab0 GROUP BY tab0.col2
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT DISTINCT + cor0.col2 DIV 92 + + 53 DIV + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col2
----
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT + cor0.col2 / 92 + + 53 / + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col2
----
0

query I rowsort
SELECT ALL + 79 AS col0 FROM tab0 GROUP BY tab0.col0
----
79
79
79

query I rowsort
SELECT DISTINCT 78 FROM tab2, tab2 AS cor0 GROUP BY tab2.col2
----
78

query I rowsort
SELECT ALL + 79 + + cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
123
136
85

query I rowsort
SELECT ALL - NULLIF ( - 51, - 49 * cor0.col2 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-63

query I rowsort
SELECT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab2 GROUP BY tab2.col0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 36 col2 FROM tab1 GROUP BY tab1.col0
----
-36

query I rowsort
SELECT DISTINCT - 83 FROM tab0 GROUP BY tab0.col0
----
-83

query I rowsort
SELECT DISTINCT - - 33 * tab2.col0 FROM tab2 GROUP BY tab2.col0
----
3003
3036
495

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL + 55 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
55
55
55

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1032
2054
3154

query I rowsort
SELECT + 14 AS col0 FROM tab0 GROUP BY tab0.col2
----
14
14
14

query I rowsort
SELECT ALL - + 58 AS col1 FROM tab0 GROUP BY tab0.col1
----
-58
-58

query I rowsort
SELECT - 50 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1
----
-50
-50
-50

query I rowsort
SELECT ALL 66 FROM tab0 GROUP BY tab0.col0
----
66
66
66

query I rowsort
SELECT + 49 AS col0 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
49
49
49

query I rowsort
SELECT + 70 AS col2 FROM tab2 GROUP BY tab2.col2
----
70
70
70

query I rowsort
SELECT ALL - tab2.col2 * 38 AS col1 FROM tab2 GROUP BY tab2.col2
----
-2204
-3002
-3306

query I rowsort
SELECT - + 80 FROM tab1 GROUP BY tab1.col2
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 col1 FROM tab2 AS cor0 GROUP BY col2
----
3364
6241
7569

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
166
52
86

query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
26
43
83

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - 96 * cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col0
----
-2112
-2688
-7872

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL + 95 FROM tab1 AS cor0 GROUP BY cor0.col2
----
95
95
95

query I rowsort
SELECT cor0.col1 - 15 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
-15
-15
66

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT DISTINCT cor0.col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT cor0.col2 / cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1

query I rowsort
SELECT ALL + 81 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT DISTINCT ( 28 ) DIV - cor0.col2 + 80 FROM tab0 AS cor0 GROUP BY cor0.col2
----
79
80

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT ( 28 ) / - cor0.col2 + 80 FROM tab0 AS cor0 GROUP BY cor0.col2
----
79
80

query I rowsort
SELECT 27 + - col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-14
-32
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT + + col2 AS col2 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + - tab2.col2 * + 20 + - 70 FROM tab2 GROUP BY tab2.col2
----
-1230
-1650
-1810

query I rowsort
SELECT DISTINCT tab2.col0 * + col0 FROM tab2 GROUP BY tab2.col0
----
225
8281
8464

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
80

query I rowsort
SELECT DISTINCT + cor0.col1 * 82 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6642

query I rowsort
SELECT - 7 * col1 + + 1 AS col1 FROM tab2 GROUP BY tab2.col1
----
-286
-412
-426

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT - 14 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-14
-14
-14

query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT ALL ( cor0.col2 ) * + 73 FROM tab1 AS cor0 GROUP BY cor0.col2
----
3285
5183
584

query I rowsort
SELECT DISTINCT 28 - - cor0.col1 * col1 FROM tab2 cor0 GROUP BY cor0.col1
----
1709
3509
3749

query I rowsort
SELECT + 50 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
50
50
50

query I rowsort
SELECT 68 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0, cor0.col0
----
68
68
68

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab0 GROUP BY tab0.col2
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + 8 FROM tab0 AS cor0 GROUP BY cor0.col2
----
8

query I rowsort
SELECT ALL - 9 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-9
-9
-9

query I rowsort
SELECT + + 74 FROM tab0 GROUP BY tab0.col1
----
74
74

query I rowsort
SELECT 3 FROM tab1 GROUP BY tab1.col1
----
3
3
3

query I rowsort
SELECT - 94 FROM tab2 cor0 GROUP BY cor0.col1
----
-94
-94
-94

query I rowsort
SELECT ALL + tab2.col0 * tab2.col0 AS col2 FROM tab2 GROUP BY tab2.col0
----
225
8281
8464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col1 FROM tab0 AS cor0 GROUP BY col0
----
41
41
41

query I rowsort
SELECT ALL + tab0.col2 + tab0.col2 * 84 AS col1 FROM tab0 GROUP BY tab0.col2
----
2040
3230
6715

query I rowsort
SELECT ALL - 48 AS col2 FROM tab2 GROUP BY tab2.col2
----
-48
-48
-48

query I rowsort
SELECT + 15 FROM tab2 AS cor0 GROUP BY col1
----
15
15
15

query I rowsort
SELECT col1 * 29 - tab1.col1 AS col1 FROM tab1 GROUP BY col1
----
1232
1596
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-2112
-3344
-6952

query I rowsort
SELECT cor0.col2 * - 67 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1608
-2546
-5293

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
26
43
83

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab2 cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col2 FROM tab1 GROUP BY tab1.col0
----
5
5
5

query I rowsort
SELECT 2 + - cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY col1
----
-79
2

query I rowsort
SELECT DISTINCT - 80 FROM tab0 GROUP BY tab0.col2
----
-80

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-81
0

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 + col2 AS col1 FROM tab1 AS cor0 GROUP BY col2
----
-1980
-4970
-56

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT cor0.col0 - col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT + 20 * - 60 AS col0 FROM tab1 GROUP BY tab1.col0
----
-1200
-1200
-1200

query I rowsort
SELECT DISTINCT + 86 * tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
1892
2408
7052

query I rowsort
SELECT + cor0.col1 + - 55 * 64 FROM tab0 AS cor0 GROUP BY col1
----
-3439
-3520

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab1 GROUP BY col0
----
34

query I rowsort
SELECT + tab2.col0 * - 25 FROM tab2 GROUP BY tab2.col0
----
-2275
-2300
-375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 col2 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT ALL cor0.col0 * 93 FROM tab0 AS cor0 GROUP BY col0, col2
----
2418
3999
7719

query I rowsort
SELECT + col1 + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
126
28
85

query I rowsort
SELECT ALL 65 FROM tab2 GROUP BY tab2.col1
----
65
65
65

query I rowsort
SELECT ALL - 68 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-68
-68
-68

query I rowsort
SELECT ALL - - 0 AS col0 FROM tab2 GROUP BY tab2.col2
----
0
0
0

query I rowsort
SELECT ALL - + 27 FROM tab1 GROUP BY tab1.col0
----
-27
-27
-27

query I rowsort
SELECT ( - 78 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
-78
-78
-78

query I rowsort
SELECT - 3 AS col0 FROM tab1 GROUP BY tab1.col0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col1
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1573
SELECT ALL CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab1 GROUP BY col2
----
43

query I rowsort
SELECT ALL + 9 * ( col0 ) AS col0 FROM tab1 GROUP BY tab1.col0
----
198
252
738

query I rowsort
SELECT ALL + + 6 AS col0 FROM tab0 GROUP BY tab0.col0
----
6
6
6

query I rowsort
SELECT - 33 + - 23 FROM tab2 GROUP BY tab2.col1
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-1578
SELECT DISTINCT - cor0.col2 DIV 46 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT - cor0.col2 / 46 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0
----
-1
0

query I rowsort
SELECT col1 + - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-41
-59
-61

query I rowsort
SELECT tab0.col2 + col2 AS col0 FROM tab0 GROUP BY tab0.col2
----
158
48
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 col1 FROM tab1 GROUP BY col1
----
2

query I rowsort
SELECT - 81 + tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
-53
-59
1

query I rowsort
SELECT ALL - tab0.col1 * 4 FROM tab0 GROUP BY col1
----
-324
0

query I rowsort
SELECT cor0.col1 + + col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
124
26
83

query I rowsort
SELECT ALL + 91 AS col2 FROM tab0 GROUP BY tab0.col1
----
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1587
SELECT cor0.col0 DIV 42 + + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
93
94

skipif mysql # not compatible
query I rowsort label-1587
SELECT cor0.col0 / 42 + + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
93
94

query I rowsort
SELECT ALL cor0.col1 - cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT - cor0.col1 + - cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-162
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 + - tab1.col0 col0 FROM tab1 GROUP BY col0
----
-164
-44
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
44
44
44

query I rowsort
SELECT 65 FROM tab2 AS cor0 GROUP BY cor0.col0
----
65
65
65

query I rowsort
SELECT DISTINCT 2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
2

query I rowsort
SELECT + 10 AS col0 FROM tab0 cor0 GROUP BY cor0.col0
----
10
10
10

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
44
57
6

query I rowsort
SELECT DISTINCT - tab0.col2 - 48 FROM tab0 GROUP BY tab0.col2
----
-127
-72
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-1597
SELECT DISTINCT cor0.col1 DIV COALESCE ( + 80, cor0.col1 * cor0.col0 ) + 54 FROM tab1 cor0 GROUP BY cor0.col1
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort label-1597
SELECT DISTINCT cor0.col1 / COALESCE ( + 80, cor0.col1 * cor0.col0 ) + 54 FROM tab1 cor0 GROUP BY cor0.col1
----
54

query I rowsort
SELECT DISTINCT - 35 + - tab2.col2 AS col1 FROM tab2 GROUP BY tab2.col2
----
-114
-122
-93

query I rowsort
SELECT ALL - + 99 AS col1 FROM tab0 GROUP BY tab0.col2
----
-99
-99
-99

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + 60 FROM tab0 AS cor0 GROUP BY cor0.col1
----
60
6621

query I rowsort
SELECT + cor1.col0 + 91 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
106
182
183

onlyif mysql # DIV for integer division: 
query I rowsort label-1602
SELECT ALL + col1 * cor0.col1 + - 14 DIV 31 FROM tab2 AS cor0 GROUP BY col1
----
1681
3481
3721

skipif mysql # not compatible
query I rowsort label-1602
SELECT ALL + col1 * cor0.col1 + - 14 / 31 FROM tab2 AS cor0 GROUP BY col1
----
1681
3481
3721

query I rowsort
SELECT + 57 * - tab1.col0 + - tab1.col0 AS col2 FROM tab1 GROUP BY tab1.col0
----
-1276
-1624
-4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col2 FROM tab0, tab0 AS cor0 GROUP BY tab0.col2
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * - 80 col2 FROM tab0 GROUP BY tab0.col0
----
-2080
-3440
-6640

query I rowsort
SELECT ALL - COALESCE ( + tab2.col2, - 66 ) + + tab2.col2 FROM tab2 GROUP BY tab2.col2
----
0
0
0

query I rowsort
SELECT ALL 33 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * cor0.col1 col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1
----
1936
3249
36

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 GROUP BY col2
----
45
71
8

query I rowsort
SELECT + 38 FROM tab1 AS cor0 GROUP BY col0
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1613
SELECT ALL + tab2.col1 + tab2.col1 DIV - tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
40
58
60

skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL + tab2.col1 + tab2.col1 / - tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
40
58
60

query I rowsort
SELECT - 69 FROM tab1 AS cor0 GROUP BY col0
----
-69
-69
-69

query I rowsort
SELECT 70 AS col2 FROM tab0 GROUP BY tab0.col0
----
70
70
70

query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0, col2
----
26
43
83

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
3364
6241
7569

query I rowsort
SELECT DISTINCT + 94 + cor0.col1 AS col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
175
94

query I rowsort
SELECT ALL cor0.col0 - - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
166
52
86

query I rowsort
SELECT ALL 52 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1, cor1.col1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL + 11 FROM tab2 GROUP BY tab2.col1
----
11
11
11

query I rowsort
SELECT 49 + - cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-32
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 - col2 col0 FROM tab2 GROUP BY tab2.col2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1624
SELECT ALL + 49 DIV cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
0
1
8

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL + 49 / cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
0
1
8

query I rowsort
SELECT 58 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
38

query I rowsort
SELECT + 28 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
28
28
28

query I rowsort
SELECT DISTINCT 16 AS col0 FROM tab0 GROUP BY tab0.col1
----
16

query I rowsort
SELECT + 5 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
5
5
5

query I rowsort
SELECT 84 * tab2.col2 FROM tab2 GROUP BY tab2.col2
----
4872
6636
7308

query I rowsort
SELECT ALL 35 * + 90 FROM tab1 GROUP BY tab1.col2
----
3150
3150
3150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 + - 64 col0 FROM tab1 GROUP BY tab1.col0
----
-36
-42
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - tab0.col0 col2 FROM tab0 GROUP BY tab0.col0
----
-26
-43
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1634
SELECT DISTINCT cor0.col0 DIV - 29 + cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
38
56
61

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT cor0.col0 / - 29 + cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
38
56
61

query I rowsort
SELECT DISTINCT ( - tab2.col2 ) + - tab2.col2 AS col1 FROM tab2 GROUP BY tab2.col2
----
-116
-158
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
25
25
25

query I rowsort
SELECT ALL + 65 * - cor0.col2 + ( + 67 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, col2
----
-1493
-2403
-5068

query I rowsort
SELECT - 55 FROM tab2 GROUP BY tab2.col1
----
-55
-55
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT ALL 91 DIV + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL 91 / + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
1
6

query I rowsort
SELECT ALL - ( + col2 ) FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT + 89 + + tab0.col2 AS col0 FROM tab0 GROUP BY col2
----
113
127
168

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT ALL CASE + 71 WHEN + 85 THEN col0 * cor0.col1 ELSE NULL END + 43 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col0 FROM tab2 GROUP BY col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 5 col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, col2
----
3
40
66

query I rowsort
SELECT DISTINCT - COALESCE ( 70, col1 + 26 ) FROM tab0 GROUP BY col1
----
-70

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
41
59
61

query I rowsort
SELECT 44 AS col0 FROM tab1 GROUP BY tab1.col1
----
44
44
44

query I rowsort
SELECT ALL + tab2.col1 + + col1 FROM tab2 GROUP BY tab2.col1
----
118
122
82

query I rowsort
SELECT - COALESCE ( + cor0.col1, - 87 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 col1 FROM tab0 GROUP BY tab0.col0
----
56
56
56

query I rowsort
SELECT DISTINCT 31 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
31

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab0 AS cor0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab2 GROUP BY tab2.col2
----
85

query I rowsort
SELECT DISTINCT + 93 FROM tab1 GROUP BY col1
----
93

query I rowsort
SELECT DISTINCT - 60 - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
-118
-139
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col1 FROM tab0 GROUP BY tab0.col1
----
45

query I rowsort
SELECT 42 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
42
42
42

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + 40 FROM tab0 AS cor0 GROUP BY cor0.col1, col2
----
1984
40

query I rowsort
SELECT - + 89 FROM tab0 GROUP BY tab0.col0
----
-89
-89
-89

query I rowsort
SELECT ALL - 52 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-52
-52

query I rowsort
SELECT - cor0.col2 * + 17 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1343
-1479
-986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 * + tab0.col2 col0 FROM tab0 GROUP BY col2
----
-1444
-576
-6241

query I rowsort
SELECT DISTINCT - + 48 AS col0 FROM tab1 GROUP BY tab1.col1
----
-48

query I rowsort
SELECT - 59 - - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-31
-37
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1666
SELECT ALL col0 DIV - 59 AS col2 FROM tab0 GROUP BY tab0.col0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL col0 / - 59 AS col2 FROM tab0 GROUP BY tab0.col0
----
-1
0
0

query I rowsort
SELECT 49 FROM tab2 GROUP BY tab2.col1
----
49
49
49

query I rowsort
SELECT - 26 FROM tab1 AS cor0 GROUP BY col1
----
-26
-26
-26

query I rowsort
SELECT + tab2.col1 + col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
118
122
82

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT CAST( NULL AS SIGNED ) FROM tab0 GROUP BY tab0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1671
SELECT CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY tab0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 59 FROM tab1 AS cor0 GROUP BY col1
----
59
59
59

query I rowsort
SELECT ( col2 ) AS col2 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT DISTINCT + + 68 FROM tab0 GROUP BY col0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col1 FROM tab2 GROUP BY tab2.col1
----
-57

query I rowsort
SELECT cor0.col1 + + col1 * - cor0.col1 FROM tab2 cor0 GROUP BY col1
----
-1640
-3422
-3660

query I rowsort
SELECT + + 57 FROM tab1 GROUP BY tab1.col0
----
57
57
57

query I rowsort
SELECT 17 + + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
39
45
99

query I rowsort
SELECT cor0.col1 - 96 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-15
-96

query I rowsort
SELECT DISTINCT - 40 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-40

query I rowsort
SELECT 61 * + col0 + tab2.col0 * - 73 AS col0 FROM tab2 GROUP BY col0
----
-1092
-1104
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col1 FROM tab1 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT - 16 FROM tab1 GROUP BY tab1.col1
----
-16
-16
-16

query I rowsort
SELECT ALL cor0.col0 * 20 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
1640
440
560

query I rowsort
SELECT cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
58
79
87

query I rowsort
SELECT + ( - 41 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
-41
-41
-41

query I rowsort
SELECT ALL + 75 FROM tab0 GROUP BY tab0.col0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT + CAST( NULL AS SIGNED ) * - 79 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1688
SELECT + CAST ( NULL AS INTEGER ) * - 79 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT 8 + - cor0.col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0, cor1.col1, cor0.col2
----
9 values hashing to 6e31f394c0d6c82394642e1a9907d2b0

query I rowsort
SELECT ALL 62 AS col2 FROM tab2 GROUP BY tab2.col1
----
62
62
62

query I rowsort
SELECT ALL + cor0.col0 * col0 FROM tab0 AS cor0 GROUP BY col0
----
1849
676
6889

onlyif mysql # DIV for integer division: 
query I rowsort label-1692
SELECT + cor0.col1 DIV cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1692
SELECT + cor0.col1 / cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
1
1
1

query I rowsort
SELECT - tab2.col1 + + 76 AS col0 FROM tab2 GROUP BY tab2.col1
----
15
17
35

query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-46
32
51

query I rowsort
SELECT ALL 61 AS col2 FROM tab1 GROUP BY tab1.col0
----
61
61
61

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
-99

query I rowsort
SELECT DISTINCT + 59 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
59

query I rowsort
SELECT + 86 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
86
86

query I rowsort
SELECT DISTINCT tab2.col0 + col0 FROM tab2 GROUP BY tab2.col0
----
182
184
30

query I rowsort
SELECT 94 FROM tab1 cor0 GROUP BY col1
----
94
94
94

query I rowsort
SELECT - 34 FROM tab0 cor0 GROUP BY cor0.col1
----
-34
-34

query I rowsort
SELECT + cor1.col2 * - cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
-1444
-576
-6241

query I rowsort
SELECT + cor0.col2 - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ( + tab1.col2 ) + - tab1.col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
0
0
0

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0, col2
----
26

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab2 GROUP BY col0
----
-83

query I rowsort
SELECT 67 AS col0 FROM tab2 GROUP BY tab2.col0
----
67
67
67

query I rowsort
SELECT ALL 92 FROM tab1 AS cor0 GROUP BY cor0.col1
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - cor0.col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
27
27
27

query I rowsort
SELECT + + 29 + tab2.col1 AS col2 FROM tab2 GROUP BY col1
----
70
88
90

query I rowsort
SELECT DISTINCT - + 34 AS col1 FROM tab2 GROUP BY tab2.col0
----
-34

query I rowsort
SELECT 87 * 5 FROM tab1 GROUP BY tab1.col0
----
435
435
435

query I rowsort
SELECT - 91 FROM tab0 GROUP BY tab0.col0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT 28 AS col0 FROM tab0 AS cor0 GROUP BY col2
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 - - cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
142
16
90

query I rowsort
SELECT cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 40 ) col1 FROM tab2 GROUP BY tab2.col0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col1, col2
----
45
71
8

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
-15
-91
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 col1 FROM tab0 GROUP BY tab0.col0
----
-61

query I rowsort
SELECT cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
41
59
61

query I rowsort
SELECT - tab0.col1 + col1 AS col0 FROM tab0 GROUP BY tab0.col1
----
0
0

query I rowsort
SELECT + tab1.col1 * + 12 FROM tab1 GROUP BY tab1.col1
----
528
684
72

query I rowsort
SELECT ALL + tab1.col0 - - 25 FROM tab1 GROUP BY col0
----
107
47
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 * cor0.col2 col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1659
504
798

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT COALESCE ( - 41, cor0.col2, cor0.col1 ) + cor0.col0 FROM tab1 cor0 GROUP BY col0
----
-13
-19
41

query I rowsort
SELECT DISTINCT + 43 * - 26 AS col2 FROM tab0 GROUP BY tab0.col1
----
-1118

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT ALL + 68 DIV tab2.col1 + col1 FROM tab2 GROUP BY tab2.col1
----
42
60
62

skipif mysql # not compatible
query I rowsort label-1732
SELECT ALL + 68 / tab2.col1 + col1 FROM tab2 GROUP BY tab2.col1
----
42
60
62

query I rowsort
SELECT ALL + 80 AS col2 FROM tab2 GROUP BY tab2.col2
----
80
80
80

query I rowsort
SELECT ALL col0 * 64 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
1664
2752
5312

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT col2 DIV col2 col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1735
SELECT col2 / col2 col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
1
1
1

query I rowsort
SELECT - - 93 * + 54 AS col0 FROM tab0 GROUP BY tab0.col0
----
5022
5022
5022

query I rowsort
SELECT ALL + + 49 * tab2.col0 FROM tab2 GROUP BY tab2.col0
----
4459
4508
735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1738
SELECT + CAST( tab0.col0 AS SIGNED ) * 87 AS col1 FROM tab0 GROUP BY tab0.col0
----
2262
3741
7221

skipif mysql # not compatible
query I rowsort label-1738
SELECT + CAST ( tab0.col0 AS INTEGER ) * 87 AS col1 FROM tab0 GROUP BY tab0.col0
----
2262
3741
7221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1739
SELECT CAST( NULL AS SIGNED ) * 82 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT CAST ( NULL AS INTEGER ) * 82 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 80 FROM tab1 cor0 GROUP BY cor0.col0
----
80

query I rowsort
SELECT ALL - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-15
-91
-92

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - tab1.col0 + - 4 FROM tab1 GROUP BY tab1.col0
----
-26
-32
-86

query I rowsort
SELECT - - tab2.col1 * + 20 AS col2 FROM tab2 GROUP BY tab2.col1
----
1180
1220
820

query I rowsort
SELECT + col1 AS col0 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT cor0.col2 * - 17 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1343
-408
-646

query I rowsort
SELECT - 42 FROM tab2 GROUP BY tab2.col0
----
-42
-42
-42

query I rowsort
SELECT ALL + - NULLIF ( + tab1.col0, - tab1.col0 ) AS col2 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT - + CAST( NULL AS SIGNED ) + - 79 col1 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1750
SELECT - + CAST ( NULL AS INTEGER ) + - 79 col1 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 79 FROM tab2 GROUP BY tab2.col0
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1752
SELECT CAST( 74 AS SIGNED ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
74
74
74

skipif mysql # not compatible
query I rowsort label-1752
SELECT CAST ( 74 AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
74
74
74

query I rowsort
SELECT ALL - 65 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 + 25 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
57
57
57

query I rowsort
SELECT + ( - 39 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-39
-39
-39

query I rowsort
SELECT 47 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
47
47
47

query I rowsort
SELECT DISTINCT + + 41 + + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
47
85
98

query I rowsort
SELECT - COALESCE ( - 36, col2 ) FROM tab0 AS cor0 GROUP BY col2
----
36
36
36

query I rowsort
SELECT DISTINCT 11 + + cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
102
103
26

query I rowsort
SELECT col1 + 4 * + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
273
375
409

onlyif mysql # DIV for integer division: 
query I rowsort label-1761
SELECT cor0.col0 DIV - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1761
SELECT cor0.col0 / - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col2
----
116
158
174

query I rowsort
SELECT DISTINCT 55 FROM tab1 AS cor0 GROUP BY col2
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col1 col1 FROM tab2 AS cor0 GROUP BY col1
----
-1681
-3481
-3721

query I rowsort
SELECT + 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-59

query I rowsort
SELECT DISTINCT cor0.col1 - cor0.col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
0

query I rowsort
SELECT - 27 AS col2 FROM tab0 GROUP BY tab0.col1
----
-27
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT - cor0.col2 DIV - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1769
SELECT - cor0.col2 / - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab2 GROUP BY tab2.col1
----
86
86
86

query I rowsort
SELECT 17 + - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-11
-5
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1772
SELECT cor0.col1 DIV + cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1772
SELECT cor0.col1 / + cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
1
1
1

query I rowsort
SELECT 98 FROM tab1 AS cor0 GROUP BY cor0.col1
----
98
98
98

query I rowsort
SELECT - tab1.col2 + + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
0
0
0

query I rowsort
SELECT ALL - - tab1.col0 AS col1 FROM tab1 GROUP BY col0
----
22
28
82

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 cor0 GROUP BY col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 + tab0.col0 col2 FROM tab0 GROUP BY tab0.col0
----
166
52
86

query I rowsort
SELECT DISTINCT - tab0.col2 + tab0.col2 FROM tab0 GROUP BY tab0.col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT + cor0.col2 + + cor0.col1 DIV - cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
57
78
86

skipif mysql # not compatible
query I rowsort label-1779
SELECT + cor0.col2 + + cor0.col1 / - cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
57
78
86

query I rowsort
SELECT DISTINCT + tab0.col0 * col0 + - tab0.col0 * tab0.col0 AS col1 FROM tab0 GROUP BY tab0.col0
----
0

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1 GROUP BY col0 HAVING NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 GROUP BY tab2.col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT + 49 * 30 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1470
1470
1470

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
24
38
79

query I rowsort
SELECT ALL cor0.col0 FROM tab2 cor0 GROUP BY col2, cor0.col0
----
15
91
92

query I rowsort
SELECT - - 64 FROM tab0 GROUP BY tab0.col2
----
64
64
64

query I rowsort
SELECT DISTINCT COALESCE ( + 20, - tab0.col2 * + 55 ) FROM tab0 GROUP BY tab0.col2
----
20

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab1 GROUP BY col0
----
36

query I rowsort
SELECT - tab2.col2 - - ( - tab2.col2 ) * col2 AS col0 FROM tab2 GROUP BY col2
----
-3422
-6320
-7656

query I rowsort
SELECT ALL - 75 * + tab2.col2 FROM tab2 GROUP BY tab2.col2
----
-4350
-5925
-6525

query I rowsort
SELECT ALL 32 FROM tab2 GROUP BY col2
----
32
32
32

query I rowsort
SELECT + - 48 AS col2 FROM tab0 GROUP BY tab0.col1
----
-48
-48

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1
----
-41
-59
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1796
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 64 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 64 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + COALESCE ( + tab2.col0, 73 * - 59, + tab2.col0 ) * - tab2.col0 col0 FROM tab2 GROUP BY tab2.col0
----
225
8281
8464

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, col1
----
15
91
92

query I rowsort
SELECT DISTINCT cor0.col1 * + NULLIF ( 59, cor0.col1 * 91 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
2596
3363
354

query I rowsort
SELECT ALL 76 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
76
76
76

query I rowsort
SELECT 61 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
61
61
61

query I rowsort
SELECT DISTINCT + - tab2.col2 AS col0 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0

query I rowsort
SELECT + + col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT cor0.col2 + + cor0.col0 * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1305
184
5893

query I rowsort
SELECT + - ( - 87 ) FROM tab0 GROUP BY tab0.col2
----
87
87
87

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT col2 + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
116
158
174

query I rowsort
SELECT DISTINCT + + tab2.col1 * - tab2.col1 AS col0 FROM tab2 GROUP BY tab2.col1
----
-1681
-3481
-3721

query I rowsort
SELECT DISTINCT + + 84 AS col1 FROM tab1 GROUP BY tab1.col1
----
84

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab0 GROUP BY tab0.col2
----
51

query I rowsort
SELECT DISTINCT + cor0.col0 * + 65 FROM tab2 cor0 GROUP BY cor0.col0
----
5915
5980
975

query I rowsort
SELECT ALL tab1.col1 - tab1.col1 FROM tab1 GROUP BY tab1.col1
----
0
0
0

query I rowsort
SELECT ALL tab0.col0 * tab0.col0 + + tab0.col0 FROM tab0 GROUP BY tab0.col0
----
1892
6972
702

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 GROUP BY col0, col0
----
26
43
83

query I rowsort
SELECT + + 53 AS col2 FROM tab0 GROUP BY tab0.col0
----
53
53
53

query I rowsort
SELECT ALL 68 AS col1 FROM tab0 GROUP BY tab0.col0
----
68
68
68

query I rowsort
SELECT col1 * - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT + cor0.col1 * - col1 + - 74 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1755
-3555
-3795

query I rowsort
SELECT DISTINCT - + 77 FROM tab2 GROUP BY tab2.col2
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col2 FROM tab2 GROUP BY tab2.col1
----
35
35
35

query I rowsort
SELECT - - 4 * + 74 FROM tab0 GROUP BY tab0.col2
----
296
296
296

query I rowsort
SELECT + 5 * - cor0.col0 + + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-364
-368
-60

query I rowsort
SELECT + 69 * + tab2.col2 AS col0 FROM tab2 GROUP BY col2
----
4002
5451
6003

query I rowsort
SELECT DISTINCT + 74 FROM tab1 AS cor0 GROUP BY cor0.col2
----
74

query I rowsort
SELECT ALL 85 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
85
85
85

query I rowsort
SELECT DISTINCT - + ( tab2.col1 ) AS col2 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT 91 - - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
113
119
173

query I rowsort
SELECT DISTINCT - 69 * 58 AS col0 FROM tab2 GROUP BY tab2.col1
----
-4002

query I rowsort
SELECT - 8 FROM tab2 GROUP BY col1
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - tab2.col2 col2 FROM tab2 GROUP BY tab2.col2
----
58
79
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT ALL - cor0.col0 DIV 47 AS col1 FROM tab1 cor0 GROUP BY col0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - cor0.col0 / 47 AS col1 FROM tab1 cor0 GROUP BY col0
----
-1
0
0

query I rowsort
SELECT - tab1.col0 + tab1.col0 AS col2 FROM tab1 GROUP BY tab1.col0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 - cor0.col1 FROM tab0 AS cor0 GROUP BY col1
----
-162
0

query I rowsort
SELECT ALL - tab0.col2 + tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab0 GROUP BY tab0.col2
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT 43 DIV 83 FROM tab0 GROUP BY col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1837
SELECT 43 / 83 FROM tab0 GROUP BY col0
----
0
0
0

query I rowsort
SELECT + 67 FROM tab2 GROUP BY col0
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT + 8 DIV cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1839
SELECT + 8 / cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab0.col1 + + tab0.col1 FROM tab0 GROUP BY tab0.col1
----
0

query I rowsort
SELECT + + 48 + + col0 FROM tab0 GROUP BY tab0.col0
----
131
74
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT - col0 DIV 97 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1842
SELECT - col0 / 97 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 67 * + 89 AS col2 FROM tab1 GROUP BY tab1.col0
----
-5963

query I rowsort
SELECT DISTINCT 35 FROM tab2 GROUP BY tab2.col0
----
35

query I rowsort
SELECT ALL col0 * + 22 FROM tab2 AS cor0 GROUP BY cor0.col2, col0, cor0.col2
----
2002
2024
330

query I rowsort
SELECT - 73 AS col2 FROM tab2 GROUP BY tab2.col2
----
-73
-73
-73

query I rowsort
SELECT - 84 * COALESCE ( 35 - + col1, tab1.col1 ) FROM tab1 GROUP BY tab1.col1
----
-2436
1848
756

query I rowsort
SELECT ALL - 58 FROM tab2 GROUP BY col2
----
-58
-58
-58

query I rowsort
SELECT + tab1.col1 + NULLIF ( tab1.col1, + tab1.col1 ) AS col2 FROM tab1 GROUP BY tab1.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 56 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
56

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT - + ( + 79 ) FROM tab0 GROUP BY col0
----
-79
-79
-79

query I rowsort
SELECT ( - col1 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT 13 FROM tab0 cor0 GROUP BY col1
----
13

query I rowsort
SELECT + 84 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
84
84

query I rowsort
SELECT ALL 67 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col1 col0 FROM tab2 GROUP BY tab2.col1
----
1681
3481
3721

query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0, col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT ALL - 77 DIV + tab2.col0 col2 FROM tab2 GROUP BY col0
----
-5
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1859
SELECT ALL - 77 / + tab2.col0 col2 FROM tab2 GROUP BY col0
----
-5
0
0

query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
51

query I rowsort
SELECT cor0.col0 + col0 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT DISTINCT cor0.col2 * + 63 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
2835
4473
504

query I rowsort
SELECT ALL + 74 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
5994

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT col1 * + 59 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
2419
3481
3599

query I rowsort
SELECT - col1 * 8 AS col0 FROM tab1 GROUP BY col1
----
-352
-456
-48

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col0
----
0

query I rowsort
SELECT cor0.col0 * 60 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1560
2580
4980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT - cor0.col0 + + col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0 HAVING ( NULL ) NOT IN ( - cor0.col0 )
----

query I rowsort
SELECT + tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING tab1.col1 IS NOT NULL
----
44
57
6

query I rowsort
SELECT ALL - 21 + - tab0.col1 FROM tab0 GROUP BY tab0.col1
----
-102
-21

query I rowsort
SELECT + - 61 AS col1 FROM tab0 GROUP BY tab0.col1
----
-61
-61

query I rowsort
SELECT DISTINCT - 63 FROM tab2 GROUP BY tab2.col1
----
-63

query I rowsort
SELECT ALL - ( - cor0.col1 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT + CAST( NULL AS SIGNED ) + ( + tab1.col2 ) col0 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1878
SELECT + CAST ( NULL AS INTEGER ) + ( + tab1.col2 ) col0 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT ALL ( col2 ) AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab2 GROUP BY tab2.col0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col0 FROM tab1 GROUP BY tab1.col0
----
14

query I rowsort
SELECT ALL + col2 * tab2.col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
3364
6241
7569

query I rowsort
SELECT cor0.col2 + - 41 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
17
38
46

query I rowsort
SELECT ALL - 41 AS col2 FROM tab1 GROUP BY tab1.col2
----
-41
-41
-41

query I rowsort
SELECT ALL + ( 66 ) FROM tab0 GROUP BY tab0.col2
----
66
66
66

query I rowsort
SELECT ALL - 61 AS col1 FROM tab1 GROUP BY tab1.col2
----
-61
-61
-61

query I rowsort
SELECT ALL 60 AS col1 FROM tab2 GROUP BY tab2.col1
----
60
60
60

query I rowsort
SELECT DISTINCT 98 - - tab0.col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
124
141
181

query I rowsort
SELECT ALL - 81 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-81
-81
-81

query I rowsort
SELECT - + 22 FROM tab2 GROUP BY tab2.col1
----
-22
-22
-22

query I rowsort
SELECT - tab2.col0 - tab2.col0 FROM tab2 GROUP BY tab2.col0 HAVING NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1893
SELECT ALL cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

query I rowsort
SELECT 71 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
71
71
71

query I rowsort
SELECT DISTINCT cor0.col2 - + cor0.col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
0

query I rowsort
SELECT ALL 5 AS col1 FROM tab1 GROUP BY tab1.col2
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT DISTINCT + CAST( - 82 AS SIGNED ) AS col1 FROM tab1 GROUP BY tab1.col2
----
-82

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + CAST ( - 82 AS INTEGER ) AS col1 FROM tab1 GROUP BY tab1.col2
----
-82

query I rowsort
SELECT + 45 - tab0.col2 FROM tab0 GROUP BY tab0.col2
----
-34
21
7

query I rowsort
SELECT ALL - 65 AS col0 FROM tab2 GROUP BY tab2.col0
----
-65
-65
-65

query I rowsort
SELECT ALL + - 32 FROM tab1 GROUP BY tab1.col2
----
-32
-32
-32

query I rowsort
SELECT + + 34 FROM tab1 GROUP BY col1
----
34
34
34

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - tab2.col1 + col1 col2 FROM tab2 GROUP BY tab2.col1
----
0
0
0

query I rowsort
SELECT ALL ( + tab1.col1 ) FROM tab1 GROUP BY tab1.col1
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT + - 8 DIV + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1905
SELECT + - 8 / + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-1
0
0

query I rowsort
SELECT ALL 52 * 55 - cor0.col0 * 14 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1572
1586
2650

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING NOT NULL IS NOT NULL
----
44
57
6

query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT DISTINCT + 27 FROM tab1 GROUP BY col1
----
27

query I rowsort
SELECT 96 FROM tab1 GROUP BY col0
----
96
96
96

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
44
57
6

query I rowsort
SELECT + col1 + 42 FROM tab2 GROUP BY tab2.col1
----
101
103
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT ALL + - tab2.col1 DIV - col1 FROM tab2 GROUP BY col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + - tab2.col1 / - col1 FROM tab2 GROUP BY col1
----
1
1
1

query I rowsort
SELECT col0 * cor0.col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
484
6724
784

query I rowsort
SELECT - 50 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT ALL + 79 DIV + 7 FROM tab0 AS cor0 GROUP BY cor0.col2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL + 79 / + 7 FROM tab0 AS cor0 GROUP BY cor0.col2
----
11
11
11

query I rowsort
SELECT DISTINCT - tab0.col0 + - tab0.col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
-166
-52
-86

query I rowsort
SELECT 81 * + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT + 62 - - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
106
119
68

query I rowsort
SELECT + cor0.col2 + - cor0.col2 * - 20 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
1491
168
945

query I rowsort
SELECT - 39 FROM tab2 cor0 GROUP BY cor0.col2
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * 68 col0 FROM tab2 cor0 GROUP BY cor0.col1
----
2788
4012
4148

query I rowsort
SELECT DISTINCT + - 55 FROM tab1 GROUP BY col0
----
-55

query I rowsort
SELECT ALL tab2.col1 * + 76 AS col0 FROM tab2 GROUP BY tab2.col1
----
3116
4484
4636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 44 ) col0 FROM tab1 GROUP BY tab1.col2
----
-44
-44
-44

query I rowsort
SELECT 67 FROM tab1 AS cor0 GROUP BY cor0.col0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col2 FROM tab0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL cor0.col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT + 88 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
88
88
88

query I rowsort
SELECT ALL 38 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
38
38
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1931
SELECT + + tab1.col1 DIV + tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1931
SELECT + + tab1.col1 / + tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
1
1
1

query I rowsort
SELECT DISTINCT - tab1.col1 - tab1.col1 * - tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
1892
30
3192

query I rowsort
SELECT DISTINCT col1 + tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
114
12
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1934
SELECT + 67 DIV - 60 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1934
SELECT + 67 / - 60 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1
-1
-1

query I rowsort
SELECT ALL + 36 * tab1.col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
1620
2556
288

query I rowsort
SELECT DISTINCT + 26 AS col0 FROM tab0 GROUP BY tab0.col1
----
26

query I rowsort
SELECT ALL 67 AS col0 FROM tab2 GROUP BY tab2.col1
----
67
67
67

query I rowsort
SELECT ALL col0 * - tab0.col0 AS col1 FROM tab0 GROUP BY tab0.col0
----
-1849
-676
-6889

query I rowsort
SELECT - + tab1.col2 * - col2 FROM tab1 GROUP BY tab1.col2
----
2025
5041
64

query I rowsort
SELECT - cor0.col1 - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
-138
-148
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col2 FROM tab1 AS cor0 GROUP BY col1
----
81
81
81

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT ALL + 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col1
----
50
50
50

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
8

query I rowsort
SELECT DISTINCT + tab1.col2 * + ( + 25 ) - tab1.col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
1080
1704
192

query I rowsort
SELECT + col2 + + 65 AS col1 FROM tab0 GROUP BY col2
----
103
144
89

query I rowsort
SELECT 51 * - tab2.col0 FROM tab2 GROUP BY col0
----
-4641
-4692
-765

query I rowsort
SELECT DISTINCT + 63 FROM tab0 AS cor0 GROUP BY col0
----
63

query I rowsort
SELECT ALL - + 71 AS col2 FROM tab2 GROUP BY tab2.col0
----
-71
-71
-71

query I rowsort
SELECT ALL + 32 FROM tab2 GROUP BY tab2.col1
----
32
32
32

query I rowsort
SELECT ALL + col0 + + tab0.col0 FROM tab0 GROUP BY tab0.col0
----
166
52
86

query I rowsort
SELECT + tab2.col0 + tab2.col0 AS col1 FROM tab2 GROUP BY tab2.col0
----
182
184
30

query I rowsort
SELECT + 4 + - tab0.col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
-22
-39
-79

query I rowsort
SELECT 62 FROM tab2 cor0 GROUP BY col1
----
62
62
62

query I rowsort
SELECT DISTINCT - 41 * + tab2.col2 FROM tab2 GROUP BY tab2.col2
----
-2378
-3239
-3567

query I rowsort
SELECT ALL col2 + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT col1 AS col0 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT 30 * - tab2.col1 AS col0 FROM tab2 GROUP BY tab2.col1
----
-1230
-1770
-1830

query I rowsort
SELECT + cor0.col1 + - col1 FROM tab2 cor0 GROUP BY cor0.col1, col0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 44 AS col0 FROM tab0 GROUP BY col0
----
44

query I rowsort
SELECT DISTINCT - tab0.col1 * + tab0.col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
-6561
0

query I rowsort
SELECT DISTINCT 21 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
21

query I rowsort
SELECT ALL - - ( 88 ) FROM tab0 GROUP BY tab0.col0
----
88
88
88

query I rowsort
SELECT - - 99 FROM tab1 GROUP BY tab1.col0
----
99
99
99

query I rowsort
SELECT ALL - 63 + + tab1.col2 FROM tab1 GROUP BY col2
----
-18
-55
8

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-37

query I rowsort
SELECT DISTINCT + 63 FROM tab0 GROUP BY tab0.col1
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1968
SELECT - 45 * - tab0.col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 GROUP BY tab0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT - 45 * - tab0.col2 + CAST ( NULL AS REAL ) AS col0 FROM tab0 GROUP BY tab0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 13 + + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
2
78
79

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
92

query I rowsort
SELECT ALL - + 17 * - 36 AS col1 FROM tab2 GROUP BY tab2.col1
----
612
612
612

query I rowsort
SELECT ALL + 34 FROM tab1 GROUP BY tab1.col0
----
34
34
34

query I rowsort
SELECT ALL - - tab2.col0 + - tab2.col0 * - 50 FROM tab2 GROUP BY tab2.col0
----
4641
4692
765

query I rowsort
SELECT ALL + - 45 AS col2 FROM tab0 GROUP BY tab0.col2
----
-45
-45
-45

query I rowsort
SELECT ALL 98 + 5 FROM tab1 GROUP BY tab1.col1
----
103
103
103

query I rowsort
SELECT ALL + cor0.col0 - - ( cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY col0, col2
----
182
184
30

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
0
81

query I rowsort
SELECT ALL col0 + 37 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
128
129
52

query I rowsort
SELECT + - ( tab1.col0 ) * col0 FROM tab1 GROUP BY tab1.col0
----
-484
-6724
-784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-1981
SELECT + tab1.col0 DIV tab1.col0 col2 FROM tab1 GROUP BY tab1.col0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1981
SELECT + tab1.col0 / tab1.col0 col2 FROM tab1 GROUP BY tab1.col0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 col2 FROM tab1 cor0 GROUP BY cor0.col2
----
-97

query I rowsort
SELECT 98 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
98
98
98

query I rowsort
SELECT ALL + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, col1, cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1986
SELECT ALL - cor0.col1 DIV 41 AS col1 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - cor0.col1 / 41 AS col1 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
0

query I rowsort
SELECT - tab1.col2 - col2 AS col1 FROM tab1 GROUP BY col2
----
-142
-16
-90

query I rowsort
SELECT + - tab0.col2 AS col2 FROM tab0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT + 49 FROM tab2 AS cor0 GROUP BY cor0.col2
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * + cor0.col2 + cor0.col1 * - ( col2 ) col0 FROM tab0 cor0 GROUP BY col1, cor0.col2
----
-1944
0
0

query I rowsort
SELECT COALESCE ( cor0.col2, - cor0.col2 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - tab0.col0 AND - col0 GROUP BY tab0.col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT cor0.col1 * col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
132
1596
3608

query I rowsort
SELECT ALL + 38 FROM tab2 GROUP BY tab2.col2
----
38
38
38

query I rowsort
SELECT DISTINCT + tab0.col1 + - 87 * - 85 FROM tab0 GROUP BY tab0.col1
----
7395
7476

onlyif mysql # DIV for integer division: 
query I rowsort label-1997
SELECT DISTINCT - 11 DIV col0 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT - 11 / col0 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
0

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT - tab2.col0 + COALESCE ( - 87, - tab2.col2 + - tab2.col1 * + COALESCE ( + tab2.col1, tab2.col0 ) ) FROM tab2 GROUP BY tab2.col0
----
-102
-178
-179

query I rowsort
SELECT ALL + 29 * - 31 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-899
-899
-899

query I rowsort
SELECT col0 + + 41 AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
124
67
84

query I rowsort
SELECT - 27 * - col2 FROM tab2 GROUP BY tab2.col2
----
1566
2133
2349

query I rowsort
SELECT ALL + col1 + tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
114
12
88

query I rowsort
SELECT - 29 FROM tab2 AS cor0 GROUP BY col0, cor0.col0
----
-29
-29
-29

query I rowsort
SELECT + 46 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT cor0.col1 DIV - 23 FROM tab1 AS cor0 GROUP BY col1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT cor0.col1 / - 23 FROM tab1 AS cor0 GROUP BY col1
----
-1
-2
0

query I rowsort
SELECT - + 5 AS col0 FROM tab1 GROUP BY tab1.col1
----
-5
-5
-5

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT - COALESCE ( + tab2.col2, - tab2.col2 ) + ( 99 ) FROM tab2 GROUP BY tab2.col2
----
12
20
41

query I rowsort
SELECT DISTINCT - tab0.col2 AS col0 FROM tab0, tab1 AS cor0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT 94 AS col0 FROM tab1 GROUP BY tab1.col1
----
94
94
94

query I rowsort
SELECT ALL + 96 * col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
2496
4128
7968

query I rowsort
SELECT DISTINCT 85 + - tab2.col0 FROM tab2 GROUP BY tab2.col0
----
-6
-7
70

query I rowsort
SELECT ALL - 68 FROM tab2 GROUP BY tab2.col0
----
-68
-68
-68

query I rowsort
SELECT - 60 * tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-2640
-3420
-360

query I rowsort
SELECT ALL 17 FROM tab0 GROUP BY tab0.col0
----
17
17
17

query I rowsort
SELECT 86 * cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
0
0
6966

onlyif mysql # DIV for integer division: 
query I rowsort label-2017
SELECT cor0.col0 DIV cor0.col0 + - cor0.col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col0
----
-21
-27
-81

skipif mysql # not compatible
query I rowsort label-2017
SELECT cor0.col0 / cor0.col0 + - cor0.col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col0
----
-21
-27
-81

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2 HAVING NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + tab2.col0 AS col0 FROM tab2 GROUP BY col0
----
15
91
92

query I rowsort
SELECT DISTINCT - tab0.col1 + tab0.col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
0

query I rowsort
SELECT DISTINCT + 40 + - cor0.col1 * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-2525
-3084
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 78 * + tab1.col0 col0 FROM tab1 GROUP BY tab1.col0
----
-1716
-2184
-6396

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT + tab1.col0 DIV 72 + - tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-81

skipif mysql # not compatible
query I rowsort label-2023
SELECT + tab1.col0 / 72 + - tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT DISTINCT + cor0.col1 * - CAST( 91 AS SIGNED ) FROM tab0 cor0 GROUP BY cor0.col1
----
-7371
0

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT + cor0.col1 * - CAST ( 91 AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col1
----
-7371
0

query I rowsort
SELECT + 38 + col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
129
130
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2026
SELECT DISTINCT - + tab2.col2 DIV col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
-1

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT - + tab2.col2 / col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
-1

query I rowsort
SELECT - col0 * + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-484
-6724
-784

query I rowsort
SELECT - 73 - tab0.col1 * tab0.col1 AS col0 FROM tab0 GROUP BY tab0.col1
----
-6634
-73

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
86

query I rowsort
SELECT DISTINCT - tab2.col1 * 89 AS col1 FROM tab2 GROUP BY tab2.col1
----
-3649
-5251
-5429

query I rowsort
SELECT ALL - cor0.col2 + - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-105
-38
-79

query I rowsort
SELECT ALL 77 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2
----
77
77
77

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
41
59
61

query I rowsort
SELECT ALL 87 FROM tab1 GROUP BY tab1.col0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 col0 FROM tab2 GROUP BY tab2.col2
----
3
3
3

query I rowsort
SELECT DISTINCT - + 33 AS col0 FROM tab0 GROUP BY tab0.col2
----
-33

query I rowsort
SELECT ALL + 74 FROM tab2 GROUP BY tab2.col2
----
74
74
74

query I rowsort
SELECT DISTINCT + 19 FROM tab1 GROUP BY tab1.col2
----
19

query I rowsort
SELECT ALL 1 FROM tab1 GROUP BY tab1.col0
----
1
1
1

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col2
----
-22
-28
-82

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab2 AS cor0 GROUP BY col2
----
55

query I rowsort
SELECT + tab0.col1 * - tab0.col1 FROM tab0 GROUP BY tab0.col1
----
-6561
0

query I rowsort
SELECT - 31 AS col2 FROM tab1 GROUP BY tab1.col2
----
-31
-31
-31

query I rowsort
SELECT ALL 86 FROM tab0 GROUP BY tab0.col2
----
86
86
86

query I rowsort
SELECT ALL + 78 AS col0 FROM tab0 GROUP BY tab0.col2
----
78
78
78

query I rowsort
SELECT ALL - 44 FROM tab1 GROUP BY tab1.col0
----
-44
-44
-44

query I rowsort
SELECT 62 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
62
62
62

query I rowsort
SELECT DISTINCT + tab2.col0 * - tab2.col0 AS col2 FROM tab2 GROUP BY tab2.col0
----
-225
-8281
-8464

query I rowsort
SELECT DISTINCT 44 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
44

query I rowsort
SELECT - tab0.col0 * 73 FROM tab0 GROUP BY tab0.col0
----
-1898
-3139
-6059

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab2 GROUP BY tab2.col0
----
-6

query I rowsort
SELECT DISTINCT + 25 FROM tab2 GROUP BY tab2.col0
----
25

query I rowsort
SELECT - + tab2.col1 * + tab2.col1 FROM tab2 GROUP BY col1
----
-1681
-3481
-3721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-17
-17
-17

query I rowsort
SELECT - 61 * - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
2501
3599
3721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab0.col0 ) col2 FROM tab0 GROUP BY col0
----
-26
-43
-83

query I rowsort
SELECT NULLIF ( cor0.col1, cor0.col1 * cor0.col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2, col1
----
44
57
6

query I rowsort
SELECT ALL + - 19 - + tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-101
-41
-47

query I rowsort
SELECT + - 91 AS col1 FROM tab1 GROUP BY col0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - tab1.col1 * 3 FROM tab1 GROUP BY tab1.col1
----
-132
-171
-18

query I rowsort
SELECT + - tab0.col1 + + tab0.col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
0
0

query I rowsort
SELECT + ( 83 ) FROM tab2 GROUP BY tab2.col1
----
83
83
83

query I rowsort
SELECT ALL - - tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT DISTINCT - 8 AS col2 FROM tab0 GROUP BY col0
----
-8

query I rowsort
SELECT DISTINCT - 76 * - cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
3420
5396
608

onlyif mysql # DIV for integer division: 
query I rowsort label-2066
SELECT DISTINCT col0 DIV - 7 FROM tab0 AS cor0 GROUP BY col0
----
-11
-3
-6

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT col0 / - 7 FROM tab0 AS cor0 GROUP BY col0
----
-11
-3
-6

query I rowsort
SELECT + tab2.col2 * + tab2.col2 FROM tab2 GROUP BY tab2.col2
----
3364
6241
7569

query I rowsort
SELECT + 81 + 50 FROM tab1, tab2 AS cor0 GROUP BY tab1.col0
----
131
131
131

query I rowsort
SELECT ALL 22 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor1.col0
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT 88 DIV - 98 - - tab1.col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

skipif mysql # not compatible
query I rowsort label-2070
SELECT 88 / - 98 - - tab1.col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT DISTINCT 87 + 58 AS col2 FROM tab1 GROUP BY tab1.col0
----
145

query I rowsort
SELECT DISTINCT - 54 * col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-4374
0

query I rowsort
SELECT ALL tab2.col0 * 92 FROM tab2 GROUP BY tab2.col0
----
1380
8372
8464

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT cor0.col0 * cor0.col2 + cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
1320
5428
7280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col1 FROM tab1 GROUP BY tab1.col2
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 + 74 col1 FROM tab0 GROUP BY tab0.col1
----
155
74

query I rowsort
SELECT DISTINCT - 92 + + 55 AS col1 FROM tab2 GROUP BY tab2.col1
----
-37

query I rowsort
SELECT ALL 47 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
47
47
47

query I rowsort
SELECT ALL - + col2 * - 65 AS col2 FROM tab1 GROUP BY tab1.col2
----
2925
4615
520

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
-1681
-3481
-3721

query I rowsort
SELECT DISTINCT + - 28 FROM tab1 GROUP BY tab1.col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2084
SELECT ALL cor0.col1 DIV + col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL cor0.col1 / + col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 GROUP BY tab0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 GROUP BY tab0.col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 31 + - 56 col2 FROM tab0 GROUP BY tab0.col1
----
-25

query I rowsort
SELECT - - 8 * - 51 AS col2 FROM tab0 GROUP BY tab0.col2
----
-408
-408
-408

query I rowsort
SELECT ALL + 86 * cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
3784
4902
516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 - + cor0.col0 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-109
-149
-92

query I rowsort
SELECT ALL col1 + + tab0.col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
0
162

query I rowsort
SELECT ALL col1 + - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
0
0
0

query I rowsort
SELECT - tab2.col1 + + col1 * tab2.col1 AS col0 FROM tab2 GROUP BY tab2.col1
----
1640
3422
3660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
57
57
57

query I rowsort
SELECT 99 + col2 AS col1 FROM tab2 GROUP BY col2
----
157
178
186

query I rowsort
SELECT DISTINCT col1 * cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1, col2
----
1681
3481
3721

query I rowsort
SELECT ALL - cor0.col0 + - cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-166
-52
-86

query I rowsort
SELECT + tab1.col1 * 66 + col1 AS col0 FROM tab1 GROUP BY tab1.col1
----
2948
3819
402

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT ALL cor0.col2 + 43 DIV 14 FROM tab2 AS cor0 GROUP BY cor0.col2
----
61
82
90

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL cor0.col2 + 43 / 14 FROM tab2 AS cor0 GROUP BY cor0.col2
----
61
82
90

query I rowsort
SELECT + 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT DISTINCT + cor0.col2 DIV - cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-1

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + cor0.col2 / - cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 * 13 col0 FROM tab0 GROUP BY col1
----
-1066

query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT - ( 11 ) AS col2 FROM tab1 GROUP BY tab1.col2
----
-11
-11
-11

query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab2 GROUP BY tab2.col1
----
-76

query I rowsort
SELECT ALL + tab1.col2 FROM tab1 WHERE NOT NULL NOT IN ( + tab1.col1 ) GROUP BY tab1.col2
----

query I rowsort
SELECT DISTINCT tab2.col1 * tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
1681
3481
3721

query I rowsort
SELECT ALL 65 * 40 FROM tab0 AS cor0 GROUP BY col0
----
2600
2600
2600

query I rowsort
SELECT DISTINCT - 43 FROM tab2 GROUP BY tab2.col1
----
-43

query I rowsort
SELECT cor0.col0 * + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
67

query I rowsort
SELECT ALL 15 - tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
-29
-42
9

query I rowsort
SELECT ALL + col0 + - tab0.col0 FROM tab0 GROUP BY tab0.col0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
58

query I rowsort
SELECT DISTINCT - cor0.col0 - ( 31 + + cor0.col0 ) * col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-11193
-11408
-705

query I rowsort
SELECT - 82 AS col2 FROM tab0 GROUP BY col1
----
-82
-82

query I rowsort
SELECT cor0.col0 + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
133
150
76

query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col1
----
15
91
92

query I rowsort
SELECT tab1.col1 * + col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
1936
3249
36

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
-41
-59
-61

query I rowsort
SELECT DISTINCT + 20 FROM tab1 GROUP BY tab1.col2
----
20

query I rowsort
SELECT 56 FROM tab1 cor0 GROUP BY cor0.col2
----
56
56
56

query I rowsort
SELECT 17 * cor0.col2 + + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1044
1422
1566

query I rowsort
SELECT DISTINCT + 45 FROM tab1 GROUP BY tab1.col0
----
45

query I rowsort
SELECT DISTINCT - 9 FROM tab1 GROUP BY tab1.col0
----
-9

query I rowsort
SELECT ALL - 76 * + tab0.col2 FROM tab0 GROUP BY tab0.col2
----
-1824
-2888
-6004

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
45
71
8

query I rowsort
SELECT 96 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
96
96
96

query I rowsort
SELECT DISTINCT - 16 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-10
28
41

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col2 + + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3422
6320
7656

query I rowsort
SELECT - cor0.col2 * cor0.col1 - - 13 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-2365
-4648
-5294

query I rowsort
SELECT ( cor0.col1 ) * + col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1936
3249
36

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
1849
676
6889

query I rowsort
SELECT ( cor0.col0 ) * 91 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
2002
2548
7462

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT + 29 * - cor0.col1 + - ( + 43 ) DIV - col2 FROM tab2 cor0 GROUP BY col2, cor0.col1
----
-1189
-1711
-1769

skipif mysql # not compatible
query I rowsort label-2135
SELECT + 29 * - cor0.col1 + - ( + 43 ) / - col2 FROM tab2 cor0 GROUP BY col2, cor0.col1
----
-1189
-1711
-1769

query I rowsort
SELECT DISTINCT ( - col1 * cor0.col1 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1936
-3249
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT + cor0.col2 * + CAST( - 76 AS SIGNED ) * - cor0.col0 - col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
156025
239666
78408

skipif mysql # not compatible
query I rowsort label-2141
SELECT + cor0.col2 * + CAST ( - 76 AS INTEGER ) * - cor0.col0 - col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
156025
239666
78408

query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1806
-650
-6806

query I rowsort
SELECT DISTINCT cor0.col0 * 57 - + ( - cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
1276
1624
4756

query I rowsort
SELECT ALL - cor0.col0 * ( - cor0.col1 ) + - cor0.col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
3731
5310
854

query I rowsort
SELECT DISTINCT 7 * cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
182
301
581

query I rowsort
SELECT - cor0.col0 * - cor0.col0 + + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
240
8372
8556

onlyif mysql # DIV for integer division: 
query I rowsort label-2147
SELECT + cor0.col2 + + 80 + - cor0.col2 DIV cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
103
117
158

skipif mysql # not compatible
query I rowsort label-2147
SELECT + cor0.col2 + + 80 + - cor0.col2 / cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
103
117
158

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2148
SELECT ALL CAST( NULL AS DECIMAL ) * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL CAST ( NULL AS REAL ) * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2149
SELECT CAST( + 1 AS SIGNED ) DIV cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2149
SELECT CAST ( + 1 AS INTEGER ) / cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT + + CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0, tab1 AS cor1 GROUP BY tab0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0, tab1 AS cor1 GROUP BY tab0.col1
----
NULL
NULL

query I rowsort
SELECT 97 + - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col2
----
26
52
89

query I rowsort
SELECT col2 * 0 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col1, cor0.col2
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 + + 22 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-69
-70
7

query I rowsort
SELECT DISTINCT cor0.col1 + - 63 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col1
----
-63
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2155
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 + tab1.col0 * + 87 AS col1 FROM tab1 GROUP BY col0
----
1941
2463
7161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2157
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT + 19 * + col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
1539

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT - 29 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-29
-29
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2161
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col1
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2161
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col1
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT - 48 * - 33 AS col0 FROM tab1, tab1 cor0 GROUP BY cor0.col2
----
1584
1584
1584

query I rowsort
SELECT ALL + ( + col0 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT - cor0.col0 + ( - col0 ) * cor0.col0 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
-240
-8372
-8556

query I rowsort
SELECT - - cor0.col0 FROM tab2, tab2 cor0, tab2 AS cor1 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab2 cor0, tab2 AS cor1 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT - + tab1.col1 FROM tab1 GROUP BY col1
----
-44
-57
-6

query I rowsort
SELECT + ( cor0.col1 ) * ( cor0.col1 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
1681
3481
3721

query I rowsort
SELECT ALL 95 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
95
95
95

query I rowsort
SELECT + 97 AS col1 FROM tab0 GROUP BY tab0.col2
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col1 FROM tab0 GROUP BY col0
----
-42
-42
-42

query I rowsort
SELECT ALL + 28 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
28
28
28

query I rowsort
SELECT ALL + cor0.col1 FROM tab0 cor0 GROUP BY col2, cor0.col1
----
0
0
81

query I rowsort
SELECT ( 47 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
47
47
47

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
164
44
56

query I rowsort
SELECT ALL + 30 FROM tab2 AS cor0 GROUP BY col0
----
30
30
30

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT DISTINCT + - 66 * 20 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
-1320

query I rowsort
SELECT 74 + - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-13
-5
16

query I rowsort
SELECT - 35 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-35
-35
-35

query I rowsort
SELECT 14 FROM tab1 AS cor0 GROUP BY cor0.col2
----
14
14
14

query I rowsort
SELECT - + 46 FROM tab2 GROUP BY tab2.col0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - - 49 AS col0 FROM tab0 GROUP BY tab0.col1
----
49

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
15
91
92

query I rowsort
SELECT 72 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
72
72
72

query I rowsort
SELECT 75 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT ALL - - CAST( - 40 AS SIGNED ) FROM tab2 GROUP BY tab2.col1
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - - CAST ( - 40 AS INTEGER ) FROM tab2 GROUP BY tab2.col1
----
-40
-40
-40

query I rowsort
SELECT ALL + tab1.col1 * + tab1.col1 + tab1.col1 AS col1 FROM tab1 GROUP BY col1
----
1980
3306
42

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
44
57
6

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT + 73 AS col0 FROM tab1 GROUP BY col2
----
73
73
73

query I rowsort
SELECT cor0.col0 + + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT 50 FROM tab1 AS cor0 GROUP BY cor0.col2
----
50
50
50

query I rowsort
SELECT 52 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
52
52
52

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0, col1
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT col1 - 74 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
-17
-30
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT ALL cor0.col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL cor0.col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT ( 6 ) DIV - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2201
SELECT ( 6 ) / - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
0

query I rowsort
SELECT + - ( tab2.col0 ) AS col0 FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
114
12
88

query I rowsort
SELECT 62 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
62
62
62

query I rowsort
SELECT - 82 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-82
-82
-82

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
45
71
8

query I rowsort
SELECT DISTINCT - 91 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-91

query I rowsort
SELECT - - 39 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
39
39
39

query I rowsort
SELECT 63 FROM tab1 AS cor0 GROUP BY cor0.col0
----
63
63
63

query I rowsort
SELECT ALL cor0.col2 - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT col0 * cor0.col0 * ( - cor0.col2 ) + + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-35252
-3850
-477322

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT DISTINCT - 10 DIV col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
0

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT - 10 / col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + - cor0.col1 + 82 col1 FROM tab0 AS cor0 GROUP BY col1
----
157
76

query I rowsort
SELECT cor0.col2 * - 36 AS col2 FROM tab1 cor0 GROUP BY col2
----
-1620
-2556
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
17
17
17

query I rowsort
SELECT - 81 FROM tab2 GROUP BY tab2.col1
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * - cor0.col0 + ( 93 ) col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
-2403
-4035
-7875

query I rowsort
SELECT 60 FROM tab0 cor0 GROUP BY col1
----
60
60

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT - 82 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-82
-82
-82

query I rowsort
SELECT + 20 + 38 AS col2 FROM tab2 GROUP BY tab2.col1
----
58
58
58

query I rowsort
SELECT ( tab1.col2 ) FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT DISTINCT - tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT ALL - 31 DIV + cor0.col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT ALL - 31 / + cor0.col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
15
15
15

query I rowsort
SELECT ALL - tab1.col2 FROM tab1 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT ALL - ( 33 ) + - cor0.col1 + + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-33
-33
-33

query I rowsort
SELECT col0 * cor0.col0 * + ( 28 * + cor0.col1 ) - - cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
4193613

query I rowsort
SELECT ALL - 37 * - tab1.col1 + + tab1.col1 FROM tab1 GROUP BY col1
----
1672
2166
228

query I rowsort
SELECT 33 + + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
115
55
61

query I rowsort
SELECT 9 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
9
9
9

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT + 36 FROM tab0 cor0 GROUP BY col2
----
36
36
36

query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT + 59 FROM tab1 GROUP BY tab1.col2
----
59

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
12

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
53

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT 28 * 39 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1092
1092
1092

query I rowsort
SELECT ALL 96 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
30
30

query I rowsort
SELECT DISTINCT 49 * 64 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3136

query I rowsort
SELECT + 31 FROM tab0 AS cor0 GROUP BY cor0.col0
----
31
31
31

query I rowsort
SELECT + col1 FROM tab1 cor0 GROUP BY col1
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-2246
SELECT ALL cor0.col2 + - 94 DIV + 8 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
47
68
76

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL cor0.col2 + - 94 / + 8 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
47
68
76

query I rowsort
SELECT DISTINCT - ( cor0.col0 * - cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT DISTINCT + 8 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-44

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col2
----
24
38
79

query I rowsort
SELECT + 3 FROM tab2 GROUP BY tab2.col2
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT - cor0.col1 DIV + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2252
SELECT - cor0.col1 / + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1
-1
-1

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab0 AS cor0 GROUP BY col0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 + 13 col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT - 83 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-83
-83
-83

query I rowsort
SELECT cor0.col0 + - 58 AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
-15
-32
25

query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col0 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + - 76 AS col2 FROM tab1, tab2 cor0 GROUP BY cor0.col2
----
-76

query I rowsort
SELECT ALL ( cor0.col0 ) * + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
225
8281
8464

query I rowsort
SELECT DISTINCT + cor0.col1 + 22 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
28
66
79

query I rowsort
SELECT DISTINCT + cor0.col1 * - 13 FROM tab2 cor0 GROUP BY cor0.col1
----
-533
-767
-793

onlyif mysql # DIV for integer division: 
query I rowsort label-2266
SELECT + col1 DIV 43 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2266
SELECT + col1 / 43 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0
1
1

query I rowsort
SELECT DISTINCT 98 + - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
41
54
92

query I rowsort
SELECT DISTINCT + 20 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
20

query I rowsort
SELECT DISTINCT + 88 + 86 * - cor0.col1 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
-6878
88

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab1 cor0 GROUP BY cor0.col0
----
14

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT 91 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
91
91
91

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT + ( - 15 ) FROM tab1 GROUP BY tab1.col2
----
-15
-15
-15

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT DISTINCT 78 FROM tab0, tab2 AS cor0 GROUP BY tab0.col2
----
78

query I rowsort
SELECT cor0.col1 - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-16
-38
29

query I rowsort
SELECT 12 FROM tab1, tab1 AS cor0, tab2 AS cor1 GROUP BY cor1.col1
----
12
12
12

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-26
-43
-83

query I rowsort
SELECT 3 AS col2 FROM tab1 GROUP BY tab1.col1
----
3
3
3

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT 99 FROM tab2 AS cor0 GROUP BY cor0.col2
----
99
99
99

query I rowsort
SELECT ALL - cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
-44
-57
-6

query I rowsort
SELECT - cor0.col1 - + 56 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-100
-113
-62

query I rowsort
SELECT DISTINCT cor0.col1 * 92 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3772
5428
5612

query I rowsort
SELECT + col0 FROM tab2 GROUP BY tab2.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + 74 FROM tab1 cor0 GROUP BY cor0.col0
----
74

query I rowsort
SELECT 23 FROM tab1 AS cor0 GROUP BY cor0.col2
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2293
SELECT ALL - cor0.col2 + cor0.col2 DIV ( + 72 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-78

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - cor0.col2 + cor0.col2 / ( + 72 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-78

query I rowsort
SELECT ALL + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 82 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
82

query I rowsort
SELECT ALL - cor0.col2 - 38 FROM tab1 AS cor0 GROUP BY col2
----
-109
-46
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2297
SELECT 78 * - cor0.col2 - cor0.col0 DIV + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-4525
-6163
-6786

skipif mysql # not compatible
query I rowsort label-2297
SELECT 78 * - cor0.col2 - cor0.col0 / + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-4525
-6163
-6786

query I rowsort
SELECT DISTINCT 42 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1, cor0.col1
----
42

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1, cor0.col2
----
0
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * - 75 col2 FROM tab2 GROUP BY col2
----
-4350
-5925
-6525

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT 29 FROM tab0 AS cor0 GROUP BY col1
----
29
29

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
15
91
92

query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
-41
-59
-61

query I rowsort
SELECT 72 FROM tab2 GROUP BY tab2.col0
----
72
72
72

query I rowsort
SELECT - cor0.col1 + - 87 * + cor0.col1 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
-3872
-5016
-528

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
29
29
29

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
98

query I rowsort
SELECT ALL - + tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 GROUP BY tab2.col0
----
-15
-91
-92

query I rowsort
SELECT + cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

query I rowsort
SELECT ALL 33 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
33
33

query I rowsort
SELECT ALL + + 13 AS col1 FROM tab1, tab1 AS cor0 GROUP BY tab1.col2
----
13
13
13

query I rowsort
SELECT - cor0.col2 * 46 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-2668
-3634
-4002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 * + cor0.col0 col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
1846
3053
5893

query I rowsort
SELECT - col2 FROM tab0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0 GROUP BY col1 HAVING NULL <= NULL
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT 20 AS col1 FROM tab2 GROUP BY tab2.col2
----
20
20
20

query I rowsort
SELECT + - 96 FROM tab1, tab1 AS cor0, tab0 AS cor1 GROUP BY cor1.col0
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT + 19 * 24 DIV cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
5
5
7

skipif mysql # not compatible
query I rowsort label-2322
SELECT + 19 * 24 / cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
5
5
7

query I rowsort
SELECT 21 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
21
21
21

query I rowsort
SELECT cor0.col0 * - cor0.col0 + - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-240
-8372
-8556

query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL cor0.col1 * 68 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
2992
3876
408

onlyif mysql # DIV for integer division: 
query I rowsort label-2329
SELECT cor0.col2 DIV + ( cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2329
SELECT cor0.col2 / + ( cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
0
0
3

query I rowsort
SELECT + 63 - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-16
25
39

query I rowsort
SELECT - 89 FROM tab0 AS cor0 GROUP BY col2
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2332
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
-44
-57
-6

query I rowsort
SELECT DISTINCT + + tab0.col0 FROM tab0 GROUP BY col0
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT 20 DIV + 69 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT 20 / + 69 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT 66 * - cor0.col0 * - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
122034
44616
454674

query I rowsort
SELECT ALL + 52 * - col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1352
-2236
-4316

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT - cor0.col1 FROM tab1 AS cor0 GROUP BY col2, cor0.col2, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT DISTINCT - 83 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-83

query I rowsort
SELECT + 28 FROM tab1 AS cor0 GROUP BY cor0.col2
----
28
28
28

query I rowsort
SELECT ALL + 20 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
20
20
20

query I rowsort
SELECT ALL - 61 * cor0.col0 - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1612
-2666
-5146

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT - 28 DIV + col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2344
SELECT - 28 / + col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-4
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT + 93 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
93
93
93

query I rowsort
SELECT ALL + 86 + col2 FROM tab0 cor0 GROUP BY col2
----
110
124
165

query I rowsort
SELECT cor0.col1 * + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT ALL 49 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
4459
4508
735

query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
36

query I rowsort
SELECT col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
26
43
83

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-41
-59
-61

query I rowsort
SELECT ALL - ( cor0.col1 * cor0.col1 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT col1 + 27 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
108
27
27

query I rowsort
SELECT 78 FROM tab0 cor0 GROUP BY cor0.col2
----
78
78
78

query I rowsort
SELECT ALL - col1 + 9 + col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-37
41
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2357
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2357
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 29 - + 44 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-15
-15
-15

query I rowsort
SELECT cor0.col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT - 69 AS col0 FROM tab0 cor0 GROUP BY cor0.col0
----
-69
-69
-69

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
66

query I rowsort
SELECT ALL 66 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2364
SELECT - 20 DIV - 47 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2364
SELECT - 20 / - 47 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
0

query I rowsort
SELECT ALL + 24 FROM tab1 AS cor0 GROUP BY cor0.col1
----
24
24
24

query I rowsort
SELECT ALL - cor0.col0 + + ( - 20 ) FROM tab0 AS cor0 GROUP BY cor0.col0, col0
----
-103
-46
-63

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
3364
6241
7569

query I rowsort
SELECT + cor0.col0 * col0 * cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
3375
753571
778688

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 AS col2 FROM tab1 cor0 GROUP BY col2, col2
----
2025
5041
64

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
126
28
85

query I rowsort
SELECT ALL cor0.col2 + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
158
48
76

query I rowsort
SELECT - 67 + cor0.col2 * - cor0.col2 + - cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
-1549
-6387
-667

query I rowsort
SELECT - ( - col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2376
SELECT ALL CAST( NULL AS DECIMAL ) + + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL CAST ( NULL AS REAL ) + + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 66 FROM tab1, tab2 AS cor0 GROUP BY tab1.col2
----
-66

query I rowsort
SELECT DISTINCT 31 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
31

query I rowsort
SELECT DISTINCT + 36 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col0
----
36

query I rowsort
SELECT + col0 + 38 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
121
64
81

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT DISTINCT - 31 FROM tab1 cor0 GROUP BY cor0.col2
----
-31

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 cor0 GROUP BY cor0.col1, col2, cor0.col1
----
45
71
8

query I rowsort
SELECT ( - 56 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col2
----
-56
-56
-56

query I rowsort
SELECT DISTINCT 48 FROM tab1 AS cor0 GROUP BY cor0.col2
----
48

query I rowsort
SELECT DISTINCT 19 * 98 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1 GROUP BY tab1.col1
----
1862

onlyif mysql # DIV for integer division: 
query I rowsort label-2387
SELECT DISTINCT - 1 DIV - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT - 1 / - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT DISTINCT + 98 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
98

query I rowsort
SELECT DISTINCT - + 18 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
-18

query I rowsort
SELECT ALL + + 64 FROM tab2 GROUP BY tab2.col1
----
64
64
64

query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT ALL cor0.col1 + ( + cor0.col1 ) + cor0.col0 * + ( cor0.col1 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
3645

query I rowsort
SELECT 79 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
79
79
79

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
15
91
92

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 AS col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1, cor0.col1
----
166
52
86

query I rowsort
SELECT - cor0.col2 * 65 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-3770
-5135
-5655

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
26
43
83

query I rowsort
SELECT - cor0.col2 + - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-142
-16
-90

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL - 26 FROM tab1, tab2 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
-26
-26
-26

query I rowsort
SELECT cor0.col1 + - cor0.col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( cor0.col0 ) BETWEEN ( - cor0.col0 ) AND NULL GROUP BY cor0.col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
37

query I rowsort
SELECT 99 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
99
99
99

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col1
----
44
57
6

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col2
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
9
9
9

query I rowsort
SELECT ALL - cor0.col1 - - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 * 26 col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1898
1898
1898

query I rowsort
SELECT ALL - 93 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-93
-93

query I rowsort
SELECT - 62 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-62
-62
-62

query I rowsort
SELECT - 52 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
116
158
174

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT + col2 - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - ( cor0.col2 ) col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
-2565
-3124
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col2 FROM tab0 AS cor0 GROUP BY col1
----
-31
-31

query I rowsort
SELECT DISTINCT cor0.col1 * 94 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
4136
5358
564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2422
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2422
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL - cor0.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL - 62 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-62
-62
-62

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL + 28 * + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
1064
2212
672

query I rowsort
SELECT ALL cor0.col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 - + cor0.col0 col2 FROM tab1 AS cor0 GROUP BY col0
----
-125
-65
-71

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT ALL - - 56 DIV + 48 AS col0 FROM tab2, tab2 AS cor0 GROUP BY tab2.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL - - 56 / + 48 AS col0 FROM tab2, tab2 AS cor0 GROUP BY tab2.col1
----
1
1
1

query I rowsort
SELECT ALL + + 31 FROM tab0, tab2 AS cor0 GROUP BY tab0.col1
----
31
31

query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL + 19 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
19
19
19

query I rowsort
SELECT ALL cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
58
79
87

query I rowsort
SELECT ALL + 86 + + 46 FROM tab2 GROUP BY col0
----
132
132
132

query I rowsort
SELECT - ( + 54 ) * tab0.col2 FROM tab0, tab2 AS cor0 GROUP BY tab0.col2
----
-1296
-2052
-4266

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col0, col1
----
0
0
6561

query I rowsort
SELECT cor0.col1 * - cor0.col0 * + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-13725
-347024
-488579

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT 59 DIV - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT 59 / - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1
0
0

query I rowsort
SELECT ALL ( + cor0.col0 * - cor0.col0 + + 82 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-402
-6642
-702

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
1681
3481
3721

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT - 56 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1 GROUP BY cor1.col0
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2450
SELECT ALL + cor0.col0 * 15 + cor0.col0 DIV + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1366
1381
226

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + cor0.col0 * 15 + cor0.col0 / + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1366
1381
226

query I rowsort
SELECT + 44 FROM tab1 AS cor0 GROUP BY cor0.col0
----
44
44
44

query I rowsort
SELECT 0 AS col0 FROM tab1 GROUP BY tab1.col0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor1.col1 * + 32 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1 GROUP BY cor1.col1
----
-1408
-1824
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT cor0.col1 DIV + 84 + - cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

skipif mysql # not compatible
query I rowsort label-2454
SELECT cor0.col1 / + 84 + - cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT 75 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
75
75
75

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab0 cor0 GROUP BY col2
----
57

query I rowsort
SELECT 59 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
59
59
59

query I rowsort
SELECT 89 FROM tab2 AS cor0 GROUP BY cor0.col0
----
89
89
89

query I rowsort
SELECT - - tab0.col0 FROM tab0 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT + + tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT ALL - col0 FROM tab2 GROUP BY col0
----
-15
-91
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT + cor0.col2 * cor0.col1 * CAST( 27 AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
52488

skipif mysql # not compatible
query I rowsort label-2462
SELECT + cor0.col2 * cor0.col1 * CAST ( 27 AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
52488

query I rowsort
SELECT DISTINCT cor0.col1 - - cor0.col1 * ( - cor0.col0 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-3731
-5310
-854

query I rowsort
SELECT ALL + 0 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2 cor0 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT 80 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
80
80
80

query I rowsort
SELECT - ( cor1.col1 ) * cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1
----
-6561
0

query I rowsort
SELECT - - tab1.col0 FROM tab1, tab1 AS cor0 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT DISTINCT - cor0.col2 + - 98 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
-106
-143
-169

query I rowsort
SELECT 72 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
2952
4248
4392

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
85

query I rowsort
SELECT - 96 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-96
-96
-96

query I rowsort
SELECT - - col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT ( cor0.col1 + - cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-32
-51
46

query I rowsort
SELECT ALL cor0.col2 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT 91 FROM tab1 AS cor0 GROUP BY col0
----
91

query I rowsort
SELECT - 58 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-58
-58
-58

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT - cor0.col0 FROM tab1 cor0 GROUP BY col2, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT - col0 - - 88 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
6
60
66

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT + 86 FROM tab1 AS cor0 GROUP BY col2
----
86
86
86

query I rowsort
SELECT - ( - cor0.col2 ) FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT - ( - cor0.col0 ) FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT 78 + + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
136
157
165

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT - 42 DIV 91 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT - 42 / 91 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 40 + cor0.col1 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1 GROUP BY cor0.col1
----
101
81
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2490
SELECT 98 DIV cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2490
SELECT 98 / cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT cor0.col2 - - cor0.col2 FROM tab0 cor0 GROUP BY col2
----
158
48
76

query I rowsort
SELECT cor0.col0 - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT DISTINCT 43 + col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
124
43

query I rowsort
SELECT + 14 FROM tab0 AS cor0 GROUP BY cor0.col1
----
14
14

query I rowsort
SELECT ALL + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
58
79
87

query I rowsort
SELECT ALL - 83 AS col0 FROM tab1 GROUP BY tab1.col1
----
-83
-83
-83

query I rowsort
SELECT ALL + 61 FROM tab0 cor0 GROUP BY cor0.col0, col2
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2498
SELECT ALL + CAST( NULL AS SIGNED ) * + 8 FROM tab2 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL + CAST ( NULL AS INTEGER ) * + 8 FROM tab2 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
17

query I rowsort
SELECT DISTINCT - 54 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + cor0.col0 + cor0.col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
137
174
209

query I rowsort
SELECT + 62 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
2542
3658
3782

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

query I rowsort
SELECT + 27 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col2
----
27
27
27

query I rowsort
SELECT 70 * - col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-3150
-4970
-560

query I rowsort
SELECT - col2 FROM tab1 cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ( cor0.col2 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
45
71
8

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 + + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
3405
6300
7630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2510
SELECT DISTINCT cor0.col2 + CAST( + 40 AS SIGNED ) + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
130
182
56

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT cor0.col2 + CAST ( + 40 AS INTEGER ) + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
130
182
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + - 89 * + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1350
-8190
-8280

query I rowsort
SELECT col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT - cor0.col2 + 73 FROM tab0 AS cor0 GROUP BY col2
----
-6
35
49

query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-56
-56
-56

query I rowsort
SELECT + col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT - 51 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-51
-51

query I rowsort
SELECT DISTINCT - 6 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-6

query I rowsort
SELECT 7 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
7
7
7

query I rowsort
SELECT 86 * + 94 FROM tab0 AS cor0 GROUP BY cor0.col2
----
8084
8084
8084

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL - 35 + cor0.col2 * + cor0.col2 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
1409
541
6206

query I rowsort
SELECT ALL + 84 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
36
36
36

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-26
-43
-83

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-132
-1596
-3608

query I rowsort
SELECT + cor0.col2 + 24 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
103
48
62

query I rowsort
SELECT col1 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab2 AS cor0 GROUP BY col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab0, tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT 70 FROM tab2 AS cor0 GROUP BY cor0.col1
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2536
SELECT DISTINCT cor0.col0 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT cor0.col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
NULL

query I rowsort
SELECT - 45 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-45
-45
-45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT ALL 0 + - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + 30 FROM tab1 AS cor0 GROUP BY col0
----
-454
-6694
-754

query I rowsort
SELECT + + 64 FROM tab1 GROUP BY tab1.col0
----
64
64
64

query I rowsort
SELECT ALL 89 FROM tab2 AS cor0 GROUP BY cor0.col1
----
89
89
89

query I rowsort
SELECT - 73 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
-73
-73

query I rowsort
SELECT + + 25 * 20 AS col2 FROM tab1 GROUP BY tab1.col1
----
500
500
500

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0 cor0 GROUP BY col0, cor0.col1
----
-81
0
0

query I rowsort
SELECT ALL ( 1 ) * - cor0.col2 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT - + 38 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
-38

query I rowsort
SELECT 27 FROM tab0, tab0 AS cor0 GROUP BY tab0.col2
----
27
27
27

query I rowsort
SELECT ALL cor0.col1 * - 95 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-4180
-5415
-570

query I rowsort
SELECT + 92 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
92
92
92

query I rowsort
SELECT cor0.col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + 12 AS col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
12

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1
----
41
59
61

query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 * col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1482
600
6320

query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor0.col0
----
-15
-91
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 + - 41 col0 FROM tab2 GROUP BY col2
----
20
20
20

query I rowsort
SELECT cor0.col1 * 82 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3362
4838
5002

query I rowsort
SELECT ALL cor0.col0 - 36 FROM tab1 cor0 GROUP BY cor0.col0
----
-14
-8
46

query I rowsort
SELECT 35 FROM tab2 cor0 GROUP BY col0
----
35
35
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2561
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT + 26 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26

query I rowsort
SELECT 36 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
36
36
36

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
45
71
8

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
73

query I rowsort
SELECT DISTINCT - 88 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-88

query I rowsort
SELECT ALL 52 AS col2 FROM tab1 cor0 GROUP BY cor0.col0, col1, cor0.col1, col0
----
52
52
52

query I rowsort
SELECT cor0.col0 + + col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT - 60 + cor0.col1 * col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-60
6501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2 cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT DISTINCT + cor0.col0 * 67 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1005
6097
6164

query I rowsort
SELECT DISTINCT - 69 + - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-112
-152
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + - 51 FROM tab1, tab1 cor0 GROUP BY cor0.col1
----
-51

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 31 FROM tab2 GROUP BY tab2.col2
----
-31

query I rowsort
SELECT DISTINCT col0 + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY col0
----
182
184
30

query I rowsort
SELECT ALL + 65 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
65
65

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-32

query I rowsort
SELECT DISTINCT + + 71 AS col0 FROM tab2, tab2 cor0 GROUP BY tab2.col0
----
71

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
49

query I rowsort
SELECT DISTINCT - 68 * col0 * + cor0.col0 - - 91 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
-32821
-457141
-53221

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
-41
-59
-61

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
26
43
83

query I rowsort
SELECT - + ( - cor0.col0 ) FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL - ( - col1 ) * + 53 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
4293

query I rowsort
SELECT 57 AS col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
57
57
57

query I rowsort
SELECT ALL cor0.col1 + - cor0.col1 + - 89 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-89
-89
-89

query I rowsort
SELECT ALL cor0.col0 * - col0 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
-484
-6724
-784

query I rowsort
SELECT 80 FROM tab0 AS cor0 GROUP BY cor0.col0
----
80
80
80

query I rowsort
SELECT ALL 65 FROM tab0 cor0 GROUP BY cor0.col0
----
65
65
65

query I rowsort
SELECT 17 AS col1 FROM tab1 GROUP BY tab1.col1
----
17
17
17

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-81
0
0

query I rowsort
SELECT ALL + 64 FROM tab0 GROUP BY tab0.col1
----
64
64

query I rowsort
SELECT 56 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
56
56
56

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY col1, col0
----
0
0
81

query I rowsort
SELECT - 47 * - cor0.col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
2068
2679
282

query I rowsort
SELECT - col2 * + 80 FROM tab2 cor0 GROUP BY cor0.col0, col2
----
-4640
-6320
-6960

query I rowsort
SELECT cor0.col2 * + cor0.col2 AS col1 FROM tab1 cor0 GROUP BY col2
----
2025
5041
64

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2 cor0 GROUP BY col1
----
41
59
61

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT ALL - cor0.col0 + 89 * cor0.col0 DIV + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
61
67
7

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - cor0.col0 + 89 * cor0.col0 / + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
61
67
7

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT 71 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
71
71
71

query I rowsort
SELECT - col2 * ( - cor0.col2 * - cor0.col2 ) + 15 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-357896
-497
-91110

query I rowsort
SELECT - 92 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT + 18 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
18
18
18

query I rowsort
SELECT - 17 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, col1
----
-17
-17
-17

query I rowsort
SELECT ALL + 87 FROM tab0, tab1 AS cor0, tab1 AS cor1 GROUP BY tab0.col2
----
87
87
87

query I rowsort
SELECT ALL - 73 AS col0 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
-73
-73
-73

query I rowsort
SELECT + 77 FROM tab2 AS cor0 GROUP BY cor0.col2
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2614
SELECT ALL cor0.col0 DIV cor0.col2 - + cor0.col0 * col2 AS col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
-1260
-174
-5821

skipif mysql # not compatible
query I rowsort label-2614
SELECT ALL cor0.col0 / cor0.col2 - + cor0.col0 * col2 AS col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
-1260
-174
-5821

query I rowsort
SELECT tab2.col2 FROM tab2 GROUP BY col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2616
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2616
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT - CAST( - 23 AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
23

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT - CAST ( - 23 AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
23

query I rowsort
SELECT col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT ALL - - tab0.col1 FROM tab0, tab1 AS cor0 GROUP BY tab0.col1
----
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2624
SELECT + cor0.col1 DIV + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT + cor0.col1 / + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, col2
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT DISTINCT + 99 FROM tab1 GROUP BY tab1.col1
----
99

query I rowsort
SELECT ALL 28 FROM tab0 AS cor0 GROUP BY cor0.col0
----
28
28
28

query I rowsort
SELECT - 5 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-5
-5
-5

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
45
71
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT - cor0.col2 DIV + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2630
SELECT - cor0.col2 / + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT CAST( NULL AS SIGNED ) + - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY col0, cor0.col1, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT CAST ( NULL AS INTEGER ) + - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY col0, cor0.col1, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab1.col1 FROM tab1 GROUP BY col1
----
44
57
6

query I rowsort
SELECT cor1.col2 * + 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
2088
2844
3132

query I rowsort
SELECT DISTINCT - 93 FROM tab2 GROUP BY tab2.col1
----
-93

query I rowsort
SELECT cor0.col2 * - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1444
-576
-6241

query I rowsort
SELECT ( col1 ) AS col1 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT 34 * cor0.col2 + cor0.col2 FROM tab2 cor0 GROUP BY col2
----
2030
2765
3045

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT + CAST( NULL AS SIGNED ) + + 15 AS col0 FROM tab1, tab1 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT + CAST ( NULL AS INTEGER ) + + 15 AS col0 FROM tab1, tab1 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT 99 * + 51 FROM tab2 AS cor0 GROUP BY cor0.col2
----
5049
5049
5049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 + cor0.col2 col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-11
3
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2641
SELECT 12 DIV + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2641
SELECT 12 / + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT - cor0.col0 FROM tab2 cor0 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT - 34 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-34
-34
-34

query I rowsort
SELECT ALL ( 65 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
65
65
65

query I rowsort
SELECT col1 FROM tab1 AS cor0 GROUP BY col2, cor0.col1
----
44
57
6

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
81

query I rowsort
SELECT + + cor0.col1 * - cor0.col1 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT 90 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
90
90
90

query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
45
71
8

query I rowsort
SELECT ALL 0 * cor0.col1 * + 79 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
0

query I rowsort
SELECT ALL cor0.col0 * 41 - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1120
3280
880

query I rowsort
SELECT ALL + 34 - + cor0.col1 FROM tab0 AS cor0 GROUP BY col1
----
-47
34

query I rowsort
SELECT 56 * + cor0.col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
1344
2128
4424

query I rowsort
SELECT 46 AS col0 FROM tab1, tab0 AS cor0 GROUP BY tab1.col1
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + - cor0.col1 col1 FROM tab0, tab1 cor0 GROUP BY cor0.col1
----
15
28
66

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
47

query I rowsort
SELECT ALL - - ( 30 ) FROM tab2, tab1 AS cor0, tab1 AS cor1 GROUP BY cor1.col1
----
30
30
30

query I rowsort
SELECT - 19 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-19
-19
-19

query I rowsort
SELECT - cor0.col2 FROM tab1 cor0 GROUP BY col2, cor0.col1
----
-45
-71
-8

query I rowsort
SELECT - cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
-58
-79
-87

query I rowsort
SELECT + cor0.col2 * - 44 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-2552
-3476
-3828

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT - cor0.col2 DIV 4 - - cor0.col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
34
54
6

skipif mysql # not compatible
query I rowsort label-2662
SELECT - cor0.col2 / 4 - - cor0.col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
34
54
6

query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col1 * cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
1892
30
3192

query I rowsort
SELECT 85 * 80 FROM tab1 GROUP BY tab1.col2
----
6800
6800
6800

query I rowsort
SELECT 76 * + 68 + + col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
5209
5227
5229

query I rowsort
SELECT + 64 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
64
64
64

query I rowsort
SELECT col0 * + ( + cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT ALL 26 + + cor0.col0 * - cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
-199
-8255
-8438

query I rowsort
SELECT + cor0.col0 * - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-225
-8281
-8464

query I rowsort
SELECT + cor0.col0 * + col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT + ( cor0.col2 ) AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT ALL cor0.col0 DIV + 33 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL cor0.col0 / + 33 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
2
2

query I rowsort
SELECT ALL + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2675
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 38 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
38
38
38

query I rowsort
SELECT ALL - + tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT ALL col0 * - 64 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-1408
-1792
-5248

query I rowsort
SELECT - ( - cor0.col2 + - col2 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
81

query I rowsort
SELECT tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 47 + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col2, cor0.col1
----
118
55
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT + 62 FROM tab1 AS cor0 GROUP BY cor0.col1
----
62
62
62

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
-81
0

query I rowsort
SELECT cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
132
1596
3608

query III rowsort
SELECT ALL * FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT DISTINCT 52 FROM tab2 AS cor0 GROUP BY cor0.col0
----
52

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab1 cor0 GROUP BY cor0.col2
----
90

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 GROUP BY cor0.col0
----
-22
-28
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col1, cor0.col2
----
45
71
8

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL 70 * - cor0.col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
-1050
-6370
-6440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL + 43 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT ALL cor0.col2 FROM tab1 cor0 GROUP BY col0, col2
----
45
71
8

query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col2
----
48

query I rowsort
SELECT - col2 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
-58
-79
-87

query I rowsort
SELECT - cor0.col0 + - col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-164
-44
-56

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2 HAVING NULL <= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT ALL + col0 DIV + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL + col0 / + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT DISTINCT - tab1.col1 * + col1 + 82 + 16 AS col1 FROM tab1 GROUP BY tab1.col1
----
-1838
-3151
62

query I rowsort
SELECT + + col1 AS col2 FROM tab0 GROUP BY tab0.col1
----
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2709
SELECT + cor0.col2 DIV + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2709
SELECT + cor0.col2 / + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
1
1
1

query I rowsort
SELECT ALL + cor0.col0 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor1.col0
----
-58
-79
-87

query I rowsort
SELECT + 12 + - cor0.col2 FROM tab0 cor0 GROUP BY col2
----
-12
-26
-67

query I rowsort
SELECT 72 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
72
72
72

query I rowsort
SELECT cor0.col2 + col2 FROM tab1 AS cor0 GROUP BY col2
----
142
16
90

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col0
----
-1849
-676
-6889

query I rowsort
SELECT ALL - - 56 + 45 FROM tab2 GROUP BY col1
----
101
101
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2719
SELECT DISTINCT cor0.col2 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
102
115
14

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT cor0.col2 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
102
115
14

query I rowsort
SELECT col0 * - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-225
-8281
-8464

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

query I rowsort
SELECT cor0.col0 * + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
225
8281
8464

query I rowsort
SELECT - 85 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-85
-85
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2724
SELECT ALL + CAST( NULL AS SIGNED ) / - 90 + col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL + CAST ( NULL AS INTEGER ) / - 90 + col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 - - 36 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
115
60
74

query I rowsort
SELECT ALL - + 75 FROM tab1 GROUP BY tab1.col1
----
-75
-75
-75

query I rowsort
SELECT 72 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
72
72
72

query I rowsort
SELECT DISTINCT ( + 82 ) AS col2 FROM tab2, tab0 AS cor0, tab0 cor1 GROUP BY cor0.col1
----
82

query I rowsort
SELECT - 3 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-3
-3
-3

query I rowsort
SELECT - 34 * + cor0.col1 - - 21 FROM tab0 cor0 GROUP BY col1
----
-2733
21

query I rowsort
SELECT ALL 12 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
12
12
12

query I rowsort
SELECT DISTINCT + cor0.col1 + + 59 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
140
59

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2735
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-81
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2737
SELECT CAST( 35 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2, col2
----
35
35
35

skipif mysql # not compatible
query I rowsort label-2737
SELECT CAST ( 35 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2, col2
----
35
35
35

query I rowsort
SELECT DISTINCT + - 65 AS col1 FROM tab2 GROUP BY tab2.col1
----
-65

query I rowsort
SELECT - + ( 52 ) AS col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
-52
-52
-52

query I rowsort
SELECT - 61 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-61
-61
-61

query I rowsort
SELECT ALL 31 * 78 AS col2 FROM tab2 cor0 GROUP BY cor0.col1, col2
----
2418
2418
2418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
22
28
82

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-57

query I rowsort
SELECT - + 92 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
-92
-92
-92

query I rowsort
SELECT ALL 21 FROM tab0 AS cor0 GROUP BY cor0.col1
----
21
21

query I rowsort
SELECT - tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2749
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

query I rowsort
SELECT + 90 AS col1 FROM tab2, tab1 AS cor0 GROUP BY tab2.col2
----
90
90
90

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1, col2
----
0
0
81

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT cor0.col1 + + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
162

query I rowsort
SELECT 94 AS col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1
----
94
94
94

query I rowsort
SELECT + cor0.col2 * + 51 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2295
3621
408

query I rowsort
SELECT + col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 GROUP BY col0, col1
----
22
28
82

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

query I rowsort
SELECT + 29 FROM tab1 AS cor0 GROUP BY col1, col1
----
29
29
29

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL + 86 * - ( - cor0.col1 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
0
6966

query I rowsort
SELECT cor0.col1 * - ( + 49 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-2156
-2793
-294

query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-24
-38
-79

query I rowsort
SELECT ALL 44 FROM tab0 AS cor0 GROUP BY cor0.col1
----
44
44

query I rowsort
SELECT - 11 * + cor0.col0 AS col1 FROM tab2 cor0 GROUP BY col0
----
-1001
-1012
-165

query I rowsort
SELECT ALL + 80 * - cor0.col0 - - 8 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1752
-2232
-6552

query I rowsort
SELECT DISTINCT - 58 + cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
-13
-50
13

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
58
79
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT + 5 DIV 34 AS col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2772
SELECT + 5 / 34 AS col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - cor0.col0 + - ( 50 ) col0 FROM tab2 cor0 GROUP BY col0
----
-1535
-9059
-9158

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT ALL + - cor0.col1 DIV 36 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL + - cor0.col1 / 36 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-1
-1
-1

query I rowsort
SELECT + 13 - cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-68
13

query I rowsort
SELECT DISTINCT ( tab0.col2 ) AS col2 FROM tab0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT + 38 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
38
38
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
82
82
82

query I rowsort
SELECT DISTINCT 22 * + cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col0
----
1738
528
836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col1 FROM tab0 GROUP BY tab0.col2
----
0
0
0

query I rowsort
SELECT - cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-6561
0
0

query I rowsort
SELECT + ( + 51 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
51
51
51

query I rowsort
SELECT DISTINCT - cor0.col0 + 34 * + 96 FROM tab0 AS cor0 GROUP BY cor0.col0
----
3181
3221
3238

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT 96 FROM tab2 AS cor0 GROUP BY cor0.col1
----
96
96
96

query I rowsort
SELECT + ( + 46 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
46
46
46

query I rowsort
SELECT 62 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
62
62
62

query I rowsort
SELECT 50 * + col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1300
2150
4150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
3772
5369
915

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
41
59
61

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 66 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
66

query I rowsort
SELECT ALL 5 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
5
5
5

query I rowsort
SELECT ALL - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-81
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
-26
-43
-83

query I rowsort
SELECT cor0.col2 + cor0.col2 + 52 FROM tab2 cor0 GROUP BY cor0.col2
----
168
210
226

query I rowsort
SELECT ALL - cor0.col2 * + 0 + 65 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
65
65
65

query I rowsort
SELECT 44 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
44
44
44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
58
79
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT cor0.col2 DIV + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2803
SELECT cor0.col2 / + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT + 74 AS col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
74
74
74

query I rowsort
SELECT ALL 14 FROM tab2 AS cor0 GROUP BY cor0.col1
----
14
14
14

query I rowsort
SELECT ALL 6 FROM tab1 AS cor0 GROUP BY cor0.col1
----
6
6
6

query I rowsort
SELECT DISTINCT + cor0.col1 + + ( 96 ) + + cor0.col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
178
214
218

query I rowsort
SELECT DISTINCT + cor0.col0 * 27 FROM tab2 AS cor0 GROUP BY cor0.col0
----
2457
2484
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col0 ) col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT col0 FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT 70 FROM tab1 AS cor0 GROUP BY cor0.col0
----
70
70
70

query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT ALL CAST( 20 AS SIGNED ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
20
20
20

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL CAST ( 20 AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
20
20
20

query I rowsort
SELECT ALL - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-45
-71
-8

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT 47 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
47
47
47

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-80

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - 39 + + 83 FROM tab0, tab1 AS cor0, tab2 AS cor1 GROUP BY cor0.col0
----
44

query I rowsort
SELECT cor0.col0 FROM tab1 cor0 GROUP BY cor0.col1, col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT DISTINCT cor0.col1 + CAST( 51 AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
132
51

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT cor0.col1 + CAST ( 51 AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
132
51

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col2
----
-24
-38
-79

query I rowsort
SELECT 18 + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
100
40
46

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
-44
-57
-6

query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL tab0.col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT - 1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1

query I rowsort
SELECT 48 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
48
48
48

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab1 cor0 GROUP BY col0
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 col0 FROM tab2 AS cor0 GROUP BY col1, col0
----
-1681
-3481
-3721

query I rowsort
SELECT cor0.col0 FROM tab0, tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT + 83 FROM tab2 AS cor0 GROUP BY cor0.col2, col2
----
83

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT - - ( col2 ) FROM tab2 GROUP BY col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT 3 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3

query I rowsort
SELECT ALL 57 FROM tab1 cor0 GROUP BY cor0.col1
----
57
57
57

query I rowsort
SELECT + ( + 67 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
91

query I rowsort
SELECT DISTINCT - 76 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-76

query I rowsort
SELECT + cor0.col1 * - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, col1
----
-2378
-4661
-5307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab1 cor0 GROUP BY cor0.col0, col1
----
-44
-57
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT DISTINCT - 35 DIV 83 FROM tab2, tab1 cor0 GROUP BY cor0.col2
----
0

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT - 35 / 83 FROM tab2, tab1 cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT ALL 7 FROM tab2 AS cor0 GROUP BY col2
----
7
7
7

query I rowsort
SELECT - 33 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-33
-33
-33

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1 cor0 GROUP BY col1, cor0.col0
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col0, cor0.col2
----
26
43
83

query I rowsort
SELECT - cor0.col0 * - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT ALL cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
79

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT - 31 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-2860
SELECT DISTINCT - cor0.col1 DIV - ( + cor0.col1 + - ( 83 ) ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - cor0.col1 / - ( + cor0.col1 + - ( 83 ) ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
44
57
6

query I rowsort
SELECT - cor0.col0 * - cor0.col0 - - cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
240
8372
8556

query I rowsort
SELECT ALL + cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT 34 * - 97 AS col0 FROM tab1 GROUP BY tab1.col0
----
-3298
-3298
-3298

query I rowsort
SELECT - 20 AS col1 FROM tab1 cor0 GROUP BY col2
----
-20
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 - col0 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-142
-143
-66

query I rowsort
SELECT 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor1.col0
----
29
29
29

query I rowsort
SELECT - + 74 FROM tab0, tab2 cor0 GROUP BY cor0.col0
----
-74
-74
-74

query I rowsort
SELECT ALL ( - 43 + cor0.col1 ) FROM tab0 cor0 GROUP BY cor0.col1
----
-43
38

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT ALL cor0.col2 * cor0.col2 DIV 82 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0
24
61

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL cor0.col2 * cor0.col2 / 82 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0
24
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2873
SELECT ALL CAST( + 99 AS SIGNED ) * - cor0.col0 + + 29 * 4 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1369
-8893
-8992

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2873
SELECT ALL CAST ( + 99 AS INTEGER ) * - cor0.col0 + + 29 * 4 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1369
-8893
-8992

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT ALL - - 80 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1 GROUP BY tab1.col1
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
92
92
92

query I rowsort
SELECT ALL - 90 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-90
-90
-90

query I rowsort
SELECT - ( + cor0.col0 ) FROM tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + + cor0.col1 * cor0.col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col1, cor0.col2
----
-2214
-44
336

query I rowsort
SELECT - - tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2884
SELECT col0 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2884
SELECT col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
72

query I rowsort
SELECT + cor0.col1 + - 89 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-8
-89

query I rowsort
SELECT - 95 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
75

query I rowsort
SELECT 46 + + col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
117
54
91

query I rowsort
SELECT - col2 + - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1
----
-105
-38
-79

query I rowsort
SELECT DISTINCT + + 62 FROM tab0 GROUP BY tab0.col1
----
62

query I rowsort
SELECT - ( col2 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT 73 AS col0 FROM tab1, tab0 cor0 GROUP BY cor0.col0
----
73
73
73

query I rowsort
SELECT + 25 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
25
25
25

query I rowsort
SELECT - col0 FROM tab1 AS cor0 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT ALL - tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query III rowsort
SELECT * FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

onlyif mysql # DIV for integer division: 
query I rowsort label-2898
SELECT DISTINCT cor0.col0 DIV + col0 + + 34 * + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
3095
3129
511

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT cor0.col0 / + col0 + + 34 * + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
3095
3129
511

query I rowsort
SELECT + 49 + - cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col0
----
-42
-43
34

query I rowsort
SELECT ALL + 87 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
87
87
87

query I rowsort
SELECT ALL col1 * col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1681
3481
3721

query I rowsort
SELECT 54 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0, cor0.col2
----
54
54
54

query I rowsort
SELECT - 21 FROM tab0 GROUP BY col1
----
-21
-21

query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
3

query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
15
91
92

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
-26
-43
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT DISTINCT cor0.col2 DIV - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-1

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT cor0.col2 / - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-1

query I rowsort
SELECT ALL + cor0.col2 + + col2 AS col1 FROM tab0 AS cor0 GROUP BY col2, cor0.col2
----
158
48
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 * 49 col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
4312
4312
4312

query I rowsort
SELECT + 62 AS col1 FROM tab2 GROUP BY tab2.col2
----
62
62
62

query I rowsort
SELECT - + 1 FROM tab1 GROUP BY tab1.col1
----
-1
-1
-1

query I rowsort
SELECT 20 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
20
20
20

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col0 * cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
-210
-8190
-8372

query I rowsort
SELECT + cor0.col0 + 84 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
1275
7735
7820

query I rowsort
SELECT ALL 35 FROM tab1 AS cor0 GROUP BY cor0.col2
----
35
35
35

query I rowsort
SELECT 35 - + 31 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT ALL 43 DIV + 60 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL 43 / + 60 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ALL + 4 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
4
4
4

query I rowsort
SELECT ALL + cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT ALL + 73 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
73
73
73

query III rowsort
SELECT * FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2, col1
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
2904
295856
44688

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0 cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT ALL + col1 + col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
114
12
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT ALL - cor0.col1 DIV cor0.col1 + + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
43
5
56

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL - cor0.col1 / cor0.col1 + + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
43
5
56

query I rowsort
SELECT ( col2 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL 83 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
83
83
83

query I rowsort
SELECT DISTINCT 67 AS col1 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col1, cor0.col2
----
67

query I rowsort
SELECT ALL cor0.col0 + + col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
166
52
86

query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
-39

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT + 39 FROM tab2 AS cor0 GROUP BY cor0.col1
----
39

query I rowsort
SELECT 58 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2935
SELECT + 57 DIV 91 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT + 57 / 91 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - 15 - - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY col0
----
11
28
68

query I rowsort
SELECT - 74 FROM tab0 cor0 GROUP BY cor0.col0
----
-74
-74
-74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2939
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2941
SELECT DISTINCT 8 + - cor0.col0 DIV col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
7

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT 8 + - cor0.col0 / col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2942
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
58
79
87

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2945
SELECT DISTINCT + cor0.col0 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT + cor0.col0 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY col0
----
NULL

query I rowsort
SELECT - 99 FROM tab1, tab1 AS cor0 GROUP BY tab1.col2
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT 1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
27
27
27

query I rowsort
SELECT DISTINCT 91 FROM tab0 AS cor0 GROUP BY col0
----
91

query I rowsort
SELECT + tab0.col1 AS col0 FROM tab0 GROUP BY tab0.col1
----
0
81

query I rowsort
SELECT DISTINCT + col0 + 22 * + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
1018
1644
198

query I rowsort
SELECT ALL cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col2
----
0
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT + cor0.col0 DIV cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
27
44
84

skipif mysql # not compatible
query I rowsort label-2954
SELECT + cor0.col0 / cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
27
44
84

query I rowsort
SELECT ALL 78 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
78
78
78

query I rowsort
SELECT + 96 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
96
96
96

query I rowsort
SELECT ALL 76 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
15
91
92

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2
----
-41
-59
-61

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT 38 FROM tab0 AS cor0 GROUP BY cor0.col1
----
38
38

query I rowsort
SELECT ALL + cor0.col0 * + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
484
6724
784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col1 FROM tab2 AS cor0 GROUP BY cor0.col0, col1
----
67
67
67

query I rowsort
SELECT - 30 * cor0.col0 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
-1290
-2490
-780

query I rowsort
SELECT - ( cor0.col2 ) AS col2 FROM tab0 cor0 GROUP BY col2, col2, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT 33 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
33
33
33

query I rowsort
SELECT - 64 FROM tab2, tab2 cor0, tab2 cor1 GROUP BY cor0.col1
----
-64
-64
-64

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT ALL + 10 FROM tab2 cor0 GROUP BY cor0.col2
----
10
10
10

query I rowsort
SELECT DISTINCT + - cor0.col1 + + cor0.col1 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT ( + 86 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
86
86
86

query I rowsort
SELECT + 25 FROM tab2 cor0 GROUP BY cor0.col0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
51

query I rowsort
SELECT + 24 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ALL + 20 * cor0.col0 * + 77 FROM tab2 AS cor0 GROUP BY cor0.col0
----
140140
141680
23100

query I rowsort
SELECT 74 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
74
74
74

query I rowsort
SELECT ALL cor0.col1 * col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
1681
3481
3721

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT DISTINCT + 8 DIV + cor0.col0 FROM tab2, tab0 cor0 GROUP BY cor0.col0
----
0

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + 8 / + cor0.col0 FROM tab2, tab0 cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT DISTINCT 66 FROM tab0 cor0 GROUP BY cor0.col1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - 87 col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-7047
0
0

query I rowsort
SELECT - ( 29 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
68

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
26
43
83

query I rowsort
SELECT ( 82 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2989
SELECT CAST( 25 AS SIGNED ) AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2, cor0.col1
----
25
25
25

skipif mysql # not compatible
query I rowsort label-2989
SELECT CAST ( 25 AS INTEGER ) AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2, cor0.col1
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2990
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT DISTINCT + col1 DIV - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT + col1 / - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1

query I rowsort
SELECT + tab2.col1 FROM tab2 GROUP BY col1
----
41
59
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - cor0.col0 AS col0 FROM tab1 cor0 GROUP BY col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - cor0.col0 AS col0 FROM tab1 cor0 GROUP BY col0
----
NULL

query I rowsort
SELECT DISTINCT + 60 FROM tab2 AS cor0 GROUP BY cor0.col1
----
60

query I rowsort
SELECT DISTINCT 54 FROM tab0 cor0 GROUP BY cor0.col2
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 + col2 col0 FROM tab2 GROUP BY col2
----
39
60
68

query I rowsort
SELECT col2 * 13 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1027
312
494

query I rowsort
SELECT - 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0
----
-68
-68
-68

query I rowsort
SELECT 16 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
16
16
16

query I rowsort
SELECT 36 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
36
36
36

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, col2
----
58
79
87

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT ALL + - 91 AS col1 FROM tab2 GROUP BY tab2.col1
----
-91
-91
-91

query I rowsort
SELECT ALL - 1 * - 22 FROM tab0, tab1 AS cor0 GROUP BY tab0.col1
----
22
22

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 cor0 GROUP BY col1
----
-81
0

query I rowsort
SELECT ALL + 19 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3008
SELECT CAST( NULL AS SIGNED ) * - 12 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT CAST ( NULL AS INTEGER ) * - 12 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY col2
----
-3364
-6241
-7569

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT - cor0.col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT tab2.col1 DIV + ( - tab2.col1 ) - tab2.col1 AS col1 FROM tab2 GROUP BY col1
----
-42
-60
-62

skipif mysql # not compatible
query I rowsort label-3012
SELECT tab2.col1 / + ( - tab2.col1 ) - tab2.col1 AS col1 FROM tab2 GROUP BY col1
----
-42
-60
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT - CAST( NULL AS SIGNED ) FROM tab0 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
225
8281
8464

query I rowsort
SELECT - cor0.col2 * 98 + - 43 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
-2395
-3767
-7785

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT + 10 DIV + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT + 10 / + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT + 59 + - col2 + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-13
71
93

query I rowsort
SELECT ALL cor0.col1 + cor0.col1 + 52 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
2376
3078
324

query I rowsort
SELECT - col0 * - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
63
63
63

query I rowsort
SELECT ALL + 71 FROM tab1, tab1 AS cor0 GROUP BY tab1.col2
----
71
71
71

query I rowsort
SELECT + 31 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
31
31
31

query I rowsort
SELECT 61 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
61
61
61

query I rowsort
SELECT cor0.col2 * 90 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
4050
6390
720

query I rowsort
SELECT + 58 + cor0.col2 * 17 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
1265
194
823

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT cor0.col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT - 1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-1
-1

query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT - + tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col0 FROM tab0 GROUP BY col2
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col0
----
58
79
87

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
70

query I rowsort
SELECT cor0.col2 + - cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT - cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL ( + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT - 27 FROM tab0, tab2 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
-27
-27
-27

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT ALL 71 FROM tab0 AS cor0 GROUP BY col2, cor0.col2
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
41
59
61

query I rowsort
SELECT 17 FROM tab1 AS cor0 GROUP BY cor0.col0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 26 FROM tab2, tab2 AS cor0, tab0 cor1 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 26 FROM tab2, tab2 AS cor0, tab0 cor1 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT ALL - cor1.col2 * 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
-5162
-7031
-7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT + 83 FROM tab0 AS cor0 GROUP BY cor0.col1
----
83
83

query I rowsort
SELECT + 63 FROM tab0, tab1 cor0 GROUP BY cor0.col0
----
63
63
63

query I rowsort
SELECT + 95 * + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col2
----
4275
6745
760

query I rowsort
SELECT ALL col2 + - 33 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-9
46
5

query I rowsort
SELECT DISTINCT 91 FROM tab0 AS cor0 GROUP BY cor0.col1
----
91

query I rowsort
SELECT DISTINCT + 40 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
40

query I rowsort
SELECT ALL 60 FROM tab0 AS cor0 GROUP BY cor0.col0
----
60
60
60

query I rowsort
SELECT ALL + ( tab1.col2 ) FROM tab1 GROUP BY col2
----
45
71
8

query I rowsort
SELECT - cor0.col1 * cor0.col1 * 71 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
-137456
-230679
-2556

query I rowsort
SELECT 85 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1870
2380
6970

query I rowsort
SELECT 59 FROM tab2 AS cor0 GROUP BY cor0.col1
----
59
59
59

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - cor0.col2 * 92 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-4140
-6532
-736

query I rowsort
SELECT - 7 + cor0.col1 AS col0 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
-7
74

query I rowsort
SELECT 66 FROM tab2 cor0 GROUP BY cor0.col2
----
66
66
66

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1, tab0 AS cor0 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT 43 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
43
43
43

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, col2, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL + - 70 AS col1 FROM tab1 GROUP BY tab1.col2
----
-70
-70
-70

query I rowsort
SELECT ALL + 37 AS col2 FROM tab0 GROUP BY tab0.col1
----
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT - cor0.col0 DIV - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3069
SELECT - cor0.col0 / - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT 71 * - cor0.col0 * cor0.col0 - - 45 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-34319
-477359
-55619

query I rowsort
SELECT ALL 38 * 32 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1216
1216
1216

query I rowsort
SELECT ALL + 97 + + cor0.col0 FROM tab1 cor0 GROUP BY col0
----
119
125
179

query I rowsort
SELECT ALL 54 FROM tab2 AS cor0 GROUP BY col1
----
54
54
54

query I rowsort
SELECT col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT 6 + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
32
49
89

query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2
----
58
79
87

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
81

query I rowsort
SELECT ALL 8 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
8
8
8

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT + cor0.col1 * 18 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1062
1098
738

query I rowsort
SELECT ALL + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL 54 FROM tab2 AS cor0 GROUP BY cor0.col2
----
54
54
54

query I rowsort
SELECT - 52 * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1144
-1456
-4264

query I rowsort
SELECT ALL 56 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
5096
5152
840

query I rowsort
SELECT DISTINCT + 17 FROM tab0 AS cor0 GROUP BY cor0.col2
----
17

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT - 37 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
-37
-37
-37

query I rowsort
SELECT ALL 26 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
26
26
26

query I rowsort
SELECT + 19 FROM tab2 AS cor0 GROUP BY cor0.col0
----
19
19
19

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT + tab1.col0 AS col1 FROM tab1 GROUP BY tab1.col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

query I rowsort
SELECT 8 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
8
8
8

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT ALL - 23 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-23
-23
-23

query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT - ( cor0.col0 ) AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT cor0.col0 + cor0.col0 * + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1892
6972
702

query I rowsort
SELECT ALL - 95 FROM tab2, tab1 cor0, tab2 AS cor1 GROUP BY cor0.col0
----
-95
-95
-95

query I rowsort
SELECT ALL + cor0.col2 + ( + ( col2 ) ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
158
48
76

query I rowsort
SELECT - 73 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-73
-73
-73

query I rowsort
SELECT DISTINCT - 34 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-34

query I rowsort
SELECT DISTINCT + ( cor0.col2 * ( + cor0.col2 ) ) - - cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3422
6320
7656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col0 FROM tab2 AS cor0 GROUP BY col1
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
34

query I rowsort
SELECT 91 AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
91
91
91

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT cor0.col2 + cor0.col2 * 79 FROM tab2 AS cor0 GROUP BY col0, cor0.col2
----
4640
6320
6960

query I rowsort
SELECT ALL + ( cor0.col1 ) * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT 40 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
40
40
40

query I rowsort
SELECT 30 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
30
30
30

query I rowsort
SELECT - ( 21 ) AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
-21
-21
-21

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT - 59 AS col2 FROM tab1 GROUP BY tab1.col2
----
-59
-59
-59

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2 GROUP BY col2
----
58
79
87

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
75

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1, tab1 cor0 GROUP BY cor0.col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor0.col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT DISTINCT - cor0.col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT - cor0.col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT cor0.col0 + 32 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
123
124
47

query I rowsort
SELECT ( tab1.col1 ) FROM tab1, tab1 AS cor0 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT ( col0 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2 cor0 GROUP BY col0
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
-58
-79
-87

query I rowsort
SELECT 95 FROM tab0 AS cor0 GROUP BY cor0.col0
----
95
95
95

query I rowsort
SELECT ALL 65 + - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
4
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT - 20 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-20
-20
-20

query I rowsort
SELECT ( + col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0, cor1.col1
----
80

query I rowsort
SELECT + ( + cor0.col1 ) - - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
162

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT ALL + 52 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
52
52
52

query I rowsort
SELECT 93 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
93
93
93

query I rowsort
SELECT - ( - cor0.col2 ) FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT + 1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
1444
576
6241

query I rowsort
SELECT ALL - 95 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-7695
0

query I rowsort
SELECT + 90 FROM tab1 AS cor0 GROUP BY cor0.col1
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col0 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY cor1.col0
----
-26
-43
-83

query I rowsort
SELECT + 6 FROM tab0 GROUP BY col2
----
6
6
6

query I rowsort
SELECT DISTINCT 89 FROM tab1 cor0 GROUP BY cor0.col1, col0
----
89

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT - 79 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-79
-79
-79

query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * - tab0.col0 + - 35 col2 FROM tab0 GROUP BY tab0.col0
----
-1884
-6924
-711

query I rowsort
SELECT cor0.col2 * - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-2565
-3124
-48

query I rowsort
SELECT + 21 - + cor0.col2 * col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
-1423
-555
-6220

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3161
SELECT CAST( - cor0.col1 AS SIGNED ) DIV cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3161
SELECT CAST ( - cor0.col1 AS INTEGER ) / cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT ( 4 * + cor0.col2 ) + 72 FROM tab2 AS cor0 GROUP BY col2
----
304
388
420

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 97 * 99 col0 FROM tab1 cor0 GROUP BY cor0.col2
----
-9603

query I rowsort
SELECT + 53 AS col0 FROM tab0 GROUP BY tab0.col1
----
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 - + 29 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1 GROUP BY cor1.col0
----
-111
-51
-57

query I rowsort
SELECT - cor0.col1 FROM tab1 AS cor0 GROUP BY col2, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-38
26
83

query I rowsort
SELECT + + cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1 GROUP BY cor1.col1
----
41
59
61

query I rowsort
SELECT 46 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
46
46
46

query I rowsort
SELECT 56 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3173
SELECT DISTINCT - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT DISTINCT 79 * 10 FROM tab0, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col2
----
790

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT DISTINCT cor0.col0 + 56 FROM tab2 AS cor0 GROUP BY cor0.col0
----
147
148
71

query I rowsort
SELECT DISTINCT + 84 FROM tab2 AS cor0 GROUP BY col0
----
84

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT ( + cor0.col1 + - cor0.col1 ) FROM tab2 AS cor0 GROUP BY col1
----
0
0
0

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
15

query I rowsort
SELECT - cor0.col2 * + 7 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-315
-497
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT 28 * 73 FROM tab2 AS cor0 GROUP BY cor0.col1
----
2044
2044
2044

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
6561

query I rowsort
SELECT + 13 FROM tab1 GROUP BY tab1.col0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col1 FROM tab2 AS cor0 GROUP BY col0
----
-32
-32
-32

query I rowsort
SELECT - 63 * cor0.col2 AS col1 FROM tab0 cor0 GROUP BY col2
----
-1512
-2394
-4977

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab0, tab1 cor0 GROUP BY cor0.col1
----
38

query I rowsort
SELECT 34 * 6 FROM tab1 AS cor0 GROUP BY cor0.col1
----
204
204
204

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
110
131
204

query I rowsort
SELECT + 57 FROM tab0 cor0 GROUP BY col0, cor0.col1
----
57
57
57

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0

query I rowsort
SELECT 49 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
49
49
49

query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + col0 ) ) + 2 col2 FROM tab2 GROUP BY tab2.col0
----
17
93
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - tab1.col0 ) + tab1.col0 col2 FROM tab1 GROUP BY tab1.col0
----
0
0
0

query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT cor0.col0 - 76 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-48
-54
6

query I rowsort
SELECT DISTINCT + ( col0 ) + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
166
52
86

query I rowsort
SELECT - cor0.col2 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-3364
-6241
-7569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3206
SELECT + col0 DIV + col1 + cor0.col0 * ( + 72 * + col0 ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
34851
484129
56448

skipif mysql # not compatible
query I rowsort label-3206
SELECT + col0 / + col1 + cor0.col0 * ( + 72 * + col0 ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
34851
484129
56448

query I rowsort
SELECT ALL - 63 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-63
-63

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

skipif mysql # not compatible
query I rowsort label-3209
SELECT CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT ALL - 80 DIV cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL - 80 / cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1
-1
0

query I rowsort
SELECT + 10 FROM tab0, tab2 cor0 GROUP BY cor0.col1
----
10
10
10

query I rowsort
SELECT + - 51 AS col1 FROM tab2, tab1 AS cor0 GROUP BY tab2.col1
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3213
SELECT + cor0.col2 + cor0.col2 * cor0.col2 DIV 70 FROM tab1 AS cor0 GROUP BY cor0.col2
----
143
73
8

skipif mysql # not compatible
query I rowsort label-3213
SELECT + cor0.col2 + cor0.col2 * cor0.col2 / 70 FROM tab1 AS cor0 GROUP BY cor0.col2
----
143
73
8

query I rowsort
SELECT DISTINCT tab0.col0 * - col0 FROM tab0 GROUP BY tab0.col0
----
-1849
-676
-6889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
56
56
56

query I rowsort
SELECT + 63 - - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
107
120
69

query I rowsort
SELECT ALL - + cor0.col2 * - 18 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
1422
432
684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col2 + 76 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-3
38
52

query I rowsort
SELECT DISTINCT - 87 + + col0 AS col1 FROM tab1 GROUP BY col0
----
-5
-59
-65

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT - col0 FROM tab2 AS cor0 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT + col1 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT DISTINCT + cor0.col0 + 92 * - col0 AS col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
-2002
-2548
-7462

query I rowsort
SELECT - tab1.col2 - tab1.col2 FROM tab1, tab0 AS cor0 GROUP BY tab1.col2
----
-142
-16
-90

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col1 * - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1722
-3540
-3782

query I rowsort
SELECT + 83 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT DISTINCT - CAST( - 65 AS SIGNED ) + - cor0.col0 FROM tab0 cor0 GROUP BY col0
----
-18
22
39

skipif mysql # not compatible
query I rowsort label-3229
SELECT DISTINCT - CAST ( - 65 AS INTEGER ) + - cor0.col0 FROM tab0 cor0 GROUP BY col0
----
-18
22
39

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT + 91 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT + 99 FROM tab1 cor0 GROUP BY col2
----
99
99
99

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - ( - 62 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
62
62
62

query I rowsort
SELECT + 25 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
25
25
25

query I rowsort
SELECT - + 93 FROM tab0 GROUP BY tab0.col2
----
-93
-93
-93

query I rowsort
SELECT DISTINCT + ( - 24 ) FROM tab1, tab1 cor0 GROUP BY cor0.col0
----
-24

query I rowsort
SELECT ALL + 15 + 82 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
46
46
46

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL + 49 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
49
49
49

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col2
----
-22
-28
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT DISTINCT + 71 DIV - col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3246
SELECT DISTINCT + 71 / - col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-8

query I rowsort
SELECT DISTINCT - 1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1

query I rowsort
SELECT DISTINCT 71 FROM tab0 AS cor0 GROUP BY cor0.col2
----
71

query I rowsort
SELECT tab1.col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT - cor0.col0 + - cor0.col0 + 89 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-75
33
45

query I rowsort
SELECT DISTINCT + tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT 81 * 10 * - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-19440
-30780
-63990

query I rowsort
SELECT - col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT cor0.col1 * + CAST( + 26 AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
2106

skipif mysql # not compatible
query I rowsort label-3255
SELECT cor0.col1 * + CAST ( + 26 AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
2106

query I rowsort
SELECT DISTINCT + 42 * 36 AS col0 FROM tab0, tab0 cor0 GROUP BY cor0.col0
----
1512

query I rowsort
SELECT + cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT - col1 FROM tab1 GROUP BY col1
----
-44
-57
-6

query I rowsort
SELECT - 92 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-92
-92

query I rowsort
SELECT DISTINCT cor0.col2 * - 11 FROM tab1 AS cor0 GROUP BY cor0.col2, col1
----
-495
-781
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-3261
SELECT DISTINCT cor0.col1 DIV 66 + 92 * - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
-4048
-5244
-552

skipif mysql # not compatible
query I rowsort label-3261
SELECT DISTINCT cor0.col1 / 66 + 92 * - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
-4048
-5244
-552

query I rowsort
SELECT - - ( - 79 ) FROM tab0 GROUP BY col1
----
-79
-79

query I rowsort
SELECT ALL 86 AS col1 FROM tab1 GROUP BY tab1.col2
----
86
86
86

query I rowsort
SELECT ALL + 31 FROM tab2 AS cor0 GROUP BY cor0.col1
----
31
31
31

query I rowsort
SELECT ALL + tab1.col0 + tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
164
44
56

query I rowsort
SELECT + cor0.col0 * + col0 + 25 FROM tab2 AS cor0 GROUP BY cor0.col0
----
250
8306
8489

query I rowsort
SELECT + 50 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
50
50
50

query I rowsort
SELECT cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
24
38
79

query I rowsort
SELECT cor0.col0 * 96 + 51 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
1491
8787
8883

query I rowsort
SELECT ALL cor0.col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col0, col1
----
133
150
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col2 FROM tab0 GROUP BY tab0.col0
----
87
87
87

query I rowsort
SELECT DISTINCT - 50 FROM tab0 cor0 GROUP BY cor0.col1
----
-50

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + tab2.col1 col2 FROM tab2 GROUP BY tab2.col1
----
118
122
82

query I rowsort
SELECT ALL - 51 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-51
-51
-51

query I rowsort
SELECT ALL 42 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
42
42
42

query I rowsort
SELECT + 44 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
44
44
44

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT - ( - 95 + - cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY col2
----
119
133
174

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
29

query I rowsort
SELECT 14 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
14
14
14

query I rowsort
SELECT - ( + cor0.col0 ) * ( - col0 ) AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-91

query I rowsort
SELECT ALL - 53 FROM tab2 GROUP BY col0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT + - 99 FROM tab1, tab0 AS cor0 GROUP BY tab1.col2
----
-99

query I rowsort
SELECT ( + 51 ) FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
51
51
51

query I rowsort
SELECT cor0.col1 + + 82 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
163
82

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab1, tab0 AS cor0 GROUP BY tab1.col1
----
81

query I rowsort
SELECT + col0 + + cor0.col0 * ( + 64 ) FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0
----
5915
5980
975

query I rowsort
SELECT DISTINCT - 40 * cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0, col0
----
-3640
-3680
-600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT DISTINCT + 66 FROM tab0 GROUP BY tab0.col1
----
66

query I rowsort
SELECT + 21 + cor0.col0 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
104
47
64

query I rowsort
SELECT ALL + ( + 90 ) + tab2.col0 FROM tab2 GROUP BY tab2.col0
----
105
181
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT + CAST( 99 AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
99
99
99

skipif mysql # not compatible
query I rowsort label-3297
SELECT + CAST ( 99 AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
99
99
99

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2 cor0 GROUP BY col1, cor0.col0
----
41
59
61

query I rowsort
SELECT cor0.col1 + - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
0

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, col1
----
-41
-59
-61

query I rowsort
SELECT cor0.col1 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) AS col1 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT cor0.col0 * 45 * cor0.col0 FROM tab0 AS cor0 GROUP BY col0
----
30420
310005
83205

query I rowsort
SELECT + + tab0.col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT ALL + 99 FROM tab0 AS cor0 GROUP BY cor0.col0
----
99
99
99

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
9

query I rowsort
SELECT - 91 FROM tab0 GROUP BY col2
----
-91
-91
-91

query I rowsort
SELECT ALL + + tab0.col1 FROM tab0, tab2 AS cor0 GROUP BY tab0.col1
----
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3309
SELECT + 76 DIV - 97 FROM tab0 AS cor0 GROUP BY col1
----
0
0

skipif mysql # not compatible
query I rowsort label-3309
SELECT + 76 / - 97 FROM tab0 AS cor0 GROUP BY col1
----
0
0

query I rowsort
SELECT DISTINCT + tab1.col1 * tab1.col1 AS col2 FROM tab1, tab2 AS cor0 GROUP BY tab1.col1
----
1936
3249
36

query I rowsort
SELECT 91 + cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
136
162
99

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 cor0 GROUP BY col2
----
-45
-71
-8

query I rowsort
SELECT cor0.col1 + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
118
122
82

query I rowsort
SELECT DISTINCT col2 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT 79 FROM tab1 AS cor0 GROUP BY cor0.col2
----
79
79
79

query I rowsort
SELECT ALL + 26 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1 GROUP BY cor0.col0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
83
83
83

query I rowsort
SELECT 49 + 60 FROM tab1, tab1 AS cor0, tab2 AS cor1 GROUP BY cor0.col1
----
109
109
109

query I rowsort
SELECT + col1 FROM tab1 GROUP BY col1
----
44
57
6

query I rowsort
SELECT DISTINCT 11 * - 87 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
62
62
62

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
41
59
61

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0, cor0.col1
----
17
20
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
28

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT DISTINCT - 69 * + col0 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
-1518
-1932
-5658

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
15
91
92

query III rowsort
SELECT * FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-35
-35

query I rowsort
SELECT + cor0.col1 * cor0.col1 + - col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col1
----
-38
-79
6537

query I rowsort
SELECT DISTINCT cor1.col2 * cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
3364
6241
7569

query I rowsort
SELECT + 42 * + cor0.col2 * - cor0.col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col0, col2
----
-24192
-262122
-60648

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2 cor0 GROUP BY col0, cor0.col2
----
58
79
87

query I rowsort
SELECT - 88 * + col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1320
-8008
-8096

query I rowsort
SELECT - cor0.col2 * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT ALL - ( - cor0.col0 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT + 93 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab0 GROUP BY tab0.col1 HAVING ( NULL ) <> NULL
----

query I rowsort
SELECT - cor0.col2 * cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT ALL - 27 + 68 FROM tab0 AS cor0 GROUP BY cor0.col2
----
41
41
41

query I rowsort
SELECT 0 FROM tab2 GROUP BY tab2.col2
----
0
0
0

query I rowsort
SELECT cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT cor0.col2 * + 31 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
1798
2449
2697

query I rowsort
SELECT DISTINCT + col2 + - 69 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
-11
10
18

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT cor0.col0 + col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT ALL + 70 * cor0.col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
1680
2660
5530

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT + 39 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
39
39
39

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 GROUP BY tab1.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 GROUP BY tab1.col1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 83 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1992
3154
6557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT + cor0.col2 * col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab1 cor0 GROUP BY col0
----
-69

query I rowsort
SELECT 66 FROM tab2 cor0 GROUP BY cor0.col1
----
66
66
66

query I rowsort
SELECT + 30 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
30
30
30

query I rowsort
SELECT DISTINCT - 36 * 42 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-1512

query I rowsort
SELECT + tab2.col0 * + tab2.col0 FROM tab2 GROUP BY tab2.col0
----
225
8281
8464

query I rowsort
SELECT ALL + ( cor0.col0 ) + - 33 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-11
-5
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 + + 76 col1 FROM tab1 GROUP BY tab1.col0
----
104
158
98

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
73

query I rowsort
SELECT DISTINCT 62 * cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col1
----
2542
3658
3782

query I rowsort
SELECT 84 FROM tab0 GROUP BY tab0.col1
----
84
84

query I rowsort
SELECT DISTINCT - ( + 42 ) AS col1 FROM tab0 GROUP BY tab0.col2
----
-42

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
40

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT DISTINCT + 29 * 21 FROM tab0 AS cor0 GROUP BY cor0.col2
----
609

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-2025
-5041
-64

query I rowsort
SELECT ALL cor0.col1 - - 95 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
136
154
156

query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
182
184
30

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY col2, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1 HAVING NULL <> NULL
----

query I rowsort
SELECT cor0.col2 - + col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT 48 FROM tab2 AS cor0 GROUP BY cor0.col1
----
48
48
48

query I rowsort
SELECT DISTINCT 38 FROM tab1 GROUP BY tab1.col0
----
38

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT ALL - cor0.col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - cor0.col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
-22
-28
-82

query I rowsort
SELECT - cor0.col2 + + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ALL - 9 FROM tab1 GROUP BY tab1.col1
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT ALL - CAST( NULL AS SIGNED ) + col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3386
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-81
0

query I rowsort
SELECT DISTINCT 24 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
24

query I rowsort
SELECT 55 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
55
55
55

query I rowsort
SELECT 16 + + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
24
61
87

query I rowsort
SELECT cor0.col1 * - 13 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-572
-741
-78

query I rowsort
SELECT 2 AS col2 FROM tab0 GROUP BY tab0.col2
----
2
2
2

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-55
-55
-55

query I rowsort
SELECT ALL 19 + + tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
25
63
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + ( cor0.col2 ) col1 FROM tab1 cor0 GROUP BY col2
----
142
16
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3397
SELECT ALL + cor0.col0 + + cor0.col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + cor0.col0 + + cor0.col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 * ( + cor0.col2 ) + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, col1, col0
----
101270
280368
324642

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 GROUP BY col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3400
SELECT cor0.col0 * CAST( NULL AS SIGNED ) + + 99 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT cor0.col0 * CAST ( NULL AS INTEGER ) + + 99 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col1 + cor0.col1 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
243

query I rowsort
SELECT cor0.col2 * + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
73

query I rowsort
SELECT 39 FROM tab0 AS cor0 GROUP BY cor0.col1
----
39
39

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab0 GROUP BY tab0.col2
----
9

query I rowsort
SELECT 64 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab0 AS cor0 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT cor0.col1 * col1 FROM tab0 AS cor0 GROUP BY col1
----
0
6561

query I rowsort
SELECT DISTINCT + cor0.col2 * 3 + + cor0.col2 AS col2 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
180
284
32

query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, col1
----
0
0
3483

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
484
6724
784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * 19 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
1444
1444

query I rowsort
SELECT DISTINCT cor0.col2 - col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab1 cor0 GROUP BY col1
----
31

query I rowsort
SELECT ALL 63 + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
144
63

query I rowsort
SELECT 94 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
94
94
94

query I rowsort
SELECT ALL 35 AS col0 FROM tab1 GROUP BY tab1.col1
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col1 col1 FROM tab1 cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col1
----
45
71
8

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT cor0.col2 DIV cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3426
SELECT cor0.col2 / cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
3

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT DISTINCT 28 FROM tab1 AS cor0 GROUP BY cor0.col2
----
28

query I rowsort
SELECT ALL + - ( - cor0.col2 ) * + cor0.col2 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT DISTINCT cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT - ( ( tab2.col0 ) ) FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

query I rowsort
SELECT ALL 39 * - 58 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-2262
-2262
-2262

query I rowsort
SELECT + cor0.col1 * + 95 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3895
5605
5795

query I rowsort
SELECT + ( 1 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL cor0.col0 - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col1, cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
15
91
92

query I rowsort
SELECT 67 FROM tab1 AS cor0 GROUP BY col1
----
67
67
67

query I rowsort
SELECT ALL - col2 * + col2 AS col0 FROM tab1 cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT - cor0.col2 + cor0.col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT - 5 AS col1 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
-5
-5
-5

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
45
71
8

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT ALL tab0.col2 AS col2 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT - cor0.col0 + - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-182
-184
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
24
38
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT ALL cor0.col0 + + CAST( cor0.col0 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL cor0.col0 + + CAST ( cor0.col0 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + cor0.col0 + - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY col0
----
0
0
0

query I rowsort
SELECT + 12 FROM tab0 AS cor0 GROUP BY cor0.col0
----
12
12
12

query I rowsort
SELECT + 14 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) * cor0.col1 col2 FROM tab0 cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT 82 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
82
82
82

query I rowsort
SELECT ( cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
74

query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 + 91 * - cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1590
-16562
-16836

query I rowsort
SELECT - cor0.col0 FROM tab1 AS cor0 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT + cor0.col1 + 71 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
152
71

query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL 93 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
93
93
93

query I rowsort
SELECT ALL 7 FROM tab2 AS cor0 GROUP BY cor0.col1
----
7
7
7

query I rowsort
SELECT ALL - 63 FROM tab2 AS cor0 GROUP BY col1
----
-63
-63
-63

query I rowsort
SELECT + 7 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
7
7

query I rowsort
SELECT DISTINCT cor0.col2 * ( + cor0.col2 ) AS col0 FROM tab1 AS cor0 GROUP BY col2
----
2025
5041
64

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT cor0.col2 FROM tab1 cor0 CROSS JOIN tab1 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT + cor0.col1 FROM tab1 cor0 GROUP BY cor0.col2, col1
----
44
57
6

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT + col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
-1849
-676
-6889

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT - ( + cor0.col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT - 99 FROM tab0, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col2
----
-99

query I rowsort
SELECT ALL 90 FROM tab1 cor0 GROUP BY col2, col2
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT + 82 FROM tab1 AS cor0 GROUP BY cor0.col1
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT - CAST( NULL AS SIGNED ) FROM tab1 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 + cor0.col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
112
125
74

query I rowsort
SELECT ALL 28 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
2
2
2

query I rowsort
SELECT - col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * - cor0.col1 + + cor0.col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-3344
-4332
-456

query I rowsort
SELECT - cor0.col2 * + cor0.col2 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT 0 FROM tab1 cor0 GROUP BY cor0.col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT DISTINCT ( - cor0.col1 ) DIV ( + 98 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT ( - cor0.col1 ) / ( + 98 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
41
59
61

query I rowsort
SELECT ALL + cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-84

query I rowsort
SELECT 33 FROM tab0 AS cor0 GROUP BY col1
----
33
33

query I rowsort
SELECT + 16 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
16
16
16

query I rowsort
SELECT 91 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + tab2.col0 col2 FROM tab2 GROUP BY tab2.col0
----
127
128
51

query I rowsort
SELECT ALL + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
15
91
92

query I rowsort
SELECT ALL + 57 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
57
57
57

query I rowsort
SELECT 54 AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col1 ) + - col2 col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-17
-20
-26

query I rowsort
SELECT ALL - ( cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT ALL + 63 FROM tab1 cor0 GROUP BY cor0.col1
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3508
SELECT 40 * + cor0.col2 DIV + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
40
40
40

skipif mysql # not compatible
query I rowsort label-3508
SELECT 40 * + cor0.col2 / + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
40
40
40

query I rowsort
SELECT + col0 * 42 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1176
3444
924

query I rowsort
SELECT ALL + 49 AS col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
49
49

query I rowsort
SELECT ALL - tab0.col2 * + 31 AS col2 FROM tab0 GROUP BY col2
----
-1178
-2449
-744

query I rowsort
SELECT + col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT ALL ( cor0.col0 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
22
28
82

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT 51 FROM tab2 AS cor0 GROUP BY cor0.col0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + col1 col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
49
67
69

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT + 25 FROM tab1 AS cor0 GROUP BY cor0.col1
----
25

query I rowsort
SELECT - + cor0.col2 AS col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT ALL + 16 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
16
16
16

query I rowsort
SELECT ALL + 70 FROM tab2 AS cor0 GROUP BY col0, col0
----
70
70
70

query I rowsort
SELECT 98 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
98
98
98

query I rowsort
SELECT + cor0.col2 + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
158
48
76

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 + cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
36
74
87

query I rowsort
SELECT - 13 FROM tab0 GROUP BY col0
----
-13
-13
-13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3527
SELECT - CAST( NULL AS DECIMAL ) + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3527
SELECT - CAST ( NULL AS REAL ) + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT - 46 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-46
-46
-46

query I rowsort
SELECT DISTINCT 98 FROM tab0 cor0 GROUP BY cor0.col2
----
98

query I rowsort
SELECT ALL cor0.col1 + + 84 FROM tab0 AS cor0 GROUP BY cor0.col1
----
165
84

query I rowsort
SELECT 33 FROM tab1 GROUP BY tab1.col0
----
33
33
33

query I rowsort
SELECT 51 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
51
51
51

query I rowsort
SELECT DISTINCT - cor0.col0 * - 35 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
2870
770
980

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT - 27 - 13 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-3537
SELECT - 38 DIV cor0.col1 + cor0.col1 * cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col1
----
1681
3481
3721

skipif mysql # not compatible
query I rowsort label-3537
SELECT - 38 / cor0.col1 + cor0.col1 * cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col1
----
1681
3481
3721

query I rowsort
SELECT ( - cor0.col0 ) AS col2 FROM tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ALL 2 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1 GROUP BY cor1.col1
----
2
2

query I rowsort
SELECT ( cor0.col1 ) FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT + col2 + 10 * - 0 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT cor0.col1 + ( + 65 ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
109
122
71

query I rowsort
SELECT ALL + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
15
91
92

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col0, col2
----
0
0
0

query I rowsort
SELECT DISTINCT 2 FROM tab2, tab0 cor0, tab1 AS cor1 GROUP BY cor0.col0
----
2

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
16

query I rowsort
SELECT DISTINCT 61 FROM tab1 AS cor0 GROUP BY cor0.col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3548
SELECT ALL CAST( - 69 AS SIGNED ) * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1518
-1932
-5658

skipif mysql # not compatible
query I rowsort label-3548
SELECT ALL CAST ( - 69 AS INTEGER ) * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1518
-1932
-5658

query I rowsort
SELECT - 93 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL + 28 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
28
28

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
-22
-28
-82

query I rowsort
SELECT ALL cor0.col2 - + col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 cor0 GROUP BY col2, col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * 23 col1 FROM tab2 cor0 GROUP BY cor0.col1
----
1357
1403
943

query I rowsort
SELECT DISTINCT - cor0.col1 + - 64 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-105
-123
-125

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
85
85
85

query I rowsort
SELECT + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
26
43
83

query I rowsort
SELECT - 86 AS col1 FROM tab2 GROUP BY tab2.col0
----
-86
-86
-86

query I rowsort
SELECT 69 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
69
69
69

query I rowsort
SELECT + cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0
----
45
71
8

query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-57

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - 58 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-58
-58

query I rowsort
SELECT 30 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
30
30
30

query I rowsort
SELECT ALL - col0 - - col0 FROM tab2 cor0 GROUP BY col0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col2 * + 3 - - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-142
-16
-90

query I rowsort
SELECT ALL + 69 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
69
69
69

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
77

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT 51 AS col1 FROM tab2 GROUP BY col2
----
51
51
51

query I rowsort
SELECT + 41 AS col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
41
41
41

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 AS col0 FROM tab0 cor0 GROUP BY col0, cor0.col2
----
166
52
86

query I rowsort
SELECT - col2 FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT + tab0.col2 * tab0.col2 FROM tab0 GROUP BY col2
----
1444
576
6241

query I rowsort
SELECT ( + cor0.col0 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor1.col0 + - cor0.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0, cor1.col0
----
9 values hashing to 0b6f0a292a9e4102534823ec85f03988

query I rowsort
SELECT cor0.col2 * - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-3364
-6241
-7569

query I rowsort
SELECT ALL - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-58
-79
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3582
SELECT - + CAST( NULL AS SIGNED ) + - 93 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT - + CAST ( NULL AS INTEGER ) + - 93 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT + cor0.col1 * 36 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1476
2124
2196

query I rowsort
SELECT ALL 10 * + col2 * cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
33640
62410
75690

query I rowsort
SELECT - ( + ( - cor0.col2 ) * - cor0.col2 ) FROM tab0 cor0 GROUP BY col1, col2
----
-1444
-576
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab0 AS cor0 GROUP BY col0
----
-26
-43
-83

query I rowsort
SELECT 36 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
36
36
36

query I rowsort
SELECT ALL ( + cor0.col0 ) FROM tab1, tab0 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-57
38
79

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab2, tab1 AS cor0 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col2
----
22
28
82

query I rowsort
SELECT 26 + - 64 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-38
-38
-38

query I rowsort
SELECT 78 FROM tab0 GROUP BY col2
----
78
78
78

query I rowsort
SELECT ALL + 30 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1 GROUP BY cor1.col0
----
30
30
30

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3596
SELECT cor0.col1 DIV 57 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
1

skipif mysql # not compatible
query I rowsort label-3596
SELECT cor0.col1 / 57 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
1

query I rowsort
SELECT ALL - col0 FROM tab0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT 54 FROM tab0 cor0 GROUP BY col0
----
54

query I rowsort
SELECT ALL + 1 * cor0.col1 - 63 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-19
-57
-6

query I rowsort
SELECT ALL - + 35 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
-35
-35
-35

query I rowsort
SELECT ALL 9 FROM tab1 AS cor0 GROUP BY col1
----
9
9
9

query I rowsort
SELECT - 6 FROM tab1 AS cor0 GROUP BY col2
----
-6
-6
-6

query I rowsort
SELECT - cor0.col2 + + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-2
-27
12

query I rowsort
SELECT ALL + 44 AS col2 FROM tab0 AS cor0 GROUP BY col0, col0
----
44
44
44

query I rowsort
SELECT + cor0.col0 + - col0 FROM tab2 AS cor0 GROUP BY col0
----
0
0
0

query I rowsort
SELECT - 95 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col1
----
-95
-95
-95

query I rowsort
SELECT 50 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
50
50
50

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab2, tab1 AS cor0 GROUP BY tab2.col1
----
69

query I rowsort
SELECT 22 FROM tab1 AS cor0 GROUP BY cor0.col2
----
22
22
22

query I rowsort
SELECT col1 * cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
1681
3481
3721

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
68

query I rowsort
SELECT + 59 FROM tab0 cor0 GROUP BY cor0.col2
----
59
59
59

query I rowsort
SELECT + cor0.col2 + - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
0

query I rowsort
SELECT col0 + + cor0.col0 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
164
44
56

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + 54 * + cor0.col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
1404
2322
4482

query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT + 58 DIV - cor0.col1 - + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-15
-45
-58

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 58 / - cor0.col1 - + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-15
-45
-58

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1 GROUP BY cor1.col1
----
0
81

query I rowsort
SELECT + 16 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1
----
16
16

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + tab2.col0 * ( - tab2.col0 ) FROM tab2, tab1 AS cor0 GROUP BY tab2.col0
----
-225
-8281
-8464

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3625
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 GROUP BY col1, col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 GROUP BY col1, col0
----
NULL

query I rowsort
SELECT + 67 FROM tab2 AS cor0 GROUP BY col0
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3627
SELECT ALL 6 DIV col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL 6 / col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT + ( 69 ) * - cor0.col0 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
-1035
-6279
-6348

query I rowsort
SELECT DISTINCT + cor0.col0 * + 38 * cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
25688
261782
70262

query I rowsort
SELECT cor0.col0 * + cor0.col0 + 90 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1939
6979
766

query I rowsort
SELECT ALL cor0.col2 FROM tab0 AS cor0 GROUP BY col0, col2
----
24
38
79

query I rowsort
SELECT + 8 AS col1 FROM tab1 GROUP BY tab1.col0
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3633
SELECT CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT ALL 90 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
90
90
90

query I rowsort
SELECT - 31 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-31
-31
-31

query I rowsort
SELECT DISTINCT + 99 * - col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-4356
-5643
-594

query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT ALL + ( col1 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3640
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT DISTINCT + 74 - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-8
46
52

query I rowsort
SELECT ALL + 53 FROM tab2 AS cor0 GROUP BY cor0.col2
----
53
53
53

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0 cor0 GROUP BY col1, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT + 72 FROM tab2 AS cor0 GROUP BY cor0.col2
----
72

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
24
38
79

query I rowsort
SELECT + tab0.col1 + - tab0.col1 AS col2 FROM tab0 GROUP BY col1
----
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL col0 + + ( cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
124
26
83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 GROUP BY col2, cor0.col0, cor0.col1
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3650
SELECT ALL - CAST( NULL AS SIGNED ) + 47 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL - CAST ( NULL AS INTEGER ) + 47 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT 0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT - cor0.col2 * + 18 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
-1278
-144
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-45
-45
-45

query I rowsort
SELECT ALL cor0.col2 * - 41 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1558
-3239
-984

query I rowsort
SELECT - cor0.col0 + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-11
-14
17

query I rowsort
SELECT - 65 + + cor0.col2 AS col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-20
-57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col2 FROM tab0 cor0 GROUP BY cor0.col2
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col1
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT cor0.col0 * - cor0.col0 + + ( cor0.col0 + - CAST( 67 AS SIGNED ) ) AS col2 FROM tab0 AS cor0 GROUP BY col0
----
-1873
-6873
-717

skipif mysql # not compatible
query I rowsort label-3661
SELECT cor0.col0 * - cor0.col0 + + ( cor0.col0 + - CAST ( 67 AS INTEGER ) ) AS col2 FROM tab0 AS cor0 GROUP BY col0
----
-1873
-6873
-717

query I rowsort
SELECT cor0.col2 * 66 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1584
2508
5214

query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
-81
0

query I rowsort
SELECT ALL tab1.col2 + - 52 AS col1 FROM tab1 GROUP BY tab1.col2
----
-44
-7
19

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 GROUP BY col0
----
-26
-43
-83

query I rowsort
SELECT + cor0.col1 * - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT DISTINCT - - 13 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 GROUP BY cor1.col2
----
13

query I rowsort
SELECT + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1
----
0
0
81

query I rowsort
SELECT DISTINCT + 85 * - 62 FROM tab1 GROUP BY col1
----
-5270

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
22
28
82

query I rowsort
SELECT ALL + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
15
91
92

query I rowsort
SELECT 23 FROM tab0 AS cor0 GROUP BY cor0.col0
----
23
23
23

query I rowsort
SELECT ALL 37 + - col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-20
-7
31

query I rowsort
SELECT - cor0.col2 * - cor0.col0 - - cor0.col0 FROM tab1 AS cor0 GROUP BY col0, col2
----
1288
198
5904

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 - 72 col2 FROM tab1 AS cor0 GROUP BY col0
----
-44
-50
10

query I rowsort
SELECT ALL cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT - 6 + 41 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
41
79
92

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT + ( cor0.col2 ) AS col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

query I rowsort
SELECT 23 FROM tab1 AS cor0 GROUP BY cor0.col0
----
23
23
23

query I rowsort
SELECT 49 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
49
49
49

query I rowsort
SELECT + 3 * cor0.col0 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
112
328
88

query I rowsort
SELECT ALL - ( + cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-22
-28
-82

query I rowsort
SELECT - 88 AS col1 FROM tab0 GROUP BY col2
----
-88
-88
-88

query I rowsort
SELECT tab1.col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT ALL 30 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
30
30
30

query I rowsort
SELECT ALL cor0.col1 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col0, cor0.col2
----
132
1596
3608

query I rowsort
SELECT ALL - cor0.col0 FROM tab0 cor0 GROUP BY cor0.col0, col2
----
-26
-43
-83

query I rowsort
SELECT cor0.col1 + + cor0.col1 FROM tab0 AS cor0 GROUP BY col1
----
0
162

query I rowsort
SELECT DISTINCT 0 FROM tab0 GROUP BY tab0.col1
----
0

query I rowsort
SELECT - 2 + 31 FROM tab2 AS cor0 GROUP BY cor0.col1
----
29
29
29

query I rowsort
SELECT 55 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
55
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3697
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 - - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
105
38
79

query I rowsort
SELECT - 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0, cor0.col1
----
-87
-87
-87

query I rowsort
SELECT ALL 87 FROM tab1 AS cor0 GROUP BY cor0.col0
----
87
87
87

query I rowsort
SELECT ALL - 68 AS col0 FROM tab1 cor0 GROUP BY col1
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab2 cor0 GROUP BY col2
----
68

query I rowsort
SELECT ALL - 74 FROM tab2 AS cor0 GROUP BY col1
----
-74
-74
-74

query I rowsort
SELECT 80 FROM tab2 AS cor0 GROUP BY col2
----
80
80
80

query I rowsort
SELECT ALL + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3707
SELECT + cor0.col0 DIV ( + cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3707
SELECT + cor0.col0 / ( + cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT 86 FROM tab2 AS cor0 GROUP BY cor0.col2
----
86
86
86

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT - cor0.col2 * - cor0.col2 + + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3422
6320
7656

query I rowsort
SELECT DISTINCT + cor0.col0 * 57 FROM tab1 cor0 GROUP BY cor0.col0
----
1254
1596
4674

query I rowsort
SELECT - 8 FROM tab1 GROUP BY tab1.col1
----
-8
-8
-8

query I rowsort
SELECT + cor0.col0 * - col0 * 73 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-134977
-49348
-502897

query I rowsort
SELECT DISTINCT 4 FROM tab2 AS cor0 GROUP BY cor0.col0
----
4

query I rowsort
SELECT ALL cor0.col2 + - 1 AS col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
57
78
86

query I rowsort
SELECT - 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
-17
-17
-17

query I rowsort
SELECT 60 FROM tab0 GROUP BY tab0.col1
----
60
60

query I rowsort
SELECT - + 97 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-97
-97
-97

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL 40 FROM tab0 AS cor0 GROUP BY cor0.col2
----
40
40
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3721
SELECT - CAST( 61 AS SIGNED ) * + tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
-2745
-4331
-488

skipif mysql # not compatible
query I rowsort label-3721
SELECT - CAST ( 61 AS INTEGER ) * + tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
-2745
-4331
-488

query I rowsort
SELECT 36 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
36
36
36

query I rowsort
SELECT - col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3724
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 8 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 8 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT + - 52 FROM tab0 GROUP BY col0
----
-52
-52
-52

query I rowsort
SELECT ALL + 12 FROM tab1 GROUP BY tab1.col2
----
12
12
12

query I rowsort
SELECT - 15 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, col1
----
-15
-15

query I rowsort
SELECT 48 - + cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-34
20
26

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1 cor0 GROUP BY col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * + cor0.col0 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
4095
4140
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab1 AS cor0 GROUP BY col0, col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT - CAST( - col1 AS SIGNED ) - - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
118
122
82

skipif mysql # not compatible
query I rowsort label-3733
SELECT - CAST ( - col1 AS INTEGER ) - - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
118
122
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3734
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab0 AS cor0 GROUP BY col2
----
42
42
42

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 GROUP BY col0
----
-26
-43
-83

query I rowsort
SELECT ALL 33 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
33
33
33

query I rowsort
SELECT ALL 33 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
33
33
33

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2, cor0.col2, cor0.col0
----
-58
-79
-87

query I rowsort
SELECT ALL + col2 - col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
17
20
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT cor0.col0 DIV col0 FROM tab0 cor0 GROUP BY col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3741
SELECT cor0.col0 / col0 FROM tab0 cor0 GROUP BY col0
----
1
1
1

query I rowsort
SELECT + ( col0 ) FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 78 + + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
122
135
84

query I rowsort
SELECT cor0.col0 * ( - 39 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1014
-1677
-3237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col0
----
58
58
58

query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
37

query I rowsort
SELECT DISTINCT - ( 1 ) + - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col2
----
-46
-72
-9

query I rowsort
SELECT + ( - cor0.col0 ) FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
NULL

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT - 74 + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-16
13
5

query I rowsort
SELECT ALL + 53 AS col2 FROM tab2 GROUP BY tab2.col1
----
53
53
53

query I rowsort
SELECT DISTINCT + 4 * cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1 GROUP BY cor1.col1
----
0
324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - tab1.col2 col0 FROM tab1 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT 29 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
29
29

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
51

query I rowsort
SELECT - 79 FROM tab0 GROUP BY tab0.col2
----
-79
-79
-79

query I rowsort
SELECT ALL 81 FROM tab2 AS cor0 GROUP BY cor0.col1
----
81
81
81

query I rowsort
SELECT + 10 FROM tab2 AS cor0 GROUP BY cor0.col2
----
10
10
10

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col0
----
164
44
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + cor0.col2 * cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2070
5112
72

query I rowsort
SELECT 20 FROM tab1 AS cor0 GROUP BY cor0.col2
----
20
20
20

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
-10

query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3767
SELECT DISTINCT cor0.col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT cor0.col0 / cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1

skipif postgresql # PostgreSQL has strict column usage for GROUP BY clauses
query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0 HAVING NULL NOT IN ( - cor0.col0 * - col2 )
----

query I rowsort
SELECT ALL 95 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
95
95
95

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 GROUP BY col1, col0
----
44
57
6

query I rowsort
SELECT + cor0.col1 + + col1 * - 38 FROM tab0 cor0 GROUP BY col1
----
-2997
0

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
97

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT - - col2 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 GROUP BY cor0.col0
----
-26
-43
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * 50 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-2550
-2550
-2550

query I rowsort
SELECT ALL + ( + 93 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor0.col2
----
93
93
93

query I rowsort
SELECT ALL 9 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col2
----
9
9
9

query I rowsort
SELECT DISTINCT 71 FROM tab2 AS cor0 GROUP BY col0
----
71

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * 99 col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
-9207
-9207
-9207

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
1681
3481
3721

query I rowsort
SELECT + cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT 95 FROM tab0 cor0 GROUP BY cor0.col2
----
95
95
95

query I rowsort
SELECT DISTINCT 68 * 69 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1 GROUP BY cor0.col2
----
4692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col0 FROM tab0 cor0 GROUP BY cor0.col1
----
-64
-64

query I rowsort
SELECT ALL - cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT - ( cor0.col0 + - cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
0
0
0

query I rowsort
SELECT DISTINCT - 20 + + 12 * + cor0.col1 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
-20
952

query I rowsort
SELECT ALL + cor0.col2 FROM tab2 cor0 GROUP BY col2
----
58
79
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col0, cor0.col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT - cor0.col1 + + cor0.col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
23

query I rowsort
SELECT ALL - 84 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-84
-84
-84

query I rowsort
SELECT 71 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT DISTINCT CAST( - 76 AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
-76

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT CAST ( - 76 AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3798
SELECT ALL - cor0.col1 DIV cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col1, col1, cor0.col0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - cor0.col1 / cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col1, col1, cor0.col0
----
-4
0
0

query I rowsort
SELECT DISTINCT 48 FROM tab1 cor0 GROUP BY cor0.col0
----
48

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0 cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 94 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-94

query I rowsort
SELECT - 73 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
22
28
82

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
-1305
-5336
-7189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 44 ) * - cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1980
3124
352

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 AS cor0 GROUP BY col0
----
-22
-28
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3807
SELECT - CAST( cor0.col1 AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-41
-59
-61

skipif mysql # not compatible
query I rowsort label-3807
SELECT - CAST ( cor0.col1 AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT - cor0.col2 * + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-3364
-6241
-7569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
25

query I rowsort
SELECT ALL + cor0.col2 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT ALL + 32 DIV + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + 32 / + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

query I rowsort
SELECT ALL 99 FROM tab1 AS cor0 GROUP BY col2
----
99
99
99

query I rowsort
SELECT ALL + 30 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT + cor0.col1 DIV 71 - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-41
-59
-61

skipif mysql # not compatible
query I rowsort label-3816
SELECT + cor0.col1 / 71 - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-30

query I rowsort
SELECT 15 FROM tab0 GROUP BY tab0.col2
----
15
15
15

query I rowsort
SELECT ALL - + 52 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
-52
-52
-52

query I rowsort
SELECT ALL - ( + cor0.col2 ) FROM tab0 cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3822
SELECT + 27 DIV cor0.col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3822
SELECT + 27 / cor0.col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
0
0
3

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT - cor0.col1 * ( + 75 + cor0.col1 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
-486
-5236
-7524

query I rowsort
SELECT cor0.col1 + 52 FROM tab0 AS cor0 GROUP BY cor0.col1
----
133
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT ALL ( cor0.col2 ) * 88 DIV - 43 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-145
-16
-92

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL ( cor0.col2 ) * 88 / - 43 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-145
-16
-92

query I rowsort
SELECT + 80 * cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1760
2240
6560

query I rowsort
SELECT ( 20 ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
20
20
20

query I rowsort
SELECT DISTINCT + 62 FROM tab0 AS cor0 GROUP BY cor0.col2
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
62
62
62

query I rowsort
SELECT ALL 13 FROM tab0 AS cor0 GROUP BY cor0.col2
----
13
13
13

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2 cor0 GROUP BY col0
----
15
91
92

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT cor0.col0 * - 57 + + 89 * col0 DIV + 43 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1429
-2362
-4560

skipif mysql # not compatible
query I rowsort label-3833
SELECT cor0.col0 * - 57 + + 89 * col0 / + 43 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1429
-2362
-4560

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT cor0.col1 DIV 63 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT cor0.col1 / 63 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col2
----
9 values hashing to 7a3bee88c68cb011ab3d0cb5e0bd7e7c

query I rowsort
SELECT - 0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
0
0
0

query I rowsort
SELECT cor0.col1 * - 99 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-8019
0

query I rowsort
SELECT DISTINCT 21 FROM tab2 GROUP BY tab2.col2
----
21

query I rowsort
SELECT 24 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
24
24

query I rowsort
SELECT ALL - cor0.col2 - ( - col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3841
SELECT cor0.col1 + 56 DIV - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
-1
0
79

skipif mysql # not compatible
query I rowsort label-3841
SELECT cor0.col1 + 56 / - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
-1
0
79

query I rowsort
SELECT 60 FROM tab0 AS cor0 GROUP BY cor0.col1
----
60
60

query I rowsort
SELECT DISTINCT + cor0.col2 * + 95 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
2280
3610
7505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT + CAST( 36 AS SIGNED ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
36
36

skipif mysql # not compatible
query I rowsort label-3844
SELECT + CAST ( 36 AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
36
36

query I rowsort
SELECT 55 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
55
55
55

query I rowsort
SELECT - 5 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1
----
-5
-5
-5

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 GROUP BY tab0.col1
----
-81
0

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT ALL + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT + 72 AS col1 FROM tab0 GROUP BY tab0.col0
----
72
72
72

query I rowsort
SELECT + 58 FROM tab2 cor0 GROUP BY cor0.col1
----
58
58
58

query I rowsort
SELECT ALL cor0.col0 + 79 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
170
171
94

query I rowsort
SELECT DISTINCT - 94 FROM tab2 cor0 GROUP BY cor0.col2
----
-94

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col2
----
158
48
76

query I rowsort
SELECT ALL 72 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
72
72
72

query I rowsort
SELECT ALL 31 FROM tab2 cor0 GROUP BY col2, cor0.col2
----
31
31
31

query I rowsort
SELECT ALL 94 FROM tab0 AS cor0 GROUP BY col0
----
94
94
94

query I rowsort
SELECT DISTINCT 84 + - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
23
25
43

query I rowsort
SELECT - cor0.col1 + + cor0.col1 * + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
1640
3422
3660

query I rowsort
SELECT 53 FROM tab0 cor0 GROUP BY cor0.col0
----
53
53
53

query I rowsort
SELECT ALL 31 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
31
31
31

query I rowsort
SELECT ALL 88 FROM tab2 cor0 GROUP BY cor0.col2
----
88
88
88

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT - + 77 + 90 FROM tab2, tab2 AS cor0 GROUP BY tab2.col0
----
13
13
13

query I rowsort
SELECT ALL - ( + cor0.col2 ) + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
26
43
83

query I rowsort
SELECT ALL 61 FROM tab0 cor0 GROUP BY col0
----
61
61
61

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) + - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-116
-158
-174

query I rowsort
SELECT ALL 28 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
28
28
28

query I rowsort
SELECT col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
45
71
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3874
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3874
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
NULL

query I rowsort
SELECT DISTINCT - 54 FROM tab2 GROUP BY tab2.col1
----
-54

query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-85

query I rowsort
SELECT + cor0.col2 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
58
79
87

query I rowsort
SELECT ALL - 84 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-84
-84
-84

query I rowsort
SELECT DISTINCT 95 - cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
24
50
87

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT + 95 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
95

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT ALL - 58 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-58
-58
-58

query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1681
3481
3721

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
30

query I rowsort
SELECT DISTINCT 30 FROM tab2 AS cor0 GROUP BY cor0.col2
----
30

query I rowsort
SELECT 12 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
12
12
12

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + 33 FROM tab2, tab1 cor0, tab0 AS cor1 GROUP BY cor1.col0
----
33

query I rowsort
SELECT ( 69 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
69
69
69

query I rowsort
SELECT + col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT cor0.col0 * - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY col0
----
-26
-43
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT col2 DIV - cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3896
SELECT col2 / - cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 85 * cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
172125
428485
5440

query I rowsort
SELECT ALL 75 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
75
75
75

query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT col0 * cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT ALL + tab0.col2 FROM tab0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT + cor0.col2 * col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
3364
6241
7569

query I rowsort
SELECT ALL + - 34 + - 72 FROM tab2 GROUP BY col2
----
-106
-106
-106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT ALL + cor0.col1 FROM tab0 cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT 96 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
96
96

query I rowsort
SELECT DISTINCT + + tab1.col0 FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT 81 FROM tab2 AS cor0 GROUP BY cor0.col1
----
81
81
81

query I rowsort
SELECT DISTINCT 27 FROM tab0 AS cor0 GROUP BY cor0.col1
----
27

query I rowsort
SELECT - cor0.col1 + + ( - 64 ) FROM tab1 AS cor0 GROUP BY col1
----
-108
-121
-70

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
26
43
83

query I rowsort
SELECT + 83 FROM tab0 GROUP BY col2
----
83
83
83

query I rowsort
SELECT DISTINCT - + 82 FROM tab2, tab1 AS cor0 GROUP BY tab2.col2
----
-82

query I rowsort
SELECT - 9 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - cor0.col1 col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
-3483
0
0

query III rowsort
SELECT * FROM tab2 cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT DISTINCT ( 45 ) * cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1845
2655
2745

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
32

query I rowsort
SELECT cor0.col1 * 11 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
484
627
66

query I rowsort
SELECT ALL + cor0.col1 * + 11 FROM tab2 AS cor0 GROUP BY cor0.col0, col1
----
451
649
671

query I rowsort
SELECT - + tab0.col2 FROM tab0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT ALL 28 FROM tab1 AS cor0 GROUP BY col2
----
28
28
28

query I rowsort
SELECT - cor0.col1 * cor0.col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT ALL 25 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3925
SELECT cor0.col1 + + 43 DIV col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
42
59
61

skipif mysql # not compatible
query I rowsort label-3925
SELECT cor0.col1 + + 43 / col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
42
59
61

query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
22
28
82

query I rowsort
SELECT ALL - 32 * + tab2.col0 + 54 AS col1 FROM tab2 GROUP BY tab2.col0
----
-2858
-2890
-426

query I rowsort
SELECT ALL 27 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT CAST( NULL AS SIGNED ) * tab1.col2 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT CAST ( NULL AS INTEGER ) * tab1.col2 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT cor0.col1 * cor0.col1 + - cor0.col1 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
0

query I rowsort
SELECT tab1.col1 AS col2 FROM tab1 GROUP BY col1
----
44
57
6

query I rowsort
SELECT tab1.col1 AS col2 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT - cor0.col2 + + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT DISTINCT 94 FROM tab0 AS cor0 GROUP BY col2, cor0.col2
----
94

query I rowsort
SELECT + 3 FROM tab0 GROUP BY tab0.col1
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 3 col1 FROM tab0, tab0 cor0, tab1 AS cor1 GROUP BY cor0.col2
----
-3
-3
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT ALL ( + 91 ) DIV cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL ( + 91 ) / cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT ALL CAST( 62 AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
62
62
62

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL CAST ( 62 AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab0 AS cor0 GROUP BY col1
----
-81
0

query I rowsort
SELECT ALL - 59 AS col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
-59
-59
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-3943
SELECT cor0.col0 * - ( + col0 ) + 18 DIV 68 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1849
-676
-6889

skipif mysql # not compatible
query I rowsort label-3943
SELECT cor0.col0 * - ( + col0 ) + 18 / 68 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1849
-676
-6889

query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 GROUP BY col2, col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-484
-6724
-784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * cor0.col1 col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
1944

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col1
----
44
57
6

query I rowsort
SELECT col2 * cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
13824
493039
54872

query I rowsort
SELECT ALL + tab0.col1 AS col0 FROM tab0 GROUP BY tab0.col1
----
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT cor0.col2 DIV - cor0.col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3950
SELECT cor0.col2 / - cor0.col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
-1
-1
-1

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT - col2 * - cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT DISTINCT tab1.col1 * - col1 AS col0 FROM tab1 GROUP BY tab1.col1
----
-1936
-3249
-36

query I rowsort
SELECT - 54 AS col0 FROM tab2 GROUP BY tab2.col0
----
-54
-54
-54

query I rowsort
SELECT - cor0.col1 * + cor0.col2 + cor0.col1 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-2279
-4523
-5159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3956
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab0 cor0 GROUP BY cor0.col0
----
-38
-38
-38

query I rowsort
SELECT ALL + 31 FROM tab1 cor0 GROUP BY col0
----
31
31
31

query I rowsort
SELECT + ( tab2.col2 ) AS col1 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT ALL - 21 FROM tab2 cor0 GROUP BY cor0.col2
----
-21
-21
-21

query I rowsort
SELECT 63 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT + ( 83 ) + + tab1.col0 DIV - col0 FROM tab1 GROUP BY col0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-3962
SELECT + ( 83 ) + + tab1.col0 / - col0 FROM tab1 GROUP BY col0
----
82
82
82

query I rowsort
SELECT - 24 FROM tab0, tab1 AS cor0 GROUP BY tab0.col0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT - + 16 FROM tab0, tab1 AS cor0, tab1 AS cor1 GROUP BY tab0.col1
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT 53 FROM tab2 AS cor0 GROUP BY col2
----
53
53
53

query I rowsort
SELECT - 18 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-18
-18
-18

query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT cor0.col1 * 78 FROM tab1 cor0 GROUP BY cor0.col1
----
3432
4446
468

query I rowsort
SELECT ALL - ( - cor0.col1 ) FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT ALL + 45 DIV - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT ALL + 45 / - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-5
0

query I rowsort
SELECT DISTINCT + cor0.col0 - 64 * col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1638
-2709
-5229

query I rowsort
SELECT 52 FROM tab0 AS cor0 GROUP BY cor0.col2
----
52
52
52

query I rowsort
SELECT + cor1.col0 FROM tab1, tab2 AS cor0, tab2 cor1 GROUP BY cor1.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * + 39 col2 FROM tab0 GROUP BY col1
----
0
3159

query I rowsort
SELECT ALL + 82 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
82
82

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-54

query I rowsort
SELECT - 23 FROM tab1 GROUP BY col2
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL - ( - 27 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
27
27
27

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT - CAST( 18 AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-3985
SELECT - CAST ( 18 AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT - CAST( + cor0.col0 + cor0.col0 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-164
-44
-56

skipif mysql # not compatible
query I rowsort label-3986
SELECT - CAST ( + cor0.col0 + cor0.col0 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-164
-44
-56

query I rowsort
SELECT ALL 9 FROM tab2 AS cor0 GROUP BY cor0.col2
----
9
9
9

query I rowsort
SELECT ( 94 ) AS col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
94
94
94

query I rowsort
SELECT - 32 FROM tab2 cor0 GROUP BY col1
----
-32
-32
-32

query I rowsort
SELECT 95 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
95
95
95

query I rowsort
SELECT + 31 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
31
31
31

query I rowsort
SELECT + 53 FROM tab1 AS cor0 GROUP BY cor0.col2
----
53
53
53

query I rowsort
SELECT ALL + ( - cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT ALL - 23 AS col2 FROM tab1 GROUP BY tab1.col0
----
-23
-23
-23

query I rowsort
SELECT + col0 * - 30 + col2 FROM tab2 AS cor0 GROUP BY col2, col0
----
-2651
-2702
-363

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-3998
SELECT DISTINCT col1 * cor0.col1 DIV 81 FROM tab1 AS cor0 GROUP BY col1
----
0
23
40

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT col1 * cor0.col1 / 81 FROM tab1 AS cor0 GROUP BY col1
----
0
23
40

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 51 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-51

query I rowsort
SELECT cor0.col1 * col1 + cor0.col0 + - cor0.col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col0, col0
----
1732
3513
3675

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT 73 FROM tab0 AS cor0 GROUP BY cor0.col2
----
73
73
73

query I rowsort
SELECT - cor0.col2 + - cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
-142
-16
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4006
SELECT CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0, tab0 AS cor1 GROUP BY cor1.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4006
SELECT CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0, tab0 AS cor1 GROUP BY cor1.col0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

query I rowsort
SELECT - 42 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * + cor0.col0 col0 FROM tab1 AS cor0 GROUP BY col0
----
1476
396
504

query I rowsort
SELECT - 0 * cor0.col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT + tab1.col0 FROM tab1 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT cor0.col0 - 28 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
-6
0
54

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab0 GROUP BY col1
----
46

query I rowsort
SELECT - col0 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-225
-8281
-8464

query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
26
43
83

query I rowsort
SELECT - cor0.col1 + + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
0

query I rowsort
SELECT DISTINCT - 6 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-6

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT CAST( NULL AS SIGNED ) col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4019
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-57
38
79

query I rowsort
SELECT 52 + cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
134
74
80

query I rowsort
SELECT 3 * - 48 AS col2 FROM tab2 GROUP BY tab2.col0
----
-144
-144
-144

query I rowsort
SELECT 50 FROM tab2 cor0 GROUP BY cor0.col1
----
50
50
50

query I rowsort
SELECT ALL - 88 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-88
-88
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-4025
SELECT 37 + + cor0.col1 DIV + cor0.col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-4025
SELECT 37 + + cor0.col1 / + cor0.col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
38
38
38

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
26
43
83

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - + col2 col1 FROM tab2 AS cor0 GROUP BY col2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4031
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 GROUP BY col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0 AS cor0 GROUP BY col0
----
NULL

query I rowsort
SELECT DISTINCT + 19 FROM tab1 AS cor0 GROUP BY cor0.col0
----
19

query I rowsort
SELECT + ( cor0.col2 ) FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT - 68 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT CAST( NULL AS SIGNED ) * - 16 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT CAST ( NULL AS INTEGER ) * - 16 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 65 + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
146
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * tab1.col0 col1 FROM tab1 GROUP BY col0
----
484
6724
784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4039
SELECT + ( - ( cor0.col2 ) ) DIV + col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4039
SELECT + ( - ( cor0.col2 ) ) / + col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1
-1
-1

query I rowsort
SELECT ALL - 29 FROM tab0 cor0 GROUP BY cor0.col1
----
-29
-29

query I rowsort
SELECT ALL - - cor1.col2 + + 30 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1 GROUP BY cor1.col2
----
109
117
88

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT ALL 56 - + col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-25
56

query I rowsort
SELECT tab0.col1 AS col0 FROM tab0 GROUP BY tab0.col1
----
0
81

query I rowsort
SELECT ALL - + 48 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col2
----
-48
-48
-48

query I rowsort
SELECT ALL 14 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
14
14
14

query I rowsort
SELECT ALL 21 FROM tab1 AS cor0 GROUP BY col1
----
21
21
21

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + cor0.col1 - 86 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-25
-27
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( col2 ) + cor0.col2 ) col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT ALL - - 40 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
40
40
40

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 41 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
123
63
69

query I rowsort
SELECT cor0.col1 * - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1681
-3481
-3721

query I rowsort
SELECT DISTINCT + 62 FROM tab2 AS cor0 GROUP BY col0
----
62

query I rowsort
SELECT + 17 FROM tab0 AS cor0 GROUP BY cor0.col0
----
17
17
17

query I rowsort
SELECT 31 FROM tab2, tab0 AS cor0, tab2 AS cor1 GROUP BY cor1.col2
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - 81 col2 FROM tab0 AS cor0 GROUP BY col2
----
-1944
-3078
-6399

query I rowsort
SELECT ALL - 89 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-61
-67
-7

query I rowsort
SELECT col2 * + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT DISTINCT + 57 FROM tab0 AS cor0 GROUP BY cor0.col2
----
57

query I rowsort
SELECT ( - 73 ) * col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-3212
-4161
-438

query I rowsort
SELECT cor0.col1 * - 30 + + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1276
-1653
-174

query I rowsort
SELECT ALL 84 FROM tab2 GROUP BY tab2.col1
----
84
84
84

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT ALL - CAST( NULL AS SIGNED ) * - 1 + + col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL - CAST ( NULL AS INTEGER ) * - 1 + + col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT 85 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
85
85
85

query I rowsort
SELECT - + 10 AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
-10
-10
-10

query I rowsort
SELECT - cor0.col1 + - 73 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
-154
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1

query I rowsort
SELECT ALL - col2 + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
0
0
0

query I rowsort
SELECT ALL 49 FROM tab0 cor0 GROUP BY cor0.col1
----
49
49

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - 69 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-69

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT cor0.col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
15
91
92

query I rowsort
SELECT - cor0.col2 - cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-116
-158
-174

query I rowsort
SELECT + 46 FROM tab0 AS cor0 GROUP BY cor0.col2
----
46
46
46

query I rowsort
SELECT ALL + cor0.col0 + + 46 * - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1170
-1935
-3735

query I rowsort
SELECT + - 12 AS col0 FROM tab1, tab1 cor0 GROUP BY cor0.col1
----
-12
-12
-12

query I rowsort
SELECT + 86 FROM tab2 AS cor0 GROUP BY cor0.col1
----
86
86
86

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
1849
676
6889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
26
26
26

query I rowsort
SELECT ALL 28 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT DISTINCT CAST( + 30 AS SIGNED ) FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
30

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT CAST ( + 30 AS INTEGER ) FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
30

query I rowsort
SELECT ALL 54 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1 GROUP BY cor1.col1
----
54
54
54

query I rowsort
SELECT DISTINCT 69 FROM tab1 cor0 GROUP BY col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT 62 * cor0.col2 + - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4091
SELECT 62 * cor0.col2 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - 87 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-87
-87
-87

query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
81
81
81

query I rowsort
SELECT ALL 57 + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
138
57

query I rowsort
SELECT 87 FROM tab2 AS cor0 GROUP BY cor0.col2
----
87
87
87

query I rowsort
SELECT - 79 + 57 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
-22
-22
-22

query I rowsort
SELECT + cor0.col2 + + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
158
48
76

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0, tab2 AS cor0 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT DISTINCT - 72 + + cor0.col2 FROM tab0 AS cor0 GROUP BY col2, col1
----
-34
-48
7

query I rowsort
SELECT ALL + + cor0.col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + 33 * + cor0.col0 * cor0.col1 + col1 col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
124609
177327
30271

query I rowsort
SELECT - cor0.col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT cor0.col2 + - 67 FROM tab0, tab2 cor0 GROUP BY cor0.col2
----
-9
12
20

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 cor0 GROUP BY col1, cor0.col0
----
41
59
61

query I rowsort
SELECT 66 * col2 FROM tab2 GROUP BY col2
----
3828
5214
5742

query I rowsort
SELECT + cor0.col0 * - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-225
-8281
-8464

query I rowsort
SELECT + 61 * 99 * cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
489159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4117
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT ( cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT + cor0.col0 DIV + 44 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4119
SELECT + cor0.col0 / + 44 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
2
2

query I rowsort
SELECT 50 FROM tab0 AS cor0 GROUP BY cor0.col2
----
50
50
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4121
SELECT 58 DIV cor0.col2 col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4121
SELECT 58 / cor0.col2 col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
1

query I rowsort
SELECT 67 AS col0 FROM tab1, tab1 AS cor0 GROUP BY tab1.col0
----
67
67
67

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
41
59
61

query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + cor0.col0 * + 34 FROM tab1 AS cor0 GROUP BY cor0.col0
----
2788
748
952

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + - tab2.col0 FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

query I rowsort
SELECT + 65 FROM tab0 AS cor0 GROUP BY col0
----
65
65
65

query I rowsort
SELECT ALL cor0.col0 * - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab1 GROUP BY tab1.col1
----
64

query I rowsort
SELECT - 38 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-38
-38
-38

query I rowsort
SELECT - tab0.col1 FROM tab0 GROUP BY tab0.col1
----
-81
0

query I rowsort
SELECT ALL - - 8 FROM tab0 GROUP BY tab0.col0
----
8
8
8

query I rowsort
SELECT ALL 60 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
60
60
60

query I rowsort
SELECT + cor0.col2 * 20 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1420
160
900

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT + 11 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col0
----
26
43
83

query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 + + ( - 35 ) FROM tab2 AS cor0 GROUP BY col0
----
-260
-8316
-8499

query I rowsort
SELECT ALL cor0.col2 * - cor0.col0 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
-1305
-5336
-7189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT CAST( - cor0.col0 AS SIGNED ) FROM tab0 cor0 GROUP BY cor0.col0
----
-26
-43
-83

skipif mysql # not compatible
query I rowsort label-4144
SELECT CAST ( - cor0.col0 AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT 24 FROM tab2 GROUP BY tab2.col1
----
24
24
24

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
0
0
81

query I rowsort
SELECT cor0.col2 + + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2 HAVING NOT NULL NOT IN ( cor0.col2 )
----

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 * + tab1.col1 col0 FROM tab1 GROUP BY tab1.col1
----
1628
2109
222

query I rowsort
SELECT 52 FROM tab2 AS cor0 GROUP BY cor0.col0
----
52
52
52

query I rowsort
SELECT 63 FROM tab2 AS cor0 GROUP BY cor0.col0
----
63
63
63

query I rowsort
SELECT + 20 AS col2 FROM tab1 cor0 GROUP BY cor0.col0
----
20
20
20

query I rowsort
SELECT ALL 71 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
71
71
71

query I rowsort
SELECT ALL - 28 + + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-13
63
64

query I rowsort
SELECT 3 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col0, cor1.col2
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # DIV for integer division: 
query I rowsort label-4156
SELECT DISTINCT cor0.col2 DIV ( - 26 ) col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4156
SELECT DISTINCT cor0.col2 / ( - 26 ) col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-2
-3

query I rowsort
SELECT DISTINCT 67 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0, col2
----
111
124
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4158
SELECT ALL + ( + cor0.col1 ) * - cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + ( + cor0.col1 ) * - cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * 9 col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
396
513
54

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL - 62 * cor0.col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - 62 * cor0.col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT + CAST( NULL AS SIGNED ) FROM tab0 GROUP BY col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY col1
----
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-21

query I rowsort
SELECT ALL - 78 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-78
-78
-78

query I rowsort
SELECT ALL - - 5 AS col2 FROM tab1 GROUP BY tab1.col0
----
5
5
5

query I rowsort
SELECT + ( + 26 ) AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
26
26
26

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT tab2.col2 * tab2.col2 FROM tab2 GROUP BY col2
----
3364
6241
7569

query I rowsort
SELECT + 97 * - ( + cor0.col1 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
-4268
-5529
-582

query I rowsort
SELECT + cor0.col1 + - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-17
-20
-26

query I rowsort
SELECT DISTINCT - 56 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-56

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
45
71
8

query I rowsort
SELECT col0 + ( cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT 84 + ( + col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
106
112
166

query I rowsort
SELECT ALL + 62 FROM tab1 cor0 GROUP BY cor0.col1
----
62
62
62

query I rowsort
SELECT ALL + 86 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
86
86

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-26
-43
-83

query I rowsort
SELECT ALL + tab0.col2 * + tab0.col2 FROM tab0 GROUP BY tab0.col2
----
1444
576
6241

query I rowsort
SELECT col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
79

query I rowsort
SELECT ALL 4 FROM tab2 GROUP BY tab2.col0
----
4
4
4

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0 cor0 GROUP BY col1
----
-81
0

query I rowsort
SELECT - 14 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT ALL cor0.col2 + 66 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
111
137
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 94 col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
94
94
94

query I rowsort
SELECT ALL + 19 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
19
19
19

query I rowsort
SELECT DISTINCT 35 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
35

query I rowsort
SELECT DISTINCT - ( col1 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT 7 FROM tab1 AS cor0 GROUP BY cor0.col0
----
7

query I rowsort
SELECT ALL 26 FROM tab2 AS cor0 GROUP BY cor0.col2
----
26
26
26

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
15
91
92

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
81

query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT DISTINCT - 21 * cor0.col2 AS col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
-1491
-168
-945

query I rowsort
SELECT ALL + + tab2.col2 + + 90 AS col1 FROM tab2 GROUP BY tab2.col2
----
148
169
177

query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY col0, cor0.col1, cor0.col1
----
1722
3540
3782

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT DISTINCT cor0.col0 DIV 54 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
1

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT cor0.col0 / 54 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4202
SELECT ALL - CAST( 36 AS SIGNED ) FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - CAST ( 36 AS INTEGER ) FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
-36
-36
-36

query I rowsort
SELECT - 97 FROM tab0 GROUP BY tab0.col2
----
-97
-97
-97

query I rowsort
SELECT 92 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
92
92
92

query I rowsort
SELECT - 55 AS col2 FROM tab0 cor0 GROUP BY col2, cor0.col0
----
-55
-55
-55

query I rowsort
SELECT ALL + - tab0.col1 FROM tab0 GROUP BY tab0.col1
----
-81
0

query I rowsort
SELECT ALL + - 31 * tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
-2821
-2852
-465

query I rowsort
SELECT DISTINCT - 17 * - 66 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1122

query I rowsort
SELECT - ( - col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1 AS cor0 GROUP BY col0, col2
----
22
28
82

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab0 cor0 GROUP BY col1
----
37

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT - cor0.col0 + 52 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-39
-40
37

query I rowsort
SELECT 42 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
42
42
42

query I rowsort
SELECT + 5 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
5
5
5

query I rowsort
SELECT ALL - cor0.col1 - 11 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
-17
-55
-68

query I rowsort
SELECT ( - cor0.col2 * - cor0.col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT ALL cor0.col1 * 58 FROM tab0 cor0 GROUP BY cor0.col1
----
0
4698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4220
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab2 GROUP BY col1
----
10

query I rowsort
SELECT ALL 71 FROM tab0 cor0 GROUP BY cor0.col0
----
71
71
71

query I rowsort
SELECT + 3 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
3
3
3

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-18

query I rowsort
SELECT - 25 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col1
----
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col1
----
0

query I rowsort
SELECT + - 91 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
-91
-91
-91

query I rowsort
SELECT + - 79 FROM tab2, tab2 AS cor0 GROUP BY tab2.col2
----
-79
-79
-79

query I rowsort
SELECT - 49 + 45 FROM tab0, tab2 AS cor0 GROUP BY tab0.col0
----
-4
-4
-4

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col0, cor0.col0
----
26
43
83

query I rowsort
SELECT cor0.col2 + cor0.col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT 95 * cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
4275
6745
760

query I rowsort
SELECT 35 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
35
35
35

query I rowsort
SELECT - + 7 * cor0.col0 AS col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
-182
-301
-581

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-41
-59
-61

query I rowsort
SELECT DISTINCT + 58 FROM tab2 AS cor0 GROUP BY cor0.col1
----
58

query I rowsort
SELECT ALL - + tab0.col2 AS col1 FROM tab0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT ALL tab1.col1 * - tab1.col1 AS col0 FROM tab1 GROUP BY tab1.col1
----
-1936
-3249
-36

query I rowsort
SELECT DISTINCT - col0 FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT ALL col2 DIV - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL col2 / - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

query I rowsort
SELECT ALL tab0.col0 FROM tab0 GROUP BY col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + ( 23 ) col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
2093
2116
345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab0.col2 ) * - tab0.col2 col0 FROM tab0 GROUP BY col2
----
-1444
-576
-6241

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col0
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT DISTINCT - CAST( + 28 AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
-28

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT - CAST ( + 28 AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
-28

query I rowsort
SELECT - 42 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-42
-42
-42

query I rowsort
SELECT ALL 29 FROM tab0 AS cor0 GROUP BY cor0.col2
----
29
29
29

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT - - 33 AS col2 FROM tab1 GROUP BY tab1.col0
----
33
33
33

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
-41
-59
-61

query I rowsort
SELECT 95 * cor0.col0 AS col1 FROM tab0, tab1 cor0 GROUP BY cor0.col0
----
2090
2660
7790

query I rowsort
SELECT cor0.col2 * - cor0.col2 AS col2 FROM tab2 cor0 GROUP BY col2
----
-3364
-6241
-7569

query I rowsort
SELECT + tab0.col0 FROM tab0 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT DISTINCT + tab1.col2 + - col2 AS col1 FROM tab1 WHERE NOT NULL IN ( - tab1.col0 * + tab1.col0 ) GROUP BY tab1.col2
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
0
81

query I rowsort
SELECT 7 FROM tab1 AS cor0 GROUP BY cor0.col2
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT CAST( + 32 AS SIGNED ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
32
32
32

skipif mysql # not compatible
query I rowsort label-4260
SELECT CAST ( + 32 AS INTEGER ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
32
32
32

query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, col1, cor0.col0
----
44
57
6

query I rowsort
SELECT ALL - cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ( - 40 + cor0.col2 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
18
39
47

query I rowsort
SELECT + 52 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
52
52

query I rowsort
SELECT + - 47 FROM tab1 GROUP BY tab1.col0
----
-47
-47
-47

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL - 1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1
-1
-1

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT - - 23 + - 47 AS col1 FROM tab2 GROUP BY col1
----
-24

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
44
57
6

query I rowsort
SELECT + - cor0.col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col1, col2
----
45
71
8

query I rowsort
SELECT 33 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
33
33
33

query I rowsort
SELECT - 61 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-61
-61

query I rowsort
SELECT 57 FROM tab0 AS cor0 GROUP BY cor0.col2
----
57
57
57

query I rowsort
SELECT - 0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT - cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT DISTINCT + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT ALL - 33 + + tab0.col0 FROM tab0 GROUP BY tab0.col0
----
-7
10
50

query I rowsort
SELECT cor0.col1 * - 56 AS col2 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
-4536
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-58
-79
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT + cor0.col0 * cor0.col0 DIV 93 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
2
89
91

skipif mysql # not compatible
query I rowsort label-4285
SELECT + cor0.col0 * cor0.col0 / 93 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
2
89
91

query I rowsort
SELECT cor0.col0 + col0 * + 91 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1380
8372
8464

query I rowsort
SELECT - cor0.col2 + 25 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
-20
-46
17

query I rowsort
SELECT - 8 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-648
0
0

query I rowsort
SELECT - 92 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT 12 FROM tab1 AS cor0 GROUP BY col1
----
12
12
12

query I rowsort
SELECT DISTINCT + 4 FROM tab2 AS cor0 GROUP BY cor0.col1
----
4

query I rowsort
SELECT DISTINCT + cor0.col0 + + 61 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
152
153
76

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT - - cor0.col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + - cor0.col2 FROM tab0, tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
95
95
95

query I rowsort
SELECT - 9 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 GROUP BY cor0.col2
----
6
6
6

query I rowsort
SELECT DISTINCT + 4 FROM tab0 cor0 GROUP BY cor0.col2
----
4

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0
----
58
79
87

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-15
-91
-92

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL + - cor0.col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT - + 47 AS col0 FROM tab2 GROUP BY tab2.col2
----
-47
-47
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 * + 33 col1 FROM tab0 GROUP BY tab0.col1
----
-2673
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT ALL + 11 * + cor0.col2 + 25 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
113
520
806

query I rowsort
SELECT ALL 68 * + cor0.col1 + - 72 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
2920
336
3804

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
1444
576
6241

query I rowsort
SELECT DISTINCT + 79 FROM tab2 AS cor0 GROUP BY cor0.col1
----
79

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT tab1.col0 * - tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-484
-6724
-784

query I rowsort
SELECT ALL tab0.col0 FROM tab0 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + ( + 77 ) AS col2 FROM tab1 GROUP BY tab1.col1
----
77

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
11

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT + cor0.col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT 3 FROM tab0 AS cor0 GROUP BY cor0.col2
----
3

query I rowsort
SELECT - 8 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col1, col2
----
-81
0

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT 90 + - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
19
45
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4325
SELECT ALL + 52 DIV - cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0, cor0.col0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL + 52 / - cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0, cor0.col0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - 35 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
-35
-35

query I rowsort
SELECT col1 * + cor0.col1 + - cor0.col1 * - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
3872
6498
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT + + 86 FROM tab0, tab0 cor0, tab2 AS cor1 GROUP BY cor1.col2
----
86
86
86

query I rowsort
SELECT ALL 95 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
95
95

query I rowsort
SELECT ALL + 53 FROM tab0 AS cor0 GROUP BY col1
----
53
53

query I rowsort
SELECT + ( + 9 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
9
9
9

query I rowsort
SELECT DISTINCT 46 FROM tab1 AS cor0 GROUP BY col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4336
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4336
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col1
----
NULL
NULL
NULL

query I rowsort
SELECT + 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
35
35
35

query I rowsort
SELECT DISTINCT - cor0.col0 + - 94 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
-116
-122
-176

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
44
57
6

query I rowsort
SELECT ALL - 68 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-68
-68
-68

query I rowsort
SELECT ALL 46 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4342
SELECT ALL + cor0.col2 DIV + CAST( - 16 AS SIGNED ) + col2 DIV - 17 FROM tab2 AS cor0 GROUP BY col2
----
-10
-6
-8

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + cor0.col2 / + CAST ( - 16 AS INTEGER ) + col2 / - 17 FROM tab2 AS cor0 GROUP BY col2
----
-10
-6
-8

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT DISTINCT 32 FROM tab0 AS cor0 GROUP BY cor0.col0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
1849
676
6889

query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 GROUP BY col0, cor0.col0
----
26
43
83

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col1, col0, cor0.col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT cor0.col2 + ( cor0.col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
116
158
174

onlyif mysql # DIV for integer division: 
query I rowsort label-4351
SELECT - cor0.col2 DIV - ( + cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4351
SELECT - cor0.col2 / - ( + cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT DISTINCT cor0.col0 DIV 23 + + cor0.col0 FROM tab2 AS cor0 GROUP BY col0, col0, cor0.col0, cor0.col2
----
15
94
96

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT cor0.col0 / 23 + + cor0.col0 FROM tab2 AS cor0 GROUP BY col0, col0, cor0.col0, cor0.col2
----
15
94
96

query I rowsort
SELECT DISTINCT cor0.col0 * + ( 45 * + cor0.col0 ) FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
21780
302580
35280

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
58
79
87

query I rowsort
SELECT - + tab2.col1 + - tab2.col1 * 88 AS col2 FROM tab2 GROUP BY col1
----
-3649
-5251
-5429

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT 62 * - 23 FROM tab2 GROUP BY tab2.col2
----
-1426
-1426
-1426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 * tab0.col1 col0 FROM tab0 GROUP BY tab0.col1
----
-3807
0

query I rowsort
SELECT ALL - - tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4360
SELECT + CAST( + 64 AS SIGNED ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
64
64
64

skipif mysql # not compatible
query I rowsort label-4360
SELECT + CAST ( + 64 AS INTEGER ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT - 47 + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1
----
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4365
SELECT ALL 7 DIV - 73 + - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL 7 / - 73 + - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
42

query I rowsort
SELECT - cor0.col1 * + cor0.col1 * + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-531441
0

query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
-22
-28
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab1 GROUP BY col0
----
-90
-90
-90

query I rowsort
SELECT ALL + 38 * - 22 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
-836
-836
-836

query I rowsort
SELECT DISTINCT - 96 + cor0.col1 * cor0.col1 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
-60
1840
3153

query I rowsort
SELECT ALL cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
45
71
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4374
SELECT DISTINCT + cor0.col0 DIV col0 FROM tab1 cor0 GROUP BY col0
----
1

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + cor0.col0 / col0 FROM tab1 cor0 GROUP BY col0
----
1

query I rowsort
SELECT ALL - 47 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-47
-47
-47

query I rowsort
SELECT + tab2.col0 AS col1 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT + cor0.col1 - cor0.col1 * + 41 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3240
0

query I rowsort
SELECT ALL - - col2 FROM tab0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2, cor0.col1
----
-45
-71
-8

query I rowsort
SELECT - cor0.col0 + + 10 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
-16
-33
-73

query I rowsort
SELECT ALL col2 + - 64 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-6
15
23

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
81

query I rowsort
SELECT 3 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3
3
3

query I rowsort
SELECT ( - 47 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-47
-47
-47

query I rowsort
SELECT ALL 62 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
62
62
62

query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
26
43
83

query I rowsort
SELECT DISTINCT + 37 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4388
SELECT - cor0.col0 DIV CAST( 77 AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4388
SELECT - cor0.col0 / CAST ( 77 AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor1.col1 col2 FROM tab2, tab2 AS cor0, tab2 cor1 GROUP BY cor1.col1
----
-41
-59
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 + 67 AS col2 FROM tab2, tab2 cor0 GROUP BY cor0.col1
----
158
158
158

query I rowsort
SELECT DISTINCT col1 + + ( cor0.col1 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
118
122
82

query I rowsort
SELECT ALL 83 FROM tab0 AS cor0 GROUP BY col2
----
83
83
83

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
-41
-59
-61

query I rowsort
SELECT ALL 4 FROM tab1 AS cor0 GROUP BY cor0.col2
----
4
4
4

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT + + 39 AS col0 FROM tab2 GROUP BY tab2.col1
----
39
39
39

query I rowsort
SELECT - cor0.col2 FROM tab1, tab0 cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT - - 91 AS col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 GROUP BY col1, col2, cor0.col0
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT cor0.col0 * ( - cor0.col1 ) AS col1 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1, cor0.col0
----
-132
-1596
-3608

query I rowsort
SELECT cor0.col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT - 59 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-59
-59
-59

query I rowsort
SELECT + + cor0.col2 FROM tab1, tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT 81 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
81
81
81

query I rowsort
SELECT ALL 86 FROM tab2 AS cor0 GROUP BY cor0.col2
----
86
86
86

query I rowsort
SELECT DISTINCT 80 - 88 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor1.col0
----
-8

query I rowsort
SELECT + 35 * + col0 AS col2 FROM tab0 GROUP BY col0
----
1505
2905
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT 52 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
52

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
81

query I rowsort
SELECT 74 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col1
----
74
74
74

query I rowsort
SELECT ALL tab0.col2 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT - ( - col1 * cor0.col1 ) AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT 28 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
28
28
28

query I rowsort
SELECT - 51 FROM tab0, tab0 AS cor0, tab1 cor1 GROUP BY cor1.col2
----
-51
-51
-51

query I rowsort
SELECT DISTINCT - + 4 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 + - col1 - 41 col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-78
3

query I rowsort
SELECT - tab0.col0 AS col1 FROM tab0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT ALL 87 FROM tab0 AS cor0 GROUP BY cor0.col2
----
87
87
87

query I rowsort
SELECT cor0.col1 FROM tab0 cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT + 14 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1 GROUP BY cor1.col2
----
14
14
14

query I rowsort
SELECT + + 51 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1 GROUP BY cor1.col1
----
51
51
51

query I rowsort
SELECT 28 FROM tab2 AS cor0 GROUP BY cor0.col1
----
28
28
28

query I rowsort
SELECT ALL - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab1 cor0 GROUP BY col0
----
84

query I rowsort
SELECT ( + cor0.col0 * + cor0.col0 ) FROM tab2 AS cor0 GROUP BY col0
----
225
8281
8464

query I rowsort
SELECT DISTINCT + col2 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT ( cor0.col0 ) * - 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
-1660
-520
-860

query I rowsort
SELECT - + cor0.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT 85 FROM tab0 AS cor0 GROUP BY col2
----
85
85
85

query I rowsort
SELECT 2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
2
2
2

query I rowsort
SELECT 92 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * cor0.col2 col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
2900
3950
4350

query I rowsort
SELECT ALL ( 77 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
77
77
77

query I rowsort
SELECT DISTINCT + + 81 FROM tab0 GROUP BY tab0.col1
----
81

query I rowsort
SELECT cor0.col1 * + 91 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col1
----
4004
5187
546

query I rowsort
SELECT 58 FROM tab0 AS cor0 GROUP BY cor0.col0
----
58
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4442
SELECT ALL - 1 + 37 * + cor0.col0 * + 15 + cor0.col2 DIV cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
12209
15540
45509

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL - 1 + 37 * + cor0.col0 * + 15 + cor0.col2 / cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
12209
15540
45509

query I rowsort
SELECT ALL + col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT ALL 19 FROM tab2 AS cor0 GROUP BY cor0.col0
----
19
19
19

query I rowsort
SELECT DISTINCT 26 + + 0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
45
71
8

query I rowsort
SELECT 59 FROM tab0 AS cor0 GROUP BY cor0.col2
----
59
59
59

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
62

query I rowsort
SELECT - 91 + + 57 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-34
-34
-34

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
-44
-57
-6

query I rowsort
SELECT ALL + 86 * cor0.col2 AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
2064
3268
6794

query I rowsort
SELECT DISTINCT 51 FROM tab1 AS cor0 GROUP BY cor0.col1
----
51

query I rowsort
SELECT ALL 37 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab2 AS cor0 GROUP BY col0
----
35
35
35

query I rowsort
SELECT + + 87 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
87
87
87

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4457
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab1 AS cor0, tab2 cor1 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab1, tab1 AS cor0, tab2 cor1 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT - 79 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-79
-79
-79

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 FROM tab1 cor0 GROUP BY col1, cor0.col0
----
-114
-12
-88

query I rowsort
SELECT DISTINCT 88 FROM tab2 AS cor0 GROUP BY col1
----
88

query I rowsort
SELECT ALL + ( - cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT cor0.col2 * + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT + ( 58 ) FROM tab0, tab2 cor0 GROUP BY cor0.col2
----
58
58
58

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-484
-6724
-784

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY cor0.col2, col1, cor0.col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4468
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT - 29 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY tab1.col1
----
-29
-29
-29

query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT col1 + 37 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
78
96
98

query I rowsort
SELECT col0 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT ALL cor0.col0 + - cor0.col0 + + cor0.col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
24
38
79

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT cor0.col2 DIV cor0.col0 + + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
82

skipif mysql # not compatible
query I rowsort label-4476
SELECT cor0.col2 / cor0.col0 + + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
82

query I rowsort
SELECT ALL cor0.col2 * + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT - 90 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-70
-70
-70

query I rowsort
SELECT - ( 78 ) AS col1 FROM tab1 GROUP BY tab1.col0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT tab0.col2 + + 87 AS col0 FROM tab0 GROUP BY tab0.col2
----
111
125
166

query I rowsort
SELECT - - cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1 GROUP BY cor1.col0
----
22
28
82

query I rowsort
SELECT + 20 - 90 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-70
-70
-70

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT + 81 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
81
81
81

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL cor0.col2 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-26
-43
-83

query I rowsort
SELECT ALL 30 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
30
30
30

query I rowsort
SELECT + 11 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1 GROUP BY cor1.col2
----
11
11
11

query I rowsort
SELECT + tab0.col1 FROM tab0 GROUP BY tab0.col1
----
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT + CAST( - cor0.col1 AS SIGNED ) * - cor0.col1 * - 96 col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-185856
-311904
-3456

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4493
SELECT + CAST ( - cor0.col1 AS INTEGER ) * - cor0.col1 * - 96 col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-185856
-311904
-3456

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4494
SELECT CAST( NULL AS SIGNED ) FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT 40 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col1
----
40
40

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
22
28
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT tab1.col1 + + 68 DIV - tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
-5
43
56

skipif mysql # not compatible
query I rowsort label-4497
SELECT tab1.col1 + + 68 / - tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
-5
43
56

query I rowsort
SELECT ALL - 67 * tab1.col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
-3015
-4757
-536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT DISTINCT + 41 DIV cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + 41 / cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT - cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT 62 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
62
62
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4503
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + cor0.col2 AS col0 FROM tab1, tab2 cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT + CAST ( NULL AS REAL ) + cor0.col2 AS col0 FROM tab1, tab2 cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT - cor0.col1 FROM tab2 cor0 GROUP BY col2, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT + 58 * + col2 * + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col2
----
195112
361978
439002

query I rowsort
SELECT - 33 FROM tab1 cor0 GROUP BY cor0.col0
----
-33
-33
-33

query I rowsort
SELECT 31 * col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1271
1829
1891

query I rowsort
SELECT ALL cor0.col2 FROM tab1 AS cor0 GROUP BY col0, cor0.col2
----
45
71
8

query I rowsort
SELECT - cor0.col0 * 4 + + cor0.col0 * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
396
6396
672

query I rowsort
SELECT ALL 64 FROM tab0 AS cor0 GROUP BY cor0.col1
----
64
64

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col0 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
80

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT + - 88 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-88
-88
-88

query I rowsort
SELECT + col2 * - cor0.col2 + 41 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1403
-535
-6200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT - 71 FROM tab2 cor0 GROUP BY cor0.col2, col0
----
-71

query I rowsort
SELECT ALL 68 * - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1768
-2924
-5644

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col1
----
-1892
-6972
-702

query I rowsort
SELECT - cor0.col2 FROM tab2 cor0 GROUP BY col2, cor0.col1
----
-58
-79
-87

query I rowsort
SELECT - 7 FROM tab0 GROUP BY tab0.col2
----
-7
-7
-7

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4524
SELECT DISTINCT - cor0.col0 * ( cor0.col0 ) DIV cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-15
-91
-92

skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT - cor0.col0 * ( cor0.col0 ) / cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-15
-91
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col1 FROM tab1 cor0 GROUP BY cor0.col0
----
-48

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col1 FROM tab1 GROUP BY tab1.col1
----
-10
-10
-10

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

query I rowsort
SELECT ALL 99 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
99
99
99

query I rowsort
SELECT 31 FROM tab1 AS cor0 GROUP BY cor0.col1
----
31
31
31

query I rowsort
SELECT DISTINCT - 38 FROM tab2 cor0 GROUP BY cor0.col1
----
-38

query I rowsort
SELECT ALL + 1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
1
1

query I rowsort
SELECT 91 FROM tab2 AS cor0 GROUP BY cor0.col1
----
91
91
91

query I rowsort
SELECT + cor0.col1 * ( - col1 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * tab0.col2 col2 FROM tab0 GROUP BY tab0.col2
----
-1444
-576
-6241

query I rowsort
SELECT cor0.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY cor0.col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab0 AS cor0 GROUP BY col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - 50 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2250
-3550
-400

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT ALL cor0.col0 DIV cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL cor0.col0 / cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4542
SELECT CAST( - 27 AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-27
-27

skipif mysql # not compatible
query I rowsort label-4542
SELECT CAST ( - 27 AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-27
-27

query I rowsort
SELECT - tab0.col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0 HAVING NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + - 5 + - cor0.col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-5
-86

query I rowsort
SELECT cor0.col2 * 46 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
2070
3266
368

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT ALL 82 FROM tab1 GROUP BY tab1.col2
----
82
82
82

query I rowsort
SELECT ALL - 66 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4550
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 43 FROM tab0 AS cor0 GROUP BY cor0.col0
----
43
43
43

query I rowsort
SELECT DISTINCT + 91 FROM tab2 AS cor0 GROUP BY col0, cor0.col0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab0 cor0 CROSS JOIN tab0 cor1 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT cor0.col2 + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
142
16
90

query I rowsort
SELECT - cor0.col0 * 69 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1794
-2967
-5727

query I rowsort
SELECT cor0.col2 * + cor0.col2 * - ( - cor0.col2 ) + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
13848
493118
54910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + - cor0.col1 col2 FROM tab1 cor0 GROUP BY col1, cor0.col2, cor0.col2
----
11
24
62

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-24
-38
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4561
SELECT ALL + 94 DIV - 9 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 GROUP BY cor0.col0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + 94 / - 9 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1 GROUP BY cor0.col0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT ( - ( cor0.col1 ) ) * 94 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-3854
-5546
-5734

query I rowsort
SELECT DISTINCT 58 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
58

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab0 cor0 GROUP BY col2
----
6

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-58
-79
-87

query I rowsort
SELECT tab2.col1 FROM tab2 GROUP BY col1
----
41
59
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4568
SELECT ALL 91 DIV - 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL 91 / - 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
-1
-1
-1

query I rowsort
SELECT + - 60 FROM tab0, tab2 AS cor0, tab2 AS cor1 GROUP BY tab0.col2
----
-60
-60
-60

query I rowsort
SELECT ALL 92 * cor0.col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
3772
5428
5612

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4571
SELECT DISTINCT - CAST( NULL AS SIGNED ) + cor0.col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT + cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query III rowsort
SELECT * FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT cor0.col0 * - ( 18 ) + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, col1, cor0.col1
----
-1411
-442
-731

query I rowsort
SELECT - 98 * 81 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
-7938
-7938
-7938

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
76

query I rowsort
SELECT ALL - ( - 59 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
59
59
59

query I rowsort
SELECT DISTINCT - 90 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab2 cor0 GROUP BY col2, cor0.col0
----
15
91
92

query I rowsort
SELECT + 18 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
18
18

query I rowsort
SELECT DISTINCT - 37 FROM tab0 GROUP BY col0
----
-37

query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT + cor0.col0 - - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT ALL - 65 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
-65
-65
-65

query I rowsort
SELECT DISTINCT 97 * 48 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0
----
4656

query I rowsort
SELECT 38 FROM tab0 cor0 GROUP BY cor0.col1
----
38
38

query I rowsort
SELECT ALL + 94 FROM tab0 AS cor0 GROUP BY cor0.col1
----
94
94

query I rowsort
SELECT + 92 + - 14 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col2 FROM tab2 cor0 GROUP BY cor0.col0, col1
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - cor0.col1 col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
-38
26
83

query I rowsort
SELECT 13 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
13
13
13

query I rowsort
SELECT 15 FROM tab1 AS cor0 GROUP BY cor0.col1
----
15
15
15

query I rowsort
SELECT col2 + + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
142
16
90

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 AS cor0 GROUP BY col1, cor0.col2, cor0.col1
----
58
79
87

query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
0
3483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT + cor0.col0 FROM tab1 cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT ALL + tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2
----
24
38
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4604
SELECT ALL - CAST( - tab1.col0 AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0 GROUP BY tab1.col0
----
22
28
82

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - CAST ( - tab1.col0 AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0 GROUP BY tab1.col0
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col2 FROM tab0 cor0 GROUP BY cor0.col0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
22
28
82

query I rowsort
SELECT DISTINCT cor0.col0 - cor0.col0 AS col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT - col0 AS col1 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT cor1.col1 FROM tab2, tab1 cor0, tab0 AS cor1 GROUP BY cor1.col1
----
0
81

query I rowsort
SELECT ALL + ( 93 ) FROM tab2, tab0 AS cor0 GROUP BY tab2.col1
----
93
93
93

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 GROUP BY cor0.col0, col2, cor0.col1
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT 14 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
14
14
14

query I rowsort
SELECT 48 + + cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
105
54
92

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 41 col0 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
41
41
41

query I rowsort
SELECT - tab0.col2 + - 2 AS col1 FROM tab0 GROUP BY col2
----
-26
-40
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab1 AS cor0 GROUP BY col2
----
-45
-71
-8

query I rowsort
SELECT + 61 FROM tab2 cor0 GROUP BY cor0.col2
----
61
61
61

query I rowsort
SELECT ALL + cor0.col1 * + 4 + - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
123
177
183

query I rowsort
SELECT ALL - col1 + ( - cor0.col1 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-114
-12
-88

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT + 56 DIV + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4623
SELECT + 56 / + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4624
SELECT ALL cor0.col2 * 3 DIV cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL cor0.col2 * 3 / cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4625
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4625
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( cor0.col1 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT - 66 * + 56 FROM tab2 AS cor0 GROUP BY col2
----
-3696
-3696
-3696

query I rowsort
SELECT ALL + ( col0 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4629
SELECT - cor0.col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4629
SELECT - cor0.col0 / cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1
-1
-1

query I rowsort
SELECT ALL + 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor0.col2
----
72
72
72

query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
33
33

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL - - 48 AS col2 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
48
48
48

query I rowsort
SELECT col2 + + 81 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
4756
6478
7134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT 90 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
90
90
90

query I rowsort
SELECT DISTINCT 73 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
73

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
22
28
82

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT - col0 - + tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
-164
-44
-56

query I rowsort
SELECT DISTINCT - 93 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-93

query I rowsort
SELECT DISTINCT + 32 + + ( cor0.col1 ) * cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1 GROUP BY cor0.col1
----
1713
3513
3753

query I rowsort
SELECT 64 FROM tab2 GROUP BY tab2.col0
----
64
64
64

query I rowsort
SELECT 45 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
45
45
45

query I rowsort
SELECT DISTINCT - 81 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81

query I rowsort
SELECT + 69 FROM tab1 GROUP BY tab1.col1
----
69
69
69

query I rowsort
SELECT DISTINCT 83 + - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
1
55
61

query I rowsort
SELECT - 82 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, col0
----
-82
-82
-82

query I rowsort
SELECT + + cor0.col1 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4651
SELECT 42 DIV - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4651
SELECT 42 / - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-2
0
0

query I rowsort
SELECT 25 * + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1975
600
950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4653
SELECT ALL + + CAST( NULL AS SIGNED ) + 99 AS col0 FROM tab2, tab0 AS cor0 GROUP BY tab2.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + + CAST ( NULL AS INTEGER ) + 99 AS col0 FROM tab2, tab0 AS cor0 GROUP BY tab2.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * - 30 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
-1740
-2370
-2610

query I rowsort
SELECT cor0.col0 * + ( + 86 ) * cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col2
----
108360
15136
500692

query I rowsort
SELECT + 36 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
36
36
36

query I rowsort
SELECT + cor0.col2 - cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, col1
----
0
0
0

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab2 cor0 GROUP BY col2
----
2

query I rowsort
SELECT - 63 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-63
-63
-63

query I rowsort
SELECT - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT + cor0.col2 * - cor0.col2 AS col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
-1444
-576
-6241

query I rowsort
SELECT - 15 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-15
-15
-15

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2
----
45
71
8

query I rowsort
SELECT cor0.col2 + - 6 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
2
39
65

query I rowsort
SELECT - cor0.col1 * + 80 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-3280
-4720
-4880

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT ALL 76 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
76
76
76

query I rowsort
SELECT 17 - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-24
-42
-44

query I rowsort
SELECT - 72 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
-72
-72

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 cor0 GROUP BY col1, cor0.col2
----
41
59
61

query I rowsort
SELECT - 27 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
-27
-27
-27

query I rowsort
SELECT ALL + cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT + cor0.col2 + col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
142
16
90

query I rowsort
SELECT + ( cor0.col2 ) FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT cor0.col2 + cor0.col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col2
----
158
48
76

query I rowsort
SELECT DISTINCT cor0.col0 + - 41 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-15
2
42

query I rowsort
SELECT + 44 * - col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1804
-2596
-2684

query I rowsort
SELECT ALL + + 96 * 56 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
5376
5376
5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col2 FROM tab2, tab2 AS cor0 GROUP BY tab2.col2
----
-9
-9
-9

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4685
SELECT + cor0.col2 DIV - col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4685
SELECT + cor0.col2 / - col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-78

query I rowsort
SELECT + 28 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col1 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
32
32
32

query I rowsort
SELECT DISTINCT + 23 * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1817
552
874

query III rowsort
SELECT ALL * FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT ALL 43 FROM tab0 AS cor0 GROUP BY cor0.col2
----
43
43
43

query I rowsort
SELECT + col0 * + 52 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
4732
4784
780

query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT DISTINCT - 42 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-42

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT 60 + - col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
-21
60
60

query I rowsort
SELECT DISTINCT - 21 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-21

query I rowsort
SELECT + cor0.col2 * + 22 + - 64 * cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1008
-1596
-3318

query I rowsort
SELECT 94 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
94
94
94

query I rowsort
SELECT ALL 15 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
15
15
15

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT cor0.col0 * col0 AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT ALL - 44 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-44
-44
-44

query I rowsort
SELECT - 84 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-84
-84
-84

query I rowsort
SELECT - 85 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-85
-85
-85

query I rowsort
SELECT - 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
-20
-20
-20

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab0 AS cor0 GROUP BY col2
----
-37

query I rowsort
SELECT + 23 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1012
1311
138

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT + 23 FROM tab2, tab0 AS cor0 GROUP BY tab2.col0
----
23

query I rowsort
SELECT ALL + 84 * 91 FROM tab0 AS cor0 GROUP BY cor0.col1
----
7644
7644

onlyif mysql # DIV for integer division: 
query I rowsort label-4712
SELECT - + 69 DIV + col1 FROM tab1 GROUP BY tab1.col1
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-4712
SELECT - + 69 / + col1 FROM tab1 GROUP BY tab1.col1
----
-1
-1
-11

query I rowsort
SELECT - - tab0.col1 + - 74 AS col1 FROM tab0 GROUP BY tab0.col1
----
-74
7

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT cor0.col1 * 20 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
0
1620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + cor0.col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1681
3481
3721

query I rowsort
SELECT ALL + 68 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
68
68
68

query I rowsort
SELECT ALL tab1.col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT - 2 AS col1 FROM tab2 GROUP BY col2
----
-2
-2
-2

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
70

query I rowsort
SELECT ALL - 33 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col2 FROM tab0 cor0 GROUP BY cor0.col2
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
22
22
22

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 + ( cor0.col0 + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
255
8463
8648

query I rowsort
SELECT ALL 75 * + cor0.col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
3375
5325
600

query I rowsort
SELECT DISTINCT 14 FROM tab0 AS cor0 GROUP BY cor0.col2
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-4
-4
-4

query I rowsort
SELECT + 28 FROM tab2, tab0 AS cor0 GROUP BY tab2.col1
----
28
28
28

query I rowsort
SELECT cor0.col0 + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
166
52
86

query I rowsort
SELECT DISTINCT - cor0.col2 - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-142
-16
-90

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL 47 FROM tab2 AS cor0 GROUP BY col1
----
47
47
47

query I rowsort
SELECT ALL - tab2.col2 * - 12 FROM tab2 GROUP BY tab2.col2
----
1044
696
948

query I rowsort
SELECT - cor0.col0 + - 45 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-136
-137
-60

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
22
28
82

query I rowsort
SELECT DISTINCT - - 21 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1 GROUP BY tab1.col2
----
21

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-15
-91
-92

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT ALL + 84 FROM tab1, tab2 AS cor0, tab1 cor1 GROUP BY cor1.col2
----
84
84
84

query I rowsort
SELECT 62 * + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3596
4898
5394

query I rowsort
SELECT - cor0.col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT 53 DIV + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT 53 / + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT 24 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
58
79
87

query I rowsort
SELECT 70 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
70
70
70

query I rowsort
SELECT DISTINCT 33 FROM tab2 GROUP BY tab2.col2
----
33

query I rowsort
SELECT tab0.col1 FROM tab0 GROUP BY col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col2 ) col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL 26 * col0 * col0 + - cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
16900
172225
46225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
65
65
65

query I rowsort
SELECT 26 FROM tab0 AS cor0 GROUP BY col1
----
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * cor0.col2 - + cor0.col2 col0 FROM tab0 AS cor0 GROUP BY col2
----
-1536
-2432
-5056

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4757
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col1, cor1.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col1, cor1.col0
----
NULL

query I rowsort
SELECT DISTINCT + 15 FROM tab0 AS cor0 GROUP BY cor0.col1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT ALL - + 65 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
-65
-65
-65

query I rowsort
SELECT 90 FROM tab0 AS cor0 GROUP BY cor0.col0
----
90
90
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4762
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT 35 AS col2 FROM tab2 GROUP BY tab2.col1
----
35
35
35

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
22
28
82

query I rowsort
SELECT + 89 + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
130
148
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 * 81 col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
5670
5670
5670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
-81

query I rowsort
SELECT ALL cor0.col0 + + cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
124
26
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
26
43
83

query I rowsort
SELECT 60 + - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-31
-32
45

query I rowsort
SELECT 93 FROM tab2, tab0 AS cor0, tab2 AS cor1 GROUP BY cor0.col0
----
93
93
93

query I rowsort
SELECT 72 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
72
72
72

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) col2 FROM tab0 GROUP BY tab0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4775
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 GROUP BY tab0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab2 GROUP BY col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col1 FROM tab0 GROUP BY col0
----
-26
-43
-83

query I rowsort
SELECT ALL 52 * 51 AS col2 FROM tab1 GROUP BY tab1.col1
----
2652
2652
2652

query I rowsort
SELECT ALL - 70 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
82
82
82

query I rowsort
SELECT + cor0.col1 * cor0.col1 + 64 + - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, col2
----
64
64
6544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-4
-4
-4

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-41
-59
-61

query I rowsort
SELECT 64 FROM tab2 AS cor0 GROUP BY cor0.col1
----
64
64
64

query I rowsort
SELECT - ( 49 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-49
-49
-49

query I rowsort
SELECT DISTINCT tab1.col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT cor0.col0 * col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
1849
676
6889

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 * + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col2
----
35280
3872
477404

query I rowsort
SELECT 20 FROM tab2, tab1 AS cor0 GROUP BY tab2.col1
----
20
20
20

query I rowsort
SELECT DISTINCT - 27 + cor0.col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-27
54

query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col0 FROM tab1 AS cor0 GROUP BY col0
----
164
44
56

query I rowsort
SELECT + 41 - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-50
-51
26

query I rowsort
SELECT col1 + - 52 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-11
7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col2 * 36 ) col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1620
2556
288

query I rowsort
SELECT 83 FROM tab2 AS cor0 GROUP BY cor0.col2
----
83
83
83

query I rowsort
SELECT - 37 * cor0.col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-1406
-2923
-888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 64 col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
-64

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-27

query I rowsort
SELECT DISTINCT - 10 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-10

query I rowsort
SELECT + 88 FROM tab2 cor0 GROUP BY cor0.col0
----
88
88
88

query I rowsort
SELECT 88 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
88
88
88

query I rowsort
SELECT cor0.col0 * - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-225
-8281
-8464

query I rowsort
SELECT ALL + + 65 FROM tab1 GROUP BY col2
----
65
65
65

query I rowsort
SELECT ALL 7 * - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-287
-413
-427

query I rowsort
SELECT DISTINCT - 32 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-32

query I rowsort
SELECT 52 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
52
52
52

query I rowsort
SELECT 52 * 80 FROM tab2, tab1 cor0 GROUP BY cor0.col1
----
4160
4160
4160

onlyif mysql # DIV for integer division: 
query I rowsort label-4809
SELECT DISTINCT cor0.col1 DIV cor0.col1 col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4809
SELECT DISTINCT cor0.col1 / cor0.col1 col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
1

query I rowsort
SELECT ALL cor0.col0 - cor0.col0 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col1 * - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-154
-1624
-3690

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
22
28
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT cor1.col2 DIV + 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT cor1.col2 / + 88 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 * - 30 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
1290
2490
780

onlyif mysql # DIV for integer division: 
query I rowsort label-4815
SELECT DISTINCT + cor0.col2 DIV + cor0.col0 col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4815
SELECT DISTINCT + cor0.col2 / + cor0.col0 col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
0
5

query I rowsort
SELECT ALL - + ( 57 ) FROM tab0, tab1 cor0 GROUP BY tab0.col2
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + 70 FROM tab1 AS cor0 GROUP BY cor0.col0
----
70

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT ALL 52 FROM tab2 AS cor0 GROUP BY cor0.col2
----
52
52
52

query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
63

query I rowsort
SELECT DISTINCT + 70 FROM tab0 cor0 GROUP BY cor0.col2
----
70

query I rowsort
SELECT + 17 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
17
17
17

query I rowsort
SELECT + col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
44
57
6

query I rowsort
SELECT ALL - tab1.col2 * tab1.col2 FROM tab1 GROUP BY tab1.col2
----
-2025
-5041
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4825
SELECT DISTINCT + 27 DIV + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
1

skipif mysql # not compatible
query I rowsort label-4825
SELECT DISTINCT + 27 / + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
1

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab2 cor0 GROUP BY col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4827
SELECT col0 * + CAST( + 62 AS SIGNED ) FROM tab1 GROUP BY tab1.col0
----
1364
1736
5084

skipif mysql # not compatible
query I rowsort label-4827
SELECT col0 * + CAST ( + 62 AS INTEGER ) FROM tab1 GROUP BY tab1.col0
----
1364
1736
5084

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT ALL - 11 DIV col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL - 11 / col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT ALL - - 75 FROM tab0, tab2 AS cor0 GROUP BY tab0.col2
----
75
75
75

query I rowsort
SELECT cor0.col2 + 26 FROM tab0 AS cor0 GROUP BY cor0.col2
----
105
50
64

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col1
----
41
59
61

query I rowsort
SELECT - 40 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-40
-40
-40

query I rowsort
SELECT ( + cor0.col2 ) * ( cor0.col2 + cor0.col2 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
10082
128
4050

query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 * 31 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
1376
2656
832

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
75

query I rowsort
SELECT ALL 15 FROM tab2 AS cor0 GROUP BY cor0.col1
----
15
15
15

query I rowsort
SELECT ALL + tab1.col0 AS col0 FROM tab1 GROUP BY col0
----
22
28
82

query I rowsort
SELECT ALL 22 FROM tab1 AS cor0 GROUP BY cor0.col1
----
22
22
22

query I rowsort
SELECT ALL + 88 AS col0 FROM tab0 GROUP BY tab0.col0
----
88
88
88

query I rowsort
SELECT + cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT tab1.col2 AS col0 FROM tab1 GROUP BY col2
----
45
71
8

query I rowsort
SELECT ALL 91 * cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
5278
7189
7917

query I rowsort
SELECT - cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
44
57
6

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
16

query I rowsort
SELECT ALL - tab0.col2 AS col2 FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT ALL - 26 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-26
-26
-26

query I rowsort
SELECT 59 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
59
59
59

query I rowsort
SELECT ALL + 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
68
68
68

query I rowsort
SELECT ALL + ( 40 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col2
----
40
40
40

query I rowsort
SELECT + 34 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
34
34
34

query I rowsort
SELECT - 62 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-62
-62
-62

query I rowsort
SELECT + cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT - 44 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY cor0.col2
----
24

query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
38

query I rowsort
SELECT DISTINCT 62 FROM tab1 AS cor0 GROUP BY cor0.col1
----
62

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT ALL + 67 + 34 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col1
----
101
101
101

query I rowsort
SELECT ALL - 24 - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-106
-46
-52

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT cor0.col1 * + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 12 FROM tab1 AS cor0 GROUP BY col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT + 91 * + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT + 91 * + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + cor0.col1 col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
127
46

query I rowsort
SELECT - 3 FROM tab2 GROUP BY col1
----
-3
-3
-3

query I rowsort
SELECT - 71 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-71
-71

query I rowsort
SELECT 68 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
68
68
68

query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
48

query I rowsort
SELECT ALL 44 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
44
44
44

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL 14 - col0 FROM tab1 AS cor0 GROUP BY col0
----
-14
-68
-8

query I rowsort
SELECT DISTINCT col1 * cor0.col2 + cor0.col2 * + 90 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1
----
3420
4104
7110

query I rowsort
SELECT - 21 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-21
-21
-21

query I rowsort
SELECT ALL 23 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
23
23
23

query I rowsort
SELECT DISTINCT + + 23 AS col0 FROM tab2 GROUP BY tab2.col2
----
23

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT cor0.col1 + + 31 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
72
90
92

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT + cor0.col0 + - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-29
16
38

query I rowsort
SELECT DISTINCT + 18 * + 60 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1080

query I rowsort
SELECT DISTINCT 71 FROM tab0 AS cor0 GROUP BY col0
----
71

query I rowsort
SELECT DISTINCT - 49 + cor0.col1 * cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
-49
6512

query I rowsort
SELECT + - 35 AS col2 FROM tab1 GROUP BY tab1.col2
----
-35
-35
-35

query I rowsort
SELECT DISTINCT 73 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT DISTINCT + 88 DIV 29 AS col2 FROM tab0 GROUP BY tab0.col2
----
3

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT + 88 / 29 AS col2 FROM tab0 GROUP BY tab0.col2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT + 98 FROM tab0 AS cor0 GROUP BY cor0.col1
----
98
98

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
82

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 AS col1 FROM tab0 cor0 GROUP BY col2
----
0

query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2 HAVING ( NULL ) > NULL
----

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 GROUP BY cor0.col2
----
24
38
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4905
SELECT - CAST( NULL AS DECIMAL ) col2 FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4905
SELECT - CAST ( NULL AS REAL ) col2 FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT 98 FROM tab1 cor0 GROUP BY cor0.col1
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-88

query I rowsort
SELECT ALL 86 FROM tab1 AS cor0 GROUP BY cor0.col1
----
86
86
86

query I rowsort
SELECT + cor0.col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL col0 + cor0.col0 * - col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-462
-6642
-756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT CAST( - col0 + cor0.col0 AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT CAST ( - col0 + cor0.col0 AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT cor0.col0 * cor0.col0 - cor0.col2 AS col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
476
6653
739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col2 FROM tab0, tab0 AS cor0 GROUP BY tab0.col1
----
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + col0 * ( col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
3483

query I rowsort
SELECT 32 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
32
32
32

query I rowsort
SELECT 54 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
54
54
54

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1 cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * - cor0.col0 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT 69 FROM tab0 AS cor0 GROUP BY cor0.col1
----
69
69

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT DISTINCT ( cor0.col0 ) FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT ALL - cor0.col2 - - cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
3306
6162
7482

query I rowsort
SELECT 2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
2
2
2

query I rowsort
SELECT ALL + 18 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4928
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 GROUP BY tab0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY tab0.col1
----
NULL
NULL

query I rowsort
SELECT 23 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT 17 FROM tab0 AS cor0 GROUP BY col0, cor0.col0
----
17
17
17

query I rowsort
SELECT + ( - 28 ) AS col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
-28
-28
-28

query I rowsort
SELECT 2 * col0 * + cor0.col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col1, cor0.col0
----
0
0
6966

query I rowsort
SELECT 51 FROM tab1 AS cor0 GROUP BY cor0.col0
----
51
51
51

query I rowsort
SELECT 43 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
43
43
43

query I rowsort
SELECT cor0.col1 + ( 62 ) * + col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
2847
4446
502

query I rowsort
SELECT cor0.col0 * cor0.col2 AS col0 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0
----
1260
176
5822

query I rowsort
SELECT ALL + 33 * 63 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
2079
2079
2079

query I rowsort
SELECT - 57 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-57
-57

query I rowsort
SELECT ALL - 93 + cor1.col2 FROM tab2, tab2 AS cor0, tab1 cor1 GROUP BY cor1.col2
----
-22
-48
-85

query I rowsort
SELECT DISTINCT + - 44 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + cor0.col0 ) col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 72 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col0
----
72
72
72

query I rowsort
SELECT cor0.col1 * 87 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
0
7047

query I rowsort
SELECT + 96 * ( - cor0.col0 * - 30 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
123840
239040
74880

query I rowsort
SELECT ALL - 80 FROM tab0 AS cor0 GROUP BY col1, cor0.col1
----
-80
-80

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 cor0 GROUP BY col0, cor0.col2
----
15
91
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT + tab2.col2 * - col2 AS col0 FROM tab2 GROUP BY col2
----
-3364
-6241
-7569

query I rowsort
SELECT DISTINCT - ( 15 ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 GROUP BY cor1.col1
----
-15

query I rowsort
SELECT - 90 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-90
-90
-90

query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
50

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
59

query I rowsort
SELECT - col2 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1944
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT cor0.col2 - 86 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-15
-41
-78

query I rowsort
SELECT - cor0.col1 + + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
0

query I rowsort
SELECT ALL - ( 20 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT cor0.col1 - cor0.col1 * 66 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-2665
-3835
-3965

query I rowsort
SELECT col0 + + tab0.col0 FROM tab0 GROUP BY col0
----
166
52
86

query I rowsort
SELECT DISTINCT 72 FROM tab2 AS cor0 GROUP BY cor0.col2
----
72

query I rowsort
SELECT ALL 80 FROM tab0 AS cor0 GROUP BY cor0.col0
----
80
80
80

query I rowsort
SELECT + 13 * - cor0.col0 - cor0.col0 AS col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
-1148
-308
-392

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ( cor0.col2 ) FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT - tab2.col0 FROM tab2 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT - cor0.col0 - ( + cor0.col0 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-166
-52
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
60
60
60

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
54

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col2
----
13

query I rowsort
SELECT ALL 68 FROM tab2 AS cor0 GROUP BY cor0.col2
----
68
68
68

query I rowsort
SELECT - + 55 FROM tab1 GROUP BY tab1.col1
----
-55
-55
-55

query I rowsort
SELECT ALL + 12 FROM tab2 cor0 GROUP BY cor0.col2
----
12
12
12

query I rowsort
SELECT cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT cor0.col1 * - cor0.col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT cor0.col1 * cor0.col1 * + ( + 27 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
52272
87723
972

query I rowsort
SELECT DISTINCT - 48 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
3888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
10
10

query I rowsort
SELECT DISTINCT + 61 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 * - cor0.col2 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-3375
-5325
-600

query I rowsort
SELECT ALL + 59 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
59
59
59

query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 GROUP BY col0, cor0.col0, cor0.col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT CAST( NULL AS SIGNED ) * - cor0.col1 col2 FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4984
SELECT CAST ( NULL AS INTEGER ) * - cor0.col1 col2 FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT col2 + tab1.col2 AS col0 FROM tab1 GROUP BY col2
----
142
16
90

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
15
91
92

query I rowsort
SELECT ALL ( + cor0.col0 * + cor0.col2 ) AS col1 FROM tab2 cor0 GROUP BY col2, cor0.col0
----
1305
5336
7189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
-22
-28
-82

query I rowsort
SELECT + 50 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
50
50
50

query I rowsort
SELECT ( + cor0.col0 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT - cor0.col2 * + 20 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1420
-160
-900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4994
SELECT + cor0.col1 + + cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT + cor0.col1 + + cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT - 91 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-91
-91
-91

query I rowsort
SELECT ALL + 39 AS col1 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0
----
39
39
39

query I rowsort
SELECT + 48 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
48
48
48

query I rowsort
SELECT 27 FROM tab1 cor0 GROUP BY cor0.col1
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col2 FROM tab0 GROUP BY col0
----
69
69
69

query I rowsort
SELECT DISTINCT - 16 * cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1328
-416
-688

query I rowsort
SELECT ALL + 68 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
68
68
68

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-12
2
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5003
SELECT ALL + cor0.col2 * CAST( - 76 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-1824
-2888
-6004

skipif mysql # not compatible
query I rowsort label-5003
SELECT ALL + cor0.col2 * CAST ( - 76 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-1824
-2888
-6004

onlyif mysql # DIV for integer division: 
query I rowsort label-5004
SELECT DISTINCT + ( cor0.col1 ) DIV ( 19 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
2
3

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT + ( cor0.col1 ) / ( 19 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
2
3

query I rowsort
SELECT col1 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - 2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-2

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT + cor0.col1 * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
2565
3124
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT 31 FROM tab2 AS cor0 GROUP BY cor0.col0
----
31
31
31

query I rowsort
SELECT 15 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
15
15
15

query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT DISTINCT 93 DIV - cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 GROUP BY cor1.col1
----
-1
-15
-2

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT 93 / - cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 GROUP BY cor1.col1
----
-1
-15
-2

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
15
91
92

query I rowsort
SELECT cor0.col2 + 86 FROM tab2 AS cor0 GROUP BY cor0.col2
----
144
165
173

query I rowsort
SELECT + - tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col0, cor0.col1
----
22
28
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5018
SELECT ALL + tab2.col2 DIV tab2.col2 FROM tab2 GROUP BY col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + tab2.col2 / tab2.col2 FROM tab2 GROUP BY col2
----
1
1
1

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
22
28
82

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, col1
----
-45
-71
-8

query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
70

query I rowsort
SELECT - cor0.col2 + - 79 AS col1 FROM tab1 AS cor0 GROUP BY col2
----
-124
-150
-87

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col0
----
22
28
82

query I rowsort
SELECT ALL + cor0.col1 FROM tab1 AS cor0 GROUP BY col2, cor0.col1
----
44
57
6

query I rowsort
SELECT ALL - cor0.col1 * + 25 * 3 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6075
0

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL 7 AS col2 FROM tab0, tab1 AS cor0 GROUP BY tab0.col0
----
7
7
7

query I rowsort
SELECT + 68 + col1 + ( + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
144
201
218

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
55
55
55

query I rowsort
SELECT ALL 99 FROM tab0 cor0 GROUP BY cor0.col1
----
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1936
-3249
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT DISTINCT + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT - 47 FROM tab2 GROUP BY tab2.col0
----
-47
-47
-47

query I rowsort
SELECT + 51 AS col0 FROM tab0 GROUP BY tab0.col0
----
51
51
51

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
2

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
49

query I rowsort
SELECT - col0 * - cor0.col0 * 3 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
1452
20172
2352

query I rowsort
SELECT 6 + + cor0.col2 * + cor0.col2 + 35 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1485
617
6282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query III rowsort
SELECT * FROM tab1 AS cor0 GROUP BY cor0.col0, col2, cor0.col1
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT DISTINCT + 30 + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
113
56
73

query I rowsort
SELECT ALL - ( tab2.col2 ) AS col2 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col2 * - cor0.col2 FROM tab2 cor0 GROUP BY col2
----
-3364
-6241
-7569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT 57 FROM tab0 AS cor0 GROUP BY col0, cor0.col0
----
57

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
26
43
83

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL + 48 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3888
0

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
24
38
79

query I rowsort
SELECT col1 + + 18 FROM tab1 AS cor0 GROUP BY cor0.col1
----
24
62
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT 87 FROM tab2 GROUP BY col2
----
87
87
87

query I rowsort
SELECT 41 FROM tab0 AS cor0 GROUP BY cor0.col1
----
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col0 FROM tab0 AS cor0 GROUP BY col2
----
47
47
47

query I rowsort
SELECT ALL - 32 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-32
-32
-32

query I rowsort
SELECT - ( 59 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col2 FROM tab2, tab1 AS cor0 GROUP BY tab2.col2
----
33
33
33

query I rowsort
SELECT DISTINCT 38 FROM tab2 AS cor0 GROUP BY cor0.col0
----
38

query I rowsort
SELECT ( + ( cor0.col0 ) ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * ( + cor0.col2 + + cor0.col0 ) col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-13800
-1530
-15470

query I rowsort
SELECT - 69 FROM tab0 cor0 GROUP BY col1, cor0.col0
----
-69
-69
-69

query I rowsort
SELECT - 8 FROM tab2 AS cor0 GROUP BY col2
----
-8
-8
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT ALL + cor0.col2 DIV 81 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + cor0.col2 / 81 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
0
0
1

query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1936
3249
36

query I rowsort
SELECT + cor0.col0 * ( - 69 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1035
-6279
-6348

query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
45
45
45

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
45
71
8

query I rowsort
SELECT DISTINCT + cor0.col1 + 7 * cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, col1
----
352
456
48

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL + + 91 AS col2 FROM tab0 GROUP BY col0
----
91
91
91

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT - 74 + ( cor0.col2 ) * - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY col2
----
-3438
-6315
-7643

query I rowsort
SELECT + 40 FROM tab2 AS cor0 GROUP BY cor0.col0
----
40
40
40

query I rowsort
SELECT DISTINCT - 25 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-25

query I rowsort
SELECT - 40 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-40
-40
-40

query I rowsort
SELECT ALL cor0.col1 + - col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
-1640
-3422
-3660

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT DISTINCT ( - cor0.col2 + + cor0.col0 ) DIV - 34 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT ( - cor0.col2 + + cor0.col0 ) / - 34 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1
0
1

query I rowsort
SELECT 83 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
83
83
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5084
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 GROUP BY col2, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY col2, cor0.col1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT + 55 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
55
55
55

query I rowsort
SELECT + 54 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
54
54
54

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL + 94 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
94
94
94

query I rowsort
SELECT + col0 * - 31 FROM tab2 cor0 GROUP BY cor0.col0
----
-2821
-2852
-465

query I rowsort
SELECT - 22 * + cor0.col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
-1782
0

query I rowsort
SELECT - 94 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-94
-94
-94

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL - 39 AS col0 FROM tab0 GROUP BY col2
----
-39
-39
-39

query I rowsort
SELECT 75 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
75
75
75

query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

query I rowsort
SELECT 12 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
12
12
12

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT DISTINCT + 33 FROM tab1 AS cor0 GROUP BY col0
----
33

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT ALL - 27 * + 12 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
-324
-324
-324

query I rowsort
SELECT DISTINCT - 6 FROM tab2 GROUP BY tab2.col2
----
-6

query I rowsort
SELECT ALL + 64 FROM tab2 AS cor0 GROUP BY col2
----
64
64
64

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
81

query I rowsort
SELECT ( + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
45
71
8

query I rowsort
SELECT DISTINCT + - 84 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
-84

query I rowsort
SELECT - + 96 AS col2 FROM tab1 GROUP BY tab1.col2
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT ALL cor0.col2 * cor0.col0 DIV - col0 + cor0.col0 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
138
8202
8406

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL cor0.col2 * cor0.col0 / - col0 + cor0.col0 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
138
8202
8406

query I rowsort
SELECT - + 54 - - 76 FROM tab1 GROUP BY tab1.col1
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
19

query I rowsort
SELECT DISTINCT 98 * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
2352
3724
7742

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0 cor0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
68

query I rowsort
SELECT + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT ALL 60 + 89 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
149
149
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
1936
3249
36

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col1
----
-45
-71
-8

query I rowsort
SELECT ALL - cor0.col2 + ( 19 ) - + cor0.col2 FROM tab0 cor0 GROUP BY col2, cor0.col1
----
-139
-29
-57

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT ( cor0.col2 * + col0 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1260
176
5822

query I rowsort
SELECT DISTINCT + 50 FROM tab1 AS cor0 GROUP BY col0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col0 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT ALL - 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2, cor1.col1, cor1.col0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT 13 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
533
767
793

query I rowsort
SELECT ALL - 19 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT + 37 - - 45 * cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1207
1972
3772

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5137
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT + CAST ( NULL AS REAL ) + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT + cor0.col2 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
3364
6241
7569

query I rowsort
SELECT ALL + 34 * - ( + col1 ) FROM tab0 GROUP BY tab0.col1
----
-2754
0

query I rowsort
SELECT ALL 1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2, col0
----
1
1
1

query I rowsort
SELECT DISTINCT + 93 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
93

query I rowsort
SELECT + cor0.col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - 85 FROM tab1, tab0 AS cor0, tab1 AS cor1 GROUP BY cor1.col0
----
-85

query I rowsort
SELECT 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
49
49
49

query I rowsort
SELECT ALL 36 FROM tab1 AS cor0 GROUP BY col2
----
36
36
36

query I rowsort
SELECT + cor0.col0 * + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
225
8281
8464

onlyif mysql # DIV for integer division: 
query I rowsort label-5148
SELECT ALL 63 DIV + 34 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL 63 / + 34 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
1
1
1

query I rowsort
SELECT ALL cor0.col1 * + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
1681
3481
3721

query I rowsort
SELECT 59 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
59
59
59

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
26
43
83

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
26
43
83

query I rowsort
SELECT ALL 1 FROM tab2 AS cor0 GROUP BY col1
----
1
1
1

query I rowsort
SELECT 38 FROM tab1 AS cor0 GROUP BY col0
----
38
38
38

query I rowsort
SELECT col2 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * tab2.col2 col2 FROM tab2, tab1 AS cor0 GROUP BY tab2.col2
----
-3422
-4661
-5133

query I rowsort
SELECT DISTINCT - 24 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-24

query I rowsort
SELECT + 88 FROM tab1 AS cor0 GROUP BY cor0.col0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5159
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5159
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + cor0.col0 FROM tab0 AS cor0 GROUP BY col0
----
0
0
0

query I rowsort
SELECT ALL 94 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
94
94
94

query I rowsort
SELECT 49 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
49
49
49

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
15
91
92

query I rowsort
SELECT DISTINCT 3 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
3

query I rowsort
SELECT col0 + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
105
121
67

query I rowsort
SELECT ALL cor0.col2 + - cor0.col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
-19
-45
53

query I rowsort
SELECT + 66 FROM tab2 cor0 GROUP BY cor0.col2
----
66
66
66

query I rowsort
SELECT ALL 29 * tab0.col1 AS col1 FROM tab0, tab1 AS cor0 GROUP BY tab0.col1
----
0
2349

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1 HAVING ( NULL ) <> cor0.col1
----

query I rowsort
SELECT DISTINCT + 63 * - 50 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5171
SELECT ALL - CAST( NULL AS SIGNED ) - 37 FROM tab0 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL - CAST ( NULL AS INTEGER ) - 37 FROM tab0 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
166
52
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT 44 * - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-4004
-4048
-660

query I rowsort
SELECT - 22 * cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-1254
-132
-968

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab1 cor0 GROUP BY col2, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL - 98 FROM tab2 GROUP BY tab2.col0
----
-98
-98
-98

query I rowsort
SELECT 18 FROM tab2 AS cor0 GROUP BY col1
----
18
18
18

query I rowsort
SELECT - - 81 + 75 AS col0 FROM tab0 GROUP BY tab0.col0
----
156
156
156

query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT + col2 * cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT + 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
52
52
52

query I rowsort
SELECT DISTINCT cor0.col2 - cor0.col2 * + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1008
-1975
-3116

query I rowsort
SELECT cor0.col2 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
116
158
174

query I rowsort
SELECT + cor1.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 GROUP BY cor1.col1
----
0
81

query I rowsort
SELECT cor0.col2 * + 60 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3480
4740
5220

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col1 * ( - cor0.col1 ) AS col2 FROM tab0, tab0 cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT DISTINCT - 44 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
-44

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT + 1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT ( cor0.col0 + - 44 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-16
-22
38

query I rowsort
SELECT - col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL 36 - cor0.col2 * 63 FROM tab1 AS cor0 GROUP BY col2
----
-2799
-4437
-468

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
-81
0

query I rowsort
SELECT ( cor0.col0 ) + - col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-72
12
34

query I rowsort
SELECT ALL cor0.col2 * + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
1944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col1 FROM tab2 cor0 GROUP BY cor0.col0
----
44

query I rowsort
SELECT - 92 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT col0 * - 70 + 66 AS col0 FROM tab0 AS cor0 GROUP BY col0
----
-1754
-2944
-5744

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
2025
5041
64

query I rowsort
SELECT DISTINCT - 18 FROM tab1 GROUP BY tab1.col0
----
-18

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2 GROUP BY tab2.col0
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT + CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

skipif mysql # not compatible
query I rowsort label-5206
SELECT + CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col1, cor0.col2
----
1482
600
6320

query I rowsort
SELECT + 12 FROM tab2 AS cor0 GROUP BY cor0.col1
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT cor0.col1 DIV cor0.col1 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5209
SELECT cor0.col1 / cor0.col1 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
1
1
1

query I rowsort
SELECT + 47 + + ( cor0.col0 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
129
69
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5211
SELECT + - 67 DIV cor0.col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-5211
SELECT + - 67 / cor0.col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-1
-8
0

query I rowsort
SELECT DISTINCT - ( cor0.col1 * cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-6561
0

query I rowsort
SELECT ALL - ( - 22 ) + - cor0.col0 + + 27 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col2
----
-34
23
6

query I rowsort
SELECT ( cor0.col2 * 71 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
1704
2698
5609

query I rowsort
SELECT - 24 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL + 64 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
64
64
64

query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab1 GROUP BY col0
----
6

query I rowsort
SELECT - cor0.col1 - 45 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-126
-45

query I rowsort
SELECT - 74 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
-74
-74
-74

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT ALL - 39 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-39
-39
-39

query I rowsort
SELECT - 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
-37
-37
-37

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL + 10 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
10
10
10

query I rowsort
SELECT + cor0.col1 + cor0.col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col1
----
0
162

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, col2
----
0
0
81

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab1 GROUP BY tab1.col0
----
49

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT - col1 + tab0.col1 AS col0 FROM tab0 GROUP BY tab0.col1
----
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0
----
15
91
92

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, col1
----
2025
5041
64

query I rowsort
SELECT 69 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
69
69

query I rowsort
SELECT ALL cor0.col0 * - 44 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1144
-1892
-3652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col2
----
45
71
8

query I rowsort
SELECT + 30 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor1.col0
----
30
30
30

query I rowsort
SELECT - 7 * - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
315
497
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5239
SELECT cor0.col1 * col1 DIV + CAST( 29 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
112
66

skipif mysql # not compatible
query I rowsort label-5239
SELECT cor0.col1 * col1 / + CAST ( 29 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
112
66

query I rowsort
SELECT cor0.col2 - - cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
2610
3195
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab1 cor0 GROUP BY col1, cor0.col1
----
44
57
6

query I rowsort
SELECT 66 AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col0 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT 74 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
132
153
161

query I rowsort
SELECT cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col0
----
15
91
92

query I rowsort
SELECT 71 FROM tab1 AS cor0 GROUP BY col0
----
71
71
71

query I rowsort
SELECT - ( col2 + cor0.col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
-116
-158
-174

query I rowsort
SELECT DISTINCT - 13 * - cor0.col0 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
1079
338
559

query I rowsort
SELECT 83 FROM tab2 cor0 GROUP BY cor0.col0
----
83
83
83

query I rowsort
SELECT - - tab2.col1 FROM tab2 GROUP BY col1
----
41
59
61

query I rowsort
SELECT + cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab1 GROUP BY tab1.col0
----
164
44
56

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
1681
3481
3721

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT - cor0.col0 + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2 HAVING NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT - 87 * 92 AS col1 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
-8004
-8004
-8004

query I rowsort
SELECT ALL 20 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
20
20
20

query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query III rowsort
SELECT * FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0, col1
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-22

query I rowsort
SELECT 66 FROM tab2 AS cor0 GROUP BY cor0.col0
----
66
66
66

query I rowsort
SELECT + 3 FROM tab0 AS cor0 GROUP BY cor0.col0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
85
85
85

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT 66 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
66
66
66

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
15
91
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5272
SELECT - cor0.col0 DIV cor0.col0 + - cor0.col0 * + 17 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1548
-1565
-256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5272
SELECT - cor0.col0 / cor0.col0 + - cor0.col0 * + 17 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1548
-1565
-256

query I rowsort
SELECT ALL + 9 * 47 AS col2 FROM tab2 GROUP BY tab2.col2
----
423
423
423

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
34

query I rowsort
SELECT 69 FROM tab2, tab2 AS cor0, tab0 cor1 GROUP BY cor1.col0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
44
57
6

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 * 75 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
138675
50700
516675

query I rowsort
SELECT + 40 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
40
40
40

query I rowsort
SELECT ALL cor0.col2 + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
105
38
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5280
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col0 + - ( tab0.col0 ) AS col2 FROM tab0 GROUP BY tab0.col0
----
0
0
0

query I rowsort
SELECT - + ( 50 ) FROM tab2 GROUP BY tab2.col0
----
-50
-50
-50

query I rowsort
SELECT 9 + cor0.col1 * - 38 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-3069
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
22
28
82

query I rowsort
SELECT ALL - + cor0.col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT + cor0.col2 + + cor0.col2 * - 99 AS col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-4410
-6958
-784

query I rowsort
SELECT col0 + 2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
17
93
94

query I rowsort
SELECT - ( cor0.col0 ) AS col1 FROM tab1 cor0 GROUP BY col0
----
-22
-28
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 * cor0.col1 col2 FROM tab1 AS cor0 GROUP BY col1
----
1980
3306
42

query I rowsort
SELECT tab0.col1 - - col1 FROM tab0 GROUP BY tab0.col1
----
0
162

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2 HAVING - cor0.col2 = NULL
----

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1 HAVING ( NULL ) <= ( NULL )
----

query I rowsort
SELECT + 69 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
69
69
69

query I rowsort
SELECT + 75 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
75
75
75

query I rowsort
SELECT cor0.col0 + - 7 + + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
143
163
95

query I rowsort
SELECT 7 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
7
7
7

query I rowsort
SELECT DISTINCT 15 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15

query I rowsort
SELECT - col2 FROM tab0 cor0 GROUP BY cor0.col2
----
-24
-38
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5299
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT ALL + CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + 8 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
8
8
8

query I rowsort
SELECT + cor0.col2 * cor0.col2 * + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
13824
493039
54872

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT - cor0.col2 + + cor0.col2 + cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
0
0
81

query I rowsort
SELECT DISTINCT cor0.col0 * 75 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1950
3225
6225

query I rowsort
SELECT ALL tab2.col2 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + 89 + + cor0.col2 * cor0.col2 FROM tab0 AS cor0 GROUP BY col2
----
1533
6330
665

query I rowsort
SELECT DISTINCT 42 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
42

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col0
----
-58
-79
-87

query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
85

query I rowsort
SELECT DISTINCT + 82 FROM tab1 AS cor0 GROUP BY cor0.col1
----
82

query I rowsort
SELECT cor0.col1 * cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
3483

query I rowsort
SELECT 22 FROM tab0 AS cor0 GROUP BY col1
----
22
22

query I rowsort
SELECT + ( + 97 ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
97
97
97

query I rowsort
SELECT - ( 15 + cor0.col0 ) * - cor0.col0 FROM tab0 AS cor0 GROUP BY col0
----
1066
2494
8134

query I rowsort
SELECT cor0.col0 + 2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
28
45
85

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
9

query I rowsort
SELECT DISTINCT 48 FROM tab2 AS cor0 GROUP BY col0
----
48

query I rowsort
SELECT DISTINCT - 26 FROM tab1 cor0 GROUP BY cor0.col0
----
-26

query I rowsort
SELECT ALL - 82 + + 54 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-6
0
54

query I rowsort
SELECT col0 AS col2 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2 GROUP BY col0
----
15
91
92

query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0 GROUP BY tab0.col1
----
-81
0

query I rowsort
SELECT - tab0.col1 FROM tab0 GROUP BY col1
----
-81
0

query I rowsort
SELECT + 0 * cor0.col2 - ( cor0.col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT ALL cor0.col2 + cor0.col2 * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2070
5112
72

query I rowsort
SELECT ALL + 26 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
26
26

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 * cor0.col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
0
149769

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
79

query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT 39 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
39
39
39

query I rowsort
SELECT DISTINCT 34 FROM tab2 AS cor0 GROUP BY cor0.col0
----
34

query I rowsort
SELECT - ( cor0.col1 ) * - col1 + 24 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1705
3505
3745

query I rowsort
SELECT + 5 FROM tab0 AS cor0 GROUP BY col1
----
5
5

query I rowsort
SELECT DISTINCT + 54 FROM tab0 AS cor0 GROUP BY col1
----
54

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY col0
----
-26
-43
-83

query I rowsort
SELECT + + tab1.col1 AS col2 FROM tab1 GROUP BY col1
----
44
57
6

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT ALL cor0.col2 * + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2, col2
----
3364
6241
7569

query I rowsort
SELECT DISTINCT - 13 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - 44 * 50 FROM tab0 GROUP BY tab0.col1
----
-2200

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col1 ) col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-22
-28
-82

query III rowsort
SELECT ALL * FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT 6 FROM tab2 AS cor0 GROUP BY cor0.col1
----
6
6
6

query I rowsort
SELECT DISTINCT 33 * - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1452
-1881
-198

query I rowsort
SELECT ALL + + 17 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
17
17
17

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT + 67 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 GROUP BY tab2.col0
----
67
67
67

query I rowsort
SELECT 86 + col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
144
165
173

query I rowsort
SELECT - 84 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-84
-84
-84

query I rowsort
SELECT - cor0.col1 + - ( 1 ) FROM tab0 cor0 GROUP BY cor0.col1
----
-1
-82

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL 1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT 35 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
35
35
35

query I rowsort
SELECT ALL - - ( col2 ) FROM tab1 GROUP BY tab1.col2
----
45
71
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5365
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT 70 FROM tab2 AS cor0 GROUP BY cor0.col2
----
70
70
70

query I rowsort
SELECT ALL + 11 * + col1 * - cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-72171
0

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
-225
-8281
-8464

query I rowsort
SELECT + cor0.col2 * cor0.col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT DISTINCT - - 83 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
83

query I rowsort
SELECT cor0.col1 + + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
126
28
85

query I rowsort
SELECT ALL ( cor0.col0 ) FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-45
-71
-8

query I rowsort
SELECT 86 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1290
7826
7912

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5376
SELECT cor0.col2 DIV CAST( + 49 AS SIGNED ) FROM tab2 cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5376
SELECT cor0.col2 / CAST ( + 49 AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT 87 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
87
87
87

query I rowsort
SELECT + + 81 FROM tab2, tab1 AS cor0, tab1 AS cor1 GROUP BY cor0.col1
----
81
81
81

query I rowsort
SELECT - cor0.col0 + + 18 FROM tab2 cor0 GROUP BY col0
----
-73
-74
3

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT cor0.col2 + + cor0.col2 + + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
114
237
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5386
SELECT - - CAST( NULL AS SIGNED ) * - tab1.col2 * - tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5386
SELECT - - CAST ( NULL AS INTEGER ) * - tab1.col2 * - tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 74 AS col1 FROM tab2 GROUP BY tab2.col0
----
74
74
74

query I rowsort
SELECT + ( cor0.col1 * col1 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT ALL + 31 + cor0.col1 FROM tab0, tab2 cor0 GROUP BY cor0.col1
----
72
90
92

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 * - ( - cor0.col0 ) * - 14 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-10948
-6754
-94054

query I rowsort
SELECT ALL 1 * + ( cor0.col0 ) * 89 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1335
8099
8188

query I rowsort
SELECT ALL + 69 FROM tab1 AS cor0 GROUP BY cor0.col2
----
69
69
69

query I rowsort
SELECT ALL - 91 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-91
-91
-91

query I rowsort
SELECT + cor0.col0 + - 20 FROM tab0 AS cor0 GROUP BY cor0.col0
----
23
6
63

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-58
-79
-87

query I rowsort
SELECT + col1 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
132
1596
3608

query I rowsort
SELECT 6 FROM tab0, tab2 AS cor0, tab1 AS cor1 GROUP BY tab0.col2
----
6
6
6

query I rowsort
SELECT + 16 FROM tab0 cor0 GROUP BY cor0.col0
----
16
16
16

query I rowsort
SELECT - 13 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
264
342
36

query I rowsort
SELECT col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT cor0.col0 * - cor0.col0 - 76 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1925
-6965
-752

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, col1, col2
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT DISTINCT cor0.col0 + - CAST( col0 * cor0.col1 AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
-110
-1568
-3526

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT cor0.col0 + - CAST ( col0 * cor0.col1 AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
-110
-1568
-3526

query I rowsort
SELECT cor0.col2 AS col2 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0, cor0.col1
----
24
38
79

query I rowsort
SELECT + col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col1 FROM tab0 GROUP BY tab0.col1
----
3
3

query I rowsort
SELECT 17 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
17
17
17

query I rowsort
SELECT DISTINCT + 38 FROM tab1 AS cor0 GROUP BY cor0.col1
----
38

query I rowsort
SELECT DISTINCT + 38 * - cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1710
-2698
-304

query I rowsort
SELECT DISTINCT + 60 FROM tab0 AS cor0 GROUP BY cor0.col2
----
60

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
26

query I rowsort
SELECT DISTINCT - 32 AS col2 FROM tab1, tab2 cor0 GROUP BY cor0.col1
----
-32

query I rowsort
SELECT - 41 * cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-2378
-3239
-3567

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 FROM tab0 cor0 GROUP BY col0, cor0.col1
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 91 - cor0.col0 col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
91
91
91

query I rowsort
SELECT - - 33 * - 95 FROM tab1, tab2 cor0, tab2 AS cor1 GROUP BY cor0.col0
----
-3135
-3135
-3135

query I rowsort
SELECT + col1 + - 33 AS col2 FROM tab0 GROUP BY col1
----
-33
48

query I rowsort
SELECT - col1 + cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT - - tab2.col0 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT - col0 * 76 AS col2 FROM tab1 GROUP BY tab1.col0
----
-1672
-2128
-6232

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
81

query I rowsort
SELECT ALL - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * - cor0.col1 * + cor0.col1 + + cor0.col0 col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
111483
119087
53884

query I rowsort
SELECT - cor0.col0 * cor0.col0 AS col0 FROM tab0 cor0 GROUP BY cor0.col0
----
-1849
-676
-6889

query I rowsort
SELECT ALL 71 FROM tab2 AS cor0 GROUP BY cor0.col2
----
71
71
71

query I rowsort
SELECT DISTINCT - 41 + ( cor0.col0 * cor0.col2 ) AS col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
2013
3113
991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
45
71
8

query I rowsort
SELECT + - 8 FROM tab2, tab0 cor0 GROUP BY cor0.col1
----
-8
-8

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT col0 + - 44 * - col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
2018
2536
286

query I rowsort
SELECT ALL cor0.col2 + + 18 + 11 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
108
116
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5438
SELECT ALL cor0.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL cor0.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col2
----
2025
5041
64

query I rowsort
SELECT - 5 FROM tab0 GROUP BY tab0.col2
----
-5
-5
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT ALL + 10 FROM tab0 AS cor0 GROUP BY cor0.col1
----
10
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5443
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5443
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT + 13 * - col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
-1183
-1196
-195

query I rowsort
SELECT DISTINCT col0 + col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
182
184
30

query I rowsort
SELECT DISTINCT - cor0.col0 * 45 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1260
-3690
-990

query I rowsort
SELECT 4 * - cor0.col2 FROM tab1 cor0 GROUP BY col2
----
-180
-284
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT 55 FROM tab0, tab2 AS cor0 GROUP BY tab0.col2
----
55
55
55

query I rowsort
SELECT ALL 73 FROM tab0 AS cor0 GROUP BY cor0.col0
----
73
73
73

query I rowsort
SELECT DISTINCT - ( + 13 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-13

query I rowsort
SELECT ALL cor1.col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
22
28
82

query I rowsort
SELECT ALL 82 * 89 FROM tab1 AS cor0 GROUP BY cor0.col0
----
7298
7298
7298

query I rowsort
SELECT ALL + + cor0.col2 AS col1 FROM tab2, tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL 96 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5457
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT 37 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
37
37
37

query I rowsort
SELECT DISTINCT + 92 FROM tab0 AS cor0 GROUP BY cor0.col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5460
SELECT - ( - 3 ) * cor0.col2 + cor0.col2 + 46 DIV cor0.col2 AS col1 FROM tab1, tab1 cor0 GROUP BY cor0.col2
----
181
284
37

skipif mysql # not compatible
query I rowsort label-5460
SELECT - ( - 3 ) * cor0.col2 + cor0.col2 + 46 / cor0.col2 AS col1 FROM tab1, tab1 cor0 GROUP BY cor0.col2
----
181
284
37

query I rowsort
SELECT + cor0.col2 * - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1444
-576
-6241

query I rowsort
SELECT cor0.col2 * - cor0.col0 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
-1305
-5336
-7189

query I rowsort
SELECT ALL - 70 * cor0.col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
-3150
-4970
-560

query I rowsort
SELECT col0 AS col0 FROM tab1 GROUP BY col0
----
22
28
82

query I rowsort
SELECT ALL 90 FROM tab1 AS cor0 GROUP BY cor0.col0
----
90
90
90

query I rowsort
SELECT + col1 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col1 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-26
-83
38

query I rowsort
SELECT col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
45
71
8

query I rowsort
SELECT 87 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
87
87
87

query I rowsort
SELECT 79 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
79
79
79

query I rowsort
SELECT col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
41
59
61

query I rowsort
SELECT ALL 8 * cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
328
472
488

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5474
SELECT DISTINCT col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1 GROUP BY tab1.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1 GROUP BY tab1.col2
----
NULL

query I rowsort
SELECT DISTINCT - 68 * - col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1496
1904
5576

query I rowsort
SELECT 7 * + 33 + + tab2.col2 FROM tab2 GROUP BY col2
----
289
310
318

query I rowsort
SELECT 56 FROM tab2 AS cor0 GROUP BY cor0.col2
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
-26
-43
-83

query I rowsort
SELECT + + tab2.col2 + 91 * col2 FROM tab2 GROUP BY tab2.col2
----
5336
7268
8004

query I rowsort
SELECT - cor0.col1 - + ( cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-162
0

query I rowsort
SELECT ALL - 10 FROM tab2 cor0 GROUP BY cor0.col2
----
-10
-10
-10

query I rowsort
SELECT + col0 AS col2 FROM tab2 GROUP BY tab2.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + + cor0.col0 col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
-29
-35
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 80 + - cor0.col1 col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
-161
-80

query I rowsort
SELECT ALL - cor0.col2 * 40 AS col2 FROM tab1 AS cor0 GROUP BY col2, col0
----
-1800
-2840
-320

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2 GROUP BY col0
----
15
91
92

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5489
SELECT cor0.col2 DIV + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5489
SELECT cor0.col2 / + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT + 72 + 51 * - col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-2886
-3957
-4365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col1 ) col2 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT - CAST( NULL AS SIGNED ) FROM tab2 GROUP BY col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5492
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 GROUP BY col0
----
NULL
NULL
NULL

query I rowsort
SELECT ( 12 ) * - cor0.col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
-972
0

query I rowsort
SELECT ALL 1 * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT tab0.col2 - - tab0.col2 * 26 AS col2 FROM tab0 GROUP BY col2
----
1026
2133
648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5497
SELECT DISTINCT CAST( + 77 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
77

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT CAST ( + 77 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
77

query I rowsort
SELECT + 45 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
45
45
45

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT ALL - 64 FROM tab1 cor0 GROUP BY col2
----
-64
-64
-64

query I rowsort
SELECT 69 FROM tab1 AS cor0 GROUP BY col1
----
69
69
69

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2, col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
1
1
1

query I rowsort
SELECT DISTINCT + ( + 86 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
86

query I rowsort
SELECT cor0.col1 * - col1 FROM tab1 AS cor0 GROUP BY col1, col2
----
-1936
-3249
-36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 GROUP BY col0, cor0.col1, cor0.col2
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT + 25 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
25
25
25

query I rowsort
SELECT ALL 86 FROM tab1 cor0 GROUP BY cor0.col1
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( cor0.col0 ) ) + 40 * 25 col0 FROM tab0 cor0 GROUP BY cor0.col0
----
1026
1043
1083

query I rowsort
SELECT ALL + ( cor1.col1 ) AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1 GROUP BY cor1.col1
----
0
81

query I rowsort
SELECT cor0.col2 * 98 FROM tab0 cor0 GROUP BY cor0.col2
----
2352
3724
7742

query I rowsort
SELECT col2 FROM tab2 cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT DISTINCT cor0.col1 - 10 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col2
----
-10
71

query I rowsort
SELECT ALL + 88 + + cor0.col1 * - cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-1593
-3393
-3633

query I rowsort
SELECT ALL - 52 + - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-111
-113
-93

query I rowsort
SELECT ALL - + 95 FROM tab1, tab1 AS cor0, tab1 AS cor1 GROUP BY cor0.col1
----
-95
-95
-95

query I rowsort
SELECT ALL cor0.col2 * + 64 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2880
4544
512

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col2 * + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
-137924
-368219
-461709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + cor0.col1 + + cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, col2
----
-1865
-28
-3204

query I rowsort
SELECT - 90 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
-90
-90
-90

query I rowsort
SELECT - - 45 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
45
45

query I rowsort
SELECT - 44 FROM tab2 cor0 GROUP BY cor0.col0
----
-44
-44
-44

query I rowsort
SELECT + 98 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
4018
5782
5978

query I rowsort
SELECT DISTINCT - tab2.col2 + + 68 FROM tab2 GROUP BY tab2.col2
----
-11
-19
10

query I rowsort
SELECT + 59 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1 GROUP BY cor1.col0
----
59
59
59

query I rowsort
SELECT + 14 * + 71 FROM tab2 AS cor0 GROUP BY col1
----
994
994
994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 + - col2 col2 FROM tab0 cor0 GROUP BY cor0.col2
----
-27
-41
-82

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
1849
676
6889

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
88

query I rowsort
SELECT ALL + cor0.col1 + + col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
114
12
88

query I rowsort
SELECT DISTINCT ( - 2 ) AS col0 FROM tab2, tab1 AS cor0 GROUP BY tab2.col2
----
-2

query I rowsort
SELECT 47 FROM tab2 cor0 GROUP BY col1
----
47
47
47

query I rowsort
SELECT DISTINCT - 33 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-33

query I rowsort
SELECT DISTINCT ( cor0.col0 + - cor0.col0 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
24
38
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT DISTINCT - cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
89
89

query I rowsort
SELECT + 46 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
46
46
46

query I rowsort
SELECT 79 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
79
79
79

query I rowsort
SELECT ALL + - tab2.col0 FROM tab2 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT + 75 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
75
75
75

query I rowsort
SELECT ALL cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col1
----
15
91
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT col2 DIV + 7 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
11
3
5

skipif mysql # not compatible
query I rowsort label-5544
SELECT col2 / + 7 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
11
3
5

query I rowsort
SELECT ALL + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
53
53

query I rowsort
SELECT - col1 + - cor0.col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col2
----
-105
-38
-79

query I rowsort
SELECT ALL + 17 FROM tab0 GROUP BY col0
----
17
17
17

query I rowsort
SELECT ALL 26 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
26
26
26

query I rowsort
SELECT + ( - cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT cor0.col0 + + 86 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
108
114
168

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT cor0.col0 + + 76 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
104
158
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5555
SELECT ALL CAST( NULL AS SIGNED ) + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - 81 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-4698
-6399
-7047

onlyif mysql # DIV for integer division: 
query I rowsort label-5557
SELECT ALL 49 DIV + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL 49 / + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ALL - 26 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-26
-26
-26

query I rowsort
SELECT ALL - cor0.col1 + 98 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
7857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT + 55 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
55
55
55

query I rowsort
SELECT - 98 AS col0 FROM tab2 GROUP BY tab2.col0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT + cor0.col2 * - 60 FROM tab0, tab2 AS cor0, tab0 AS cor1 GROUP BY cor0.col2
----
-3480
-4740
-5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5565
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, col0, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, col0, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT + 54 + + cor0.col0 FROM tab0 AS cor0 GROUP BY col0
----
137
80
97

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT - ( cor0.col1 ) + - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col1, cor0.col2
----
-118
-122
-82

query I rowsort
SELECT col2 FROM tab1 GROUP BY col2
----
45
71
8

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT 87 FROM tab0 AS cor0 GROUP BY cor0.col0
----
87

query I rowsort
SELECT DISTINCT 95 FROM tab1 AS cor0 GROUP BY cor0.col1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-5575
SELECT cor0.col2 DIV - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5575
SELECT cor0.col2 / - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-3
0
0

query I rowsort
SELECT - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor1.col0, cor1.col1
----
-69
-69
-69

query I rowsort
SELECT ALL 42 FROM tab2 AS cor0 GROUP BY cor0.col0
----
42
42
42

query I rowsort
SELECT + 84 AS col2 FROM tab2 AS cor0 GROUP BY col1, col0, cor0.col0
----
84
84
84

query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT cor0.col0 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT + + 54 * 20 AS col1 FROM tab2, tab2 AS cor0 GROUP BY tab2.col1
----
1080
1080
1080

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
44

query I rowsort
SELECT ALL - ( + 26 ) FROM tab0, tab2 cor0 GROUP BY cor0.col1
----
-26
-26
-26

query I rowsort
SELECT cor0.col2 * 87 FROM tab0 AS cor0 GROUP BY cor0.col2
----
2088
3306
6873

query I rowsort
SELECT + cor0.col2 * - ( 25 + cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1176
-2394
-8216

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT 70 * 4 FROM tab0, tab0 AS cor0 GROUP BY tab0.col1
----
280
280

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1 GROUP BY cor0.col2
----
-24
-38
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT DISTINCT - 77 DIV cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT DISTINCT - 77 / cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1
-2
0

query I rowsort
SELECT - 73 AS col2 FROM tab1 cor0 GROUP BY cor0.col0
----
-73
-73
-73

query I rowsort
SELECT ALL + 90 FROM tab0, tab2 AS cor0 GROUP BY tab0.col0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT CAST( + 9 AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-5592
SELECT CAST ( + 9 AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
9
9
9

query I rowsort
SELECT ALL 23 AS col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
23
23
23

query I rowsort
SELECT - cor0.col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col0 ) col1 FROM tab2 cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT - + 37 FROM tab2 GROUP BY tab2.col1
----
-37
-37
-37

query I rowsort
SELECT ALL 5 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
5
5
5

query I rowsort
SELECT DISTINCT + ( - tab0.col0 ) + tab0.col0 AS col0 FROM tab0 GROUP BY col0
----
0

query I rowsort
SELECT DISTINCT - 14 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT - cor0.col1 DIV + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5601
SELECT - cor0.col1 / + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1
-1
-1

query I rowsort
SELECT + 80 FROM tab2 GROUP BY tab2.col1
----
80
80
80

query I rowsort
SELECT - 56 AS col0 FROM tab0 GROUP BY tab0.col1
----
-56
-56

query I rowsort
SELECT ALL + + 58 FROM tab0 GROUP BY tab0.col0
----
58
58
58

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
22
28
82

query I rowsort
SELECT DISTINCT - tab1.col2 * 2 FROM tab1 GROUP BY tab1.col2
----
-142
-16
-90

query I rowsort
SELECT 55 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
55
55
55

query I rowsort
SELECT ( - cor0.col1 ) * ( cor0.col1 ) FROM tab0 cor0 GROUP BY cor0.col1, cor0.col1
----
-6561
0

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-81
0
0

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
23

query I rowsort
SELECT cor0.col2 * cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
1260
176
5822

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col2, col0
----
-45
-71
-8

query I rowsort
SELECT + + 59 AS col2 FROM tab2 GROUP BY tab2.col0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
45
71
8

query I rowsort
SELECT ALL 10 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
10
10
10

query I rowsort
SELECT ALL + 62 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
62
62
62

query I rowsort
SELECT 68 FROM tab2 AS cor0 GROUP BY col2
----
68
68
68

query I rowsort
SELECT ALL 93 FROM tab1 AS cor0 GROUP BY cor0.col0
----
93
93
93

query I rowsort
SELECT - 14 * - cor0.col0 + + cor0.col0 * - cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-7007
-7176

query I rowsort
SELECT DISTINCT - 11 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5623
SELECT + 45 DIV - 20 FROM tab0, tab2 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5623
SELECT + 45 / - 20 FROM tab0, tab2 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
-2
-2
-2

query I rowsort
SELECT + 23 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor0.col1
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
44
57
6

query I rowsort
SELECT cor0.col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL + ( - 10 ) FROM tab1, tab0 AS cor0 GROUP BY tab1.col2
----
-10
-10
-10

query I rowsort
SELECT ALL + tab0.col1 FROM tab0 GROUP BY tab0.col1
----
0
81

query I rowsort
SELECT ALL cor0.col2 + + cor0.col2 * cor0.col2 + cor0.col2 AS col0 FROM tab1 cor0 GROUP BY cor0.col2
----
2115
5183
80

query I rowsort
SELECT ALL + 5 FROM tab0, tab1 AS cor0 GROUP BY tab0.col0
----
5
5
5

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
26
43
83

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
47

query I rowsort
SELECT ALL 3 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3
3
3

query I rowsort
SELECT DISTINCT + tab0.col0 * tab0.col0 + - tab0.col0 AS col1 FROM tab0 GROUP BY tab0.col0
----
1806
650
6806

query I rowsort
SELECT ALL cor0.col2 * + 95 AS col0 FROM tab0, tab2 cor0 GROUP BY cor0.col2
----
5510
7505
8265

query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 32 ) col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
32

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT + col2 DIV cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5642
SELECT + col2 / cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
1
1
1

query I rowsort
SELECT ALL + cor0.col1 - + 86 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-25
-27
-45

query I rowsort
SELECT + 54 FROM tab1 AS cor0 GROUP BY cor0.col2
----
54
54
54

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1944
0
0

query I rowsort
SELECT DISTINCT 44 + col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col2
----
115
52
89

query I rowsort
SELECT - 20 FROM tab1 GROUP BY tab1.col0
----
-20
-20
-20

query I rowsort
SELECT 69 FROM tab1 AS cor0 GROUP BY cor0.col0
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT cor0.col0 DIV - cor0.col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5649
SELECT cor0.col0 / - cor0.col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

query I rowsort
SELECT DISTINCT 7 + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
65
86
94

query I rowsort
SELECT ALL + 67 FROM tab2 GROUP BY col2
----
67
67
67

query I rowsort
SELECT ALL - 0 FROM tab2 cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT ALL - 54 + + 33 FROM tab1, tab1 AS cor0, tab2 cor1 GROUP BY cor1.col2
----
-21
-21
-21

query I rowsort
SELECT DISTINCT ( - 34 ) * cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1 GROUP BY cor1.col0
----
-2788
-748
-952

query I rowsort
SELECT - ( cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query III rowsort
SELECT * FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
0
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL + 96 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
96
96
96

query I rowsort
SELECT + + 76 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
76
76
76

query I rowsort
SELECT + ( - col1 ) AS col2 FROM tab2 GROUP BY col1
----
-41
-59
-61

query I rowsort
SELECT - + col2 * col2 + col2 FROM tab1 GROUP BY tab1.col2
----
-1980
-4970
-56

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + cor0.col2 * - cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1406
-552
-6162

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
41
59
61

query I rowsort
SELECT DISTINCT + - tab1.col0 AS col1 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT ALL - 20 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col1, cor1.col1
----
-20
-20
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5670
SELECT + CAST( NULL AS DECIMAL ) + 17 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT + CAST ( NULL AS REAL ) + 17 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * cor0.col2 * cor0.col2 + - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
-119890
-162345
-24792

query I rowsort
SELECT DISTINCT 52 + + ( cor0.col1 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
111
113
93

query I rowsort
SELECT - tab1.col0 AS col1 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1849
-676
-6889

query I rowsort
SELECT ALL 48 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
48
48
48

query I rowsort
SELECT DISTINCT cor0.col2 * 29 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1682
2291
2523

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5677
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
506
6806
812

query I rowsort
SELECT - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT DISTINCT 26 DIV cor0.col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
0
1

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT 26 / cor0.col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
0
1

query I rowsort
SELECT + ( col0 ) + + cor0.col0 FROM tab1 AS cor0 GROUP BY col0
----
164
44
56

query I rowsort
SELECT col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL + 60 * ( cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
5460
5520
900

query I rowsort
SELECT ALL 82 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
82
82
82

query I rowsort
SELECT + cor0.col0 * - 99 AS col0 FROM tab0 cor0 GROUP BY cor0.col0
----
-2574
-4257
-8217

query I rowsort
SELECT ALL - 13 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-13
-13
-13

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT 11 + 72 AS col1 FROM tab2, tab2 cor0 GROUP BY cor0.col1
----
83

query I rowsort
SELECT DISTINCT + - cor0.col1 * 22 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
-1254
-132
-968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
8
8
8

query I rowsort
SELECT - 94 + cor0.col0 * cor0.col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
390
6630
690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5693
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5693
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5694
SELECT - CAST( NULL AS SIGNED ) + - 34 FROM tab0 GROUP BY tab0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT - CAST ( NULL AS INTEGER ) + - 34 FROM tab0 GROUP BY tab0.col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
81

query I rowsort
SELECT - 22 * 45 + - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1012
-1018
-1072

query I rowsort
SELECT DISTINCT - 13 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-13

query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 - + ( - cor0.col0 + col1 * + cor0.col1 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1405
-3208
-3676

onlyif mysql # DIV for integer division: 
query I rowsort label-5701
SELECT + cor0.col0 + + cor0.col1 DIV - 58 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

skipif mysql # not compatible
query I rowsort label-5701
SELECT + cor0.col0 + + cor0.col1 / - 58 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

query I rowsort
SELECT 96 FROM tab0 AS cor0 GROUP BY cor0.col2
----
96
96
96

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT ALL - ( - cor0.col1 ) * cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1681
3481
3721

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT DISTINCT cor0.col2 - 57 DIV + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT cor0.col2 - 57 / + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5707
SELECT ALL cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * + cor0.col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
1444
576
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT DISTINCT 96 FROM tab0 AS cor0 GROUP BY cor0.col0
----
96

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col2, col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT - 40 FROM tab1 cor0 GROUP BY col2
----
-40
-40
-40

query I rowsort
SELECT 14 FROM tab2 AS cor0 GROUP BY cor0.col2
----
14
14
14

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
2565
3124
48

query I rowsort
SELECT DISTINCT ( + 59 + - col1 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-22
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col0 ) col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT 3 AS col1 FROM tab0 GROUP BY col0
----
3
3
3

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + + tab2.col2 FROM tab2 GROUP BY col2
----
58
79
87

query I rowsort
SELECT - cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT ALL - 20 FROM tab0 GROUP BY tab0.col1
----
-20
-20

query I rowsort
SELECT + 16 AS col0 FROM tab1 GROUP BY tab1.col1
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT + ( + 70 ) DIV + cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5725
SELECT + ( + 70 ) / + cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT - ( + cor0.col0 ) + cor0.col0 * 73 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
1584
2016
5904

query I rowsort
SELECT 68 * 97 AS col2 FROM tab0, tab0 cor0 GROUP BY cor0.col1
----
6596
6596

query I rowsort
SELECT DISTINCT ( - cor1.col0 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
-15
-91
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT ( cor0.col1 * cor0.col1 + + cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
6642

query I rowsort
SELECT + 55 FROM tab1 AS cor0 GROUP BY col2, col2
----
55
55
55

query I rowsort
SELECT 44 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
44
44
44

query I rowsort
SELECT 15 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1 GROUP BY tab2.col2
----
15
15
15

query I rowsort
SELECT ALL + - cor0.col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT + cor0.col1 * + col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
6561

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query III rowsort
SELECT ALL * FROM tab0 cor0 GROUP BY cor0.col0, col2, cor0.col1
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT ( 18 ) FROM tab2 AS cor0 GROUP BY col2
----
18
18
18

query I rowsort
SELECT - cor0.col0 * cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
-225
-8281
-8464

query I rowsort
SELECT DISTINCT + 56 FROM tab0 cor0 GROUP BY cor0.col2
----
56

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
-41
-59
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5746
SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5746
SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT ALL 9 FROM tab0 cor0 GROUP BY cor0.col0
----
9
9
9

query I rowsort
SELECT + 22 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
22
22
22

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
66

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT ALL cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
0
0
1944

query I rowsort
SELECT 77 FROM tab1 AS cor0 GROUP BY cor0.col2
----
77
77
77

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col0, col1
----
41
59
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5754
SELECT DISTINCT + cor0.col0 DIV + 27 + ( cor0.col2 ) * - cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col0
----
-1441
-575
-6241

skipif mysql # not compatible
query I rowsort label-5754
SELECT DISTINCT + cor0.col0 / + 27 + ( cor0.col2 ) * - cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col0
----
-1441
-575
-6241

query I rowsort
SELECT cor0.col1 * - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT ALL - 43 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-43
-43

query I rowsort
SELECT + tab2.col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND + col2 * + col1 GROUP BY col0
----

query I rowsort
SELECT ALL + tab1.col2 AS col2 FROM tab1 GROUP BY tab1.col2 HAVING NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT 18 * - 53 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-954

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5760
SELECT DISTINCT cor0.col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT cor0.col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT ALL - cor0.col2 DIV cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5761
SELECT ALL - cor0.col2 / cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1
-1
-1

query I rowsort
SELECT - cor0.col0 - 60 * - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1534
2537
4897

query I rowsort
SELECT + cor0.col2 * + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT + 90 FROM tab1 cor0 GROUP BY cor0.col0
----
90
90
90

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
82

query I rowsort
SELECT 45 FROM tab0 AS cor0 GROUP BY col1
----
45
45

query I rowsort
SELECT ALL 22 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
22
22
22

query I rowsort
SELECT ALL + 12 FROM tab1 AS cor0 GROUP BY col0
----
12
12
12

query I rowsort
SELECT + 92 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0
----
92
92
92

query I rowsort
SELECT ALL - cor0.col1 + col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-57
38
79

query I rowsort
SELECT - 81 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
-81
-81
-81

query I rowsort
SELECT ( cor0.col1 ) * cor0.col2 + cor0.col1 FROM tab2 AS cor0 GROUP BY col1, col2
----
2419
4720
5368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * - col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1817
-552
-874

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT 79 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
79
79
79

query I rowsort
SELECT DISTINCT cor0.col1 * - 69 * ( cor0.col1 ) FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
-452709
0

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
-81
0
0

query I rowsort
SELECT DISTINCT - 68 * - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
2788
4012
4148

query I rowsort
SELECT 42 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY col0
----
125
68
85

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT ALL ( 82 ) FROM tab1 cor0 GROUP BY cor0.col1
----
82
82
82

query I rowsort
SELECT 51 * - col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2295
-3621
-408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col2 col0 FROM tab2 cor0 GROUP BY col2, cor0.col1
----
-3364
-6241
-7569

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT ( - 88 ) FROM tab2 AS cor0 GROUP BY col1
----
-88

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
41
59
61

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
41
59
61

query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0, cor0.col0
----
45
71
8

query I rowsort
SELECT ( 81 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
81
81

query I rowsort
SELECT ALL - 78 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-78
-78
-78

query I rowsort
SELECT 61 * + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
2501
3599
3721

query I rowsort
SELECT - - 13 FROM tab0, tab1 AS cor0, tab2 AS cor1 GROUP BY cor0.col2
----
13
13
13

query I rowsort
SELECT + + 80 AS col1 FROM tab2, tab2 AS cor0 GROUP BY tab2.col2
----
80
80
80

query I rowsort
SELECT ALL - - tab2.col0 AS col0 FROM tab2, tab0 AS cor0 GROUP BY tab2.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT 62 + + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
100
141
86

query I rowsort
SELECT ALL + cor0.col1 * cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT - 40 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-40
-40
-40

query I rowsort
SELECT ALL 81 FROM tab1 cor0 GROUP BY cor0.col2
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT cor0.col2 DIV col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5802
SELECT cor0.col2 / col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1
1
1

query I rowsort
SELECT ALL cor0.col2 * - 11 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-495
-781
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5804
SELECT - cor0.col2 + cor0.col2 DIV + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-23
-37
-78

skipif mysql # not compatible
query I rowsort label-5804
SELECT - cor0.col2 + cor0.col2 / + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-23
-37
-78

query I rowsort
SELECT DISTINCT + cor0.col1 + 72 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
113
131
133

query I rowsort
SELECT ALL + 19 FROM tab0 AS cor0 GROUP BY cor0.col1
----
19
19

query I rowsort
SELECT 0 AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
0
0

query I rowsort
SELECT - 57 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-57
-57
-57

query I rowsort
SELECT 35 FROM tab0 AS cor0 GROUP BY col1
----
35
35

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL - ( - ( + tab1.col1 ) ) AS col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT + 35 FROM tab0 GROUP BY tab0.col0
----
35
35
35

query I rowsort
SELECT - cor0.col1 + + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
30

query I rowsort
SELECT ALL + tab2.col2 FROM tab2 GROUP BY col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT - CAST( NULL AS SIGNED ) * cor0.col1 + - cor0.col1 + - CAST( NULL AS SIGNED ) * 23 AS col1 FROM tab1 cor0 GROUP BY cor0.col0, col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT - CAST ( NULL AS INTEGER ) * cor0.col1 + - cor0.col1 + - CAST ( NULL AS INTEGER ) * 23 AS col1 FROM tab1 cor0 GROUP BY cor0.col0, col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 23 + 43 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
66

query I rowsort
SELECT ALL 82 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
82
82
82

query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-58
-79
-87

query I rowsort
SELECT col2 + - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT - + 14 FROM tab1 GROUP BY tab1.col0
----
-14
-14
-14

query I rowsort
SELECT - 88 FROM tab2 GROUP BY tab2.col2
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 GROUP BY col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY col1
----
NULL

query I rowsort
SELECT ALL + 35 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
35
35
35

query I rowsort
SELECT 26 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
26
26
26

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL cor0.col0 * - 87 + 44 FROM tab2 AS cor0 GROUP BY col0
----
-1261
-7873
-7960

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT DISTINCT ( ( + cor0.col1 ) ) FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-80

query I rowsort
SELECT ALL 24 FROM tab0 cor0 GROUP BY cor0.col2
----
24
24
24

query I rowsort
SELECT col2 * + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5834
SELECT ALL + cor0.col2 + - CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL + cor0.col2 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col0 * - 42 AS col2 FROM tab2 AS cor0 GROUP BY col0
----
-3822
-3864
-630

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT + 74 FROM tab0 AS cor0 GROUP BY col1
----
74
74

query I rowsort
SELECT 41 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
41
41
41

query I rowsort
SELECT DISTINCT + + 87 * 82 AS col0 FROM tab0 GROUP BY col1
----
7134

query I rowsort
SELECT DISTINCT 6 FROM tab2 cor0 GROUP BY cor0.col0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 - - 43 col1 FROM tab0, tab2 cor0, tab1 AS cor1 GROUP BY cor0.col1
----
102
104
84

query I rowsort
SELECT + 32 FROM tab2 AS cor0 GROUP BY cor0.col0
----
32
32
32

query I rowsort
SELECT 58 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
58
58
58

query I rowsort
SELECT + 79 + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
120
138
140

query I rowsort
SELECT - 67 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-67
-67
-67

query I rowsort
SELECT 87 + cor0.col2 FROM tab2 AS cor0 GROUP BY col2
----
145
166
174

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
-6

query I rowsort
SELECT ALL 34 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
34
34
34

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0, cor0.col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - cor0.col1 + + cor0.col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
-12
2
27

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT 81 * tab0.col2 FROM tab0 GROUP BY col2
----
1944
3078
6399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
9
9
9

query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-2025
-5041
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT ALL + CAST( - 53 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL + CAST ( - 53 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-53
-53
-53

query I rowsort
SELECT ALL + ( cor0.col0 ) + 10 FROM tab0 AS cor0 GROUP BY col1, col0
----
36
53
93

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab2 cor0 GROUP BY cor0.col2 HAVING NULL = NULL
----

query I rowsort
SELECT + cor0.col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5860
SELECT - col2 DIV + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5860
SELECT - col2 / + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

query I rowsort
SELECT cor0.col0 + + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
166
52
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5863
SELECT DISTINCT cor0.col2 DIV ( 31 ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1
2

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT cor0.col2 / ( 31 ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1
2

query I rowsort
SELECT + 82 FROM tab0 AS cor0 GROUP BY cor0.col1
----
82
82

query I rowsort
SELECT 31 FROM tab2, tab2 AS cor0, tab2 cor1 GROUP BY tab2.col0
----
31
31
31

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col2
----
-45
-71
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT ALL - CAST( NULL AS SIGNED ) + 21 FROM tab2 GROUP BY col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL - CAST ( NULL AS INTEGER ) + 21 FROM tab2 GROUP BY col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT + 26 FROM tab2 GROUP BY col2
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-72

query I rowsort
SELECT + 24 FROM tab2 AS cor0 GROUP BY cor0.col2
----
24
24
24

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-15
-91
-92

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL 49 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-2
-2
-2

query I rowsort
SELECT ALL + 23 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1
----
23
23

query I rowsort
SELECT ALL col2 * 56 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3248
4424
4872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + ( - 78 ) col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-3510
-5538
-624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
118
122
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 18 FROM tab1, tab1 AS cor0 GROUP BY tab1.col2
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT DISTINCT - 67 DIV - cor0.col0 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT - 67 / - cor0.col0 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT ALL CAST( NULL AS SIGNED ) + - cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5883
SELECT ALL CAST ( NULL AS INTEGER ) + - cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT 9 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
9
9
9

query I rowsort
SELECT DISTINCT 7 * + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, col1
----
182
301
581

query I rowsort
SELECT 93 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT - cor0.col1 DIV ( - cor0.col1 ) col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5887
SELECT - cor0.col1 / ( - cor0.col1 ) col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT + 33 FROM tab1, tab0 AS cor0, tab2 cor1 GROUP BY cor0.col2
----
33
33
33

query I rowsort
SELECT ALL 43 * - col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-2494
-3397
-3741

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5890
SELECT + CAST( NULL AS DECIMAL ) + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT + CAST ( NULL AS REAL ) + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2, cor1.col1
----
9 values hashing to 7a3bee88c68cb011ab3d0cb5e0bd7e7c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - 92 col0 FROM tab0 cor0 GROUP BY cor0.col0, col1
----
-2392
-3956
-7636

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1 GROUP BY cor0.col0
----
225
8281
8464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + cor0.col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
102
115
14

query I rowsort
SELECT + 43 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
43
43
43

query I rowsort
SELECT - 62 * 7 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-434
-434
-434

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1 cor0 GROUP BY col2, cor0.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 col2 FROM tab0 cor0 GROUP BY cor0.col0
----
38
38
38

query I rowsort
SELECT + ( + 84 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
84
84
84

query I rowsort
SELECT + 35 * cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
1575
2485
280

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT 67 AS col2 FROM tab1 cor0 GROUP BY col1
----
67
67
67

query I rowsort
SELECT - + tab0.col0 FROM tab0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT col0 + - 54 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-11
-28
29

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
45
71
8

query I rowsort
SELECT cor0.col2 + - 16 + - cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
-16
-16
-16

query I rowsort
SELECT cor0.col0 * - cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1305
-5336
-7189

query I rowsort
SELECT ALL 52 FROM tab1 AS cor0 GROUP BY col1
----
52
52
52

query I rowsort
SELECT + 46 FROM tab2 AS cor0 GROUP BY col0
----
46
46
46

query I rowsort
SELECT - 62 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-62
-62

query I rowsort
SELECT + + col1 FROM tab0 GROUP BY tab0.col1
----
0
81

query I rowsort
SELECT ALL col0 * col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT ALL + 70 FROM tab1 AS cor0 GROUP BY col2
----
70
70
70

query I rowsort
SELECT 96 FROM tab1 cor0 GROUP BY col0
----
96
96
96

query I rowsort
SELECT - 47 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-35

query I rowsort
SELECT ALL - tab2.col2 + - tab2.col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
-116
-158
-174

query I rowsort
SELECT - cor0.col0 FROM tab1, tab2 cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1 HAVING NULL > NULL
----

query I rowsort
SELECT 56 FROM tab1 AS cor0 GROUP BY cor0.col0
----
56
56
56

query I rowsort
SELECT ALL + 37 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
37
37
37

query I rowsort
SELECT ALL + 11 + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, col1
----
11
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 * 35 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3010

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
77

query I rowsort
SELECT - tab2.col0 FROM tab2, tab1 AS cor0 GROUP BY tab2.col0
----
-15
-91
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
15
15
15

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT + 15 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
15
15
15

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT 69 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
69

query I rowsort
SELECT - cor0.col2 + 19 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-19
-5
-60

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT cor0.col2 * cor0.col2 + - 38 * + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col1
----
-240
2343
315

query I rowsort
SELECT + 22 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1 GROUP BY cor1.col2
----
22
22
22

query I rowsort
SELECT - 76 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-76
-76
-76

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col1, col1, cor0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * 57 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
4617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 col1 FROM tab1 GROUP BY col2
----
-6

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
26
43
83

query I rowsort
SELECT ALL + tab1.col0 * - 57 FROM tab1 GROUP BY tab1.col0
----
-1254
-1596
-4674

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + cor0.col2 col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
-19
-45
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5946
SELECT ALL - cor0.col1 * + CAST( - 11 AS SIGNED ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
451
649
671

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL - cor0.col1 * + CAST ( - 11 AS INTEGER ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
451
649
671

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
51

query I rowsort
SELECT ALL + ( cor0.col2 + - cor0.col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
0
0
0

query I rowsort
SELECT ALL 99 + + 94 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
193
193
193

query I rowsort
SELECT - cor0.col2 + - 51 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-122
-59
-96

query I rowsort
SELECT 9 - + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-15
-29
-70

query I rowsort
SELECT - 77 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
-77
-77
-77

query I rowsort
SELECT - 30 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5954
SELECT + CAST( 32 AS SIGNED ) * cor0.col1 * - cor0.col1 + - ( + cor0.col1 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-104025
-1158
-61996

skipif mysql # not compatible
query I rowsort label-5954
SELECT + CAST ( 32 AS INTEGER ) * cor0.col1 * - cor0.col1 + - ( + cor0.col1 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-104025
-1158
-61996

onlyif mysql # DIV for integer division: 
query I rowsort label-5955
SELECT ALL - cor0.col0 DIV - 61 + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
24
39
79

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL - cor0.col0 / - 61 + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
24
39
79

query I rowsort
SELECT ALL 80 FROM tab0 AS cor0 GROUP BY cor0.col2
----
80
80
80

query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab2 GROUP BY tab2.col1
----
43

query I rowsort
SELECT + 19 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
19
19
19

query I rowsort
SELECT ALL + - 79 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
-79
-79
-79

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT 97 FROM tab0 AS cor0 GROUP BY cor0.col1
----
97
97

query I rowsort
SELECT + cor0.col0 * + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
132
1596
3608

query I rowsort
SELECT ( + cor0.col0 ) AS col1 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 46 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-46

query I rowsort
SELECT ALL + 86 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
86
86
86

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT 37 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
37

query I rowsort
SELECT 5 + cor0.col2 FROM tab1 cor0 GROUP BY col0, cor0.col2
----
13
50
76

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
26
43
83

query I rowsort
SELECT ALL 87 FROM tab2 cor0 GROUP BY cor0.col1
----
87
87
87

query I rowsort
SELECT 80 AS col0 FROM tab1 cor0 GROUP BY col1
----
80
80
80

query I rowsort
SELECT + - ( - cor0.col1 ) * cor0.col1 AS col2 FROM tab2, tab0 cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT cor0.col0 * + ( cor0.col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
1305
5336
7189

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 cor0 GROUP BY col0, cor0.col2
----
22
28
82

query I rowsort
SELECT ALL - 44 * + cor0.col1 * + col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-153164
-163724
-73964

query I rowsort
SELECT - + col2 FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT 2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2
2
2

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT 25 FROM tab1 AS cor0 GROUP BY cor0.col2
----
25
25
25

query I rowsort
SELECT ( - cor0.col1 + + 65 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-16
65

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
81

query I rowsort
SELECT 26 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
26
26
26

query I rowsort
SELECT + 43 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col2
----
43
43
43

query I rowsort
SELECT ALL + ( cor0.col2 ) + - ( - 74 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
119
145
82

query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
22
28
82

query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0 GROUP BY tab0.col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col0 ) col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT + tab2.col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
10

query I rowsort
SELECT 88 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( + cor0.col0 ) col0 FROM tab1 cor0 GROUP BY cor0.col0, col2, cor0.col1
----
-1260
-176
-5822

query I rowsort
SELECT cor0.col0 * 27 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
2457
2484
405

query I rowsort
SELECT ALL - 90 * 7 FROM tab1 GROUP BY tab1.col1
----
-630
-630
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-5996
SELECT DISTINCT cor0.col2 * cor0.col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT cor0.col2 * cor0.col2 / cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
-1444
-576
-6241

query I rowsort
SELECT 47 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
47
47
47

query I rowsort
SELECT cor0.col0 + col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT 47 * cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1128
1786
3713

query I rowsort
SELECT ALL 24 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
24
24

query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
142
16
90

query I rowsort
SELECT - 24 FROM tab1, tab2 AS cor0 GROUP BY tab1.col1
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
19
19
19

query I rowsort
SELECT 8 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
8
8
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT - cor0.col1 * 99 DIV 10 + col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-391
-507
-53

skipif mysql # not compatible
query I rowsort label-6006
SELECT - cor0.col1 * 99 / 10 + col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-391
-507
-53

query I rowsort
SELECT + cor0.col1 * + 85 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, col1
----
3485
5015
5185

query I rowsort
SELECT - col2 + + 62 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
-17
24
38

query I rowsort
SELECT - 61 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-61
-61
-61

query I rowsort
SELECT + col0 + 54 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
137
80
97

query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col1 * + 4 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
247
273
32

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT ALL col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL col1 / cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
1
1
1

query I rowsort
SELECT ( col0 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT 67 FROM tab2 AS cor0 GROUP BY cor0.col0
----
67

query I rowsort
SELECT DISTINCT + 37 * - 66 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
-2442

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 GROUP BY col0, col1
----
22
28
82

query I rowsort
SELECT 75 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col2 FROM tab0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT - - cor0.col0 + + cor0.col0 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
166
52
86

query I rowsort
SELECT + 15 FROM tab2 AS cor0 GROUP BY cor0.col1
----
15
15
15

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-15
-91
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
-2025
-5041
-64

query I rowsort
SELECT ALL 32 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
32
32
32

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT 4 - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor0.col0
----
-11
-87
-88

query I rowsort
SELECT DISTINCT cor0.col1 + 53 * 38 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
2020
2058
2071

query I rowsort
SELECT DISTINCT ( col1 ) + cor0.col1 + 16 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
104
130
28

query I rowsort
SELECT + 23 FROM tab1 AS cor0 GROUP BY cor0.col0
----
23
23
23

query I rowsort
SELECT ALL ( 29 ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
29
29
29

query I rowsort
SELECT ALL 18 FROM tab1 GROUP BY tab1.col0
----
18
18
18

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col0 FROM tab1 AS cor0 GROUP BY col0, col2
----
-45
-71
-8

query I rowsort
SELECT - - cor0.col2 * - cor0.col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
-3364
-6241
-7569

query I rowsort
SELECT - 8 + 32 FROM tab1 GROUP BY tab1.col2
----
24
24
24

query I rowsort
SELECT - 20 + tab2.col1 FROM tab2 GROUP BY tab2.col1
----
21
39
41

query I rowsort
SELECT 73 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
73
73
73

query I rowsort
SELECT - - 63 FROM tab2 GROUP BY col2
----
63
63
63

query I rowsort
SELECT DISTINCT + - cor0.col1 * 19 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
-1539
0

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 cor0 GROUP BY col2, col0, cor0.col1
----
-41
-59
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6043
SELECT 66 DIV col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6043
SELECT 66 / col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT - 51 DIV cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, col2
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6044
SELECT - 51 / cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, col2
----
-1
-2
0

query I rowsort
SELECT + cor0.col0 * 86 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1290
7826
7912

query I rowsort
SELECT ALL cor0.col0 * - 23 + cor0.col0 * - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1428
-8610
-990

query I rowsort
SELECT ALL - col1 + 43 FROM tab0 AS cor0 GROUP BY cor0.col1, col1
----
-38
43

query I rowsort
SELECT - cor0.col1 - - col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT cor0.col0 * 4 FROM tab0 AS cor0 GROUP BY cor0.col0
----
104
172
332

query I rowsort
SELECT + ( + ( cor0.col2 ) ) FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + tab0.col1 AS col0 FROM tab0 GROUP BY col1
----
-81
0

query I rowsort
SELECT ALL - - cor0.col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT cor0.col0 * + ( + cor0.col0 ) * - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-3375
-753571
-778688

query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2, cor0.col2
----
-51

query I rowsort
SELECT DISTINCT + 21 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
21

query I rowsort
SELECT DISTINCT - 65 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-65

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-81
0

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT - col1 * - 8 AS col1 FROM tab1 GROUP BY tab1.col1
----
352
456
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 + + cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
137
158
166

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT cor0.col1 - - cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
118
122
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT cor0.col1 + + cor0.col1 DIV 72 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6067
SELECT cor0.col1 + + cor0.col1 / 72 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
82

query I rowsort
SELECT + cor0.col1 + - cor0.col2 * 5 AS col2 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
-249
-336
-374

query I rowsort
SELECT 45 FROM tab1, tab1 cor0, tab1 AS cor1 GROUP BY cor1.col0
----
45
45
45

query I rowsort
SELECT DISTINCT cor0.col1 + - 29 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
12
30
32

query I rowsort
SELECT 26 FROM tab2 AS cor0 GROUP BY cor0.col1
----
26
26
26

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT ( 69 ) FROM tab2 AS cor0 GROUP BY col2
----
69
69
69

query I rowsort
SELECT DISTINCT + 89 FROM tab2 cor0 GROUP BY cor0.col1
----
89

query I rowsort
SELECT ALL + 44 + - cor0.col0 * + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col2
----
-1216
-132
-5778

query I rowsort
SELECT + cor0.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT - 14 FROM tab2 GROUP BY tab2.col1
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - ( 49 ) FROM tab1 cor0 GROUP BY cor0.col0
----
-49

query I rowsort
SELECT DISTINCT - 13 * + 46 * - cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1
----
13156
16744
49036

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2 GROUP BY col2
----
58
79
87

query I rowsort
SELECT DISTINCT 6 FROM tab0 AS cor0 GROUP BY cor0.col2
----
6

query I rowsort
SELECT - 75 + - 59 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
-134
-134
-134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
0
0
81

query I rowsort
SELECT 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
6
6
6

query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1944
0
0

query I rowsort
SELECT ALL + + cor0.col0 AS col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT 23 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
23

query I rowsort
SELECT 75 FROM tab1 AS cor0 GROUP BY cor0.col0
----
75
75
75

query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-22
-28
-82

query I rowsort
SELECT cor0.col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

query I rowsort
SELECT 16 FROM tab0 AS cor0 GROUP BY cor0.col2
----
16
16
16

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL 40 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
122
62
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6095
SELECT - tab2.col2 DIV col2 FROM tab2 GROUP BY col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6095
SELECT - tab2.col2 / col2 FROM tab2 GROUP BY col2
----
-1
-1
-1

query I rowsort
SELECT - - 96 AS col2 FROM tab0, tab0 AS cor0 GROUP BY tab0.col2
----
96
96
96

query I rowsort
SELECT ALL 89 FROM tab0 GROUP BY tab0.col0
----
89
89
89

query I rowsort
SELECT 19 FROM tab2 AS cor0 GROUP BY cor0.col0
----
19
19
19

query I rowsort
SELECT 83 * + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
3403
4897
5063

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT + - 49 + cor0.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1 GROUP BY cor0.col0
----
-21
-27
33

query I rowsort
SELECT - 47 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
-45
-71
-8

query I rowsort
SELECT + 1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT ALL cor0.col2 + cor0.col0 * - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1215
-168
-5751

query I rowsort
SELECT ALL + 38 AS col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2
----
38
38
38

query I rowsort
SELECT 73 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
73
73
73

query I rowsort
SELECT tab0.col0 * - tab0.col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
-1849
-676
-6889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6111
SELECT ALL cor0.col2 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL cor0.col2 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT DISTINCT 34 * - cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
-3094
-3128
-510

query I rowsort
SELECT + 79 FROM tab2 cor0 GROUP BY cor0.col0
----
79
79
79

query I rowsort
SELECT DISTINCT + - 94 FROM tab0 GROUP BY tab0.col2
----
-94

query I rowsort
SELECT 97 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
97
97
97

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT + - tab2.col2 + - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
-116
-158
-174

query I rowsort
SELECT 59 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1, col2
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 GROUP BY col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 GROUP BY col2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT - tab0.col0 - col0 FROM tab0 GROUP BY col0
----
-166
-52
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT - cor0.col1 DIV cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6124
SELECT - cor0.col1 / cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-1
-1
-1

query I rowsort
SELECT ALL cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT - 12 FROM tab2 GROUP BY tab2.col1
----
-12

query I rowsort
SELECT DISTINCT 95 - 45 FROM tab0 AS cor0 GROUP BY cor0.col0
----
50

query I rowsort
SELECT ALL - cor1.col0 - - cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
0
0
0

query I rowsort
SELECT + cor0.col2 + - 91 FROM tab1 cor0 GROUP BY cor0.col2
----
-20
-46
-83

query I rowsort
SELECT ALL 42 AS col2 FROM tab0 GROUP BY col1
----
42
42

query I rowsort
SELECT DISTINCT + cor0.col1 * 11 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
0
891

query I rowsort
SELECT DISTINCT 76 FROM tab0 cor0 GROUP BY cor0.col2
----
76

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL ( cor0.col2 ) * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT 44 FROM tab0 AS cor0 GROUP BY cor0.col0
----
44
44
44

query I rowsort
SELECT ALL - 16 + cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
12
6
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col0 FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT ALL 1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
1
1
1

query I rowsort
SELECT DISTINCT - 72 FROM tab2 AS cor0 GROUP BY col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6140
SELECT DISTINCT + cor0.col0 DIV 21 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6140
SELECT DISTINCT + cor0.col0 / 21 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT DISTINCT CAST( cor0.col1 AS SIGNED ) FROM tab1 cor0 GROUP BY col1
----
44
57
6

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT CAST ( cor0.col1 AS INTEGER ) FROM tab1 cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT ALL + 39 FROM tab0 AS cor0 GROUP BY cor0.col1, col0, cor0.col1
----
39
39
39

query I rowsort
SELECT + 86 * - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-2236
-3698
-7138

query I rowsort
SELECT - 43 FROM tab2 cor0 GROUP BY cor0.col0
----
-43
-43
-43

query I rowsort
SELECT + - 58 FROM tab0 GROUP BY col1
----
-58
-58

query I rowsort
SELECT ALL - cor0.col2 * - 44 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
1980
3124
352

query I rowsort
SELECT DISTINCT - - tab0.col0 AS col2 FROM tab0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + cor0.col2 + + 79 col2 FROM tab0 AS cor0 GROUP BY col2
----
111
125
166

query I rowsort
SELECT + 85 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
85
85
85

query I rowsort
SELECT 24 FROM tab2 AS cor0 GROUP BY col1
----
24
24
24

query I rowsort
SELECT DISTINCT - 11 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-11

query I rowsort
SELECT ALL + 54 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
54
54
54

query I rowsort
SELECT 65 FROM tab0, tab2 cor0, tab2 AS cor1 GROUP BY cor1.col1
----
65
65
65

query I rowsort
SELECT ALL + 11 FROM tab1 AS cor0 GROUP BY cor0.col2
----
11
11
11

query I rowsort
SELECT ALL - tab0.col0 FROM tab0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT - 40 AS col0 FROM tab0 cor0 GROUP BY col1
----
-40
-40

query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2 GROUP BY col0
----
-15
-91
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT - 78 DIV - 67 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6159
SELECT - 78 / - 67 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT - 51 * cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1326
-2193
-4233

query I rowsort
SELECT + cor0.col0 * - cor0.col2 * 93 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-191022
-293322
-95976

query I rowsort
SELECT ALL + 1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT ALL + cor0.col0 * + cor0.col1 + - 54 + - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
3626
5224
846

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
6

query I rowsort
SELECT DISTINCT + 89 FROM tab0 AS cor0 GROUP BY cor0.col2
----
89

query I rowsort
SELECT ALL + cor0.col0 * - ( - cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor1.col2 col0 FROM tab0, tab1 AS cor0, tab0 AS cor1 GROUP BY cor1.col2
----
24
38
79

query I rowsort
SELECT + cor0.col2 + + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0, col2
----
116
158
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6171
SELECT CAST( cor0.col0 AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

skipif mysql # not compatible
query I rowsort label-6171
SELECT CAST ( cor0.col0 AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL + 11 FROM tab0 AS cor0 GROUP BY col0
----
11
11
11

query I rowsort
SELECT - 49 FROM tab0 GROUP BY tab0.col1
----
-49
-49

query I rowsort
SELECT - 54 * - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
2214
3186
3294

query I rowsort
SELECT col2 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT 42 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
42
42

query I rowsort
SELECT ALL + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
41
59
61

query I rowsort
SELECT ALL 47 FROM tab1 AS cor0 GROUP BY cor0.col0
----
47
47
47

query I rowsort
SELECT ALL - 91 * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-2002
-2548
-7462

query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
58
79
87

query I rowsort
SELECT 26 FROM tab1 AS cor0 GROUP BY cor0.col2
----
26
26
26

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1681
3481
3721

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT + 5 + tab2.col0 FROM tab2 GROUP BY col0
----
20
96
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT 89 FROM tab2 GROUP BY tab2.col0
----
89
89
89

query I rowsort
SELECT DISTINCT + 12 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
12

query I rowsort
SELECT ALL ( 18 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col1 FROM tab1 cor0 GROUP BY col0
----
-83

query I rowsort
SELECT ALL 59 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
59
59
59

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL - col2 * 19 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-1102
-1501
-1653

query I rowsort
SELECT - + 54 + - 47 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col2
----
-101
-101
-101

query I rowsort
SELECT ALL - 24 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-24
-24
-24

query I rowsort
SELECT ALL - 3 - - cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1
----
19
25
79

query I rowsort
SELECT DISTINCT 79 FROM tab1 AS cor0 GROUP BY col0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT ALL - CAST( NULL AS SIGNED ) + - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT ALL - CAST ( NULL AS INTEGER ) + - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT 80 * + col2 FROM tab0 cor0 GROUP BY cor0.col2
----
1920
3040
6320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY col2
----
NULL
NULL
NULL

query I rowsort
SELECT 18 FROM tab1 GROUP BY tab1.col2
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * + cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-3240
-5112
-576

query I rowsort
SELECT ( 29 ) - - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
100
37
74

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col2
----
45
71
8

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
1849
676
6889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6207
SELECT cor0.col1 + + cor0.col1 * - CAST( - 37 + cor0.col1 AS SIGNED ) * col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-13508
-64923
1122

skipif mysql # not compatible
query I rowsort label-6207
SELECT cor0.col1 + + cor0.col1 * - CAST ( - 37 + cor0.col1 AS INTEGER ) * col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-13508
-64923
1122

query I rowsort
SELECT col1 + - cor0.col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
0

query I rowsort
SELECT cor0.col0 * 91 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
2366
3913
7553

query I rowsort
SELECT - 78 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
53

query I rowsort
SELECT ALL - 73 + cor0.col2 AS col2 FROM tab2, tab2 cor0 GROUP BY cor0.col2
----
-15
14
6

query I rowsort
SELECT + 22 * - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1562
-176
-990

query I rowsort
SELECT + 30 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
30
30
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6216
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6216
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 * 15 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1365
1380
225

query I rowsort
SELECT ALL - cor0.col0 * 1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT - - cor0.col2 AS col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT - 35 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-35
-35
-35

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT - cor0.col1 + - cor0.col1 * cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col1
----
-1722
-3540
-3782

query I rowsort
SELECT 14 + + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
38
52
93

query I rowsort
SELECT ALL 23 + 68 FROM tab2 AS cor0 GROUP BY cor0.col0
----
91
91
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6225
SELECT - cor0.col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT - cor0.col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + tab1.col2 AS col2 FROM tab1 GROUP BY col2
----
45
71
8

query I rowsort
SELECT + 34 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
34
34
34

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT cor0.col1 * cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 39 FROM tab2 cor0 GROUP BY cor0.col1
----
39
39
39

query I rowsort
SELECT ALL - 14 AS col2 FROM tab0 GROUP BY tab0.col2
----
-14
-14
-14

query I rowsort
SELECT ALL - col1 * + tab1.col1 AS col0 FROM tab1 GROUP BY tab1.col1
----
-1936
-3249
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 col2 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col2 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col0 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
86
86
86

query I rowsort
SELECT DISTINCT cor0.col2 * + 72 AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
4176
5688
6264

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
-54

query I rowsort
SELECT - tab2.col2 FROM tab2, tab0 AS cor0 GROUP BY tab2.col2
----
-58
-79
-87

query I rowsort
SELECT 80 * 83 FROM tab0 GROUP BY tab0.col0
----
6640
6640
6640

query I rowsort
SELECT ALL - 28 - cor0.col2 * cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2, col0
----
-2053
-5069
-92

query I rowsort
SELECT ALL - cor0.col0 + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
0
0
0

query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-57

query I rowsort
SELECT ALL - 45 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-45
-45

query I rowsort
SELECT ALL + 8 FROM tab2 AS cor0 GROUP BY cor0.col1
----
8
8
8

query I rowsort
SELECT ALL + 20 FROM tab2 AS cor0 GROUP BY cor0.col0
----
20
20
20

query I rowsort
SELECT - cor0.col2 + + 54 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-17
46
9

query I rowsort
SELECT ALL - 85 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT cor0.col2 + 81 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
126
152
89

query I rowsort
SELECT - 12 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-12
-12
-12

query I rowsort
SELECT cor0.col1 - 8 AS col2 FROM tab1 cor0 GROUP BY col2, col1
----
-2
36
49

query I rowsort
SELECT ALL - 7 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-35

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
47

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + cor0.col0 col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
164
44
56

query I rowsort
SELECT 27 FROM tab0 AS cor0 GROUP BY cor0.col2
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
70
70
70

query I rowsort
SELECT ALL + 53 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
53
53
53

query I rowsort
SELECT ALL + ( - 12 ) AS col1 FROM tab1 AS cor0 GROUP BY col0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT - cor0.col2 * 65 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-3770
-5135
-5655

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT 46 FROM tab1 AS cor0 GROUP BY cor0.col0
----
46
46
46

query I rowsort
SELECT + + 7 FROM tab0, tab2 AS cor0, tab1 AS cor1 GROUP BY cor1.col2
----
7
7
7

query I rowsort
SELECT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor1.col0
----
26
43
83

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT DISTINCT - + 42 * 15 AS col2 FROM tab0, tab0 cor0 GROUP BY cor0.col0
----
-630

query I rowsort
SELECT + cor0.col0 + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
124
26
83

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - 11 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
5
5
5

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
44
57
6

query I rowsort
SELECT DISTINCT - 35 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-35

query I rowsort
SELECT - 70 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
-70
-70
-70

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT - 90 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-90
-90
-90

query I rowsort
SELECT ALL + 91 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
91
91
91

query I rowsort
SELECT 39 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
39
39

query I rowsort
SELECT DISTINCT 37 FROM tab1 AS cor0 GROUP BY col1
----
37

query I rowsort
SELECT ALL - 94 AS col1 FROM tab0 GROUP BY tab0.col2
----
-94
-94
-94

query I rowsort
SELECT 39 FROM tab1 AS cor0 GROUP BY cor0.col2
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6288
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 41 * cor0.col0 FROM tab0 cor0 GROUP BY cor0.col0
----
1066
1763
3403

query I rowsort
SELECT DISTINCT 99 FROM tab1 AS cor0 GROUP BY cor0.col0
----
99

query I rowsort
SELECT - - 74 FROM tab2 GROUP BY tab2.col2
----
74
74
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6292
SELECT ALL CAST( NULL AS DECIMAL ) / cor0.col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6292
SELECT ALL CAST ( NULL AS REAL ) / cor0.col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT 78 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
78
78
78

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
484
6724
784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
-26
-43
-83

query I rowsort
SELECT - 20 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-20
-20
-20

query I rowsort
SELECT + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col2
----
45
71
8

query I rowsort
SELECT ALL 99 * - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 GROUP BY cor0.col0
----
-2178
-2772
-8118

query I rowsort
SELECT - cor0.col1 + - cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY col0, cor0.col1, cor0.col0, cor0.col2
----
-162
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6300
SELECT DISTINCT + 9 DIV - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + 9 / - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT 76 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
76
76
76

query I rowsort
SELECT + col0 AS col1 FROM tab1 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT ( 58 ) AS col0 FROM tab1, tab2 AS cor0 GROUP BY tab1.col2
----
58

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6305
SELECT DISTINCT + cor0.col0 DIV + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT + cor0.col0 / + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1

query I rowsort
SELECT DISTINCT - 3 * - 28 FROM tab0 GROUP BY tab0.col2
----
84

query I rowsort
SELECT + 80 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
80
80
80

query I rowsort
SELECT ALL 59 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, col1, cor0.col1
----
2419
3481
3599

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0 cor0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT 62 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
5642
5704
930

query I rowsort
SELECT ALL cor0.col2 * 41 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
1845
2911
328

query I rowsort
SELECT ALL - + 26 FROM tab0 GROUP BY tab0.col2
----
-26
-26
-26

query I rowsort
SELECT ALL + tab2.col1 * 65 AS col1 FROM tab2 GROUP BY tab2.col1
----
2665
3835
3965

query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1, col0
----
22
28
82

query I rowsort
SELECT ALL 90 FROM tab2 AS cor0 GROUP BY col0
----
90
90
90

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
1936
3249
36

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT + 9 FROM tab1 AS cor0 GROUP BY cor0.col1
----
9

query I rowsort
SELECT DISTINCT 8 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
8

query I rowsort
SELECT ALL col1 * + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
1936
3249
36

query I rowsort
SELECT + ( cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
22
28
82

query I rowsort
SELECT + + 36 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col1
----
36
36

query I rowsort
SELECT - 76 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-76
-76
-76

query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
-22
-28
-82

query I rowsort
SELECT ( 17 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
17
17
17

query I rowsort
SELECT + tab2.col2 + - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + - ( + 4 ) col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-45
-63
-65

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
81

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col2, col1
----
0
0
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1, cor0.col0
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
23
23
23

query I rowsort
SELECT - 84 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-84
-84
-84

query I rowsort
SELECT + cor0.col1 / cor0.col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL GROUP BY cor0.col1
----

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0, col0
----
22
28
82

query I rowsort
SELECT ALL + ( - 16 ) AS col1 FROM tab2 GROUP BY col0
----
-16
-16
-16

query I rowsort
SELECT 87 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
87
87
87

query I rowsort
SELECT + 53 FROM tab1, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
53
53
53

query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - tab2.col0 * 90 col2 FROM tab2 GROUP BY tab2.col0
----
-1350
-8190
-8280

query I rowsort
SELECT ALL 44 FROM tab0 AS cor0 GROUP BY cor0.col2
----
44
44
44

query I rowsort
SELECT cor0.col1 FROM tab2 cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT - 28 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-28
-28
-28

query I rowsort
SELECT ALL - 87 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 GROUP BY cor1.col0
----
-87
-87
-87

query I rowsort
SELECT ALL + 96 FROM tab1 AS cor0 GROUP BY cor0.col1
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT + ( cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 GROUP BY col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + + 85 FROM tab1, tab2 AS cor0 GROUP BY tab1.col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT DISTINCT + 19 * 29 DIV - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-12
-68
-7

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT + 19 * 29 / - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-12
-68
-7

query I rowsort
SELECT ALL 98 FROM tab2 AS cor0 GROUP BY cor0.col0
----
98
98
98

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col2
----
-81
0
0

query I rowsort
SELECT ALL + 88 FROM tab2 AS cor0 GROUP BY col1
----
88
88
88

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab2 GROUP BY tab2.col0
----
33

query I rowsort
SELECT DISTINCT + ( ( - cor0.col1 ) ) * 47 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1927
-2773
-2867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * cor0.col0 col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-2210
-3655
-7055

query I rowsort
SELECT + col0 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT 60 FROM tab1, tab0 cor0, tab1 cor1 GROUP BY tab1.col0
----
60
60
60

query I rowsort
SELECT ( - cor0.col1 + - 44 ) * cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-3485
-6077
-6405

query I rowsort
SELECT + cor0.col2 * 18 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1
----
1422
432
684

query I rowsort
SELECT DISTINCT - 79 * cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col2
----
-1896
-3002
-6241

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT ALL cor0.col0 DIV + 42 FROM tab0 AS cor0 GROUP BY col0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6368
SELECT ALL cor0.col0 / + 42 FROM tab0 AS cor0 GROUP BY col0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT ALL cor0.col1 DIV + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL cor0.col1 / + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT DISTINCT - cor0.col1 * + 31 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1271
-1829
-1891

query I rowsort
SELECT cor0.col2 + cor0.col2 AS col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT 63 FROM tab1, tab2 AS cor0, tab1 AS cor1 GROUP BY cor1.col0
----
63
63
63

query I rowsort
SELECT DISTINCT - 91 AS col1 FROM tab0 AS cor0 GROUP BY col2, cor0.col2
----
-91

query I rowsort
SELECT 99 FROM tab0 AS cor0 GROUP BY cor0.col1
----
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - 98 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-98
-98
-98

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
15
91
92

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-41
-59
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6379
SELECT DISTINCT + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY col2
----
NULL

query I rowsort
SELECT cor0.col2 + 54 * + 6 FROM tab2 AS cor0 GROUP BY col2
----
382
403
411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT DISTINCT + cor0.col2 * cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT + cor0.col2 * cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT - cor0.col1 DIV + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6383
SELECT - cor0.col1 / + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1
-1
-1

query I rowsort
SELECT + ( + col1 * - cor0.col1 ) + 19 * + cor0.col1 + cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
-2301
-2501
-861

onlyif mysql # DIV for integer division: 
query I rowsort label-6385
SELECT 99 DIV + cor0.col1 + 84 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
100
85
86

skipif mysql # not compatible
query I rowsort label-6385
SELECT 99 / + cor0.col1 + 84 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
100
85
86

query I rowsort
SELECT + 31 AS col2 FROM tab0 cor0 GROUP BY col1
----
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1, col2
----
0
0
1944

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ALL - col2 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col0, cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 * - 27 col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
-27864
-55458
-85158

query I rowsort
SELECT ALL - 78 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-78
-78
-78

query I rowsort
SELECT ALL - col0 * - 71 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
1065
6461
6532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL + 66 + col1 FROM tab0 cor0 GROUP BY cor0.col1, col0
----
147
66
66

query I rowsort
SELECT ALL cor0.col1 - cor0.col1 * col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6480
0

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
79

query I rowsort
SELECT 45 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
45
45
45

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col2 * + cor0.col2 - + 46 AS col0 FROM tab0 cor0 GROUP BY col2
----
-13870
-493085
-54918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col0 FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab1 GROUP BY tab1.col2
----
43

query I rowsort
SELECT + 24 + - 31 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-7
-7
-7

query I rowsort
SELECT - 24 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-24
-24
-24

query I rowsort
SELECT ALL + - 85 FROM tab0 GROUP BY col2
----
-85
-85
-85

query I rowsort
SELECT ALL - 66 AS col2 FROM tab1, tab0 cor0 GROUP BY tab1.col0
----
-66
-66
-66

query I rowsort
SELECT ALL + cor0.col0 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT ALL cor0.col0 + + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT + 63 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
63
63
63

query I rowsort
SELECT cor0.col2 * - 5 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-120
-190
-395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT 13 FROM tab1 AS cor0 GROUP BY cor0.col1
----
13
13
13

query I rowsort
SELECT col0 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT + - 57 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-6416
SELECT ALL cor0.col0 DIV cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL cor0.col0 / cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 GROUP BY col1, cor0.col0, cor0.col2
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT ( cor0.col0 * - cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1849
-676
-6889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 col1 FROM tab1 cor0 GROUP BY col2
----
-31

query I rowsort
SELECT ALL + 65 * + cor0.col0 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
1690
2795
5395

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-26
-43
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT CAST( 66 AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-6423
SELECT CAST ( 66 AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
66
66
66

query I rowsort
SELECT + 95 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + tab1.col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT + 2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
2
2

query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
22
28
82

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT ALL - tab1.col0 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT ALL 41 FROM tab0 AS cor0 GROUP BY cor0.col0
----
41
41
41

query I rowsort
SELECT 45 * cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
4095
4140
675

query I rowsort
SELECT - 59 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-59
-59
-59

query I rowsort
SELECT ALL + - cor0.col0 FROM tab0, tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT + 18 FROM tab1 AS cor0 GROUP BY cor0.col2
----
18
18
18

query I rowsort
SELECT + - tab2.col2 + tab2.col2 * + ( 27 ) + tab2.col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
1566
2133
2349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
26
43
83

query I rowsort
SELECT ALL + ( cor0.col1 ) * - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-6561
0
0

query I rowsort
SELECT ALL + - 86 FROM tab0 GROUP BY tab0.col0
----
-86
-86
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6442
SELECT cor0.col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT cor0.col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - cor1.col1 * - ( cor1.col1 ) FROM tab0, tab2 AS cor0, tab0 AS cor1 GROUP BY cor1.col1
----
0
6561

query I rowsort
SELECT - cor0.col1 + - 93 * - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
4048
5244
552

query I rowsort
SELECT ALL + cor0.col2 - - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
158
48
76

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0 cor0 GROUP BY col1
----
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6450
SELECT cor0.col1 DIV 5 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
11
12
8

skipif mysql # not compatible
query I rowsort label-6450
SELECT cor0.col1 / 5 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
11
12
8

query I rowsort
SELECT ALL + + 55 FROM tab2 GROUP BY tab2.col2
----
55
55
55

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT ALL - ( 48 ) FROM tab1, tab1 cor0 GROUP BY tab1.col2
----
-48
-48
-48

query I rowsort
SELECT DISTINCT - cor0.col1 + + 33 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
-48
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL + + cor0.col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2, col1
----
-58
-79
-87

query I rowsort
SELECT ALL 44 - + col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-14
-35
-43

query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-85

query I rowsort
SELECT DISTINCT - 87 FROM tab1, tab1 AS cor0 GROUP BY tab1.col1
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col2
----
-45
-71
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT cor0.col2 DIV - cor0.col2 + - 34 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-6463
SELECT cor0.col2 / - cor0.col2 + - 34 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-35
-35
-35

query I rowsort
SELECT 83 FROM tab0 GROUP BY tab0.col1
----
83
83

query I rowsort
SELECT DISTINCT 81 FROM tab2 AS cor0 GROUP BY cor0.col0
----
81

query I rowsort
SELECT col0 + col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
166
52
86

query I rowsort
SELECT DISTINCT - col1 * 53 + col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-2288
-2964
-312

query I rowsort
SELECT - + 57 * - 30 AS col1 FROM tab1 GROUP BY tab1.col1
----
1710
1710
1710

query I rowsort
SELECT ALL - 3 * - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
273
276
45

query I rowsort
SELECT ALL 92 FROM tab0 cor0 GROUP BY cor0.col0
----
92
92
92

query I rowsort
SELECT DISTINCT + - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT 47 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
47

query I rowsort
SELECT + cor0.col2 * cor0.col2 * cor0.col2 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
13824
493039
54872

query I rowsort
SELECT - 95 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-95
-95
-95

query I rowsort
SELECT + cor0.col1 * + 76 FROM tab2 cor0 GROUP BY cor0.col1
----
3116
4484
4636

query I rowsort
SELECT + 52 FROM tab1 AS cor0 GROUP BY cor0.col2
----
52
52
52

query I rowsort
SELECT ALL + cor0.col0 * 36 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
3276
3312
540

query I rowsort
SELECT + cor0.col1 - + cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

query I rowsort
SELECT - cor0.col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab0 GROUP BY tab0.col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT ALL - + CAST( NULL AS SIGNED ) * cor1.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 GROUP BY cor1.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6483
SELECT ALL - + CAST ( NULL AS INTEGER ) * cor1.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1 GROUP BY cor1.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
2
2
2

query I rowsort
SELECT cor0.col2 + - cor0.col2 * + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-2520
-3053
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT cor0.col2 + + 63 FROM tab0 cor0 GROUP BY col2
----
101
142
87

query I rowsort
SELECT ALL 82 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-16

query I rowsort
SELECT DISTINCT + tab2.col1 AS col1 FROM tab2, tab2 AS cor0 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT cor0.col2 + + 20 + - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
20
20
20

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
3772
5369
915

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT + col0 FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT ALL cor0.col0 + + 41 AS col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
132
133
56

query I rowsort
SELECT ALL + 55 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
55
55
55

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT ALL - cor0.col0 + 46 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-36
18
24

query I rowsort
SELECT ALL 95 AS col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
95
95
95

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
484
6724
784

query I rowsort
SELECT 81 FROM tab1 AS cor0 GROUP BY col0
----
81
81
81

query I rowsort
SELECT cor0.col1 + - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT 15 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15

query I rowsort
SELECT ALL cor0.col1 + - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
0

query I rowsort
SELECT 99 FROM tab2 AS cor0 GROUP BY col2
----
99
99
99

query I rowsort
SELECT DISTINCT + 30 FROM tab1 AS cor0 GROUP BY cor0.col1
----
30

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT 94 FROM tab1 AS cor0 GROUP BY cor0.col0
----
94
94
94

query I rowsort
SELECT ALL - 56 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
-56
-56
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6512
SELECT ALL CAST( NULL AS SIGNED ) * 85 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL CAST ( NULL AS INTEGER ) * 85 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6513
SELECT CAST( - 86 AS SIGNED ) + - cor0.col0 * 48 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1142
-1430
-4022

skipif mysql # not compatible
query I rowsort label-6513
SELECT CAST ( - 86 AS INTEGER ) + - cor0.col0 * 48 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1142
-1430
-4022

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
22
28
82

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT ALL 77 FROM tab2 cor0 GROUP BY cor0.col2
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 AS cor0 GROUP BY col2, col2
----
-58
-79
-87

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT + 72 AS col0 FROM tab0 GROUP BY tab0.col2
----
72
72
72

query I rowsort
SELECT 28 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
28
28
28

query I rowsort
SELECT ALL + 83 - + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
2
83

query I rowsort
SELECT + ( 8 ) FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
8
8
8

query I rowsort
SELECT 12 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
12
12

query I rowsort
SELECT 44 AS col2 FROM tab0 GROUP BY tab0.col0
----
44
44
44

query I rowsort
SELECT cor0.col0 + 62 FROM tab2 AS cor0 GROUP BY cor0.col0
----
153
154
77

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT DISTINCT 41 + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
123
63
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - tab0.col1 col2 FROM tab0, tab1 AS cor0 GROUP BY tab0.col1
----
0
81

query I rowsort
SELECT ALL - 74 FROM tab0 cor0 GROUP BY cor0.col2
----
-74
-74
-74

query I rowsort
SELECT - tab2.col1 * tab2.col1 FROM tab2 GROUP BY col1
----
-1681
-3481
-3721

query I rowsort
SELECT col2 AS col2 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0 HAVING ( NULL ) <= NULL
----

query I rowsort
SELECT + col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab1 AS cor0 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT ALL 26 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * 32 col2 FROM tab2 cor0 GROUP BY cor0.col1
----
1312
1888
1952

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT ALL cor0.col1 - + col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
43
5
56

skipif mysql # not compatible
query I rowsort label-6538
SELECT ALL cor0.col1 - + col1 / cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
43
5
56

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT + 0 - 85 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT col2 * - 13 FROM tab0 cor0 GROUP BY cor0.col2
----
-1027
-312
-494

query I rowsort
SELECT DISTINCT - 16 FROM tab2, tab2 AS cor0, tab0 AS cor1 GROUP BY cor1.col1
----
-16

query I rowsort
SELECT - 80 * 9 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-720
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
54
54

query I rowsort
SELECT + 56 FROM tab0 AS cor0 GROUP BY cor0.col1
----
56
56

query I rowsort
SELECT DISTINCT - 1 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col2
----
-1

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT - - cor0.col2 * - cor0.col2 AS col1 FROM tab1, tab0 cor0 GROUP BY cor0.col2
----
-1444
-576
-6241

query I rowsort
SELECT ALL cor0.col0 - 51 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-36
40
41

query I rowsort
SELECT - ( + cor0.col2 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2, cor1.col0
----
9 values hashing to 976cc931872319f6c60dc588d08fa95d

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) AS col2 FROM tab0 AS cor0 GROUP BY col1
----
-81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6554
SELECT DISTINCT - - ( + 49 ) DIV + cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 GROUP BY cor0.col1
----
0
1

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT - - ( + 49 ) / + cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1 GROUP BY cor0.col1
----
0
1

query I rowsort
SELECT ALL 31 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0
----
31
31
31

query I rowsort
SELECT - 94 * 74 - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-6964
-7001
-7027

query I rowsort
SELECT 41 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
41
41
41

query I rowsort
SELECT ALL - 18 * - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1422
432
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab1 cor0 GROUP BY cor0.col2
----
-45
-71
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
142
16
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + cor0.col2 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
142
16
90

query I rowsort
SELECT - 95 FROM tab0 GROUP BY col0
----
-95
-95
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6563
SELECT CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6563
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 12 FROM tab0 GROUP BY col1
----
12
12

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col1
----
-41
-59
-61

query I rowsort
SELECT cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1, col0
----
41
59
61

query I rowsort
SELECT col1 + 11 AS col1 FROM tab0 GROUP BY tab0.col1
----
11
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - cor0.col1 col2 FROM tab2 cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT + 82 + + 84 AS col2 FROM tab0 GROUP BY tab0.col0
----
166
166
166

query I rowsort
SELECT ALL 81 FROM tab1 AS cor0 GROUP BY col1
----
81
81
81

query I rowsort
SELECT - + 84 AS col2 FROM tab0 GROUP BY tab0.col0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT 7 + cor0.col2 * ( cor0.col1 + cor0.col2 ) AS col2 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
10909
12883
5749

query I rowsort
SELECT - 34 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-34
-34
-34

query I rowsort
SELECT cor0.col0 + - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT cor0.col2 + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
158
48
76

query I rowsort
SELECT ALL cor0.col1 * - 45 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1845
-2655
-2745

query I rowsort
SELECT - + ( cor0.col0 ) AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT 38 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
38
38
38

query I rowsort
SELECT - ( 89 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-89
-89
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6582
SELECT ALL - cor0.col0 DIV 87 - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-15
-92
-93

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL - cor0.col0 / 87 - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-15
-92
-93

query I rowsort
SELECT 83 FROM tab1 AS cor0 GROUP BY cor0.col1
----
83
83
83

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT + tab0.col0 AS col1 FROM tab0, tab2 AS cor0 GROUP BY tab0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
75
75
75

query I rowsort
SELECT col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
58
79
87

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * - cor0.col2 - + cor0.col2 * - cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6589
SELECT col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col2 * ( - 83 ) * cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-168075
-418403
-5312

query I rowsort
SELECT + 89 FROM tab1 AS cor0 GROUP BY cor0.col1
----
89
89
89

query I rowsort
SELECT ALL + 66 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
66
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6593
SELECT cor0.col1 * + CAST( 74 * + cor0.col1 AS SIGNED ) + + 45 col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
143309
240471
2709

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6593
SELECT cor0.col1 * + CAST ( 74 * + cor0.col1 AS INTEGER ) + + 45 col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
143309
240471
2709

query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab2 AS cor0 GROUP BY col0, cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT ( 99 ) * - cor0.col0 * cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
-102168
-203346
-312246

query I rowsort
SELECT DISTINCT - ( tab2.col0 ) AS col2 FROM tab2 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT ALL 2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6598
SELECT + 27 - + cor0.col0 DIV + cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6598
SELECT + 27 - + cor0.col0 / + cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
26
26
26

query I rowsort
SELECT 63 FROM tab0 AS cor0 GROUP BY col0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 + cor0.col0 col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
105
106
29

query I rowsort
SELECT DISTINCT 78 * - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1872
-2964
-6162

query I rowsort
SELECT ALL - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + 64 + + ( - cor0.col0 * - ( - cor0.col1 ) ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-3708
-5305
-851

query I rowsort
SELECT ALL ( cor0.col2 ) * + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
3364
6241
7569

query I rowsort
SELECT - 2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6606
SELECT col0 + - ( cor0.col0 ) DIV + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
25
42
82

skipif mysql # not compatible
query I rowsort label-6606
SELECT col0 + - ( cor0.col0 ) / + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
25
42
82

query I rowsort
SELECT ALL 52 FROM tab1 AS cor0 GROUP BY cor0.col2
----
52
52
52

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6609
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 GROUP BY col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY col2
----
NULL

query I rowsort
SELECT ALL + 67 + + 15 FROM tab0 AS cor0 GROUP BY cor0.col0
----
82
82
82

query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1 GROUP BY cor1.col2
----
45
71
8

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
97
97

query I rowsort
SELECT - 32 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6616
SELECT ALL - CAST( + 0 AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL - CAST ( + 0 AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
0

query I rowsort
SELECT - col2 - - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
0
0
0

query I rowsort
SELECT ALL - 88 AS col1 FROM tab1, tab0 cor0 GROUP BY cor0.col1
----
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + 49 col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
128
73
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
19
19
19

query I rowsort
SELECT + 65 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
65
65
65

query I rowsort
SELECT - ( cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT + 59 FROM tab0 GROUP BY col0
----
59
59
59

query I rowsort
SELECT 54 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col0
----
54
54
54

query I rowsort
SELECT ALL 68 FROM tab1 AS cor0 GROUP BY col1
----
68
68
68

query I rowsort
SELECT DISTINCT cor0.col1 * 9 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
369
531
549

query I rowsort
SELECT ALL - 29 FROM tab0 cor0 GROUP BY cor0.col2
----
-29
-29
-29

query I rowsort
SELECT - 64 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-64
-64
-64

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
50

query I rowsort
SELECT DISTINCT - col1 + + 42 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-17
-19
1

query I rowsort
SELECT DISTINCT 8 FROM tab0 AS cor0 GROUP BY cor0.col0
----
8

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT + - 2 FROM tab2 GROUP BY col0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT + cor0.col0 * + 86 AS col0 FROM tab1 AS cor0 GROUP BY col0
----
1892
2408
7052

query I rowsort
SELECT DISTINCT + 78 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
78

query I rowsort
SELECT - - tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 + + 48 * - 97 col0 FROM tab1 GROUP BY col0
----
-4574
-4628
-4634

query I rowsort
SELECT ALL col0 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query III rowsort
SELECT ALL * FROM tab1 AS cor0 GROUP BY cor0.col0, col2, cor0.col1
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT ALL - cor0.col0 + - col0 + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
-26
-43
-83

query I rowsort
SELECT 6 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
6
6
6

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0 AS cor0 GROUP BY col2, col1
----
24
38
79

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 cor0 GROUP BY col1, col1
----
44
57
6

query I rowsort
SELECT ALL 25 FROM tab2 cor0 GROUP BY cor0.col0, col2
----
25
25
25

query I rowsort
SELECT 13 AS col2 FROM tab0 GROUP BY tab0.col0
----
13
13
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 79 col0 FROM tab1 GROUP BY tab1.col0
----
-79
-79
-79

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL 43 + + col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
126
69
86

query I rowsort
SELECT ALL + 25 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
25
25
25

query I rowsort
SELECT ALL - 92 AS col0 FROM tab0 GROUP BY tab0.col1
----
-92
-92

query I rowsort
SELECT cor0.col2 + 97 FROM tab0 AS cor0 GROUP BY cor0.col2
----
121
135
176

query I rowsort
SELECT ALL + ( + cor0.col2 ) FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL - 62 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT ALL 58 DIV + 54 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6658
SELECT ALL 58 / + 54 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT DISTINCT + 81 + - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1
53
59

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT + 68 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
68
68
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6662
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab2 AS cor0 GROUP BY tab2.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab2, tab2 AS cor0 GROUP BY tab2.col2
----
NULL

query I rowsort
SELECT ALL 1 AS col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
1
1
1

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT ALL 35 - - cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
126
127
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6666
SELECT DISTINCT - 95 DIV cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT - 95 / cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1
-3
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * + 57 col0 FROM tab1 GROUP BY tab1.col2
----
-2565
-4047
-456

query I rowsort
SELECT DISTINCT - cor0.col1 + - 82 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-126
-139
-88

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT - ( - col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT - cor0.col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6672
SELECT - cor0.col1 + - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-118
-122
-82

skipif mysql # not compatible
query I rowsort label-6672
SELECT - cor0.col1 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-118
-122
-82

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT ALL - + tab2.col1 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT - col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT - col0 FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

query I rowsort
SELECT - 91 FROM tab0 cor0 GROUP BY cor0.col1
----
-91
-91

query I rowsort
SELECT ALL + 83 FROM tab1 AS cor0 GROUP BY cor0.col0
----
83
83
83

query I rowsort
SELECT + 13 * 56 FROM tab2 AS cor0 GROUP BY cor0.col0
----
728
728
728

query I rowsort
SELECT - ( - 80 ) FROM tab1 GROUP BY col1
----
80
80
80

query I rowsort
SELECT + ( cor0.col2 ) - - 43 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
114
51
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
81

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
48

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6685
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + 72 AS col0 FROM tab1 cor0 GROUP BY cor0.col2
----
-3240
-5112
-576

query I rowsort
SELECT ( - cor0.col0 * - col0 ) FROM tab1 AS cor0 GROUP BY col0
----
484
6724
784

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT - + col0 AS col2 FROM tab2 GROUP BY col0
----
-15
-91
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 col1 FROM tab1 cor0 GROUP BY cor0.col2
----
90

query I rowsort
SELECT + 73 AS col2 FROM tab2 cor0 GROUP BY col1
----
73
73
73

query I rowsort
SELECT DISTINCT - 81 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
-81

query I rowsort
SELECT ALL ( - 68 ) FROM tab2 cor0 GROUP BY cor0.col1
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6694
SELECT CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT + 21 FROM tab2 GROUP BY tab2.col0
----
21
21
21

query I rowsort
SELECT ALL ( cor0.col0 ) AS col2 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT + 13 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
13
13
13

query I rowsort
SELECT 48 FROM tab2 AS cor0 GROUP BY cor0.col0
----
48
48
48

query I rowsort
SELECT 71 FROM tab2 AS cor0 GROUP BY cor0.col0
----
71
71
71

query I rowsort
SELECT DISTINCT cor0.col2 * + 79 FROM tab1 AS cor0 GROUP BY col2
----
3555
5609
632

query I rowsort
SELECT ALL - ( + cor0.col0 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL - 7 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-7
-7

query I rowsort
SELECT + cor0.col1 * cor0.col1 + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1980
3306
42

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT - 17 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6706
SELECT ALL + ( - cor0.col2 ) * cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + ( - cor0.col2 ) * cor0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 81 ) FROM tab1, tab2 cor0 GROUP BY cor0.col0
----
81
81
81

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

query I rowsort
SELECT ALL + tab1.col1 * col1 FROM tab1 GROUP BY tab1.col1
----
1936
3249
36

query I rowsort
SELECT 4 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
4
4
4

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT + ( cor0.col2 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT 93 * ( - cor0.col1 ) AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
-3813
-5487
-5673

query I rowsort
SELECT + ( - 58 ) FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
-58
-58
-58

query I rowsort
SELECT + 57 AS col2 FROM tab1 GROUP BY tab1.col1
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 GROUP BY cor0.col1, col0, cor0.col2
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT DISTINCT + + 61 + 91 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1 GROUP BY cor0.col1
----
152

query I rowsort
SELECT ALL + + 39 * tab2.col0 FROM tab2 GROUP BY tab2.col0
----
3549
3588
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2, col0
----
58
79
87

query I rowsort
SELECT 87 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
87
87
87

query I rowsort
SELECT ALL 13 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
13
13

query I rowsort
SELECT 19 FROM tab2 AS cor0 GROUP BY cor0.col1
----
19
19
19

query I rowsort
SELECT ALL + ( 46 * - cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1196
-1978
-3818

query I rowsort
SELECT col0 + - cor0.col0 + - cor0.col0 * + col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1849
-676
-6889

query I rowsort
SELECT ALL cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL - cor0.col1 * - col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6729
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6729
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT 92 FROM tab2, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col1
----
92
92
92

query I rowsort
SELECT ALL 95 * + cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
4180
5415
570

query I rowsort
SELECT 78 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT - CAST( + 89 AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-89
-89

skipif mysql # not compatible
query I rowsort label-6733
SELECT - CAST ( + 89 AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-89
-89

query I rowsort
SELECT DISTINCT 85 FROM tab1 AS cor0 GROUP BY cor0.col2
----
85

query I rowsort
SELECT + + cor0.col0 + - cor0.col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT 94 FROM tab0 cor0 GROUP BY cor0.col2
----
94
94
94

query I rowsort
SELECT ALL + 67 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1 GROUP BY cor0.col2
----
67
67
67

query I rowsort
SELECT ALL + 55 FROM tab2 cor0 GROUP BY cor0.col1
----
55
55
55

query I rowsort
SELECT ALL cor0.col0 * 38 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
1634
3154
988

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-44
-57
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT cor0.col2 DIV + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6742
SELECT cor0.col2 / + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT + ( tab2.col0 ) FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT + 66 FROM tab2 AS cor0 GROUP BY col0
----
66
66
66

query I rowsort
SELECT DISTINCT + 57 + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
100
140
83

query I rowsort
SELECT DISTINCT 90 FROM tab2 AS cor0 GROUP BY cor0.col0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col2 FROM tab1 cor0 GROUP BY cor0.col2
----
16
16
16

query I rowsort
SELECT DISTINCT 74 FROM tab1, tab1 AS cor0 GROUP BY tab1.col2
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * cor0.col2 col2 FROM tab2 AS cor0 GROUP BY col2
----
-3364
-6241
-7569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
39
39
39

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) FROM tab1, tab2 cor0, tab2 AS cor1 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT - cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
6561

query I rowsort
SELECT DISTINCT cor0.col2 * - 22 FROM tab1 AS cor0 GROUP BY col2
----
-1562
-176
-990

query I rowsort
SELECT DISTINCT 29 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
29

query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col1
----
44
57
6

query I rowsort
SELECT - 21 + cor0.col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
22
5
62

query I rowsort
SELECT ALL - cor0.col1 * + 2 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
-162
0

query I rowsort
SELECT 70 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
152
92
98

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT 1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT + 63 DIV cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6765
SELECT + 63 / cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
1
2

query I rowsort
SELECT - cor0.col2 + + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 + - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
0
0

query I rowsort
SELECT ALL + 56 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
56
56
56

query I rowsort
SELECT + cor0.col2 + 87 FROM tab2 AS cor0 GROUP BY cor0.col2
----
145
166
174

query I rowsort
SELECT + 34 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6771
SELECT 39 * cor0.col2 DIV + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
39
39
39

skipif mysql # not compatible
query I rowsort label-6771
SELECT 39 * cor0.col2 / + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
39
39
39

query I rowsort
SELECT - 12 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-12
-12
-12

query I rowsort
SELECT + col1 + + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
162

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col1 AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT DISTINCT - ( col1 + 2 ) FROM tab1 cor0 GROUP BY cor0.col1
----
-46
-59
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6776
SELECT + - CAST( NULL AS SIGNED ) FROM tab0 GROUP BY col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6776
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * 73 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1898
-3139
-6059

query I rowsort
SELECT col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
44
57
6

query I rowsort
SELECT 56 FROM tab0 cor0 GROUP BY cor0.col2
----
56
56
56

query I rowsort
SELECT ALL - - 62 * 46 + col1 FROM tab0 GROUP BY tab0.col1
----
2852
2933

query I rowsort
SELECT ALL + 18 * - cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-1062
-1098
-738

query I rowsort
SELECT ALL tab2.col1 * tab2.col1 + tab2.col1 AS col0 FROM tab2 GROUP BY col1
----
1722
3540
3782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT cor0.col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6785
SELECT cor0.col0 / cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT + 74 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
118
131
80

query I rowsort
SELECT + cor0.col2 * col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT DISTINCT - cor0.col0 DIV 14 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0
----
-1
-6

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT - cor0.col0 / 14 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0
----
-1
-6

query I rowsort
SELECT - ( cor0.col1 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT - + 61 FROM tab2 GROUP BY tab2.col2
----
-61
-61
-61

query I rowsort
SELECT ALL 97 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
97
97
97

query I rowsort
SELECT cor0.col0 * 86 FROM tab0 AS cor0 GROUP BY cor0.col0
----
2236
3698
7138

query I rowsort
SELECT ALL cor0.col0 * + cor0.col1 - + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
3402

query I rowsort
SELECT cor0.col2 * 13 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1027
312
494

query I rowsort
SELECT cor0.col1 * - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-6561
0
0

query I rowsort
SELECT + + cor0.col1 AS col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL ( cor0.col2 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6800
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6800
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 FROM tab0 AS cor0 GROUP BY col0
----
68
68
68

query I rowsort
SELECT ALL + cor0.col0 + + 59 FROM tab0 AS cor0 GROUP BY cor0.col0
----
102
142
85

query I rowsort
SELECT - cor0.col2 + cor0.col2 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col1 * 23 + - cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-44572
-74784
-834

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT 29 AS col1 FROM tab2, tab2 cor0 GROUP BY cor0.col2
----
29
29
29

query I rowsort
SELECT 3 + - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-12
-88
-89

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT 24 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT 77 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6812
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT 56 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
56
56
56

query I rowsort
SELECT + + 56 FROM tab0 GROUP BY col2
----
56
56
56

query I rowsort
SELECT DISTINCT + 32 FROM tab0 AS cor0 GROUP BY cor0.col1
----
32

query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab2 GROUP BY col0
----
15
91
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6817
SELECT ALL - 12 DIV cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL - 12 / cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
0
0
0

query I rowsort
SELECT 24 * 69 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
1656
1656

query I rowsort
SELECT ALL + 93 + 78 AS col0 FROM tab2, tab1 cor0 GROUP BY cor0.col0
----
171
171
171

query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col2
----
45
71
8

query I rowsort
SELECT - - 46 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
46
46
46

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
-45
-71
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * cor0.col1 col1 FROM tab0 cor0 GROUP BY cor0.col2, col1
----
0
0
5265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT - 41 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
-41
-41
-41

query I rowsort
SELECT - 78 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - cor0.col0 * + 19 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1577
-494
-817

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
22
28
82

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL + 32 * - col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1312
-1888
-1952

query I rowsort
SELECT + + 39 - cor0.col1 AS col2 FROM tab1, tab1 cor0 GROUP BY cor0.col1
----
-18
-5
33

query I rowsort
SELECT ALL - 51 * cor0.col2 + - 64 AS col0 FROM tab1 cor0 GROUP BY cor0.col2
----
-2359
-3685
-472

query I rowsort
SELECT cor0.col0 * cor0.col0 * - 57 AS col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col2
----
-27588
-383268
-44688

query I rowsort
SELECT 62 FROM tab0 AS cor0 GROUP BY cor0.col1
----
62
62

query I rowsort
SELECT + 46 AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
46
46
46

query I rowsort
SELECT 60 AS col1 FROM tab1, tab2 cor0 GROUP BY cor0.col2
----
60
60
60

query I rowsort
SELECT + 60 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
60
60
60

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
15
91
92

query I rowsort
SELECT + col0 AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL 10 + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
101
102
25

query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT ALL cor0.col2 * 83 FROM tab2 AS cor0 GROUP BY cor0.col2
----
4814
6557
7221

query I rowsort
SELECT col0 FROM tab0 GROUP BY tab0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 col1 FROM tab2 GROUP BY col0
----
15
91
92

query I rowsort
SELECT ( cor0.col0 ) FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT DISTINCT + + 2 FROM tab0, tab0 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
2

query I rowsort
SELECT DISTINCT - 22 AS col2 FROM tab2 GROUP BY col0
----
-22

query I rowsort
SELECT + 11 FROM tab2 AS cor0 GROUP BY col1, col0
----
11
11
11

query III rowsort
SELECT * FROM tab2 AS cor0 GROUP BY col2, cor0.col0, cor0.col1
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT ALL - ( cor0.col1 * cor0.col2 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-2378
-4661
-5307

query I rowsort
SELECT + cor0.col1 * cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1
----
132
1596
3608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0 GROUP BY tab1.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 GROUP BY tab1.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col0, col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 14 + - cor0.col0 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1183
1196
195

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT ALL + 57 * cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
5187
5244
855

query I rowsort
SELECT + 84 + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
125
143
145

query I rowsort
SELECT ALL - tab0.col2 + + 30 AS col2 FROM tab0 GROUP BY tab0.col2
----
-49
-8
6

query I rowsort
SELECT - - tab2.col0 AS col2 FROM tab2 GROUP BY col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col0 FROM tab0 cor0 GROUP BY cor0.col0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-62
-62
-62

query I rowsort
SELECT ALL 26 FROM tab1 AS cor0 GROUP BY col0
----
26
26
26

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT ALL + ( cor0.col1 ) FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY col2, cor0.col0, col1
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT ( cor0.col0 ) + + cor0.col0 AS col0 FROM tab0 cor0 GROUP BY cor0.col0
----
166
52
86

query I rowsort
SELECT + 10 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-9
-9
-9

query I rowsort
SELECT 64 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT ALL - 37 FROM tab2 AS cor0 GROUP BY col2
----
-37
-37
-37

query I rowsort
SELECT - 36 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-36
-36
-36

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor1.col2
----
24
38
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 GROUP BY tab1.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 GROUP BY tab1.col2
----
NULL
NULL
NULL

query I rowsort
SELECT 64 AS col0 FROM tab0, tab0 cor0 GROUP BY cor0.col1
----
64
64

query I rowsort
SELECT DISTINCT col1 + + 81 FROM tab2 AS cor0 GROUP BY col1
----
122
140
142

query I rowsort
SELECT 11 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
11
11
11

query I rowsort
SELECT ALL 27 AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
27
27
27

query I rowsort
SELECT ALL + cor0.col0 - + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 col0 FROM tab2 GROUP BY col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT 14 * - 43 AS col1 FROM tab1 GROUP BY tab1.col1
----
-602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6884
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 GROUP BY tab2.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6884
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 GROUP BY tab2.col1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 AS col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT 80 FROM tab0 AS cor0 GROUP BY cor0.col2
----
80
80
80

query I rowsort
SELECT DISTINCT 31 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
31

query I rowsort
SELECT ( 91 ) FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
91
91
91

query I rowsort
SELECT - 23 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-23
-23
-23

query I rowsort
SELECT 91 FROM tab2 AS cor0 GROUP BY cor0.col2
----
91
91
91

query I rowsort
SELECT DISTINCT + 96 * + cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
2304
3648
7584

query I rowsort
SELECT + + 89 AS col2 FROM tab2 GROUP BY col1
----
89
89
89

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT ALL + cor0.col0 - cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
0
0
0

query I rowsort
SELECT ( 68 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL 70 FROM tab0 AS cor0 GROUP BY cor0.col2
----
70
70
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6898
SELECT - cor0.col2 * - cor0.col2 DIV - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY col0, col2
----
-45
-71
-8

skipif mysql # not compatible
query I rowsort label-6898
SELECT - cor0.col2 * - cor0.col2 / - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY col0, col2
----
-45
-71
-8

query I rowsort
SELECT col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT ( - 57 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-57

query I rowsort
SELECT DISTINCT 98 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
98

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY col0, col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + ( cor0.col2 ) ) col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL + col1 * - ( - cor0.col2 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
2378
4661
5307

query I rowsort
SELECT 81 * ( cor0.col2 + + cor0.col1 * + ( cor0.col1 ) ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
162567
266814
3564

query I rowsort
SELECT DISTINCT - tab1.col0 AS col2 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col0, cor0.col2
----
15
91
92

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6911
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 GROUP BY col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT - CAST ( NULL AS REAL ) FROM tab0 GROUP BY col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 83 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
83
83
83

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab2 AS cor0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1936
-3249
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6915
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6915
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT 58 FROM tab2, tab1 AS cor0 GROUP BY tab2.col2
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-35
-35
-35

query I rowsort
SELECT ALL - 57 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-57
-57

query I rowsort
SELECT DISTINCT + 20 FROM tab1 AS cor0 GROUP BY cor0.col2
----
20

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab1 AS cor0 GROUP BY col1
----
2

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
-74

query I rowsort
SELECT ( - 89 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
-89
-89
-89

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT ALL 54 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT DISTINCT cor0.col2 - - ( 61 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
119
140
148

query I rowsort
SELECT DISTINCT ( - 73 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
-73

query I rowsort
SELECT DISTINCT tab1.col0 + tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
164
44
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT cor0.col2 DIV + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6929
SELECT cor0.col2 / + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6930
SELECT + 38 * - cor0.col1 + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT + 38 * - cor0.col1 + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT - 41 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-41
-41

query I rowsort
SELECT - + cor0.col2 + - cor0.col2 * + cor0.col2 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
-1482
-600
-6320

query I rowsort
SELECT DISTINCT + cor0.col1 + 64 * col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
5265

query I rowsort
SELECT ALL + 29 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
29
29

query I rowsort
SELECT DISTINCT + + 56 FROM tab2, tab1 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 col2 FROM tab1 GROUP BY col2
----
45
71
8

query I rowsort
SELECT + - 68 FROM tab2, tab2 cor0 GROUP BY tab2.col2
----
-68
-68
-68

query I rowsort
SELECT + - tab2.col1 - 96 * + tab2.col1 FROM tab2 GROUP BY tab2.col1
----
-3977
-5723
-5917

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT ALL 1 DIV cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6939
SELECT ALL 1 / cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col1
----
0
0
0

query I rowsort
SELECT DISTINCT - 83 * cor0.col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-3403
-4897
-5063

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
1032
2054
3154

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT DISTINCT - cor0.col0 DIV + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT - cor0.col0 / + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1
----
-1
-2
0

query I rowsort
SELECT DISTINCT col2 + ( ( + cor0.col1 ) + + 69 ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
171
184
83

query I rowsort
SELECT ALL + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL tab1.col1 + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
114
12
88

query I rowsort
SELECT + 9 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
9
9
9

query I rowsort
SELECT DISTINCT cor0.col1 * ( cor0.col1 ) + + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1722
3540
3782

query I rowsort
SELECT + col2 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY col1, cor0.col2, col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6950
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 50 AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
50
50
50

query I rowsort
SELECT ALL cor0.col2 - + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT tab0.col2 + tab0.col2 FROM tab0 GROUP BY col2 HAVING col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col0
----
22
28
82

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT ALL + CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL + CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6960
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT + ( - 69 * + cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1518
-1932
-5658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 56 col1 FROM tab1, tab1 AS cor0 GROUP BY tab1.col0
----
56

query I rowsort
SELECT - 35 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
-35
-35
-35

query I rowsort
SELECT - 26 AS col0 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
-26
-26

query I rowsort
SELECT + 39 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT + + ( col2 ) AS col2 FROM tab2 GROUP BY col2
----
58
79
87

query I rowsort
SELECT ALL - - tab1.col2 FROM tab1, tab0 AS cor0 GROUP BY tab1.col2
----
45
71
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6970
SELECT CAST( NULL AS SIGNED ) * - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT CAST ( NULL AS INTEGER ) * - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 35 + col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
117
57
63

query I rowsort
SELECT 13 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
13
13
13

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT + - 23 AS col0 FROM tab1 GROUP BY col2
----
-23

query I rowsort
SELECT - 89 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
-89
-89
-89

query I rowsort
SELECT + 86 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
86
86
86

query I rowsort
SELECT - cor0.col2 * - cor0.col2 + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1482
600
6320

query I rowsort
SELECT 96 AS col0 FROM tab1 cor0 GROUP BY cor0.col2
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL + 91 + 73 FROM tab2 cor0 GROUP BY col2
----
164
164
164

query I rowsort
SELECT - col0 + - 87 FROM tab2 cor0 GROUP BY cor0.col0
----
-102
-178
-179

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT ALL 12 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT cor0.col2 - cor0.col1 * + cor0.col1 DIV cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-12
2
27

skipif mysql # not compatible
query I rowsort label-6988
SELECT cor0.col2 - cor0.col1 * + cor0.col1 / cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-12
2
27

query I rowsort
SELECT - 6 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6
-6

query I rowsort
SELECT + - 90 AS col1 FROM tab0 GROUP BY tab0.col2
----
-90
-90
-90

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, col1
----
45
71
8

query I rowsort
SELECT 50 AS col0 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
50
50
50

query I rowsort
SELECT DISTINCT + 93 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6994
SELECT CAST( 5 * col2 AS SIGNED ) + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
348
474
522

skipif mysql # not compatible
query I rowsort label-6994
SELECT CAST ( 5 * col2 AS INTEGER ) + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
348
474
522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - 4 col1 FROM tab1 cor0 GROUP BY cor0.col2
----
-180
-284
-32

query I rowsort
SELECT + cor0.col2 + + ( + 61 ) * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1488
2356
4898

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 78 + + 41 col2 FROM tab2 GROUP BY tab2.col2
----
119

query I rowsort
SELECT ALL 52 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-4212
0

query I rowsort
SELECT cor0.col0 * - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT + 95 FROM tab2 AS cor0 GROUP BY cor0.col0
----
95
95
95

query I rowsort
SELECT 60 AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
60
60
60

query I rowsort
SELECT DISTINCT + cor0.col2 + - 68 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
-30
-44
11

query I rowsort
SELECT DISTINCT + 95 * - tab0.col1 FROM tab0 GROUP BY tab0.col1
----
-7695
0

query I rowsort
SELECT DISTINCT 56 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
56

query I rowsort
SELECT DISTINCT + 13 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
13

query I rowsort
SELECT + 92 + + cor0.col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
107
183
184

query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT + 44 AS col0 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0
----
44
44
44

query I rowsort
SELECT + col1 + 11 AS col2 FROM tab2 GROUP BY tab2.col1
----
52
70
72

query I rowsort
SELECT 64 * + col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1536
2432
5056

query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab0 AS cor0 GROUP BY col1, cor0.col2
----
0
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * - cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1776
2812
5846

query I rowsort
SELECT + 12 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
12
12
12

query I rowsort
SELECT ALL - + tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT cor0.col0 + + 47 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
138
139
62

query I rowsort
SELECT ALL 52 - + 46 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col2 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
45

query I rowsort
SELECT ALL 79 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1738
2212
6478

query I rowsort
SELECT + 70 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
70
70
70

query I rowsort
SELECT 95 FROM tab1 cor0 GROUP BY cor0.col2
----
95
95
95

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL - 73 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-73
-73
-73

query I rowsort
SELECT ALL + 63 + - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-16
25
39

query I rowsort
SELECT DISTINCT col2 FROM tab1 GROUP BY tab1.col2 HAVING NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7026
SELECT ( cor0.col2 ) DIV + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7026
SELECT ( cor0.col2 ) / + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
5

query I rowsort
SELECT ALL ( 31 ) FROM tab0 AS cor0 GROUP BY col1, cor0.col1
----
31
31

query I rowsort
SELECT + 45 FROM tab2 AS cor0 GROUP BY cor0.col1
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT + cor0.col1 * + ( - cor0.col1 ) FROM tab0 AS cor0 GROUP BY col1, cor0.col2
----
-6561
0
0

query I rowsort
SELECT col1 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - - 68 * - tab0.col1 + - tab0.col1 AS col1 FROM tab0 GROUP BY col1
----
-5589
0

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
134
79
93

query I rowsort
SELECT - col1 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

query I rowsort
SELECT ALL 58 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
58
58
58

query I rowsort
SELECT ALL + 40 FROM tab0 AS cor0 GROUP BY cor0.col1
----
40
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT 83 DIV + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7040
SELECT 83 / + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
0
0
5

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
3364
6241
7569

query I rowsort
SELECT DISTINCT 28 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1148
1652
1708

query I rowsort
SELECT 44 FROM tab2 AS cor0 GROUP BY cor0.col0
----
44
44
44

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT ALL - - ( - 28 ) FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
-28
-28
-28

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
58

query I rowsort
SELECT ( cor0.col0 ) FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT 45 AS col0 FROM tab2 GROUP BY col1
----
45
45
45

query I rowsort
SELECT ( 94 ) * - cor0.col2 + cor0.col2 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-1185
-2088
-609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
2112
3344
6952

query I rowsort
SELECT col0 + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
102
150
170

query I rowsort
SELECT tab1.col1 FROM tab1 GROUP BY col1 HAVING NULL IN ( tab1.col1 )
----

query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT + 20 FROM tab1 AS cor0 GROUP BY cor0.col0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * 48 col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
-2784
-3792
-4176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + cor0.col1 + col1 ) * - cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-13122
0

query I rowsort
SELECT - ( cor0.col0 * cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT + 80 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1 GROUP BY cor0.col2
----
80
80
80

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + col1 - + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT - cor0.col1 + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT - 81 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 61 * + 79 FROM tab1 GROUP BY tab1.col1
----
-4819
-4819
-4819

query I rowsort
SELECT - ( 40 ) FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
-40
-40
-40

query I rowsort
SELECT ALL 5 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
5
5

query I rowsort
SELECT ALL + 67 FROM tab1 AS cor0 GROUP BY cor0.col1
----
67
67
67

query I rowsort
SELECT 77 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
77
77
77

query I rowsort
SELECT cor0.col0 + + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT DISTINCT - ( + 79 ) + col0 * 44 FROM tab2 AS cor0 GROUP BY cor0.col0
----
3925
3969
581

query I rowsort
SELECT 66 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
66
66
66

query I rowsort
SELECT 77 * cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
1155
7007
7084

query I rowsort
SELECT + - cor0.col2 FROM tab1, tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT - 55 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7076
SELECT + CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY col1
----
0
81

skipif mysql # not compatible
query I rowsort label-7076
SELECT + CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY col1
----
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7077
SELECT CAST( + cor0.col2 AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

skipif mysql # not compatible
query I rowsort label-7077
SELECT CAST ( + cor0.col2 AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL col2 + + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
153
30
73

query I rowsort
SELECT ALL 24 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7081
SELECT - CAST( NULL AS SIGNED ) * cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT - CAST ( NULL AS INTEGER ) * cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT 3 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
3
3
3

query I rowsort
SELECT ALL + 0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col0 FROM tab1 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0 cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT 83 FROM tab2 AS cor0 GROUP BY cor0.col0
----
83
83
83

query I rowsort
SELECT cor0.col0 * cor0.col0 + 6 * + 99 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1270
2443
7483

query I rowsort
SELECT ALL 34 FROM tab0 AS cor0 GROUP BY cor0.col2
----
34
34
34

query I rowsort
SELECT ALL + 43 FROM tab0 GROUP BY col1
----
43
43

query I rowsort
SELECT ALL + tab0.col2 AS col2 FROM tab0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7093
SELECT cor0.col1 * cor0.col1 DIV - 51 AS col0 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
-37
-63
0

skipif mysql # not compatible
query I rowsort label-7093
SELECT cor0.col1 * cor0.col1 / - 51 AS col0 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
-37
-63
0

query I rowsort
SELECT cor0.col1 * - 3 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-132
-171
-18

query I rowsort
SELECT DISTINCT 75 FROM tab2 GROUP BY tab2.col0
----
75

query I rowsort
SELECT - col1 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT - 40 FROM tab1 AS cor0 GROUP BY col0
----
-40
-40
-40

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-15
-91
-92

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 + - cor0.col0 * cor0.col1 - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1, tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
142
16
90

query I rowsort
SELECT + ( - 58 ) FROM tab0 GROUP BY col0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
56

query I rowsort
SELECT + cor0.col1 * - cor0.col1 + + cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
-1640
-3422
-3660

query I rowsort
SELECT - 36 FROM tab2 AS cor0 GROUP BY col1
----
-36
-36
-36

query I rowsort
SELECT ALL 32 FROM tab0 AS cor0 GROUP BY col0
----
32
32
32

query I rowsort
SELECT ALL cor0.col2 / + cor0.col2 + cor0.col2 + cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2 HAVING NOT NULL NOT IN ( cor0.col2 )
----

query I rowsort
SELECT 84 * - col0 FROM tab1 GROUP BY tab1.col0
----
-1848
-2352
-6888

query I rowsort
SELECT ALL 68 FROM tab0 cor0 GROUP BY col2
----
68
68
68

query I rowsort
SELECT ALL + ( - 95 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-95
-95
-95

query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT - + 9 AS col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col1 FROM tab0 cor0 GROUP BY cor0.col2
----
-64
-64
-64

query I rowsort
SELECT - 17 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-17
-17

query I rowsort
SELECT DISTINCT - - 18 AS col0 FROM tab0 GROUP BY tab0.col0
----
18

query I rowsort
SELECT + cor0.col0 + cor0.col0 * - ( 59 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1276
-1624
-4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * cor0.col2 col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT - CAST( + cor0.col1 AS SIGNED ) col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-81
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7118
SELECT - CAST ( + cor0.col1 AS INTEGER ) col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-81
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col2, col1, col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT - 97 - - cor0.col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1584
3384
3624

query I rowsort
SELECT 54 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
54
54
54

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
44
57
6

query I rowsort
SELECT ALL col0 * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1032
2054
3154

query I rowsort
SELECT - 29 AS col0 FROM tab1 GROUP BY tab1.col0
----
-29
-29
-29

query I rowsort
SELECT 11 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
11
11
11

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
96

query I rowsort
SELECT ALL + tab2.col0 FROM tab2 GROUP BY col0
----
15
91
92

query I rowsort
SELECT ALL cor0.col1 - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-38
-79
57

query I rowsort
SELECT 64 FROM tab2 cor0 GROUP BY cor0.col0, col2
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + tab1.col1 col2 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col0 FROM tab0 GROUP BY tab0.col0
----
1
1
1

query I rowsort
SELECT 28 FROM tab2 GROUP BY tab2.col0
----
28
28
28

query I rowsort
SELECT 46 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
46
46
46

query I rowsort
SELECT 38 FROM tab2 AS cor0 GROUP BY cor0.col2
----
38
38
38

query I rowsort
SELECT ALL + + 75 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
75
75

query I rowsort
SELECT - 63 FROM tab2 GROUP BY col2
----
-63
-63
-63

query I rowsort
SELECT DISTINCT 52 FROM tab0, tab1 AS cor0 GROUP BY tab0.col0
----
52

query I rowsort
SELECT DISTINCT + 72 * cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
3240
5112
576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7139
SELECT + - CAST( NULL AS SIGNED ) col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7139
SELECT + - CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT 41 * 86 + - tab2.col1 FROM tab2 GROUP BY tab2.col1
----
3465
3467
3485

query I rowsort
SELECT 68 - col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-3
23
60

query I rowsort
SELECT DISTINCT - col2 - - cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
-45
-71
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT - ( 42 ) DIV cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7144
SELECT - ( 42 ) / cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7145
SELECT CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 GROUP BY col2, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7145
SELECT CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 GROUP BY col2, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 11 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
11
11
11

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
53

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT 72 * + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1728
2736
5688

query I rowsort
SELECT DISTINCT 18 FROM tab1 cor0 GROUP BY cor0.col1
----
18

query I rowsort
SELECT ALL col1 + + cor0.col0 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col1, cor0.col0
----
126
28
85

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab0, tab1 AS cor0 GROUP BY tab0.col2
----
-18

query I rowsort
SELECT + 52 FROM tab2 cor0 GROUP BY cor0.col2
----
52
52
52

query I rowsort
SELECT cor0.col1 * - ( cor0.col1 ) FROM tab1 AS cor0 GROUP BY col1
----
-1936
-3249
-36

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab1 GROUP BY col1
----
19

query I rowsort
SELECT + cor0.col1 + cor0.col0 + + 91 * 74 FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
6760
6817
6858

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
45
71
8

query I rowsort
SELECT ALL - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col0, cor0.col1, cor1.col2
----
9 values hashing to c3fce74ead130ec1d9dde8274d706e34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
27
27
27

query I rowsort
SELECT DISTINCT ( + 22 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
22

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
90

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0 cor0 GROUP BY col1, cor0.col2
----
0
0
81

query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
1681
3481
3721

query I rowsort
SELECT ALL + 95 + + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
176
95

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab2 AS cor0 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT - ( + cor0.col1 ) + 64 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
23
3
5

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT 93 FROM tab0 AS cor0 GROUP BY cor0.col2
----
93
93
93

query I rowsort
SELECT ALL - 45 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-45
-45

query I rowsort
SELECT ALL - 43 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-43
-43
-43

query I rowsort
SELECT + cor0.col2 + 20 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
107
78
99

query I rowsort
SELECT 85 AS col1 FROM tab2 GROUP BY tab2.col2
----
85
85
85

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
9

query I rowsort
SELECT DISTINCT + 89 FROM tab2 AS cor0 GROUP BY col2
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
41
41
41

query I rowsort
SELECT cor0.col1 - cor0.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1
----
0
0

query I rowsort
SELECT ALL - 40 * 66 + - cor0.col2 FROM tab0 cor0 GROUP BY col2, cor0.col2
----
-2664
-2678
-2719

query I rowsort
SELECT 78 FROM tab2 AS cor0 GROUP BY cor0.col2
----
78
78
78

query I rowsort
SELECT + 59 FROM tab0 AS cor0 GROUP BY cor0.col2
----
59
59
59

query I rowsort
SELECT - 65 * - 19 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1235
1235
1235

query I rowsort
SELECT 45 * cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY col2, col1
----
0
0
3645

query I rowsort
SELECT ALL + cor0.col0 * + cor0.col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1 GROUP BY cor0.col0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT - - 43 + + tab1.col1 * + ( tab1.col1 ) - - col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
2023
3349
85

query I rowsort
SELECT 78 FROM tab0 AS cor0 GROUP BY cor0.col1
----
78
78

query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-39

query I rowsort
SELECT DISTINCT - 54 FROM tab1 cor0 GROUP BY cor0.col0
----
-54

query I rowsort
SELECT - 34 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-34
-34

query I rowsort
SELECT ALL 51 FROM tab2 AS cor0 GROUP BY cor0.col0
----
51
51
51

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT - 32 + - 57 AS col2 FROM tab2 GROUP BY col1
----
-89

query I rowsort
SELECT + 84 + + cor0.col2 * + 63 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3738
5061
5565

query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1 GROUP BY tab2.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

query I rowsort
SELECT + - 19 FROM tab2, tab0 AS cor0 GROUP BY tab2.col1
----
-19
-19
-19

query I rowsort
SELECT DISTINCT - cor0.col1 * 97 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-4268
-5529
-582

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
44
57
6

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab0 GROUP BY tab0.col1
----
34

query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT - 17 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
-17
-17
-17

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT + ( 5 ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
5
5
5

query I rowsort
SELECT ALL - tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT + cor0.col0 + + cor0.col2 FROM tab2 cor0 GROUP BY col2, cor0.col2, cor0.col0
----
102
150
170

query I rowsort
SELECT ALL - cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
-24
-38
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-28

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
15
91
92

query I rowsort
SELECT DISTINCT 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor1.col1
----
79

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7220
SELECT CAST( 19 AS SIGNED ) col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
19
19
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7220
SELECT CAST ( 19 AS INTEGER ) col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * + 50 col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
3150
3150
3150

query I rowsort
SELECT ALL 67 FROM tab1 AS cor0 GROUP BY cor0.col2
----
67
67
67

query I rowsort
SELECT ALL ( 8 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
8
8
8

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ALL + 76 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col0
----
76
76
76

query I rowsort
SELECT + 12 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
12
12
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7227
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 79 ) FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
79

query I rowsort
SELECT ALL cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
44
57
6

query I rowsort
SELECT + col0 * cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
1849
676
6889

query I rowsort
SELECT DISTINCT 11 * cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
264
418
869

query I rowsort
SELECT ALL - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT 51 FROM tab0 AS cor0 GROUP BY cor0.col2
----
51
51
51

query I rowsort
SELECT DISTINCT + cor0.col1 * + 24 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
1056
1368
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT ALL - CAST( NULL AS SIGNED ) + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
24
38
79

query I rowsort
SELECT - ( 90 * cor0.col0 ) + col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-2314
-3827
-7387

query I rowsort
SELECT ALL - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2 HAVING NOT NULL = NULL
----

query I rowsort
SELECT + 4 AS col0 FROM tab2 GROUP BY tab2.col2
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7242
SELECT + CAST( + 75 AS SIGNED ) FROM tab0 GROUP BY tab0.col2
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7242
SELECT + CAST ( + 75 AS INTEGER ) FROM tab0 GROUP BY tab0.col2
----
75
75
75

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
81

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL - - 8 * + cor0.col2 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
360
568
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col1 FROM tab1 cor0 GROUP BY col0, cor0.col2, cor0.col0
----
50
50
50

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL - tab0.col1 + 99 FROM tab0 GROUP BY tab0.col1
----
18
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT cor0.col2 DIV cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7250
SELECT cor0.col2 / cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT ALL + CAST( 86 AS SIGNED ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
86
86
86

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL + CAST ( 86 AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-95
-95
-95

query I rowsort
SELECT + 27 FROM tab2, tab2 cor0 GROUP BY cor0.col0
----
27
27
27

query I rowsort
SELECT ALL + cor0.col2 * ( + ( + col2 ) ) FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1444
576
6241

query I rowsort
SELECT - - 88 FROM tab1 GROUP BY tab1.col0
----
88
88
88

query I rowsort
SELECT ALL + 31 * 77 FROM tab2 AS cor0 GROUP BY cor0.col2
----
2387
2387
2387

query I rowsort
SELECT ALL 2 AS col1 FROM tab1 AS cor0 GROUP BY col2
----
2
2
2

query I rowsort
SELECT 89 FROM tab2 AS cor0 GROUP BY cor0.col1
----
89
89
89

query I rowsort
SELECT - 1 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-15
-91
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT + cor0.col2 DIV - 73 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7261
SELECT + cor0.col2 / - 73 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1
-1
0

query I rowsort
SELECT - 37 FROM tab1, tab1 AS cor0 GROUP BY tab1.col1
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 23 + 10 col1 FROM tab0, tab1 AS cor0 GROUP BY tab0.col1
----
-13
-13

query I rowsort
SELECT - 55 - + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-138
-81
-98

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT ALL - 94 FROM tab1, tab0 cor0 GROUP BY cor0.col0
----
-94
-94
-94

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
-30

query I rowsort
SELECT - 1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

query I rowsort
SELECT ALL 58 * cor0.col0 * - 19 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-28652
-47386
-91466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + ( cor0.col1 ) col0 FROM tab0 cor0 GROUP BY cor0.col1, col2
----
105
38
79

query III rowsort
SELECT * FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0, col2
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT + 42 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
42
42
42

query I rowsort
SELECT ALL 45 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

onlyif mysql # DIV for integer division: 
query I rowsort label-7278
SELECT 39 DIV + 97 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7278
SELECT 39 / + 97 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 + + 43 AS col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
101
122
130

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT DISTINCT 15 DIV + 51 FROM tab0, tab0 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
0

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT 15 / + 51 FROM tab0, tab0 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT - ( + cor0.col1 ) DIV + cor0.col1 FROM tab2, tab2 cor0 GROUP BY cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7281
SELECT - ( + cor0.col1 ) / + cor0.col1 FROM tab2, tab2 cor0 GROUP BY cor0.col1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 44 + tab1.col1 + + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-32
44
70

query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-7

query I rowsort
SELECT + 47 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
89
89
89

query I rowsort
SELECT 89 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
89
89
89

query I rowsort
SELECT ALL - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT - 64 * 59 FROM tab1, tab2 cor0, tab2 AS cor1 GROUP BY cor0.col0
----
-3776
-3776
-3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
7

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) FROM tab0 cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
-15
-91
-92

query I rowsort
SELECT + - 80 FROM tab1, tab1 cor0 GROUP BY cor0.col0
----
-80
-80
-80

query I rowsort
SELECT ALL + tab1.col1 FROM tab1 GROUP BY col1
----
44
57
6

query I rowsort
SELECT - cor0.col0 * 86 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
-1892
-2408
-7052

query I rowsort
SELECT 35 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
35
35
35

query I rowsort
SELECT + 70 * 76 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
5320
5320
5320

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT DISTINCT - 28 + - cor0.col1 * - ( cor0.col1 ) FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
1653
3453
3693

query I rowsort
SELECT + 49 AS col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
49
49
49

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
48

query III rowsort
SELECT * FROM tab0 cor0 GROUP BY col2, cor0.col1, cor0.col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT + col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
0
0
81

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT 63 FROM tab0 AS cor0 GROUP BY col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * - cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1694
-2156
-6314

query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab0 cor0 GROUP BY cor0.col0, col1
----
0
0
81

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL 72 FROM tab0 AS cor0 GROUP BY cor0.col1
----
72
72

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT ALL + 42 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
42
42
42

query I rowsort
SELECT ALL + tab0.col2 * + 67 FROM tab0 GROUP BY tab0.col2
----
1608
2546
5293

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7317
SELECT ALL - CAST( NULL AS SIGNED ) - 81 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL - CAST ( NULL AS INTEGER ) - 81 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT ALL - 45 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col1
----
-45
-45
-45

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
74

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab2 GROUP BY tab2.col2
----
40

query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT 62 FROM tab1 AS cor0 GROUP BY cor0.col0
----
62

query I rowsort
SELECT ALL - 3 * cor0.col2 * + ( + col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-15123
-192
-6075

query I rowsort
SELECT DISTINCT - tab0.col0 * + tab0.col0 + tab0.col0 FROM tab0 GROUP BY col0
----
-1806
-650
-6806

query I rowsort
SELECT - 28 + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
13
31
33

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
162

query I rowsort
SELECT 29 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY tab2.col2
----
29
29
29

query I rowsort
SELECT - - tab1.col1 * col1 FROM tab1 GROUP BY tab1.col1
----
1936
3249
36

query I rowsort
SELECT + cor0.col0 * - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT ALL - tab0.col1 FROM tab0 GROUP BY col1
----
-81
0

query I rowsort
SELECT - 90 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-90
-90
-90

query I rowsort
SELECT DISTINCT 2 FROM tab0 cor0 GROUP BY cor0.col2
----
2

query I rowsort
SELECT ALL tab1.col1 FROM tab1 GROUP BY col1
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7335
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY col1
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

query I rowsort
SELECT 1 * - 16 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-16
-16
-16

query I rowsort
SELECT ALL + 84 * cor0.col0 + cor0.col0 + 2 FROM tab2 cor0 GROUP BY cor0.col0
----
1277
7737
7822

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT + cor0.col0 * + 99 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
2178
2772
8118

query I rowsort
SELECT DISTINCT 25 + - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-33
-54
-62

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT 84 + 75 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
159
159
159

query I rowsort
SELECT + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7347
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 3 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
3

query I rowsort
SELECT + 27 + 27 FROM tab0 AS cor0 GROUP BY col2
----
54
54
54

query I rowsort
SELECT + + tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT DISTINCT + 34 + 99 FROM tab1, tab0 AS cor0 GROUP BY tab1.col2
----
133

query I rowsort
SELECT ALL + ( - cor0.col1 ) * 45 * 60 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-110700
-159300
-164700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7353
SELECT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 15 * + 20 AS col2 FROM tab2 GROUP BY col1
----
-300
-300
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT DISTINCT - - cor0.col0 DIV + 55 FROM tab1, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
0
1

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT - - cor0.col0 / + 55 FROM tab1, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col0
----
0
1

query I rowsort
SELECT - 30 FROM tab2, tab0 cor0 GROUP BY cor0.col2
----
-30
-30
-30

query I rowsort
SELECT 21 FROM tab2 AS cor0 GROUP BY cor0.col1
----
21
21
21

query I rowsort
SELECT cor0.col0 FROM tab1, tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL + 36 FROM tab1 AS cor0 GROUP BY cor0.col2
----
36
36
36

query I rowsort
SELECT ALL 83 + + cor0.col2 + + 25 * 23 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
716
737
745

query I rowsort
SELECT 3 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
3
3
3

query I rowsort
SELECT DISTINCT + 1 * + 77 FROM tab2 AS cor0 GROUP BY cor0.col1
----
77

query I rowsort
SELECT ALL 48 AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
48
48
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7364
SELECT DISTINCT 94 DIV + 91 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT 94 / + 91 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1

query I rowsort
SELECT + cor0.col0 * - 93 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
-2418
-3999
-7719

query I rowsort
SELECT ALL + 22 FROM tab2 GROUP BY col0
----
22
22
22

query I rowsort
SELECT DISTINCT + 39 FROM tab0 AS cor0 GROUP BY cor0.col1
----
39

query I rowsort
SELECT ALL 74 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
74
74
74

query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1305
5336
7189

query I rowsort
SELECT DISTINCT + tab1.col2 AS col0 FROM tab1 GROUP BY col2
----
45
71
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7371
SELECT ALL + 2 DIV + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL + 2 / + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
0
0
0

query I rowsort
SELECT 43 + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
114
51
88

query I rowsort
SELECT DISTINCT cor0.col1 * 96 + - col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3895
5605
5795

query I rowsort
SELECT - 60 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-60
-60
-60

query I rowsort
SELECT DISTINCT - 8 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
-8

query I rowsort
SELECT + col0 + cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT + cor0.col2 * cor0.col2 * 21 - - cor0.col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
131140
159036
70702

query I rowsort
SELECT 32 FROM tab1 AS cor0 GROUP BY cor0.col1
----
32
32
32

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT DISTINCT - col1 + + 16 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-25
-43
-45

query I rowsort
SELECT ALL + 40 FROM tab0 cor0 GROUP BY cor0.col1
----
40
40

query I rowsort
SELECT 97 * + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1455
8827
8924

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
0
0
81

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
0
0
81

query I rowsort
SELECT + cor0.col0 + 49 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
132
75
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col0 FROM tab2, tab2 AS cor0 GROUP BY tab2.col1
----
26
26
26

query I rowsort
SELECT - cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col0
----
-15
-91
-92

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * 80 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
3600
5680
640

query I rowsort
SELECT ALL cor0.col2 + - 4 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
4
41
67

query I rowsort
SELECT ( col2 ) FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT - 12 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1 GROUP BY cor1.col2
----
-12
-12
-12

query I rowsort
SELECT ALL 81 FROM tab0 cor0 GROUP BY cor0.col1
----
81
81

query I rowsort
SELECT 2 + 59 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
61
61
61

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col0 FROM tab2, tab1 cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL + 58 FROM tab2 cor0 GROUP BY cor0.col2
----
58
58
58

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0 AS cor0 GROUP BY col0, cor0.col1
----
-81
0

query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT - 41 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
-41
-41
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-7401
SELECT ALL + 71 DIV cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL + 71 / cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
2
3

query I rowsort
SELECT ALL + 9 FROM tab2 AS cor0 GROUP BY cor0.col0
----
9
9
9

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
45

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL - cor0.col0 FROM tab1 cor0 GROUP BY col0
----
-22
-28
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT ( - 26 ) FROM tab1 AS cor0 GROUP BY col1
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL - 25 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-25
-25
-25

query I rowsort
SELECT - cor0.col2 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT ALL - cor0.col0 - 21 AS col1 FROM tab2 cor0 GROUP BY col2, cor0.col0
----
-112
-113
-36

query I rowsort
SELECT cor0.col2 + - 2 * - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
114
237
72

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT ALL 71 FROM tab1 AS cor0 GROUP BY cor0.col1
----
71
71
71

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL + 51 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
51
51
51

query I rowsort
SELECT DISTINCT 66 FROM tab0 cor0 GROUP BY cor0.col2
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col2 ) col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT 18 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
18
18

query I rowsort
SELECT 6 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7423
SELECT - cor0.col1 DIV + 33 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7423
SELECT - cor0.col1 / + 33 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-2
0

query I rowsort
SELECT + 46 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
46
46
46

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT ALL + cor0.col2 + + 95 FROM tab1 AS cor0 GROUP BY cor0.col2
----
103
140
166

query I rowsort
SELECT ALL + cor0.col0 + - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT + - ( 58 ) + cor0.col2 + cor0.col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
100
116
58

query I rowsort
SELECT ALL - 3 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3
-3

query I rowsort
SELECT DISTINCT + 13 FROM tab2 AS cor0 GROUP BY cor0.col0
----
13

query I rowsort
SELECT DISTINCT + 78 FROM tab0 AS cor0 GROUP BY cor0.col0, col0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
15
91
92

query I rowsort
SELECT - + 16 FROM tab1 GROUP BY tab1.col2
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 GROUP BY col0
----
-15
-91
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7435
SELECT CAST( + ( - cor0.col2 ) AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

skipif mysql # not compatible
query I rowsort label-7435
SELECT CAST ( + ( - cor0.col2 ) AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1032
-2054
-3154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - 86 col1 FROM tab2, tab0 cor0 GROUP BY cor0.col2
----
-2064
-3268
-6794

query I rowsort
SELECT DISTINCT - 69 FROM tab2 GROUP BY tab2.col2
----
-69

query I rowsort
SELECT DISTINCT cor0.col1 + 26 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1188
1539
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7442
SELECT ALL + CAST( NULL AS SIGNED ) + ( - cor0.col2 ) AS col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL + CAST ( NULL AS INTEGER ) + ( - cor0.col2 ) AS col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 AS col0 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT + - col1 * tab0.col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
-6561
0

query I rowsort
SELECT 77 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
77
77
77

query I rowsort
SELECT + - 52 AS col1 FROM tab0, tab0 AS cor0 GROUP BY tab0.col1
----
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT 98 + 67 FROM tab1 AS cor0 GROUP BY cor0.col0
----
165
165
165

query I rowsort
SELECT cor0.col2 * ( + cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT ALL - 72 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-72
-72
-72

query I rowsort
SELECT ALL - ( + 77 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
-77
-77
-77

query I rowsort
SELECT ( 15 ) FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT DISTINCT cor0.col0 DIV 26 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT cor0.col0 / 26 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
0
1
3

query I rowsort
SELECT - 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
-91
-91
-91

query I rowsort
SELECT ALL - cor0.col2 + - cor0.col2 - - 76 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-82
0
28

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT + cor0.col2 + 98 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
122
136
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7458
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 0 ) FROM tab1 GROUP BY tab1.col0
----
0
0
0

query I rowsort
SELECT - - 47 * 18 AS col1 FROM tab0 GROUP BY tab0.col0
----
846
846
846

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
22
28
82

query I rowsort
SELECT - cor0.col2 * - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT DISTINCT 94 FROM tab1 AS cor0 GROUP BY cor0.col1
----
94

query I rowsort
SELECT DISTINCT col1 * col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
6561

query I rowsort
SELECT ALL 2 * col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT + 93 + - 60 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7467
SELECT cor0.col0 DIV cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7467
SELECT cor0.col0 / cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT ALL + 14 AS col1 FROM tab1 cor0 GROUP BY cor0.col0
----
14
14
14

query I rowsort
SELECT + 74 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1 GROUP BY cor1.col2
----
74
74
74

query I rowsort
SELECT - 45 FROM tab1 GROUP BY tab1.col1
----
-45
-45
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT + tab0.col0 + - 63 FROM tab0 GROUP BY tab0.col0
----
-20
-37
20

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
87

query I rowsort
SELECT + 71 FROM tab2 AS cor0 GROUP BY cor0.col1
----
71
71
71

query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab0 cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT - 23 FROM tab1 GROUP BY tab1.col0
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT + col0 DIV - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7479
SELECT + col0 / - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1
-1
-1

query I rowsort
SELECT ALL cor0.col1 * ( + cor0.col0 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
132
1596
3608

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
166
52
86

query I rowsort
SELECT DISTINCT + 68 FROM tab0 AS cor0 GROUP BY cor0.col1
----
68

query I rowsort
SELECT + 67 * cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1
----
2747
3953
4087

query I rowsort
SELECT ALL - 32 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-32
-32
-32

query I rowsort
SELECT 10 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
10
10
10

query I rowsort
SELECT - tab2.col2 - + col2 AS col1 FROM tab2 GROUP BY tab2.col2
----
-116
-158
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT ALL + cor0.col2 DIV + 24 + + 91 - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
15
54
68

skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL + cor0.col2 / + 24 + + 91 - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
15
54
68

query I rowsort
SELECT DISTINCT 96 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
96

query I rowsort
SELECT - col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
-94

query I rowsort
SELECT cor0.col1 * - 25 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1100
-1425
-150

query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 GROUP BY col2, col1
----
44
57
6

query I rowsort
SELECT ALL 35 * ( + cor0.col1 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1540
1995
210

query I rowsort
SELECT 53 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
53
53
53

query I rowsort
SELECT + 98 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1470
8918
9016

query I rowsort
SELECT DISTINCT 86 * + col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6966

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT ALL + cor0.col1 DIV - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL + cor0.col1 / - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-3
0
0

query I rowsort
SELECT cor0.col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col2 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
-3364
-6241
-7569

query I rowsort
SELECT ALL 73 * - cor0.col0 AS col0 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col0
----
-1095
-6643
-6716

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7502
SELECT + col2 - + CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT + col2 - + CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab0 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - 6 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-6
-6
-6

query I rowsort
SELECT col0 * - tab2.col0 * - tab2.col0 AS col0 FROM tab2 GROUP BY col0
----
3375
753571
778688

query III rowsort
SELECT ALL * FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT DISTINCT - - tab2.col2 FROM tab2 GROUP BY tab2.col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT ALL - - CAST( cor0.col0 AS SIGNED ) * + cor0.col0 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL - - CAST ( cor0.col0 AS INTEGER ) * + cor0.col0 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT DISTINCT 26 FROM tab1 AS cor0 GROUP BY col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7510
SELECT + CAST( 89 AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-7510
SELECT + CAST ( 89 AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
89
89
89

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
58
79
87

query I rowsort
SELECT ALL + tab0.col2 * col2 AS col0 FROM tab0 GROUP BY col2
----
1444
576
6241

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT 61 FROM tab1 AS cor0 GROUP BY cor0.col1
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT cor0.col0 * - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1849
-676
-6889

query I rowsort
SELECT DISTINCT - ( cor0.col0 * - col0 + 59 * cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-814
-868
1886

query I rowsort
SELECT DISTINCT cor0.col2 - 76 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
-31
-5
-68

query I rowsort
SELECT ALL 28 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
28
28
28

query I rowsort
SELECT + 78 FROM tab1 AS cor0 GROUP BY cor0.col0
----
78
78
78

query I rowsort
SELECT 87 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2, cor0.col1
----
87
87
87

query I rowsort
SELECT + col2 * - 16 + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1264
-303
-608

query I rowsort
SELECT ALL + - 48 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
-48
-48
-48

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0, cor0.col0
----
9 values hashing to 559da8f454c4e5599b87319641a4f49a

query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2 GROUP BY tab2.col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7529
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - 77 * cor0.col2 col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1824
-2888
-6004

query I rowsort
SELECT + cor0.col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

query I rowsort
SELECT ALL - 42 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-42
-42
-42

query I rowsort
SELECT cor0.col1 * 43 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1763
2537
2623

query I rowsort
SELECT 40 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
40
40
40

query I rowsort
SELECT DISTINCT + 22 FROM tab0 AS cor0 GROUP BY col0
----
22

query I rowsort
SELECT DISTINCT 35 + col1 + - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
35

query I rowsort
SELECT DISTINCT - tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab0 cor0, tab1 AS cor1 GROUP BY cor0.col2
----
-24
-38
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 * cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1496
1938
204

query I rowsort
SELECT - 43 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-43
-43
-43

query I rowsort
SELECT + 92 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-7452
0

query I rowsort
SELECT - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7544
SELECT ALL - cor0.col0 * CAST( - 70 AS SIGNED ) FROM tab2 AS cor0 GROUP BY col0, cor0.col2
----
1050
6370
6440

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - cor0.col0 * CAST ( - 70 AS INTEGER ) FROM tab2 AS cor0 GROUP BY col0, cor0.col2
----
1050
6370
6440

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT DISTINCT + 71 FROM tab2 GROUP BY tab2.col0
----
71

query I rowsort
SELECT 24 FROM tab0 AS cor0 GROUP BY cor0.col1
----
24
24

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT DISTINCT - 37 * + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1628
-2109
-222

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1892
6972
702

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1
----
0
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT - CAST( NULL AS SIGNED ) + 46 FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7553
SELECT - CAST ( NULL AS INTEGER ) + 46 FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * ( - cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY col0
----
-225
-8281
-8464

query I rowsort
SELECT ALL 51 FROM tab1 AS cor0 GROUP BY cor0.col0
----
51
51
51

query I rowsort
SELECT ALL 49 FROM tab1 AS cor0 GROUP BY cor0.col0
----
49
49
49

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
-44
-57
-6

query I rowsort
SELECT ALL 97 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
97
97
97

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col1 * 84 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-3625
-4743
-496

query I rowsort
SELECT 94 FROM tab2 AS cor0 GROUP BY cor0.col1
----
94
94
94

query I rowsort
SELECT 64 FROM tab0 AS cor0 GROUP BY cor0.col0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7562
SELECT DISTINCT 20 DIV cor0.col2 + cor0.col0 + ( + 67 ) FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
110
150
93

skipif mysql # not compatible
query I rowsort label-7562
SELECT DISTINCT 20 / cor0.col2 + cor0.col0 + ( + 67 ) FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
110
150
93

query I rowsort
SELECT ALL + 5 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
5
5
5

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
44
57
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7567
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
44
57
6

query I rowsort
SELECT ALL 60 FROM tab1 cor0 GROUP BY cor0.col2
----
60
60
60

query I rowsort
SELECT col0 + + 71 * + col0 FROM tab1 GROUP BY tab1.col0
----
1584
2016
5904

query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL - cor0.col0 + - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col0
----
-126
-28
-85

query I rowsort
SELECT ALL + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 AS cor0 GROUP BY cor0.col0, col1
----
41
59
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
0

query I rowsort
SELECT ALL - 23 * - 24 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
552
552
552

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT - 7 DIV - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT - 7 / - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 5 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
290
395
435

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + cor0.col1 * 59 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
4779

query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
62

query I rowsort
SELECT ALL + 15 AS col1 FROM tab1 AS cor0 GROUP BY col2
----
15
15
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
4
4

query I rowsort
SELECT ALL 82 * + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
4756
6478
7134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col1 FROM tab1 AS cor0 GROUP BY col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-7590
SELECT ALL 38 DIV cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
0
0
6

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL 38 / cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
0
0
6

query I rowsort
SELECT DISTINCT + 91 FROM tab1 GROUP BY tab1.col0
----
91

query I rowsort
SELECT ALL - cor0.col2 + + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 * 2 + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7594
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0 GROUP BY tab2.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0 GROUP BY tab2.col1
----
NULL

query I rowsort
SELECT 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
96
96
96

query I rowsort
SELECT + - tab1.col1 AS col0 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT 40 DIV cor0.col1 FROM tab1 cor0 GROUP BY col1
----
0
0
6

skipif mysql # not compatible
query I rowsort label-7597
SELECT 40 / cor0.col1 FROM tab1 cor0 GROUP BY col1
----
0
0
6

query I rowsort
SELECT 6 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
6
6
6

query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

query I rowsort
SELECT + + 57 FROM tab0 GROUP BY tab0.col0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT + - CAST( NULL AS SIGNED ) FROM tab2 GROUP BY tab2.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2 GROUP BY tab2.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 38 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
38
38
38

query I rowsort
SELECT ALL - 84 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-84
-84
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT DISTINCT ( - col2 + + cor0.col2 ) DIV - 24 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT ( - col2 + + cor0.col2 ) / - 24 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 * cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1230
-330
-420

query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
7

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
-45
-71
-8

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
81

query I rowsort
SELECT ALL - 70 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-70
-70
-70

query I rowsort
SELECT cor0.col0 + - 3 AS col1 FROM tab0 AS cor0 GROUP BY col0, cor0.col0
----
23
40
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
81

query I rowsort
SELECT ALL 62 FROM tab0 AS cor0 GROUP BY cor0.col0
----
62
62
62

query I rowsort
SELECT ALL 99 * - ( - cor0.col1 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
4356
5643
594

query I rowsort
SELECT + 90 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
90
90

query I rowsort
SELECT 85 FROM tab0 AS cor0 GROUP BY cor0.col0
----
85
85
85

query I rowsort
SELECT 55 FROM tab2 GROUP BY col2
----
55
55
55

query I rowsort
SELECT DISTINCT - 61 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-61

query I rowsort
SELECT DISTINCT - 8 + ( + cor0.col2 * 7 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
398
545
601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT + 81 FROM tab2 AS cor0 GROUP BY cor0.col0
----
81
81
81

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT col0 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT - 32 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-32
-32
-32

query I rowsort
SELECT - cor0.col0 + - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2 HAVING NOT ( NULL ) < NULL AND NOT NULL IN ( col0 )
----

query I rowsort
SELECT + + cor0.col1 FROM tab0, tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT - tab0.col2 * - tab0.col2 AS col1 FROM tab0 GROUP BY col2
----
1444
576
6241

query I rowsort
SELECT - cor0.col2 * col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1444
-576
-6241

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT ( + 47 ) + - cor0.col2 DIV ( - cor0.col2 ) + + cor0.col2 * col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1992
48
48

skipif mysql # not compatible
query I rowsort label-7629
SELECT ( + 47 ) + - cor0.col2 / ( - cor0.col2 ) + + cor0.col2 * col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1992
48
48

query I rowsort
SELECT 42 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
42
42
42

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1849
-676
-6889

query I rowsort
SELECT ALL - 33 AS col2 FROM tab1 GROUP BY tab1.col2
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - 92 + 54 AS col2 FROM tab0 GROUP BY tab0.col1
----
-38

query I rowsort
SELECT ALL 78 + - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col0 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-7636
SELECT - cor0.col0 - - cor0.col0 DIV + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-20
-28
-81

skipif mysql # not compatible
query I rowsort label-7636
SELECT - cor0.col0 - - cor0.col0 / + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-20
-28
-81

query I rowsort
SELECT DISTINCT + 24 * + 50 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
1200

query I rowsort
SELECT + 50 FROM tab2 AS cor0 GROUP BY cor0.col0
----
50
50
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
69
69
69

query I rowsort
SELECT ALL - tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT - - 73 AS col1 FROM tab0 GROUP BY tab0.col2
----
73
73
73

query I rowsort
SELECT 3 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
3
3
3

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 GROUP BY col0, cor0.col2
----
-58
-79
-87

query I rowsort
SELECT + cor0.col1 * - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1944
0
0

query I rowsort
SELECT + 33 * tab1.col1 FROM tab1 GROUP BY tab1.col1
----
1452
1881
198

query I rowsort
SELECT ALL 45 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
45
45
45

query I rowsort
SELECT DISTINCT + + 84 FROM tab2 GROUP BY tab2.col0
----
84

query I rowsort
SELECT cor0.col2 + 63 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
121
142
150

onlyif mysql # DIV for integer division: 
query I rowsort label-7650
SELECT DISTINCT 82 DIV - 85 col0 FROM tab1, tab2 AS cor0, tab0 cor1 GROUP BY cor0.col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7650
SELECT DISTINCT 82 / - 85 col0 FROM tab1, tab2 AS cor0, tab0 cor1 GROUP BY cor0.col2
----
0

query I rowsort
SELECT 50 FROM tab1 AS cor0 GROUP BY cor0.col0
----
50
50
50

query I rowsort
SELECT ALL - 88 FROM tab2 cor0 GROUP BY cor0.col1
----
-88
-88
-88

query I rowsort
SELECT cor0.col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT ALL cor0.col0 * - 46 + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-1004
-1243
-3701

query I rowsort
SELECT + cor0.col2 FROM tab0 cor0 GROUP BY col2, cor0.col1
----
24
38
79

query I rowsort
SELECT ALL 30 FROM tab1 AS cor0 GROUP BY cor0.col0
----
30
30
30

query I rowsort
SELECT + 23 AS col1 FROM tab0 GROUP BY tab0.col0
----
23
23
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT col2 DIV - 12 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-7658
SELECT col2 / - 12 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-4
-6
-7

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab1, tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
41
59
61

query I rowsort
SELECT cor0.col0 - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, col0
----
-38
26
83

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT - 28 * - cor0.col1 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1008
54208
90972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
72
72

query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1, tab0 cor0 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT - 70 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 13 ) col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT ALL - cor0.col1 DIV 92 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
0

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL - cor0.col1 / 92 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
0

query I rowsort
SELECT DISTINCT 40 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
40

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col1, col0
----
-45
-71
-8

query I rowsort
SELECT DISTINCT + 91 FROM tab1 GROUP BY tab1.col2
----
91

query I rowsort
SELECT cor0.col2 * - 58 + 10 FROM tab1, tab1 AS cor0, tab0 AS cor1 GROUP BY cor0.col2
----
-2600
-4108
-454

query I rowsort
SELECT + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col1
----
44
57
6

query I rowsort
SELECT 33 FROM tab0 AS cor0 GROUP BY cor0.col2
----
33
33
33

query I rowsort
SELECT DISTINCT 30 FROM tab2 AS cor0 GROUP BY cor0.col1
----
30

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + 23 + + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3445
6343
7679

query I rowsort
SELECT - 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col2
----
-82
-82
-82

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT - cor0.col0 * 75 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
-1650
-2100
-6150

query I rowsort
SELECT DISTINCT + 95 * col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3895
5605
5795

query I rowsort
SELECT DISTINCT 24 FROM tab1 AS cor0 GROUP BY cor0.col2
----
24

query I rowsort
SELECT + 22 FROM tab1 AS cor0 GROUP BY cor0.col2
----
22
22
22

query I rowsort
SELECT ALL cor0.col2 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
58
79
87

query I rowsort
SELECT cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT DISTINCT + 69 DIV cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT + 69 / cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
1
2

query I rowsort
SELECT ALL cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
58
79
87

query III rowsort
SELECT * FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, col0
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 + - col2 FROM tab0 cor0 GROUP BY cor0.col2
----
1406
552
6162

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1, col0
----
-80

query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, col1
----
58
79
87

query I rowsort
SELECT cor0.col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1, cor0.col0, cor0.col1
----
9 values hashing to ad2e5fa6d094292bda21bf46c78171b8

query I rowsort
SELECT ALL + 47 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT 61 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
61
61
61

query I rowsort
SELECT col1 AS col0 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT 19 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
19
19
19

query I rowsort
SELECT ALL + ( + 71 + + cor0.col1 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
112
130
132

query I rowsort
SELECT ALL + 39 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
39
39
39

query I rowsort
SELECT + tab0.col2 + + tab0.col2 FROM tab0 GROUP BY tab0.col2
----
158
48
76

query I rowsort
SELECT ALL 40 FROM tab0 cor0 GROUP BY cor0.col1
----
40
40

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT DISTINCT + + tab0.col2 * ( 57 ) FROM tab0 GROUP BY col2
----
1368
2166
4503

query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT 49 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col0
----
49
49
49

query I rowsort
SELECT + 84 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
84
84
84

onlyif mysql # DIV for integer division: 
query I rowsort label-7709
SELECT DISTINCT + cor0.col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT + cor0.col1 / cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
68

query I rowsort
SELECT 18 FROM tab0 AS cor0 GROUP BY cor0.col2
----
18
18
18

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-7713
SELECT cor0.col0 + 29 DIV cor0.col0 AS col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
16
91
92

skipif mysql # not compatible
query I rowsort label-7713
SELECT cor0.col0 + 29 / cor0.col0 AS col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
16
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-22
-22
-22

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-7716
SELECT ALL cor0.col1 DIV - 56 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
-1
0

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL cor0.col1 / - 56 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
-1
0

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col2
----
58
79
87

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col1 FROM tab0 cor0 GROUP BY col2, col0
----
1444
576
6241

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col1 * - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1640
-3422
-3660

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1 GROUP BY col0
----
22
28
82

query I rowsort
SELECT + 27 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
27
27
27

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT - cor0.col2 + - 62 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-107
-133
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-7726
SELECT DISTINCT 1 DIV cor0.col2 FROM tab0 cor0 GROUP BY col2
----
0

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT 1 / cor0.col2 FROM tab0 cor0 GROUP BY col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
33

query I rowsort
SELECT ALL + 54 * tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1
----
0
4374

query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-182
-184
-30

query I rowsort
SELECT + 35 FROM tab1 AS cor0 GROUP BY col2
----
35
35
35

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - cor0.col0 + + ( + col0 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT - cor0.col0 + + cor0.col0 * cor0.col0 DIV - cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
-182
-184
-30

skipif mysql # not compatible
query I rowsort label-7734
SELECT - cor0.col0 + + cor0.col0 * cor0.col0 / - cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
-182
-184
-30

query I rowsort
SELECT + 89 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
89
89
89

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab1 AS cor0 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT ALL - 31 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-31
-31
-31

query I rowsort
SELECT + - 51 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + tab0.col0 AS col0 FROM tab0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT ALL - tab2.col0 AS col1 FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

query I rowsort
SELECT 42 AS col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT ( ( cor0.col0 ) * + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT ( ( cor0.col0 ) * + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ( cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL 60 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
60
60
60

query I rowsort
SELECT ALL 31 FROM tab0 cor0 GROUP BY cor0.col1
----
31
31

query I rowsort
SELECT 13 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
13
13
13

query I rowsort
SELECT 47 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
47
47
47

query III rowsort
SELECT * FROM tab2 AS cor0 GROUP BY col2, cor0.col1, cor0.col0
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT ALL col0 * 85 - col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
2184
3612
6972

onlyif mysql # DIV for integer division: 
query I rowsort label-7751
SELECT ALL + cor0.col0 DIV - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL + cor0.col0 / - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 98 * - tab2.col0 AS col2 FROM tab2 GROUP BY tab2.col0
----
-1470
-8918
-9016

query I rowsort
SELECT - cor0.col2 * + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT + 54 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
54
54
54

query I rowsort
SELECT + 87 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
87
87
87

query I rowsort
SELECT DISTINCT ( 11 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
11

query III rowsort
SELECT * FROM tab2 AS cor0 GROUP BY cor0.col1, col0, col2
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT 2 AS col0 FROM tab1 GROUP BY tab1.col2
----
2
2
2

query I rowsort
SELECT ALL + cor0.col1 * 53 FROM tab1 AS cor0 GROUP BY cor0.col1
----
2332
3021
318

query I rowsort
SELECT 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col1
----
47
47
47

query I rowsort
SELECT ALL + 78 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
78
78
78

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT + cor0.col2 * + cor0.col2 + + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2070
5112
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 * + 35 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY tab1.col1
----
875

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT ALL - 63 + cor0.col2 DIV + 2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-44
-51

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL - 63 + cor0.col2 / + 2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-44
-51

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT col2 * 2 FROM tab1 cor0 GROUP BY cor0.col2
----
142
16
90

query I rowsort
SELECT 91 FROM tab1 GROUP BY tab1.col2
----
91
91
91

query I rowsort
SELECT DISTINCT cor0.col1 * col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT 64 FROM tab1 AS cor0 GROUP BY cor0.col2
----
64
64
64

query I rowsort
SELECT + cor0.col1 * - col1 * + 48 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-314928
0

query I rowsort
SELECT 56 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
56
56

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT ALL 24 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT DISTINCT + col1 DIV cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
1

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT + col1 / cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7777
SELECT CAST( + 67 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-7777
SELECT CAST ( + 67 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
67
67
67

query I rowsort
SELECT ALL + 74 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
74
74
74

query I rowsort
SELECT 18 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
18
18
18

query I rowsort
SELECT ALL col1 + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
118
122
82

query I rowsort
SELECT 61 - - cor0.col1 * 38 FROM tab0 AS cor0 GROUP BY col1
----
3139
61

query I rowsort
SELECT ( + 78 ) * col0 + - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1155
7007
7084

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7785
SELECT DISTINCT + cor0.col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT + cor0.col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT tab2.col2 AS col2 FROM tab2 GROUP BY col2
----
58
79
87

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 GROUP BY col1, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0, cor0.col1
----
126
28
85

query I rowsort
SELECT + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col0 FROM tab2, tab1 AS cor0 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT DISTINCT + 49 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
49

query I rowsort
SELECT ALL + 14 * cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1106
1218
812

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT cor0.col1 * ( + cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
3772
5369
915

query I rowsort
SELECT ( + 33 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
33
33
33

query I rowsort
SELECT ALL - 36 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7799
SELECT + CAST( cor0.col1 AS SIGNED ) col0 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7799
SELECT + CAST ( cor0.col1 AS INTEGER ) col0 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT DISTINCT ( + 63 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
63

query I rowsort
SELECT DISTINCT + 82 AS col2 FROM tab0 GROUP BY tab0.col2
----
82

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT 19 FROM tab0 AS cor0 GROUP BY cor0.col2
----
19
19
19

query I rowsort
SELECT 66 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
66
66
66

query I rowsort
SELECT ALL 67 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
67
67

query I rowsort
SELECT - ( cor0.col0 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL 54 FROM tab0 AS cor0 GROUP BY cor0.col0
----
54
54
54

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-24
-38
-79

query I rowsort
SELECT ALL - ( 73 ) FROM tab2 AS cor0 GROUP BY col2, cor0.col2
----
-73
-73
-73

query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab1 AS cor0 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, col2
----
45
71
8

query I rowsort
SELECT ALL + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT col2 FROM tab0 cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT ALL - 13 AS col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
-13
-13
-13

query I rowsort
SELECT ALL - tab2.col0 * - tab2.col0 FROM tab2 GROUP BY tab2.col0
----
225
8281
8464

query I rowsort
SELECT ALL - 75 FROM tab1 GROUP BY tab1.col1
----
-75
-75
-75

query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
1944

query I rowsort
SELECT ALL + cor0.col1 + - cor0.col2 + 13 * + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
516
747
767

query I rowsort
SELECT - cor0.col2 FROM tab1 cor0 GROUP BY col2
----
-45
-71
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT - CAST( + cor0.col2 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

skipif mysql # not compatible
query I rowsort label-7820
SELECT - CAST ( + cor0.col2 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2025
-5041
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
30
30
30

query I rowsort
SELECT 47 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
47
47
47

query I rowsort
SELECT ALL + 21 FROM tab0 AS cor0 GROUP BY col1
----
21
21

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
87

query I rowsort
SELECT ( 61 ) + cor0.col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
102
120
122

query I rowsort
SELECT DISTINCT 34 + + cor0.col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
40
78
91

query I rowsort
SELECT 72 + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
117
143
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7828
SELECT col0 * cor0.col2 DIV ( cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0, col0
----
58
79
87

skipif mysql # not compatible
query I rowsort label-7828
SELECT col0 * cor0.col2 / ( cor0.col0 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0, col0
----
58
79
87

query I rowsort
SELECT DISTINCT - 19 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-19

query I rowsort
SELECT cor0.col0 + col0 AS col1 FROM tab2 cor0 GROUP BY col0, cor0.col0
----
182
184
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
95
95
95

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT ALL 58 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT + col0 + 37 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
119
59
65

query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col1
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab2 AS cor0 GROUP BY col0
----
-15
-91
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7838
SELECT ALL + col1 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL + col1 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT 34 * 8 + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
313
331
333

query I rowsort
SELECT ALL cor0.col1 + + ( cor0.col0 ) * + 32 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
2668
710
953

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col2 + + cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2
----
142
16
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col1 FROM tab2 AS cor0 GROUP BY col1
----
51

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col0
----
-45
-71
-8

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT - + 16 * 17 FROM tab2 GROUP BY tab2.col1
----
-272
-272
-272

query I rowsort
SELECT cor0.col0 - 94 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-11
-51
-68

query I rowsort
SELECT DISTINCT col1 * cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
1936
3249
36

query I rowsort
SELECT ALL - cor0.col0 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT - 9 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-9
-9
-9

query I rowsort
SELECT ( 56 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
56
56

query I rowsort
SELECT ( - 22 ) + + col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
19
37
39

query I rowsort
SELECT 95 FROM tab0 cor0 GROUP BY cor0.col1
----
95
95

query I rowsort
SELECT DISTINCT 33 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
33

query I rowsort
SELECT - - 58 * - cor0.col1 FROM tab2, tab0 cor0 GROUP BY cor0.col1
----
-4698
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 * - 93 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-2325

onlyif mysql # DIV for integer division: 
query I rowsort label-7858
SELECT DISTINCT col2 * cor0.col2 DIV + 75 + 89 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
116
156
89

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT col2 * cor0.col2 / + 75 + 89 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
116
156
89

query I rowsort
SELECT + 11 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
11
11
11

query I rowsort
SELECT col1 - 59 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-18
0
2

query I rowsort
SELECT DISTINCT - 21 + ( - tab0.col2 ) FROM tab0, tab2 AS cor0 GROUP BY tab0.col2
----
-100
-45
-59

query I rowsort
SELECT DISTINCT + 92 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
92

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
-22
-28
-82

query I rowsort
SELECT + 42 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
42
42
42

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT + ( - 51 ) FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
-51

query I rowsort
SELECT ALL - 20 FROM tab2 AS cor0 GROUP BY col2
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 * 25 + + 76 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-125949
-1524
-50549

query I rowsort
SELECT ALL cor0.col1 + - cor0.col0 + 87 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
116
49
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
22
28
82

query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT + 60 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
60
60
60

query I rowsort
SELECT ALL 37 * cor0.col2 * + 79 FROM tab2 AS cor0 GROUP BY cor0.col2
----
169534
230917
254301

query I rowsort
SELECT DISTINCT cor0.col0 * + 13 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
1183
1196
195

query I rowsort
SELECT ALL + col2 * 67 * cor0.col2 + + cor0.col2 AS col2 FROM tab2 cor0 GROUP BY col2
----
225446
418226
507210

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT 44 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
101
50
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT cor0.col1 DIV cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT cor0.col1 / cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7881
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 FROM tab0, tab2 cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT + cor0.col1 - 76 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-19
-32
-70

query I rowsort
SELECT - col2 + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
-38
-79
57

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
1444
576
6241

query I rowsort
SELECT 21 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
21
21
21

query I rowsort
SELECT - 50 AS col0 FROM tab2 GROUP BY tab2.col0
----
-50
-50
-50

query I rowsort
SELECT + ( 92 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
92
92

query I rowsort
SELECT ( cor0.col2 ) * - 79 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1896
-3002
-6241

query I rowsort
SELECT 23 FROM tab0 AS cor0 GROUP BY cor0.col2
----
23
23
23

query I rowsort
SELECT DISTINCT + 9 FROM tab0 AS cor0 GROUP BY col2
----
9

query I rowsort
SELECT - 43 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-43
-43
-43

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
36

query I rowsort
SELECT DISTINCT - 42 * 12 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7895
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab1 AS cor1 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab1 AS cor1 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT 24 FROM tab1 GROUP BY tab1.col1
----
24
24
24

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col2
----
45
71
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7898
SELECT + cor0.col1 + + ( cor0.col2 + + cor0.col2 ) DIV + 37 AS col0 FROM tab0 cor0 GROUP BY cor0.col1, col2
----
2
4
82

skipif mysql # not compatible
query I rowsort label-7898
SELECT + cor0.col1 + + ( cor0.col2 + + cor0.col2 ) / + 37 AS col0 FROM tab0 cor0 GROUP BY cor0.col1, col2
----
2
4
82

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT + cor0.col1 * - 46 AS col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
-1886
-2714
-2806

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) FROM tab1 cor0 GROUP BY col2, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
17

query I rowsort
SELECT ALL ( + cor0.col2 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT - 34 + tab2.col2 FROM tab2 GROUP BY tab2.col2
----
24
45
53

query I rowsort
SELECT DISTINCT + 64 FROM tab2, tab1 AS cor0 GROUP BY tab2.col1
----
64

query I rowsort
SELECT - ( - 42 ) * tab0.col0 - col0 * 30 AS col1 FROM tab0 GROUP BY tab0.col0
----
312
516
996

query I rowsort
SELECT DISTINCT 7 * cor0.col0 - - 64 FROM tab0 cor0 GROUP BY cor0.col0
----
246
365
645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT - 34 * 21 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col0
----
-714
-714
-714

query I rowsort
SELECT - 4 * - 40 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
160
160
160

query I rowsort
SELECT - 3 + 63 FROM tab1 AS cor0 GROUP BY col2
----
60
60
60

query I rowsort
SELECT ALL - cor0.col0 - - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + ( + 13 ) col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
100
71
92

query I rowsort
SELECT DISTINCT + cor0.col1 - + 92 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-35
-48
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7916
SELECT CAST( NULL AS DECIMAL ) / cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT CAST ( NULL AS REAL ) / cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT 47 + - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-24
2
39

query I rowsort
SELECT + tab0.col0 AS col0 FROM tab0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 7 col0 FROM tab0 AS cor0 GROUP BY col0
----
182
301
581

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab2 GROUP BY tab2.col0
----
37

query I rowsort
SELECT cor0.col2 * + cor0.col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
58
79
87

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT + 86 * - cor0.col0 * cor0.col0 + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-158971
-58110
-592371

query I rowsort
SELECT + cor0.col0 * + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT - 27 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-27
-27
-27

query I rowsort
SELECT - ( 54 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0, cor1.col0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
0

query I rowsort
SELECT + ( 64 + - cor0.col2 ) * 63 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1449
-945
378

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
92

query I rowsort
SELECT ALL - 64 + - 91 + + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
-140
-63
-64

query I rowsort
SELECT + cor0.col2 FROM tab2, tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 cor0 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT ( + tab0.col2 ) AS col2 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT 81 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
81

query I rowsort
SELECT 3 * + cor0.col2 FROM tab0 AS cor0 GROUP BY col2
----
114
237
72

query I rowsort
SELECT ALL 50 * col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
4550
4600
750

query I rowsort
SELECT 55 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
55
55
55

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
79

query I rowsort
SELECT - ( 72 + cor0.col0 ) * cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col0
----
-12865
-2548
-4945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * - 70 col0 FROM tab1 GROUP BY tab1.col0
----
-1540
-1540
-1540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT - CAST( NULL AS SIGNED ) FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
51
51
51

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) + + cor0.col1 * cor0.col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
205470
226996
69013

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT 91 + - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-1
0
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT 42 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
42
42
42

query I rowsort
SELECT - ( 63 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
-63
-63
-63

query I rowsort
SELECT ALL 43 + - cor0.col1 * + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6518
43

query I rowsort
SELECT DISTINCT 49 FROM tab2 GROUP BY tab2.col2
----
49

query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, col0
----
26
43
83

query I rowsort
SELECT 74 * 66 FROM tab1 GROUP BY col0
----
4884
4884
4884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7957
SELECT ALL CAST( cor0.col1 AS SIGNED ) FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL CAST ( cor0.col1 AS INTEGER ) FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - 49 col1 FROM tab1 cor0 GROUP BY cor0.col0, col1
----
-43
-5
8

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT + 56 FROM tab1 AS cor0 GROUP BY cor0.col2
----
56
56
56

query I rowsort
SELECT + 3 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3
3
3

query I rowsort
SELECT - 85 FROM tab0, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT ALL 86 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT - CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT - CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
39
39
39

query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT - 94 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
-94
-94
-94

query I rowsort
SELECT 8 FROM tab0, tab2 cor0 GROUP BY cor0.col1
----
8
8
8

query I rowsort
SELECT DISTINCT + col1 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT - 95 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-95
-95
-95

query I rowsort
SELECT ALL - 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT - ( + cor0.col0 ) FROM tab2 cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col1
----
41
59
61

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
0
81

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT + 20 FROM tab0 AS cor0 GROUP BY col2
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 23 ) col1 FROM tab2 AS cor0 GROUP BY col2
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7982
SELECT + cor0.col2 + CAST( NULL AS SIGNED ) FROM tab0 cor0 GROUP BY col2, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7982
SELECT + cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY col2, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 62 FROM tab0 AS cor0 GROUP BY col0
----
62

query I rowsort
SELECT DISTINCT - 20 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-20

query I rowsort
SELECT DISTINCT 11 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
638
869
957

query I rowsort
SELECT 53 FROM tab1, tab1 AS cor0, tab2 AS cor1 GROUP BY tab1.col1
----
53
53
53

query I rowsort
SELECT DISTINCT - 53 FROM tab2, tab0 AS cor0 GROUP BY tab2.col1
----
-53

query I rowsort
SELECT ALL tab0.col1 - 63 FROM tab0 GROUP BY col1
----
-63
18

query I rowsort
SELECT - cor0.col0 + - cor0.col2 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
-153
-30
-73

query I rowsort
SELECT - 97 + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-15
-69
-75

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY cor0.col1, col0, cor0.col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col2 + + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
2593
3206
70

query I rowsort
SELECT DISTINCT 76 FROM tab1 AS cor0 GROUP BY cor0.col2
----
76

query I rowsort
SELECT DISTINCT 81 + - 8 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
73

query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-118
-122
-82

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT + tab2.col0 + - tab2.col0 FROM tab2 GROUP BY col0
----
0
0
0

query I rowsort
SELECT cor0.col0 + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT - - cor0.col0 FROM tab2, tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT - 88 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT + - ( + tab0.col0 ) FROM tab0, tab1 AS cor0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT + col1 * tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1
----
0
6561

query I rowsort
SELECT - cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
-6561
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + tab0.col1 col2 FROM tab0 GROUP BY tab0.col1
----
-81
0

query I rowsort
SELECT ALL + 45 AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
45
45
45

query I rowsort
SELECT cor0.col1 * col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col1
----
2565
3124
48

query I rowsort
SELECT - 90 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-90
-90
-90

query I rowsort
SELECT - cor0.col0 * 46 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1 GROUP BY cor0.col0
----
-1196
-1978
-3818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8010
SELECT DISTINCT - CAST( 25 * + cor0.col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1125
-1775
-200

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT - CAST ( 25 * + cor0.col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1125
-1775
-200

query I rowsort
SELECT 72 - + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-19
-20
57

query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-21

query I rowsort
SELECT - 97 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT ALL 33 * + cor0.col1 + 55 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
1507
1936
253

query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1681
3481
3721

onlyif mysql # DIV for integer division: 
query I rowsort label-8017
SELECT - ( + col2 ) DIV 92 col1 FROM tab0 AS cor0 GROUP BY col2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8017
SELECT - ( + col2 ) / 92 col1 FROM tab0 AS cor0 GROUP BY col2
----
0
0
0

query I rowsort
SELECT 51 * - 81 AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
-4131
-4131
-4131

query I rowsort
SELECT 7 AS col1 FROM tab0 GROUP BY tab0.col2
----
7
7
7

query I rowsort
SELECT DISTINCT ( - col0 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-26
-43
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT CAST( NULL AS SIGNED ) / + 65 + col2 col0 FROM tab0 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8021
SELECT CAST ( NULL AS INTEGER ) / + 65 + col2 col0 FROM tab0 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT + 34 FROM tab0 AS cor0 GROUP BY col1
----
34
34

query I rowsort
SELECT cor0.col1 * col1 FROM tab2 AS cor0 GROUP BY col1
----
1681
3481
3721

query I rowsort
SELECT ALL - 70 AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
-70
-70
-70

query I rowsort
SELECT ALL - cor0.col1 * + col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT ALL + 90 FROM tab0 AS cor0 GROUP BY cor0.col1
----
90
90

query III rowsort
SELECT * FROM tab2 AS cor0 GROUP BY cor0.col1, col2, cor0.col0
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT ALL + 22 FROM tab1, tab0 AS cor0 GROUP BY tab1.col1
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab0 cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT DISTINCT 85 + + 8 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 col2 FROM tab0, tab2 cor0 GROUP BY cor0.col2
----
35
35
35

query I rowsort
SELECT cor0.col0 * cor0.col0 + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1892
6972
702

query I rowsort
SELECT 65 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
65
65
65

query I rowsort
SELECT cor0.col1 + + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
102
115
14

query I rowsort
SELECT ALL + ( + cor0.col2 ) AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL 99 FROM tab1 AS cor0 GROUP BY cor0.col2
----
99
99
99

query I rowsort
SELECT ALL + 12 * + 27 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
324
324
324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8038
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 26 * cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1 GROUP BY cor0.col0
----
2366
2392
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - 73 AS col1 FROM tab1, tab0 AS cor0 GROUP BY tab1.col0
----
-73
-73
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-8043
SELECT ALL cor0.col2 DIV + col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL cor0.col2 / + col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
1
1
1

query I rowsort
SELECT DISTINCT - - tab0.col1 * tab0.col1 AS col2 FROM tab0 GROUP BY tab0.col1
----
0
6561

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL - 11 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-11
-11
-11

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
22
28
82

query I rowsort
SELECT 5 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
5
5
5

query I rowsort
SELECT ALL - 49 * - cor0.col0 + - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
4368
4416
720

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT - 23 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-23
-23
-23

query I rowsort
SELECT DISTINCT - 92 FROM tab0 GROUP BY tab0.col2
----
-92

query I rowsort
SELECT ALL - 40 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT 92 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 GROUP BY cor0.col1
----
92
92
92

query I rowsort
SELECT + col2 * + col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT ALL cor0.col2 * + col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT 65 - - cor0.col1 FROM tab0 AS cor0 GROUP BY col1
----
146
65

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 AS col1 FROM tab2 AS cor0 GROUP BY col2, cor0.col1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT DISTINCT cor0.col0 + cor0.col0 DIV + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
16
92
93

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT cor0.col0 + cor0.col0 / + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
16
92
93

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT - cor0.col2 - cor0.col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col2
----
-142
-16
-90

query I rowsort
SELECT + tab1.col1 FROM tab1 GROUP BY tab1.col1 HAVING NULL < NULL
----

query I rowsort
SELECT + 56 FROM tab0 AS cor0 GROUP BY cor0.col2
----
56
56
56

query I rowsort
SELECT - 74 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-74
-74

query I rowsort
SELECT DISTINCT 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col1 FROM tab2 GROUP BY tab2.col2
----
40
40
40

query I rowsort
SELECT DISTINCT 77 + + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
158
77

query I rowsort
SELECT DISTINCT + 36 FROM tab0 AS cor0 GROUP BY cor0.col0
----
36

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col2 - - 98 AS col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-1927
-4943
34

query I rowsort
SELECT - ( 52 ) FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
-52
-52
-52

query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
-61

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL cor0.col0 * - cor0.col0 + 80 AS col2 FROM tab1 AS cor0 GROUP BY col0, cor0.col0
----
-404
-6644
-704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 * cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
4320
6816
768

query I rowsort
SELECT DISTINCT 68 FROM tab1 AS cor0 GROUP BY cor0.col1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8080
SELECT col0 DIV 86 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8080
SELECT col0 / 86 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT ( 46 * + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
4186
4232
690

query I rowsort
SELECT cor0.col2 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT DISTINCT - cor0.col0 * + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT - cor0.col1 * cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
-1936
-3249
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-77

query I rowsort
SELECT cor0.col1 + col1 + + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col2
----
123
177
183

query I rowsort
SELECT - cor0.col0 + - cor0.col0 * - 17 FROM tab1 AS cor0 GROUP BY col0
----
1312
352
448

query I rowsort
SELECT - col0 FROM tab1 cor0 GROUP BY col0, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT + 38 FROM tab1 AS cor0 GROUP BY col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT 90 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT ALL cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT 71 * + 38 + + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
2713
2789
2790

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
73

query I rowsort
SELECT + 90 FROM tab2 GROUP BY tab2.col0
----
90
90
90

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - 31 FROM tab0 GROUP BY col2
----
-31

query I rowsort
SELECT 56 - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-27
13
30

query I rowsort
SELECT ALL + cor0.col1 * 78 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3198
4602
4758

query I rowsort
SELECT col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT - + 57 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
-57

query I rowsort
SELECT DISTINCT - - 88 AS col0 FROM tab2, tab2 AS cor0 GROUP BY tab2.col2
----
88

query I rowsort
SELECT ( cor0.col1 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT 15 FROM tab0 AS cor0 GROUP BY cor0.col2
----
15
15
15

query I rowsort
SELECT ALL + 26 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
26
26

query I rowsort
SELECT ALL cor0.col2 + + 29 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
100
37
74

query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-8110
SELECT DISTINCT 9 DIV cor0.col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
0
1

skipif mysql # not compatible
query I rowsort label-8110
SELECT DISTINCT 9 / cor0.col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab2 AS cor0 GROUP BY col1
----
-41
-59
-61

query I rowsort
SELECT - 4 + - cor0.col1 AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-4
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 36 col1 FROM tab0 GROUP BY tab0.col1
----
-36
-36

query I rowsort
SELECT ALL 15 AS col0 FROM tab1 GROUP BY tab1.col1
----
15
15
15

query I rowsort
SELECT 66 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
66
66

query I rowsort
SELECT - + 48 AS col0 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-48
-48
-48

query I rowsort
SELECT 47 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
47
47

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT ALL - col2 * ( + cor0.col2 ) AS col2 FROM tab2 AS cor0 GROUP BY col2
----
-3364
-6241
-7569

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
-64

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY cor0.col0, col1, cor0.col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT ALL + 71 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
71
71
71

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-45
-71
-8

query I rowsort
SELECT - 15 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col0 col0 FROM tab2 cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
-41
-59
-61

query I rowsort
SELECT - cor0.col1 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT ALL + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-8129
SELECT cor0.col2 DIV - col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8129
SELECT cor0.col2 / - col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

query I rowsort
SELECT ALL tab0.col1 * - tab0.col1 FROM tab0 GROUP BY col1
----
-6561
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT DISTINCT - col1 - + cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT - col1 - + cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1, col2
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8133
SELECT ALL cor0.col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL cor0.col1 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col0 ) col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
22
28
82

query I rowsort
SELECT ALL cor0.col0 * + col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT ALL 69 DIV + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL 69 / + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
2
3

query I rowsort
SELECT ALL cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT - + ( + 99 ) FROM tab1 GROUP BY tab1.col0
----
-99

query I rowsort
SELECT DISTINCT - - tab2.col0 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT - + 11 FROM tab2 GROUP BY tab2.col0
----
-11
-11
-11

query I rowsort
SELECT 16 AS col0 FROM tab1 cor0 GROUP BY col2
----
16
16
16

query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT ALL + col2 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT + 50 FROM tab0 AS cor0 GROUP BY col2
----
50
50
50

query I rowsort
SELECT + 53 * cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col1
----
2173
3127
3233

query I rowsort
SELECT - 64 FROM tab1, tab1 cor0 GROUP BY cor0.col1
----
-64
-64
-64

query I rowsort
SELECT ALL + 32 FROM tab0 AS cor0 GROUP BY cor0.col2
----
32
32
32

query I rowsort
SELECT col1 * cor0.col1 FROM tab2 AS cor0 GROUP BY col1, col1, cor0.col2
----
1681
3481
3721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - 53 * ( - cor0.col1 ) col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
2403
3066
326

query I rowsort
SELECT DISTINCT + ( - 90 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-90

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT col1 * cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
1936
3249
36

query I rowsort
SELECT ALL cor0.col0 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
26
43
83

query I rowsort
SELECT ( tab1.col0 ) FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
22
28
82

query I rowsort
SELECT + 61 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1 GROUP BY cor0.col2
----
61
61
61

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
15
91
92

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT col2 * ( cor0.col0 ) * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
113535
309488
567931

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
45
71
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8163
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT - 62 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1, col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT cor0.col0 + + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
102
150
170

query I rowsort
SELECT ALL cor0.col2 + + cor0.col2 * - cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-3306
-6162
-7482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8170
SELECT + CAST( 32 AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-8170
SELECT + CAST ( 32 AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
32
32
32

query I rowsort
SELECT cor0.col2 + - 28 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
-20
17
43

query I rowsort
SELECT cor0.col0 * + ( + cor0.col2 ) AS col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
1305
5336
7189

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
9

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab1 cor0, tab0 AS cor1 GROUP BY tab2.col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * - col1 col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2, cor0.col1
----
-2106
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col2 - + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
-1482
-600
-6320

query I rowsort
SELECT col0 * cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT 89 FROM tab0 AS cor0 GROUP BY cor0.col2
----
89
89
89

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
75

query I rowsort
SELECT DISTINCT - 20 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-20

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT col0 * - col0 - col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-1892
-6972
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8187
SELECT + cor0.col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8187
SELECT + cor0.col0 / cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1
1
1

query I rowsort
SELECT DISTINCT 21 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
21

query I rowsort
SELECT ALL + 35 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col0
----
35
35
35

query I rowsort
SELECT ALL 61 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
61
61
61

query I rowsort
SELECT - 53 FROM tab1 cor0 GROUP BY col1
----
-53
-53
-53

query I rowsort
SELECT ALL + 85 FROM tab2 cor0 GROUP BY cor0.col2
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
142
16
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 * 18 col1 FROM tab0, tab0 AS cor0, tab0 cor1 GROUP BY cor1.col2
----
-1764
-1764
-1764

query I rowsort
SELECT + 97 FROM tab2 GROUP BY col2
----
97
97
97

query I rowsort
SELECT 80 AS col1 FROM tab1 GROUP BY tab1.col0
----
80
80
80

query I rowsort
SELECT 77 FROM tab2 AS cor0 GROUP BY cor0.col0
----
77
77
77

query I rowsort
SELECT DISTINCT 98 FROM tab2 cor0 GROUP BY cor0.col1
----
98

query I rowsort
SELECT col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT ALL + cor0.col1 + + 65 - - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
153
179
77

query I rowsort
SELECT ( - 12 ) + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-12
69

query I rowsort
SELECT + 62 FROM tab1 AS cor0 GROUP BY cor0.col2
----
62
62
62

query I rowsort
SELECT - 64 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-64
-64
-64

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2 AS cor0 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT ALL + 51 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
51
51
51

query I rowsort
SELECT ALL + ( cor0.col1 ) + - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT + 58 FROM tab1 AS cor0 GROUP BY cor0.col1
----
58
58
58

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1 GROUP BY cor1.col1
----
41
59
61

query I rowsort
SELECT - + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

query I rowsort
SELECT - - 46 * cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1 GROUP BY cor1.col0
----
1196
1978
3818

query I rowsort
SELECT - ( cor0.col0 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-15
-91
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col2 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT 2 FROM tab0, tab1 AS cor0, tab2 AS cor1 GROUP BY cor0.col2
----
2

query I rowsort
SELECT DISTINCT - cor0.col1 * + 56 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-2296
-3304
-3416

query I rowsort
SELECT + 46 * cor0.col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
2024
2622
276

query I rowsort
SELECT DISTINCT - 51 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8220
SELECT DISTINCT - CAST( + 63 AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-63

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT - CAST ( + 63 AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
31

query I rowsort
SELECT + 47 FROM tab1 GROUP BY tab1.col1
----
47
47
47

query I rowsort
SELECT 78 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6318

query I rowsort
SELECT + 25 * cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
2025

query I rowsort
SELECT DISTINCT - 24 FROM tab2 cor0 GROUP BY cor0.col0
----
-24

query I rowsort
SELECT DISTINCT - 41 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-41

query I rowsort
SELECT - 63 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-63
-63
-63

query I rowsort
SELECT ALL 15 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
15
15

query I rowsort
SELECT ALL + - 7 FROM tab1, tab0 AS cor0 GROUP BY tab1.col1
----
-7
-7
-7

query I rowsort
SELECT cor0.col1 + + 95 FROM tab1, tab1 AS cor0 GROUP BY cor0.col1
----
101
139
152

query I rowsort
SELECT + 93 FROM tab2 AS cor0 GROUP BY cor0.col1
----
93
93
93

query I rowsort
SELECT 70 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
70
70
70

query I rowsort
SELECT + 66 FROM tab0 AS cor0 GROUP BY cor0.col0
----
66
66
66

query I rowsort
SELECT ( 49 ) AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
49
49
49

query I rowsort
SELECT cor0.col2 * 25 FROM tab1 AS cor0 GROUP BY col2
----
1125
1775
200

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-26
-43
-83

query I rowsort
SELECT - cor0.col0 + + 30 + - cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col0
----
-152
-154
0

query I rowsort
SELECT + cor0.col1 - cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 18 ) * - cor0.col1 + + 71 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-37
-721
-955

query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
-93

query I rowsort
SELECT + 54 AS col0 FROM tab0 cor0 GROUP BY cor0.col0, col1
----
54
54
54

query I rowsort
SELECT 49 * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
1078
1372
4018

query I rowsort
SELECT - 58 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-58
-58
-58

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT tab1.col1 * 75 AS col1 FROM tab1 GROUP BY tab1.col1
----
3300
4275
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL - 16 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-16
-16
-16

query I rowsort
SELECT 50 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
50
50
50

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
81

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2 HAVING ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - 55 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT - 7 + cor0.col2 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
17
31
72

query I rowsort
SELECT ( 36 ) AS col0 FROM tab0 cor0 GROUP BY cor0.col0
----
36
36
36

query I rowsort
SELECT ALL - 90 AS col0 FROM tab0 cor0 GROUP BY cor0.col2
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab0 AS cor0 GROUP BY col2
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - 61 col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1586
-2623
-5063

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
24
38
79

query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-58
-79
-87

query I rowsort
SELECT + 9 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
9
9
9

query I rowsort
SELECT ALL - col1 + tab0.col1 FROM tab0 GROUP BY col1
----
0
0

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT ( 27 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
27
27
27

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, col0
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8266
SELECT DISTINCT - CAST( col1 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-44
-57
-6

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-44
-57
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - cor0.col0 col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-1849
-676
-6889

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
164
44
56

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT cor0.col0 + cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
182
184
30

query I rowsort
SELECT DISTINCT + col1 + + 62 * + 10 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
661
679
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1
----
-81
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + cor0.col0 + - cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-24
-38
-79

query I rowsort
SELECT + 11 FROM tab1 GROUP BY tab1.col1
----
11
11
11

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT 49 + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY col0, cor0.col2
----
107
128
136

query I rowsort
SELECT cor0.col2 * 1 * - cor0.col2 + cor0.col2 AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
-3306
-6162
-7482

query I rowsort
SELECT + 76 FROM tab2, tab0 AS cor0, tab1 AS cor1 GROUP BY cor1.col2
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 col2 FROM tab2 cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT + 70 + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
113
153
96

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 GROUP BY col2, cor0.col2
----
-58
-79
-87

query I rowsort
SELECT 7 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT + cor0.col2 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0 GROUP BY col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8285
SELECT + cor0.col2 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0 GROUP BY col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 3 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1 GROUP BY tab0.col1
----
3
3

query I rowsort
SELECT ALL - 53 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-53
-53
-53

query I rowsort
SELECT 58 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
58
58
58

query I rowsort
SELECT cor0.col1 FROM tab0, tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT 34 + + cor0.col1 - + cor0.col2 * cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
-2303
-4568
-5212

query I rowsort
SELECT - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
-81
0
0

query I rowsort
SELECT + col2 * 32 FROM tab0 AS cor0 GROUP BY col1, cor0.col2
----
1216
2528
768

query I rowsort
SELECT DISTINCT + cor0.col1 * 72 FROM tab1 AS cor0 GROUP BY col1
----
3168
4104
432

query I rowsort
SELECT ALL 72 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
72
72
72

query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT - CAST( NULL AS SIGNED ) + - col0 col1 FROM tab2 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8296
SELECT - CAST ( NULL AS INTEGER ) + - col0 col1 FROM tab2 AS cor0 GROUP BY col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab2.col0 * + 57 FROM tab2, tab1 AS cor0 GROUP BY tab2.col0
----
-5187
-5244
-855

query I rowsort
SELECT 84 FROM tab1 cor0 GROUP BY cor0.col1
----
84
84
84

query I rowsort
SELECT ALL cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
73

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1 GROUP BY col0
----
22
28
82

query I rowsort
SELECT tab1.col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL 27 * - 95 AS col2 FROM tab1 cor0 GROUP BY cor0.col2
----
-2565
-2565
-2565

query I rowsort
SELECT cor0.col2 + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
158
48
76

query I rowsort
SELECT ALL 60 FROM tab0 cor0 GROUP BY cor0.col2
----
60
60
60

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col2 FROM tab0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT 73 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
73
73
73

query I rowsort
SELECT ALL - - 28 + - 70 AS col0 FROM tab2 GROUP BY col2
----
-42
-42
-42

query I rowsort
SELECT - - tab2.col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT - 32 FROM tab1 AS cor0 GROUP BY col1
----
-32
-32
-32

query I rowsort
SELECT DISTINCT 28 FROM tab1 AS cor0 GROUP BY col0
----
28

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
1980
3306
42

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT + + 76 AS col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
76
76
76

query I rowsort
SELECT + 45 FROM tab1, tab2 AS cor0, tab0 AS cor1 GROUP BY tab1.col1
----
45
45
45

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

query I rowsort
SELECT + tab1.col0 FROM tab1, tab2 AS cor0 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT ALL cor0.col0 * + 17 AS col0 FROM tab1 cor0 GROUP BY col0
----
1394
374
476

query I rowsort
SELECT - 68 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
-68
-68
-68

query I rowsort
SELECT DISTINCT 63 FROM tab0 AS cor0 GROUP BY cor0.col1
----
63

query I rowsort
SELECT DISTINCT cor0.col2 + col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
158
48
76

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col2 FROM tab1 AS cor0 GROUP BY col1
----
-44
-57
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 GROUP BY cor0.col2, col0, cor0.col1
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT - cor0.col0 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ALL + 7 FROM tab2 GROUP BY tab2.col0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8333
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT DISTINCT - tab1.col2 + - tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
-142
-16
-90

query I rowsort
SELECT + 15 + + cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
21
59
72

query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT - cor0.col0 FROM tab1, tab0 cor0 GROUP BY cor0.col0
----
-26
-43
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-20
-20

query I rowsort
SELECT + 4 FROM tab2 cor0 GROUP BY cor0.col2
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8340
SELECT DISTINCT cor0.col2 + cor0.col0 DIV CAST( + cor0.col0 AS SIGNED ) AS col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
59
80
88

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT cor0.col2 + cor0.col0 / CAST ( + cor0.col0 AS INTEGER ) AS col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
59
80
88

query I rowsort
SELECT - col1 AS col1 FROM tab1 GROUP BY col1
----
-44
-57
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT DISTINCT 67 DIV col1 + col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
29
33
83

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT 67 / col1 + col0 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
29
33
83

query I rowsort
SELECT + col2 + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-1623
-3402
-3634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 + + 29 col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col2
----
41

query I rowsort
SELECT + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, col1
----
41
59
61

query I rowsort
SELECT + 50 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
50
50
50

query I rowsort
SELECT ALL 50 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col2
----
50
50
50

query I rowsort
SELECT + cor0.col2 * + 8 AS col2 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
360
568
64

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT 82 + col0 FROM tab2 cor0 GROUP BY cor0.col0
----
173
174
97

query I rowsort
SELECT + - 62 FROM tab2, tab2 cor0 GROUP BY cor0.col0
----
-62
-62
-62

query I rowsort
SELECT ALL 17 + - cor0.col1 + 38 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
-26
55

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
92

query I rowsort
SELECT - ( 90 ) FROM tab0 cor0 GROUP BY cor0.col0
----
-90
-90
-90

query I rowsort
SELECT ALL + 38 + - cor0.col0 - - ( + cor0.col1 ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
22
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
45
71
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8360
SELECT ALL + cor0.col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + cor0.col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 + - cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
-105
-38
-79

query I rowsort
SELECT + 88 * cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
3608
5192
5368

query I rowsort
SELECT + cor0.col1 * cor0.col1 - - cor0.col1 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
1722
3540
3782

query I rowsort
SELECT 71 + + cor0.col1 * + col1 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
6632
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8365
SELECT ALL col0 DIV cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL col0 / cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT ALL 33 FROM tab0 AS cor0 GROUP BY cor0.col2
----
33
33
33

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2, cor0.col2
----
116
158
174

query I rowsort
SELECT cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - cor1.col0 * cor1.col1 * - cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col0, cor1.col1
----
13725
347024
488579

query I rowsort
SELECT - + ( - 19 ) FROM tab2, tab0 cor0 GROUP BY tab2.col1
----
19
19
19

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
91

query I rowsort
SELECT DISTINCT ( col0 + - cor0.col1 * - cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
26
6604
83

query I rowsort
SELECT DISTINCT + 83 * 43 FROM tab0 AS cor0 GROUP BY col2
----
3569

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL + 94 AS col1 FROM tab2 GROUP BY col0
----
94
94
94

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT + cor0.col0 * - cor0.col0 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT - cor0.col1 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-2378
-4661
-5307

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2 cor0 GROUP BY col1, cor0.col2
----
41
59
61

query I rowsort
SELECT ( 93 * - cor0.col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-4185
-6603
-744

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col2 FROM tab1 cor0 GROUP BY col2, col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col2 FROM tab1 cor0 GROUP BY col2, col2
----
NULL

query I rowsort
SELECT + 95 FROM tab0 GROUP BY col2
----
95
95
95

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT cor0.col1 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
114
12
88

query I rowsort
SELECT DISTINCT - 7 + - 35 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-42

query I rowsort
SELECT ALL + 74 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
4

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + tab1.col1 col0 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT cor0.col1 * 70 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
2870
4130
4270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-8
-8
-8

query I rowsort
SELECT 31 FROM tab0 AS cor0 GROUP BY cor0.col0
----
31
31
31

query I rowsort
SELECT DISTINCT 4 FROM tab0 cor0 GROUP BY cor0.col2
----
4

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
15
91
92

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT ALL + 85 + + cor1.col2 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1 GROUP BY cor1.col2
----
130
156
93

query I rowsort
SELECT + tab0.col1 AS col0 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT - ( + 47 ) AS col1 FROM tab2 AS cor0 GROUP BY col2
----
-47
-47
-47

query I rowsort
SELECT ALL ( 36 ) * + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
1620
2556
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-77
-77
-77

query I rowsort
SELECT - ( + 64 ) * + cor0.col1 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-419904
0
0

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8412
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT ALL col2 + CAST( + cor0.col2 AS SIGNED ) FROM tab2 AS cor0 GROUP BY col2
----
116
158
174

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL col2 + CAST ( + cor0.col2 AS INTEGER ) FROM tab2 AS cor0 GROUP BY col2
----
116
158
174

query I rowsort
SELECT ALL - - tab0.col2 FROM tab0, tab2 cor0 GROUP BY tab0.col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * tab2.col1 + + tab2.col1 col0 FROM tab2 GROUP BY col1
----
1722
3540
3782

query I rowsort
SELECT ALL + cor0.col0 * + col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
484
6724
784

query I rowsort
SELECT 63 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
63
63
63

query I rowsort
SELECT cor0.col1 * - cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
-1681
-3481
-3721

query I rowsort
SELECT - 4 FROM tab2 AS cor0 GROUP BY col1
----
-4
-4
-4

query I rowsort
SELECT ALL 76 FROM tab1 AS cor0 GROUP BY cor0.col2
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT 77 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col0 FROM tab0, tab1 cor0, tab2 AS cor1 GROUP BY cor1.col0
----
71

query I rowsort
SELECT 22 * + 96 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
124608
128832
86592

query I rowsort
SELECT ALL - col2 - 82 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-127
-153
-90

query I rowsort
SELECT cor0.col1 + - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
0

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab2 cor0 GROUP BY cor0.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT 11 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
11
11

query I rowsort
SELECT DISTINCT - 46 FROM tab0 GROUP BY col0
----
-46

query I rowsort
SELECT + cor0.col1 * 23 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
1863

query I rowsort
SELECT - 12 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-12
-12
-12

query I rowsort
SELECT + ( - cor0.col0 + cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col1 + col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0, col1
----
0
0
162

query I rowsort
SELECT ALL - 51 * col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
-1224
-1938
-4029

query I rowsort
SELECT + 62 FROM tab2, tab1 cor0 GROUP BY cor0.col1
----
62
62
62

query I rowsort
SELECT 0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
0
0
0

query I rowsort
SELECT DISTINCT + 34 FROM tab1 AS cor0 GROUP BY cor0.col2, col1
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * cor0.col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT col2 * 90 - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
5162
7031
7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 14 col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1274
1288
210

query I rowsort
SELECT ALL - cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT - 76 FROM tab0 cor0 GROUP BY cor0.col0
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
15
15
15

query I rowsort
SELECT ALL ( ( + cor0.col1 ) ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

query I rowsort
SELECT ALL 53 FROM tab0 AS cor0 GROUP BY cor0.col2
----
53
53
53

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT ( - col1 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-41
-59
-61

query I rowsort
SELECT ALL + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0, col2
----
26
43
83

query I rowsort
SELECT DISTINCT + 62 FROM tab1 AS cor0 GROUP BY cor0.col0
----
62

query I rowsort
SELECT - cor0.col1 * - cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
1681
3481
3721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT ( - cor0.col1 * + cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT DISTINCT + 49 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
49

query I rowsort
SELECT + ( + cor0.col2 ) AS col1 FROM tab2 AS cor0 GROUP BY col2, col0
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
24
24

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY col1
----
44
57
6

query I rowsort
SELECT ALL + 21 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
21
21
21

query I rowsort
SELECT ALL - + 18 FROM tab0, tab2 AS cor0 GROUP BY tab0.col2
----
-18
-18
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT ALL tab2.col0 + 47 DIV + 27 AS col0 FROM tab2 GROUP BY col0
----
16
92
93

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL tab2.col0 + 47 / + 27 AS col0 FROM tab2 GROUP BY col0
----
16
92
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-54
-54
-54

query I rowsort
SELECT - 55 * + cor0.col0 + 81 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1349
-2284
-4484

query I rowsort
SELECT ALL - 26 FROM tab1 cor0 GROUP BY cor0.col0
----
-26
-26
-26

query I rowsort
SELECT + 33 * + cor0.col2 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
1254
2607
792

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
81

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
44
57
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8470
SELECT ALL - cor0.col1 + CAST( - 5 AS SIGNED ) * - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
249
336
374

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - cor0.col1 + CAST ( - 5 AS INTEGER ) * - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
249
336
374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8471
SELECT col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8471
SELECT col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
NULL
NULL

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY col0, cor0.col1, cor0.col2, cor0.col1
----
44
57
6

query I rowsort
SELECT - 70 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-70
-70

query I rowsort
SELECT - cor0.col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
-22
-28
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT - ( - ( cor0.col0 ) ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT - ( - ( cor0.col0 ) ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 63 AS col0 FROM tab2 cor0 GROUP BY col0
----
63

query I rowsort
SELECT ALL 11 FROM tab0 AS cor0 GROUP BY cor0.col2
----
11
11
11

query I rowsort
SELECT DISTINCT - 6 * + tab2.col1 FROM tab2, tab2 AS cor0 GROUP BY tab2.col1
----
-246
-354
-366

query I rowsort
SELECT DISTINCT + 96 + 77 * cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1251
7103
7180

query I rowsort
SELECT - cor0.col1 * - ( cor0.col0 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
132
1596
3608

query I rowsort
SELECT + 68 AS col0 FROM tab1 GROUP BY col1
----
68
68
68

query I rowsort
SELECT col1 AS col1 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT cor0.col0 * 4 * - 25 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-2600
-4300
-8300

query I rowsort
SELECT DISTINCT - 45 FROM tab2, tab1 AS cor0 GROUP BY tab2.col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8485
SELECT DISTINCT cor0.col2 + + cor0.col1 DIV - 82 + + cor0.col2 AS col0 FROM tab1 cor0 GROUP BY col2, col1
----
142
16
90

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT cor0.col2 + + cor0.col1 / - 82 + + cor0.col2 AS col0 FROM tab1 cor0 GROUP BY col2, col1
----
142
16
90

query I rowsort
SELECT ( - cor0.col0 + cor0.col0 ) * - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
0
0
0

query I rowsort
SELECT DISTINCT - 43 * cor0.col2 * 13 FROM tab0 AS cor0 GROUP BY col2
----
-13416
-21242
-44161

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT ALL - 34 DIV - col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL - 34 / - col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
4

query I rowsort
SELECT - 61 FROM tab2, tab2 AS cor0 GROUP BY tab2.col2
----
-61
-61
-61

query I rowsort
SELECT DISTINCT - cor1.col0 * 28 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col2, cor1.col0
----
-2548
-2576
-420

query I rowsort
SELECT ALL ( - cor0.col1 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8492
SELECT DISTINCT + cor0.col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + cor0.col0 / cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1

query I rowsort
SELECT - 6 * cor0.col2 FROM tab0 cor0 GROUP BY col2
----
-144
-228
-474

onlyif mysql # DIV for integer division: 
query I rowsort label-8494
SELECT - col2 DIV tab0.col2 FROM tab0 GROUP BY tab0.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8494
SELECT - col2 / tab0.col2 FROM tab0 GROUP BY tab0.col2
----
-1
-1
-1

query I rowsort
SELECT ALL tab2.col2 + 5 * + col2 AS col0 FROM tab2 GROUP BY col2
----
348
474
522

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT DISTINCT - ( 72 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-72

query I rowsort
SELECT - 1 FROM tab0 cor0 GROUP BY cor0.col2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT cor0.col1 * col0 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1
----
132
1596
3608

query I rowsort
SELECT ALL 10 FROM tab1 AS cor0 GROUP BY cor0.col2
----
10
10
10

query I rowsort
SELECT cor0.col2 * - ( - 73 ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
4234
5767
6351

query I rowsort
SELECT ALL + cor0.col2 + - 6 FROM tab2 AS cor0 GROUP BY cor0.col2
----
52
73
81

query I rowsort
SELECT ( + col1 ) + + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
114
12
88

query I rowsort
SELECT ALL - 39 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-39
-39
-39

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT - ( cor0.col2 ) + - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-142
-16
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col1 * - col1 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-531441
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 61 * 64 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
-3904
-3904
-3904

query I rowsort
SELECT - col0 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT 35 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
35
35
35

query I rowsort
SELECT + 61 FROM tab2 AS cor0 GROUP BY cor0.col0
----
61
61
61

query I rowsort
SELECT ALL 58 FROM tab1 AS cor0 GROUP BY cor0.col0
----
58
58
58

query I rowsort
SELECT + 12 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
12
12

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
-45
-71
-8

query I rowsort
SELECT cor0.col2 * - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col2
----
-1444
-576
-6241

query I rowsort
SELECT ALL 18 - tab0.col1 FROM tab0 GROUP BY tab0.col1
----
-63
18

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT - + ( - tab2.col1 ) * + tab2.col1 * - tab2.col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
-205379
-226981
-68921

query I rowsort
SELECT + col0 + 69 FROM tab1 AS cor0 GROUP BY col0
----
151
91
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8522
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT ALL 98 - - cor0.col2 * cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
3462
6339
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab0 GROUP BY tab0.col1
----
-35
-35

query I rowsort
SELECT - 20 FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY cor1.col0
----
-20
-20
-20

query I rowsort
SELECT ALL cor0.col2 * 45 FROM tab1 cor0 GROUP BY cor0.col2
----
2025
3195
360

query I rowsort
SELECT - 40 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-40
-40
-40

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT + 35 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
35
35
35

query I rowsort
SELECT - 91 + 70 FROM tab2 cor0 GROUP BY col2
----
-21
-21
-21

query I rowsort
SELECT ALL - 85 FROM tab1 AS cor0 GROUP BY col1
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab2 GROUP BY col0
----
-19

query I rowsort
SELECT DISTINCT - 37 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 18 col0 FROM tab1 AS cor0 GROUP BY col2
----
-1278
-144
-810

query I rowsort
SELECT + + 13 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT ALL cor0.col2 + 19 * + cor0.col0 - cor0.col0 DIV 54 AS col1 FROM tab1 cor0 GROUP BY col0, cor0.col2
----
1628
426
577

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL cor0.col2 + 19 * + cor0.col0 - cor0.col0 / 54 AS col1 FROM tab1 cor0 GROUP BY col0, cor0.col2
----
1628
426
577

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab1 GROUP BY col1
----
-47

query I rowsort
SELECT DISTINCT + cor0.col0 - 51 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
-25
-8
32

query I rowsort
SELECT + 63 * cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col2
----
2835
4473
504

query I rowsort
SELECT ( 62 ) FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
62
62
62

query I rowsort
SELECT + 24 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
29
29
29

query I rowsort
SELECT DISTINCT ( 85 ) * + cor0.col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
4930
6715
7395

query I rowsort
SELECT - 55 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * cor0.col1 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

query I rowsort
SELECT DISTINCT 33 AS col2 FROM tab0, tab2 cor0 GROUP BY cor0.col2
----
33

query I rowsort
SELECT 35 FROM tab0, tab2 cor0 GROUP BY cor0.col0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col0 ) col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT cor0.col0 + - 36 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-21
55
56

query I rowsort
SELECT ALL 61 FROM tab1 AS cor0 GROUP BY cor0.col0
----
61
61
61

query I rowsort
SELECT ALL + 76 - + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-15
-16
61

query I rowsort
SELECT + 65 FROM tab0 GROUP BY col2
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col1 + cor0.col0 * + cor0.col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
498
6839
886

query I rowsort
SELECT 22 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT 95 * cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
3895
5605
5795

query I rowsort
SELECT ( + cor0.col0 ) AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT 94 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
116
122
176

query I rowsort
SELECT ALL - + 58 * - cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1 GROUP BY cor0.col2
----
1392
2204
4582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL - 24 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-24
-24

query I rowsort
SELECT 54 + cor0.col2 FROM tab2, tab1 cor0 GROUP BY cor0.col2
----
125
62
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8564
SELECT ALL - 37 DIV - 61 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL - 37 / - 61 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, col2
----
114
12
88

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0, cor0.col2
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, col1
----
44
57
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT ALL 8 FROM tab0 AS cor0 GROUP BY cor0.col1
----
8
8

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2 cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT DISTINCT - cor0.col0 * 85 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-2210
-3655
-7055

query I rowsort
SELECT DISTINCT + ( - cor0.col0 * + ( 86 ) ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
-2236
-3698
-7138

query I rowsort
SELECT 39 FROM tab0 AS cor0 GROUP BY cor0.col2
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY tab1.col1
----
-86
-86
-86

query I rowsort
SELECT + 84 - cor0.col2 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
-3
26
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8576
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0 GROUP BY col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL CAST ( NULL AS REAL ) FROM tab0 GROUP BY col1
----
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL - - 38 + + 86 FROM tab1, tab0 AS cor0, tab2 AS cor1 GROUP BY cor1.col0
----
124
124
124

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT col2 * 2 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col2
----
158
48
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8581
SELECT ( - cor0.col1 ) DIV cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8581
SELECT ( - cor0.col1 ) / cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-1
-1
-1

query I rowsort
SELECT ALL 34 FROM tab2 cor0 GROUP BY cor0.col0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT + cor0.col2 + - col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
44
7
70

skipif mysql # not compatible
query I rowsort label-8583
SELECT + cor0.col2 + - col2 / cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
44
7
70

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
-81
0

query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col1
----
0
81

query I rowsort
SELECT 76 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
3344
4332
456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - 30 col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-14
-27
24

query III rowsort
SELECT * FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2, cor0.col0
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( tab2.col0 ) col0 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT ALL 59 FROM tab0 AS cor0 GROUP BY col1
----
59
59

query I rowsort
SELECT DISTINCT - cor0.col2 - 54 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-125
-62
-99

query I rowsort
SELECT ALL ( + cor0.col1 * + cor0.col1 ) + + col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
6642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8593
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT + 27 FROM tab1 AS cor0 GROUP BY col1
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8595
SELECT ( cor0.col0 ) * + CAST( - ( cor0.col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY col0
----
-484
-6724
-784

skipif mysql # not compatible
query I rowsort label-8595
SELECT ( cor0.col0 ) * + CAST ( - ( cor0.col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY col0
----
-484
-6724
-784

query I rowsort
SELECT DISTINCT + 53 FROM tab0 AS cor0 GROUP BY cor0.col2
----
53

query I rowsort
SELECT ( - cor0.col1 + - 69 ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-150
-69

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col1 + cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col1
----
2007
3294
44

query I rowsort
SELECT ALL cor0.col2 FROM tab1 cor0 GROUP BY col2, cor0.col0
----
45
71
8

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
62

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 GROUP BY col2, cor0.col0
----
58
79
87

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT - cor0.col1 * - 30 + 12 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
12
2442

query I rowsort
SELECT ALL 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
35
35
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8605
SELECT ALL cor0.col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL cor0.col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 59 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, col2
----
59
59
59

query I rowsort
SELECT ALL - cor0.col2 + + ( - 38 ) + - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-114
-196
-86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8608
SELECT - CAST( NULL AS DECIMAL ) * + cor0.col1 * + col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8608
SELECT - CAST ( NULL AS REAL ) * + cor0.col1 * + col1 FROM tab2 AS cor0 GROUP BY cor0.col1, col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( 45 ) AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
-45

query I rowsort
SELECT ALL + 11 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col2 FROM tab1 GROUP BY col0
----
22
28
82

query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0 GROUP BY col1
----
-81
0

query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-41
-59
-61

query I rowsort
SELECT col1 * - 43 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1763
-2537
-2623

query I rowsort
SELECT DISTINCT cor0.col0 * + 26 * - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-139594
-23790
-98072

query I rowsort
SELECT ( + 65 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
65
65
65

query I rowsort
SELECT 76 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
76
76
76

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

query I rowsort
SELECT + cor0.col0 * 65 + - cor0.col0 * + cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-1394
1036
946

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
44
57
6

query I rowsort
SELECT + cor0.col2 + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
142
16
90

query I rowsort
SELECT ALL cor0.col2 + - col2 FROM tab0 cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ALL + 64 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) - 22 col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
-105
-48
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT - CAST( 5 AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-8626
SELECT - CAST ( 5 AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
-5
-5
-5

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT 43 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
43
43
43

query I rowsort
SELECT cor0.col2 - cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT - ( + cor0.col0 + + cor0.col0 ) FROM tab2 AS cor0 GROUP BY cor0.col0
----
-182
-184
-30

query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT + 47 FROM tab0 GROUP BY tab0.col2
----
47

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + ( 36 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-46
14
8

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
-24
-38
-79

query I rowsort
SELECT - 35 * - cor0.col2 + cor0.col2 - cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, col2
----
1285
2818
821

query I rowsort
SELECT DISTINCT - ( + cor0.col2 + cor0.col0 ) FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-105
-121
-67

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL tab0.col1 AS col1 FROM tab0 GROUP BY tab0.col1
----
0
81

query I rowsort
SELECT DISTINCT + 78 + + col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
102
116
157

query I rowsort
SELECT ALL 8 FROM tab0 AS cor0 GROUP BY cor0.col0
----
8
8
8

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT + 43 DIV - 1 + + cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
441
6681
741

skipif mysql # not compatible
query I rowsort label-8642
SELECT + 43 / - 1 + + cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
441
6681
741

query I rowsort
SELECT cor0.col0 + - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
0
0
0

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 GROUP BY cor0.col0
----
10

query I rowsort
SELECT + 62 + 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
72
72
72

query I rowsort
SELECT ALL cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col2
----
58
79
87

onlyif mysql # DIV for integer division: 
query I rowsort label-8647
SELECT ALL + 34 DIV - 76 col0 FROM tab2 AS cor0 GROUP BY col1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8647
SELECT ALL + 34 / - 76 col0 FROM tab2 AS cor0 GROUP BY col1
----
0
0
0

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT cor0.col2 - cor0.col2 * 40 FROM tab2 AS cor0 GROUP BY col2
----
-2262
-3081
-3393

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
27

query I rowsort
SELECT 1 AS col0 FROM tab0 GROUP BY tab0.col0
----
1
1
1

query I rowsort
SELECT cor0.col2 * 35 * + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0 GROUP BY col2
----
-20160
-218435
-50540

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT ALL ( + cor0.col2 ) AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL + - tab1.col0 AS col0 FROM tab1 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT - 42 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 * + cor0.col2 FROM tab2 AS cor0 GROUP BY col2, col1, cor0.col0
----
-113535
-309488
-567931

query I rowsort
SELECT ALL - 29 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT - col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT + 39 FROM tab1 AS cor0 GROUP BY cor0.col2
----
39

query I rowsort
SELECT - 41 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-41
-41
-41

query I rowsort
SELECT - 61 + - cor0.col0 AS col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
-152
-153
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT ALL + cor0.col0 + - CAST( NULL AS SIGNED ) * + 22 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL + cor0.col0 + - CAST ( NULL AS INTEGER ) * + 22 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8667
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT DISTINCT col2 + + col0 * - 32 * - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
186375
40365
5640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-31
-31
-31

query I rowsort
SELECT tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab2 GROUP BY tab2.col2
----
27

query I rowsort
SELECT DISTINCT 27 * cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1215
1917
216

query I rowsort
SELECT 93 AS col0 FROM tab1 GROUP BY tab1.col0
----
93
93
93

query I rowsort
SELECT ALL + - cor0.col1 AS col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT DISTINCT cor0.col2 + CAST( - 89 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-18
-44
-81

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT cor0.col2 + CAST ( - 89 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-18
-44
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT + ( - cor0.col1 ) AS col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT - 94 + cor0.col1 * + 48 FROM tab1 cor0 GROUP BY cor0.col1, col0
----
194
2018
2642

query I rowsort
SELECT ALL + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, col1
----
0
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT - CAST( 13 AS SIGNED ) * - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1027
1131
754

skipif mysql # not compatible
query I rowsort label-8681
SELECT - CAST ( 13 AS INTEGER ) * - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
1027
1131
754

query I rowsort
SELECT + 38 FROM tab1 AS cor0 GROUP BY cor0.col2
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 11 FROM tab1 AS cor0 GROUP BY cor0.col1
----
11

query I rowsort
SELECT + 23 FROM tab2 GROUP BY col1
----
23
23
23

query I rowsort
SELECT - ( 20 ) * + cor0.col1 + - ( col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
-1701
0

query I rowsort
SELECT + ( 10 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
10
10
10

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
24
38
79

query I rowsort
SELECT 50 * + 82 + + cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
4115
4191
4192

query I rowsort
SELECT 23 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
23
23

query I rowsort
SELECT + ( cor0.col1 ) * - 30 FROM tab1 cor0 GROUP BY cor0.col1
----
-1320
-1710
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT - 20 + + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
-14
24
37

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col2 FROM tab2 AS cor0 GROUP BY col2
----
-3364
-6241
-7569

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT 0 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, col1
----
0
0
0

query I rowsort
SELECT ALL + 90 FROM tab2 AS cor0 GROUP BY cor0.col0
----
90
90
90

query I rowsort
SELECT 63 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 2 ) col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 col0 FROM tab0 cor0 GROUP BY cor0.col0
----
84
84
84

query I rowsort
SELECT ALL cor0.col0 - - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
166
52
86

query I rowsort
SELECT DISTINCT - 29 FROM tab0 cor0 GROUP BY cor0.col1
----
-29

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
92

query I rowsort
SELECT + cor0.col0 FROM tab2, tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col2 FROM tab2 GROUP BY col1
----
41
59
61

query I rowsort
SELECT col1 + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1
----
118
122
82

query I rowsort
SELECT 10 FROM tab0 AS cor0 GROUP BY cor0.col0
----
10
10
10

query I rowsort
SELECT + 80 FROM tab1 GROUP BY tab1.col0
----
80
80
80

query I rowsort
SELECT DISTINCT - 94 - cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
-102
-139
-165

query I rowsort
SELECT 62 * - 5 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-310
-310
-310

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT ALL 67 DIV - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL 67 / - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1
-1
-11

query I rowsort
SELECT - + cor0.col0 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT ( 0 ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 80 + - cor0.col0 AS col0 FROM tab2 cor0 GROUP BY cor0.col0
----
-171
-172
-95

query I rowsort
SELECT 48 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
48
48
48

query I rowsort
SELECT - 70 + - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-128
-149
-157

query I rowsort
SELECT DISTINCT - 92 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-92

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0 cor0 GROUP BY col0
----
-26
-43
-83

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY col2
----
58
79
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8723
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 GROUP BY col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8723
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 GROUP BY col2
----
NULL

query I rowsort
SELECT DISTINCT 97 FROM tab0 AS cor0 GROUP BY cor0.col2
----
97

query I rowsort
SELECT 85 + + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
166
85

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8726
SELECT - CAST( NULL AS DECIMAL ) col0 FROM tab2 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8726
SELECT - CAST ( NULL AS REAL ) col0 FROM tab2 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col1
----
41
59
61

query I rowsort
SELECT ALL + 50 FROM tab1 AS cor0 GROUP BY cor0.col1
----
50
50
50

query I rowsort
SELECT + 16 FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY cor1.col0
----
16
16
16

query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-45

query I rowsort
SELECT DISTINCT 6 * cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
132
168
492

query I rowsort
SELECT 73 FROM tab2 AS cor0 GROUP BY cor0.col2
----
73
73
73

query I rowsort
SELECT - cor0.col1 + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT + col0 AS col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

query I rowsort
SELECT - col1 * 61 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-4941
0

query I rowsort
SELECT ALL cor0.col1 - 37 * - 15 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
555
555
636

query I rowsort
SELECT ALL cor0.col1 + 15 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
21
59
72

query I rowsort
SELECT col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT + 89 FROM tab0 AS cor0 GROUP BY cor0.col0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab1 GROUP BY col2
----
40
40
40

query I rowsort
SELECT + 16 FROM tab0 cor0 GROUP BY cor0.col1
----
16
16

query I rowsort
SELECT ( 96 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
96
96
96

query I rowsort
SELECT 21 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
21
21
21

query I rowsort
SELECT + 86 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * cor0.col0 col0 FROM tab1 AS cor0 GROUP BY col0
----
484
6724
784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col1
----
41
59
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT - cor0.col2 * + CAST( + 34 AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
-1530
-2414
-272

skipif mysql # not compatible
query I rowsort label-8750
SELECT - cor0.col2 * + CAST ( + 34 AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
-1530
-2414
-272

query I rowsort
SELECT cor0.col1 * 29 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1276
1653
174

query I rowsort
SELECT 41 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
41
41
41

query I rowsort
SELECT DISTINCT + 90 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
90

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
15
91
92

query I rowsort
SELECT + ( + cor0.col0 ) + - col0 AS col0 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 - + cor0.col2 col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-158
-48
-76

query I rowsort
SELECT ALL + 38 FROM tab0 AS cor0 GROUP BY col0
----
38
38
38

query I rowsort
SELECT ALL - 69 AS col1 FROM tab1 GROUP BY tab1.col1
----
-69
-69
-69

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col2
----
-15
-91
-92

query I rowsort
SELECT ALL 92 - + cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
11
92

query I rowsort
SELECT - 28 + 2 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
-26
-26

query I rowsort
SELECT ALL + col1 * 51 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
4131

query I rowsort
SELECT ALL + 4 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
4
4

query I rowsort
SELECT ( cor0.col2 ) + 17 FROM tab0 AS cor0 GROUP BY cor0.col2
----
41
55
96

query I rowsort
SELECT ALL + col2 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0
----
41
59
61

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0 HAVING NOT NULL NOT IN ( + cor0.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL + cor0.col1 * col0 AS col0 FROM tab0 cor0 GROUP BY col1, cor0.col0
----
0
0
3483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-41
-41
-41

query I rowsort
SELECT DISTINCT 4 FROM tab2 AS cor0 GROUP BY cor0.col2
----
4

query I rowsort
SELECT DISTINCT 77 FROM tab2 AS cor0 GROUP BY cor0.col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT CAST( - 28 AS SIGNED ) * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-1624
-2212
-2436

skipif mysql # not compatible
query I rowsort label-8774
SELECT CAST ( - 28 AS INTEGER ) * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-1624
-2212
-2436

query I rowsort
SELECT + 76 FROM tab1, tab1 AS cor0, tab2 cor1 GROUP BY cor0.col1
----
76
76
76

query I rowsort
SELECT ALL 20 FROM tab1 cor0 GROUP BY cor0.col2
----
20
20
20

query I rowsort
SELECT - 26 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-26
-26
-26

query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT + col2 + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
158
48
76

query I rowsort
SELECT ALL 87 + ( cor0.col0 ) * cor0.col0 AS col2 FROM tab1, tab2 cor0 GROUP BY cor0.col0
----
312
8368
8551

query I rowsort
SELECT - cor0.col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT ALL - + 21 FROM tab2 GROUP BY tab2.col2
----
-21
-21
-21

query I rowsort
SELECT 94 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
94
94
94

query I rowsort
SELECT 34 * - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-2788
-748
-952

query I rowsort
SELECT 30 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
30
30
30

query I rowsort
SELECT ALL 5 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
5
5
5

query I rowsort
SELECT DISTINCT 49 FROM tab0 AS cor0 GROUP BY col0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT cor0.col0 + - cor0.col0 + - 0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col2 col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
105
121
67

query I rowsort
SELECT col2 - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
-12
-34
72

query I rowsort
SELECT DISTINCT + 59 FROM tab0 AS cor0 GROUP BY cor0.col2
----
59

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
95

query I rowsort
SELECT - 16 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
-16
-16

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col0
----
0
0
81

query I rowsort
SELECT DISTINCT + cor0.col1 + 39 FROM tab1 cor0 GROUP BY col1
----
45
83
96

query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col2
----
58
79
87

query I rowsort
SELECT ALL + + 54 AS col2 FROM tab2, tab0 AS cor0 GROUP BY tab2.col2
----
54
54
54

query I rowsort
SELECT + 24 FROM tab0 GROUP BY tab0.col2
----
24
24
24

query I rowsort
SELECT - 97 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
-97
-97
-97

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab2 cor0 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT ALL - 80 AS col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-80
-80
-80

query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
6
6
6

query I rowsort
SELECT + 76 FROM tab0 AS cor0 GROUP BY cor0.col1
----
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col1
----
18
18
18

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT - cor0.col2 * 49 * cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-116522
-228389
-260043

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
58
79
87

query I rowsort
SELECT 68 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
39
39
39

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1681
-3481
-3721

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 + - cor0.col0 + 54 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1
39
56

query I rowsort
SELECT DISTINCT + 78 FROM tab2 cor0 GROUP BY cor0.col0
----
78

query I rowsort
SELECT DISTINCT - 15 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-15

query I rowsort
SELECT - 75 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL + 90 * + cor0.col0 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
1980
2520
7380

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT 62 FROM tab2 AS cor0 GROUP BY cor0.col2
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
34
34
34

query I rowsort
SELECT + ( + 47 ) FROM tab0 GROUP BY col1
----
47
47

query I rowsort
SELECT ALL - 68 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * + col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
528
684
72

query I rowsort
SELECT 7 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
7
7

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, col0
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8831
SELECT col2 + + CAST( NULL AS SIGNED ) * 6 AS col0 FROM tab0 GROUP BY tab0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8831
SELECT col2 + + CAST ( NULL AS INTEGER ) * 6 AS col0 FROM tab0 GROUP BY tab0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT DISTINCT cor0.col2 + + ( - col2 ) FROM tab1 AS cor0 GROUP BY cor0.col1, col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
45
71
8

query I rowsort
SELECT 57 - 97 AS col0 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
-40
-40
-40

query I rowsort
SELECT 49 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8837
SELECT ALL + cor0.col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL + cor0.col0 / cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT ALL + 6 FROM tab1 AS cor0 GROUP BY col1
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + ( - cor0.col0 ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0

query I rowsort
SELECT + 53 FROM tab2 AS cor0 GROUP BY cor0.col0
----
53
53
53

query I rowsort
SELECT + cor0.col1 * + cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY col1
----
1936
3249
36

onlyif mysql # DIV for integer division: 
query I rowsort label-8843
SELECT cor0.col2 DIV 12 col1 FROM tab0 cor0 GROUP BY cor0.col2
----
2
3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8843
SELECT cor0.col2 / 12 col1 FROM tab0 cor0 GROUP BY cor0.col2
----
2
3
6

query I rowsort
SELECT + 40 * 6 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
240
240

query I rowsort
SELECT + 75 * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1650
2100
6150

query I rowsort
SELECT ALL + cor0.col2 * 6 AS col1 FROM tab2 cor0 GROUP BY cor0.col2
----
348
474
522

query I rowsort
SELECT + - tab0.col0 AS col2 FROM tab0, tab1 AS cor0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT 50 FROM tab2 AS cor0 GROUP BY cor0.col2
----
50

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
102
115
14

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1
----
-81
0

query I rowsort
SELECT - 91 * - 27 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2457
2457
2457

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
-24
-38
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8855
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT cor0.col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT 51 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
51
51
51

query I rowsort
SELECT 35 * col0 * + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
289835
296240
7875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8859
SELECT CAST( 13 AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
13
13
13

skipif mysql # not compatible
query I rowsort label-8859
SELECT CAST ( 13 AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
13
13
13

query I rowsort
SELECT DISTINCT + 17 FROM tab0 AS cor0 GROUP BY col0
----
17

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col0
----
45
71
8

query I rowsort
SELECT - 53 + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
26
34
5

query I rowsort
SELECT ALL 13 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
13
13
13

query I rowsort
SELECT ALL 92 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
92
92

query I rowsort
SELECT cor0.col2 + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, col1
----
138
148
99

query I rowsort
SELECT DISTINCT - 49 FROM tab1 GROUP BY tab1.col1
----
-49

query I rowsort
SELECT - tab0.col2 AS col1 FROM tab0, tab1 AS cor0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT 85 FROM tab2 GROUP BY col2
----
85
85
85

query I rowsort
SELECT + 70 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
70
70
70

query I rowsort
SELECT DISTINCT + 39 + - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-32
-6
31

onlyif mysql # DIV for integer division: 
query I rowsort label-8871
SELECT DISTINCT cor0.col2 DIV cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT cor0.col2 / cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1

query I rowsort
SELECT ALL + 5 FROM tab1 AS cor0 GROUP BY cor0.col1
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT + CAST( - cor0.col2 AS SIGNED ) - cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-142
-16
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8873
SELECT + CAST ( - cor0.col2 AS INTEGER ) - cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-142
-16
-90

query I rowsort
SELECT ALL + + 13 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
13
13
13

query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
33
33
33

query I rowsort
SELECT cor0.col2 - - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
116
158
174

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT - 38 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-38
-38
-38

query I rowsort
SELECT + 79 + cor0.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col1
----
160
79

query I rowsort
SELECT DISTINCT 98 FROM tab2 AS cor0 GROUP BY cor0.col0
----
98

query I rowsort
SELECT - 80 FROM tab2, tab1 cor0 GROUP BY cor0.col2
----
-80
-80
-80

query I rowsort
SELECT ALL + cor0.col2 + col2 AS col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col0, cor0.col2
----
158
48
76

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3306
6162
7482

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL + 53 AS col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
53
53
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT cor0.col0 + + 85 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
107
113
167

query I rowsort
SELECT DISTINCT - 24 FROM tab0, tab0 cor0 GROUP BY cor0.col1
----
-24

query I rowsort
SELECT ALL - 15 + 66 AS col0 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
51
51
51

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
44

query I rowsort
SELECT DISTINCT 98 * - col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-5684
-7742
-8526

query I rowsort
SELECT 45 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
45
45
45

query I rowsort
SELECT + 66 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
66
66
66

query I rowsort
SELECT - 64 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-64
-64

query I rowsort
SELECT + 13 FROM tab0 AS cor0 GROUP BY cor0.col2
----
13
13
13

query I rowsort
SELECT - 71 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-71
-71
-71

query I rowsort
SELECT DISTINCT tab2.col0 + 86 AS col2 FROM tab2 GROUP BY tab2.col0
----
101
177
178

query I rowsort
SELECT ALL + 55 FROM tab0 AS cor0 GROUP BY cor0.col0
----
55
55
55

query I rowsort
SELECT DISTINCT - cor0.col0 + 29 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-53
1
7

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT col2 + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
105
38
79

query I rowsort
SELECT ALL + 27 * - 28 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-756
-756
-756

query I rowsort
SELECT 56 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
56
56
56

query I rowsort
SELECT DISTINCT cor0.col0 - 25 FROM tab1 cor0 GROUP BY col0
----
-3
3
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * 86 + 9 col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-3517
-5065
-5237

onlyif mysql # DIV for integer division: 
query I rowsort label-8907
SELECT ALL + cor0.col0 DIV + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL + cor0.col0 / + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT + 37 AS col0 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
37
37
37

query I rowsort
SELECT + tab2.col1 FROM tab2, tab2 cor0 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
0
81

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
44
57
6

query I rowsort
SELECT 64 FROM tab1 AS cor0 GROUP BY cor0.col1
----
64
64
64

query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0 GROUP BY cor0.col0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT - 69 + + cor0.col2 + cor0.col2 DIV - 58 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-31
-45
9

skipif mysql # not compatible
query I rowsort label-8914
SELECT - 69 + + cor0.col2 + cor0.col2 / - 58 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-31
-45
9

query I rowsort
SELECT DISTINCT + 6 FROM tab1 AS cor0 GROUP BY cor0.col0
----
6

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0 AS cor0 GROUP BY col1, cor0.col1
----
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + cor0.col0 col1 FROM tab2 AS cor0 GROUP BY col0
----
133
134
57

query I rowsort
SELECT DISTINCT 60 * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1320
1680
4920

query I rowsort
SELECT tab1.col2 FROM tab1 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT ALL - 10 - + cor0.col1 * 35 AS col0 FROM tab0 AS cor0 GROUP BY col1, cor0.col1
----
-10
-2845

query I rowsort
SELECT + 55 - - cor0.col0 AS col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
138
81
98

query I rowsort
SELECT ( - 9 ) + cor0.col2 AS col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
49
70
78

query I rowsort
SELECT ALL + 36 FROM tab1 AS cor0 GROUP BY cor0.col0
----
36
36
36

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT 94 * - cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-7614
0

query I rowsort
SELECT - cor0.col2 + 15 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-30
-56
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT - - 6 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
6
6
6

query I rowsort
SELECT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
26
43
83

query I rowsort
SELECT - cor0.col0 + + 26 * - 28 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-754
-771
-811

query I rowsort
SELECT - 45 FROM tab1 GROUP BY tab1.col0
----
-45
-45
-45

query I rowsort
SELECT ALL 93 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
93
93
93

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY col0, cor0.col1
----
41
59
61

query I rowsort
SELECT 89 FROM tab1 AS cor0 GROUP BY cor0.col0, col2
----
89
89
89

query I rowsort
SELECT 56 + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
115
117
97

query I rowsort
SELECT ALL 24 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
24
24
24

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT 65 FROM tab0 AS cor0 GROUP BY col2
----
65
65
65

query I rowsort
SELECT + 57 FROM tab0 AS cor0 GROUP BY cor0.col2
----
57
57
57

query I rowsort
SELECT DISTINCT + + 25 AS col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
25

query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT - 66 * cor0.col0 DIV cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-8945
SELECT - 66 * cor0.col0 / cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-66
-66
-66

query I rowsort
SELECT ALL + cor0.col2 * ( + cor0.col0 ) FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
1032
2054
3154

query I rowsort
SELECT 36 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
36
36
36

query I rowsort
SELECT 68 * - col2 FROM tab1 cor0 GROUP BY cor0.col2
----
-3060
-4828
-544

query I rowsort
SELECT - 5 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-5
-5
-5

query I rowsort
SELECT 44 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
44
44
44

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, col1
----
-41
-59
-61

query I rowsort
SELECT 68 AS col2 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
68
68
68

query I rowsort
SELECT 25 FROM tab2 GROUP BY tab2.col2
----
25
25
25

query I rowsort
SELECT ALL + 96 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
96
96
96

query I rowsort
SELECT ALL + 96 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
96
96
96

query I rowsort
SELECT DISTINCT + 98 * 57 FROM tab0 AS cor0 GROUP BY cor0.col2
----
5586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT DISTINCT CAST( 85 AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
85

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT CAST ( 85 AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
85

query I rowsort
SELECT DISTINCT - 5 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8959
SELECT DISTINCT + cor0.col0 DIV - 25 FROM tab1 cor0 GROUP BY col0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT + cor0.col0 / - 25 FROM tab1 cor0 GROUP BY col0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
70

query I rowsort
SELECT DISTINCT + 63 FROM tab0 AS cor0 GROUP BY cor0.col1
----
63

query I rowsort
SELECT DISTINCT 13 FROM tab1 GROUP BY col1
----
13

query I rowsort
SELECT - + 34 FROM tab2 GROUP BY col1
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 * cor1.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1
----
1681
3481
3721

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT cor0.col1 * cor0.col0 * cor0.col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
149769

query I rowsort
SELECT col2 + - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-11
-14
17

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
15
91
92

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
44
57
6

query I rowsort
SELECT + - cor0.col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
-15
-91
-92

query I rowsort
SELECT 61 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
61
61
61

query I rowsort
SELECT cor0.col2 * - 87 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
-2088
-3306
-6873

query I rowsort
SELECT + 63 FROM tab1 GROUP BY tab1.col2
----
63
63
63

query I rowsort
SELECT ALL 97 - - cor0.col2 FROM tab1 AS cor0 GROUP BY col2
----
105
142
168

query III rowsort
SELECT ALL * FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
22
28
82

query I rowsort
SELECT + cor0.col1 * - 90 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-3960
-5130
-540

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
74

query I rowsort
SELECT ALL cor0.col1 * 57 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
0
4617

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT + cor0.col1 * 92 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
4048
5244
552

query I rowsort
SELECT ALL - col1 * + cor0.col1 + - col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1722
-3540
-3782

query I rowsort
SELECT ALL - cor0.col1 FROM tab0 AS cor0 GROUP BY col1
----
-81
0

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
72

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT - 9 FROM tab1, tab1 cor0 GROUP BY tab1.col0
----
-9
-9
-9

query I rowsort
SELECT - 50 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-50
-50

query I rowsort
SELECT - - col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, col1
----
-26
-43
-83

query I rowsort
SELECT ALL - + tab0.col1 FROM tab0 GROUP BY col1
----
-81
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8991
SELECT ALL cor0.col0 DIV - cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL cor0.col0 / - cor0.col0 FROM tab2 AS cor0 GROUP BY col0
----
-1
-1
-1

query I rowsort
SELECT - 0 + 75 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
75
75
75

query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1 GROUP BY cor1.col1
----
-44
-57
-6

query I rowsort
SELECT - ( + 9 ) AS col0 FROM tab1, tab2 cor0, tab1 AS cor1 GROUP BY cor1.col0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 - cor0.col0 col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
-182
-184
-30

query I rowsort
SELECT ALL - + tab0.col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
-26
-43
-83

query I rowsort
SELECT + 64 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
64
64
64

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT 46 FROM tab0 AS cor0 GROUP BY cor0.col1
----
46
46

query I rowsort
SELECT - 98 * - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY col0
----
2156
2744
8036

query I rowsort
SELECT DISTINCT cor0.col1 / cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1 HAVING NOT NULL NOT IN ( cor0.col1 )
----

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-24
-38
-79

query I rowsort
SELECT + cor0.col2 FROM tab2 cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
24
38
79

query I rowsort
SELECT ALL + - tab0.col2 FROM tab0 GROUP BY tab0.col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
58

query I rowsort
SELECT ALL - tab1.col0 FROM tab1 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-21

query I rowsort
SELECT - 45 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-45
-45
-45

query I rowsort
SELECT + 79 AS col0 FROM tab1 AS cor0 GROUP BY col2
----
79
79
79

query I rowsort
SELECT 42 FROM tab1 AS cor0 GROUP BY col0
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
21
21
21

query I rowsort
SELECT 90 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
90
90
90

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, col0
----
45
71
8

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0, tab2 cor0 GROUP BY cor0.col1
----
-41
-59
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT 69 DIV col2 FROM tab1 cor0 GROUP BY cor0.col2
----
0
1
8

skipif mysql # not compatible
query I rowsort label-9017
SELECT 69 / col2 FROM tab1 cor0 GROUP BY cor0.col2
----
0
1
8

query I rowsort
SELECT DISTINCT + cor0.col2 + ( cor0.col0 ) * + cor0.col0 + - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
484
6724
784

query I rowsort
SELECT DISTINCT - ( 3 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
-3

query I rowsort
SELECT + 54 FROM tab2 AS cor0 GROUP BY cor0.col2
----
54
54
54

query I rowsort
SELECT ALL 54 + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
145
146
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9022
SELECT - 81 DIV - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-9022
SELECT - 81 / - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
2
3

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
74

query I rowsort
SELECT 96 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
96
96
96

query I rowsort
SELECT 72 FROM tab0 cor0 GROUP BY cor0.col0
----
72
72
72

query I rowsort
SELECT DISTINCT 68 + cor0.col1 FROM tab0 AS cor0 GROUP BY col1
----
149
68

query I rowsort
SELECT + 45 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
45
45
45

query I rowsort
SELECT ALL + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
81

query I rowsort
SELECT ALL cor0.col1 - + col0 * + 59 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1292
-1595
-4794

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9031
SELECT ALL + cor0.col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL + cor0.col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 84 FROM tab2 cor0 GROUP BY cor0.col2
----
84

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
85

query I rowsort
SELECT + 54 FROM tab1 GROUP BY tab1.col0
----
54
54
54

query I rowsort
SELECT - cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
26
43
83

query I rowsort
SELECT 52 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
52
52
52

query I rowsort
SELECT DISTINCT cor0.col1 + 96 FROM tab1 AS cor0 GROUP BY cor0.col1
----
102
140
153

query I rowsort
SELECT DISTINCT + - ( + col0 ) AS col0 FROM tab0 GROUP BY col0
----
-26
-43
-83

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY col0, cor0.col2, col1
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
24

query I rowsort
SELECT ALL 2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
2
2
2

query I rowsort
SELECT ALL - 29 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-29
-29

query I rowsort
SELECT ALL + - 57 FROM tab2 GROUP BY col0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT - cor0.col0 * ( col0 ) + - cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-240
-8372
-8556

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab0 cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT cor0.col2 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0
----
116
158
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + cor0.col1 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-93

query I rowsort
SELECT DISTINCT 63 * 29 + - cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
1770
1783
1821

query I rowsort
SELECT ALL + 38 FROM tab0 AS cor0 GROUP BY cor0.col0
----
38
38
38

query I rowsort
SELECT DISTINCT - + 33 FROM tab0 GROUP BY tab0.col2
----
-33

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 GROUP BY col1
----
0
81

query I rowsort
SELECT + 48 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
48
48
48

query I rowsort
SELECT ALL + 98 AS col2 FROM tab1, tab2 cor0 GROUP BY cor0.col0
----
98
98
98

query I rowsort
SELECT cor0.col2 + cor0.col2 * col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3422
6320
7656

query I rowsort
SELECT ALL - 70 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-70
-70
-70

query I rowsort
SELECT - col0 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col0
----
-26
-43
-83

query I rowsort
SELECT + cor0.col0 * - 63 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1386
-1764
-5166

query I rowsort
SELECT 22 FROM tab0 AS cor0 GROUP BY cor0.col2
----
22
22
22

query I rowsort
SELECT ALL col0 FROM tab2 GROUP BY col0 HAVING NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1849
-676
-6889

query III rowsort
SELECT * FROM tab0 AS cor0 GROUP BY cor0.col2, col0, cor0.col1
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

onlyif mysql # DIV for integer division: 
query I rowsort label-9065
SELECT DISTINCT - cor0.col1 DIV cor0.col0 + cor0.col1 col2 FROM tab2 AS cor0 GROUP BY col0, col1
----
41
57
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9065
SELECT DISTINCT - cor0.col1 / cor0.col0 + cor0.col1 col2 FROM tab2 AS cor0 GROUP BY col0, col1
----
41
57
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9066
SELECT + CAST( + cor0.col1 AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

skipif mysql # not compatible
query I rowsort label-9066
SELECT + CAST ( + cor0.col1 AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT - 75 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-75
-75
-75

query I rowsort
SELECT + 44 + + col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
123
68
82

query I rowsort
SELECT - 43 AS col2 FROM tab1 GROUP BY col0
----
-43
-43
-43

query I rowsort
SELECT 32 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
24
38
79

query I rowsort
SELECT 99 FROM tab2 cor0 GROUP BY cor0.col0
----
99
99
99

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT 47 + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
130
73
90

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 52 + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
-37
39
40

query I rowsort
SELECT DISTINCT - - tab2.col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT DISTINCT + 35 FROM tab2 AS cor0 GROUP BY cor0.col1
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT ALL - tab2.col0 - 11 FROM tab2 GROUP BY tab2.col0
----
-102
-103
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT cor0.col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9082
SELECT cor0.col0 / cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9083
SELECT DISTINCT + 97 DIV 50 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
1

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT + 97 / 50 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col1 FROM tab1 GROUP BY tab1.col1
----
-85
-85
-85

query I rowsort
SELECT + ( + col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
22
28
82

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
0
81

query I rowsort
SELECT ( cor0.col1 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1
----
44
57
6

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY col1 HAVING NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT 4 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
4
4

query I rowsort
SELECT + + 86 AS col1 FROM tab1 GROUP BY tab1.col1
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-17
-17

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT ALL cor0.col2 - cor0.col2 FROM tab2 cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0 cor0 GROUP BY col1, cor0.col1
----
0
81

query I rowsort
SELECT - - ( cor0.col1 ) FROM tab0, tab2 cor0, tab0 AS cor1 GROUP BY cor0.col1
----
41
59
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT tab2.col2 DIV 88 FROM tab2 GROUP BY tab2.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9097
SELECT tab2.col2 / 88 FROM tab2 GROUP BY tab2.col2
----
0
0
0

query I rowsort
SELECT ALL + - 60 AS col1 FROM tab2 GROUP BY tab2.col1
----
-60
-60
-60

query I rowsort
SELECT + cor0.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col2 FROM tab0, tab0 cor0, tab0 AS cor1 GROUP BY cor1.col0
----
-41
-41
-41

query I rowsort
SELECT ALL + 75 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col1
----
75
75
75

query I rowsort
SELECT + 36 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
36
36
36

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1681
-3481
-3721

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col2
----
0

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col2 FROM tab0 AS cor0 GROUP BY col2
----
-1444
-576
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
-27

query I rowsort
SELECT DISTINCT cor0.col2 * 84 AS col2 FROM tab2 cor0 GROUP BY cor0.col1, cor0.col2
----
4872
6636
7308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - cor0.col2 + - ( cor0.col2 ) col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-1482
-600
-6320

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 GROUP BY col1, cor0.col0, cor0.col2
----
-81
0
0

query I rowsort
SELECT ALL ( cor0.col1 ) AS col1 FROM tab2 AS cor0 GROUP BY col1
----
41
59
61

query I rowsort
SELECT ALL 10 + 53 FROM tab1 AS cor0 GROUP BY col1
----
63
63
63

query I rowsort
SELECT ALL cor0.col0 * - 96 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
-2496
-4128
-7968

query I rowsort
SELECT ALL - 35 AS col2 FROM tab2 cor0 GROUP BY col2, cor0.col1
----
-35
-35
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9114
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT + 47 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, col2
----
47
47
47

query I rowsort
SELECT ALL - 76 AS col2 FROM tab2 AS cor0 GROUP BY col1
----
-76
-76
-76

query I rowsort
SELECT 84 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col2
----
84
84
84

query I rowsort
SELECT ALL - 42 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-42
-42

query I rowsort
SELECT ALL 82 FROM tab1, tab1 cor0 GROUP BY cor0.col2
----
82
82
82

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT ALL - tab0.col1 * + tab0.col1 FROM tab0 GROUP BY tab0.col1
----
-6561
0

query I rowsort
SELECT + 2 FROM tab0 GROUP BY tab0.col1
----
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-158
-48
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 + + cor0.col0 col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
123
140
180

query I rowsort
SELECT ALL cor0.col1 * ( 63 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
2583
3717
3843

onlyif mysql # DIV for integer division: 
query I rowsort label-9127
SELECT ALL cor0.col2 DIV - 86 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL cor0.col2 / - 86 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ALL + 50 FROM tab1 cor0 GROUP BY cor0.col2
----
50
50
50

query I rowsort
SELECT ALL + 45 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
45
45
45

query I rowsort
SELECT ALL 62 FROM tab2 AS cor0 GROUP BY cor0.col0
----
62
62
62

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT - ( cor0.col0 ) FROM tab0 AS cor0 GROUP BY col0, col0
----
-26
-43
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9133
SELECT DISTINCT - cor0.col0 DIV - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT - cor0.col0 / - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( + cor0.col1 ) col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9134
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( + cor0.col1 ) col0 FROM tab2, tab1 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT col0 * cor0.col0 * - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-17576
-571787
-79507

query I rowsort
SELECT ALL + 28 FROM tab0 cor0 GROUP BY cor0.col0
----
28
28
28

query I rowsort
SELECT col0 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT - 99 AS col2 FROM tab2 AS cor0 GROUP BY col1, cor0.col2, cor0.col1
----
-99
-99
-99

query I rowsort
SELECT ALL cor0.col0 * + ( - cor0.col2 ) + + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col2
----
-1008
-1975
-3116

query I rowsort
SELECT DISTINCT 73 FROM tab2 AS cor0 GROUP BY cor0.col1
----
73

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT ALL + 23 + col0 AS col0 FROM tab1 AS cor0 GROUP BY col0
----
105
45
51

query I rowsort
SELECT + 94 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
94
94
94

query I rowsort
SELECT DISTINCT 98 FROM tab0 cor0 GROUP BY cor0.col1
----
98

query I rowsort
SELECT DISTINCT - ( - 66 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
66

query I rowsort
SELECT ALL + cor0.col2 FROM tab0 AS cor0 GROUP BY col0, cor0.col2
----
24
38
79

query I rowsort
SELECT - 26 FROM tab0 cor0 GROUP BY col0
----
-26
-26
-26

query I rowsort
SELECT DISTINCT - 22 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-22

query I rowsort
SELECT - cor0.col2 + - cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-142
-16
-90

query I rowsort
SELECT DISTINCT - ( - 17 ) AS col1 FROM tab1 GROUP BY col1
----
17

query I rowsort
SELECT DISTINCT + 78 FROM tab1 AS cor0 GROUP BY cor0.col0
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2, cor0.col0
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT - cor0.col2 + 34 * + cor0.col2 + - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1216
2528
768

query I rowsort
SELECT ALL cor0.col1 * + ( 67 ) AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
2948
3819
402

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 FROM tab0 AS cor0 GROUP BY col1, col1
----
0
162

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL + 49 FROM tab1 AS cor0 GROUP BY col2, cor0.col2, cor0.col2
----
49
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
39
39
39

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) FROM tab2, tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT ALL - cor0.col0 * col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT DISTINCT - cor0.col2 + 58 AS col2 FROM tab2 cor0 GROUP BY cor0.col2
----
-21
-29
0

query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 + tab0.col0 col1 FROM tab0 GROUP BY tab0.col0
----
-13
-30
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col1 col1 FROM tab2 AS cor0 GROUP BY col1
----
-1681
-3481
-3721

query I rowsort
SELECT tab2.col2 AS col2 FROM tab2 GROUP BY tab2.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - - tab1.col2 AS col1 FROM tab1 GROUP BY tab1.col2
----
45
71
8

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + cor0.col1 col2 FROM tab0 AS cor0 GROUP BY col1
----
0
6561

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9171
SELECT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor1.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 GROUP BY col0
----
15
91
92

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT DISTINCT 60 * + cor0.col2 * 25 FROM tab0 AS cor0 GROUP BY col2
----
118500
36000
57000

query I rowsort
SELECT DISTINCT + + 98 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
98

query I rowsort
SELECT - 58 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT + + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT + + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
3483

query I rowsort
SELECT + cor0.col0 - + ( - cor0.col0 ) FROM tab0 cor0 GROUP BY cor0.col0
----
166
52
86

query I rowsort
SELECT 45 + cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
104
106
86

query I rowsort
SELECT DISTINCT - 33 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col2
----
-33

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9187
SELECT - CAST( + col0 AS SIGNED ) + col0 AS col2 FROM tab1 GROUP BY tab1.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9187
SELECT - CAST ( + col0 AS INTEGER ) + col0 AS col2 FROM tab1 GROUP BY tab1.col0
----
0
0
0

query I rowsort
SELECT 3 FROM tab1 AS cor0 GROUP BY col0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
44
57
6

query I rowsort
SELECT - tab1.col0 + 84 AS col2 FROM tab1 GROUP BY col0
----
2
56
62

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor0.col0
----
-22
-28
-82

query I rowsort
SELECT cor0.col0 + + cor0.col0 AS col1 FROM tab2 cor0 GROUP BY col0
----
182
184
30

query I rowsort
SELECT ALL - cor0.col2 + - cor0.col2 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
-142
-16
-90

query I rowsort
SELECT col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
0
81

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT + ( cor0.col1 ) FROM tab2, tab2 AS cor0, tab0 cor1 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col0 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL 89 FROM tab2 AS cor0 GROUP BY cor0.col0
----
89
89
89

query I rowsort
SELECT DISTINCT 56 FROM tab0 AS cor0 GROUP BY cor0.col1
----
56

query III rowsort
SELECT * FROM tab1 AS cor0 GROUP BY cor0.col1, col0, cor0.col2
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT ALL 11 FROM tab2 AS cor0 GROUP BY cor0.col0
----
11
11
11

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
45
71
8

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col0 HAVING NOT NULL NOT IN ( - cor0.col0 )
----

query I rowsort
SELECT - tab1.col1 * - tab1.col1 + + tab1.col1 FROM tab1 GROUP BY tab1.col1
----
1980
3306
42

query I rowsort
SELECT 70 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
70
70
70

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT 59 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
103
116
65

query I rowsort
SELECT - 66 FROM tab0 GROUP BY col2
----
-66
-66
-66

query I rowsort
SELECT + cor0.col0 * + cor0.col1 * - col1 - 99 FROM tab0 cor0 GROUP BY cor0.col1, cor0.col0
----
-282222
-99
-99

query I rowsort
SELECT + 70 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1
----
70
70

query I rowsort
SELECT + 97 FROM tab0 AS cor0 GROUP BY col2
----
97
97
97

query I rowsort
SELECT - 67 * - cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
1474
1876
5494

query I rowsort
SELECT + col0 FROM tab1 AS cor0 GROUP BY col0, cor0.col1
----
22
28
82

query I rowsort
SELECT + 95 FROM tab1, tab1 AS cor0, tab2 AS cor1 GROUP BY cor0.col1
----
95
95
95

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT + cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab1, tab2 AS cor0 GROUP BY tab1.col1
----
76

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
26
43
83

query I rowsort
SELECT DISTINCT cor0.col0 - 21 FROM tab1 AS cor0 GROUP BY col0
----
1
61
7

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
-26
-43
-83

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT 40 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
40
40
40

query I rowsort
SELECT ALL 22 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
22
22
22

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1849
676
6889

onlyif mysql # DIV for integer division: 
query I rowsort label-9229
SELECT cor0.col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9229
SELECT cor0.col2 / cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT DISTINCT 92 FROM tab0 AS cor0 GROUP BY cor0.col2
----
92

query I rowsort
SELECT - 12 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-12
-12
-12

query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
79

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-22
-28
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9234
SELECT - CAST( NULL AS SIGNED ) FROM tab0 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT - 7 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-7
-7
-7

query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-3364
-6241
-7569

query I rowsort
SELECT DISTINCT 23 FROM tab1, tab0 AS cor0 GROUP BY tab1.col0
----
23

query I rowsort
SELECT DISTINCT 99 FROM tab2 AS cor0 GROUP BY cor0.col1
----
99

query I rowsort
SELECT ALL - 3 * - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
132
171
18

query I rowsort
SELECT DISTINCT + 48 FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY cor1.col1
----
48

query I rowsort
SELECT 37 AS col0 FROM tab1 cor0 GROUP BY cor0.col2
----
37
37
37

query I rowsort
SELECT ALL 37 FROM tab1 AS cor0 GROUP BY cor0.col0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT CAST( NULL AS SIGNED ) * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9244
SELECT CAST( - 35 AS SIGNED ) DIV + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9244
SELECT CAST ( - 35 AS INTEGER ) / + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1
0
0

query I rowsort
SELECT ALL 10 * 11 FROM tab1 AS cor0 GROUP BY cor0.col2
----
110
110
110

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1 cor0 CROSS JOIN tab0 GROUP BY cor0.col2
----
-45
-71
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 * - col0 + cor0.col0 col2 FROM tab1 AS cor0 GROUP BY col0
----
-440
-6560
-728

query I rowsort
SELECT ALL tab2.col2 + + tab2.col2 FROM tab2 GROUP BY tab2.col2
----
116
158
174

query I rowsort
SELECT DISTINCT + 8 FROM tab2 AS cor0 GROUP BY col0
----
8

query I rowsort
SELECT DISTINCT + + tab1.col2 * 89 FROM tab1 GROUP BY tab1.col2
----
4005
6319
712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
30
30
30

query III rowsort
SELECT * FROM tab1 cor0 GROUP BY cor0.col0, cor0.col1, col2
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT - 62 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY tab1.col1
----
-62
-62
-62

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1

query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab1 GROUP BY col2
----
-22

query I rowsort
SELECT - - 62 AS col0 FROM tab2, tab0 AS cor0 GROUP BY tab2.col1
----
62
62
62

query I rowsort
SELECT ALL cor0.col0 + + cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
182
184
30

query I rowsort
SELECT DISTINCT cor0.col0 * + 75 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1125
6825
6900

query I rowsort
SELECT - 99 * cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col1
----
-2376
-3762
-7821

query I rowsort
SELECT + cor0.col2 + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
116
158
174

query I rowsort
SELECT 46 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 - + ( 76 ) col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-33
-50
7

query I rowsort
SELECT 1 FROM tab0 cor0 GROUP BY cor0.col1
----
1
1

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT 36 * 41 * - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-116604
-35424
-56088

query I rowsort
SELECT + cor0.col1 * - 81 * + cor0.col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
-531441
0

query I rowsort
SELECT + 6 FROM tab2 AS cor0 GROUP BY cor0.col1
----
6
6
6

query I rowsort
SELECT - 45 FROM tab2 GROUP BY tab2.col2
----
-45
-45
-45

query I rowsort
SELECT 82 AS col1 FROM tab0 cor0 GROUP BY cor0.col1, col2
----
82
82
82

query I rowsort
SELECT DISTINCT + + 84 + + 52 FROM tab1, tab0 AS cor0 GROUP BY cor0.col0
----
136

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col2
----
45
71
8

query I rowsort
SELECT - ( cor0.col2 ) FROM tab0 cor0 GROUP BY cor0.col2, cor0.col0
----
-24
-38
-79

query I rowsort
SELECT + 86 - + 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col0
----
12
12
12

query I rowsort
SELECT DISTINCT cor0.col2 - - cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
153
30
73

query I rowsort
SELECT + 10 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
10
10
10

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9280
SELECT + + 9 DIV + 58 AS col1 FROM tab1, tab0 cor0 GROUP BY cor0.col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9280
SELECT + + 9 / + 58 AS col1 FROM tab1, tab0 cor0 GROUP BY cor0.col0
----
0
0
0

query I rowsort
SELECT cor0.col2 - - 71 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
109
150
95

query I rowsort
SELECT DISTINCT - 6 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-6

query I rowsort
SELECT cor0.col1 * 69 AS col0 FROM tab1 AS cor0 GROUP BY col1
----
3036
3933
414

query I rowsort
SELECT DISTINCT - 66 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-66

query I rowsort
SELECT + 11 AS col0 FROM tab0 cor0 GROUP BY cor0.col0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
8
8
8

query I rowsort
SELECT + + cor0.col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
71

query I rowsort
SELECT DISTINCT + col1 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT ALL ( + 51 ) AS col1 FROM tab2 cor0 GROUP BY col0
----
51
51
51

query I rowsort
SELECT + 19 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
19
19
19

query I rowsort
SELECT DISTINCT - - 20 * tab0.col2 AS col1 FROM tab0 GROUP BY tab0.col2
----
1580
480
760

query I rowsort
SELECT + - tab2.col2 FROM tab2 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT 13 + - 53 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-40
-40
-40

query I rowsort
SELECT ALL col0 * 20 FROM tab0 cor0 GROUP BY cor0.col0
----
1660
520
860

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT 95 * - 40 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
-3800

query I rowsort
SELECT ALL 6 FROM tab2 cor0 GROUP BY cor0.col0
----
6
6
6

query I rowsort
SELECT - cor0.col0 + + 85 FROM tab1 AS cor0 GROUP BY cor0.col0
----
3
57
63

query I rowsort
SELECT + 53 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1 GROUP BY cor0.col1
----
53
53
53

query I rowsort
SELECT DISTINCT - 24 * cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1896
-576
-912

query I rowsort
SELECT DISTINCT - tab0.col0 * 91 AS col2 FROM tab0 GROUP BY col0
----
-2366
-3913
-7553

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-3364
-6241
-7569

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
-97

query I rowsort
SELECT ALL + + 58 + 15 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
73
73
73

query I rowsort
SELECT 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 GROUP BY cor1.col1
----
79
79
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9308
SELECT DISTINCT + 21 DIV + cor0.col0 FROM tab0 AS cor0 GROUP BY col0
----
0

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT + 21 / + cor0.col0 FROM tab0 AS cor0 GROUP BY col0
----
0

query I rowsort
SELECT + cor0.col0 * - col0 - + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY col0
----
-1892
-6972
-702

query I rowsort
SELECT - ( 22 ) FROM tab0 AS cor0 GROUP BY col0
----
-22
-22
-22

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL cor0.col2 FROM tab2 cor0 GROUP BY col2
----
58
79
87

query I rowsort
SELECT ALL 93 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2, col0
----
93
93
93

query I rowsort
SELECT ALL cor0.col2 * + 34 - 42 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
1930
2644
2916

query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab1, tab0 AS cor0 GROUP BY tab1.col1
----
-94

query I rowsort
SELECT ALL col1 * cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1
----
1681
3481
3721

query I rowsort
SELECT + 13 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
13
13
13

query I rowsort
SELECT col0 * 41 AS col2 FROM tab0 GROUP BY tab0.col0
----
1066
1763
3403

query I rowsort
SELECT cor0.col1 * 12 - - 5 FROM tab0 AS cor0 GROUP BY cor0.col1
----
5
977

query I rowsort
SELECT + col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
22
28
82

query I rowsort
SELECT 73 * - cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1095
-6643
-6716

query I rowsort
SELECT ALL 18 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
18
18
18

query I rowsort
SELECT DISTINCT - 18 + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-10
27
53

query I rowsort
SELECT DISTINCT - tab0.col0 * - col0 FROM tab0 GROUP BY tab0.col0
----
1849
676
6889

query I rowsort
SELECT + 82 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
87
87

query I rowsort
SELECT cor0.col0 + + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1, col2
----
153
30
73

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col2
----
44
57
6

query I rowsort
SELECT DISTINCT + + tab2.col0 AS col1 FROM tab2 GROUP BY tab2.col0
----
15
91
92

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT DISTINCT cor0.col1 DIV - 8 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-5
-7
0

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT cor0.col1 / - 8 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-5
-7
0

query I rowsort
SELECT DISTINCT 25 FROM tab1 AS cor0 GROUP BY cor0.col0
----
25

query I rowsort
SELECT DISTINCT 20 + - cor0.col0 * 82 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1210
-7442
-7524

query I rowsort
SELECT DISTINCT + cor0.col0 * 81 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1215
7371
7452

query I rowsort
SELECT - + col1 * + 82 FROM tab2 GROUP BY col1
----
-3362
-4838
-5002

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY col1, cor0.col1
----
-1936
-3249
-36

query I rowsort
SELECT ALL - 34 + cor0.col0 * + 1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-8
49
9

query I rowsort
SELECT ALL - cor0.col0 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
-26
-43
-83

query I rowsort
SELECT DISTINCT + - 38 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1 GROUP BY cor1.col1
----
-38

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY col1, cor0.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
1936
3249
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 FROM tab2 AS cor0 GROUP BY col2
----
3364
6241
7569

onlyif mysql # DIV for integer division: 
query I rowsort label-9345
SELECT ALL cor0.col0 DIV - cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL cor0.col0 / - cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
-1
-1
-1

query I rowsort
SELECT 54 * - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor0.col0
----
-1188
-1512
-4428

query I rowsort
SELECT - ( + cor0.col1 ) FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT + 91 FROM tab0 AS cor0 GROUP BY cor0.col0
----
91
91
91

query I rowsort
SELECT - 91 + 86 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-5
-5
-5

query I rowsort
SELECT - cor0.col2 - - cor0.col2 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, col2
----
0
0
0

query I rowsort
SELECT cor0.col2 * - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-3364
-6241
-7569

query I rowsort
SELECT ALL - 57 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-57
-57
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT ALL 28 DIV + cor0.col2 - + 64 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-61
-64
-64

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL 28 / + cor0.col2 - + 64 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-61
-64
-64

query I rowsort
SELECT ALL + 28 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1 GROUP BY cor0.col2
----
28
28
28

query I rowsort
SELECT - 43 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1 GROUP BY cor0.col1
----
-43
-43

query I rowsort
SELECT cor0.col2 * + 92 FROM tab0 AS cor0 GROUP BY cor0.col2
----
2208
3496
7268

query III rowsort
SELECT ALL * FROM tab1 AS cor0 GROUP BY cor0.col1, col0, col1, cor0.col2
----
9 values hashing to bbcd4a6dd8965cff3d718a5b7154e488

query I rowsort
SELECT - 83 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-83
-83

query I rowsort
SELECT + 81 + + tab0.col0 AS col1 FROM tab0, tab0 AS cor0 GROUP BY tab0.col0
----
107
124
164

query I rowsort
SELECT 76 FROM tab2 AS cor0 GROUP BY cor0.col2
----
76
76
76

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT cor0.col1 * + cor0.col1 * - 8 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-15488
-25992
-288

query I rowsort
SELECT + - 4 + 51 AS col0 FROM tab0 GROUP BY tab0.col2
----
47
47
47

query I rowsort
SELECT - 8 + + 74 FROM tab2 AS cor0 GROUP BY cor0.col0
----
66
66
66

query I rowsort
SELECT cor0.col0 + - 93 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-11
-65
-71

query I rowsort
SELECT ( - cor0.col2 * cor0.col2 ) FROM tab1 AS cor0 GROUP BY col2
----
-2025
-5041
-64

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 GROUP BY col0
----
26
43
83

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT cor0.col2 + - cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT - 92 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-92
-92
-92

query I rowsort
SELECT + ( + 4 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT - ( + col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT - ( + col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 GROUP BY tab2.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col0 * - cor0.col0 * cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-10648
-21952
-551368

query I rowsort
SELECT ALL + ( 26 ) FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
26
26

query I rowsort
SELECT DISTINCT - 63 FROM tab2 GROUP BY tab2.col0
----
-63

query I rowsort
SELECT DISTINCT cor0.col0 * ( cor0.col0 ) * cor0.col0 FROM tab1 AS cor0 GROUP BY col0
----
10648
21952
551368

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
484
6724
784

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY col0
----
225
8281
8464

query I rowsort
SELECT cor0.col0 + + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY col2, cor0.col0
----
166
52
86

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL + 91 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
91
91
91

query I rowsort
SELECT - col0 * - 28 + 64 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
2612
2640
484

query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col0
----
-22
-28
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col0, col1
----
484
6724
784

onlyif mysql # DIV for integer division: 
query I rowsort label-9386
SELECT cor0.col1 DIV + 78 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT cor0.col1 / + 78 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT cor0.col1 + cor0.col1 FROM tab1 AS cor0 GROUP BY col1
----
114
12
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0
----
15
91
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT ALL tab1.col2 * - CAST( NULL AS SIGNED ) FROM tab1 GROUP BY col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL tab1.col2 * - CAST ( NULL AS INTEGER ) FROM tab1 GROUP BY col2
----
NULL
NULL
NULL

query I rowsort
SELECT - 87 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-87
-87
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9392
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0 GROUP BY cor0.col1
----
NULL

query I rowsort
SELECT 58 + + col1 FROM tab1 AS cor0 GROUP BY cor0.col0, col1, cor0.col0
----
102
115
64

query I rowsort
SELECT ALL - 47 FROM tab2 cor0 GROUP BY cor0.col1
----
-47
-47
-47

query I rowsort
SELECT cor0.col1 + 71 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
159
185
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab1, tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL - 97 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + 40 FROM tab2 AS cor0 GROUP BY cor0.col1
----
40

query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL - cor0.col2 + - ( - cor0.col2 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT cor0.col2 * cor0.col0 + cor0.col2 AS col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
1392
5394
7268

query I rowsort
SELECT - 77 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT cor0.col1 - 35 * + cor0.col1 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
-1496
-1938
-204

query I rowsort
SELECT ( cor0.col0 ) * + ( cor0.col0 ) + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
506
6806
812

query I rowsort
SELECT cor0.col1 + - 36 FROM tab0 cor0 GROUP BY cor0.col1
----
-36
45

query I rowsort
SELECT 57 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9408
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 79 * 13 * cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col2
----
-46215
-72917
-8216

query I rowsort
SELECT ALL cor0.col1 FROM tab0 cor0 GROUP BY cor0.col2, cor0.col1
----
0
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 63 col2 FROM tab0 GROUP BY tab0.col1
----
-63
-63

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT ALL 43 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
43
43

query I rowsort
SELECT - ( cor0.col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT ALL - 1 AS col2 FROM tab2, tab0 AS cor0, tab1 cor1 GROUP BY tab2.col1
----
-1
-1
-1

query I rowsort
SELECT + cor0.col1 - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 * 97 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
3977
5723
5917

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab2 cor0 GROUP BY cor0.col2
----
56

query I rowsort
SELECT + cor0.col0 + 31 * + cor0.col0 FROM tab0, tab2 AS cor0 GROUP BY cor0.col0
----
2912
2944
480

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab0 cor0 GROUP BY col1, cor0.col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
77
77
77

query I rowsort
SELECT 46 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
46
46
46

query I rowsort
SELECT 0 FROM tab0 AS cor0 GROUP BY col0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col0
----
26
43
83

query I rowsort
SELECT ALL + + 62 AS col0 FROM tab0 GROUP BY col1
----
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9426
SELECT ( + 61 ) + - cor0.col0 DIV + cor0.col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col2, cor0.col0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-9426
SELECT ( + 61 ) + - cor0.col0 / + cor0.col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col2, cor0.col0
----
60
60
60

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
45
71
8

query I rowsort
SELECT DISTINCT 92 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
92

query I rowsort
SELECT ALL cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col1, col0
----
15
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
0

query I rowsort
SELECT ALL 79 * cor0.col2 + 14 FROM tab0, tab0 cor0 GROUP BY cor0.col2
----
1910
3016
6255

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col0 * + ( - 98 ) AS col0 FROM tab1 cor0 GROUP BY cor0.col0, col1
----
-2156
-2744
-8036

query I rowsort
SELECT ALL cor0.col0 * 47 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
4277
4324
705

query I rowsort
SELECT ALL col2 FROM tab0 GROUP BY tab0.col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + cor0.col2 col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
-3364
-6241
-7569

query I rowsort
SELECT 48 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
48
48
48

query I rowsort
SELECT 79 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
79
79
79

query I rowsort
SELECT col0 * + cor0.col0 + - col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
476
6653
739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

query I rowsort
SELECT 4 * + cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
26244

query I rowsort
SELECT + 52 * cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
4732
4784
780

query I rowsort
SELECT ALL - 45 FROM tab0, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col2
----
-45
-45
-45

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT + 66 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
66
66
66

query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab1 AS cor0 GROUP BY col1
----
60

query I rowsort
SELECT DISTINCT + + 37 AS col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
37

query I rowsort
SELECT - - tab1.col0 AS col1 FROM tab1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT - 82 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-82
-82

query I rowsort
SELECT + ( - 40 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-40
-40

query I rowsort
SELECT - 84 * 7 AS col0 FROM tab2 GROUP BY tab2.col2
----
-588
-588
-588

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL 90 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
90
90
90

query I rowsort
SELECT 0 FROM tab1, tab0 AS cor0, tab1 AS cor1 GROUP BY tab1.col2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab0 AS cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT ALL col0 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY col2
----
-58
-79
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
58
79
87

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
26
43
83

query I rowsort
SELECT ALL 95 FROM tab2 AS cor0 GROUP BY cor0.col0
----
95
95
95

query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT - 21 AS col1 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + 73 FROM tab2 cor0 GROUP BY cor0.col0
----
73

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-1260
-176
-5822

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY col1
----
-81
0

query I rowsort
SELECT - cor0.col0 * cor0.col0 * 31 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-256711
-262384
-6975

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0 AS cor0 GROUP BY col2, cor0.col2
----
24
38
79

query I rowsort
SELECT + 84 AS col0 FROM tab0 cor0 GROUP BY cor0.col1
----
84
84

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
10

query I rowsort
SELECT ALL - tab1.col1 FROM tab1 GROUP BY col1
----
-44
-57
-6

query I rowsort
SELECT ALL + tab0.col1 * - col1 AS col2 FROM tab0 GROUP BY tab0.col1
----
-6561
0

query I rowsort
SELECT 24 FROM tab1 AS cor0 GROUP BY col0
----
24
24
24

query I rowsort
SELECT 71 + + 84 FROM tab2 cor0 GROUP BY cor0.col2
----
155
155
155

query I rowsort
SELECT + 73 AS col2 FROM tab0 cor0 GROUP BY cor0.col2
----
73
73
73

query I rowsort
SELECT + 38 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
38
38
38

query I rowsort
SELECT + col1 + + col1 * - 46 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3645
0

query I rowsort
SELECT cor0.col0 * 94 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col0
----
2068
2632
7708

query I rowsort
SELECT - 24 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-24
-24
-24

query I rowsort
SELECT 82 AS col2 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
82
82
82

query I rowsort
SELECT ALL - cor0.col0 * 84 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-1260
-7644
-7728

query I rowsort
SELECT ALL - 96 FROM tab2 GROUP BY tab2.col1
----
-96
-96
-96

query I rowsort
SELECT - 15 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-15
-15
-15

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, col1
----
-41
-59
-61

query I rowsort
SELECT ALL 74 - 17 FROM tab0 GROUP BY col2
----
57
57
57

query I rowsort
SELECT ALL - 92 + + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-31
-33
-51

query I rowsort
SELECT + 73 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2
----
73
73
73

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + 65 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
65

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY col0
----
-22
-28
-82

query I rowsort
SELECT + cor0.col1 - - 17 AS col1 FROM tab1 cor0 GROUP BY cor0.col1, col2
----
23
61
74

query I rowsort
SELECT DISTINCT ( + 56 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
56

query I rowsort
SELECT cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
24
38
79

query I rowsort
SELECT 18 * + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
1278
144
810

query I rowsort
SELECT cor0.col0 + + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2, cor0.col1
----
126
28
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9500
SELECT ALL + + 67 DIV col2 col1 FROM tab1 GROUP BY tab1.col2
----
0
1
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9500
SELECT ALL + + 67 / col2 col1 FROM tab1 GROUP BY tab1.col2
----
0
1
8

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT cor0.col2 - col2 * + 56 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1320
-2090
-4345

query I rowsort
SELECT + 97 * - 42 FROM tab1, tab0 cor0 GROUP BY cor0.col2
----
-4074
-4074
-4074

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
58

query I rowsort
SELECT 64 FROM tab0 AS cor0 GROUP BY col1
----
64
64

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 GROUP BY tab0.col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 GROUP BY tab0.col1
----
NULL

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab2 GROUP BY tab2.col2
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col2
----
95

query I rowsort
SELECT - col0 AS col0 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9513
SELECT + col1 * cor0.col2 - - col2 DIV + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
2379
4662
5308

skipif mysql # not compatible
query I rowsort label-9513
SELECT + col1 * cor0.col2 - - col2 / + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
2379
4662
5308

query I rowsort
SELECT ALL + cor0.col2 - + cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ( 19 ) AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
19
19
19

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9517
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT + + tab2.col2 * 15 FROM tab2 GROUP BY tab2.col2
----
1185
1305
870

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col1
----
26
43
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT - cor0.col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9520
SELECT - cor0.col2 / + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-1
-1
-1

query I rowsort
SELECT - 71 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-71
-71
-71

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
58
79
87

query I rowsort
SELECT ALL tab0.col0 AS col2 FROM tab0 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT - cor0.col0 * cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1806
-650
-6806

query I rowsort
SELECT ALL - cor0.col0 - + col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-166
-52
-86

query I rowsort
SELECT 60 * ( cor0.col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
2700
4260
480

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 FROM tab2 AS cor0 GROUP BY col1
----
118
122
82

query I rowsort
SELECT - 2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-2
-2
-2

query I rowsort
SELECT + - 86 FROM tab2 GROUP BY tab2.col0
----
-86
-86
-86

query I rowsort
SELECT + col0 * tab2.col0 AS col2 FROM tab2 GROUP BY col0
----
225
8281
8464

query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-6561
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1 GROUP BY tab1.col0
----
22
28
82

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
225
8281
8464

query I rowsort
SELECT 80 * cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
3600
5680
640

query I rowsort
SELECT + cor0.col2 + + 11 FROM tab2 AS cor0 GROUP BY cor0.col2
----
69
90
98

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT ALL cor0.col1 + - col1 - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT ALL + 23 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab0 cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0 cor0 GROUP BY cor0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col1 ) col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT - + 4 AS col2 FROM tab2, tab2 AS cor0 GROUP BY tab2.col1
----
-4
-4
-4

query I rowsort
SELECT - + tab1.col2 FROM tab1 GROUP BY tab1.col2
----
-45
-71
-8

query I rowsort
SELECT ALL + - 4 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1 GROUP BY cor0.col1
----
-4
-4
-4

query I rowsort
SELECT - 54 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-54
-54
-54

query I rowsort
SELECT - 50 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-50
-50
-50

query I rowsort
SELECT + 48 FROM tab1 AS cor0 GROUP BY cor0.col0
----
48
48
48

query I rowsort
SELECT + + 97 FROM tab1, tab1 AS cor0, tab1 AS cor1 GROUP BY cor0.col1
----
97
97
97

query I rowsort
SELECT - 30 - 74 FROM tab1 GROUP BY tab1.col0
----
-104
-104
-104

query I rowsort
SELECT DISTINCT - cor0.col0 * 2 FROM tab2 AS cor0 GROUP BY cor0.col2, col0, cor0.col0
----
-182
-184
-30

query I rowsort
SELECT col2 FROM tab0 AS cor0 GROUP BY col1, cor0.col2
----
24
38
79

query I rowsort
SELECT - + 45 FROM tab0, tab2 AS cor0 GROUP BY tab0.col2
----
-45
-45
-45

query I rowsort
SELECT - col2 AS col1 FROM tab2 cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT cor0.col1 * + 93 AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
0
7533

query I rowsort
SELECT + 67 FROM tab1 cor0 GROUP BY cor0.col0, cor0.col2
----
67
67
67

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT ALL - col0 * 58 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-5278
-5336
-870

query I rowsort
SELECT 65 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
65
65
65

query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT + 83 AS col2 FROM tab2 GROUP BY tab2.col0
----
83
83
83

query I rowsort
SELECT ALL 1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT 0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 col1 FROM tab2 GROUP BY tab2.col2
----
39
39
39

query I rowsort
SELECT DISTINCT + 25 - cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-20
-46
17

query I rowsort
SELECT 78 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
78
78

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT + 47 * + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
1034
1316
3854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 - cor0.col0 col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
48
65
8

query I rowsort
SELECT - ( - cor0.col0 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT 85 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
85
85
85

query I rowsort
SELECT DISTINCT - - tab2.col1 AS col2 FROM tab2 GROUP BY tab2.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ALL + 92 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
92
92
92

query I rowsort
SELECT ( + 38 * - cor0.col0 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-1634
-3154
-988

query I rowsort
SELECT ALL + 36 FROM tab2 cor0 GROUP BY col2
----
36
36
36

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT DISTINCT 21 DIV 27 FROM tab2 AS cor0 GROUP BY col2
----
0

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT 21 / 27 FROM tab2 AS cor0 GROUP BY col2
----
0

query I rowsort
SELECT - - 61 FROM tab0 GROUP BY tab0.col2
----
61
61
61

query I rowsort
SELECT cor0.col1 + + cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
133
150
76

query I rowsort
SELECT ALL 69 FROM tab1 cor0 GROUP BY cor0.col0
----
69
69
69

query I rowsort
SELECT 80 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
80
80
80

query I rowsort
SELECT cor0.col1 + + cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
124
26
83

query I rowsort
SELECT 71 AS col0 FROM tab1 cor0 GROUP BY cor0.col1
----
71
71
71

query I rowsort
SELECT - 61 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-61
-61
-61

query I rowsort
SELECT ALL - 1 FROM tab2 GROUP BY tab2.col1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

query I rowsort
SELECT 70 FROM tab1, tab2 AS cor0 GROUP BY tab1.col2
----
70
70
70

query I rowsort
SELECT ALL cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT 19 FROM tab1 AS cor0 GROUP BY cor0.col1
----
19
19
19

query I rowsort
SELECT DISTINCT - 64 FROM tab1, tab2 AS cor0 GROUP BY tab1.col2
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
45
71
8

query I rowsort
SELECT DISTINCT ( 98 * cor0.col0 ) AS col2 FROM tab1 cor0 GROUP BY cor0.col0
----
2156
2744
8036

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab1 cor0 GROUP BY cor0.col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9596
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY cor0.col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab0 AS cor1 GROUP BY cor0.col2
----
NULL

query I rowsort
SELECT DISTINCT 77 FROM tab1 AS cor0 GROUP BY cor0.col2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col2 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT ALL - 62 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-62
-62
-62

query I rowsort
SELECT cor0.col2 + ( cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col2
----
158
48
76

query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT 56 FROM tab0 AS cor0 GROUP BY col1
----
56
56

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab0 AS cor0 GROUP BY col1
----
-22

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1849
676
6889

query I rowsort
SELECT ALL 8 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
8
8
8

query I rowsort
SELECT 48 FROM tab0 AS cor0 GROUP BY cor0.col0
----
48
48
48

query I rowsort
SELECT ALL ( - 11 ) AS col0 FROM tab1 AS cor0 GROUP BY col2, cor0.col2
----
-11
-11
-11

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
38
79

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * 18 col2 FROM tab1 GROUP BY col0
----
1476
396
504

onlyif mysql # DIV for integer division: 
query I rowsort label-9611
SELECT ALL - cor0.col1 DIV - col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL - cor0.col1 / - col1 AS col2 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 col0 FROM tab2 GROUP BY col0
----
-15
-91
-92

query I rowsort
SELECT ALL col0 * cor0.col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col0, cor0.col0
----
225
8281
8464

query I rowsort
SELECT + 73 FROM tab1 GROUP BY tab1.col0
----
73
73
73

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
22
28
82

query I rowsort
SELECT DISTINCT - tab2.col1 AS col0 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL 72 FROM tab2 AS cor0 GROUP BY cor0.col0, col1
----
72
72
72

query I rowsort
SELECT + 88 AS col0 FROM tab2, tab2 cor0 GROUP BY cor0.col0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL + cor0.col2 * CAST( NULL AS SIGNED ) + - 26 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + cor0.col2 * CAST ( NULL AS INTEGER ) + - 26 AS col1 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT ALL cor0.col1 + + col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
118
122
82

query I rowsort
SELECT DISTINCT - cor0.col2 + - 62 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-100
-141
-86

query I rowsort
SELECT - col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-81
0

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
44
57
6

query I rowsort
SELECT - 11 + - col0 * cor0.col2 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col2
----
-1316
-5347
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 7 col1 FROM tab0 GROUP BY col0
----
7
7
7

query I rowsort
SELECT + 31 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 41 ) col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
41
41
41

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col1, cor0.col2
----
45
71
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9632
SELECT + cor0.col1 * - CAST( 61 AS SIGNED ) + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-4860
0

skipif mysql # not compatible
query I rowsort label-9632
SELECT + cor0.col1 * - CAST ( 61 AS INTEGER ) + cor0.col1 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-4860
0

query I rowsort
SELECT DISTINCT + ( col2 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
58
79
87

query I rowsort
SELECT - cor0.col1 + - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-162
0

query I rowsort
SELECT ALL - ( - cor0.col2 ) FROM tab1 AS cor0 GROUP BY col2, cor0.col2
----
45
71
8

query I rowsort
SELECT + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, col1, cor0.col0
----
44
57
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9637
SELECT - cor0.col0 DIV 38 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, col0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9637
SELECT - cor0.col0 / 38 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, col0
----
-1
-2
0

query I rowsort
SELECT 57 - 56 FROM tab1 cor0 GROUP BY cor0.col0
----
1
1
1

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1 HAVING NULL NOT IN ( cor0.col1 )
----

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1 cor0 GROUP BY col2
----
45
71
8

query I rowsort
SELECT - 27 + + cor0.col1 AS col1 FROM tab2 cor0 GROUP BY cor0.col1
----
14
32
34

query I rowsort
SELECT DISTINCT 46 FROM tab0 AS cor0 GROUP BY cor0.col0
----
46

query I rowsort
SELECT - 42 * - 47 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
1974
1974
1974

query I rowsort
SELECT cor0.col1 * 41 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
3321

query I rowsort
SELECT ALL - - 82 FROM tab1 GROUP BY tab1.col0
----
82
82
82

query I rowsort
SELECT + 44 FROM tab0 AS cor0 GROUP BY cor0.col1
----
44
44

query I rowsort
SELECT + 40 FROM tab1 GROUP BY tab1.col1
----
40
40
40

query I rowsort
SELECT - 59 AS col1 FROM tab2, tab2 AS cor0 GROUP BY tab2.col1
----
-59
-59
-59

query I rowsort
SELECT + col1 + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
114
12
88

query I rowsort
SELECT + 77 * cor0.col0 FROM tab1 AS cor0 GROUP BY col0
----
1694
2156
6314

query I rowsort
SELECT ALL - col0 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT ALL - 32 * cor0.col2 + + cor0.col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-1178
-2449
-744

query I rowsort
SELECT DISTINCT + 12 FROM tab2 AS cor0 GROUP BY cor0.col0
----
12

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-15
-91
-92

query I rowsort
SELECT - col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col1
----
-24
-38
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-9656
SELECT DISTINCT + tab2.col2 DIV 15 AS col1 FROM tab2 GROUP BY tab2.col2
----
3
5

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT + tab2.col2 / 15 AS col1 FROM tab2 GROUP BY tab2.col2
----
3
5

query I rowsort
SELECT - cor0.col1 + - ( cor0.col1 ) + - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-132
-171
-18

query I rowsort
SELECT - cor0.col1 - - 54 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-5
-7
13

query I rowsort
SELECT + 53 FROM tab0 AS cor0 GROUP BY cor0.col0
----
53
53
53

query I rowsort
SELECT ALL - 56 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-56
-56
-56

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 GROUP BY col0, cor0.col2
----
-15
-91
-92

query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
-15
-91
-92

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT 55 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0
----
55
55
55

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT + cor0.col1 * 39 + - 35 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
1681
199
2188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 GROUP BY tab2.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 GROUP BY tab2.col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 - - cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-2337
-4602
-5246

query I rowsort
SELECT DISTINCT 17 FROM tab2 AS cor0 GROUP BY cor0.col1
----
17

query I rowsort
SELECT DISTINCT + col0 * 66 AS col0 FROM tab1 AS cor0 GROUP BY col0
----
1452
1848
5412

query I rowsort
SELECT 88 * col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
3608
5192
5368

query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9674
SELECT DISTINCT + cor0.col0 - cor0.col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
14
90
91

skipif mysql # not compatible
query I rowsort label-9674
SELECT DISTINCT + cor0.col0 - cor0.col0 / cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
14
90
91

query I rowsort
SELECT 6 * + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
270
426
48

query I rowsort
SELECT ALL 41 FROM tab0 AS cor0 GROUP BY cor0.col2
----
41
41
41

query I rowsort
SELECT DISTINCT + tab2.col0 + tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
182
184
30

query I rowsort
SELECT ALL 12 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
12
12
12

query I rowsort
SELECT 35 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
35
35
35

query I rowsort
SELECT ( + 40 ) AS col0 FROM tab0 AS cor0 GROUP BY col1, cor0.col1
----
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * 76 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
3192
3192

query I rowsort
SELECT ALL 36 FROM tab2 AS cor0 GROUP BY cor0.col1
----
36
36
36

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-44
-57
-6

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col0
----
0
0
81

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col0 + ( + cor0.col0 ) * + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
500
6762
755

query I rowsort
SELECT ALL cor0.col0 * 32 FROM tab2 cor0 GROUP BY cor0.col0
----
2912
2944
480

query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1 GROUP BY tab1.col1
----
-44
-57
-6

query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2 GROUP BY tab2.col1
----
-41
-59
-61

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1
----
34

query I rowsort
SELECT + + 38 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col0
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT DISTINCT col0 DIV 49 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
1

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT col0 / 49 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
0
1

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT + + 5 AS col1 FROM tab1 GROUP BY col2
----
5
5
5

query I rowsort
SELECT DISTINCT 90 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
90

query I rowsort
SELECT DISTINCT - ( 48 ) FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
-48

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col0
----
15
91
92

query I rowsort
SELECT ALL 24 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
24
24
24

query I rowsort
SELECT 56 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9702
SELECT ALL - cor0.col1 DIV + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL - cor0.col1 / + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-1
-1
-1

query I rowsort
SELECT cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 GROUP BY tab1.col0
----
-22
-28
-82

query I rowsort
SELECT - 37 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-37
-37
-37

query I rowsort
SELECT + 61 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2
----
-58
-79
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9708
SELECT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col1, cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT + 23 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1
----
23
23
23

query I rowsort
SELECT cor1.col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor1.col0
----
26
43
83

query I rowsort
SELECT DISTINCT + 19 + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
60
78
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab1, tab1 cor0 GROUP BY cor0.col2
----
54
54
54

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1 GROUP BY tab0.col0
----
26
43
83

query I rowsort
SELECT ALL - 62 FROM tab2 GROUP BY tab2.col2
----
-62
-62
-62

query I rowsort
SELECT ALL + 81 AS col0 FROM tab2 GROUP BY tab2.col2
----
81
81
81

query I rowsort
SELECT DISTINCT - 90 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT DISTINCT - cor0.col1 * ( 58 ) DIV + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-58

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT - cor0.col1 * ( 58 ) / + cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9718
SELECT DISTINCT + CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT + CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT 92 * 76 FROM tab0 AS cor0 GROUP BY cor0.col0
----
6992
6992
6992

query I rowsort
SELECT + cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col0
----
26
43
83

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1 cor0 GROUP BY cor0.col0
----
22
28
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

skipif mysql # not compatible
query I rowsort label-9722
SELECT CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 AS col1 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT + tab0.col2 AS col2 FROM tab0 GROUP BY tab0.col2
----
24
38
79

query I rowsort
SELECT ALL + cor0.col1 + + 29 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
110
29

query I rowsort
SELECT - cor0.col2 * + cor0.col0 + cor0.col2 * cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT + 14 + 94 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT - cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9728
SELECT - cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
24
38
79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2, cor0.col2, cor0.col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

query III rowsort
SELECT * FROM tab2 AS cor0 GROUP BY col2, col1, cor0.col0
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT DISTINCT cor0.col0 * - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 GROUP BY cor0.col2, col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT cor0.col0 * - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 GROUP BY cor0.col2, col0
----
NULL

query I rowsort
SELECT ALL 41 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
41
41

query I rowsort
SELECT 31 * - cor0.col1 + cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-2430
0

query I rowsort
SELECT ALL - cor0.col2 + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
0
0
0

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0
----
50

query I rowsort
SELECT + 53 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
53
53
53

query I rowsort
SELECT ALL - 41 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT 87 AS col2 FROM tab2 GROUP BY tab2.col0
----
87
87
87

query I rowsort
SELECT ALL ( cor0.col0 ) * - cor0.col0 * + cor0.col0 AS col1 FROM tab2 cor0 GROUP BY cor0.col0
----
-3375
-753571
-778688

query I rowsort
SELECT 81 FROM tab0 cor0 GROUP BY col0, cor0.col2
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT + cor0.col2 * 68 DIV - col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-9743
SELECT + cor0.col2 * 68 / - col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-68
-68
-68

query I rowsort
SELECT - 8 AS col0 FROM tab1, tab2 AS cor0 GROUP BY tab1.col0
----
-8
-8
-8

query I rowsort
SELECT 66 FROM tab0 AS cor0 GROUP BY cor0.col1
----
66
66

query I rowsort
SELECT + cor0.col2 FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ( - 81 ) + + cor0.col1 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT + 4 FROM tab0, tab2 AS cor0 GROUP BY cor0.col1
----
4
4
4

query I rowsort
SELECT ( 84 ) FROM tab1, tab0 AS cor0, tab0 AS cor1 GROUP BY cor1.col2
----
84
84
84

query I rowsort
SELECT DISTINCT cor0.col0 + 42 * - 38 + cor0.col0 AS col2 FROM tab2 cor0 GROUP BY col0
----
-1412
-1414
-1566

query I rowsort
SELECT ( + col2 ) * cor0.col2 - - 92 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
156
2117
5133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9753
SELECT ALL CAST( NULL AS SIGNED ) * - 47 * - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL CAST ( NULL AS INTEGER ) * - 47 * - cor0.col2 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 + cor0.col1 col0 FROM tab0 AS cor0 GROUP BY col1, cor0.col0
----
-6
-6
75

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0 GROUP BY col1, col2
----
45
71
8

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col0
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0 cor0 GROUP BY cor0.col2, col1
----
0
81

query I rowsort
SELECT 20 AS col1 FROM tab0 cor0 GROUP BY cor0.col2
----
20
20
20

query I rowsort
SELECT 4 + + cor0.col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
19
95
96

query I rowsort
SELECT + 68 AS col1 FROM tab2 cor0 GROUP BY cor0.col2
----
68
68
68

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0 cor0 GROUP BY col2
----
24
38
79

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT - - tab0.col0 + - 90 AS col0 FROM tab0 GROUP BY tab0.col0
----
-47
-64
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9766
SELECT ALL + CAST( NULL AS DECIMAL ) + - col1 FROM tab0 GROUP BY col1
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + CAST ( NULL AS REAL ) + - col1 FROM tab0 GROUP BY col1
----
NULL
NULL

query I rowsort
SELECT + cor0.col0 FROM tab2, tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT DISTINCT + 12 FROM tab1 cor0 GROUP BY cor0.col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT CAST( - 31 AS SIGNED ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-9769
SELECT CAST ( - 31 AS INTEGER ) FROM tab0 AS cor0 GROUP BY cor0.col0
----
-31
-31
-31

query I rowsort
SELECT ALL + cor0.col0 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL - 49 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT + tab0.col1 AS col2 FROM tab0 GROUP BY col1
----
0
81

query I rowsort
SELECT cor0.col1 + + cor0.col1 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
118
122
82

query I rowsort
SELECT DISTINCT - 62 FROM tab1 GROUP BY tab1.col2
----
-62

query I rowsort
SELECT DISTINCT + tab1.col1 AS col1 FROM tab1 GROUP BY tab1.col1
----
44
57
6

query I rowsort
SELECT ALL 22 FROM tab1 AS cor0 GROUP BY cor0.col2
----
22
22
22

query I rowsort
SELECT ALL cor0.col0 * - cor0.col0 FROM tab1 cor0 GROUP BY cor0.col0
----
-484
-6724
-784

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0, tab1 cor0 GROUP BY cor0.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab0 AS cor0 GROUP BY cor0.col1
----
95
95

query I rowsort
SELECT 32 FROM tab2 AS cor0 GROUP BY cor0.col1
----
32
32
32

query I rowsort
SELECT DISTINCT - + 55 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
-55

query I rowsort
SELECT 47 FROM tab2 GROUP BY col1
----
47
47
47

query I rowsort
SELECT ( - 40 ) AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-40
-40
-40

query I rowsort
SELECT - ( col2 ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 FROM tab2 cor0 GROUP BY cor0.col0, cor0.col0
----
0

query I rowsort
SELECT 1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 8 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
8
8
8

query I rowsort
SELECT - tab2.col2 FROM tab2 GROUP BY col2
----
-58
-79
-87

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
1936
3249
36

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT + 57 * col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
2337
3363
3477

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col0
----
20

query I rowsort
SELECT ALL 18 FROM tab2 AS cor0 GROUP BY cor0.col0
----
18
18
18

query I rowsort
SELECT 18 FROM tab2 cor0 GROUP BY cor0.col0
----
18
18
18

query I rowsort
SELECT DISTINCT - 10 * cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-580
-790
-870

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT + ( + col1 * + 34 ) + cor0.col1 FROM tab2 cor0 GROUP BY cor0.col1
----
1435
2065
2135

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT 28 DIV cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9800
SELECT 28 / cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
0
0
0

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1, cor0.col1
----
41
59
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9802
SELECT ALL cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 78 * - cor0.col0 AS col0 FROM tab1, tab2 AS cor0 GROUP BY cor0.col0
----
-1170
-7098
-7176

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
45
71
8

query I rowsort
SELECT ALL cor0.col2 * + cor0.col2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col2
----
2025
5041
64

query I rowsort
SELECT ALL col0 FROM tab1 GROUP BY tab1.col0
----
22
28
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9807
SELECT cor0.col1 * cor0.col1 DIV + 8 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
820

skipif mysql # not compatible
query I rowsort label-9807
SELECT cor0.col1 * cor0.col1 / + 8 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
820

query I rowsort
SELECT - cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT ALL - col2 * - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
3364
6241
7569

query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-2378
-4661
-5307

query I rowsort
SELECT DISTINCT 53 FROM tab1 AS cor0 GROUP BY cor0.col2
----
53

query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col2
----
17

query I rowsort
SELECT + + tab0.col1 * 70 FROM tab0 GROUP BY tab0.col1
----
0
5670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 GROUP BY cor0.col2, col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9814
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 GROUP BY cor0.col2, col2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9815
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9815
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2 GROUP BY tab2.col0
----
15
91
92

query I rowsort
SELECT DISTINCT 50 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
50

query I rowsort
SELECT 1 FROM tab2, tab0 AS cor0 GROUP BY cor0.col2
----
1
1
1

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, col2
----
58
79
87

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-24
-38
-79

query I rowsort
SELECT - col0 AS col0 FROM tab0 GROUP BY col0
----
-26
-43
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT ALL cor0.col2 * 49 + - cor0.col0 * cor0.col2 DIV cor0.col0 + 45 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1197
1869
3837

skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL cor0.col2 * 49 + - cor0.col0 * cor0.col2 / cor0.col0 + 45 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
1197
1869
3837

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col2
----
26
43
83

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT - 23 * 45 FROM tab1 AS cor0 GROUP BY cor0.col0, col0
----
-1035

query I rowsort
SELECT - 43 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col1
----
-43
-43
-43

query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab0, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT + + cor0.col0 * + 94 AS col2 FROM tab2, tab2 cor0 GROUP BY cor0.col0
----
1410
8554
8648

query I rowsort
SELECT + cor0.col0 + ( - 46 * - cor0.col0 ) AS col2 FROM tab1, tab1 cor0 GROUP BY cor0.col0
----
1034
1316
3854

query I rowsort
SELECT ALL cor0.col1 * 64 + 60 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
10044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 cor0 GROUP BY cor0.col1
----
0
81

query I rowsort
SELECT ALL cor0.col1 * 43 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0, cor0.col1
----
0
0
3483

query I rowsort
SELECT ALL cor0.col1 + 61 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
105
118
67

query I rowsort
SELECT DISTINCT 45 FROM tab2 AS cor0 GROUP BY cor0.col1
----
45

query I rowsort
SELECT - 9 + cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col0
----
13
19
73

query I rowsort
SELECT + cor0.col2 FROM tab2, tab2 AS cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT + + 96 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
96
96
96

query I rowsort
SELECT ALL cor0.col1 * 26 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1066
1534
1586

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col2 FROM tab1 cor0 GROUP BY cor0.col1, cor0.col2
----
-44
-57
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 22 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-22
-22
-22

query I rowsort
SELECT 90 + 2 + cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
150
171
179

query I rowsort
SELECT - - 55 FROM tab1 GROUP BY tab1.col0
----
55
55
55

query I rowsort
SELECT 67 FROM tab0 cor0 GROUP BY col1
----
67
67

query I rowsort
SELECT ( + cor0.col2 ) FROM tab1 AS cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT cor0.col2 - cor0.col2 AS col0 FROM tab0 AS cor0 GROUP BY col2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0, tab2 cor1 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0, tab2 cor1 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 GROUP BY col2, cor0.col1
----
0
0
81

query I rowsort
SELECT - col0 + col2 FROM tab2 cor0 GROUP BY cor0.col2, col0
----
-12
-34
72

query I rowsort
SELECT DISTINCT + 32 * - tab0.col1 FROM tab0 GROUP BY tab0.col1
----
-2592
0

query I rowsort
SELECT ALL - 4 AS col0 FROM tab0 GROUP BY tab0.col0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9852
SELECT + CAST( 32 AS SIGNED ) + cor0.col2 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
103
40
77

skipif mysql # not compatible
query I rowsort label-9852
SELECT + CAST ( 32 AS INTEGER ) + cor0.col2 AS col2 FROM tab2, tab1 AS cor0 GROUP BY cor0.col2
----
103
40
77

query I rowsort
SELECT ALL cor0.col2 + cor0.col1 FROM tab2 cor0 GROUP BY col1, cor0.col2
----
138
148
99

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-24
-38
-79

query I rowsort
SELECT + cor0.col2 + 98 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col2
----
156
177
185

query I rowsort
SELECT + 8 AS col1 FROM tab2 GROUP BY tab2.col1
----
8
8
8

query I rowsort
SELECT ALL 74 AS col2 FROM tab1 AS cor0 GROUP BY col1
----
74
74
74

query I rowsort
SELECT - 53 + + 60 AS col2 FROM tab0 cor0 GROUP BY cor0.col1
----
7
7

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1 AS cor0 GROUP BY col0
----
22
28
82

query I rowsort
SELECT col2 * 18 FROM tab0 AS cor0 GROUP BY cor0.col2
----
1422
432
684

query III rowsort
SELECT ALL * FROM tab2 cor0 GROUP BY cor0.col1, cor0.col0, cor0.col0, cor0.col2
----
9 values hashing to 8cac454cf7c3f07ac90f79daddc839ae

query I rowsort
SELECT cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col0, cor0.col1
----
41
59
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9863
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 76 FROM tab1 AS cor0 GROUP BY cor0.col1
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9865
SELECT ALL cor0.col1 DIV cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9865
SELECT ALL cor0.col1 / cor0.col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT DISTINCT - 50 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-50

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9868
SELECT DISTINCT 0 DIV cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT 0 / cor0.col1 AS col0 FROM tab2 cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT - 73 AS col1 FROM tab0 GROUP BY tab0.col0
----
-73
-73
-73

query I rowsort
SELECT + cor0.col1 * + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY col1
----
1681
3481
3721

query I rowsort
SELECT ALL + cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
58
79
87

query I rowsort
SELECT + 91 AS col0 FROM tab0, tab0 cor0 GROUP BY cor0.col2
----
91
91
91

query I rowsort
SELECT ALL cor0.col2 * ( - cor0.col2 ) FROM tab1 cor0 GROUP BY cor0.col2, cor0.col2
----
-2025
-5041
-64

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 GROUP BY col0
----
15
91
92

query I rowsort
SELECT - 32 AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col2
----
-32
-32
-32

query I rowsort
SELECT - 42 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT 43 FROM tab1 cor0 GROUP BY cor0.col1
----
43

query I rowsort
SELECT - col0 * + cor0.col0 AS col0 FROM tab0 cor0 GROUP BY col0
----
-1849
-676
-6889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col0 FROM tab0 AS cor0 GROUP BY col1
----
67

query I rowsort
SELECT + 99 * cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
8019

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT 97 DIV - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9883
SELECT 97 / - cor0.col1 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-1
-1
-2

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col1 FROM tab1, tab0 AS cor0 GROUP BY cor0.col2
----
1444
576
6241

query I rowsort
SELECT 77 FROM tab0 AS cor0 GROUP BY col1
----
77
77

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2, cor0.col2, cor0.col2
----
-58
-79
-87

query I rowsort
SELECT 33 * 22 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
726
726
726

query I rowsort
SELECT + 35 FROM tab1 cor0 GROUP BY cor0.col2, cor0.col0
----
35
35
35

query I rowsort
SELECT 47 AS col0 FROM tab2 AS cor0 GROUP BY col1
----
47
47
47

query I rowsort
SELECT DISTINCT - 82 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9891
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 14 + cor0.col2 * + cor0.col2 AS col0 FROM tab0, tab0 AS cor0 GROUP BY cor0.col2
----
1458
590
6255

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9893
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 22 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9893
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 22 col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + - cor0.col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1 GROUP BY cor1.col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 col2 FROM tab1 cor0 GROUP BY cor0.col0
----
79
79
79

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
58
79
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 63 ) col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) col2 FROM tab2 cor0 GROUP BY cor0.col2
----
58
79
87

query I rowsort
SELECT DISTINCT cor0.col0 * 41 * col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col0
----
129314
42312
84214

query I rowsort
SELECT + 44 FROM tab0 AS cor0 GROUP BY cor0.col2, col0
----
44
44
44

query I rowsort
SELECT ALL + 50 FROM tab0 GROUP BY col0
----
50
50
50

query I rowsort
SELECT ALL - 55 FROM tab2 AS cor0 GROUP BY cor0.col1
----
-55
-55
-55

query I rowsort
SELECT 44 FROM tab2 AS cor0 GROUP BY cor0.col1
----
44
44
44

query I rowsort
SELECT ALL - 31 AS col1 FROM tab1, tab1 AS cor0 GROUP BY cor0.col2
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT DISTINCT 87 FROM tab0 AS cor0 GROUP BY cor0.col1
----
87

query I rowsort
SELECT DISTINCT + ( 7 ) FROM tab1 AS cor0 GROUP BY cor0.col1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-58
-79
-87

query I rowsort
SELECT + cor0.col2 * - cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
-3364
-6241
-7569

query I rowsort
SELECT + ( + cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT cor0.col1 + - col1 FROM tab2 cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT DISTINCT + tab1.col2 * - 69 FROM tab1 GROUP BY col2
----
-3105
-4899
-552

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1, cor0.col0
----
22
28
82

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2 AS cor0 GROUP BY col0
----
15
91
92

query I rowsort
SELECT + 67 * 16 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1 GROUP BY tab0.col2
----
1072
1072
1072

query I rowsort
SELECT ALL - 74 * - ( + col0 * + col0 ) AS col0 FROM tab0 AS cor0 GROUP BY cor0.col0
----
136826
50024
509786

query I rowsort
SELECT 39 * - cor0.col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-1092
-3198
-858

query I rowsort
SELECT DISTINCT + 30 FROM tab2 AS cor0 GROUP BY cor0.col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT DISTINCT cor0.col1 DIV cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9921
SELECT DISTINCT cor0.col1 / cor0.col1 col1 FROM tab1 AS cor0 GROUP BY cor0.col1
----
1

query I rowsort
SELECT ALL + 82 FROM tab1, tab1 AS cor0 GROUP BY cor0.col0
----
82
82
82

query I rowsort
SELECT DISTINCT cor0.col2 + 2 * - cor0.col2 FROM tab2 AS cor0 GROUP BY col1, cor0.col2
----
-58
-79
-87

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0

query I rowsort
SELECT + 72 FROM tab0 GROUP BY col2
----
72
72
72

query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab2, tab2 AS cor0 GROUP BY cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL 36 AS col0 FROM tab2 cor0 GROUP BY col1
----
36
36
36

query I rowsort
SELECT DISTINCT 88 FROM tab0 AS cor0 GROUP BY cor0.col1
----
88

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 cor0 GROUP BY cor0.col2
----
45
71
8

query I rowsort
SELECT ALL - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 GROUP BY cor1.col2
----
-45
-71
-8

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2
----
24
38
79

query I rowsort
SELECT ALL 6 - - cor0.col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
6
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9933
SELECT ALL cor0.col1 DIV cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL cor0.col1 / cor0.col1 AS col2 FROM tab2 cor0 GROUP BY cor0.col1
----
1
1
1

query I rowsort
SELECT - tab0.col1 * + 2 AS col2 FROM tab0 GROUP BY tab0.col1
----
-162
0

query I rowsort
SELECT DISTINCT 38 FROM tab0 AS cor0 GROUP BY col1
----
38

query I rowsort
SELECT ALL - 71 FROM tab0, tab1 AS cor0 GROUP BY tab0.col1
----
-71
-71

query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab2 GROUP BY col0
----
38

query I rowsort
SELECT - ( + 23 + cor0.col0 ) FROM tab1 AS cor0 GROUP BY cor0.col0
----
-105
-45
-51

query I rowsort
SELECT DISTINCT - 65 FROM tab2 AS cor0 GROUP BY cor0.col0, col0
----
-65

query I rowsort
SELECT 71 AS col1 FROM tab1 AS cor0 GROUP BY cor0.col0, cor0.col1
----
71
71
71

query I rowsort
SELECT - 3 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-3
-3
-3

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 AS cor0 GROUP BY cor0.col2, cor0.col1, cor0.col1
----
45
71
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab2, tab0 AS cor0 GROUP BY cor0.col0
----
26
43
83

query I rowsort
SELECT DISTINCT - 28 * 7 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-196

query I rowsort
SELECT DISTINCT ( - 62 ) FROM tab0 AS cor0 GROUP BY col1
----
-62

query I rowsort
SELECT - 25 AS col2 FROM tab1 cor0 GROUP BY col2, cor0.col0
----
-25
-25
-25

query I rowsort
SELECT ALL + cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col0
----
44
57
6

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0 cor0 GROUP BY cor0.col0, cor0.col2
----
26
43
83

query I rowsort
SELECT cor0.col0 * + ( - cor0.col0 ) FROM tab2 cor0 GROUP BY cor0.col0
----
-225
-8281
-8464

query I rowsort
SELECT 32 FROM tab2 AS cor0 GROUP BY cor0.col2
----
32
32
32

query I rowsort
SELECT - 79 FROM tab2 cor0 GROUP BY cor0.col2
----
-79
-79
-79

query I rowsort
SELECT - 80 FROM tab0 AS cor0 GROUP BY cor0.col1, cor0.col2
----
-80
-80
-80

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1, cor0.col1
----
-41
-59
-61

query I rowsort
SELECT ALL col2 FROM tab0 cor0 GROUP BY col2
----
24
38
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 34 col0 FROM tab1 GROUP BY col1
----
34

query I rowsort
SELECT - 9 AS col2 FROM tab0 AS cor0 GROUP BY cor0.col2, cor0.col1
----
-9
-9
-9

query I rowsort
SELECT - 84 FROM tab2 AS cor0 GROUP BY cor0.col0
----
-84
-84
-84

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT ALL - cor0.col2 DIV 29 col2 FROM tab0 AS cor0 GROUP BY col2
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9959
SELECT ALL - cor0.col2 / 29 col2 FROM tab0 AS cor0 GROUP BY col2
----
-1
-2
0

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT + CAST( NULL AS SIGNED ) / cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9961
SELECT + CAST ( NULL AS INTEGER ) / cor0.col0 AS col1 FROM tab0 AS cor0 GROUP BY cor0.col0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - 84 col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-3
-84

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1 cor0 GROUP BY cor0.col1
----
44
57
6

query I rowsort
SELECT 43 FROM tab2 AS cor0 GROUP BY cor0.col0
----
43
43
43

query I rowsort
SELECT DISTINCT - 71 FROM tab0 AS cor0 GROUP BY cor0.col2
----
-71

query I rowsort
SELECT DISTINCT - 19 FROM tab0 AS cor0 GROUP BY cor0.col1
----
-19

query I rowsort
SELECT ALL cor0.col1 + 92 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col1
----
136
149
98

query I rowsort
SELECT 59 * - cor0.col2 + cor0.col2 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col2
----
-2610
-4118
-464

query I rowsort
SELECT DISTINCT + + ( - 58 ) AS col2 FROM tab0, tab1 AS cor0 GROUP BY cor0.col1
----
-58

query I rowsort
SELECT 4 FROM tab0 AS cor0 GROUP BY col0
----
4
4
4

query I rowsort
SELECT + 69 * cor0.col0 FROM tab0, tab0 AS cor0 GROUP BY cor0.col0
----
1794
2967
5727

query I rowsort
SELECT - ( - cor0.col0 ) AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1 GROUP BY cor0.col0
----
22
28
82

query I rowsort
SELECT DISTINCT + cor0.col0 + 35 * + 16 FROM tab2, tab0 AS cor0, tab0 cor1 GROUP BY cor0.col0
----
586
603
643

query I rowsort
SELECT + col0 * 82 FROM tab2 AS cor0 GROUP BY cor0.col0
----
1230
7462
7544

query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab1 cor0 GROUP BY cor0.col1
----
1936
3249
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9976
SELECT DISTINCT CAST( - cor0.col0 AS SIGNED ) * cor0.col0 DIV + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-104
-145
-2

skipif mysql # not compatible
query I rowsort label-9976
SELECT DISTINCT CAST ( - cor0.col0 AS INTEGER ) * cor0.col0 / + cor0.col2 AS col1 FROM tab2 AS cor0 GROUP BY cor0.col0, cor0.col2
----
-104
-145
-2

query I rowsort
SELECT - 19 FROM tab0 AS cor0 GROUP BY cor0.col0
----
-19
-19
-19

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 cor0 GROUP BY cor0.col0
----
15
91
92

query I rowsort
SELECT ALL 64 * + col1 FROM tab0 AS cor0 GROUP BY cor0.col1
----
0
5184

query I rowsort
SELECT ALL 58 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 GROUP BY cor1.col1
----
58
58
58

query I rowsort
SELECT ALL + 14 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
14
14
14

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col2 * cor0.col1 FROM tab1 AS cor0 GROUP BY cor0.col1, cor0.col2
----
2622
3168
54

query I rowsort
SELECT DISTINCT + 57 FROM tab0 AS cor0 GROUP BY cor0.col1
----
57

query I rowsort
SELECT + + 54 * tab0.col0 AS col0 FROM tab0 GROUP BY tab0.col0
----
1404
2322
4482

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9985
SELECT ALL - 2 * + cor0.col2 + CAST( NULL AS SIGNED ) / 54 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - 2 * + cor0.col2 + CAST ( NULL AS INTEGER ) / 54 AS col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 64 FROM tab2 GROUP BY tab2.col2
----
-64

query I rowsort
SELECT DISTINCT 23 FROM tab2 AS cor0 GROUP BY cor0.col1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT CAST( - cor0.col0 AS SIGNED ) FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
-22
-28
-82

skipif mysql # not compatible
query I rowsort label-9988
SELECT CAST ( - cor0.col0 AS INTEGER ) FROM tab1 AS cor0 GROUP BY col1, cor0.col0
----
-22
-28
-82

query I rowsort
SELECT ( cor0.col1 ) AS col2 FROM tab2 AS cor0 GROUP BY cor0.col1
----
41
59
61

query I rowsort
SELECT ALL - + ( - 60 ) FROM tab0, tab0 AS cor0 GROUP BY tab0.col0
----
60
60
60

query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab0 AS cor0 GROUP BY cor0.col2
----
48

query I rowsort
SELECT - - 84 FROM tab2 GROUP BY tab2.col1
----
84
84
84

query I rowsort
SELECT ALL - cor0.col1 FROM tab0 cor0 GROUP BY cor0.col1
----
-81
0

query I rowsort
SELECT cor0.col2 * 43 * cor0.col2 FROM tab2 AS cor0 GROUP BY cor0.col2
----
144652
268363
325467

onlyif mysql # DIV for integer division: 
query I rowsort label-9995
SELECT DISTINCT cor0.col1 DIV - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT cor0.col1 / - cor0.col1 AS col2 FROM tab1 AS cor0 GROUP BY cor0.col1
----
-1

query I rowsort
SELECT ALL + cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1 GROUP BY cor1.col1
----
0
81

query I rowsort
SELECT ALL - 2 AS col0 FROM tab1 AS cor0 GROUP BY cor0.col0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + 38 col0 FROM tab2 AS cor0 GROUP BY cor0.col2, col2
----
117
125
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 GROUP BY cor0.col1, col2, cor0.col0
----
9 values hashing to 8ad40ad40eb1e471572580fddc8d2aaf

