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(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-0
SELECT DISTINCT + col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT + col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 * - col2 * col2 AS col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT + 54 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT 73 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT ALL - 1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT ALL col0 + 35 FROM tab1 AS cor0
----
115
38
99
query I rowsort
SELECT ALL - cor0.col1 + - cor0.col0 * - col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT - - col1 - ( col1 ) FROM tab2 cor0
----
0
query I rowsort
SELECT ALL + col2 * + 46 * + col2 + - col2 AS col0 FROM tab2 AS cor0
----
31070
33507
66386
onlyif mysql # use DIV operator for integer division
query I rowsort label-9
SELECT DISTINCT col1 + 14 DIV - col0 + - col1 FROM tab1 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-9
SELECT DISTINCT col1 + 14 / - col0 + - col1 FROM tab1 AS cor0
----
-4
0
query I rowsort
SELECT DISTINCT 57 * + cor1.col2 - + cor0.col1 * + 33 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ddc606825825e00dfce7de12fe6da362
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( 11 ) * + col0 + 35 col0 FROM tab1 AS cor0
----
-669
-845
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - 56 col2 FROM tab2 cor0
----
134
135
63
query I rowsort
SELECT DISTINCT - col0 * col1 + col2 AS col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT 26 FROM tab1, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ( col0 ) + + tab1.col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT + col1 * + col0 + + ( - col2 * - col1 ) FROM tab0
----
15561
3492
4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-17
SELECT + col0 + 52 DIV + 89 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-17
SELECT + col0 + 52 / + 89 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-18
SELECT col0 + - col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-18
SELECT col0 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - tab1.col1 col0 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-20
SELECT DISTINCT + - col2 DIV + 9 + col2 - col1 FROM tab1 AS cor0
----
22
41
73
skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT + - col2 / + 9 + col2 - col1 FROM tab1 AS cor0
----
22
41
73
query I rowsort
SELECT - - col0 * cor0.col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT - col0 + 65 AS col1 FROM tab1 AS cor0
----
-15
1
62
query I rowsort
SELECT ALL + + col1 * - col2 + 69 AS col2 FROM tab0 cor0
----
-2769
-28
-7393
query I rowsort
SELECT - col0 + 51 * col1 AS col1 FROM tab0 AS cor0
----
4362
4552
4912
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL 53 AS col2 FROM tab0
----
53
53
53
query I rowsort
SELECT ALL + ( col0 ) + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - ( ( col1 ) ) + - ( - 88 ) FROM tab2 AS cor0
----
29
57
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-29
SELECT DISTINCT + col0 * 54 DIV + col1 FROM tab0 AS cor0
----
15
19
52
skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT + col0 * 54 / + col1 FROM tab0 AS cor0
----
15
19
52
query I rowsort
SELECT col2 - + col2 * col1 AS col0 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col1 * ( - col2 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 88 * - col1 + col2 FROM tab2 AS cor0
----
-1458
-2701
-5166
onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT ALL + + col2 + + col2 DIV col1 AS col0 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-33
SELECT ALL + + col2 + + col2 / col1 AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT ( col0 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - + ( ( col1 ) ) * - 44 + 85 AS col0 FROM tab1 AS cor0
----
1229
525
657
query I rowsort
SELECT 34 + ( col0 * cor0.col1 ) FROM tab0 AS cor0
----
2098
3429
8133
query I rowsort
SELECT ( col1 ) * + col1 * cor0.col2 + col1 FROM tab2 AS cor0
----
10999
25978
90565
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + 97 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT ALL 67 + col2 * + 13 FROM tab0 AS cor0
----
1133
496
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-41
SELECT 77 * col0 + CAST( NULL AS SIGNED ) * - 20 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-41
SELECT 77 * col0 + CAST ( NULL AS INTEGER ) * - 20 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 50 * + col2 FROM tab0 AS cor0
----
1650
4100
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-43
SELECT + col2 DIV col1 col1 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-43
SELECT + col2 / col1 col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + - col0 * - col2 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + cor0.col1 * - 81 + - col1 FROM tab0 AS cor0
----
-7052
-7462
-7954
query I rowsort
SELECT 92 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT cor0.col1 - + cor0.col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to e97278a6bb7007ec367f7fc7917bd1c7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-48
SELECT - cor0.col1 + CAST( - col1 + col0 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-679
2339
435
skipif mysql # not compatible
query I rowsort label-48
SELECT - cor0.col1 + CAST ( - col1 + col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-679
2339
435
query I rowsort
SELECT ALL + ( - 91 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + cor0.col0 - col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 9b60cb1db2fb2fa5700b0e572b4b6546
query I rowsort
SELECT + ( 88 ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT - tab1.col0 + - tab1.col2 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ( - 93 ) AS col2 FROM tab2
----
-93
-93
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-56
SELECT - + 92 DIV cor0.col1 + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-6
-73
-87
skipif mysql # not compatible
query I rowsort label-56
SELECT - + 92 / cor0.col1 + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-6
-73
-87
query I rowsort
SELECT ALL tab2.col0 + col0 AS col1 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL - cor0.col2 - - col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - col1 - ( + col0 ) AS col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT + col2 * - tab1.col2 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT + 61 DIV + 92 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-61
SELECT + 61 / + 92 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - ( col1 ) * col1 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-63
SELECT DISTINCT + + col1 * + col1 - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
163
676
94
skipif mysql # not compatible
query I rowsort label-63
SELECT DISTINCT + + col1 * + col1 - col0 / col1 AS col1 FROM tab1 AS cor0
----
163
676
94
query I rowsort
SELECT + col1 * col1 + 63 FROM tab0 AS cor0
----
7459
8344
9472
query I rowsort
SELECT + col2 * - 29 FROM tab1 cor0
----
-1566
-1653
-2784
query I rowsort
SELECT + col1 + - col1 * 19 AS col1 FROM tab1 cor0
----
-180
-234
-468
query I rowsort
SELECT - 34 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT DISTINCT col1 + 43 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7525
8415
9549
query I rowsort
SELECT ALL - - cor0.col1 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL - col1 - - 56 FROM tab2 AS cor0
----
-3
25
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT tab2.col0 DIV + col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-71
SELECT tab2.col0 / + col1 FROM tab2
----
0
1
4
query I rowsort
SELECT col0 * ( + ( col2 ) * col0 ) FROM tab2
----
1323
158184
237158
query I rowsort
SELECT DISTINCT + 44 * 97 * col0 FROM tab0 cor0
----
102432
149380
379852
query I rowsort
SELECT col2 * + 54 AS col2 FROM tab1 AS cor0
----
2916
3078
5184
query I rowsort
SELECT DISTINCT + - 27 - 2 FROM tab2 AS cor0
----
-29
query I rowsort
SELECT col2 * - tab2.col2 + + tab2.col2 * col1 * - col1 AS col0 FROM tab2
----
-12426
-26676
-91182
query I rowsort
SELECT ALL 76 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col2 FROM tab1
----
11
11
11
query I rowsort
SELECT - - cor0.col1 * col1 + col0 * col2 FROM tab0 AS cor0
----
15579
8188
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 60 col0 FROM tab0 AS cor0
----
60
query I rowsort
SELECT ALL - cor0.col0 * + col0 * col2 FROM tab0 cor0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT - + col1 + + col2 DIV + ( col0 ) AS col0 FROM tab0 AS cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-82
SELECT - + col1 + + col2 / + ( col0 ) AS col0 FROM tab0 AS cor0
----
-85
-91
-97
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-84
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-84
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 76 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT col0 * + 51 FROM tab1
----
153
3264
4080
query I rowsort
SELECT ALL + 78 * + col1 * + col2 FROM tab1
----
109512
44460
97344
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col0 * 75 col1 FROM tab2 AS cor0
----
-14175
-152100
-225150
query I rowsort
SELECT - 64 * col0 FROM tab2 AS cor0
----
-448
-4992
-5056
query I rowsort
SELECT - col1 + cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT - col1 * col1 + ( + cor0.col1 ) FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT 14 + col2 AS col2 FROM tab0 AS cor0
----
15
47
96
query I rowsort
SELECT - + ( + col2 ) * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col2 * + col0 - col1 FROM tab0
----
-62
706
7207
query I rowsort
SELECT ALL 69 * tab1.col2 + col0 + col2 * - col1 FROM tab1
----
2325
3427
5456
onlyif mysql # use DIV operator for integer division
query I rowsort label-96
SELECT + col0 + col1 * + col2 DIV tab1.col2 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-96
SELECT + col0 + col1 * + col2 / tab1.col2 FROM tab1
----
29
74
93
query I rowsort
SELECT + ( col1 ) + - col1 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT 0 - col0 AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT + - col0 * col0 + 99 FROM tab2 AS cor0
----
-5985
-6142
50
query I rowsort
SELECT DISTINCT - 22 + col2 * 58 FROM tab2 AS cor0
----
1486
1544
2182
query I rowsort
SELECT DISTINCT + col2 * tab0.col1 + col2 FROM tab0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-102
SELECT DISTINCT col2 DIV - tab1.col2 AS col2 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT col2 / - tab1.col2 AS col2 FROM tab1
----
-1
query I rowsort
SELECT DISTINCT + - cor0.col1 * - 71 FROM tab1 AS cor0
----
1846
710
923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-104
SELECT DISTINCT col0 * CAST( + cor0.col0 * + col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
1225
19008
649522
skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT col0 * CAST ( + cor0.col0 * + col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT + + col2 * ( col0 ) * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL + col1 + + cor0.col2 * 76 AS col1 FROM tab1 AS cor0
----
4130
4342
7309
query I rowsort
SELECT DISTINCT tab0.col1 * + 33 AS col1 FROM tab0
----
2838
3003
3201
onlyif mysql # use DIV operator for integer division
query I rowsort label-108
SELECT DISTINCT - cor0.col2 DIV + col2 + + ( col1 ) * + ( col2 ) AS col0 FROM tab1 AS cor0
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT - cor0.col2 / + col2 + + ( col1 ) * + ( col2 ) AS col0 FROM tab1 AS cor0
----
1247
1403
569
query I rowsort
SELECT DISTINCT + col0 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - + col0 * col2 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + col0 * - 47 AS col0 FROM tab2 AS cor0
----
-329
-3666
-3713
query I rowsort
SELECT DISTINCT - col2 * + 61 + col2 AS col1 FROM tab0 cor0
----
-1980
-4920
-60
query I rowsort
SELECT ALL - cor0.col0 + - 28 FROM tab0 AS cor0
----
-117
-52
-63
query I rowsort
SELECT DISTINCT - col2 + + 34 AS col1 FROM tab2 AS cor0
----
-4
7
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-115
SELECT - cor0.col1 * + col2 DIV col2 col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-115
SELECT - cor0.col1 * + col2 / col2 col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ( - col0 ) + - col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - ( 8 ) AS col2 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT ALL - + col2 + + 51 FROM tab1 AS cor0
----
-3
-45
-6
query I rowsort
SELECT col2 + + 16 FROM tab2 AS cor0
----
42
43
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 * + col2 col1 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-122
SELECT 73 * cor0.col2 - + cor0.col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-122
SELECT 73 * cor0.col2 - + cor0.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 13 + 76 AS col1 FROM tab2 AS cor0
----
89
89
89
query I rowsort
SELECT - col2 + + 73 * - col0 FROM tab1 AS cor0
----
-273
-4729
-5936
onlyif mysql # use DIV operator for integer division
query I rowsort label-125
SELECT - col1 - 94 DIV - col0 FROM tab1 AS cor0
----
-12
-9
5
skipif mysql # not compatible
query I rowsort label-125
SELECT - col1 - 94 / - col0 FROM tab1 AS cor0
----
-12
-9
5
query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * cor0.col1 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL col2 + col0 + col0 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT DISTINCT col1 * col2 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
119593
51017
5828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * col2 + - col2 * + col0 * col2 col1 FROM tab2 AS cor0
----
-113126
-4428
-52078
query I rowsort
SELECT - col2 * col2 + - 67 AS col1 FROM tab1 cor0
----
-2983
-3316
-9283
query I rowsort
SELECT ( - col1 + + tab2.col2 ) * + ( + col1 * col1 ) FROM tab2
----
-114873
-3844
6069
query I rowsort
SELECT DISTINCT ( - 48 ) - + col2 AS col1 FROM tab2
----
-74
-75
-86
query I rowsort
SELECT + 28 * + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
2229
2243
227
query I rowsort
SELECT col2 * + 67 FROM tab2
----
1742
1809
2546
query I rowsort
SELECT - col2 * col2 + col1 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT + + col2 * - col2 + col0 FROM tab0 cor0
----
-1065
-6635
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-137
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + 50 FROM tab1 AS cor0
----
114
130
53
query I rowsort
SELECT - col2 * - tab1.col0 * 70 FROM tab1
----
11340
255360
537600
query I rowsort
SELECT DISTINCT tab2.col1 + 50 + 50 FROM tab2
----
117
131
159
query I rowsort
SELECT - col1 + + 81 * - col1 + col0 * col2 AS col2 FROM tab0
----
-164
-6260
-7919
query I rowsort
SELECT DISTINCT - col0 * - col0 + + col0 AS col1 FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL + tab1.col0 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - col1 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - - col2 * - col2 + - cor0.col0 * - ( + col2 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
204687
5832
728064
query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab2 AS cor0
----
58
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 * col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + - ( - col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-149
SELECT - CAST( NULL AS SIGNED ) + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-149
SELECT - CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 14 AS col0 FROM tab2 AS cor0
----
-14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-151
SELECT ALL + CAST( 79 AS SIGNED ) * col0 + 96 FROM tab1 AS cor0
----
333
5152
6416
skipif mysql # not compatible
query I rowsort label-151
SELECT ALL + CAST ( 79 AS INTEGER ) * col0 + 96 FROM tab1 AS cor0
----
333
5152
6416
query I rowsort
SELECT - 40 * 99 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c734db9ad3b45132c768ae6c828c7e2e
query I rowsort
SELECT ALL + 7 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-154
SELECT col1 * col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-154
SELECT col1 * col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 76 + col2 FROM tab0 AS cor0
----
109
158
77
query I rowsort
SELECT + col1 * col0 + + ( + col2 ) + - col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - + col2 * cor0.col0 * - 16 FROM tab0 AS cor0
----
116768
12672
560
query I rowsort
SELECT + cor0.col0 + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - col0 - ( + 72 ) AS col1 FROM tab2 AS cor0
----
-150
-151
-79
query I rowsort
SELECT ALL + col2 * + ( - cor0.col0 + col2 ) AS col2 FROM tab2 AS cor0
----
-1352
-1558
540
query I rowsort
SELECT col2 * ( + ( + col0 ) ) FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 + - col0 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + 70 FROM tab0, tab1 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT - col2 * - ( - col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - cor0.col2 + + 75 FROM tab1 AS cor0
----
-21
18
21
query I rowsort
SELECT - + cor0.col1 - 0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + - col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-169
SELECT + col2 * col1 + col0 DIV col0 FROM tab1 AS cor0
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-169
SELECT + col2 * col1 + col0 / col0 FROM tab1 AS cor0
----
1249
1405
571
query I rowsort
SELECT - - cor0.col1 + col2 * - col0 AS col1 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT - - cor0.col1 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - col0 * - cor0.col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - 96 FROM tab0, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 * - ( cor0.col0 ) col1 FROM tab0, tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col0 * + 33 + - col2 + - tab1.col2 FROM tab1
----
-9
1998
2448
query I rowsort
SELECT + col1 * 34 AS col1 FROM tab0
----
2924
3094
3298
query I rowsort
SELECT + ( col0 ) + + col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + - 76 FROM tab1, tab0 AS cor0, tab2 cor1, tab0, tab0 cor2
----
-76
query I rowsort
SELECT DISTINCT col2 * + col0 + + 31 AS col1 FROM tab2 AS cor0
----
2059
220
3033
query I rowsort
SELECT - 25 AS col0 FROM tab2 AS cor0
----
-25
-25
-25
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT DISTINCT - - 99 * col2 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
4670
5543
9335
query I rowsort
SELECT - cor0.col1 - + 76 FROM tab2 AS cor0
----
-107
-135
-93
query I rowsort
SELECT col2 * - ( col0 ) + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT cor0.col2 * 35 + col0 * col0 FROM tab1 AS cor0
----
1899
6091
9760
query I rowsort
SELECT DISTINCT + - 5 FROM tab2, tab1, tab2 AS cor0
----
-5
query I rowsort
SELECT + 38 AS col2 FROM tab1
----
38
38
38
query I rowsort
SELECT + 71 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT DISTINCT col1 + col1 * + col0 AS col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL - + col1 + cor0.col1 * col2 * + col0 FROM tab2 cor0
----
119593
51017
5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-191
SELECT ALL + col2 * col0 + - cor0.col0 * cor0.col2 DIV + col2 FROM tab0 AS cor0
----
0
7209
768
skipif mysql # not compatible
query I rowsort label-191
SELECT ALL + col2 * col0 + - cor0.col0 * cor0.col2 / + col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL - col0 * col0 + - col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT - col2 * - cor0.col2 * col0 + - col1 + - cor0.col0 FROM tab1 AS cor0
----
207862
737187
8719
query I rowsort
SELECT + cor0.col2 + + col0 * - col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col0 * col1 + col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-196
SELECT + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-196
SELECT + col2 / + col2 AS col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-197
SELECT DISTINCT + col2 DIV + tab2.col1 AS col1 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT + col2 / + tab2.col1 AS col1 FROM tab2
----
0
2
query I rowsort
SELECT col2 - + tab0.col0 * col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - col1 * col0 * col2 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 WHERE NOT col1 < NULL
----
query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 * col1 + col1 * - col0 col1 FROM tab1
----
-1210
-1482
-2288
query I rowsort
SELECT col1 - - col0 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col0 + - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT ALL + - col0 DIV - cor0.col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-206
SELECT ALL + - col0 / - cor0.col1 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-207
SELECT DISTINCT + col2 DIV col2 - col1 * col2 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-207
SELECT DISTINCT + col2 / col2 - col1 * col2 FROM tab0 AS cor0
----
-2837
-7461
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-208
SELECT DISTINCT + tab1.col1 DIV col0 col1 FROM tab1
----
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT + tab1.col1 / col0 col1 FROM tab1
----
0
8
query I rowsort
SELECT ALL - - col0 + col1 * + col0 + col2 * col2 AS col2 FROM tab2 cor0
----
2866
5356
953
query I rowsort
SELECT DISTINCT + col0 * col1 * col2 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT col0 * col0 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
1226
19041
649604
query I rowsort
SELECT ALL + col1 + + col2 * + col0 FROM tab2 cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 + col1 col2 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT ALL + col1 + tab2.col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 * + col1 AS col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT - col0 + col1 * - ( - col0 ) FROM tab0 AS cor0
----
2040
3360
8010
query III rowsort
SELECT * FROM tab2 WHERE ( + col1 + col1 * + col1 ) IN ( + tab2.col1 )
----
query I rowsort
SELECT + tab1.col2 * col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT col1 + + col1 * col2 * col1 + + col2 * + tab1.col0 AS col2 FROM tab1
----
23917
36692
9358
query I rowsort
SELECT DISTINCT + col2 * - col0 * tab1.col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT ALL col2 + - col0 + col0 AS col1 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * - tab1.col1 col2 FROM tab1
----
-36480
-4212
-99840
query III rowsort
SELECT * FROM tab1 WHERE + col2 * + col1 - + col2 BETWEEN ( NULL ) AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-224
SELECT ALL - col1 DIV + col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-224
SELECT ALL - col1 / + col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT col2 * + col1 * - col1 FROM tab1
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT - col2 * col1 DIV + col0 AS col1 FROM tab2
----
-119
-19
-8
skipif mysql # not compatible
query I rowsort label-226
SELECT - col2 * col1 / + col0 AS col1 FROM tab2
----
-119
-19
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT DISTINCT + col1 + - col0 * 72 DIV - 4 FROM tab0
----
1693
518
727
skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + col1 + - col0 * 72 / - 4 FROM tab0
----
1693
518
727
query I rowsort
SELECT ALL 47 * - col1 + 66 AS col2 FROM tab2
----
-1391
-2707
-733
query I rowsort
SELECT DISTINCT - tab1.col2 + col2 AS col2 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + - col0 col1 FROM tab0
----
-4
50
61
query I rowsort
SELECT - ( col0 ) * + col1 AS col2 FROM tab1
----
-1040
-640
-78
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( + tab0.col1 + - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT - col2 DIV - tab1.col2 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-233
SELECT - col2 / - tab1.col2 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT tab1.col1 - col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT ALL + col1 + - col2 DIV - col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + col1 + - col2 / - col1 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE ( NULL ) = col2 * col0
----
query I rowsort
SELECT + tab2.col1 + - tab2.col1 + col0 * col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL NOT IN ( col0 * - col2 + col0 )
----
query I rowsort
SELECT DISTINCT col2 * tab2.col1 AS col0 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT NULL IN ( col1 )
----
query I rowsort
SELECT col1 * - col1 + col1 AS col2 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT col0 * col2 + col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT + col0 * - col2 * + col1 + col1 FROM tab0
----
-3298
-664027
-68026
onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT ALL - tab0.col1 + col2 DIV + col2 + col0 AS col2 FROM tab0 WHERE - col1 NOT BETWEEN ( - col2 ) AND col0
----
-1
-61
-61
skipif mysql # not compatible
query I rowsort label-244
SELECT ALL - tab0.col1 + col2 / + col2 + col0 AS col2 FROM tab0 WHERE - col1 NOT BETWEEN ( - col2 ) AND col0
----
-1
-61
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT ALL tab1.col0 DIV col1 + - col2 AS col1 FROM tab1
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-245
SELECT ALL tab1.col0 / col1 + - col2 AS col1 FROM tab1
----
-51
-54
-90
query I rowsort
SELECT DISTINCT 62 FROM tab2 AS cor0
----
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * col0 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col2 * - col1 + col0 - + col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 35 * - col2 AS col1 FROM tab1
----
-1890
-1995
-3360
onlyif mysql # use DIV operator for integer division
query I rowsort label-250
SELECT - 98 DIV col2 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-250
SELECT - 98 / col2 AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT + ( col1 * tab1.col2 ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT + + 68 FROM tab0, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-253
SELECT - col2 * - cor0.col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-253
SELECT - col2 * - cor0.col0 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 * + cor0.col0 + cor0.col1 col0 FROM tab0 AS cor0
----
-26050
-598345
62
query I rowsort
SELECT + 83 * + col1 FROM tab2
----
1411
2573
4897
query I rowsort
SELECT DISTINCT 98 * - col0 AS col2 FROM tab0
----
-2352
-3430
-8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-257
SELECT + 42 + col2 * 68 DIV + col2 FROM tab0
----
110
110
110
skipif mysql # not compatible
query I rowsort label-257
SELECT + 42 + col2 * 68 / + col2 FROM tab0
----
110
110
110
query I rowsort
SELECT + - 48 * 27 AS col2 FROM tab0 AS cor0
----
-1296
-1296
-1296
query I rowsort
SELECT DISTINCT + 98 * - col2 AS col0 FROM tab2 cor0
----
-2548
-2646
-3724
query I rowsort
SELECT DISTINCT 55 * - col1 AS col2 FROM tab2 AS cor0
----
-1705
-3245
-935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-261
SELECT DISTINCT + CAST( - col2 AS SIGNED ) - - col2 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) - - col2 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT 7 * 34 AS col1 FROM tab2 AS cor0
----
238
238
238
query I rowsort
SELECT ALL + ( - 99 ) + col1 FROM tab2 AS cor0
----
-40
-68
-82
query I rowsort
SELECT DISTINCT - - 47 - col0 AS col2 FROM tab2 AS cor0
----
-31
-32
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-265
SELECT DISTINCT + + ( ( cor0.col1 ) ) DIV 55 + col0 AS col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT + + ( ( cor0.col1 ) ) / 55 + col0 AS col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + col2 * ( col1 * - col1 ) + - 54 * 73 FROM tab0
----
-13351
-248010
-682984
query I rowsort
SELECT ALL + 22 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-268
SELECT ALL + col0 + + col0 * - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-268
SELECT ALL + col0 + + col0 * - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-269
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col0 - + cor0.col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col0 - + cor0.col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + ( 67 ) FROM tab1
----
67
67
67
query I rowsort
SELECT + + col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT + 85 * col2 AS col2 FROM tab1 AS cor0
----
4590
4845
8160
query I rowsort
SELECT ALL 79 FROM tab0, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT - + ( col0 ) * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 * col0 * - col0 FROM tab0 cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT + col1 * - col1 * col1 AS col1 FROM tab0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL - tab2.col0 * + col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - col1 * + col0 - tab1.col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT - ( - cor0.col0 ) AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + 47 * col0 AS col2 FROM tab2 AS cor0
----
329
3666
3713
query I rowsort
SELECT - col2 + - 18 * 98 FROM tab1 AS cor0
----
-1818
-1821
-1860
query I rowsort
SELECT - col0 + 44 AS col2 FROM tab1 AS cor0
----
-20
-36
41
query I rowsort
SELECT - - col1 * + 73 FROM tab0 cor0
----
6278
6643
7081
query I rowsort
SELECT ( - ( col0 ) ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - tab0.col0 * 9 FROM tab0
----
-216
-315
-801
query I rowsort
SELECT col2 * - col1 - - col2 AS col0 FROM tab2
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-287
SELECT CAST( NULL AS DECIMAL ) + + tab1.col0 * col2 * - tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-287
SELECT CAST ( NULL AS REAL ) + + tab1.col0 * col2 * - tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 * - col1 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT col2 + 21 * + col2 FROM tab0 cor0
----
1804
22
726
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-290
SELECT + CAST( NULL AS SIGNED ) * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-290
SELECT + CAST ( NULL AS INTEGER ) * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col1 ) * col1 * col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT col0 * + col2 + + col0 * col2 + - tab1.col2 FROM tab1
----
15264
270
7239
query I rowsort
SELECT ALL 47 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f
query I rowsort
SELECT + 39 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-295
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + 72 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-295
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + 72 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT - col1 * col0 DIV + col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-296
SELECT - col1 * col0 / + col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-297
SELECT col1 + CAST( col2 AS SIGNED ) * col1 + 51 * + col1 FROM tab0 AS cor0
----
12194
5141
7310
skipif mysql # not compatible
query I rowsort label-297
SELECT col1 + CAST ( col2 AS INTEGER ) * col1 + 51 * + col1 FROM tab0 AS cor0
----
12194
5141
7310
query I rowsort
SELECT - - 83 * - cor0.col0 FROM tab1 AS cor0
----
-249
-5312
-6640
query I rowsort
SELECT DISTINCT col0 + col0 + + tab0.col0 AS col0 FROM tab0
----
105
267
72
query I rowsort
SELECT + 57 - + 10 AS col0 FROM tab1
----
47
47
47
query I rowsort
SELECT + ( col0 ) * + col2 + + col0 * + col0 FROM tab1
----
14080
171
7744
query I rowsort
SELECT col0 * 71 AS col2 FROM tab1
----
213
4544
5680
query I rowsort
SELECT - 9 AS col0 FROM tab2
----
-9
-9
-9
query I rowsort
SELECT ALL - ( 39 ) + + col0 AS col0 FROM tab2 AS cor0
----
-32
39
40
query I rowsort
SELECT + col0 * cor0.col1 + + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT 91 * + 85 + cor0.col2 AS col1 FROM tab1 AS cor0
----
7789
7792
7831
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-307
SELECT ALL CAST( NULL AS SIGNED ) / - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-307
SELECT ALL CAST ( NULL AS INTEGER ) / - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col1 ) + + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-310
SELECT + + col2 * - col0 DIV + col0 FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-310
SELECT + + col2 * - col0 / + col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT ( col1 ) - col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL + 80 AS col0 FROM tab0
----
80
80
80
query I rowsort
SELECT ALL - col2 - + col1 * 36 AS col0 FROM tab2
----
-1143
-2150
-650
query I rowsort
SELECT + ( + col0 ) + + 42 * col2 - - col0 AS col0 FROM tab0
----
112
1434
3622
query I rowsort
SELECT - col2 + col2 * 14 FROM tab0
----
1066
13
429
query I rowsort
SELECT cor0.col2 * + 18 FROM tab0, tab2 AS cor0
----
9 values hashing to 0e7a467c0ce53e9a34a2e1960996a2b4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * col1 + - col0 col2 FROM tab0 AS cor0
----
-244092
-679131
-9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col1 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-319
SELECT col0 + 60 DIV - 93 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-319
SELECT col0 + 60 / - 93 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - col1 * + ( col1 ) * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + col2 col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + + cor0.col1 + ( - col1 ) - - col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col2 + ( - 65 + - col2 ) * + col2 AS col2 FROM tab0 cor0
----
-11972
-3201
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT - col1 DIV col0 + + col2 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-324
SELECT - col1 / col0 + + col2 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * col1 col2 FROM tab0
----
4902
5187
5529
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab0.col0 col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col2 + - cor0.col0 + - cor0.col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1259
-567
-7928
query I rowsort
SELECT DISTINCT + - col2 * ( cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT 20 * + col1 * tab2.col2 FROM tab2
----
12920
16740
30680
onlyif mysql # use DIV operator for integer division
query I rowsort label-331
SELECT ALL - col0 DIV ( + col2 ) FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-331
SELECT ALL - col0 / ( + col2 ) FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT + col0 * + col0 + - col1 + + col0 * 83 * col2 AS col0 FROM tab0 AS cor0
----
4033
613564
66226
query I rowsort
SELECT DISTINCT + col2 + ( - 25 ) FROM tab2 AS cor0
----
1
13
2
query I rowsort
SELECT + + col2 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - col2 + 85 FROM tab0
----
3
52
84
query I rowsort
SELECT DISTINCT col1 * ( - 2 ) + - col1 FROM tab2
----
-177
-51
-93
query I rowsort
SELECT DISTINCT + col0 * + col1 + + 81 FROM tab1
----
1121
159
721
query I rowsort
SELECT col2 - 60 AS col0 FROM tab2 AS cor0
----
-22
-33
-34
query I rowsort
SELECT + col2 - col0 * 49 AS col1 FROM tab1 AS cor0
----
-3079
-3824
-93
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + cor0.col0 - - CAST ( - col0 AS REAL ) FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT 69 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 82762d1f978d19c1dfb91e39310b5974
onlyif mysql # use DIV operator for integer division
query I rowsort label-342
SELECT ALL + cor0.col1 DIV 59 + col0 - - col2 AS col1 FROM tab2 AS cor0
----
105
117
34
skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + cor0.col1 / 59 + col0 - - col2 AS col1 FROM tab2 AS cor0
----
105
117
34
query I rowsort
SELECT - - col0 + 24 FROM tab1 AS cor0
----
104
27
88
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab1, tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-345
SELECT - col2 * col0 DIV - col0 + - col2 * - 93 + col2 AS col2 FROM tab2
----
2470
2565
3610
skipif mysql # not compatible
query I rowsort label-345
SELECT - col2 * col0 / - col0 + - col2 * - 93 + col2 AS col2 FROM tab2
----
2470
2565
3610
query I rowsort
SELECT ALL col2 - col1 * col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + 76 AS col1 FROM tab0 AS cor0
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT DISTINCT + cor0.col2 DIV - col1 + col0 FROM tab2 cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT + cor0.col2 / - col1 + col0 FROM tab2 cor0
----
7
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-349
SELECT ALL + col2 + col0 DIV col1 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-349
SELECT ALL + col2 + col0 / col1 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT + + col1 + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT 30 * col1 - - col2 * 45 AS col0 FROM tab0 AS cor0
----
2955
4065
6420
query I rowsort
SELECT - ( col1 ) * col0 + - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT 56 + + col2 FROM tab0 AS cor0
----
138
57
89
query I rowsort
SELECT ALL - col0 + - 31 FROM tab2
----
-109
-110
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-355
SELECT + tab1.col1 * - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-355
SELECT + tab1.col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 - - 40 FROM tab0
----
-46
-51
-57
query I rowsort
SELECT ALL + col0 * + col0 - + col2 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT DISTINCT col1 + col0 * + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - 87 + - col1 FROM tab1 AS cor0
----
-100
-113
-97
query I rowsort
SELECT - - 37 + - cor0.col2 FROM tab2 AS cor0
----
-1
10
11
query I rowsort
SELECT ALL - + col2 + col1 * ( + 4 ) AS col1 FROM tab2 AS cor0
----
210
30
97
query I rowsort
SELECT - - cor0.col2 + col0 * + 18 FROM tab2 AS cor0
----
1430
1460
153
query I rowsort
SELECT ALL - 44 + col0 AS col0 FROM tab2
----
-37
34
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 5 col0 FROM tab1
----
270
285
480
query I rowsort
SELECT ALL + 77 + 54 FROM tab2
----
131
131
131
query I rowsort
SELECT ALL - cor0.col0 * - col2 + - 51 AS col2 FROM tab2 AS cor0
----
138
1977
2951
query I rowsort
SELECT DISTINCT - - 46 * col2 FROM tab2 cor0
----
1196
1242
1748
query I rowsort
SELECT ALL + + col1 * - col1 * 95 FROM tab1 AS cor0
----
-16055
-64220
-9500
onlyif mysql # use DIV operator for integer division
query I rowsort label-369
SELECT ALL - 81 DIV - col1 AS col0 FROM tab1 AS cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-369
SELECT ALL - 81 / - col1 AS col0 FROM tab1 AS cor0
----
3
6
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-370
SELECT col0 * + col1 + + 66 DIV 29 FROM tab1
----
1042
642
80
skipif mysql # not compatible
query I rowsort label-370
SELECT col0 * + col1 + + 66 / 29 FROM tab1
----
1042
642
80
query I rowsort
SELECT 48 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL 67 AS col2 FROM tab2, tab0, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
query I rowsort
SELECT + + 60 + + cor0.col1 * - col1 FROM tab1 cor0
----
-109
-40
-616
query I rowsort
SELECT DISTINCT - 25 FROM tab0 AS cor0
----
-25
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - 29 + col0 AS col1 FROM tab0 AS cor0
----
-5
6
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * cor0.col0 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e53625e4a404d1b78e419300380dfae7
query I rowsort
SELECT 39 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-379
SELECT ALL cor0.col0 + col0 * + col2 DIV + ( col2 ) FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-379
SELECT ALL cor0.col0 + col0 * + col2 / + ( col2 ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - col0 - - cor0.col2 * + col2 * - 47 FROM tab0 cor0
----
-316117
-51207
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT ALL - col1 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-381
SELECT ALL - col1 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 80 * + col1 + - col1 AS col0 FROM tab0 AS cor0
----
6794
7189
7663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-383
SELECT + 95 * col0 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-383
SELECT + 95 * col0 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * - col2 * col0 col1 FROM tab2
----
-11340
-121680
-180120
query I rowsort
SELECT ( + cor0.col2 ) + col0 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT 78 * col0 + cor0.col0 FROM tab0 AS cor0
----
1896
2765
7031
onlyif mysql # use DIV operator for integer division
query I rowsort label-387
SELECT ALL + col2 DIV ( col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-387
SELECT ALL + col2 / ( col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - col2 * col0 * col2 - col2 AS col0 FROM tab1 AS cor0
----
-207993
-737376
-8802
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-389
SELECT - + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-389
SELECT - + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - cor0.col0 * + 39 * col2 FROM tab0 AS cor0
----
-1365
-284622
-30888
query I rowsort
SELECT 34 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT - col1 + ( col0 * - col2 ) AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL cor0.col0 * ( col2 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT cor0.col2 + - 78 AS col0 FROM tab0 AS cor0
----
-45
-77
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-396
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) + - 24 * col0 + 36 * 39 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-396
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) + - 24 * col0 + 36 * 39 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-397
SELECT DISTINCT cor0.col0 DIV + ( col0 * - col0 + - 80 * col1 ) AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-397
SELECT DISTINCT cor0.col0 / + ( col0 * - col0 + - 80 * col1 ) AS col0 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-398
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) + - col0 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) + - col0 * + col2 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 27 FROM tab2, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT - col0 + - ( col2 * + col0 ) AS col1 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT col1 * col1 * col1 + col2 FROM tab0
----
636089
753653
912674
query I rowsort
SELECT + 79 * - col2 FROM tab2 AS cor0
----
-2054
-2133
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( col0 ) col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - col1 + - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT ALL + + 98 * - 37 + col0 FROM tab1 AS cor0
----
-3546
-3562
-3623
query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab0
----
-79
query I rowsort
SELECT ALL + - col1 - col0 AS col2 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT ALL 40 AS col2 FROM tab2
----
40
40
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-409
SELECT DISTINCT + CAST( 78 * col1 + + ( col0 ) * col2 AS SIGNED ) FROM tab2
----
2607
4328
6630
skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT + CAST ( 78 * col1 + + ( col0 ) * col2 AS INTEGER ) FROM tab2
----
2607
4328
6630
query I rowsort
SELECT DISTINCT col1 * tab0.col1 + col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT + 7 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 18 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT cor0.col0 + - ( col1 + - col1 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 90 * - col0 FROM tab0
----
-2160
-3150
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-415
SELECT ( - col2 ) DIV - 85 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-415
SELECT ( - col2 ) / - 85 AS col2 FROM tab1
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 58 col1 FROM tab1
----
1508
580
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-417
SELECT DISTINCT + cor0.col2 - + CAST( NULL AS DECIMAL ) FROM tab1, tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT + cor0.col2 - + CAST ( NULL AS REAL ) FROM tab1, tab0, tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col0 FROM tab1, tab0 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - col2 + 18 FROM tab1 AS cor0
----
-36
-39
-78
query I rowsort
SELECT ALL + col2 + col0 * 98 FROM tab2 AS cor0
----
713
7670
7780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-421
SELECT col0 - col2 * CAST( + col2 + - col1 * - 58 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-165669
-439431
-5592
skipif mysql # not compatible
query I rowsort label-421
SELECT col0 - col2 * CAST ( + col2 + - col1 * - 58 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-165669
-439431
-5592
query I rowsort
SELECT - + col2 - - col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-423
SELECT DISTINCT + + col1 * cor0.col0 + - CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT + + col1 * cor0.col0 + - CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col1 * + col1 + ( col0 ) FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT - col1 * col1 * - col2 - + cor0.col2 FROM tab0 AS cor0
----
244035
678960
9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-426
SELECT DISTINCT 51 * col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT 51 * col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + ( + col0 ) * cor0.col2 - - col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT 98 * + col0 - - ( - col2 + col2 * col2 ) AS col0 FROM tab2 AS cor0
----
1388
8294
9148
query I rowsort
SELECT DISTINCT + - col2 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT + 47 + col0 * + col2 FROM tab0 AS cor0
----
7345
82
839
onlyif mysql # use DIV operator for integer division
query I rowsort label-432
SELECT + cor0.col2 DIV col1 + col2 AS col0 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-432
SELECT + cor0.col2 / col1 + col2 AS col0 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT ALL + 26 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT ALL + 35 - col0 AS col0 FROM tab0
----
-54
0
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-435
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-436
SELECT ALL col2 * col2 + 90 DIV + col1 FROM tab0 AS cor0
----
1
1090
6724
skipif mysql # not compatible
query I rowsort label-436
SELECT ALL col2 * col2 + 90 / + col1 FROM tab0 AS cor0
----
1
1090
6724
query I rowsort
SELECT 4 + - col2 AS col1 FROM tab0 AS cor0
----
-29
-78
3
query I rowsort
SELECT ALL 44 + col2 AS col0 FROM tab0 AS cor0
----
126
45
77
query I rowsort
SELECT ALL - - col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + col2 + tab1.col1 * 64 FROM tab1
----
1718
697
928
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT - col2 DIV + col2 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-441
SELECT - col2 / + col2 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL 49 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT ALL ( col2 ) * - tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-444
SELECT CAST( col0 AS SIGNED ) + - col2 * - ( - col0 ) FROM tab1
----
-159
-3584
-7600
skipif mysql # not compatible
query I rowsort label-444
SELECT CAST ( col0 AS INTEGER ) + - col2 * - ( - col0 ) FROM tab1
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 93 col2 FROM tab2 AS cor0
----
651
7254
7347
onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT 44 DIV - ( + col0 ) + + col0 * - col1 col2 FROM tab2
----
-1343
-223
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-446
SELECT 44 / - ( + col0 ) + + col0 * - col1 col2 FROM tab2
----
-1343
-223
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-447
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 48 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-447
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 48 FROM tab1
----
NULL
query I rowsort
SELECT ALL - - 69 * 50 - + col0 FROM tab2 AS cor0
----
3371
3372
3443
query I rowsort
SELECT ALL col2 + 67 AS col1 FROM tab2 AS cor0
----
105
93
94
query I rowsort
SELECT ALL ( + cor0.col0 ) * + col1 + cor0.col2 - + 93 * col0 AS col0 FROM tab0 AS cor0
----
-135
-96
141
query I rowsort
SELECT ALL - ( - cor0.col2 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL + ( - col0 ) - - col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - + 76 + 15 * - col0 AS col2 FROM tab1 AS cor0
----
-1036
-121
-1276
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col2 ) * cor0.col1 * col2 col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT - - col1 * 67 * - col1 FROM tab0 cor0
----
-495532
-554827
-630403
query I rowsort
SELECT ALL 18 * ( col2 ) AS col2 FROM tab2 AS cor0
----
468
486
684
query I rowsort
SELECT + cor0.col1 * + 87 FROM tab1 AS cor0
----
1131
2262
870
query I rowsort
SELECT DISTINCT + - col0 + 62 FROM tab1 AS cor0
----
-18
-2
59
query I rowsort
SELECT DISTINCT + 12 * + 25 FROM tab0
----
300
query I rowsort
SELECT DISTINCT + - ( 12 ) + + col2 * - col1 FROM tab2 AS cor0
----
-1546
-658
-849
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-461
SELECT 6 * - col0 * + CAST( 35 AS SIGNED ) FROM tab2 cor0
----
-1470
-16380
-16590
skipif mysql # not compatible
query I rowsort label-461
SELECT 6 * - col0 * + CAST ( 35 AS INTEGER ) FROM tab2 cor0
----
-1470
-16380
-16590
query I rowsort
SELECT + col0 + col1 * col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + 59 * + col2 AS col2 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT ALL - col1 * col2 + col2 * - col2 * + col0 FROM tab0 AS cor0
----
-132
-28974
-605898
query I rowsort
SELECT ALL - ( + col1 ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-468
SELECT DISTINCT + - col2 * - col1 - CAST( col2 * - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10464
3819
4320
skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + - col2 * - col1 - CAST ( col2 * - col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT + + col0 + cor0.col0 * col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT 90 FROM tab2 AS cor0
----
90
query I rowsort
SELECT - + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + col2 * + 10 FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT DISTINCT - col0 * 66 * + 13 AS col1 FROM tab0 AS cor0
----
-20592
-30030
-76362
query I rowsort
SELECT col0 + ( ( - col2 ) ) * col1 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT + col1 * 81 FROM tab1
----
1053
2106
810
query I rowsort
SELECT + col1 + 63 FROM tab1
----
73
76
89
query I rowsort
SELECT DISTINCT - col0 * + col0 * + col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-478
SELECT DISTINCT - col1 DIV + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT - col1 / + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 15 * col1 col0 FROM tab0 AS cor0
----
-1314
-1454
-1490
onlyif mysql # use DIV operator for integer division
query I rowsort label-480
SELECT ALL + + col2 DIV - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-480
SELECT ALL + + col2 / - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT - 25 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
query I rowsort
SELECT DISTINCT col2 * + cor0.col2 * - col0 AS col2 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL + + 32 * 78 AS col2 FROM tab2 AS cor0
----
2496
2496
2496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 col0 FROM tab2 AS cor0
----
-95
-95
-95
query I rowsort
SELECT - 45 * + col0 AS col2 FROM tab1 AS cor0
----
-135
-2880
-3600
query I rowsort
SELECT ( + 41 ) FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT DISTINCT - - col0 + + col0 * cor0.col0 AS col2 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT ALL - - col0 * ( col2 ) + cor0.col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-490
SELECT + CAST( col1 AS SIGNED ) DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-490
SELECT + CAST ( col1 AS INTEGER ) / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 59 AS col1 FROM tab1 cor0
----
59
59
59
query I rowsort
SELECT ALL - col2 * - 73 AS col0 FROM tab1 AS cor0
----
3942
4161
7008
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT + col0 + col0 * + col2 * col1 FROM tab0
----
3430
664207
68136
query I rowsort
SELECT - tab0.col1 + - tab0.col0 FROM tab0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT ALL - col0 + - ( col0 ) DIV col1 + col0 AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-496
SELECT ALL - col0 + - ( col0 ) / col1 + col0 AS col1 FROM tab1
----
-6
-6
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-497
SELECT col1 + + CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab0
----
7482
8372
9506
skipif mysql # not compatible
query I rowsort label-497
SELECT col1 + + CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-498
SELECT - + col1 + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-498
SELECT - + col1 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab1, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL 55 + + 40 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 + + 67 col1 FROM tab2, tab0, tab0 AS cor0
----
36
50
8
query I rowsort
SELECT + 53 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 63949b5362442f48bd29195397a57dad
query I rowsort
SELECT + ( 40 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL + 38 * - 62 + col2 + + 17 FROM tab0
----
-2257
-2306
-2338
query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab2, tab2 AS cor0
----
23
query I rowsort
SELECT + 40 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT col0 * + col2 * tab2.col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - ( + 6 ) * tab0.col2 AS col1 FROM tab0
----
-198
-492
-6
query I rowsort
SELECT - 10 + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 429fb37bc029ffc3d2bb05b269c826b8
query I rowsort
SELECT + col2 * - 53 AS col1 FROM tab1
----
-2862
-3021
-5088
query I rowsort
SELECT ALL + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * col1 col0 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT - col2 * + col1 + col2 AS col1 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT col2 * - col2 * col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + col2 col0 FROM tab1 AS cor0
----
136
94
97
query I rowsort
SELECT cor0.col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 44 * + col2 FROM tab2 AS cor0
----
1144
1188
1672
query I rowsort
SELECT + 4 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
193
2032
3006
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-519
SELECT ALL + col1 + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + col1 + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * tab0.col2 AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-521
SELECT ALL col2 DIV + col2 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-521
SELECT ALL col2 / + col2 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT 58 - + 84 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
query I rowsort
SELECT - - col0 * + col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT + 1 + + col2 * tab1.col2 AS col2 FROM tab1
----
2917
3250
9217
onlyif mysql # use DIV operator for integer division
query I rowsort label-525
SELECT - col2 + + col1 DIV - 13 FROM tab1 AS cor0
----
-56
-57
-97
skipif mysql # not compatible
query I rowsort label-525
SELECT - col2 + + col1 / - 13 FROM tab1 AS cor0
----
-56
-57
-97
query I rowsort
SELECT ALL - col2 * ( + col2 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT - cor0.col2 + 68 AS col2 FROM tab2 cor0
----
30
41
42
query I rowsort
SELECT ALL + 30 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT ALL - col2 * 99 * col2 AS col1 FROM tab2 cor0
----
-142956
-66924
-72171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-530
SELECT - col0 * CAST( col0 AS SIGNED ) + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif mysql # not compatible
query I rowsort label-530
SELECT - col0 * CAST ( col0 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT + ( - col0 ) * + col2 - + 30 AS col0 FROM tab0 AS cor0
----
-65
-7328
-822
query I rowsort
SELECT - col2 + - col0 AS col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT + 11 + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
111
180
687
query I rowsort
SELECT ALL + + col1 + + col1 * + cor0.col1 + - col2 FROM tab1 AS cor0
----
53
648
86
query I rowsort
SELECT + cor0.col2 + cor0.col2 - col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - 72 AS col0 FROM tab0 AS cor0
----
-72
-72
-72
query I rowsort
SELECT - 93 + col2 AS col1 FROM tab2 AS cor0
----
-55
-66
-67
query I rowsort
SELECT DISTINCT + ( + col2 ) + - 7 FROM tab1 AS cor0
----
47
50
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col0 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + - cor0.col1 - col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL - - col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 cor2, tab1
----
13122 values hashing to 33444e8988371d8af68f2e9af844c124
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL - col0 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-545
SELECT col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-545
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-546
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-547
SELECT DISTINCT col2 DIV - col1 + - col1 * col1 FROM tab1 AS cor0
----
-105
-176
-678
skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT col2 / - col1 + - col1 * col1 FROM tab1 AS cor0
----
-105
-176
-678
query I rowsort
SELECT DISTINCT + col2 * - 42 FROM tab1 AS cor0
----
-2268
-2394
-4032
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-549
SELECT DISTINCT col0 + + CAST( + 61 AS SIGNED ) FROM tab0 AS cor0
----
150
85
96
skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT col0 + + CAST ( + 61 AS INTEGER ) FROM tab0 AS cor0
----
150
85
96
query I rowsort
SELECT ALL - ( + 58 ) * - col1 AS col1 FROM tab0 AS cor0
----
4988
5278
5626
query I rowsort
SELECT ALL + - 78 + col2 AS col1 FROM tab1 AS cor0
----
-21
-24
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-552
SELECT + - CAST( 19 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
skipif mysql # not compatible
query I rowsort label-552
SELECT + - CAST ( 19 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662
query I rowsort
SELECT + ( - col1 ) + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + col0 * + col0 AS col0 FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab0 AS cor0
----
-7
query I rowsort
SELECT 18 * + tab2.col2 * + col0 FROM tab2
----
3402
36504
54036
query I rowsort
SELECT col1 * - col1 * + col0 AS col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT ( + col2 ) * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + + 44 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # use DIV operator for integer division
query I rowsort label-560
SELECT - col2 - tab0.col1 * 93 DIV - col2 AS col2 FROM tab0
----
209
21
9020
skipif mysql # not compatible
query I rowsort label-560
SELECT - col2 - tab0.col1 * 93 / - col2 AS col2 FROM tab0
----
209
21
9020
query I rowsort
SELECT - - cor0.col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + ( col1 ) + + col2 FROM tab0
----
119
173
98
query I rowsort
SELECT - col0 * + col0 + + tab2.col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT - col2 * + tab2.col2 + - 10 FROM tab2
----
-1454
-686
-739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab2.col1 ) - + col2 col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL + col1 * + col1 * col1 + 57 AS col1 FROM tab1
----
1057
17633
2254
query I rowsort
SELECT + 83 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT + cor0.col0 + ( - col1 ) * - col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + + col0 + - col2 * col0 * col1 FROM tab2 cor0
----
-119574
-50955
-5852
query I rowsort
SELECT DISTINCT col0 * + 59 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT DISTINCT - col2 + + 39 + cor0.col0 AS col0 FROM tab0 AS cor0
----
30
46
73
query I rowsort
SELECT ALL + 73 + ( col0 + - col0 ) AS col1 FROM tab1
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-573
SELECT DISTINCT col1 + col0 DIV col1 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT col1 + col0 / col1 FROM tab2
----
21
31
60
query I rowsort
SELECT DISTINCT ( col0 ) + - tab2.col1 * 13 FROM tab2
----
-142
-396
-689
query I rowsort
SELECT ( - col1 ) * col2 + + col2 - + col1 * cor0.col1 * - col0 AS col0 FROM tab0 cor0
----
174699
329219
729629
query I rowsort
SELECT DISTINCT 6 + - col0 AS col2 FROM tab1 AS cor0
----
-58
-74
3
query I rowsort
SELECT DISTINCT - - col0 * 70 + col0 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT - cor0.col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-579
SELECT + CAST( NULL AS SIGNED ) + + col2 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-579
SELECT + CAST ( NULL AS INTEGER ) + + col2 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 54 AS col2 FROM tab1 AS cor0
----
54
54
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-581
SELECT CAST( NULL AS DECIMAL ) col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-581
SELECT CAST ( NULL AS REAL ) col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-582
SELECT + - col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-582
SELECT + - col2 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + + 42 + col0 FROM tab0 AS cor0
----
131
66
77
query I rowsort
SELECT + 66 + col1 FROM tab2 AS cor0
----
125
83
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT col2 DIV + col2 + - ( col0 + col2 ) FROM tab1 cor0
----
-120
-175
-56
skipif mysql # not compatible
query I rowsort label-585
SELECT col2 / + col2 + - ( col0 + col2 ) FROM tab1 cor0
----
-120
-175
-56
query I rowsort
SELECT DISTINCT + col1 * - col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ( - col0 ) + - 59 FROM tab0 AS cor0
----
-148
-83
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT ALL col1 DIV - col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-588
SELECT ALL col1 / - col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT + cor0.col1 + cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-590
SELECT ALL + + 0 DIV col2 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-590
SELECT ALL + + 0 / col2 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col0 + - cor0.col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-592
SELECT 74 + - col1 * + CAST( + cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
-26
-602
-95
skipif mysql # not compatible
query I rowsort label-592
SELECT 74 + - col1 * + CAST ( + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
-26
-602
-95
query I rowsort
SELECT + ( col1 ) + tab1.col2 * + tab1.col0 - - col0 AS col2 FROM tab1
----
191
3722
7773
query I rowsort
SELECT ALL - 22 - tab2.col1 FROM tab2
----
-39
-53
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col0 col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col2 + - col2 * 13 FROM tab1 AS cor0
----
-1152
-648
-684
onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT ALL 46 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-597
SELECT ALL 46 / cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 70 FROM tab1 AS cor0
----
70
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab1, tab2 cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-600
SELECT DISTINCT + CAST( cor0.col2 AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT + CAST ( cor0.col2 AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - ( - 6 ) * + cor0.col1 AS col0 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT - 30 + 34 AS col1 FROM tab0 AS cor0
----
4
4
4
query I rowsort
SELECT DISTINCT + col0 * 29 AS col0 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT DISTINCT + ( - col2 ) + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab1, tab2 AS cor0
----
95
query I rowsort
SELECT + col0 * + ( col0 ) AS col0 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * + col2 * - col2 col2 FROM tab0
----
132
611973
93678
query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 * cor0.col0 + col0 col1 FROM tab0 AS cor0
----
-1272
-1855
-4717
query I rowsort
SELECT ALL 60 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349
query I rowsort
SELECT DISTINCT - 0 FROM tab1, tab0, tab0 AS cor0
----
0
query I rowsort
SELECT tab1.col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - col1 + ( col2 ) * + col0 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT + col1 + + col0 + + 59 FROM tab2
----
155
196
97
query I rowsort
SELECT col0 * + col0 * 36 FROM tab2 AS cor0
----
1764
219024
224676
query I rowsort
SELECT col0 * 71 AS col2 FROM tab2 cor0
----
497
5538
5609
onlyif mysql # use DIV operator for integer division
query I rowsort label-617
SELECT + col2 * col0 * col2 - + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
207937
737281
8749
skipif mysql # not compatible
query I rowsort label-617
SELECT + col2 * col0 * col2 - + col1 / - col1 AS col1 FROM tab1 AS cor0
----
207937
737281
8749
query I rowsort
SELECT + col0 * 27 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT ALL 10 + - tab2.col0 DIV + tab2.col0 FROM tab2
----
9
9
9
skipif mysql # not compatible
query I rowsort label-620
SELECT ALL 10 + - tab2.col0 / + tab2.col0 FROM tab2
----
9
9
9
query I rowsort
SELECT ALL 70 + + tab0.col1 AS col0 FROM tab0
----
156
161
167
query I rowsort
SELECT ALL col1 * 51 FROM tab0
----
4386
4641
4947
onlyif mysql # use DIV operator for integer division
query I rowsort label-623
SELECT DISTINCT col2 DIV + col1 + col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT col2 / + col1 + col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT col1 * 90 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2979
4532
7338
query I rowsort
SELECT ALL + col1 + ( cor0.col1 ) * cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT - + col0 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col0 * 99 AS col1 FROM tab2 cor0
----
693
7722
7821
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col1 * - col1 col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT - cor0.col1 * + ( + ( + col2 ) ) + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL col1 * col0 + col1 * col2 + ( - ( + cor0.col1 ) + - ( cor0.col2 ) ) FROM tab0 AS cor0
----
15388
3394
4783
query I rowsort
SELECT DISTINCT - col0 * ( - col0 ) FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-632
SELECT DISTINCT col2 * + col2 / 39 - + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT col2 * + col2 / 39 - + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + col0 - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-634
SELECT DISTINCT cor0.col2 * CAST( - col1 AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864
skipif mysql # not compatible
query I rowsort label-634
SELECT DISTINCT cor0.col2 * CAST ( - col1 AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - tab2.col1 ) col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * - col2 col1 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT col2 DIV - 24 FROM tab0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-637
SELECT col2 / - 24 FROM tab0
----
-1
-3
0
query I rowsort
SELECT ALL + col0 * - ( col1 * + col1 ) FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT + tab2.col2 + col0 - 86 AS col1 FROM tab2
----
-52
18
31
query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL col1 * - ( 18 ) - col1 FROM tab0
----
-1634
-1729
-1843
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-642
SELECT CAST( NULL AS SIGNED ) + - 26 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-642
SELECT CAST ( NULL AS INTEGER ) + - 26 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 9 FROM tab1 cor0
----
-9
-9
-9
query I rowsort
SELECT + col1 + 71 FROM tab1 AS cor0
----
81
84
97
query I rowsort
SELECT ALL 39 * cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab1, tab2 cor1
----
81 values hashing to 7b1bbaaa7f634e94f6fe04519a12ca8a
query I rowsort
SELECT + 55 + - 27 * col1 FROM tab1 AS cor0
----
-215
-296
-647
query I rowsort
SELECT 92 + + 84 + col2 AS col1 FROM tab2 AS cor0
----
202
203
214
onlyif mysql # use DIV operator for integer division
query I rowsort label-648
SELECT + - col1 + col1 + + col0 DIV ( 79 + - col1 ) FROM tab0 AS cor0
----
-1
-3
-7
skipif mysql # not compatible
query I rowsort label-648
SELECT + - col1 + col1 + + col0 / ( 79 + - col1 ) FROM tab0 AS cor0
----
-1
-3
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 12 col0 FROM tab2 AS cor0
----
-204
-372
-708
query I rowsort
SELECT cor0.col1 * cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + 25 AS col0 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT col2 + - cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT + col2 + - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT - - col0 * 88 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT + + col2 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + + col1 * + 25 FROM tab0 AS cor0
----
2150
2275
2425
onlyif mysql # use DIV operator for integer division
query I rowsort label-659
SELECT + 18 + - col2 DIV + col0 AS col0 FROM tab2
----
15
18
18
skipif mysql # not compatible
query I rowsort label-659
SELECT + 18 + - col2 / + col0 AS col0 FROM tab2
----
15
18
18
query I rowsort
SELECT DISTINCT - ( - col1 ) * + 89 + + col1 FROM tab0
----
7740
8190
8730
query I rowsort
SELECT - 82 * col2 + + col0 AS col2 FROM tab1
----
-4425
-4610
-7792
query I rowsort
SELECT + - col1 * col2 * + 34 AS col0 FROM tab2 AS cor0
----
-21964
-28458
-52156
query I rowsort
SELECT - 14 * - col0 AS col2 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT ( - col2 + col0 * + col0 ) FROM tab1
----
-45
4039
6304
onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT cor0.col1 DIV 37 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
skipif mysql # not compatible
query I rowsort label-665
SELECT cor0.col1 / 37 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
query I rowsort
SELECT DISTINCT - 67 FROM tab0
----
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col0 FROM tab1
----
100
169
676
query I rowsort
SELECT + cor0.col1 * 70 AS col1 FROM tab0 AS cor0
----
6020
6370
6790
query I rowsort
SELECT DISTINCT - - col2 + + col1 * 7 AS col2 FROM tab1 AS cor0
----
127
187
236
query I rowsort
SELECT + - col1 + ( 58 ) * + col1 AS col0 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT ALL - - col0 * - 14 AS col0 FROM tab0 AS cor0
----
-1246
-336
-490
query I rowsort
SELECT + col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 * - col0 col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL 31 FROM tab2, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT - - col1 * + ( - 35 ) * + col2 FROM tab0 AS cor0
----
-261170
-3395
-99330
query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-50
query I rowsort
SELECT ALL + col2 + 90 * - col2 AS col0 FROM tab0 cor0
----
-2937
-7298
-89
query I rowsort
SELECT ALL - + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + col1 * ( - 39 ) AS col0 FROM tab1 AS cor0
----
-1014
-390
-507
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * - 28 * col1 col2 FROM tab0 AS cor0
----
-226683
-57768
-95025
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 34 col1 FROM tab0 AS cor0
----
116
35
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 + - col1 col2 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * cor0.col1 - + 34 col0 FROM tab2 AS cor0
----
-1568
-680
-871
query I rowsort
SELECT DISTINCT + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab2, tab1 AS cor0
----
98
query I rowsort
SELECT ( cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 + 46 + col0 FROM tab1
----
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-688
SELECT DISTINCT - col2 * + 74 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - col2 * + 74 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - 20 col0 FROM tab1 AS cor0
----
-100
-23
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-690
SELECT DISTINCT - - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + col0 * - cor0.col0 + + col0 * - ( 66 ) * col1 - col2 AS col1 FROM tab2 cor0
----
-14398
-309842
-94917
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 col2 FROM tab1 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + col2 * - col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ( - 71 ) + + col0 + col1 AS col2 FROM tab1 AS cor0
----
-42
22
3
query I rowsort
SELECT col1 + col2 - + col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col0 * - col1 + + col2 * col2 FROM tab1 AS cor0
----
10256
2994
3889
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 + col0 col0 FROM tab2 AS cor0
----
-59
12
13
query I rowsort
SELECT - 3 AS col1 FROM tab2 cor0
----
-3
-3
-3
query I rowsort
SELECT + - 71 * - col0 + ( col0 ) * col1 AS col2 FROM tab2 cor0
----
10140
6952
714
query I rowsort
SELECT 65 * - col1 + 40 FROM tab0 AS cor0
----
-5550
-5875
-6265
query I rowsort
SELECT ALL - 28 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT ALL + 28 * col1 + ( 10 ) AS col2 FROM tab1 AS cor0
----
290
374
738
query I rowsort
SELECT DISTINCT - + col2 * col2 * 54 + - ( col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
-33023
-38405
-77687
query I rowsort
SELECT ALL - 96 - + cor0.col0 FROM tab0 cor0
----
-120
-131
-185
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-706
SELECT col2 * - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-706
SELECT col2 * - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT ALL 37 * + col0 FROM tab0 AS cor0
----
1295
3293
888
query I rowsort
SELECT DISTINCT cor0.col1 + - col1 AS col0 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT 27 * col1 + col0 FROM tab1 AS cor0
----
334
431
705
onlyif mysql # use DIV operator for integer division
query I rowsort label-711
SELECT DISTINCT + 69 + - tab0.col1 DIV col2 FROM tab0
----
-28
67
68
skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + 69 + - tab0.col1 / col2 FROM tab0
----
-28
67
68
query I rowsort
SELECT 92 + - col1 AS col0 FROM tab1 cor0
----
66
79
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + - col0 col2 FROM tab2 cor0
----
42
6006
6162
query I rowsort
SELECT col1 * col2 + + ( col0 ) AS col1 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 col1 FROM tab0
----
172
182
194
query I rowsort
SELECT cor0.col2 + 42 FROM tab2 AS cor0
----
68
69
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - - col2 * - col2 + 23 FROM tab1 AS cor0
----
-2893
-3226
-9193
query I rowsort
SELECT tab1.col2 + tab1.col2 AS col1 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-721
SELECT ALL col2 DIV + col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-721
SELECT ALL col2 / + col1 AS col2 FROM tab1
----
2
5
7
query I rowsort
SELECT + 29 * 13 FROM tab2 AS cor0
----
377
377
377
query I rowsort
SELECT DISTINCT + col2 + col0 - col0 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col0 + 37 * + col2 FROM tab2 cor0
----
1327
884
992
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70
query I rowsort
SELECT ALL ( + col1 ) + + col0 AS col2 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-727
SELECT ALL - CAST( NULL AS SIGNED ) + + tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-727
SELECT ALL - CAST ( NULL AS INTEGER ) + + tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col1 + 38 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
48
51
64
query I rowsort
SELECT ALL - ( - col1 ) * - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-730
SELECT ALL + ( col0 ) + - col1 DIV 89 AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-730
SELECT ALL + ( col0 ) + - col1 / 89 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + + 53 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
142
77
88
query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab2, tab0 AS cor0
----
56
query I rowsort
SELECT 57 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL 87 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT DISTINCT + + 43 + - col0 FROM tab0 AS cor0
----
-46
19
8
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( 36 AS REAL ) + + col0 * 83 FROM tab1 AS cor0
----
213
5276
6604
query I rowsort
SELECT ALL + 22 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT - col0 * col0 + + ( + col1 ) - col2 FROM tab2 AS cor0
----
-45
-6051
-6262
query I rowsort
SELECT col2 + 23 * cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
121
2059
878
query I rowsort
SELECT DISTINCT - cor0.col2 + - col2 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT DISTINCT cor0.col2 DIV + cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT cor0.col2 / + cor0.col1 AS col2 FROM tab1, tab2 AS cor0
----
0
2
query I rowsort
SELECT DISTINCT col1 + + 16 + col2 AS col0 FROM tab0
----
114
135
189
query I rowsort
SELECT DISTINCT col1 * 97 AS col1 FROM tab1
----
1261
2522
970
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-745
SELECT CAST( NULL AS DECIMAL ) + + cor0.col1 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-745
SELECT CAST ( NULL AS REAL ) + + cor0.col1 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-746
SELECT ALL - 68 * + col1 / + CAST( NULL AS SIGNED ) + cor0.col1 * - col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - 68 * + col1 / + CAST ( NULL AS INTEGER ) + cor0.col1 * - col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + col0 * ( - 71 ) AS col2 FROM tab1 AS cor0
----
-187
-4534
-5667
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 cor1, tab1, tab0 cor2
----
3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - + col0 + 9 * + col1 AS col1 FROM tab2 AS cor0
----
272
453
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-751
SELECT col1 - CAST( ( col0 ) AS SIGNED ) FROM tab1 cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-751
SELECT col1 - CAST ( ( col0 ) AS INTEGER ) FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL 45 + - col2 FROM tab2
----
18
19
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-753
SELECT col1 + col0 DIV - col2 + col2 FROM tab0 AS cor0
----
119
172
63
skipif mysql # not compatible
query I rowsort label-753
SELECT col1 + col0 / - col2 + col2 FROM tab0 AS cor0
----
119
172
63
query I rowsort
SELECT + col2 + col2 * - col1 * - col1 + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
10374
25137
88998
onlyif mysql # use DIV operator for integer division
query I rowsort label-755
SELECT ALL col1 - - 89 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
18
19
29
skipif mysql # not compatible
query I rowsort label-755
SELECT ALL col1 - - 89 / cor0.col1 AS col0 FROM tab1 AS cor0
----
18
19
29
query I rowsort
SELECT 94 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT ALL - - col2 * cor0.col0 + - col2 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT ALL - tab1.col1 + + 71 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to a94c0d6b672eb2de20a40ea0950b147c
onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT DISTINCT - col1 - col1 * col0 DIV col2 FROM tab0
----
-148
-189
-3492
skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT - col1 - col1 * col0 / col2 FROM tab0
----
-148
-189
-3492
query I rowsort
SELECT DISTINCT - 15 * - col1 + + col2 + col1 AS col2 FROM tab1 AS cor0
----
217
304
470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - 29 col0 FROM tab1 AS cor0
----
-16
-19
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-763
SELECT ALL + - CAST( + col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-763
SELECT ALL + - CAST ( + col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT col1 DIV ( + col1 * col0 ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-764
SELECT col1 / ( + col1 * col0 ) FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-765
SELECT + col2 DIV + 64 AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-765
SELECT + col2 / + 64 AS col1 FROM tab1
----
0
0
1
query I rowsort
SELECT - tab2.col0 + + 27 * + 73 AS col0 FROM tab2
----
1892
1893
1964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-767
SELECT DISTINCT CAST( - col2 AS SIGNED ) FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT CAST ( - col2 AS INTEGER ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT ( col0 ) + + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - 41 - col0 AS col2 FROM tab1 AS cor0
----
-105
-121
-44
query I rowsort
SELECT - 66 * - cor0.col2 + col1 FROM tab0 AS cor0
----
163
2264
5503
query I rowsort
SELECT ALL + col0 + + col0 * + ( - col2 * col1 ) FROM tab0 cor0
----
-3360
-664029
-68088
query I rowsort
SELECT DISTINCT + 41 AS col1 FROM tab0 AS cor0
----
41
query I rowsort
SELECT ALL ( col1 ) * col0 + - 85 FROM tab0
----
1979
3310
8014
query I rowsort
SELECT ALL - ( 51 ) + + tab1.col2 AS col1 FROM tab1
----
3
45
6
query I rowsort
SELECT ALL - col2 + - 36 FROM tab1
----
-132
-90
-93
query I rowsort
SELECT DISTINCT + ( tab2.col2 + col1 ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + 68 AS col2 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT ALL 29 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT ALL + col2 - col0 * 71 AS col2 FROM tab2
----
-470
-5512
-5571
query I rowsort
SELECT + col0 * - 60 + - col0 FROM tab0 AS cor0
----
-1464
-2135
-5429
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 + col0 * cor0.col0 FROM tab0 AS cor0
----
-216
1190
623
query I rowsort
SELECT ALL - ( - col2 ) * - col2 - cor0.col2 AS col0 FROM tab0 cor0
----
-1122
-2
-6806
query I rowsort
SELECT 69 + - 77 FROM tab0 AS cor0
----
-8
-8
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT ALL - - ( col1 ) DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - - ( col1 ) / col0 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + col2 col1 FROM tab0 AS cor0
----
118
37
69
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col0 * 47 + 70 FROM tab2
----
3736
3783
399
query I rowsort
SELECT DISTINCT col0 + + 71 FROM tab1
----
135
151
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-789
SELECT - col2 DIV col2 col1 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-789
SELECT - col2 / col2 col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + ( 98 ) * cor0.col2 + - col1 * + cor0.col0 FROM tab2 AS cor0
----
-2054
2381
2429
query I rowsort
SELECT DISTINCT col2 + - 82 * - col2 AS col2 FROM tab2 AS cor0
----
2158
2241
3154
onlyif mysql # use DIV operator for integer division
query I rowsort label-792
SELECT 51 + col1 DIV - col0 FROM tab0 AS cor0
----
48
49
50
skipif mysql # not compatible
query I rowsort label-792
SELECT 51 + col1 / - col0 FROM tab0 AS cor0
----
48
49
50
query I rowsort
SELECT + 37 + - col1 * col2 FROM tab2 AS cor0
----
-1497
-609
-800
query I rowsort
SELECT ALL - ( col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-795
SELECT ALL - + col2 + col1 DIV col2 FROM tab0 AS cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-795
SELECT ALL - + col2 + col1 / col2 FROM tab0 AS cor0
----
-31
-81
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT DISTINCT CAST( - ( - col1 ) AS SIGNED ) DIV + 31 + - col1 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-129
-7387
-876
skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT CAST ( - ( - col1 ) AS INTEGER ) / + 31 + - col1 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-129
-7387
-876
query I rowsort
SELECT DISTINCT - 48 + + col0 FROM tab2 AS cor0
----
-41
30
31
query I rowsort
SELECT ALL - - col2 * - col0 - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT cor0.col2 * 86 FROM tab0 AS cor0
----
2838
7052
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-802
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + + col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-802
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 + + col2 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( - col1 ) FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-804
SELECT + ( - col2 ) * col2 + CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-804
SELECT + ( - col2 ) * col2 + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + - col0 * + col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - 28 * col1 AS col1 FROM tab1
----
-280
-364
-728
query I rowsort
SELECT + - 52 * - col0 AS col0 FROM tab1 AS cor0
----
156
3328
4160
query I rowsort
SELECT + 20 * + col0 + + 9 FROM tab2 cor0
----
149
1569
1589
query I rowsort
SELECT + cor0.col0 + + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43cd4d6bf46fb9ce15caf369cb36598e
query I rowsort
SELECT - col2 * - ( + col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col0 + 92 FROM tab2 AS cor0
----
13
14
85
query I rowsort
SELECT - col0 * 83 - + 47 AS col1 FROM tab0 AS cor0
----
-2039
-2952
-7434
query I rowsort
SELECT DISTINCT - col2 - + col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col2 + 40 FROM tab2 AS cor0
----
66
67
78
query I rowsort
SELECT ALL - - cor0.col2 * + 48 + - col1 AS col0 FROM tab1 AS cor0
----
2566
2726
4595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + cor0.col0 * - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b460624d1c2c1007450ea637cc667d6b
query I rowsort
SELECT DISTINCT + - col1 * + col0 + + ( col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-1210
-1482
-2288
query I rowsort
SELECT col0 * - col0 * - col1 FROM tab1
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-820
SELECT - col0 * - CAST( cor0.col0 AS SIGNED ) FROM tab0 cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-820
SELECT - col0 * - CAST ( cor0.col0 AS INTEGER ) FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + + col2 * - 9 + col2 AS col0 FROM tab1 cor0
----
-432
-456
-768
query I rowsort
SELECT DISTINCT + + col0 + ( 15 ) * - cor0.col0 AS col2 FROM tab1 cor0
----
-1120
-42
-896
query I rowsort
SELECT - col0 * - col2 * - col2 AS col2 FROM tab0 cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-825
SELECT col1 * - col0 + col2 DIV ( 81 * col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-825
SELECT col1 * - col0 + col2 / ( 81 * col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * + col0 col0 FROM tab2 AS cor0
----
-665
-7410
-7505
query I rowsort
SELECT ALL - ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col2 + tab1.col0 + 14 * + col1 AS col1 FROM tab1
----
261
358
421
query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + 53 * 76 FROM tab1, tab0 AS cor0
----
4028
query I rowsort
SELECT col2 * 94 AS col0 FROM tab0
----
3102
7708
94
query I rowsort
SELECT ALL - - 66 + col2 FROM tab0 AS cor0
----
148
67
99
query I rowsort
SELECT DISTINCT col0 - + col2 * col0 * + col2 AS col2 FROM tab2 AS cor0
----
-113997
-5096
-52650
query I rowsort
SELECT DISTINCT - - 15 - - col0 FROM tab2 AS cor0
----
22
93
94
query I rowsort
SELECT DISTINCT + 90 FROM tab1 cor0
----
90
query I rowsort
SELECT DISTINCT + + 29 + col2 FROM tab1 AS cor0
----
125
83
86
query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT + 23 * 24 FROM tab0
----
552
552
552
query I rowsort
SELECT 96 - col0 FROM tab1
----
16
32
93
query I rowsort
SELECT DISTINCT col0 * ( + col1 ) + ( + col1 ) AS col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL - + col2 * col2 + - 0 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT 78 * - 61 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 34b69b84d4911ec7b73b066a8c555451
query I rowsort
SELECT col2 + col2 * + 1 FROM tab2
----
52
54
76
query I rowsort
SELECT 44 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT + 12 * - col0 * + 9 FROM tab2 cor0
----
-756
-8424
-8532
query I rowsort
SELECT 90 + col1 * + col1 FROM tab0 AS cor0
----
7486
8371
9499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-848
SELECT DISTINCT CAST( + 79 AS SIGNED ) FROM tab1, tab0 cor0, tab1 cor1
----
79
skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT CAST ( + 79 AS INTEGER ) FROM tab1, tab0 cor0, tab1 cor1
----
79
query I rowsort
SELECT ALL - ( tab2.col2 * 5 ) AS col0 FROM tab2
----
-130
-135
-190
query I rowsort
SELECT - 88 * col0 FROM tab0
----
-2112
-3080
-7832
query I rowsort
SELECT ( - col2 + col1 ) FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 80 col2 FROM tab1, tab0, tab2 AS cor0
----
80
query I rowsort
SELECT 45 * col1 AS col2 FROM tab2 AS cor0
----
1395
2655
765
query I rowsort
SELECT + + col1 - - col0 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL + col2 * + 68 FROM tab2
----
1768
1836
2584
query I rowsort
SELECT - tab0.col1 * + 64 AS col2 FROM tab0
----
-5504
-5824
-6208
onlyif mysql # use DIV operator for integer division
query I rowsort label-857
SELECT - col1 DIV - 31 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-857
SELECT - col1 / - 31 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col1 * + 1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 96 * col1 FROM tab1 AS cor0
----
1248
2496
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT - 96 DIV - 17 AS col0 FROM tab2 AS cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-862
SELECT - 96 / - 17 AS col0 FROM tab2 AS cor0
----
5
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-863
SELECT CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-863
SELECT CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + 4 FROM tab2 AS cor0
----
-4
-4
-4
query I rowsort
SELECT - 38 + - 40 * col1 AS col2 FROM tab1 AS cor0
----
-1078
-438
-558
query I rowsort
SELECT col0 * - tab2.col0 - + col0 * + 2 AS col2 FROM tab2
----
-6240
-63
-6399
query I rowsort
SELECT - 72 + col2 FROM tab0
----
-39
-71
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-868
SELECT 82 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-868
SELECT 82 / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT + 86 FROM tab0, tab1 AS cor0
----
86
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + + cor0.col0 + + 44 AS col2 FROM tab1 AS cor0
----
1164
125
748
query I rowsort
SELECT DISTINCT + col2 + - ( - col1 + cor0.col2 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col1 * - 91 FROM tab1 cor0
----
1183
2366
910
query I rowsort
SELECT col2 * + col0 + col0 + col2 FROM tab1 AS cor0
----
219
3769
7856
onlyif mysql # use DIV operator for integer division
query I rowsort label-874
SELECT ALL - - cor0.col2 DIV + col1 + + 41 col0 FROM tab1 AS cor0
----
43
46
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-874
SELECT ALL - - cor0.col2 / + col1 + + 41 col0 FROM tab1 AS cor0
----
43
46
48
query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab1 AS cor0
----
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-876
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-876
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + col0 * + col0 AS col2 FROM tab1 cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-878
SELECT + 44 DIV + col0 FROM tab1 AS cor0
----
0
0
14
skipif mysql # not compatible
query I rowsort label-878
SELECT + 44 / + col0 FROM tab1 AS cor0
----
0
0
14
query I rowsort
SELECT 18 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595
onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT + col0 DIV col1 + - tab0.col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-880
SELECT + col0 / col1 + - tab0.col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0, tab0 cor0
----
46
query I rowsort
SELECT col0 * 44 AS col0 FROM tab2 AS cor0
----
308
3432
3476
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-883
SELECT col2 * + CAST( NULL AS SIGNED ) - 75 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-883
SELECT col2 * + CAST ( NULL AS INTEGER ) - 75 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( tab1.col2 ) col1 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab0, tab1, tab2 cor0
----
87
query I rowsort
SELECT ALL cor0.col0 + tab0.col0 * - 21 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 70b420f2f5583deb04549799785d6277
query I rowsort
SELECT - col1 * ( + cor0.col2 + + col0 * col1 ) AS col1 FROM tab0 AS cor0
----
-180342
-329412
-744471
query I rowsort
SELECT ALL ( tab0.col1 * - ( + col2 ) ) AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + 56 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT DISTINCT - tab2.col0 + col2 * col2 AS col2 FROM tab2
----
1365
598
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-891
SELECT ALL - 96 * cor0.col2 DIV CAST( + ( col0 ) AS SIGNED ) + - cor0.col0 * col0 AS col2 FROM tab2 cor0
----
-419
-6116
-6287
skipif mysql # not compatible
query I rowsort label-891
SELECT ALL - 96 * cor0.col2 / CAST ( + ( col0 ) AS INTEGER ) + - cor0.col0 * col0 AS col2 FROM tab2 cor0
----
-419
-6116
-6287
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-892
SELECT ALL + col2 * col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-892
SELECT ALL + col2 * col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-893
SELECT ( + col0 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-893
SELECT ( + col0 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-894
SELECT 2 * col2 DIV ( 56 ) AS col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-894
SELECT 2 * col2 / ( 56 ) AS col1 FROM tab2
----
0
0
1
query I rowsort
SELECT ALL col1 * col1 + + 40 AS col1 FROM tab0
----
7436
8321
9449
query I rowsort
SELECT + - cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + cor0.col0 col1 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-898
SELECT DISTINCT - 88 DIV + col2 + ( col1 ) * + col0 FROM tab1 AS cor0
----
1040
639
77
skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT - 88 / + col2 + ( col1 ) * + col0 FROM tab1 AS cor0
----
1040
639
77
query I rowsort
SELECT DISTINCT + + col2 * col0 - ( col2 ) * col1 * col2 FROM tab2 AS cor0
----
-21546
-22410
-37856
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-900
SELECT - col0 + CAST( NULL AS SIGNED ) * 3 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-900
SELECT - col0 + CAST ( NULL AS INTEGER ) * 3 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + tab1.col0 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT + col2 * + 0 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - + cor0.col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - + col1 + col1 * col2 * + col2 + + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-97
604331
90730
query I rowsort
SELECT - col0 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT ALL col1 + - col2 + col1 * col2 AS col1 FROM tab1
----
1165
1376
523
query I rowsort
SELECT 77 + - col1 + col0 FROM tab2
----
139
53
96
query I rowsort
SELECT DISTINCT col1 * + 43 + col1 AS col0 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT ALL - 99 * col1 - + cor0.col2 FROM tab1 AS cor0
----
-1047
-1383
-2628
query I rowsort
SELECT DISTINCT + col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - - col1 - col1 AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-913
SELECT DISTINCT + + ( col2 ) * col1 DIV - 48 AS col1 FROM tab0 AS cor0
----
-155
-2
-59
skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT + + ( col2 ) * col1 / - 48 AS col1 FROM tab0 AS cor0
----
-155
-2
-59
query I rowsort
SELECT ALL + - ( + col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 55 + col2 FROM tab1 AS cor0
----
-1
2
41
query I rowsort
SELECT ALL 67 + 9 * + col1 AS col1 FROM tab2 AS cor0
----
220
346
598
query I rowsort
SELECT 60 AS col2 FROM tab1 AS cor0
----
60
60
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-918
SELECT DISTINCT + - col1 DIV col1 + + col0 FROM tab0 cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + - col1 / col1 + + col0 FROM tab0 cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-919
SELECT ALL - - 33 DIV - col1 col0 FROM tab1 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - - 33 / - col1 col0 FROM tab1 AS cor0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-920
SELECT ALL + + col0 - col2 DIV + col1 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-920
SELECT ALL + + col0 - col2 / + col1 FROM tab1 AS cor0
----
1
59
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-921
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 8 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 8 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-922
SELECT tab0.col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-922
SELECT tab0.col1 - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 59 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT col1 * + 58 - - col2 AS col0 FROM tab0
----
5021
5360
5627
onlyif mysql # use DIV operator for integer division
query I rowsort label-925
SELECT ALL + 31 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-925
SELECT ALL + 31 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-10
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-926
SELECT - + CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-926
SELECT - + CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 47 * - col1 + - col2 FROM tab0 cor0
----
-4075
-4359
-4560
query I rowsort
SELECT DISTINCT - col0 * 89 FROM tab2 AS cor0
----
-623
-6942
-7031
query I rowsort
SELECT DISTINCT + col1 * 31 AS col2 FROM tab1 AS cor0
----
310
403
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT DISTINCT - - col1 DIV + col2 + col2 FROM tab0 cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-930
SELECT DISTINCT - - col1 / + col2 + col2 FROM tab0 cor0
----
35
83
98
query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT 53 FROM tab1, tab2 cor0
----
53
query I rowsort
SELECT ( 55 ) + + col1 AS col0 FROM tab0
----
141
146
152
query I rowsort
SELECT - - ( col1 ) * col0 * 36 FROM tab2 AS cor0
----
165672
48348
7812
query I rowsort
SELECT - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - 4 + - ( - col1 ) AS col1 FROM tab0
----
82
87
93
query I rowsort
SELECT + 38 AS col2 FROM tab0
----
38
38
38
query I rowsort
SELECT ALL 40 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL 81 FROM tab0
----
81
81
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-940
SELECT + CAST( 40 AS SIGNED ) FROM tab2
----
40
40
40
skipif mysql # not compatible
query I rowsort label-940
SELECT + CAST ( 40 AS INTEGER ) FROM tab2
----
40
40
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col2 FROM tab1 cor0
----
-79
-79
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 col0 FROM tab1 cor0
----
31
31
31
query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col0 col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + ( + col2 ) AS col2 FROM tab1 cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-946
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-946
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + - col0 + ( col2 ) * - col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - + col0 + + cor0.col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - col2 * - 24 * - col1 FROM tab2 AS cor0
----
-15504
-20088
-36816
query I rowsort
SELECT DISTINCT col1 + + 70 * - col1 FROM tab2 AS cor0
----
-1173
-2139
-4071
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-951
SELECT - - col1 + 12 * - ( cor0.col1 + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-951
SELECT - - col1 + 12 * - ( cor0.col1 + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT + col2 + + 36 FROM tab1 AS cor0
----
132
90
93
query I rowsort
SELECT DISTINCT + col2 * - 74 FROM tab0 cor0
----
-2442
-6068
-74
query I rowsort
SELECT ( col0 ) * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ( - cor0.col0 ) * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 46 FROM tab2, tab2 AS cor0
----
46
query I rowsort
SELECT ALL + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + ( col1 ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 13 FROM tab1, tab0 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL 42 + 29 FROM tab1 AS cor0
----
71
71
71
query I rowsort
SELECT + - col2 + col0 * + col2 * + 26 AS col2 FROM tab0 AS cor0
----
189666
20559
909
query I rowsort
SELECT + col2 * - 80 AS col0 FROM tab1
----
-4320
-4560
-7680
query I rowsort
SELECT col2 * - ( + ( col2 ) ) AS col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT 87 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
243 values hashing to 8bc10da748e01dcb4f9c3610cdff39b0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-966
SELECT CAST( + col0 AS SIGNED ) * col0 * cor0.col1 + + 45 AS col1 FROM tab1 AS cor0
----
279
41005
83245
skipif mysql # not compatible
query I rowsort label-966
SELECT CAST ( + col0 AS INTEGER ) * col0 * cor0.col1 + + 45 AS col1 FROM tab1 AS cor0
----
279
41005
83245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 * col0 col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - 88 + col1 FROM tab2
----
-29
-57
-71
query I rowsort
SELECT ALL - 73 AS col0 FROM tab2
----
-73
-73
-73
query I rowsort
SELECT ALL - + col2 * col0 - - col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-971
SELECT DISTINCT + - col1 DIV + col2 + 21 FROM tab1 AS cor0
----
21
skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT + - col1 / + col2 + 21 FROM tab1 AS cor0
----
21
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col2 AS REAL ) * col1 / col1 AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-973
SELECT - - CAST( NULL AS DECIMAL ) * - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-973
SELECT - - CAST ( NULL AS REAL ) * - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif mysql # not compatible
query I rowsort
SELECT + - col2 * CAST ( + ( cor0.col2 ) AS REAL ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT 54 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT + 67 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT - 67 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT + 95 FROM tab2 AS cor0
----
95
95
95
query I rowsort
SELECT - - col0 + col1 * col1 AS col2 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT ALL + col2 + - col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + ( col2 ) * col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 28 + tab2.col0 FROM tab2
----
106
107
35
query I rowsort
SELECT ALL + ( + 82 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT + 90 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
296
5770
7213
query I rowsort
SELECT + - 23 * - col1 + + ( col2 + col1 ) FROM tab0 AS cor0
----
2097
2266
2329
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-987
SELECT col1 * - col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-987
SELECT col1 * - col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + + tab2.col2 + col2 FROM tab2
----
114
78
81
query I rowsort
SELECT 88 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT DISTINCT - col2 + - col0 * ( col2 ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT + - col1 + + col2 * ( + cor0.col2 * + 62 ) AS col2 FROM tab1 AS cor0
----
180766
201428
571379
query I rowsort
SELECT ALL - - col2 + - 66 AS col1 FROM tab0 cor0
----
-33
-65
16
query I rowsort
SELECT ALL - col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
2031
3394
8017
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + - CAST ( + ( col1 ) AS REAL ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + 57 * cor0.col1 FROM tab0 AS cor0
----
4926
5276
5564
query I rowsort
SELECT + + col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col0 * col0 - + col1 FROM tab2
----
-6143
-6258
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-998
SELECT - CAST( 18 AS SIGNED ) - - col2 * col2 col1 FROM tab1
----
2898
3231
9198
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-998
SELECT - CAST ( 18 AS INTEGER ) - - col2 * col2 col1 FROM tab1
----
2898
3231
9198
query I rowsort
SELECT + + ( 35 ) * - cor0.col0 - - col0 * + 41 FROM tab0 cor0
----
144
210
534
onlyif mysql # use DIV operator for integer division
query I rowsort label-1000
SELECT - 20 DIV col2 + + col0 * col1 FROM tab0 AS cor0
----
2064
3375
8099
skipif mysql # not compatible
query I rowsort label-1000
SELECT - 20 / col2 + + col0 * col1 FROM tab0 AS cor0
----
2064
3375
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1001
SELECT tab1.col0 DIV col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1001
SELECT tab1.col0 / col1 FROM tab1
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1002
SELECT CAST( NULL AS DECIMAL ) * col1 + tab0.col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1002
SELECT CAST ( NULL AS REAL ) * col1 + tab0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * 95 AS col2 FROM tab0
----
2280
3325
8455
query I rowsort
SELECT + 92 * col1 AS col1 FROM tab2 AS cor0
----
1564
2852
5428
query I rowsort
SELECT ALL - 68 * col0 AS col0 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT + 8 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT + ( col1 ) + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1008
SELECT + + cor0.col0 * col0 + CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1008
SELECT + + cor0.col0 * col0 + CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * col1 * col2 AS col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ( cor0.col0 ) FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT DISTINCT + - col1 DIV - col0 col1 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT + - col1 / - col0 col1 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1012
SELECT + ( col1 ) + CAST( - col2 AS SIGNED ) * col0 FROM tab1 cor0
----
-136
-3638
-7667
skipif mysql # not compatible
query I rowsort label-1012
SELECT + ( col1 ) + CAST ( - col2 AS INTEGER ) * col0 FROM tab1 cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-1013
SELECT + col1 + + col2 DIV - ( col0 ) AS col0 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-1013
SELECT + col1 + + col2 / - ( col0 ) AS col0 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT DISTINCT 24 AS col1 FROM tab0 AS cor0
----
24
query I rowsort
SELECT ALL col0 * + 14 FROM tab0
----
1246
336
490
query I rowsort
SELECT + 1 AS col2 FROM tab2
----
1
1
1
query I rowsort
SELECT + 12 * - col0 FROM tab0
----
-1068
-288
-420
query I rowsort
SELECT DISTINCT + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL 56 * - 75 FROM tab0
----
-4200
-4200
-4200
query I rowsort
SELECT DISTINCT 48 FROM tab1, tab0, tab1 AS cor0, tab2 AS cor1
----
48
query I rowsort
SELECT tab1.col2 * + col0 AS col0 FROM tab1 WHERE NULL <> col1 * col2 + col2 AND NULL IN ( + col1 )
----
query I rowsort
SELECT DISTINCT + - cor0.col2 * col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col0 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT col0 * - col2 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col2 * - col2 * col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT ALL - col0 + - col1 * col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT - - col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - - col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col1 + - col1 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - - col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col2 * col0 - col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT tab0.col2 + + col2 * + tab0.col2 AS col1 FROM tab0
----
1122
2
6806
query I rowsort
SELECT - col2 * tab0.col2 * col1 + - col1 * + col2 FROM tab0
----
-194
-619346
-96492
query I rowsort
SELECT DISTINCT - col0 * - col1 AS col2 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT - + col2 DIV + col2 AS col2 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1036
SELECT - + col2 / + col2 AS col2 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT - col2 + - tab2.col1 FROM tab2
----
-55
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 col2 FROM tab2 cor0
----
76
query I rowsort
SELECT + col2 * + col1 + col2 * - col2 FROM tab1 cor0
----
-1512
-2679
-7968
query I rowsort
SELECT ALL + - ( - col2 ) + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - + col0 + col2 * - col1 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - 80 + - cor0.col0 FROM tab1 AS cor0
----
-144
-160
-83
query I rowsort
SELECT DISTINCT col1 * + col1 + + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT + col2 + - col2 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 + col1 * col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + - col0 * + col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT DISTINCT - 76 * + col0 + + col2 + - cor0.col1 DIV + col0 FROM tab2 AS cor0
----
-509
-5902
-5966
skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT - 76 * + col0 + + col2 + - cor0.col1 / + col0 FROM tab2 AS cor0
----
-509
-5902
-5966
query I rowsort
SELECT ALL + cor0.col0 + + col1 + col2 AS col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT DISTINCT + col2 + + col1 * col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + 0 * + col2 + col2 * col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - ( tab2.col2 + - col0 ) * - col2 FROM tab2
----
-1352
-1558
540
query I rowsort
SELECT DISTINCT - ( + col0 ) + + cor0.col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-118
-147
20
query I rowsort
SELECT DISTINCT + 83 + - col0 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-1045
-407
-7747
query I rowsort
SELECT ALL - col1 * col1 - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT - - 0 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - - col2 * col0 + + col1 * col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
133
14842
3663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + - col0 col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - col1 + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT col1 * col1 * tab0.col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT col2 * col2 + - col0 * + tab2.col2 * + col1 + - col1 FROM tab2
----
-119035
-49607
-5161
query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * col1 * + col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT ALL + col2 * col1 + - col0 * + col2 AS col1 FROM tab2
----
-2356
-494
648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 * + col1 col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL - col0 * col2 + col0 AS col2 FROM tab1
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-1069
SELECT DISTINCT col1 + + col2 DIV - tab2.col0 FROM tab2
----
17
28
59
skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT col1 + + col2 / - tab2.col0 FROM tab2
----
17
28
59
query I rowsort
SELECT DISTINCT - col2 * + col1 * + col0 AS col0 FROM tab1 WHERE NOT NULL < ( col1 )
----
query I rowsort
SELECT ALL + col2 * + col2 AS col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT tab1.col1 * - col0 + tab1.col0 FROM tab1
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT col1 FROM tab0 WHERE NULL <= ( col0 )
----
query I rowsort
SELECT + tab0.col1 + col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab0
----
-2
-62
query I rowsort
SELECT col2 + - tab2.col0 * col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - col2 * col1 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + col0 * col1 FROM tab1 WHERE - col1 + + col2 IN ( - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + col1 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE + col1 = NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE - col2 NOT IN ( + col1 )
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * col1 * tab2.col2 col2 FROM tab2
----
10965
25916
90447
query I rowsort
SELECT + col1 * + col0 * + tab2.col0 + + col2 * col0 FROM tab2 WHERE NULL < + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + tab2.col0 col2 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - col1 * col0 + + col1 * tab0.col0 AS col2 FROM tab0
----
0
query I rowsort
SELECT + tab2.col1 + col0 * + col2 + col0 * - tab2.col0 AS col0 FROM tab2
----
-3222
-3997
171
query I rowsort
SELECT tab1.col2 * - col1 + tab1.col1 + - col2 AS col0 FROM tab1
----
-1331
-1432
-617
onlyif mysql # use DIV operator for integer division
query I rowsort label-1090
SELECT DISTINCT + tab0.col2 + col1 * col2 DIV tab0.col0 + + col1 FROM tab0
----
100
237
256
skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT + tab0.col2 + col1 * col2 / tab0.col0 + + col1 FROM tab0
----
100
237
256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 * tab2.col0 col1 FROM tab2
----
18
6025
6224
query I rowsort
SELECT ALL col1 + tab0.col0 * - col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + + cor0.col1 * col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + cor0.col0 + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + tab2.col2 + - col1 * col2 + col1 * col1 FROM tab2
----
-319
151
1973
query I rowsort
SELECT ALL + col1 + - tab0.col1 + col2 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL col2 + - col0 * - tab0.col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col2 * col0 )
----
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab2
----
1
33
82
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 >= NULL
----
query I rowsort
SELECT DISTINCT tab1.col0 + col2 * - col1 AS col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT col0 * + col2 * + col0 FROM tab2 AS cor0 WHERE NULL = ( col2 * + col0 )
----
query I rowsort
SELECT col2 * - col2 * col0 AS col1 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT col2 - - col0 FROM tab1 WHERE - col0 >= + col2 - + col2
----
query I rowsort
SELECT ALL col0 * - col0 + - col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT col0 * - col1 + + col1 * col2 * - col2 AS col2 FROM tab2
----
-22816
-25891
-44486
query I rowsort
SELECT ALL - col0 * col0 + col0 * col2 FROM tab0 cor0
----
-1190
-623
216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - 23 FROM tab1, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
query I rowsort
SELECT + col0 + - 5 FROM tab1 cor0
----
-2
59
75
query I rowsort
SELECT ( - col2 ) + - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ( - ( - col1 ) ) FROM tab2
----
17
31
59
query I rowsort
SELECT + col0 * ( + col1 ) FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT + 42 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
42
skipif mysql # not compatible
query I rowsort label-1114
SELECT + 42 / col2 AS col2 FROM tab0 AS cor0
----
0
1
42
query I rowsort
SELECT - 15 + - col2 AS col0 FROM tab2 AS cor0
----
-41
-42
-53
query I rowsort
SELECT + - cor0.col1 + + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab0 cor0
----
72
72
72
query I rowsort
SELECT + col1 * col1 + - col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT + ( + col1 ) * + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-1120
SELECT ALL + - col1 + + col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + - col1 + + col1 / - col0 AS col1 FROM tab0 AS cor0
----
-89
-92
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab0.col1 + + col0 ) col2 FROM tab0
----
110
132
180
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT - col2 * + cor0.col0 + - 5 FROM tab2 AS cor0
----
-194
-2033
-3007
query I rowsort
SELECT + tab1.col1 * tab1.col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT cor0.col1 + - cor0.col1 + 29 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT col0 * 31 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT - 2 + col0 AS col1 FROM tab2
----
5
76
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1128
SELECT ALL + col0 + - col0 DIV + 96 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL + col0 + - col0 / + 96 FROM tab2
----
7
78
79
query I rowsort
SELECT + 7 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
onlyif mysql # use DIV operator for integer division
query I rowsort label-1130
SELECT col1 DIV 30 AS col1 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1130
SELECT col1 / 30 AS col1 FROM tab2
----
0
1
1
query I rowsort
SELECT DISTINCT + col1 * + tab0.col0 AS col1 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1132
SELECT DISTINCT col0 DIV tab0.col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT col0 / tab0.col1 AS col1 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1133
SELECT ALL CAST( NULL AS SIGNED ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1134
SELECT + CAST( NULL AS SIGNED ) + col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1134
SELECT + CAST ( NULL AS INTEGER ) + col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 22 * - col0 * - col0 AS col0 FROM tab2 cor0
----
-1078
-133848
-137302
query I rowsort
SELECT DISTINCT - 51 + col1 FROM tab0 AS cor0
----
35
40
46
query I rowsort
SELECT DISTINCT + col2 * col2 * col2 FROM tab1 AS cor0
----
157464
185193
884736
query I rowsort
SELECT + 49 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1139
SELECT ALL col0 * + CAST( 69 AS SIGNED ) - + col2 FROM tab2
----
456
5356
5413
skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL col0 * + CAST ( 69 AS INTEGER ) - + col2 FROM tab2
----
456
5356
5413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( col1 ) * col1 - - col1 * - col1 col0 FROM tab2
----
26
27
38
query I rowsort
SELECT 27 * + cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f8320e8668bc69ab68a929a23d160af9
query I rowsort
SELECT ALL 51 + 77 AS col2 FROM tab1
----
128
128
128
query I rowsort
SELECT 45 + 31 * - col1 + col1 * + col2 FROM tab0
----
-2865
217
4686
query I rowsort
SELECT - col2 - 4 FROM tab1
----
-100
-58
-61
query I rowsort
SELECT DISTINCT ( - col1 * + col1 ) + col2 AS col1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT ALL + ( col0 ) * col0 + + col1 AS col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT 8 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe
query I rowsort
SELECT 60 + + 54 * - col1 AS col0 FROM tab2 AS cor0
----
-1614
-3126
-858
query I rowsort
SELECT ALL - col2 * tab0.col2 * - col2 FROM tab0
----
1
35937
551368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * + col0 col0 FROM tab0
----
1080
1575
4005
query I rowsort
SELECT ALL 42 * tab1.col1 * ( + col1 + + col2 ) FROM tab1
----
28140
59514
87360
query I rowsort
SELECT + + col0 + - col1 * col1 AS col2 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT + + cor0.col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT ALL + col0 * - col2 + col2 - - col1 DIV cor0.col2 FROM tab0 cor0
----
-7215
-757
63
skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + col0 * - col2 + col2 - - col1 / cor0.col2 FROM tab0 cor0
----
-7215
-757
63
query I rowsort
SELECT + + col0 * + 22 FROM tab1 cor0
----
1408
1760
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT ALL + - cor0.col1 DIV 29 - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL + - cor0.col1 / 29 - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col2 * + 37 AS col1 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT DISTINCT + col1 * ( col1 ) + + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT - cor0.col1 + - ( 15 ) FROM tab1 cor0
----
-25
-28
-41
query I rowsort
SELECT DISTINCT - - col1 + 40 FROM tab0 AS cor0
----
126
131
137
onlyif mysql # use DIV operator for integer division
query I rowsort label-1162
SELECT DISTINCT cor0.col1 + cor0.col2 DIV col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT cor0.col1 + cor0.col2 / col1 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT - tab0.col0 * col2 - + ( - 52 ) AS col0 FROM tab0
----
-7246
-740
17
query I rowsort
SELECT DISTINCT col1 * + col2 * - col2 + + col0 AS col1 FROM tab0
----
-611795
-62
-93630
query I rowsort
SELECT ALL 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - col2 + col1 * 61 AS col1 FROM tab2
----
1864
3573
999
query I rowsort
SELECT ( - 60 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
query I rowsort
SELECT col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + + col2 + ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col2 + + 9 FROM tab2 cor0
----
35
36
47
query I rowsort
SELECT ALL + + cor0.col2 + col1 * + 84 AS col0 FROM tab1 cor0
----
1188
2238
897
query I rowsort
SELECT ALL cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + + col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col1 * 13 + + col2 FROM tab1
----
187
265
392
query I rowsort
SELECT ALL 43 * ( - col0 ) + + ( col2 + col2 ) * col1 FROM tab1
----
-1612
-944
2679
query I rowsort
SELECT DISTINCT + 54 + col0 FROM tab2
----
132
133
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-1179
SELECT + col1 * ( col0 ) - 64 DIV + col1 FROM tab1
----
1036
634
76
skipif mysql # not compatible
query I rowsort label-1179
SELECT + col1 * ( col0 ) - 64 / + col1 FROM tab1
----
1036
634
76
query I rowsort
SELECT - tab1.col2 + col2 * col2 + + col1 AS col2 FROM tab1
----
2888
3202
9133
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * col0 - col2 * - 54 col2 FROM tab2 AS cor0
----
-4189
-4680
1409
query I rowsort
SELECT ALL + - cor0.col2 * + 8 FROM tab1 AS cor0
----
-432
-456
-768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1183
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) - - cor0.col2 * col1 FROM tab1 AS cor0
----
1328
1407
634
skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) - - cor0.col2 * col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - + 21 * - 69 AS col1 FROM tab1 AS cor0
----
1449
1449
1449
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col2 FROM tab0 cor0
----
-72
-72
-72
query I rowsort
SELECT tab1.col1 + 14 * - col0 AS col2 FROM tab1
----
-1107
-16
-886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1187
SELECT ALL + col0 * col2 + - CAST( 15 AS SIGNED ) col1 FROM tab1 AS cor0
----
147
3633
7665
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + col0 * col2 + - CAST ( 15 AS INTEGER ) col1 FROM tab1 AS cor0
----
147
3633
7665
query I rowsort
SELECT ALL + col2 * col2 + - ( col1 ) * - col2 FROM tab2 AS cor0
----
1566
2090
2210
query I rowsort
SELECT - col0 * col2 + + col1 * col1 AS col1 FROM tab1 cor0
----
-3548
-7511
514
query I rowsort
SELECT - + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL + - ( cor0.col1 ) + - col2 * col0 - cor0.col2 FROM tab0 AS cor0
----
-133
-7471
-911
query I rowsort
SELECT ALL + + col1 - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + + ( col2 + - col1 * + col0 ) AS col2 FROM tab1 AS cor0
----
-15
3513
5456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + cor0.col2 col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 62 * 21 - - tab1.col2 AS col2 FROM tab1
----
1356
1359
1398
query I rowsort
SELECT ( + col1 ) - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + ( + col2 ) AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT 95 * col1 AS col2 FROM tab1 AS cor0
----
1235
2470
950
onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT DISTINCT + 21 DIV - col2 FROM tab0 AS cor0
----
-21
0
skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT + 21 / - col2 FROM tab0 AS cor0
----
-21
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col1 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - 16 * col2 + - col2 + - col1 FROM tab2 cor0
----
331
374
553
query I rowsort
SELECT cor0.col0 * - col2 * 34 AS col2 FROM tab2 AS cor0
----
-102068
-6426
-68952
query I rowsort
SELECT ALL + 26 * col0 FROM tab2 AS cor0
----
182
2028
2054
onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT + col0 DIV + cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-1205
SELECT + col0 / + cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT + 3 AS col0 FROM tab0 cor0
----
3
3
3
query I rowsort
SELECT ALL - + 61 AS col2 FROM tab1 AS cor0
----
-61
-61
-61
query I rowsort
SELECT + - col1 + + col0 - col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + col0 * - tab1.col0 AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ( + col2 ) * - 95 FROM tab1
----
-5130
-5415
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT 84 DIV col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1211
SELECT 84 / col2 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT + + 10 + col2 FROM tab0 AS cor0
----
11
43
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1213
SELECT - ( col0 ) DIV - col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1213
SELECT - ( col0 ) / - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT col1 * + 51 FROM tab0 AS cor0
----
4386
4641
4947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * cor0.col0 col1 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT DISTINCT + tab0.col2 * ( 57 ) FROM tab0, tab1 AS cor0
----
1881
4674
57
query I rowsort
SELECT - 47 * - col1 FROM tab0
----
4042
4277
4559
onlyif mysql # use DIV operator for integer division
query I rowsort label-1218
SELECT - - col2 + - col2 * 62 DIV col0 AS col0 FROM tab1 AS cor0
----
-1062
2
22
skipif mysql # not compatible
query I rowsort label-1218
SELECT - - col2 + - col2 * 62 / col0 AS col0 FROM tab1 AS cor0
----
-1062
2
22
query I rowsort
SELECT - cor0.col0 * cor0.col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ( tab1.col2 ) * 83 + col2 * col1 + - col1 * col1 * - col1 AS col2 FROM tab1
----
11413
23462
6301
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 * - cor0.col1 col1 FROM tab0 AS cor0
----
-688
-728
-776
onlyif mysql # use DIV operator for integer division
query I rowsort label-1222
SELECT ALL 2 + 88 * + col0 + + ( 21 ) DIV col0 AS col0 FROM tab1 AS cor0
----
273
5634
7042
skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL 2 + 88 * + col0 + + ( 21 ) / col0 AS col0 FROM tab1 AS cor0
----
273
5634
7042
query I rowsort
SELECT - ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 4 + + 92 FROM tab2 AS cor0
----
88
88
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1225
SELECT - CAST( col0 AS SIGNED ) + col0 * col1 AS col0 FROM tab1 AS cor0
----
576
75
960
skipif mysql # not compatible
query I rowsort label-1225
SELECT - CAST ( col0 AS INTEGER ) + col0 * col1 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL ( col0 ) + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 40 AS col1 FROM tab2 AS cor0
----
40
40
40
query I rowsort
SELECT DISTINCT + - 70 * - 60 AS col1 FROM tab0 AS cor0
----
4200
onlyif mysql # use DIV operator for integer division
query I rowsort label-1229
SELECT + + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1229
SELECT + + col1 / col0 AS col1 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1230
SELECT ALL 98 + - ( + col1 * CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1230
SELECT ALL 98 + - ( + col1 * CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1231
SELECT col0 + col1 DIV + ( col0 * 62 + - col1 ) FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1231
SELECT col0 + col1 / + ( col0 * 62 + - col1 ) FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1233
SELECT + col2 DIV - ( col1 ) - col2 FROM tab2
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-1233
SELECT + col2 / - ( col1 ) - col2 FROM tab2
----
-26
-27
-40
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 JOIN tab1 ON ( NULL ) = NULL
----
query I rowsort
SELECT DISTINCT + 3 + - col2 + + col1 FROM tab2
----
-18
36
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 + 66 col2 FROM tab2
----
74
74
74
query I rowsort
SELECT ALL + 78 AS col2 FROM tab0, tab2 AS cor0, tab1, tab0 cor1
----
81 values hashing to f0487ba81d377516702723e098c02ba1
query I rowsort
SELECT DISTINCT + 42 + 61 FROM tab1 AS cor0
----
103
query I rowsort
SELECT ALL - - col1 * col2 * - col0 AS col0 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - 25 + + 13 * col0 + - ( + col0 ) * col0 * - ( - ( - col0 ) * col2 ) FROM tab2
----
12339341
18736484
9327
query I rowsort
SELECT DISTINCT 48 * col1 * + col1 + 23 * 73 * col0 FROM tab1
----
112256
142432
37485
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1242
SELECT ALL - CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL - CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1243
SELECT col0 DIV 56 AS col0 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1243
SELECT col0 / 56 AS col0 FROM tab1
----
0
1
1
query I rowsort
SELECT - + ( - col2 ) * - cor0.col2 + + 48 FROM tab0 AS cor0
----
-1041
-6676
47
query I rowsort
SELECT ALL col1 + + col2 - col1 FROM tab1
----
54
57
96
query I rowsort
SELECT - - col2 + - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 + cor0.col0 col2 FROM tab1 AS cor0
----
-18
-2
-79
skipif mysql # not compatible
query I rowsort
SELECT + ( 36 ) + col0 + CAST ( - col1 AS REAL ) FROM tab2
----
12
55
98
query I rowsort
SELECT tab2.col2 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT cor0.col0 * + 51 + - col0 AS col2 FROM tab0 AS cor0
----
1200
1750
4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-1251
SELECT col0 * col0 + col1 DIV + cor0.col1 col0 FROM tab0 AS cor0
----
1226
577
7922
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1251
SELECT col0 * col0 + col1 / + cor0.col1 col0 FROM tab0 AS cor0
----
1226
577
7922
query I rowsort
SELECT ALL + col1 * - 80 + - col0 AS col1 FROM tab1 AS cor0
----
-1120
-2083
-864
query I rowsort
SELECT - ( col0 ) + col2 * + cor0.col2 AS col0 FROM tab2 cor0
----
1365
598
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-1254
SELECT col1 + - col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-1254
SELECT col1 + - col0 / - col2 AS col0 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT - col2 + col0 * col1 AS col2 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-1256
SELECT + col1 DIV 56 - cor0.col2 col1 FROM tab2 AS cor0
----
-25
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1256
SELECT + col1 / 56 - cor0.col2 col1 FROM tab2 AS cor0
----
-25
-27
-38
query I rowsort
SELECT ALL - 9 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT ALL + col0 + - 54 * ( col0 * - ( - col1 ) ) FROM tab1 cor0
----
-34496
-4209
-56080
query I rowsort
SELECT col0 * col1 * col1 AS col0 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1260
SELECT + col1 * CAST( + ( col1 ) * col0 AS SIGNED ) FROM tab0 AS cor0
----
177504
329315
737009
skipif mysql # not compatible
query I rowsort label-1260
SELECT + col1 * CAST ( + ( col1 ) * col0 AS INTEGER ) FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT ALL + cor0.col0 + + col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT cor0.col1 + col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1263
SELECT ALL - + col2 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL - + col2 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + ( + 43 ) * - col2 FROM tab1 AS cor0
----
-2319
-2387
-4048
onlyif mysql # use DIV operator for integer division
query I rowsort label-1265
SELECT + col0 + 50 DIV 32 FROM tab0 cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-1265
SELECT + col0 + 50 / 32 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT DISTINCT col0 + + 16 FROM tab2 AS cor0
----
23
94
95
query I rowsort
SELECT ALL cor0.col2 * + col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT DISTINCT + + col2 * col1 + cor0.col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-1268
SELECT DISTINCT + + col2 * col1 + cor0.col1 / + col0 AS col2 FROM tab0 AS cor0
----
2841
7463
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + - col1 col2 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-1270
SELECT ALL + + cor0.col0 + - cor0.col2 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL + + cor0.col0 + - cor0.col2 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT cor0.col0 + 2 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT DISTINCT - - 94 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
180
185
191
query I rowsort
SELECT col1 * 91 FROM tab1 AS cor0
----
1183
2366
910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col0 ) col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT 1 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT - ( - col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + 50 + 95 * - col0 AS col2 FROM tab0 AS cor0
----
-2230
-3275
-8405
query I rowsort
SELECT ALL col2 * 43 * col2 AS col0 FROM tab0
----
289132
43
46827
query I rowsort
SELECT ALL 44 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT - - ( col2 ) * 12 * + col0 + cor0.col0 * - col0 + 8 AS col0 FROM tab2 AS cor0
----
18260
2227
29791
onlyif mysql # use DIV operator for integer division
query I rowsort label-1281
SELECT + - col1 + + col0 DIV 56 col1 FROM tab2 AS cor0
----
-16
-31
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1281
SELECT + - col1 + + col0 / 56 col1 FROM tab2 AS cor0
----
-16
-31
-58
query I rowsort
SELECT + ( col2 ) + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - + 62 + col0 * col1 AS col0 FROM tab2 cor0
----
1281
155
4540
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db
query I rowsort
SELECT ALL - 36 + - col1 AS col2 FROM tab0 AS cor0
----
-122
-127
-133
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 99 + - col1 * + ( col2 ) AS col1 FROM tab0
----
-2739
-7363
2
query I rowsort
SELECT - tab0.col0 + + col1 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab1
----
73
query I rowsort
SELECT ALL + ( col0 ) + col0 + + ( 9 ) FROM tab1 AS cor0
----
137
15
169
query I rowsort
SELECT cor0.col2 + + 80 AS col2 FROM tab0 AS cor0
----
113
162
81
query I rowsort
SELECT DISTINCT col1 + + col0 * cor0.col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL ( ( - col0 ) ) * 98 FROM tab2 cor0
----
-686
-7644
-7742
query I rowsort
SELECT - ( - 72 ) FROM tab1 cor0
----
72
72
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1296
SELECT DISTINCT + col0 + tab1.col1 DIV - col0 AS col2 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT + col0 + tab1.col1 / - col0 AS col2 FROM tab1
----
-5
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + col1 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + 87 * 79 - + col2 FROM tab1
----
6777
6816
6819
query I rowsort
SELECT ALL - 7 + 98 * + col1 + + col1 FROM tab2
----
1676
3062
5834
onlyif mysql # use DIV operator for integer division
query I rowsort label-1300
SELECT DISTINCT 43 * - col2 + tab0.col0 DIV col1 FROM tab0
----
-1419
-3526
-43
skipif mysql # not compatible
query I rowsort label-1300
SELECT DISTINCT 43 * - col2 + tab0.col0 / col1 FROM tab0
----
-1419
-3526
-43
query I rowsort
SELECT - col0 * - 19 FROM tab1 AS cor0
----
1216
1520
57
query I rowsort
SELECT ALL - 54 AS col0 FROM tab2 AS cor0
----
-54
-54
-54
query I rowsort
SELECT 58 * + col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT 77 * ( col1 * - ( col0 ) ) + - col0 AS col2 FROM tab0
----
-158952
-261450
-623712
query I rowsort
SELECT - col1 * - 55 FROM tab0
----
4730
5005
5335
query I rowsort
SELECT DISTINCT ( tab2.col1 * + col0 ) FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1308
SELECT col0 DIV 52 - + cor0.col0 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
0
2
35
skipif mysql # not compatible
query I rowsort label-1308
SELECT col0 / 52 - + cor0.col0 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
0
2
35
query I rowsort
SELECT ALL + - col2 - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + col2 - cor0.col1 * col0 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT col1 - - col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT - 16 * col2 + - col1 FROM tab2
----
-463
-475
-625
query I rowsort
SELECT 9 AS col2 FROM tab1
----
9
9
9
query I rowsort
SELECT ALL col2 - + ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col2 + - col0 * - 50 * col1 FROM tab0 AS cor0
----
103233
169751
405032
onlyif mysql # use DIV operator for integer division
query I rowsort label-1316
SELECT cor0.col1 DIV - 34 - col1 FROM tab2 AS cor0
----
-17
-31
-60
skipif mysql # not compatible
query I rowsort label-1316
SELECT cor0.col1 / - 34 - col1 FROM tab2 AS cor0
----
-17
-31
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT DISTINCT - col1 DIV - col1 + - 89 FROM tab1 AS cor0
----
-88
skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT - col1 / - col1 + - 89 FROM tab1 AS cor0
----
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1318
SELECT DISTINCT col1 * + col0 DIV + cor0.col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT col1 * + col0 / + cor0.col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - - col2 * - col0 * col0 + + col2 * ( + 48 * col0 + 95 * + 44 ) AS col2 FROM tab2 AS cor0
----
120609
47840
65778
onlyif mysql # use DIV operator for integer division
query I rowsort label-1320
SELECT DISTINCT col2 + + col0 * col1 DIV + col0 AS col2 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT col2 + + col0 * col1 / + col0 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col2 + 79 AS col0 FROM tab0
----
112
161
80
query I rowsort
SELECT - col0 + col0 * tab2.col0 + - col0 AS col0 FROM tab2
----
35
5928
6083
query I rowsort
SELECT ALL + + col2 * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-1324
SELECT DISTINCT - - col0 DIV col0 + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT - - col0 / col0 + col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT - col2 + 27 AS col2 FROM tab1 AS cor0
----
-27
-30
-69
query I rowsort
SELECT ALL - + cor0.col0 + col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + cor0.col1 + - 5 - col1 FROM tab0 AS cor0
----
-5
-5
-5
query I rowsort
SELECT DISTINCT - + col0 * col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-1329
SELECT DISTINCT + col2 + 32 * col1 DIV col2 FROM tab1 AS cor0
----
100
62
69
skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT + col2 + 32 * col1 / col2 FROM tab1 AS cor0
----
100
62
69
query I rowsort
SELECT ALL col0 + 66 + + 15 FROM tab2
----
159
160
88
query I rowsort
SELECT - col2 * 97 AS col0 FROM tab0
----
-3201
-7954
-97
query I rowsort
SELECT ALL col2 + - ( + 49 ) AS col0 FROM tab0
----
-16
-48
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-1333
SELECT tab1.col0 DIV CAST( 33 AS SIGNED ) FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1333
SELECT tab1.col0 / CAST ( 33 AS INTEGER ) FROM tab1
----
0
1
2
query I rowsort
SELECT DISTINCT + col2 - cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1335
SELECT DISTINCT - col0 + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2
62
skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT - col0 + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL + + col0 * cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT 16 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT + + cor0.col0 - - col1 * col1 AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - + col0 * - col1 + - col0 * 83 FROM tab0 AS cor0
----
490
712
72
query I rowsort
SELECT - cor0.col1 - + col2 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1341
SELECT 79 * + col2 + col0 DIV + 33 FROM tab1 AS cor0
----
4266
4504
7586
skipif mysql # not compatible
query I rowsort label-1341
SELECT 79 * + col2 + col0 / + 33 FROM tab1 AS cor0
----
4266
4504
7586
query I rowsort
SELECT DISTINCT + 36 FROM tab0 cor0
----
36
query I rowsort
SELECT - + col1 * ( - col2 ) - 53 FROM tab1 AS cor0
----
1195
1351
517
query I rowsort
SELECT ALL + - col2 - 49 AS col1 FROM tab1 AS cor0
----
-103
-106
-145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1345
SELECT DISTINCT + + CAST( ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT + + CAST ( ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1346
SELECT ALL - - cor0.col0 * - col0 * - col1 + - col0 DIV 13 AS col1 FROM tab1 AS cor0
----
234
40956
83194
skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL - - cor0.col0 * - col0 * - col1 + - col0 / 13 AS col1 FROM tab1 AS cor0
----
234
40956
83194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 - cor0.col1 col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT + col0 + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT cor0.col2 + col0 * + col2 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 51 * cor0.col0 + col2 col1 FROM tab1 AS cor0
----
-3207
-3984
-99
query I rowsort
SELECT - 43 * - 55 * col2 AS col1 FROM tab0 AS cor0
----
193930
2365
78045
query I rowsort
SELECT ALL - - 30 AS col2 FROM tab2 cor0
----
30
30
30
query I rowsort
SELECT cor0.col1 * col2 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT - - col1 + - col2 * - col2 * - col1 FROM tab2 cor0
----
-22568
-24531
-39825
query I rowsort
SELECT ALL + 87 + - col0 FROM tab0 AS cor0
----
-2
52
63
query I rowsort
SELECT DISTINCT cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + cor0.col0 * - 72 FROM tab1, tab1 cor0
----
9 values hashing to a7850e5ba276288fbd70c3d21a222b10
query I rowsort
SELECT + - cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ( col1 ) + + col1 + col1 FROM tab2 cor0
----
177
51
93
query I rowsort
SELECT + + 37 + + col0 AS col1 FROM tab2 AS cor0
----
115
116
44
query I rowsort
SELECT ALL - cor0.col0 + - col1 * 37 AS col1 FROM tab2 AS cor0
----
-1154
-2261
-708
query I rowsort
SELECT ALL 61 + col0 * col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
106158
1580
359017
query I rowsort
SELECT DISTINCT - - ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT + col2 * + 52 AS col2 FROM tab2 AS cor0
----
1352
1404
1976
query I rowsort
SELECT - 5 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1369
SELECT ALL + + 80 / col0 + + CAST( NULL AS SIGNED ) * 92 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL + + 80 / col0 + + CAST ( NULL AS INTEGER ) * 92 + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col2 ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + 92 AS col1 FROM tab0 cor0
----
92
92
92
query I rowsort
SELECT - 27 AS col0 FROM tab2 AS cor0
----
-27
-27
-27
query I rowsort
SELECT DISTINCT - ( - col0 ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT - 17 FROM tab2, tab0 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT ALL + col1 * - 1 AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT 39 AS col0 FROM tab2
----
39
query I rowsort
SELECT - - col0 - + col0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * col0 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ( + col1 ) + col2 * - ( col1 + - col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - + 75 * 55 FROM tab2 AS cor0
----
-4125
-4125
-4125
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1381
SELECT + CAST( NULL AS SIGNED ) + - col2 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1381
SELECT + CAST ( NULL AS INTEGER ) + - col2 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 73 + - 89 AS col0 FROM tab1
----
-16
-16
-16
query I rowsort
SELECT tab1.col0 * + tab1.col0 - col1 FROM tab1
----
-17
4086
6387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * - col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + 10 AS col1 FROM tab2 AS cor0
----
10
10
10
query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + + 8 AS col0 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT + cor1.col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1389
SELECT ALL - CAST( - col0 AS SIGNED ) * col2 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL - CAST ( - col0 AS INTEGER ) * col2 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - tab0.col2 col2 FROM tab0
----
53
9
96
query I rowsort
SELECT + col1 * 85 * + col2 FROM tab1 cor0
----
106080
119340
48450
query I rowsort
SELECT - - ( cor0.col2 ) + + col0 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + col2 * cor0.col1 col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - + col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1395
SELECT + col2 + - 19 * - cor0.col1 DIV col1 AS col0 FROM tab2 AS cor0
----
45
46
57
skipif mysql # not compatible
query I rowsort label-1395
SELECT + col2 + - 19 * - cor0.col1 / col1 AS col0 FROM tab2 AS cor0
----
45
46
57
query I rowsort
SELECT - 74 + + ( col1 ) * col1 FROM tab1 AS cor0
----
26
602
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1397
SELECT - col1 DIV col0 col2 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1397
SELECT - col1 / col0 col2 FROM tab1 AS cor0
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1398
SELECT ALL cor0.col0 DIV 56 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL cor0.col0 / 56 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
17
query I rowsort
SELECT - + col0 + col2 * + cor0.col2 FROM tab0 AS cor0
----
-34
1065
6635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col2 col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * col2 + + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT col0 * - col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT col1 * col2 * ( + col1 ) FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col2 + cor0.col1 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT ALL + - col1 DIV + col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL + - col1 / + col2 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1408
SELECT ALL + col1 DIV col0 + col0 * col0 + ( 24 ) AS col1 FROM tab0
----
1251
603
7946
skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + col1 / col0 + col0 * col0 + ( 24 ) AS col1 FROM tab0
----
1251
603
7946
query I rowsort
SELECT 11 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT ALL + cor0.col1 + + cor0.col2 * + col2 * - cor0.col1 FROM tab1 AS cor0
----
-119795
-32480
-75790
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + col0 * + 10 AS col1 FROM tab0 AS cor0
----
-240
-350
-890
query I rowsort
SELECT ALL + - 79 * cor0.col1 FROM tab2 cor0
----
-1343
-2449
-4661
query I rowsort
SELECT DISTINCT col0 * 53 AS col0 FROM tab1
----
159
3392
4240
query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + + 23 + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
112
47
58
query I rowsort
SELECT + col2 * + col1 * col1 AS col2 FROM tab0 cor0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1418
SELECT - CAST( NULL AS SIGNED ) + 73 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1418
SELECT - CAST ( NULL AS INTEGER ) + 73 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - col0 + + 76 + + col0 * col2 AS col1 FROM tab2
----
2026
258
2999
query I rowsort
SELECT ALL col2 * col1 + - col2 + + col0 AS col2 FROM tab0
----
131
2829
7469
query I rowsort
SELECT col2 * + col1 - col0 FROM tab1 AS cor0
----
1168
1401
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * col0 col2 FROM tab2
----
119
1326
1343
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 + col1 col1 FROM tab2
----
34
48
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1425
SELECT - + 39 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1425
SELECT - + 39 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + ( col0 ) * - col0 + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-1260
-1368
-15219
onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT DISTINCT + + ( + col0 ) DIV col1 col2 FROM tab1 cor0
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT + + ( + col0 ) / col1 col2 FROM tab1 cor0
----
0
6
query I rowsort
SELECT DISTINCT + 1 * - col2 + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - 18 + cor0.col1 FROM tab0 AS cor0
----
68
73
79
query I rowsort
SELECT ALL - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 58 - - col1 AS col2 FROM tab2 cor0
----
-27
-41
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1432
SELECT ALL + - 2 DIV col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL + - 2 / col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - col1 + + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + col2 * cor0.col2 - col0 AS col0 FROM tab2 AS cor0
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( - col1 ) + + col0 * - col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT + col1 * col1 + - col0 + col2 AS col0 FROM tab2 AS cor0
----
248
3429
981
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col2 FROM tab2, tab1 AS cor0
----
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT + - 92 DIV 50 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1440
SELECT + - 92 / 50 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1441
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1441
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * col2 + + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab2, tab0 AS cor0
----
-41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1444
SELECT ALL CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL + col0 * + 52 AS col0 FROM tab2 AS cor0
----
364
4056
4108
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 42ae2eaa7bed53d316a0590d597db470
query I rowsort
SELECT ALL 40 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT ALL + col0 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - 87 FROM tab0, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab2
----
25
query I rowsort
SELECT - col1 * + col0 - + col1 * col0 AS col1 FROM tab2
----
-2686
-434
-9204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 12 ) col0 FROM tab2
----
-12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col0 FROM tab2
----
-35
query I rowsort
SELECT ( col1 * col1 + col2 ) FROM tab2
----
327
3507
988
query I rowsort
SELECT DISTINCT - 83 * - col0 AS col2 FROM tab0
----
1992
2905
7387
onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT ALL col1 DIV ( - col1 ) AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL col1 / ( - col1 ) AS col0 FROM tab1
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1458
SELECT CAST( NULL AS SIGNED ) + 52 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1458
SELECT CAST ( NULL AS INTEGER ) + 52 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) FROM tab0
----
86
91
97
query I rowsort
SELECT col1 * - col0 + col1 FROM tab0
----
-1978
-3298
-8008
query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT NULL < NULL
----
query III rowsort
SELECT * FROM tab2 WHERE tab2.col0 BETWEEN NULL AND col0 + + col2 * + col1 - col0
----
query I rowsort
SELECT DISTINCT - col2 + col1 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT + col1 * + col1 * + col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT + col1 + - col1 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col0 * col1 - - tab2.col1 * tab2.col0 FROM tab2
----
2686
434
9204
query I rowsort
SELECT col2 + + col0 * + tab1.col2 * col0 + + col1 * col2 AS col2 FROM tab1
----
1944
234099
615744
query I rowsort
SELECT col2 * - tab1.col1 + - col0 * col1 + col1 FROM tab1
----
-1200
-1456
-2275
query I rowsort
SELECT + col2 * col2 + col0 * col0 * col0 AS col2 FROM tab1 AS cor0
----
265393
2943
521216
query I rowsort
SELECT DISTINCT - col2 * col0 + col1 * + tab2.col0 AS col2 FROM tab2
----
-1659
2574
28
query I rowsort
SELECT tab1.col1 * tab1.col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - col0 * col1 * + col2 AS col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT - tab2.col1 * + col2 AS col0 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col0 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT DISTINCT + - col2 DIV col1 - col0 FROM tab2 AS cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT + - col2 / col1 - col0 FROM tab2 AS cor0
----
-7
-78
-81
query I rowsort
SELECT ALL + tab0.col1 AS col2 FROM tab1 cor0 CROSS JOIN tab0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - - col2 * col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL 81 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT + + col0 * - 84 AS col2 FROM tab1 AS cor0
----
-252
-5376
-6720
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) FROM tab2
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1481
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1481
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT ALL - + cor0.col1 DIV cor0.col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - + cor0.col1 / cor0.col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT DISTINCT col1 * col1 * col0 + + col1 + - 66 AS col2 FROM tab1 AS cor0
----
13467
1988
6344
query I rowsort
SELECT - 24 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to f54f9f80142dee595bb0207d1431a5f6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * col0 col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT col0 * + ( col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT col0 * ( + col0 * - col2 ) FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1488
SELECT - 8 + - 83 * + col2 * CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-242036
-269675
-764936
skipif mysql # not compatible
query I rowsort label-1488
SELECT - 8 + - 83 * + col2 * CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-242036
-269675
-764936
query I rowsort
SELECT ALL - 73 * col1 FROM tab1 cor0
----
-1898
-730
-949
query I rowsort
SELECT col0 + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1491
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * 44 * col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1491
SELECT DISTINCT - + CAST ( NULL AS REAL ) * 44 * col1 AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT ALL - - col1 DIV 74 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL - - col1 / 74 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - ( - col2 ) * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - ( ( col1 ) ) * + 54 + - col0 AS col2 FROM tab1 AS cor0
----
-1407
-604
-782
query I rowsort
SELECT + col0 + 90 AS col1 FROM tab2 AS cor0
----
168
169
97
query I rowsort
SELECT ALL col1 - - 47 AS col2 FROM tab2 AS cor0
----
106
64
78
query I rowsort
SELECT DISTINCT + col1 * ( col0 * 19 ) FROM tab2 AS cor0
----
25517
4123
87438
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1498
SELECT ALL - CAST( + col0 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - CAST ( + col0 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - col0 * - 68 FROM tab1 AS cor0
----
204
4352
5440
query I rowsort
SELECT cor0.col0 * + 53 AS col2 FROM tab2 AS cor0
----
371
4134
4187
onlyif mysql # use DIV operator for integer division
query I rowsort label-1501
SELECT DISTINCT + CAST( - 7 AS SIGNED ) DIV - col0 FROM tab1 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT + CAST ( - 7 AS INTEGER ) / - col0 FROM tab1 cor0
----
0
2
query I rowsort
SELECT ALL - tab0.col0 * + 97 FROM tab0
----
-2328
-3395
-8633
query I rowsort
SELECT col2 - - ( ( + col2 ) + - col0 ) AS col2 FROM tab1
----
105
112
50
query I rowsort
SELECT - 64 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-47
-5
query I rowsort
SELECT - 72 * col1 * 74 FROM tab2 cor0
----
-165168
-314352
-90576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1506
SELECT ALL ( ( col1 ) + - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL ( ( col1 ) + - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1507
SELECT DISTINCT - + col1 DIV + col1 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT - + col1 / + col1 FROM tab0 cor0
----
-1
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - 47 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT ALL - - col2 + + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1513
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1513
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + col0 col1 FROM tab1 AS cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1516
SELECT ALL col1 * CAST( NULL AS SIGNED ) + + col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + + col2 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * - col1 + col0 * col0 FROM tab1
----
-1395
3526
5152
query I rowsort
SELECT - 71 * - tab0.col2 AS col1 FROM tab0
----
2343
5822
71
query I rowsort
SELECT ALL + col0 * 57 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT ALL col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - col0 * ( cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col0 + + tab2.col0 * ( col2 ) FROM tab2
----
182
1950
2923
query I rowsort
SELECT ALL - 89 * col0 + - 79 FROM tab0
----
-2215
-3194
-8000
query I rowsort
SELECT ALL + col0 + tab0.col2 AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT col0 * tab1.col1 + + col1 + + col1 FROM tab1
----
1066
130
660
query I rowsort
SELECT DISTINCT - col1 + + col0 * - 20 AS col0 FROM tab1
----
-1290
-1613
-86
query I rowsort
SELECT ALL col1 + + col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL 12 + col2 FROM tab2
----
38
39
50
query I rowsort
SELECT ALL col0 + + col2 * 73 AS col2 FROM tab0
----
108
2433
6075
query I rowsort
SELECT col2 + 46 AS col1 FROM tab0 AS cor0
----
128
47
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1532
SELECT ALL - col0 + CAST( NULL AS SIGNED ) * ( cor0.col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * ( cor0.col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + + 88 * 36 FROM tab0 AS cor0
----
3086
3135
3167
query I rowsort
SELECT DISTINCT - col2 * ( + col0 * col1 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 45 * col2 col2 FROM tab1 AS cor0
----
2433
2629
4400
query I rowsort
SELECT col2 * - 49 AS col0 FROM tab1 AS cor0
----
-2646
-2793
-4704
query I rowsort
SELECT ALL + cor0.col0 * col2 * cor0.col0 + - col2 + col1 AS col1 FROM tab0 AS cor0
----
1321
19061
649531
query I rowsort
SELECT DISTINCT col1 + 27 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
1139
2585
820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT ( - tab1.col0 ) - - col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ( col0 ) * + col0 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1542
SELECT + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1542
SELECT + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * col1 * cor0.col0 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1544
SELECT - + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1544
SELECT - + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab0 AS cor0
----
81
query I rowsort
SELECT ALL + 98 * col0 FROM tab0 AS cor0
----
2352
3430
8722
query I rowsort
SELECT - col2 - - cor0.col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - 37 AS col0 FROM tab0 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT + col2 * - col0 + - col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT - + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + ( + col1 ) * + col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 7 FROM tab2, tab0 cor0
----
7
query I rowsort
SELECT col2 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - - 37 FROM tab2 AS cor0
----
37
37
37
query I rowsort
SELECT col0 * - col1 * col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT col2 * - col0 + + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL + - col0 * cor0.col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col1 - + col2 * col2 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - - col0 * + 70 AS col1 FROM tab0 AS cor0
----
1680
2450
6230
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - - 87 * - col2 + cor0.col0 + - 36 AS col1 FROM tab1 AS cor0
----
-4731
-4931
-8308
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - cor0.col1 ) * col1 + col1 col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL + + 98 * cor0.col1 - + col0 AS col1 FROM tab0 cor0
----
8404
8829
9471
query I rowsort
SELECT DISTINCT - col2 + + col1 - - col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col1 * col0 - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-1569
SELECT + 94 + cor0.col1 DIV + cor0.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
skipif mysql # not compatible
query I rowsort label-1569
SELECT + 94 + cor0.col1 / + cor0.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT + 26 * col1 AS col1 FROM tab2
----
1534
442
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1571
SELECT ALL - - col2 + + cor0.col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL - - col2 + + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + col0 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT + 9 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
query I rowsort
SELECT + - 79 AS col1 FROM tab2 AS cor0
----
-79
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1576
SELECT DISTINCT cor0.col2 DIV col2 FROM tab1 cor0
----
1
skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT cor0.col2 / col2 FROM tab1 cor0
----
1
query I rowsort
SELECT + - col1 * - col0 * - 99 FROM tab1 AS cor0
----
-102960
-63360
-7722
onlyif mysql # use DIV operator for integer division
query I rowsort label-1578
SELECT - col0 + col1 DIV col0 col0 FROM tab1 AS cor0
----
-64
-80
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1578
SELECT - col0 + col1 / col0 col0 FROM tab1 AS cor0
----
-64
-80
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1579
SELECT col1 * CAST( col1 * + col0 AS SIGNED ) AS col1 FROM tab0
----
177504
329315
737009
skipif mysql # not compatible
query I rowsort label-1579
SELECT col1 * CAST ( col1 * + col0 AS INTEGER ) AS col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT - col2 * + tab1.col0 + + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - col0 * 6 FROM tab2
----
-42
-468
-474
query I rowsort
SELECT + col2 * col2 + tab0.col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT ALL + + col1 * col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col0 * - 43 FROM tab1 AS cor0
----
-129
-2752
-3440
onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT ALL + + col0 DIV ( + 63 * - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL + + col0 / ( + 63 * - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 19 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT - col2 + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - - col2 * - 28 AS col2 FROM tab2 cor0
----
-1064
-728
-756
query I rowsort
SELECT cor0.col1 * + 69 AS col2 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT + + col2 * - col2 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-2787
-5278
-946
query I rowsort
SELECT ALL + 75 + + col2 AS col2 FROM tab1 AS cor0
----
129
132
171
query I rowsort
SELECT ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab2 AS cor0
----
89
query I rowsort
SELECT ALL + 78 * - ( - col1 ) AS col1 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT ALL col1 + 83 AS col1 FROM tab1 AS cor0
----
109
93
96
query I rowsort
SELECT - + 7 * - col0 * col1 AS col2 FROM tab2 cor0
----
1519
32214
9401
query I rowsort
SELECT ALL + col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1599
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT col1 + + col2 * ( col2 ) * col2 FROM tab0
----
36023
551459
98
query I rowsort
SELECT + - col2 + 32 AS col2 FROM tab1 AS cor0
----
-22
-25
-64
query I rowsort
SELECT cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT 26 + + 40 FROM tab2 AS cor0
----
66
66
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1604
SELECT col0 + - ( col0 ) DIV col0 AS col1 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-1604
SELECT col0 + - ( col0 ) / col0 AS col1 FROM tab2
----
6
77
78
query I rowsort
SELECT DISTINCT 10 + - 5 AS col2 FROM tab1, tab2 cor0, tab0, tab2 cor1
----
5
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - - 16 + + 60 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT ALL 27 * col1 FROM tab2
----
1593
459
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT col0 DIV - col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1610
SELECT col0 / - col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT + col2 + col1 * + 59 AS col1 FROM tab0 AS cor0
----
5107
5451
5724
query I rowsort
SELECT 96 AS col0 FROM tab0 cor0
----
96
96
96
query I rowsort
SELECT ( + 61 ) FROM tab1
----
61
61
61
query I rowsort
SELECT ( 71 ) AS col2 FROM tab1
----
71
71
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1615
SELECT + CAST( col0 AS SIGNED ) * + col1 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-1615
SELECT + CAST ( col0 AS INTEGER ) * + col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - col0 + 72 AS col0 FROM tab2 AS cor0
----
-6
-7
65
query I rowsort
SELECT - - cor0.col0 + + col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + 6 + + tab1.col0 AS col0 FROM tab1
----
70
86
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 92 + col1 col1 FROM tab1 AS cor0
----
-1183
-2366
-910
query I rowsort
SELECT col0 * col0 - 72 AS col0 FROM tab2 AS cor0
----
-23
6012
6169
query I rowsort
SELECT ALL 51 * col2 + + col0 AS col0 FROM tab0
----
1707
4271
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1623
SELECT ALL col1 * col0 + + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL col1 * col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 59 + - col0 FROM tab2
----
-19
-20
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT ALL col0 DIV + col1 + - col2 * 83 AS col0 FROM tab1
----
-4482
-4725
-7962
skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL col0 / + col1 + - col2 * 83 AS col0 FROM tab1
----
-4482
-4725
-7962
query I rowsort
SELECT ALL - col2 + col0 * col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT col0 + + col1 * 56 FROM tab2
----
1031
1743
3382
query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab2, tab0 AS cor0
----
-33
query I rowsort
SELECT DISTINCT + col1 * col2 - 36 AS col0 FROM tab2 AS cor0
----
1498
610
801
onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT + col1 DIV ( col0 ) FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1630
SELECT + col1 / ( col0 ) FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1631
SELECT col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1631
SELECT col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query I rowsort
SELECT ALL col2 + 91 * - col0 AS col0 FROM tab0 AS cor0
----
-2151
-3184
-8017
query I rowsort
SELECT ALL - col2 * - col1 + tab1.col0 FROM tab1
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL tab2.col2 + col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL - ( col2 ) * - 24 AS col2 FROM tab2
----
624
648
912
query I rowsort
SELECT - col2 * + 92 AS col2 FROM tab1 AS cor0
----
-4968
-5244
-8832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + 89 * + 91 col0 FROM tab2 AS cor0
----
8040
8068
8082
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1642
SELECT col1 + CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-1642
SELECT col1 + CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + col1 * + col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + col2 * + col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL + col0 * - 1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1646
SELECT tab1.col0 DIV col1 + col1 AS col2 FROM tab1
----
16
19
26
skipif mysql # not compatible
query I rowsort label-1646
SELECT tab1.col0 / col1 + col1 AS col2 FROM tab1
----
16
19
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1647
SELECT DISTINCT + col1 DIV + col0 col1 FROM tab2
----
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT + col1 / + col0 col1 FROM tab2
----
0
4
query I rowsort
SELECT col2 + col0 + tab0.col2 * - col1 AS col1 FROM tab0
----
-2781
-61
-7291
onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT + col0 DIV - col0 - col0 * + col1 FROM tab2
----
-1344
-218
-4603
skipif mysql # not compatible
query I rowsort label-1649
SELECT + col0 / - col0 - col0 * + col1 FROM tab2
----
-1344
-218
-4603
query I rowsort
SELECT ALL + col2 * + col1 + - col1 + tab0.col2 FROM tab0
----
1
2785
7453
query I rowsort
SELECT col2 * - tab1.col2 + + col2 FROM tab1
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-1652
SELECT - col2 DIV col0 col0 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1652
SELECT - col2 / col0 col0 FROM tab1
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1653
SELECT DISTINCT col1 DIV col0 AS col0 FROM tab2
----
0
4
skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT col1 / col0 AS col0 FROM tab2
----
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-1654
SELECT ALL + col1 DIV col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + col1 / col1 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1655
SELECT ALL col1 * col0 DIV col2 AS col1 FROM tab0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL col1 * col0 / col2 AS col1 FROM tab0
----
3395
62
98
query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab0 WHERE NOT - col0 - col2 NOT IN ( col2 * col2 )
----
query I rowsort
SELECT DISTINCT col1 + - tab0.col1 + + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col0 * col1 + col2 AS col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT - tab0.col1 * col2 * + col1 AS col2 FROM tab0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT + col0 DIV col2 - col0 * + col0 FROM tab0
----
-1190
-576
-7920
skipif mysql # not compatible
query I rowsort label-1660
SELECT + col0 / col2 - col0 * + col0 FROM tab0
----
-1190
-576
-7920
onlyif mysql # use DIV operator for integer division
query I rowsort label-1661
SELECT DISTINCT tab0.col1 + - col2 * - col2 + col1 DIV - col2 FROM tab0
----
1
1173
6814
skipif mysql # not compatible
query I rowsort label-1661
SELECT DISTINCT tab0.col1 + - col2 * - col2 + col1 / - col2 FROM tab0
----
1
1173
6814
query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT ALL + col0 + - col0 + col1 * + col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT tab2.col2 * col2 * col1 + col0 * + col1 FROM tab2
----
22816
25891
44486
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col2 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT + cor0.col1 * cor0.col2 + + 66 AS col1 FROM tab1 AS cor0
----
1314
1470
636
query I rowsort
SELECT ALL + 72 + - col0 FROM tab1 cor0
----
-8
69
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1668
SELECT DISTINCT col2 + tab2.col2 DIV - col1 FROM tab2
----
26
27
36
skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT col2 + tab2.col2 / - col1 FROM tab2
----
26
27
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1669
SELECT - col0 * + col0 + - CAST( col0 * cor0.col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-10686
-266
-7584
skipif mysql # not compatible
query I rowsort label-1669
SELECT - col0 * + col0 + - CAST ( col0 * cor0.col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-10686
-266
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-1670
SELECT 29 DIV 16 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-1670
SELECT 29 / 16 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT + + 22 * col2 FROM tab1 AS cor0
----
1188
1254
2112
query I rowsort
SELECT col2 * col2 - col0 * col2 AS col0 FROM tab0
----
-34
-574
297
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 > NULL
----
query I rowsort
SELECT - col1 + tab1.col1 FROM tab1 WHERE NULL BETWEEN + col2 / col1 AND NULL
----
query I rowsort
SELECT col0 + tab0.col0 * col1 * + tab0.col1 FROM tab0
----
177528
329350
737098
query I rowsort
SELECT - col1 + - col1 * + col2 * + col0 AS col2 FROM tab1
----
-36490
-4238
-99853
query I rowsort
SELECT + col2 * - col2 + - col1 FROM tab1
----
-2942
-3259
-9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1678
SELECT - cor0.col1 + cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1678
SELECT - cor0.col1 + cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 39 FROM tab0 AS cor0
----
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 67 + + col2 col1 FROM tab0 AS cor0
----
-34
-66
15
query I rowsort
SELECT ALL cor0.col1 + col1 + ( col1 ) * cor0.col0 * 3 AS col0 FROM tab2 AS cor0
----
13924
4063
713
query I rowsort
SELECT - 14 + col0 AS col0 FROM tab0 cor0
----
10
21
75
query I rowsort
SELECT DISTINCT - - col0 + + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT - col0 * col2 + ( col0 * col0 ) AS col0 FROM tab0 AS cor0
----
-216
1190
623
query I rowsort
SELECT + + col2 * - col0 + 72 - 27 * cor0.col0 FROM tab1 AS cor0
----
-171
-5304
-9768
query I rowsort
SELECT ALL + - col1 * - cor0.col0 + + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT 11 * col1 * 41 + 12 - col1 FROM tab0 cor0
----
38712
40962
43662
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 85 + col2 + + 1 col1 FROM tab1 AS cor0
----
140
143
182
query I rowsort
SELECT DISTINCT + 49 * - col0 + ( col2 ) + col2 FROM tab0 AS cor0
----
-1110
-1713
-4197
query I rowsort
SELECT - 62 - + col1 AS col0 FROM tab0
----
-148
-153
-159
query I rowsort
SELECT DISTINCT - ( - 61 ) * - col0 + + col1 - - tab1.col2 * col2 FROM tab1
----
-645
2759
4349
query I rowsort
SELECT ( - 92 ) * - col0 - + col2 AS col2 FROM tab2
----
617
7150
7230
query I rowsort
SELECT ALL + 8 * + col2 + 81 FROM tab0 AS cor0
----
345
737
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + col2 * col1 col2 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT ALL - 11 AS col0 FROM tab1 cor0
----
-11
-11
-11
query I rowsort
SELECT ALL + 54 + + col1 FROM tab2 AS cor0
----
113
71
85
query I rowsort
SELECT + - col0 * - col1 + + col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-1699
SELECT + col2 DIV + col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1699
SELECT + col2 / + col1 AS col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1700
SELECT DISTINCT col1 DIV + col1 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT col1 / + col1 FROM tab2 cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1701
SELECT - CAST( NULL AS SIGNED ) * - 46 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1701
SELECT - CAST ( NULL AS INTEGER ) * - 46 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 33 * col1 * + col0 - - 75 AS col0 FROM tab0 AS cor0
----
112110
267342
68187
query I rowsort
SELECT DISTINCT + 72 - 5 FROM tab1, tab2 cor0
----
67
query I rowsort
SELECT - col0 + ( + col1 + col0 ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + ( 82 ) AS col0 FROM tab1
----
82
82
82
query I rowsort
SELECT + tab1.col2 + + 5 AS col2 FROM tab1
----
101
59
62
query I rowsort
SELECT - col1 * - tab0.col2 + col1 AS col0 FROM tab0
----
194
2924
7553
query I rowsort
SELECT 85 + - 86 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT col2 + col1 * + col2 * - col2 AS col1 FROM tab0
----
-611802
-93621
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1710
SELECT col1 / 46 + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1710
SELECT col1 / 46 + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 - - 90 * col1 col1 FROM tab0
----
7827
8277
8817
query I rowsort
SELECT ALL + col0 - + ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 + col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL 68 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT + col2 + - ( - col0 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - - col0 + col2 * + cor0.col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + 64 * + col2 AS col1 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT - + col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - + col2 * + cor0.col0 + + col0 + col1 AS col1 FROM tab2 AS cor0
----
-151
-1891
-2906
query I rowsort
SELECT - cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - col2 * ( - 8 ) + col0 FROM tab2 AS cor0
----
223
286
383
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1722
SELECT + col2 * + col2 + ( col2 ) + CAST( NULL AS DECIMAL ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1722
SELECT + col2 * + col2 + ( col2 ) + CAST ( NULL AS REAL ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 4 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
query I rowsort
SELECT DISTINCT 69 + 52 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
121
query I rowsort
SELECT ALL - tab1.col1 * col1 + 50 AS col2 FROM tab1
----
-119
-50
-626
query I rowsort
SELECT - 40 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT ALL - + col2 * - cor0.col0 * col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL cor0.col2 + + 34 + col0 AS col0 FROM tab2 AS cor0
----
138
151
68
query I rowsort
SELECT DISTINCT + col1 + 2 FROM tab1 AS cor0
----
12
15
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT + col1 DIV col0 + ( col2 ) FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-1730
SELECT + col1 / col0 + ( col2 ) FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT ALL + tab2.col0 * ( col0 ) AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT ( - col2 * col2 ) + 86 FROM tab0
----
-1003
-6638
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1733
SELECT 39 + 67 DIV col2 + col2 AS col0 FROM tab0
----
107
121
74
skipif mysql # not compatible
query I rowsort label-1733
SELECT 39 + 67 / col2 + col2 AS col0 FROM tab0
----
107
121
74
query I rowsort
SELECT ALL + - cor0.col2 * ( - col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + - 63 - col0 AS col1 FROM tab0 AS cor0
----
-152
-87
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col2 FROM tab1
----
0
query I rowsort
SELECT DISTINCT ( + col1 ) + col2 AS col0 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT + ( tab0.col0 ) DIV col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1738
SELECT + ( tab0.col0 ) / col0 FROM tab0
----
1
1
1
query I rowsort
SELECT - col2 * 91 AS col1 FROM tab2
----
-2366
-2457
-3458
query I rowsort
SELECT ALL - 9 * + col1 AS col2 FROM tab1 AS cor0
----
-117
-234
-90
query I rowsort
SELECT ALL + + col2 + col2 * - ( + col2 ) FROM tab0 AS cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT - 50 DIV + col0 + + col0 AS col0 FROM tab2
----
0
78
79
skipif mysql # not compatible
query I rowsort label-1742
SELECT - 50 / + col0 + + col0 AS col0 FROM tab2
----
0
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * + col1 col2 FROM tab1
----
182
70
91
query I rowsort
SELECT - - 31 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1746
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1746
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + col1 * - col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1748
SELECT + cor0.col1 + - cor0.col2 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1748
SELECT + cor0.col1 + - cor0.col2 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col1 + ( - col1 ) + + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-2633
-59
1642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab2, tab0 AS cor0
----
7
query I rowsort
SELECT + col2 + 2 AS col0 FROM tab2 cor0
----
28
29
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-1753
SELECT col1 * ( - 38 ) + + cor0.col1 DIV - col2 FROM tab1 AS cor0
----
-380
-494
-988
skipif mysql # not compatible
query I rowsort label-1753
SELECT col1 * ( - 38 ) + + cor0.col1 / - col2 FROM tab1 AS cor0
----
-380
-494
-988
query I rowsort
SELECT ( col1 ) * col2 + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT 68 * col0 FROM tab2 cor0
----
476
5304
5372
onlyif mysql # use DIV operator for integer division
query I rowsort label-1756
SELECT col0 + - 15 DIV - col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1756
SELECT col0 + - 15 / - col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 34 + col2 * - cor0.col0 * 42 FROM tab2 AS cor0
----
-126118
-7972
-85210
query I rowsort
SELECT - - col2 * - col1 - 83 AS col1 FROM tab2 AS cor0
----
-1617
-729
-920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col2 * - col1 col0 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * cor0.col1 + - col2 col0 FROM tab0 cor0
----
-7429
-8363
-9410
query I rowsort
SELECT ALL - 16 * tab1.col0 FROM tab1
----
-1024
-1280
-48
query I rowsort
SELECT ALL tab2.col0 * - col0 AS col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1764
SELECT CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1764
SELECT CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT + col1 * + col0 + tab2.col2 AS col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL col2 + 19 AS col1 FROM tab1
----
115
73
76
query I rowsort
SELECT DISTINCT + 41 * col2 + - col0 + + col1 FROM tab2
----
1047
1131
1496
query I rowsort
SELECT + ( 52 ) + col1 AS col0 FROM tab2 AS cor0
----
111
69
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1769
SELECT ALL - CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL - CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1770
SELECT DISTINCT - 95 DIV 99 col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT - 95 / 99 col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL 93 AS col1 FROM tab0 AS cor0
----
93
93
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1772
SELECT ALL + col0 - CAST( col0 + col1 AS SIGNED ) FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL + col0 - CAST ( col0 + col1 AS INTEGER ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + ( - tab0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT ALL + 41 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT col0 * col0 + col0 DIV col0 + 60 AS col2 FROM tab2
----
110
6145
6302
skipif mysql # not compatible
query I rowsort label-1775
SELECT col0 * col0 + col0 / col0 + 60 AS col2 FROM tab2
----
110
6145
6302
query I rowsort
SELECT ALL col0 + + col1 * - col1 + col2 * col2 FROM tab1
----
2243
3213
9127
query I rowsort
SELECT + col2 + 10 AS col1 FROM tab2
----
36
37
48
query I rowsort
SELECT DISTINCT col0 * + 9 + + col0 * tab1.col2 * - col2 AS col1 FROM tab1
----
-207360
-736560
-8721
query I rowsort
SELECT - col1 * + cor0.col0 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1780
SELECT - 17 - - col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-16
-17
-17
skipif mysql # not compatible
query I rowsort label-1780
SELECT - 17 - - col0 / col2 AS col1 FROM tab1 AS cor0
----
-16
-17
-17
query I rowsort
SELECT ALL + - col2 * + 72 FROM tab1 AS cor0
----
-3888
-4104
-6912
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab2, tab2 cor2
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2
query I rowsort
SELECT ALL - 96 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT + + col0 + col2 * 54 FROM tab0 AS cor0
----
1806
4517
89
query I rowsort
SELECT ALL - 71 AS col2 FROM tab1
----
-71
-71
-71
query I rowsort
SELECT DISTINCT + ( 67 ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
67
query I rowsort
SELECT ALL col0 * + 94 - col2 AS col0 FROM tab0
----
2223
3289
8284
query I rowsort
SELECT col1 + - 61 * + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-39030
-4732
-63427
query I rowsort
SELECT DISTINCT + cor0.col1 + - ( col1 ) - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + + cor0.col0 * + 82 AS col1 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT col2 * col1 * col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1792
SELECT ALL col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + col0 + 91 * cor0.col0 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT DISTINCT col1 * - 49 FROM tab2
----
-1519
-2891
-833
query I rowsort
SELECT ALL + + col0 * 63 * 10 AS col1 FROM tab0 AS cor0
----
15120
22050
56070
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-1797
SELECT col1 DIV 49 AS col2 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1797
SELECT col1 / 49 AS col2 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - + 22 * cor0.col2 + col0 * col2 FROM tab2 AS cor0
----
-405
1456
2166
query I rowsort
SELECT + col1 * + 28 + col2 AS col2 FROM tab2 AS cor0
----
1678
514
895
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1801
SELECT ALL + CAST( NULL AS SIGNED ) + col1 / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 / + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( col1 ) - - col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - - col0 + - 77 * + cor0.col1 FROM tab2 AS cor0
----
-1230
-2380
-4465
query I rowsort
SELECT ALL + + 84 - + col2 AS col2 FROM tab2 AS cor0
----
46
57
58
query I rowsort
SELECT col2 * - ( - col0 ) + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + col2 * cor0.col1 * col0 + 7 * + 71 AS col2 FROM tab0 AS cor0
----
3892
664615
68609
query I rowsort
SELECT col0 * ( - col2 ) - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + 53 col0 FROM tab2
----
1650
3205
980
query I rowsort
SELECT DISTINCT 57 FROM tab1, tab1 cor0
----
57
query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab0 AS cor0
----
42
query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab2 AS cor0
----
41
query I rowsort
SELECT DISTINCT - - col0 + + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-1813
SELECT DISTINCT + col2 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT + col2 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1814
SELECT + ( col1 ) + col0 DIV - col2 col2 FROM tab1 AS cor0
----
13
26
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1814
SELECT + ( col1 ) + col0 / - col2 col2 FROM tab1 AS cor0
----
13
26
9
query I rowsort
SELECT 44 + col2 * col2 FROM tab1 AS cor0
----
2960
3293
9260
query I rowsort
SELECT ALL 51 + col0 FROM tab1 AS cor0
----
115
131
54
query I rowsort
SELECT - - col2 * - col2 + - 38 * col0 AS col1 FROM tab2 AS cor0
----
-3640
-4446
-995
query I rowsort
SELECT + - ( col2 ) * + ( col2 ) + - col0 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 79 * col1 + col1 col0 FROM tab2 cor0
----
1360
2480
4720
query I rowsort
SELECT ALL - col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1821
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1821
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col0 * 99 AS col2 FROM tab1 AS cor0
----
297
6336
7920
query I rowsort
SELECT + + cor0.col2 * col1 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - cor0.col0 + ( - col1 ) FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT ALL + - ( + col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col0 * col1 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT DISTINCT + col0 + + 39 AS col1 FROM tab1 AS cor0
----
103
119
42
query I rowsort
SELECT + 66 * + 87 FROM tab1 AS cor0
----
5742
5742
5742
query I rowsort
SELECT ALL - col1 * + col0 * col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1832
SELECT - + cor0.col2 DIV 7 FROM tab0 cor0
----
-11
-4
0
skipif mysql # not compatible
query I rowsort label-1832
SELECT - + cor0.col2 / 7 FROM tab0 cor0
----
-11
-4
0
query I rowsort
SELECT ALL - 86 * + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-13932
-313728
-660480
query I rowsort
SELECT - 3 * + 64 + + col1 AS col0 FROM tab1 AS cor0
----
-166
-179
-182
query I rowsort
SELECT ( - col1 ) + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + ( - col1 ) - + cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + col2 + tab2.col1 - + col2 * - col0 FROM tab2
----
2113
247
3057
query I rowsort
SELECT + col0 + + ( col0 * + col1 ) AS col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL col1 + ( col2 * col0 ) + - 92 * 99 * col0 AS col0 FROM tab1
----
-27136
-579254
-720947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT - CAST( col0 AS SIGNED ) * col2 + cor0.col1 - - ( - col0 ) * - col0 col2 FROM tab1 AS cor0
----
-1267
-127
458
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1840
SELECT - CAST ( col0 AS INTEGER ) * col2 + cor0.col1 - - ( - col0 ) * - col0 col2 FROM tab1 AS cor0
----
-1267
-127
458
query I rowsort
SELECT + 28 AS col1 FROM tab1 AS cor0
----
28
28
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-1842
SELECT ( + col0 ) DIV col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1842
SELECT ( + col0 ) / col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - + col2 * 76 + - col1 * ( col0 + col1 ) * + col0 FROM tab1 AS cor0
----
-104016
-51692
-6366
onlyif mysql # use DIV operator for integer division
query I rowsort label-1844
SELECT 99 DIV - col0 + - col0 AS col1 FROM tab1 cor0
----
-36
-65
-81
skipif mysql # not compatible
query I rowsort label-1844
SELECT 99 / - col0 + - col0 AS col1 FROM tab1 cor0
----
-36
-65
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT col2 * col1 + col1 DIV + 5 FROM tab0 AS cor0
----
116
2855
7480
skipif mysql # not compatible
query I rowsort label-1845
SELECT col2 * col1 + col1 / + 5 FROM tab0 AS cor0
----
116
2855
7480
query I rowsort
SELECT + col0 - - 81 AS col0 FROM tab0 AS cor0
----
105
116
170
query I rowsort
SELECT DISTINCT + - col2 * + ( - col0 ) + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
15360
324
7296
query I rowsort
SELECT 21 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT 78 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT - col1 * - ( tab1.col2 * col0 ) AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col2 + + col2 + col1 FROM tab2
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT ALL - col0 DIV ( col0 ) + col0 AS col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL - col0 / ( col0 ) + col0 AS col0 FROM tab2
----
6
77
78
query I rowsort
SELECT DISTINCT + + col0 + cor0.col2 * col2 * + col1 FROM tab1 AS cor0
----
119888
32554
75819
query I rowsort
SELECT DISTINCT + col1 + col1 + - col2 AS col0 FROM tab0 AS cor0
----
100
139
193
skipif mysql # not compatible
query I rowsort
SELECT col2 - + CAST ( col2 AS REAL ) * - col1 AS col1 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT ALL - + col1 - 88 FROM tab2 AS cor0
----
-105
-119
-147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1857
SELECT DISTINCT col0 + - CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT col0 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - tab1.col1 * + ( - col2 ) + col2 AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT DISTINCT - col2 + + 75 FROM tab0 cor0
----
-7
42
74
query I rowsort
SELECT 85 + 82 FROM tab0
----
167
167
167
onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT DISTINCT + col0 DIV 43 - tab2.col2 * + col1 AS col2 FROM tab2
----
-1533
-645
-837
skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT + col0 / 43 - tab2.col2 * + col1 AS col2 FROM tab2
----
-1533
-645
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT 45 * col1 DIV - col2 FROM tab0
----
-117
-4365
-49
skipif mysql # not compatible
query I rowsort label-1862
SELECT 45 * col1 / - col2 FROM tab0
----
-117
-4365
-49
query I rowsort
SELECT ( + col0 ) * + col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + - 86 - ( + col0 ) FROM tab0 AS cor0
----
-110
-121
-175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * - tab1.col0 col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT 20 * 27 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e9a986abfadcb1ed6ed19e7685ddff9d
query I rowsort
SELECT DISTINCT + col2 + col1 * col2 * ( col2 ) AS col1 FROM tab1 AS cor0
----
119904
32547
75870
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - + cor0.col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT 69 + cor0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7c5f0aa11919a09bb8a7b509c8c43b9f
query I rowsort
SELECT ALL + - col0 + - col2 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT - col2 * - col0 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL + 44 * col2 AS col0 FROM tab2 cor0
----
1144
1188
1672
query I rowsort
SELECT 60 * + col0 FROM tab2
----
420
4680
4740
query I rowsort
SELECT DISTINCT - tab0.col2 + - col1 - col2 FROM tab0
----
-152
-255
-99
query I rowsort
SELECT ALL + cor0.col2 * col1 * + col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL col1 + col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - cor0.col0 + + col1 * - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT col1 - - col1 FROM tab2
----
118
34
62
query I rowsort
SELECT - 12 * - col0 - + 31 AS col0 FROM tab1
----
5
737
929
query I rowsort
SELECT DISTINCT 45 - - col0 FROM tab0
----
134
69
80
query I rowsort
SELECT DISTINCT - tab0.col0 * - tab0.col2 - + col1 * + ( col2 + + ( - col0 ) ) AS col1 FROM tab0
----
18
3333
7935
query I rowsort
SELECT tab1.col0 * col0 * - col2 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT col1 * - tab0.col1 AS col2 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1886
SELECT DISTINCT + CAST( 5 AS SIGNED ) FROM tab0 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT + CAST ( 5 AS INTEGER ) FROM tab0 AS cor0
----
5
query I rowsort
SELECT - col1 * + 88 FROM tab0 AS cor0
----
-7568
-8008
-8536
onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT ALL - 37 DIV + col1 + col0 + - ( col1 ) FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL - 37 / + col1 + col0 + - ( col1 ) FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT DISTINCT - cor0.col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1889
SELECT DISTINCT - cor0.col2 / + col0 AS col0 FROM tab0 AS cor0
----
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1890
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + ( col0 ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + ( col0 ) AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1891
SELECT ALL + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab0 AS cor0
----
-10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1893
SELECT + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1893
SELECT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL 97 + 15 FROM tab0 AS cor0
----
112
112
112
query I rowsort
SELECT ALL + 44 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT - - col0 + 75 AS col0 FROM tab1 AS cor0
----
139
155
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1897
SELECT - - ( ( + col1 ) ) * CAST( ( col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-1897
SELECT - - ( ( + col1 ) ) * CAST ( ( col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT col2 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + 88 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1313
664
8009
query I rowsort
SELECT DISTINCT col2 * ( + tab1.col0 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL + 55 FROM tab2, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1902
SELECT DISTINCT - 10 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT - 10 / - col0 AS col1 FROM tab1 AS cor0
----
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col1 ) col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL + 49 FROM tab2
----
49
49
49
query I rowsort
SELECT tab0.col1 * + 25 + col1 FROM tab0
----
2236
2366
2522
query I rowsort
SELECT ALL 97 * col1 AS col0 FROM tab0 AS cor0
----
8342
8827
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1907
SELECT DISTINCT - col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - col1 / + col1 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + + col2 + col1 * 45 FROM tab2 AS cor0
----
1422
2681
803
query I rowsort
SELECT ALL - - col1 + col1 * 30 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT ALL - 5 + col2 AS col0 FROM tab0 AS cor0
----
-4
28
77
query I rowsort
SELECT ALL col2 - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 * cor0.col2 col2 FROM tab0 AS cor0
----
-198
-492
-6
query I rowsort
SELECT 84 AS col1 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT ALL 19 - + col2 AS col0 FROM tab0 cor0
----
-14
-63
18
query I rowsort
SELECT DISTINCT + + col2 + - col0 * + col2 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 * - 98 col2 FROM tab0 AS cor0
----
3430
715204
77616
query I rowsort
SELECT ALL + col2 * col0 + 99 AS col2 FROM tab1 AS cor0
----
261
3747
7779
query I rowsort
SELECT DISTINCT + 12 - + col0 FROM tab0 AS cor0
----
-12
-23
-77
query I rowsort
SELECT ALL 8 + + col1 AS col1 FROM tab1 AS cor0
----
18
21
34
query I rowsort
SELECT DISTINCT - col1 * col0 - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL col2 + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-1922
SELECT - col1 + 81 * + 29 - col2 DIV + col1 col0 FROM tab1 AS cor0
----
2321
2329
2334
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1922
SELECT - col1 + 81 * + 29 - col2 / + col1 col0 FROM tab1 AS cor0
----
2321
2329
2334
query I rowsort
SELECT - col1 + + 57 + col0 FROM tab2 cor0
----
119
33
76
query I rowsort
SELECT col0 + + col0 - - col1 * - col0 AS col2 FROM tab1
----
-512
-72
-880
query I rowsort
SELECT DISTINCT col0 + + col0 * col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT - 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT - col1 * - ( + col1 ) * col1 + col1 AS col1 FROM tab2
----
205438
29822
4930
query I rowsort
SELECT DISTINCT - - col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + col0 + + col2 * col1 + - col2 AS col0 FROM tab0 AS cor0
----
131
2829
7469
query I rowsort
SELECT - col1 * col1 + + ( col2 ) + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-234
-3396
-903
onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT ALL - + col0 DIV + ( + col0 ) + col0 col0 FROM tab2 AS cor0
----
6
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - + col0 / + ( + col0 ) + col0 col0 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT - col0 + 95 FROM tab0 AS cor0
----
6
60
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 47 * col2 col0 FROM tab2 AS cor0
----
-1144
-1262
-1707
query I rowsort
SELECT col1 + - col2 + 53 FROM tab1 AS cor0
----
-30
25
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1935
SELECT col1 * CAST( 28 AS SIGNED ) + - col2 + col2 FROM tab2 cor0
----
1652
476
868
skipif mysql # not compatible
query I rowsort label-1935
SELECT col1 * CAST ( 28 AS INTEGER ) + - col2 + col2 FROM tab2 cor0
----
1652
476
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col1 col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - - col2 * + 9 AS col2 FROM tab0 AS cor0
----
297
738
9
query I rowsort
SELECT ALL + col0 + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1939
SELECT ALL CAST( 67 AS SIGNED ) + col0 FROM tab1 AS cor0
----
131
147
70
skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL CAST ( 67 AS INTEGER ) + col0 FROM tab1 AS cor0
----
131
147
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1940
SELECT ALL CAST( NULL AS SIGNED ) * + 83 - col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1940
SELECT ALL CAST ( NULL AS INTEGER ) * + 83 - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 43 + ( + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1577
689
880
query I rowsort
SELECT + 31 FROM tab0 cor0
----
31
31
31
query I rowsort
SELECT + + col2 + - col1 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1944
SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col2 * + tab2.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col2 * + tab2.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col0 * - ( col1 ) + col1 - + ( ( + col2 ) + + col2 ) * 45 FROM tab1
----
-4912
-5760
-9667
onlyif mysql # use DIV operator for integer division
query I rowsort label-1946
SELECT DISTINCT col1 DIV 71 + 72 + col1 DIV + ( tab0.col1 ) col1 FROM tab0
----
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT col1 / 71 + 72 + col1 / + ( tab0.col1 ) col1 FROM tab0
----
74
query I rowsort
SELECT ALL + 97 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f
onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT + col0 DIV - 25 col1 FROM tab0
----
-1
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1949
SELECT + col0 / - 25 col1 FROM tab0
----
-1
-3
0
query I rowsort
SELECT ALL col1 + ( + col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT + col2 * 61 AS col0 FROM tab1
----
3294
3477
5856
query I rowsort
SELECT ALL - + cor0.col1 * 10 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-15340
-6460
-8370
query I rowsort
SELECT col1 * + ( + col2 ) FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 - col2 col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT 79 + + 47 FROM tab0 AS cor0
----
126
126
126
query I rowsort
SELECT - col2 + - cor0.col0 * col1 AS col1 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT + 62 * 7 FROM tab1 AS cor0
----
434
434
434
query I rowsort
SELECT ( + 79 ) * - col0 AS col1 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT + col0 * + col1 - col0 * - ( + 41 ) FROM tab1 AS cor0
----
201
3264
4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-1960
SELECT + tab0.col2 DIV - CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1960
SELECT + tab0.col2 / - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1961
SELECT DISTINCT col0 + + col1 DIV col0 + col0 AS col0 FROM tab0
----
179
51
72
skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT col0 + + col1 / col0 + col0 AS col0 FROM tab0
----
179
51
72
query I rowsort
SELECT - col1 + cor0.col2 AS col1 FROM tab1 cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1963
SELECT CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1963
SELECT CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * col1 - - col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT DISTINCT + - 35 DIV - cor0.col0 FROM tab2 AS cor0
----
0
5
skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT + - 35 / - cor0.col0 FROM tab2 AS cor0
----
0
5
query I rowsort
SELECT - cor0.col0 * col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col0 * - col0 * + 25 AS col1 FROM tab0 AS cor0
----
14400
198025
30625
query I rowsort
SELECT DISTINCT - ( - col0 ) * + 2 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - - cor0.col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + 99 AS col0 FROM tab1
----
99
99
99
query I rowsort
SELECT + + col2 * - col1 + + 30 * + col1 AS col2 FROM tab1 AS cor0
----
-270
-624
-858
onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT 7 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1972
SELECT 7 / col0 AS col2 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT - 12 * - col2 * 26 + col2 FROM tab1 AS cor0
----
16902
17841
30048
query I rowsort
SELECT DISTINCT + + 11 * cor0.col2 FROM tab0 AS cor0
----
11
363
902
query I rowsort
SELECT col1 * ( + col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col2 * col0 + + 6 AS col1 FROM tab1 AS cor0
----
168
3654
7686
query I rowsort
SELECT cor0.col1 * col2 * col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + col2 * 49 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT ALL col2 + ( 77 ) * + col2 AS col1 FROM tab2 cor0
----
2028
2106
2964
query I rowsort
SELECT ALL 99 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to c841a8d826151b422ecdb71db0250739
query I rowsort
SELECT ALL 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT - - 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT DISTINCT + + col2 * 81 + - col2 FROM tab2 cor0
----
2080
2160
3040
query I rowsort
SELECT DISTINCT + 30 * - col1 * - col2 AS col0 FROM tab1 AS cor0
----
17100
37440
42120
query I rowsort
SELECT + + col1 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - 67 * + col1 AS col0 FROM tab0 AS cor0
----
-5762
-6097
-6499
query I rowsort
SELECT DISTINCT col2 * - 69 AS col2 FROM tab2
----
-1794
-1863
-2622
query I rowsort
SELECT 76 - + tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 8724334d44e281dced04158cdeecfa33
query I rowsort
SELECT DISTINCT + col1 * col2 * + ( 68 + col1 ) FROM tab0
----
1186458
16005
437052
query I rowsort
SELECT ALL + col2 * - col1 * + col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL 24 * - col1 + col1 FROM tab0
----
-1978
-2093
-2231
query I rowsort
SELECT DISTINCT col0 * + col2 + col2 * col1 * col2 AS col0 FROM tab2 WHERE col0 <= NULL
----
query I rowsort
SELECT ALL + col2 * + col0 + - col1 AS col0 FROM tab1
----
136
3638
7667
query I rowsort
SELECT tab1.col2 * - tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col1 * + tab1.col2 * - col2 + - tab1.col1 * col2 AS col0 FROM tab1
----
-121056
-33060
-77220
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT + tab2.col0 DIV col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1997
SELECT + tab2.col0 / col0 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE NOT ( NULL ) IN ( - col1 )
----
query I rowsort
SELECT + col1 + + tab1.col1 * col2 + + col0 AS col2 FROM tab1
----
1341
1433
644
query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 * - col1 FROM tab1
----
-1140
-2496
-2808
query I rowsort
SELECT - tab2.col0 + + col1 FROM tab2
----
-19
-62
24
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT BETWEEN + col2 * col0 AND NULL
----
query I rowsort
SELECT DISTINCT col2 + tab1.col0 FROM tab1
----
121
176
57
query I rowsort
SELECT tab0.col1 * + col2 FROM tab0
----
2838
7462
97
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * - col2 <= NULL
----
query I rowsort
SELECT col2 * - col1 + - col0 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT + col0 * col2 * col0 FROM tab1 WHERE col1 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT - + col0 + col1 + + cor0.col2 * cor0.col0 AS col0 FROM tab0 cor0
----
7300
854
97
query I rowsort
SELECT ALL 38 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT ALL + col1 - col2 * - ( cor0.col1 + - cor0.col2 ) FROM tab0 AS cor0
----
1835
193
829
query I rowsort
SELECT ALL - + col2 - + col2 FROM tab0 AS cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + - col1 * + 68 col0 FROM tab1 AS cor0
----
-1822
-737
-980
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col0 + - col1 * - col2 - tab2.col2 FROM tab2
----
1586
687
817
query I rowsort
SELECT + + 57 FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT DISTINCT + + 3 - + col1 FROM tab0 AS cor0
----
-83
-88
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2018
SELECT DISTINCT - 79 - - col2 * - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT - 79 - - col2 * - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 * + col0 + + col2 * - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----
query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
query I rowsort
SELECT ALL tab2.col1 + - col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * - col0 + col1 AS col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT col2 * col0 + - col2 * col2 + + col1 AS col1 FROM tab1
----
-1523
-2728
409
query I rowsort
SELECT cor0.col0 AS col0 FROM tab0 cor0 WHERE NOT ( + col0 ) > + col0
----
24
35
89
query I rowsort
SELECT - col2 * col0 + col0 + col2 AS col2 FROM tab1 AS cor0
----
-105
-3527
-7504
query I rowsort
SELECT DISTINCT + col2 * col1 + - col2 FROM tab2
----
1508
608
810
query I rowsort
SELECT ALL tab0.col1 * + col0 + col2 AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT col1 + col2 - col0 FROM tab1
----
29
3
77
query I rowsort
SELECT col2 + col0 * col0 AS col1 FROM tab0
----
1226
609
8003
query I rowsort
SELECT ALL col1 * col0 * + col1 AS col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT - col0 * + tab1.col2 + + col2 * + col1 + col2 AS col0 FROM tab1
----
-3021
-6336
1296
onlyif mysql # use DIV operator for integer division
query I rowsort label-2032
SELECT tab2.col0 DIV + col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2032
SELECT tab2.col0 / + col0 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT + col1 + + tab1.col1 NOT BETWEEN ( NULL ) AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + col0 + + col1 NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT 56 * + 68 + - col0 FROM tab2 AS cor0
----
3729
3730
3801
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT ALL - - col2 * 31 AS col2 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT ALL 30 * col0 AS col1 FROM tab2 AS cor0
----
210
2340
2370
query I rowsort
SELECT 41 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT - 29 + col0 AS col2 FROM tab2
----
-22
49
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT + - col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-2041
SELECT + - col1 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT ALL - - cor0.col2 * - 52 FROM tab2 AS cor0
----
-1352
-1404
-1976
query I rowsort
SELECT + col2 * + tab1.col2 AS col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + 29 * - 8 AS col0 FROM tab0
----
-232
query I rowsort
SELECT - 14 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2046
SELECT CAST( - 64 AS SIGNED ) * col1 AS col2 FROM tab2
----
-1088
-1984
-3776
skipif mysql # not compatible
query I rowsort label-2046
SELECT CAST ( - 64 AS INTEGER ) * col1 AS col2 FROM tab2
----
-1088
-1984
-3776
query I rowsort
SELECT 93 * + tab0.col0 FROM tab0
----
2232
3255
8277
query I rowsort
SELECT ALL col2 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + + col2 + 75 FROM tab1 AS cor0
----
129
132
171
query I rowsort
SELECT ALL + - col1 + - col0 * - cor0.col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL + col0 * 70 AS col0 FROM tab2 AS cor0
----
490
5460
5530
query I rowsort
SELECT - 30 - + col0 FROM tab2
----
-108
-109
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col1 * + col0 col0 FROM tab2 AS cor0
----
-1659
2574
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( col1 ) + - col0 * 59 col1 FROM tab2
----
-389
-4621
-4723
query I rowsort
SELECT DISTINCT tab0.col2 + - ( col2 ) * + col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab2, tab2 AS cor0
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2057
SELECT col0 DIV - 61 col0 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2057
SELECT col0 / - 61 col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT + + col0 - col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col0 + col2 * + ( - col0 ) FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL - col1 * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col1 + col1 * + col0 col1 FROM tab1 cor0
----
-598
540
871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + - col0 col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT DISTINCT - col2 DIV - CAST( + 80 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
3
64
81
skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT - col2 / - CAST ( + 80 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
3
64
81
query I rowsort
SELECT - col2 - + col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2065
SELECT tab0.col1 + col0 DIV col0 AS col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2065
SELECT tab0.col1 + col0 / col0 AS col1 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL - 71 AS col2 FROM tab2
----
-71
-71
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT - 42 DIV - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0c0b138578d24c14d41ceab68dfc9437
skipif mysql # not compatible
query I rowsort label-2067
SELECT - 42 / - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0c0b138578d24c14d41ceab68dfc9437
query I rowsort
SELECT DISTINCT + 72 FROM tab2
----
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-2069
SELECT + 82 DIV cor0.col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-2069
SELECT + 82 / cor0.col1 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT DISTINCT 62 + tab2.col1 FROM tab2, tab2 AS cor0
----
121
79
93
query I rowsort
SELECT + 20 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT DISTINCT + 51 FROM tab0
----
51
query I rowsort
SELECT - + 6 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ALL col0 + col1 * 37 AS col0 FROM tab1 AS cor0
----
434
561
965
query I rowsort
SELECT - - cor0.col1 FROM tab0, tab1 cor0, tab2, tab0 cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT - ( - 2 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col1 + - ( - ( col2 ) ) col2 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - + 52 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-52
query I rowsort
SELECT + col0 + col2 * - col2 AS col0 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT ALL - cor0.col1 + - 7 AS col0 FROM tab0 cor0
----
-104
-93
-98
query I rowsort
SELECT + col0 + + 48 * - 67 FROM tab2 AS cor0
----
-3137
-3138
-3209
query I rowsort
SELECT DISTINCT col2 * + ( - col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col2 + col0 * ( col2 ) AS col2 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2084
SELECT ALL + col1 + CAST( NULL AS SIGNED ) * + 28 * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) * + 28 * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + + 70 FROM tab0 AS cor0
----
-12
37
69
query I rowsort
SELECT DISTINCT - + col1 + + cor0.col2 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * col1 + + col1 col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL cor0.col2 + ( - col1 ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL col1 + 85 FROM tab0 cor0
----
171
176
182
query I rowsort
SELECT - + col0 * 50 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT + col2 * + 48 AS col0 FROM tab0
----
1584
3936
48
query I rowsort
SELECT DISTINCT col0 * + 34 FROM tab2
----
238
2652
2686
query I rowsort
SELECT + 52 + - col0 FROM tab1 cor0
----
-12
-28
49
query I rowsort
SELECT + col1 * col0 + + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + 0 FROM tab2, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + - cor0.col0 * col2 * - col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT + + col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col0 + col1 * - col0 * - col1 FROM tab0 AS cor0
----
177528
329350
737098
query I rowsort
SELECT + + col0 * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - cor0.col2 * 57 + col0 FROM tab0 AS cor0
----
-1857
-22
-4585
onlyif mysql # use DIV operator for integer division
query I rowsort label-2102
SELECT ALL + + cor0.col0 DIV cor0.col2 - col2 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
3430
664119
68112
skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL + + cor0.col0 / cor0.col2 - col2 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
3430
664119
68112
query I rowsort
SELECT ALL - col1 * col2 - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT - col0 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2104
SELECT - col0 / cor0.col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 12 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * col2 col0 FROM tab0
----
1394
17
561
query I rowsort
SELECT - - 39 * 67 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 13f6fb260cf3a73aba5c98936f90bbdc
query I rowsort
SELECT - col1 * ( col2 + col2 * - col0 ) AS col0 FROM tab1
----
2808
35910
98592
query I rowsort
SELECT ALL + ( col0 ) + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col2 + 31 FROM tab2
----
57
58
69
query I rowsort
SELECT DISTINCT col2 * - 56 AS col2 FROM tab2
----
-1456
-1512
-2128
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col2 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2114
SELECT DISTINCT + col2 DIV + tab0.col1 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT + col2 / + tab0.col1 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2116
SELECT + col2 * - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2116
SELECT + col2 * - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 94 + - col0 FROM tab1
----
14
30
91
query I rowsort
SELECT + col0 * col2 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT DISTINCT 91 FROM tab2, tab0 cor0
----
91
query I rowsort
SELECT ALL + 20 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT DISTINCT 49 + col1 AS col0 FROM tab0
----
135
140
146
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + cor0.col0 col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT DISTINCT - col1 * col2 DIV col1 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT - col1 * col2 / col1 FROM tab2
----
-26
-27
-38
query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + tab0.col1 * col0 + col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL + col2 * ( - col1 ) + + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( - col1 * col2 ) col1 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL - col2 * + ( - col1 ) + + col1 * + 95 FROM tab1 AS cor0
----
1520
2483
3874
onlyif mysql # use DIV operator for integer division
query I rowsort label-2130
SELECT DISTINCT - - col2 DIV - 84 + + 77 DIV cor0.col1 - + 32 FROM tab1 AS cor0
----
-25
-28
-30
skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT - - col2 / - 84 + + 77 / cor0.col1 - + 32 FROM tab1 AS cor0
----
-25
-28
-30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2131
SELECT ALL col1 * CAST( col0 AS SIGNED ) + col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL col1 * CAST ( col0 AS INTEGER ) + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + + col2 + 28 AS col0 FROM tab0 AS cor0
----
110
29
61
query I rowsort
SELECT DISTINCT col1 * ( col0 ) * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-2135
SELECT ALL - ( 12 ) * col1 - - col2 DIV + tab0.col1 AS col0 FROM tab0
----
-1032
-1092
-1164
skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL - ( 12 ) * col1 - - col2 / + tab0.col1 AS col0 FROM tab0
----
-1032
-1092
-1164
query I rowsort
SELECT - + col1 * cor0.col0 + col1 FROM tab2 cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-2137
SELECT - ( - 85 ) - - col1 DIV + 3 FROM tab2 AS cor0
----
104
90
95
skipif mysql # not compatible
query I rowsort label-2137
SELECT - ( - 85 ) - - col1 / + 3 FROM tab2 AS cor0
----
104
90
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2138
SELECT DISTINCT + col0 / col1 - + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2138
SELECT DISTINCT + col0 / col1 - + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2140
SELECT - CAST( col0 AS SIGNED ) * + col0 AS col1 FROM tab2
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-2140
SELECT - CAST ( col0 AS INTEGER ) * + col0 AS col1 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * + col0 * + col1 + ( 56 ) * + col1 col1 FROM tab0
----
110383
31648
49567
query I rowsort
SELECT ALL 28 - + ( + tab0.col2 ) * + tab0.col2 FROM tab0
----
-1061
-6696
27
query I rowsort
SELECT col1 + - col0 * col2 * 80 FROM tab2 AS cor0
----
-15089
-162181
-240143
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 - - col1 * + col0 FROM tab0 cor0
----
16198
4128
6790
query I rowsort
SELECT + 67 * + col1 * col2 + + col0 * col2 FROM tab0 AS cor0
----
190938
507252
6534
query I rowsort
SELECT ALL - cor0.col2 + - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + + cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col2 * col0 - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT cor0.col1 - + col2 AS col0 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2150
SELECT - col1 DIV col0 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-170
-3648
-7680
skipif mysql # not compatible
query I rowsort label-2150
SELECT - col1 / col0 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-170
-3648
-7680
query I rowsort
SELECT - - 85 AS col1 FROM tab1 cor0
----
85
85
85
query I rowsort
SELECT ALL + cor0.col2 * col1 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
-4550
-5595
788
query I rowsort
SELECT ALL - + 85 + - col0 AS col1 FROM tab1 AS cor0
----
-149
-165
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-2154
SELECT - + col1 DIV col1 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-2154
SELECT - + col1 / col1 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT ALL + 16 AS col1 FROM tab1
----
16
16
16
query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab2 AS cor0
----
30
query I rowsort
SELECT - cor0.col0 - - 22 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8f723a64fee6be0fb6a8806efeaf52be
query I rowsort
SELECT DISTINCT 89 * col2 + + 16 * - col1 FROM tab0
----
-1463
1561
5842
query I rowsort
SELECT - 78 - - col0 AS col0 FROM tab2 AS cor0
----
-71
0
1
query I rowsort
SELECT - ( cor0.col0 ) + + ( - ( - col2 ) ) * - col0 + + 72 FROM tab1 AS cor0
----
-3640
-7688
-93
query I rowsort
SELECT ALL - - 17 * - col1 * - cor0.col0 FROM tab2 AS cor0
----
22831
3689
78234
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2162
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT + - col0 * cor0.col1 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 * - cor0.col1 col2 FROM tab0 AS cor0
----
-7482
-8372
-9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2165
SELECT DISTINCT + 32 + col1 * CAST( NULL AS DECIMAL ) + ( + col0 ) * - CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT + 32 + col1 * CAST ( NULL AS REAL ) + ( + col0 ) * - CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
query I rowsort
SELECT ALL - - col0 * - ( + 81 ) + - col0 - ( + 42 ) * col0 * 70 AS col2 FROM tab0 AS cor0
----
-105770
-268958
-72528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2167
SELECT - col0 + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-2167
SELECT - col0 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT cor0.col2 + + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 + - 38 FROM tab0 cor0
----
-37
1051
6686
query I rowsort
SELECT - - col1 + 44 * - cor0.col1 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT DISTINCT col1 * col1 + col1 AS col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT + col2 * - col2 * col0 AS col0 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT 74 * - col2 + + col1 FROM tab1
----
-3970
-4208
-7091
query I rowsort
SELECT + + col0 * ( col2 * col1 ) FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-2175
SELECT + 45 DIV + col0 FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-2175
SELECT + 45 / + col0 FROM tab2 AS cor0
----
0
0
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2176
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col0 / col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col0 / col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - 87 * - col2 * col1 FROM tab0 AS cor0
----
-246906
-649194
-8439
query I rowsort
SELECT + col2 * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT cor0.col2 * + 15 AS col2 FROM tab1 AS cor0
----
1440
810
855
query I rowsort
SELECT ALL ( col0 ) AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL - 46 * col1 AS col1 FROM tab1 AS cor0
----
-1196
-460
-598
query I rowsort
SELECT ALL - - 75 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-222
-4736
-5920
query I rowsort
SELECT DISTINCT + col1 + + 86 * + col2 AS col2 FROM tab1 AS cor0
----
4670
4912
8269
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2184
SELECT + CAST( NULL AS SIGNED ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2184
SELECT + CAST ( NULL AS INTEGER ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 97 + 64 * - col0 AS col1 FROM tab1 AS cor0
----
-289
-4193
-5217
onlyif mysql # use DIV operator for integer division
query I rowsort label-2186
SELECT DISTINCT cor0.col1 + col1 DIV + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT cor0.col1 + col1 / + col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab2 AS cor0
----
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2188
SELECT - col0 - + CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-178
-48
-70
skipif mysql # not compatible
query I rowsort label-2188
SELECT - col0 - + CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2190
SELECT ALL + - cor0.col0 * + ( col1 ) * + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
118825
49536
720811
skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + - cor0.col0 * + ( col1 ) * + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col1 col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - cor0.col2 * + cor0.col2 + col1 * col2 FROM tab1 AS cor0
----
-1512
-2679
-7968
query I rowsort
SELECT ALL + + 21 + - col1 * + col2 * + 41 FROM tab2 AS cor0
----
-26465
-34296
-62873
query I rowsort
SELECT DISTINCT - - col2 + 22 FROM tab0 AS cor0
----
104
23
55
query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab2 cor0
----
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2196
SELECT ALL - CAST( NULL AS SIGNED ) / + tab0.col1 col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL - CAST ( NULL AS INTEGER ) / + tab0.col1 col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT ALL - col0 DIV col2 + + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
2
4
7
skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL - col0 / col2 + + col2 / col1 AS col2 FROM tab1 AS cor0
----
2
4
7
query I rowsort
SELECT ALL 24 AS col2 FROM tab2
----
24
24
24
query I rowsort
SELECT ALL 63 FROM tab2, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT - - col2 + + cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col2 * + ( 6 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
210
43788
4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-2202
SELECT col0 + - ( col2 ) DIV + col0 AS col1 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-2202
SELECT col0 + - ( col2 ) / + col0 AS col1 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT + + col1 + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col0 + - ( - 13 ) AS col0 FROM tab2 AS cor0
----
-65
-66
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # use DIV operator for integer division
query I rowsort label-2206
SELECT - - col1 + 65 DIV ( - col1 ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2206
SELECT - - col1 + 65 / ( - col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - - col1 * col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + - col2 - - col2 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - 64 * 55 FROM tab1 AS cor0
----
-3520
-3520
-3520
query I rowsort
SELECT col2 * cor0.col2 * col1 FROM tab0 cor0
----
611884
93654
97
query I rowsort
SELECT ALL col0 * + ( col2 + - tab2.col2 ) FROM tab2
----
0
0
0
query I rowsort
SELECT - - 9 AS col0 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT ( col0 ) * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - + col2 + + col2 * 1 * + col0 AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-2216
SELECT ALL - 7 DIV - tab2.col1 + col1 col0 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2216
SELECT ALL - 7 / - tab2.col1 + col1 col0 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 * 56 + + col0 col2 FROM tab0
----
4168
4179
4233
query I rowsort
SELECT - ( col2 * col1 ) AS col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col0 + 64 AS col0 FROM tab2
----
142
143
71
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0, tab2 cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT ALL - 90 AS col2 FROM tab0
----
-90
-90
-90
query I rowsort
SELECT - ( col0 ) * - ( + tab0.col1 ) + + col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - ( col1 ) + 83 FROM tab1 AS cor0
----
57
70
73
query I rowsort
SELECT DISTINCT - col2 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT + 98 + col0 FROM tab2 AS cor0
----
105
176
177
query I rowsort
SELECT - + 55 * col2 + + col1 FROM tab0 AS cor0
----
-1729
-4419
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - col1 + col1 * + 81 col1 FROM tab2 AS cor0
----
177
2294
34
query I rowsort
SELECT + col0 + + col1 - + 32 * - col1 AS col1 FROM tab0 AS cor0
----
2862
3092
3236
query I rowsort
SELECT ALL + - 13 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL col0 * - col0 AS col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT 40 FROM tab0
----
40
query I rowsort
SELECT DISTINCT - col1 + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1427
617
698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2233
SELECT - + cor0.col2 * CAST( NULL AS SIGNED ) * + cor0.col0 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2233
SELECT - + cor0.col2 * CAST ( NULL AS INTEGER ) * + cor0.col0 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2234
SELECT - col1 + - CAST( ( col0 ) + 49 AS SIGNED ) * col1 * + col0 AS col0 FROM tab2 AS cor0
----
-12183
-171921
-584513
skipif mysql # not compatible
query I rowsort label-2234
SELECT - col1 + - CAST ( ( col0 ) + 49 AS INTEGER ) * col1 * + col0 AS col0 FROM tab2 AS cor0
----
-12183
-171921
-584513
query I rowsort
SELECT + tab2.col1 * - col0 AS col2 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 - tab1.col1 col2 FROM tab1
----
-9
4
7
query I rowsort
SELECT col0 * - col1 + col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT tab2.col0 - col0 * ( ( col0 ) ) FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT - + 24 * + col0 - 89 * + col2 FROM tab0 AS cor0
----
-3513
-929
-9434
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * 82 - col0 * col2 col2 FROM tab1
----
-1120
1600
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2241
SELECT col2 DIV + col0 + - col2 DIV col2 FROM tab1
----
-1
0
17
skipif mysql # not compatible
query I rowsort label-2241
SELECT col2 / + col0 + - col2 / col2 FROM tab1
----
-1
0
17
query I rowsort
SELECT col0 * + 30 + + col0 * col1 FROM tab0
----
10769
2784
4445
query I rowsort
SELECT - cor0.col1 * + col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-2244
SELECT col2 * + col1 + col1 DIV - col0 + + col2 FROM tab1 AS cor0
----
1344
1450
627
skipif mysql # not compatible
query I rowsort label-2244
SELECT col2 * + col1 + col1 / - col0 + + col2 FROM tab1 AS cor0
----
1344
1450
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT DISTINCT + cor0.col0 DIV - col0 + ( + col2 + - col2 ) * - ( - col2 ) col2 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT + cor0.col0 / - col0 + ( + col2 + - col2 ) * - ( - col2 ) col2 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 col2 FROM tab2 cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2248
SELECT - + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2248
SELECT - + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + + col1 * + cor0.col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT col1 * - 4 + - col2 * + col2 FROM tab1 AS cor0
----
-3020
-3289
-9268
query I rowsort
SELECT ( 47 ) AS col2 FROM tab0
----
47
47
47
query I rowsort
SELECT - ( 31 + col0 ) AS col1 FROM tab1
----
-111
-34
-95
query I rowsort
SELECT DISTINCT + 15 * tab2.col0 FROM tab2
----
105
1170
1185
query I rowsort
SELECT + + ( - col2 ) * - cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 83 + + col1 FROM tab0 cor0
----
14
3
8
query I rowsort
SELECT + cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT - + cor0.col1 * col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2257
SELECT - + cor0.col1 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 19 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT - - col0 - col0 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT 96 FROM tab0, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - + 25 * col0 + + col1 * - 80 FROM tab1 cor0
----
-2155
-2400
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 2 col1 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT ALL - + ( cor0.col1 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2265
SELECT ALL + CAST( NULL AS SIGNED ) * col0 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2265
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 * - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - 92 ) AS col2 FROM tab1 cor0
----
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 89 col2 FROM tab2 AS cor0
----
115
116
127
query I rowsort
SELECT ALL - 37 + - 36 * col1 FROM tab1 cor0
----
-397
-505
-973
query I rowsort
SELECT + + cor0.col2 + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col0 + - 49 FROM tab1 AS cor0
----
-113
-129
-52
query I rowsort
SELECT ALL + col1 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT ( - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 19 col2 FROM tab1 AS cor0
----
19
19
19
query I rowsort
SELECT - col1 * + ( + col1 ) * col0 + col1 * - col2 FROM tab1 AS cor0
----
-14768
-3432
-6970
onlyif mysql # use DIV operator for integer division
query I rowsort label-2275
SELECT col2 * 29 DIV + col1 AS col2 FROM tab2
----
12
25
64
skipif mysql # not compatible
query I rowsort label-2275
SELECT col2 * 29 / + col1 AS col2 FROM tab2
----
12
25
64
query I rowsort
SELECT tab0.col1 - + tab0.col2 AS col0 FROM tab0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2277
SELECT ALL col0 + 51 * + ( col2 ) / CAST( NULL AS SIGNED ) - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL col0 + 51 * + ( col2 ) / CAST ( NULL AS INTEGER ) - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 - ( col0 ) * col1 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT + cor0.col1 - - 75 AS col1 FROM tab2 AS cor0
----
106
134
92
query I rowsort
SELECT DISTINCT + 7 * col0 FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT ALL col0 * col2 * + col1 + + col2 * + col0 FROM tab1
----
107520
40128
4374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * + col1 * col1 col2 FROM tab0 AS cor0
----
177480
329280
736920
query I rowsort
SELECT 84 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2284
SELECT - - CAST( NULL AS SIGNED ) + col0 * col0 * 50 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2284
SELECT - - CAST ( NULL AS INTEGER ) + col0 * col0 * 50 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 57 + - col1 * cor0.col2 + ( col2 ) AS col1 FROM tab0 AS cor0
----
-2748
-39
-7323
query I rowsort
SELECT 26 + - 76 + col1 AS col2 FROM tab0
----
36
41
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2287
SELECT ALL + CAST( + 89 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
skipif mysql # not compatible
query I rowsort label-2287
SELECT ALL + CAST ( + 89 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT DISTINCT col2 * + 52 FROM tab0 cor0
----
1716
4264
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2289
SELECT DISTINCT + + cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT + + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 * col1 col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT + col1 * col2 + col0 * + col0 AS col1 FROM tab2
----
6887
7618
886
query I rowsort
SELECT DISTINCT - col1 - col0 AS col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT ALL col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - - col1 * 42 FROM tab0 AS cor0
----
3612
3822
4074
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2295
SELECT ALL col1 + + CAST( 74 + col0 AS SIGNED ) * 92 FROM tab2 AS cor0
----
14043
14093
7483
skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL col1 + + CAST ( 74 + col0 AS INTEGER ) * 92 FROM tab2 AS cor0
----
14043
14093
7483
query I rowsort
SELECT ALL - col0 + - 92 * col2 FROM tab1 AS cor0
----
-4971
-5308
-8912
query I rowsort
SELECT col2 * - col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL + col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - col2 * 90 - - 40 * col2 FROM tab2 AS cor0
----
-1300
-1350
-1900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 2 col1 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - 42 col2 FROM tab1 AS cor0
----
-39
22
38
query I rowsort
SELECT + + col2 * 65 AS col0 FROM tab0 cor0
----
2145
5330
65
query I rowsort
SELECT DISTINCT - + col1 * + col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL - 94 FROM tab2 AS cor0
----
-94
-94
-94
query I rowsort
SELECT ALL - 69 + + col1 AS col1 FROM tab1 AS cor0
----
-43
-56
-59
query I rowsort
SELECT - + 89 AS col2 FROM tab1 AS cor0
----
-89
-89
-89
query I rowsort
SELECT ALL + - col2 + 28 FROM tab2 AS cor0
----
-10
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2308
SELECT ALL CAST( NULL AS DECIMAL ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL CAST ( NULL AS REAL ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 60 AS col2 FROM tab1 AS cor0
----
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2310
SELECT + CAST( NULL AS SIGNED ) * + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2310
SELECT + CAST ( NULL AS INTEGER ) * + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 31 AS col0 FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT ( - tab0.col1 ) + col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + - ( col1 ) * + col1 + + 69 AS col1 FROM tab1 AS cor0
----
-100
-31
-607
query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab1, tab1 AS cor0
----
88
query I rowsort
SELECT DISTINCT - 49 * - col0 FROM tab2
----
343
3822
3871
query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab2 AS cor0
----
46
query I rowsort
SELECT DISTINCT 17 + + col2 FROM tab1 AS cor0
----
113
71
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT ALL + col2 * col0 + + 9 DIV - col2 FROM tab0 AS cor0
----
26
7298
792
skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL + col2 * col0 + + 9 / - col2 FROM tab0 AS cor0
----
26
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2319
SELECT ALL + + col0 + CAST( NULL AS SIGNED ) / + 84 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL + + col0 + CAST ( NULL AS INTEGER ) / + 84 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2320
SELECT + cor0.col0 DIV ( + col0 ) + col1 * 4 FROM tab0 cor0
----
345
365
389
skipif mysql # not compatible
query I rowsort label-2320
SELECT + cor0.col0 / ( + col0 ) + col1 * 4 FROM tab0 cor0
----
345
365
389
query I rowsort
SELECT + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col1 * col0 col2 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT DISTINCT col0 * - 97 FROM tab1 cor0
----
-291
-6208
-7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 88 col2 FROM tab1 AS cor0
----
101
114
98
query I rowsort
SELECT DISTINCT - + 2 AS col2 FROM tab1, tab2, tab1 cor0
----
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 * - col1 col1 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 69 ) col2 FROM tab2
----
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - 21 col1 FROM tab2 AS cor0
----
17
5
6
query I rowsort
SELECT + 3 * - col2 + - col1 * col0 FROM tab0 AS cor0
----
-2163
-3398
-8345
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2330
SELECT CAST( - col2 AS SIGNED ) * col0 * - tab0.col0 AS col2 FROM tab0
----
1225
19008
649522
skipif mysql # not compatible
query I rowsort label-2330
SELECT CAST ( - col2 AS INTEGER ) * col0 * - tab0.col0 AS col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT - 17 * col2 FROM tab2
----
-442
-459
-646
query I rowsort
SELECT 8 * col1 + + col0 FROM tab2 AS cor0
----
215
255
550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col1 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT cor0.col1 * cor0.col1 + + col2 * col2 * - col0 FROM tab0 cor0
----
-18740
-590155
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT - col2 DIV col0 + + col2 AS col2 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-2335
SELECT - col2 / col0 + + col2 AS col2 FROM tab0 AS cor0
----
1
32
82
query I rowsort
SELECT - 35 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-2977
-3103
-3394
query I rowsort
SELECT - 76 * col2 + - col2 AS col0 FROM tab1 cor0
----
-4158
-4389
-7392
query I rowsort
SELECT - 21 * + 70 AS col1 FROM tab2
----
-1470
-1470
-1470
query I rowsort
SELECT - col1 * + col0 * + col1 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-2340
SELECT + - col2 + - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-2340
SELECT + - col2 + - col1 / - col1 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT ALL col0 * - col0 * - tab0.col0 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT + col2 * + 41 * - col2 FROM tab2 AS cor0
----
-27716
-29889
-59204
query I rowsort
SELECT col2 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT ALL + col2 * col2 DIV col0 col0 FROM tab0 AS cor0
----
0
45
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL + col2 * col2 / col0 col0 FROM tab0 AS cor0
----
0
45
75
query I rowsort
SELECT + col2 * 50 AS col1 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT ALL - - col2 * + ( - col1 ) + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2347
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2347
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + col2 AS col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT - col1 * col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT + - col0 DIV - col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2350
SELECT + - col0 / - col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT col0 * + col2 + col0 * tab0.col2 AS col2 FROM tab0
----
14596
1584
70
query I rowsort
SELECT DISTINCT - 84 * cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
-2772
-6888
-84
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + CAST ( col2 AS REAL ) FROM tab0
----
-34
-7
9
query I rowsort
SELECT + col2 * ( 57 + tab0.col2 ) * + col2 FROM tab0
----
58
934636
98010
query I rowsort
SELECT - col1 * - col2 + tab0.col1 FROM tab0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-2356
SELECT + col0 DIV + ( 57 ) FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2356
SELECT + col0 / + ( 57 ) FROM tab2
----
0
1
1
query I rowsort
SELECT DISTINCT + col1 + + col2 * cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT + + cor0.col0 + col2 * ( col1 ) FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - - col0 + col0 AS col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + + cor0.col0 + col1 + col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL + col1 + + col2 - col0 FROM tab0
----
63
84
95
query I rowsort
SELECT - + cor0.col1 * col2 + col2 * - cor0.col0 - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1644
-4858
-9968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + + col2 col0 FROM tab2 AS cor0
----
0
0
0
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL - col2 * - col0 - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT + 54 * cor0.col0 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT + col2 * - tab2.col0 + col1 AS col0 FROM tab2
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT col0 + - col2 DIV - col2 AS col2 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-2369
SELECT col0 + - col2 / - col2 AS col2 FROM tab1
----
4
65
81
query I rowsort
SELECT col0 * - col2 + col2 AS col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT col2 + col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 + + col2 col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - col0 * - col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - - 54 FROM tab2 cor0
----
54
54
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2375
SELECT + col2 + col1 DIV - 13 AS col2 FROM tab0
----
-6
27
75
skipif mysql # not compatible
query I rowsort label-2375
SELECT + col2 + col1 / - 13 AS col2 FROM tab0
----
-6
27
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2377
SELECT - + col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2377
SELECT - + col0 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 * 91 col1 FROM tab0 AS cor0
----
188
3089
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-2380
SELECT DISTINCT + - col2 * col2 DIV - ( + 24 ) col0 FROM tab0 AS cor0
----
0
280
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + - col2 * col2 / - ( + 24 ) col0 FROM tab0 AS cor0
----
0
280
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2381
SELECT + 81 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2381
SELECT + 81 / + col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col1 FROM tab2 AS cor0
----
-48
-48
-48
query I rowsort
SELECT ALL + col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab2 cor0
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2385
SELECT ALL + - ( - col1 ) * 42 DIV - cor0.col0 FROM tab2 AS cor0
----
-186
-31
-9
skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + - ( - col1 ) * 42 / - cor0.col0 FROM tab2 AS cor0
----
-186
-31
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2386
SELECT DISTINCT 25 DIV col2 col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT 25 / col2 col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT + - cor0.col0 * col1 + - col2 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL + col1 * 52 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT ALL - col2 + - col0 * col1 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT + tab0.col2 - col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL col0 - - tab2.col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT ALL 4 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT + 28 * col0 FROM tab1
----
1792
2240
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + - col0 col1 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT DISTINCT + - 75 * - col0 AS col1 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT DISTINCT + col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-2398
SELECT - - 50 DIV col0 FROM tab2 AS cor0
----
0
0
7
skipif mysql # not compatible
query I rowsort label-2398
SELECT - - 50 / col0 FROM tab2 AS cor0
----
0
0
7
query I rowsort
SELECT DISTINCT + - col2 + col1 + col1 FROM tab2 cor0
----
-4
35
92
query I rowsort
SELECT + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL 91 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL col2 * + 31 + col1 FROM tab0 cor0
----
1109
128
2633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 1 + 77 col0 FROM tab1 cor0
----
76
query I rowsort
SELECT ALL + 2 + col2 AS col2 FROM tab2 AS cor0
----
28
29
40
query I rowsort
SELECT ALL tab1.col0 * tab1.col2 * col2 AS col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT ALL - 66 FROM tab0, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT - 50 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2407
SELECT - 50 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 71 + col0 ) col1 FROM tab2
----
-149
-150
-78
query I rowsort
SELECT col0 * + col0 + + col1 AS col1 FROM tab1
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - tab0.col0 col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT - 95 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT - - col2 + col1 * cor0.col0 + - 92 FROM tab2 AS cor0
----
1289
152
4536
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e
query I rowsort
SELECT - - cor0.col1 + 54 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3c8e12e2ec4fafbfd88a2213908cb8ee
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2415
SELECT ALL ( col1 * tab2.col0 + + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL ( col1 * tab2.col0 + + CAST ( NULL AS REAL ) ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - tab0.col2 + - col1 AS col0 FROM tab0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col2 FROM tab1
----
58
query I rowsort
SELECT ALL + ( col0 ) FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL 13 + col1 FROM tab2 AS cor0
----
30
44
72
query I rowsort
SELECT + col0 + - col1 * - ( + 14 ) AS col1 FROM tab1 cor0
----
204
262
367
query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col0 * + col1 + cor0.col2 * 42 AS col0 FROM tab0 AS cor0
----
-3353
-4655
-678
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 col1 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL col1 * 43 + - ( + tab0.col1 + ( 25 ) * + tab0.col0 ) AS col1 FROM tab0
----
1597
3012
3199
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2425
SELECT col1 + CAST( NULL AS DECIMAL ) + - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2425
SELECT col1 + CAST ( NULL AS REAL ) + - col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 46 + + col1 AS col0 FROM tab1
----
2510
2632
4429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * ( col0 ) col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 * 14 - 55 AS col0 FROM tab0 cor0
----
1191
281
435
query I rowsort
SELECT ALL cor0.col2 * 77 FROM tab0 AS cor0
----
2541
6314
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-2430
SELECT DISTINCT + cor0.col2 DIV col2 + cor0.col1 * - 88 AS col0 FROM tab0 AS cor0
----
-7567
-8007
-8535
skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT + cor0.col2 / col2 + cor0.col1 * - 88 AS col0 FROM tab0 AS cor0
----
-7567
-8007
-8535
query I rowsort
SELECT DISTINCT + 62 * 0 + + col2 + + ( 31 * - col1 ) AS col2 FROM tab0 AS cor0
----
-2633
-2739
-3006
query I rowsort
SELECT DISTINCT - ( - ( + col2 ) ) * 90 + - ( cor0.col0 ) FROM tab2 AS cor0
----
2262
2423
3341
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 + - col2 col1 FROM tab2 cor0
----
33
44
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2434
SELECT + - col1 + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-2434
SELECT + - col1 + col0 / col2 AS col0 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT DISTINCT col0 * + col1 + - cor0.col1 * col0 * - col2 - - cor0.col2 FROM tab1 cor0
----
100976
37177
4344
query I rowsort
SELECT ( + ( col2 ) ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col0 * 1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + cor0.col1 + 81 * col2 AS col1 FROM tab0 AS cor0
----
178
2759
6733
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col0 col0 FROM tab2
----
-14
-156
-158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2440
SELECT CAST( NULL AS SIGNED ) + - 61 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2440
SELECT CAST ( NULL AS INTEGER ) + - 61 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - 87 ) * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
7506
8006
8474
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT + + CAST( NULL AS SIGNED ) + + 13 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2442
SELECT + + CAST ( NULL AS INTEGER ) + + 13 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 59 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT ( cor0.col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 - - tab2.col2 * - col2 col1 FROM tab2
----
-1391
-623
-676
query I rowsort
SELECT DISTINCT + ( + col2 ) * + col2 - 92 * tab2.col1 FROM tab2
----
-120
-2123
-4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT + 27 DIV + col0 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2447
SELECT + 27 / + col0 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT - tab2.col2 + 33 * col2 - 99 AS col1 FROM tab2
----
1117
733
765
onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT col1 + - col0 DIV + cor0.col2 AS col1 FROM tab0 cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-2449
SELECT col1 + - col0 / + cor0.col2 AS col1 FROM tab0 cor0
----
62
86
90
query I rowsort
SELECT + ( + 89 ) AS col0 FROM tab1 AS cor0
----
89
89
89
query I rowsort
SELECT 3 * - col0 + + col0 - ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-260
-71
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2452
SELECT + ( - col1 ) DIV + col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-2452
SELECT + ( - col1 ) / + col0 FROM tab1 AS cor0
----
-8
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT + CAST( NULL AS DECIMAL ) - + 42 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-2453
SELECT + CAST ( NULL AS REAL ) - + 42 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + col1 + col2 * - ( - col1 ) FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + 22 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT - 91 AS col0 FROM tab1
----
-91
-91
-91
query I rowsort
SELECT ALL - - 61 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT - col0 + 19 FROM tab1 AS cor0
----
-45
-61
16
query I rowsort
SELECT + col2 + + ( + 98 ) * col2 AS col0 FROM tab1 AS cor0
----
5346
5643
9504
query I rowsort
SELECT ALL + col1 * ( - 17 * col0 + col0 ) AS col0 FROM tab1 AS cor0
----
-10240
-1248
-16640
query I rowsort
SELECT - 56 * 79 FROM tab1 AS cor0
----
-4424
-4424
-4424
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT + cor0.col1 * - 57 FROM tab1 AS cor0
----
-1482
-570
-741
query I rowsort
SELECT + - 14 FROM tab0 AS cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT ( cor0.col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT 1 - - 94 FROM tab2 AS cor0
----
95
query I rowsort
SELECT + - 58 AS col1 FROM tab0 AS cor0
----
-58
-58
-58
query I rowsort
SELECT ALL ( 50 ) AS col2 FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT + col1 + cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + + ( col1 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - 71 * ( col0 * - col0 ) FROM tab1 AS cor0
----
290816
454400
639
query I rowsort
SELECT ALL + + col2 * col1 * - col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT ALL + - ( - col2 ) DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL + - ( - col2 ) / col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT ALL - + 8 * - col2 FROM tab2 AS cor0
----
208
216
304
onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT + + col0 * col2 DIV 74 AS col1 FROM tab2 AS cor0
----
2
27
40
skipif mysql # not compatible
query I rowsort label-2475
SELECT + + col0 * col2 / 74 AS col1 FROM tab2 AS cor0
----
2
27
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-2476
SELECT - - 78 + col2 DIV + 84 FROM tab0 AS cor0
----
78
78
78
skipif mysql # not compatible
query I rowsort label-2476
SELECT - - 78 + col2 / + 84 FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT 92 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT ALL 63 DIV tab1.col1 AS col1 FROM tab1
----
2
4
6
skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL 63 / tab1.col1 AS col1 FROM tab1
----
2
4
6
query I rowsort
SELECT DISTINCT + 13 * - ( col2 ) FROM tab1
----
-1248
-702
-741
onlyif mysql # use DIV operator for integer division
query I rowsort label-2480
SELECT ALL col2 DIV col2 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL col2 / col2 AS col0 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL - - col1 * col2 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - cor2.col0 FROM tab1, tab2 cor0, tab1 cor1, tab0, tab2 cor2
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4
query I rowsort
SELECT - 20 * col0 + col0 * 51 AS col2 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT 92 * - ( col1 ) * col2 + + col0 FROM tab0
----
-261072
-686415
-8889
onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT + 62 DIV + col2 + col0 FROM tab1
----
4
65
80
skipif mysql # not compatible
query I rowsort label-2485
SELECT + 62 / + col2 + col0 FROM tab1
----
4
65
80
query I rowsort
SELECT - ( + col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 AS col1 FROM tab0 cor0
----
-2
-62
query I rowsort
SELECT ALL - ( col1 ) + + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - 43 * col2 FROM tab0
----
-1419
-3526
-43
query I rowsort
SELECT DISTINCT + - col0 + col2 + col1 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT DISTINCT - col1 * + col1 + col2 * + 16 AS col1 FROM tab2 AS cor0
----
-3065
-529
319
query I rowsort
SELECT DISTINCT + + col2 * col1 + 65 AS col0 FROM tab0 AS cor0
----
162
2903
7527
query I rowsort
SELECT 84 * - col1 AS col1 FROM tab1 AS cor0
----
-1092
-2184
-840
query I rowsort
SELECT ALL + col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - 41 AS col2 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT ALL + + col1 * + cor0.col0 + + cor0.col1 AS col0 FROM tab0 cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 + - col0 * - cor0.col1 col0 FROM tab1 AS cor0
----
1043
643
81
query I rowsort
SELECT ALL - 66 * - col1 AS col0 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT DISTINCT - - cor0.col1 + - col2 AS col0 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - + 92 AS col0 FROM tab0 AS cor0
----
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 * + col0 col2 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT - 7 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT + - col1 + 89 AS col2 FROM tab1 AS cor0
----
63
76
79
query I rowsort
SELECT ALL 21 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2505
SELECT + col0 * 0 + + tab1.col2 * + col0 / CAST( NULL AS SIGNED ) + 35 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2505
SELECT + col0 * 0 + + tab1.col2 * + col0 / CAST ( NULL AS INTEGER ) + 35 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 - col2 * + col0 * col0 col0 FROM tab2 AS cor0
----
-1540
-162786
-238501
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2508
SELECT + col1 + + CAST( col2 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1461
735
760
skipif mysql # not compatible
query I rowsort label-2508
SELECT + col1 + + CAST ( col2 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT + col2 + - 10 AS col0 FROM tab1 AS cor0
----
44
47
86
query I rowsort
SELECT - + col1 * + cor0.col1 - + col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL cor0.col0 + - 60 * - col1 FROM tab2 AS cor0
----
1099
1867
3618
query I rowsort
SELECT DISTINCT + col1 + + 34 AS col1 FROM tab1 AS cor0
----
44
47
60
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 + - col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - - col2 - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + + col2 * col2 * cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + col1 + col0 FROM tab0 AS cor0
----
229
2948
7642
query I rowsort
SELECT ALL - - col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 92 * 53 + - col0 AS col0 FROM tab2 cor0
----
4797
4798
4869
query I rowsort
SELECT DISTINCT 43 * - 48 AS col2 FROM tab0 AS cor0
----
-2064
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col0 FROM tab1 AS cor0
----
-16
query I rowsort
SELECT + ( col2 ) * col2 + + col1 FROM tab2 cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT + col2 + + 0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 * col2 + + col2 * - cor0.col0 col1 FROM tab2 AS cor0
----
2484
546
760
query I rowsort
SELECT ALL - - 86 + col0 * - col0 FROM tab2 AS cor0
----
-5998
-6155
37
query I rowsort
SELECT + - ( cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + 55 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2, tab2 AS cor3
----
243 values hashing to 3bb347264dd94dc95e5bdb885082db66
onlyif mysql # use DIV operator for integer division
query I rowsort label-2527
SELECT ALL col0 DIV - col1 + col0 AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL col0 / - col1 + col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + ( - col2 ) + - col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT DISTINCT col2 DIV + ( - 36 ) + col1 AS col2 FROM tab2
----
16
31
59
skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT col2 / + ( - 36 ) + col1 AS col2 FROM tab2
----
16
31
59
query I rowsort
SELECT + - col0 * ( - col1 ) + + col2 * - col2 + col0 FROM tab0 AS cor0
----
1464
3429
999
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * + 39 col1 FROM tab0 AS cor0
----
741
741
741
query I rowsort
SELECT ALL + col0 + col0 * - col2 + col0 AS col2 FROM tab1 cor0
----
-156
-3520
-7520
query I rowsort
SELECT ALL + + cor0.col2 - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + 69 FROM tab0, tab0 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT + + col2 * - col0 + cor0.col0 * 47 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
141
3008
3760
onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT - + col0 DIV - col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2536
SELECT - + col0 / - col2 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 * + col1 col1 FROM tab2 AS cor0
----
-1333
-2537
-731
query I rowsort
SELECT DISTINCT 39 * col0 AS col1 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT ( col1 ) + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT 94 + - col0 AS col0 FROM tab2 AS cor0
----
15
16
87
query I rowsort
SELECT + - 79 + + col2 * cor0.col1 FROM tab1 AS cor0
----
1169
1325
491
query I rowsort
SELECT + - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - ( - col2 ) * col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT + - col1 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + 55 + col1 FROM tab1 AS cor0
----
65
68
81
query I rowsort
SELECT ALL + 56 FROM tab0
----
56
56
56
query I rowsort
SELECT col0 * - 8 AS col0 FROM tab0 AS cor0
----
-192
-280
-712
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2548
SELECT + col2 + + CAST( 39 AS SIGNED ) * col2 FROM tab0 AS cor0
----
1320
3280
40
skipif mysql # not compatible
query I rowsort label-2548
SELECT + col2 + + CAST ( 39 AS INTEGER ) * col2 FROM tab0 AS cor0
----
1320
3280
40
query I rowsort
SELECT DISTINCT ( - cor0.col1 ) AS col2 FROM tab2, tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2550
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2550
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - tab1.col0 * - col0 * + 30 AS col2 FROM tab1
----
122880
192000
270
query I rowsort
SELECT ALL + 73 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT - col2 * + 45 + - ( col1 ) + - col0 FROM tab0
----
-1595
-177
-3870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2554
SELECT tab2.col0 * CAST( NULL AS SIGNED ) * - tab2.col0 + - col1 * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2554
SELECT tab2.col0 * CAST ( NULL AS INTEGER ) * - tab2.col0 + - col1 * col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT col2 DIV + col1 + + col0 + col2 FROM tab2
----
104
119
34
skipif mysql # not compatible
query I rowsort label-2555
SELECT col2 / + col1 + + col0 + col2 FROM tab2
----
104
119
34
query I rowsort
SELECT DISTINCT - col0 + + ( - col1 + - col1 ) FROM tab2
----
-113
-196
-69
query I rowsort
SELECT ALL + col0 * - tab0.col2 + + 39 + + col2 FROM tab0
----
-7177
-720
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT ALL - col1 + 2 DIV + 88 col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - col1 + 2 / + 88 col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - col2 * + 50 FROM tab1 cor0
----
-2700
-2850
-4800
query I rowsort
SELECT + tab1.col0 * - cor0.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7d8c1f00ed770fc7c219c3c68edd7d7
query I rowsort
SELECT + 10 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT DISTINCT - + 3 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-3
query I rowsort
SELECT ALL + col1 + col0 AS col0 FROM tab2
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT col2 DIV - col2 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2564
SELECT col2 / - col2 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT tab2.col1 AS col2 FROM tab2, tab0 cor0
----
17
31
59
query I rowsort
SELECT 31 * col1 AS col1 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT + 3 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT 96 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT DISTINCT - ( tab2.col0 ) * + col0 AS col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL + col2 * - 4 FROM tab2
----
-104
-108
-152
query I rowsort
SELECT - col1 * + col0 + col2 AS col2 FROM tab1
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-2573
SELECT ALL + col1 DIV 14 FROM tab0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + col1 / 14 FROM tab0
----
6
6
6
query I rowsort
SELECT col1 * 32 + - cor0.col0 FROM tab2 AS cor0
----
1810
465
985
query I rowsort
SELECT col1 + ( col1 ) + col0 AS col1 FROM tab2
----
113
196
69
query I rowsort
SELECT ALL - col0 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2578
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( cor0.col1 ) + col0 + - 8 FROM tab2 AS cor0
----
129
30
88
query I rowsort
SELECT ALL col1 * 90 FROM tab0 AS cor0
----
7740
8190
8730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 48 + 77 * col1 col2 FROM tab0 AS cor0
----
6574
6959
7421
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to ece34ebef3a06d71156ce9f5c546aa60
query I rowsort
SELECT + ( - col0 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2584
SELECT + CAST( cor0.col2 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-2584
SELECT + CAST ( cor0.col2 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - col0 * 97 FROM tab2 AS cor0
----
-679
-7566
-7663
query I rowsort
SELECT + + 29 * - col1 FROM tab0 AS cor0
----
-2494
-2639
-2813
onlyif mysql # use DIV operator for integer division
query I rowsort label-2587
SELECT DISTINCT col1 + 30 DIV + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT col1 + 30 / + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + tab0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL 17 AS col2 FROM tab1
----
17
17
17
query I rowsort
SELECT ALL + tab0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - - 67 AS col0 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT - col1 * 11 + col2 FROM tab1 AS cor0
----
-232
-47
-53
query I rowsort
SELECT DISTINCT - col0 * - col1 + + col2 * col2 AS col0 FROM tab1
----
10256
2994
3889
query I rowsort
SELECT ALL - ( - col0 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + 57 * cor0.col2 FROM tab2 AS cor0
----
1482
1539
2166
query I rowsort
SELECT DISTINCT - 51 * col2 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-2227
-2338
-4807
query I rowsort
SELECT ALL + + col1 + - col2 - col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * col0 + + col0 + + 54 * - cor0.col0 col1 FROM tab1 AS cor0
----
256
3
3440
query I rowsort
SELECT DISTINCT + 82 * col1 + col1 FROM tab2 AS cor0
----
1411
2573
4897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 col0 FROM tab1 AS cor0
----
-73
query I rowsort
SELECT DISTINCT + 66 + col0 FROM tab1 AS cor0
----
130
146
69
query I rowsort
SELECT + 55 + - col0 FROM tab2 cor0
----
-23
-24
48
query I rowsort
SELECT ALL - - col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col0 * col1 * - col1 - + cor0.col1 AS col0 FROM tab0 cor0
----
-177590
-329412
-737100
onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT - col2 DIV + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-2606
SELECT - col2 / + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT + col0 * 50 - - col1 * col0 FROM tab2 AS cor0
----
5293
567
8502
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - ( col0 ) col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + cor0.col0 + col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT + + col1 * + 63 FROM tab0 cor0
----
5418
5733
6111
query I rowsort
SELECT + col1 - + ( col2 ) FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT cor0.col2 * 19 + col2 + col1 * ( - col1 + + col0 ) DIV ( + col2 + col2 ) FROM tab1 AS cor0
----
1075
1144
1924
skipif mysql # not compatible
query I rowsort label-2612
SELECT cor0.col2 * 19 + col2 + col1 * ( - col1 + + col0 ) / ( + col2 + col2 ) FROM tab1 AS cor0
----
1075
1144
1924
query I rowsort
SELECT + col1 * + col1 AS col2 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL 46 + - col1 AS col0 FROM tab2 AS cor0
----
-13
15
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 13 col2 FROM tab1 AS cor0
----
109
67
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col2 ) * col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to f1666fadc663c90ea9374fcb108b4477
query I rowsort
SELECT ALL 40 * cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 26698cdcad58422b456e5e5607453057
query I rowsort
SELECT DISTINCT + col2 + + col2 AS col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL + - col2 + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT ( col2 ) * - 36 + tab2.col1 FROM tab2
----
-1351
-877
-941
query I rowsort
SELECT ALL - col2 + + col0 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - col2 * 7 + col1 AS col0 FROM tab0 AS cor0
----
-145
-483
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - - col0 + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 * col1 col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT - - col1 + - col2 * - col0 * + col0 + cor0.col0 FROM tab0 AS cor0
----
1357
19118
649702
query I rowsort
SELECT ALL - col1 + - col1 * - col0 * + col1 AS col1 FROM tab2 AS cor0
----
22814
271459
6696
query I rowsort
SELECT + col1 * col1 + 35 - tab2.col2 AS col2 FROM tab2
----
286
3490
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-2631
SELECT ALL - col2 DIV tab0.col1 + - col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - col2 / tab0.col1 + - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col1 * - col2 + 74 * ( + col2 ) AS col2 FROM tab1
----
2592
3648
5856
query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col2 FROM tab2
----
90
90
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 * - 85 col2 FROM tab2, tab2 AS cor0
----
-7055
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1, tab0 cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
query I rowsort
SELECT - tab1.col0 + tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT col0 * col1 + 93 AS col2 FROM tab1
----
1133
171
733
onlyif mysql # use DIV operator for integer division
query I rowsort label-2639
SELECT ALL - col0 * ( col1 ) DIV + col2 AS col1 FROM tab1 AS cor0
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL - col0 * ( col1 ) / + col2 AS col1 FROM tab1 AS cor0
----
-1
-10
-11
query I rowsort
SELECT col2 + col0 + col2 FROM tab0 AS cor0
----
253
37
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT DISTINCT - col2 * cor0.col2 + + col2 DIV col1 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT - col2 * cor0.col2 + + col2 / col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col1 + + 19 * + cor0.col0 * + col2 FROM tab2 AS cor0
----
3622
38591
57055
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2643
SELECT col0 / CAST( NULL AS SIGNED ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2643
SELECT col0 / CAST ( NULL AS INTEGER ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT 6 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT DISTINCT + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - col1 * col0 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col1 + col0 col2 FROM tab0 AS cor0
----
132
2862
7551
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT + 7 + tab2.col0 + col1 FROM tab2
----
103
144
45
query I rowsort
SELECT ALL col0 - + col1 AS col1 FROM tab2
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2652
SELECT - - CAST( NULL AS DECIMAL ) + cor0.col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2652
SELECT - - CAST ( NULL AS REAL ) + cor0.col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - cor0.col2 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - ( 96 ) + - col2 AS col0 FROM tab1 cor0
----
-150
-153
-192
query I rowsort
SELECT ALL - 18 * col0 + + cor0.col2 - - ( 72 ) AS col1 FROM tab0 AS cor0
----
-1448
-327
-557
query I rowsort
SELECT ALL - col2 * ( + col1 ) - col0 FROM tab1
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + tab0.col1 col0 FROM tab0
----
2
62
query I rowsort
SELECT - + 40 FROM tab1 AS cor0
----
-40
-40
-40
query I rowsort
SELECT ALL + ( + col1 ) + - col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + col2 * col1 - - col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-2661
SELECT DISTINCT cor0.col0 DIV col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT cor0.col0 / col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL - + 71 + + col1 FROM tab1 AS cor0
----
-45
-58
-61
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 * - 89 AS col0 FROM tab0 AS cor0
----
-183696
-302155
-720811
query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab2, tab0 AS cor0
----
8
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1, tab1 cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT ALL + + col1 * + col2 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT DISTINCT - col0 DIV col1 + - CAST( 26 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-30
skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT - col0 / col1 + - CAST ( 26 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-30
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
query I rowsort
SELECT ALL + col0 - - col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT + col2 * cor0.col1 - ( + col0 + + col1 ) DIV - 28 AS col2 FROM tab1 AS cor0
----
1251
1405
572
skipif mysql # not compatible
query I rowsort label-2670
SELECT + col2 * cor0.col1 - ( + col0 + + col1 ) / - 28 AS col2 FROM tab1 AS cor0
----
1251
1405
572
query I rowsort
SELECT ALL + + ( + col2 ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + + ( - col1 ) + - col2 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT - 13 * - cor0.col1 FROM tab0 AS cor0
----
1118
1183
1261
query I rowsort
SELECT + col2 * col1 + ( - 76 ) FROM tab1 AS cor0
----
1172
1328
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL col0 - col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT 19 + + col0 AS col2 FROM tab1 AS cor0
----
22
83
99
query I rowsort
SELECT ALL - 39 - + col2 AS col0 FROM tab0 AS cor0
----
-121
-40
-72
query I rowsort
SELECT DISTINCT + col1 * + col0 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col1 * + 0 * - ( col2 ) + - 83 FROM tab1 AS cor0
----
-83
-83
-83
query I rowsort
SELECT + col0 * 0 + + 80 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT col0 + tab2.col2 * + 49 AS col2 FROM tab2
----
1330
1352
1941
query I rowsort
SELECT - col0 + 65 * 93 FROM tab1 AS cor0
----
5965
5981
6042
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2685
SELECT + col0 * + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2685
SELECT + col0 * + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - - 17 + ( + col0 ) AS col0 FROM tab1 AS cor0
----
20
81
97
query I rowsort
SELECT 76 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT + col2 + 72 * col2 AS col2 FROM tab2 AS cor0
----
1898
1971
2774
query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab0 AS cor0
----
-31
query I rowsort
SELECT ALL + - col2 * + 32 * + col0 FROM tab0 AS cor0
----
-1120
-233536
-25344
query I rowsort
SELECT - - col2 * - 70 AS col2 FROM tab2 AS cor0
----
-1820
-1890
-2660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 * col2 + col1 col0 FROM tab1 AS cor0
----
3644
3829
6445
query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 * - cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a7fab19d3133d005bc2ba90d6039887d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2696
SELECT ALL + - col0 * 11 DIV col1 FROM tab0 AS cor0
----
-10
-3
-3
skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + - col0 * 11 / col1 FROM tab0 AS cor0
----
-10
-3
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT - tab0.col1 DIV col0 + col0 AS col2 FROM tab0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-2697
SELECT - tab0.col1 / col0 + col0 AS col2 FROM tab0
----
21
33
88
query I rowsort
SELECT DISTINCT - 24 * + 10 FROM tab0
----
-240
query I rowsort
SELECT 43 AS col0 FROM tab1
----
43
43
43
query I rowsort
SELECT ( col0 * + col2 + col1 ) FROM tab0
----
132
7389
878
query I rowsort
SELECT - col0 + 40 AS col1 FROM tab2 AS cor0
----
-38
-39
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT + + col0 + col2 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT col2 * + ( col0 ) * - cor0.col1 + - col2 * - col0 FROM tab0 AS cor0
----
-3360
-656820
-67320
query I rowsort
SELECT - - col0 + 42 FROM tab0 AS cor0
----
131
66
77
query I rowsort
SELECT - col0 * + col2 + - col0 * - col0 FROM tab2 AS cor0
----
-140
3239
4056
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col0 + + col0 * + col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + + ( 50 ) FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT ALL + 21 + col1 * col1 FROM tab2 AS cor0
----
310
3502
982
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2711
SELECT + CAST( + 3 AS SIGNED ) + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1222
-573
-7918
skipif mysql # not compatible
query I rowsort label-2711
SELECT + CAST ( + 3 AS INTEGER ) + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1222
-573
-7918
query I rowsort
SELECT + 6 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
skipif mysql # not compatible
query I rowsort
SELECT 12 / - col2 + CAST ( col1 AS REAL ) / col1 + + col1 AS col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT + 88 * - 31 + tab0.col0 FROM tab0
----
-2639
-2693
-2704
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2715
SELECT - CAST( NULL AS DECIMAL ) * 99 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2715
SELECT - CAST ( NULL AS REAL ) * 99 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 - cor0.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9da1b0d7968ba4732e03725f936ba158
onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT DISTINCT + col0 DIV - tab2.col0 AS col2 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + col0 / - tab2.col0 AS col2 FROM tab2
----
-1
query I rowsort
SELECT - 17 * + col2 * + col2 FROM tab1
----
-156672
-49572
-55233
query I rowsort
SELECT + col1 * - ( col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT + col2 * col0 * + col2 AS col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL 5 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT DISTINCT col0 * col1 + + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT cor0.col1 + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + col1 * + col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL col0 + col1 - col2 FROM tab1
----
-25
-3
17
query I rowsort
SELECT ALL col2 * col1 * tab0.col2 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT ALL + tab1.col2 DIV tab1.col1 + - col1 FROM tab1
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL + tab1.col2 / tab1.col1 + - col1 FROM tab1
----
-24
-5
-6
query I rowsort
SELECT - col2 * - col1 + col0 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT col0 - - col1 DIV col0 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-2729
SELECT col0 - - col1 / col0 FROM tab1
----
11
64
80
query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 + col2 FROM tab0
----
71
7469
849
query I rowsort
SELECT DISTINCT tab2.col1 + - col1 AS col2 FROM tab2
----
0
query I rowsort
SELECT + tab1.col2 - col0 * col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT ALL + col2 + - col1 * - col1 + tab1.col1 * col2 FROM tab1
----
1513
2134
727
query I rowsort
SELECT ALL col2 * + col2 + col0 * - col0 FROM tab2
----
-4797
-5408
680
query I rowsort
SELECT + cor0.col1 + + col2 * col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + 39 FROM tab2, tab2 AS cor0
----
39
query I rowsort
SELECT ALL ( col1 + - col1 * - col2 ) FROM tab2
----
1593
663
868
query I rowsort
SELECT + 29 FROM tab0
----
29
29
29
query I rowsort
SELECT DISTINCT ( 21 + - col0 ) AS col0 FROM tab0
----
-14
-3
-68
query I rowsort
SELECT DISTINCT + 18 FROM tab2, tab0 cor0
----
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) + - col0 col2 FROM tab0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2742
SELECT ALL ( ( + col0 ) ) DIV + col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL ( ( + col0 ) ) / + col1 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT + 71 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
12
40
54
query I rowsort
SELECT + + ( cor0.col0 ) AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - col0 * - cor0.col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-2747
SELECT DISTINCT col2 DIV col1 - col2 AS col2 FROM tab1
----
-52
-89
skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT col2 / col1 - col2 AS col2 FROM tab1
----
-52
-89
query I rowsort
SELECT ALL cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + 72 FROM tab0 cor0
----
72
query I rowsort
SELECT DISTINCT + col2 * col2 * col0 + + col0 FROM tab0 cor0
----
26160
598525
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2751
SELECT - col0 DIV - col2 AS col0 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2751
SELECT - col0 / - col2 AS col0 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - 43 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-1092
-420
-546
query I rowsort
SELECT ALL col1 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab2
----
40
query I rowsort
SELECT ALL + + 42 + col0 + - col2 * - col1 FROM tab0 AS cor0
----
174
2904
7593
query I rowsort
SELECT col0 - col1 * - cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2757
SELECT DISTINCT 26 * - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
26
skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT 26 * - col1 / - col1 AS col0 FROM tab1 AS cor0
----
26
query I rowsort
SELECT ALL 64 * col2 AS col0 FROM tab0
----
2112
5248
64
query I rowsort
SELECT ( + 45 ) - + col1 AS col0 FROM tab2 AS cor0
----
-14
14
28
query I rowsort
SELECT col1 + - col2 * col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + col0 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT + - cor0.col1 + - 37 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1021
-1030
-1423
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col1 AS REAL ) * - col2 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT 81 FROM tab0 cor0
----
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2765
SELECT + - 61 * - col0 DIV + col0 + + col1 FROM tab0 AS cor0
----
147
152
158
skipif mysql # not compatible
query I rowsort label-2765
SELECT + - 61 * - col0 / + col0 + + col1 FROM tab0 AS cor0
----
147
152
158
query I rowsort
SELECT DISTINCT - col2 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT col1 * col1 * 48 FROM tab0 AS cor0
----
355008
397488
451632
onlyif mysql # use DIV operator for integer division
query I rowsort label-2768
SELECT DISTINCT ( - col2 ) - col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2768
SELECT DISTINCT ( - col2 ) - col2 / col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT 93 * + col2 + col0 AS col1 FROM tab2 AS cor0
----
2496
2518
3613
onlyif mysql # use DIV operator for integer division
query I rowsort label-2770
SELECT 35 + + col1 * col2 DIV col0 AS col2 FROM tab0 AS cor0
----
118
153
37
skipif mysql # not compatible
query I rowsort label-2770
SELECT 35 + + col1 * col2 / col0 AS col2 FROM tab0 AS cor0
----
118
153
37
query I rowsort
SELECT - 67 + col2 AS col0 FROM tab2 AS cor0
----
-29
-40
-41
query I rowsort
SELECT DISTINCT 38 * col2 + - col2 FROM tab1
----
1998
2109
3552
query I rowsort
SELECT DISTINCT col2 * - col1 + + col1 AS col0 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT - 62 * + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8ccb8323d1fa2c60b5f7496854776f8c
query I rowsort
SELECT DISTINCT - col0 * col2 + - col2 * - ( - 42 ) FROM tab2
----
-1323
-3120
-4598
query I rowsort
SELECT ALL col2 + 54 * + col2 * cor0.col0 FROM tab1 AS cor0
----
197049
414816
8802
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2777
SELECT ALL + - col2 / - CAST( NULL AS SIGNED ) + ( col0 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + - col2 / - CAST ( NULL AS INTEGER ) + ( col0 ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + + 87 FROM tab2 AS cor0
----
8
80
9
query I rowsort
SELECT ALL - col0 * cor0.col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - + col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2781
SELECT ALL + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL + col2 / col1 AS col2 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT - - col0 * ( col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col2 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT col1 * 8 * col2 FROM tab2 AS cor0
----
12272
5168
6696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2785
SELECT - col1 * + CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-2785
SELECT - col1 * + CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col1 * 71 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-15407
-326742
-95353
query I rowsort
SELECT - col0 * ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT + - col0 * 49 + 33 FROM tab2 AS cor0
----
-310
-3789
-3838
query I rowsort
SELECT + tab2.col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - ( - col1 ) + - 72 * + 72 * - tab1.col2 AS col1 FROM tab1
----
279962
295498
497677
query I rowsort
SELECT DISTINCT - col0 - - col1 * ( + col1 * - ( + tab0.col1 ) + + col0 ) FROM tab0
----
-634016
-745561
-909313
query I rowsort
SELECT + + col1 * 12 AS col0 FROM tab2 AS cor0
----
204
372
708
query I rowsort
SELECT ALL col2 * ( - col0 ) FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2794
SELECT + col2 + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2794
SELECT + col2 + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 72 * col1 FROM tab0 AS cor0
----
6192
6552
6984
query I rowsort
SELECT col1 * 7 + col1 FROM tab0
----
688
728
776
query I rowsort
SELECT - col1 * 4 + col1 * - col0 AS col2 FROM tab1
----
-1092
-182
-680
query I rowsort
SELECT ( - col2 + col0 ) * 19 AS col2 FROM tab2
----
-380
779
988
query I rowsort
SELECT DISTINCT + 45 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT - 22 DIV 13 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2800
SELECT - 22 / 13 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT - col0 + + col2 * col0 DIV ( col0 ) FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-2801
SELECT - col0 + + col2 * col0 / ( col0 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + cor0.col2 * - 15 AS col0 FROM tab1 cor0
----
-1440
-810
-855
query I rowsort
SELECT ALL + col1 * - 16 * col2 FROM tab1 AS cor0
----
-19968
-22464
-9120
query I rowsort
SELECT + col1 + + 54 AS col0 FROM tab1 cor0
----
64
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2805
SELECT - CAST( + col1 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-2805
SELECT - CAST ( + col1 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab0
----
-83
query I rowsort
SELECT DISTINCT - - col0 * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - ( col1 ) + col1 * - 57 * col1 FROM tab2 AS cor0
----
-16490
-198476
-54808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + cor0.col0 ) + - col1 col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - + col0 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + - col0 + + col0 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - col1 + col1 + 41 AS col2 FROM tab2 AS cor0
----
41
41
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT ALL - - col2 + - col2 DIV - col1 + col2 AS col1 FROM tab1 AS cor0
----
110
119
199
skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - - col2 + - col2 / - col1 + col2 AS col1 FROM tab1 AS cor0
----
110
119
199
query I rowsort
SELECT col1 * col0 + + ( 0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + - 30 FROM tab2 AS cor0
----
-30
query I rowsort
SELECT DISTINCT + - col2 + 15 FROM tab0 AS cor0
----
-18
-67
14
query I rowsort
SELECT + col2 * ( 20 ) FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT ALL - col2 * cor0.col1 + ( - col0 ) FROM tab0 cor0
----
-132
-2862
-7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + + cor0.col1 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + 1 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT col2 * + 12 AS col0 FROM tab2 AS cor0
----
312
324
456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * - col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ( tab1.col2 ) * col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col2 + col0 * - cor0.col0 FROM tab2 AS cor0
----
-6110
-6279
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 49 col0 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT - + ( col0 ) * + col1 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - + col1 + cor0.col1 * - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT ALL - col2 * + 66 + tab0.col0 AS col2 FROM tab0
----
-2154
-31
-5323
query I rowsort
SELECT ALL - col1 + ( col2 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - + cor0.col1 + - 10 FROM tab0 cor0
----
-101
-107
-96
query I rowsort
SELECT ALL - col2 + ( + cor0.col2 * col1 ) + - 63 AS col1 FROM tab2 AS cor0
----
1445
545
747
query I rowsort
SELECT DISTINCT + 60 FROM tab2, tab2 AS cor0
----
60
query I rowsort
SELECT 43 FROM tab1, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT + - 63 * cor0.col2 FROM tab2 cor0
----
-1638
-1701
-2394
query I rowsort
SELECT + col0 * col1 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT - + 12 + - col0 FROM tab2 AS cor0
----
-19
-90
-91
query I rowsort
SELECT - + 93 * col0 + 96 AS col0 FROM tab2 AS cor0
----
-555
-7158
-7251
onlyif mysql # use DIV operator for integer division
query I rowsort label-2839
SELECT ALL + col1 + + tab1.col2 DIV + col0 AS col1 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + col1 + + tab1.col2 / + col0 AS col1 FROM tab1
----
10
14
44
query I rowsort
SELECT - 96 - + col0 FROM tab0 AS cor0
----
-120
-131
-185
query I rowsort
SELECT + cor0.col0 * - col0 + - ( - 83 ) AS col0 FROM tab2 AS cor0
----
-6001
-6158
34
query I rowsort
SELECT + col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT - col1 DIV + ( + col1 ) FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2843
SELECT - col1 / + ( + col1 ) FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL + col0 + + col1 * col2 AS col0 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-2845
SELECT col2 DIV + 90 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2845
SELECT col2 / + 90 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 82 * 33 + col1 * 63 * + col1 AS col1 FROM tab0
----
463242
518997
590061
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2847
SELECT DISTINCT + 59 - - cor0.col0 * - CAST( + 65 AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
-1501
-2216
-5726
skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT + 59 - - cor0.col0 * - CAST ( + 65 AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
-1501
-2216
-5726
query I rowsort
SELECT DISTINCT - col1 - - cor0.col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT cor2.col1 + + 48 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
243 values hashing to fb358ac91b5d2026aa471e45986474ab
query I rowsort
SELECT + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + tab1.col1 AS col1 FROM tab1, tab0, tab1 cor0
----
10
13
26
query I rowsort
SELECT col1 * col2 * - tab0.col0 AS col1 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT col1 + + col0 + + col1 DIV 15 col2 FROM tab2
----
140
40
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2855
SELECT col1 + + col0 + + col1 / 15 col2 FROM tab2
----
140
40
97
query I rowsort
SELECT DISTINCT col0 - + col2 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL col2 * - col1 * 40 AS col2 FROM tab0 AS cor0
----
-113520
-298480
-3880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 18 * + 36 col0 FROM tab1 AS cor0
----
568
584
645
query I rowsort
SELECT + col1 * - 65 + + ( - cor0.col2 ) FROM tab0 AS cor0
----
-5623
-5997
-6306
query I rowsort
SELECT - col0 + col0 + col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 10 * - col0 - - 59 * 1 FROM tab1
----
-581
-741
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-2862
SELECT 94 DIV col0 FROM tab2
----
1
1
13
skipif mysql # not compatible
query I rowsort label-2862
SELECT 94 / col0 FROM tab2
----
1
1
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 col1 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT DISTINCT 11 - + col2 * col1 DIV + 16 AS col1 FROM tab1
----
-24
-67
-76
skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT 11 - + col2 * col1 / + 16 AS col1 FROM tab1
----
-24
-67
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 + - col0 col1 FROM tab1 AS cor0
----
-58
-74
3
query I rowsort
SELECT - col2 * col0 * ( - col0 * - col2 ) FROM tab1
----
-13307904
-26244
-58982400
query I rowsort
SELECT ALL - ( 38 ) * col0 FROM tab0 cor0
----
-1330
-3382
-912
onlyif mysql # use DIV operator for integer division
query I rowsort label-2868
SELECT DISTINCT + + col0 DIV col0 + col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + + col0 / col0 + col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL ( cor0.col1 ) + + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2870
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - - 43 AS col1 FROM tab1 cor0
----
43
43
43
query I rowsort
SELECT DISTINCT col1 * - 6 + col2 AS col1 FROM tab2
----
-159
-328
-64
query I rowsort
SELECT - 81 FROM tab2, tab2 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2874
SELECT col2 * col2 DIV + col1 FROM tab0 AS cor0
----
0
12
73
skipif mysql # not compatible
query I rowsort label-2874
SELECT col2 * col2 / + col1 FROM tab0 AS cor0
----
0
12
73
query I rowsort
SELECT ( + col2 ) * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col2 )
----
query I rowsort
SELECT + col1 + - tab0.col2 + col0 AS col1 FROM tab0
----
131
77
98
query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT IN ( col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT col1 * tab2.col1 + tab2.col0 FROM tab2
----
3559
368
968
query I rowsort
SELECT ALL col0 * + col0 + + col0 AS col2 FROM tab1
----
12
4160
6480
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT DISTINCT + col0 * - col0 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT + col2 - col1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL + col0 - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT col1 * + col1 + col2 - col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL col2 + - cor0.col0 * + col1 FROM tab1 cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT ALL col0 + col0 DIV col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL col0 + col0 / col2 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT DISTINCT + col2 + - col0 + + col2 AS col1 FROM tab1 cor0
----
105
112
50
query I rowsort
SELECT - tab1.col0 - tab1.col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT ALL col1 * - col2 + col1 AS col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT ( col0 ) IN ( + col2 + col2 * col0 )
----
86
91
97
query I rowsort
SELECT DISTINCT col0 * col1 + + col1 * col1 * - col2 AS col0 FROM tab2
----
-25730
-85904
-9639
onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT ALL col2 DIV - col1 + - col2 AS col1 FROM tab1
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL col2 / - col1 + - col2 AS col1 FROM tab1
----
-103
-56
-62
query I rowsort
SELECT DISTINCT + col2 + tab2.col2 + col1 FROM tab2
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2896
SELECT DISTINCT col2 DIV - col0 AS col2 FROM tab2
----
-3
0
skipif mysql # not compatible
query I rowsort label-2896
SELECT DISTINCT col2 / - col0 AS col2 FROM tab2
----
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT ALL col0 DIV tab0.col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL col0 / tab0.col1 AS col2 FROM tab0
----
0
0
0
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - col0 - col0 IN ( col1 * + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT tab1.col2 * col2 * col0 AS col1 FROM tab1
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT DISTINCT - col1 DIV col0 col0 FROM tab1
----
-8
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT - col1 / col0 col0 FROM tab1
----
-8
0
query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 FROM tab0 cor0
----
-2
-62
query I rowsort
SELECT + + col1 * col2 + col2 * + col1 AS col1 FROM tab1 cor0
----
1140
2496
2808
query I rowsort
SELECT ALL - - cor0.col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col2 + - col1 * + col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL - + col1 - + col1 * + col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT + + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - col0 * + col2 + - cor0.col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT ALL + col2 DIV col0 + - col0 * col2 AS col0 FROM tab1 cor0
----
-144
-3648
-7679
skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL + col2 / col0 + - col0 * col2 AS col0 FROM tab1 cor0
----
-144
-3648
-7679
onlyif mysql # use DIV operator for integer division
query I rowsort label-2909
SELECT + col1 + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-2909
SELECT + col1 + col2 / - col2 AS col1 FROM tab1 AS cor0
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * col0 - - col1 col0 FROM tab2
----
-1292
-158125
-237141
query I rowsort
SELECT col2 * - col1 + - tab2.col1 AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT + cor0.col0 + - col1 * - 26 FROM tab2 AS cor0
----
1612
521
813
query I rowsort
SELECT ALL - - cor0.col1 + col0 * ( col1 * - col0 ) AS col2 FROM tab1 AS cor0
----
-208
-40950
-83187
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2914
SELECT + - col2 + - ( cor0.col2 ) * + col2 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2914
SELECT + - col2 + - ( cor0.col2 ) * + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT + + col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2915
SELECT + + col1 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - cor0.col2 * col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + cor0.col2 * + col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT cor0.col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2919
SELECT + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2919
SELECT + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * - tab0.col1 * 43 AS col1 FROM tab0
----
-318028
-356083
-404587
query I rowsort
SELECT DISTINCT - col1 * + 69 AS col1 FROM tab1 cor0
----
-1794
-690
-897
query I rowsort
SELECT + + col2 + 80 * col0 AS col1 FROM tab0 AS cor0
----
1953
2801
7202
query I rowsort
SELECT ALL + col0 * + 26 AS col1 FROM tab0 AS cor0
----
2314
624
910
query I rowsort
SELECT + + col2 * - cor0.col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - 66 col1 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT col2 + + col0 * 39 FROM tab0 AS cor0
----
1366
3553
969
query I rowsort
SELECT col1 * 32 AS col2 FROM tab2 AS cor0
----
1888
544
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT col0 + col0 DIV + col1 AS col0 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-2928
SELECT col0 + col0 / + col1 AS col0 FROM tab1
----
3
70
86
query I rowsort
SELECT ALL tab2.col1 * + col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT col2 + col0 * col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT + col2 + - tab2.col1 * + tab2.col0 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( NULL ) = ( col1 )
----
query I rowsort
SELECT ALL col0 * - col1 * + col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT col2 FROM tab0 WHERE NULL IN ( + col0 )
----
query I rowsort
SELECT + ( col2 ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT col2 * + col2 * tab1.col0 AS col0 FROM tab1
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-2937
SELECT + tab0.col1 DIV - col0 + col2 col1 FROM tab0
----
-1
30
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2937
SELECT + tab0.col1 / - col0 + col2 col1 FROM tab0
----
-1
30
81
query I rowsort
SELECT DISTINCT col1 * col1 * col2 + col1 AS col1 FROM tab1
----
16237
36530
5710
query I rowsort
SELECT + col1 FROM tab2 WHERE NOT col2 BETWEEN + col0 AND col0
----
17
31
59
query I rowsort
SELECT ALL col1 * - col0 * col0 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - col0 * col0 AS col1 FROM tab0 WHERE ( + col0 + + col2 ) IN ( + col0 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col2 * - col1 )
----
query I rowsort
SELECT - col0 * col0 * + tab2.col2 FROM tab2
----
-1323
-158184
-237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col0 FROM tab0 AS cor0
----
53
query I rowsort
SELECT - 82 * + col0 AS col0 FROM tab0
----
-1968
-2870
-7298
query I rowsort
SELECT 57 + col2 AS col2 FROM tab1 AS cor0
----
111
114
153
query I rowsort
SELECT - col1 + col1 * + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL 37 * col1 + + ( 73 ) FROM tab0 cor0
----
3255
3440
3662
query I rowsort
SELECT 39 * col2 AS col2 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT DISTINCT - 22 + col0 * - 35 AS col0 FROM tab0 AS cor0
----
-1247
-3137
-862
query I rowsort
SELECT ALL - 43 FROM tab1 cor0
----
-43
-43
-43
query I rowsort
SELECT - 15 * - 73 - - col2 AS col1 FROM tab0 AS cor0
----
1096
1128
1177
query I rowsort
SELECT + - col0 + col1 * col1 + + 64 AS col2 FROM tab1 AS cor0
----
100
153
737
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 90 col2 FROM tab2 AS cor0
----
-1530
-2790
-5310
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 + 40 col0 FROM tab1 AS cor0
----
-24
-40
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + - 58 * + col2 col1 FROM tab2 AS cor0
----
-1469
-1527
-2165
query I rowsort
SELECT - 66 + - col1 + - col2 FROM tab1 AS cor0
----
-133
-146
-175
query I rowsort
SELECT + - col1 * - cor0.col2 - + col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col2 AS REAL ) + - col0 * + 66 FROM tab0 AS cor0
----
-1551
-2309
-5792
query I rowsort
SELECT - + 44 - ( - col1 + + col0 ) AS col1 FROM tab2 AS cor0
----
-106
-20
-63
query I rowsort
SELECT ALL col0 * - 0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab1, tab2 AS cor0
----
60
query I rowsort
SELECT DISTINCT ( col1 + col2 ) * col1 AS col1 FROM tab1
----
1417
2080
670
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2964
SELECT + ( 32 ) * tab0.col2 * - CAST( - 27 + col1 AS SIGNED ) FROM tab0
----
-167936
-2240
-62304
skipif mysql # not compatible
query I rowsort label-2964
SELECT + ( 32 ) * tab0.col2 * - CAST ( - 27 + col1 AS INTEGER ) FROM tab0
----
-167936
-2240
-62304
query I rowsort
SELECT + 82 + - col2 AS col0 FROM tab1 AS cor0
----
-14
25
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col0 * + col1 col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + 82 + col1 FROM tab0 AS cor0
----
168
173
179
onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT + col0 - - col0 DIV - ( + col1 * col2 + tab1.col2 ) AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2968
SELECT + col0 - - col0 / - ( + col1 * col2 + tab1.col2 ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT + + col1 + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 39 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2971
SELECT DISTINCT - tab0.col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT - tab0.col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col2 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT cor0.col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2973
SELECT cor0.col0 / + col1 AS col0 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 41 col0 FROM tab1 AS cor0
----
2214
2337
3936
onlyif mysql # use DIV operator for integer division
query I rowsort label-2975
SELECT + - col1 DIV - cor0.col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2975
SELECT + - col1 / - cor0.col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort
SELECT col2 * - CAST ( col1 + - col2 AS REAL ) FROM tab1 cor0
----
1512
2679
7968
query I rowsort
SELECT 4 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT + col2 * + 0 + 74 AS col2 FROM tab1
----
74
74
74
query I rowsort
SELECT ALL - - col2 * col1 * col2 + - col0 * ( + cor0.col0 ) * col1 FROM tab0 AS cor0
----
-108927
-118728
44118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT + cor0.col0 * - CAST( ( + col1 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2980
SELECT + cor0.col0 * - CAST ( ( + col1 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col0 * 52 FROM tab1 AS cor0
----
156
3328
4160
onlyif mysql # use DIV operator for integer division
query I rowsort label-2982
SELECT ALL - cor0.col2 DIV - col1 + col1 - - col0 col2 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL - cor0.col2 / - col1 + col1 - - col0 col2 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * - cor0.col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT DISTINCT 59 * + col0 + + col1 * col2 DIV 19 AS col1 FROM tab1 AS cor0
----
250
3806
4785
skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT 59 * + col0 + + col1 * col2 / 19 AS col1 FROM tab1 AS cor0
----
250
3806
4785
query I rowsort
SELECT ALL ( col0 ) * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT DISTINCT - col0 - + 27 DIV col0 FROM tab2 AS cor0
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT - col0 - + 27 / col0 FROM tab2 AS cor0
----
-10
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2987
SELECT ALL - col0 * col1 + col0 * + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2574
-28
1659
skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL - col0 * col1 + col0 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2574
-28
1659
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + 58 col1 FROM tab1 AS cor0
----
112
115
154
onlyif mysql # use DIV operator for integer division
query I rowsort label-2989
SELECT DISTINCT - 42 DIV col2 + col2 AS col2 FROM tab0 cor0
----
-41
32
82
skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - 42 / col2 + col2 AS col2 FROM tab0 cor0
----
-41
32
82
query I rowsort
SELECT ALL - - col2 + 88 * cor0.col1 FROM tab2 AS cor0
----
1534
2755
5218
query I rowsort
SELECT + 52 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT DISTINCT + + col1 + col0 * col2 AS col0 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT ALL 98 + col2 FROM tab0
----
131
180
99
query I rowsort
SELECT DISTINCT + 78 + col2 AS col1 FROM tab1
----
132
135
174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2995
SELECT + col1 + + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2995
SELECT + col1 + + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * col2 + 3 AS col0 FROM tab2 AS cor0
----
-1531
-643
-834
query I rowsort
SELECT - 13 * col0 + col0 AS col2 FROM tab0 AS cor0
----
-1068
-288
-420
query I rowsort
SELECT ALL - ( col2 ) + col1 - + col0 AS col1 FROM tab2 AS cor0
----
-100
-3
-45
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
onlyif mysql # use DIV operator for integer division
query I rowsort label-3000
SELECT + + col2 DIV cor0.col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3000
SELECT + + col2 / cor0.col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + + cor0.col1 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT - + 16 + + col1 AS col0 FROM tab0 AS cor0
----
70
75
81
query I rowsort
SELECT - col1 + col1 * - col0 AS col2 FROM tab0 cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL + - col1 + 13 FROM tab0 AS cor0
----
-73
-78
-84
query I rowsort
SELECT 70 AS col0 FROM tab1
----
70
70
70
query I rowsort
SELECT DISTINCT col0 * - tab1.col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col0 + + 50 AS col2 FROM tab0 AS cor0
----
139
74
85
query I rowsort
SELECT ALL - col1 - + 25 AS col2 FROM tab2 AS cor0
----
-42
-56
-84
query I rowsort
SELECT ALL col2 * 12 * col2 + col0 AS col2 FROM tab1 AS cor0
----
110672
34995
39052
query I rowsort
SELECT - cor0.col0 + ( 12 ) * + col1 AS col1 FROM tab1 AS cor0
----
309
56
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3011
SELECT ALL col1 * + CAST( NULL AS SIGNED ) + col0 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) + col0 * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-3013
SELECT tab0.col1 DIV - col1 - - ( + col2 * col2 ) AS col0 FROM tab0
----
0
1088
6723
skipif mysql # not compatible
query I rowsort label-3013
SELECT tab0.col1 / - col1 - - ( + col2 * col2 ) AS col0 FROM tab0
----
0
1088
6723
query I rowsort
SELECT + 93 + + col0 AS col1 FROM tab1
----
157
173
96
query I rowsort
SELECT col0 * col2 - + col2 * tab0.col2 AS col2 FROM tab0
----
-297
34
574
query I rowsort
SELECT 43 + 53 * col2 AS col2 FROM tab2
----
1421
1474
2057
query I rowsort
SELECT + 26 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT DISTINCT - 39 * col2 * + 6 FROM tab0
----
-19188
-234
-7722
query I rowsort
SELECT - tab0.col2 + 80 FROM tab0, tab1 cor0
----
9 values hashing to 0e59a6b9033441e29a139d929410b258
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * tab1.col1 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 57 + cor0.col0 FROM tab2 AS cor0
----
135
136
64
query I rowsort
SELECT - tab2.col1 + col1 + - col2 AS col1 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col1 + col1 * + 40 FROM tab0
----
3526
3731
3977
query I rowsort
SELECT ALL col0 + - col1 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL tab0.col1 + + col0 * - 54 FROM tab0
----
-1210
-1793
-4715
query I rowsort
SELECT + col1 * + col1 AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + cor0.col0 * - col1 - + col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL col1 * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - ( + 29 ) * col0 + 1 * + col1 AS col0 FROM tab1 AS cor0
----
-1846
-2307
-61
query I rowsort
SELECT ALL + + ( - cor0.col2 ) + + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 97 + col0 FROM tab0 AS cor0
----
121
132
186
query I rowsort
SELECT DISTINCT + - 13 * + 33 FROM tab2 AS cor0
----
-429
query I rowsort
SELECT ALL col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + ( col0 ) * - col0 AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ALL cor0.col2 + 45 FROM tab1 AS cor0
----
102
141
99
query I rowsort
SELECT ALL + + col2 + + 94 AS col1 FROM tab0 AS cor0
----
127
176
95
query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab1 AS cor0
----
44
query I rowsort
SELECT col1 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT - 38 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2878
3211
9178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3040
SELECT - CAST( NULL AS SIGNED ) + col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3040
SELECT - CAST ( NULL AS INTEGER ) + col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + ( col0 ) + 75 + + col1 AS col0 FROM tab1 cor0
----
-4011
-6312
92
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3043
SELECT ALL - + CAST( 23 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23
-23
-23
skipif mysql # not compatible
query I rowsort label-3043
SELECT ALL - + CAST ( 23 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23
-23
-23
query I rowsort
SELECT DISTINCT 93 * col0 AS col2 FROM tab1 AS cor0
----
279
5952
7440
query I rowsort
SELECT DISTINCT - 32 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1216
-832
-864
skipif mysql # not compatible
query I rowsort
SELECT + ( 13 ) + + col0 * + CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
-4083
-6387
4
query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + 98 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT DISTINCT + + 48 * + ( - cor0.col0 ) AS col0 FROM tab2 cor0
----
-336
-3744
-3792
query I rowsort
SELECT + 65 * + col2 * + col0 FROM tab0
----
2275
474370
51480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT - CAST( NULL AS SIGNED ) * 68 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3051
SELECT - CAST ( NULL AS INTEGER ) * 68 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - 4 col0 FROM tab0 AS cor0
----
20
31
85
query I rowsort
SELECT - + col2 * col2 + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT col0 + - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col1 FROM tab1
----
23
query I rowsort
SELECT + col0 * 23 FROM tab2
----
161
1794
1817
query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - 41 + + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1302
176
4561
query I rowsort
SELECT ( - col2 ) + - ( - 93 ) + col0 FROM tab0 AS cor0
----
100
127
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3060
SELECT + col1 * CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3060
SELECT + col1 * CAST ( NULL AS REAL ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + cor0.col2 col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT - cor0.col2 * + 40 - + ( col0 + - col0 ) AS col1 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT + col2 + 3 AS col1 FROM tab0 AS cor0
----
36
4
85
query I rowsort
SELECT ALL + + col0 * cor0.col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab0, tab2, tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( - col0 AS REAL ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT - cor0.col1 DIV 92 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3067
SELECT - cor0.col1 / 92 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT tab2.col0 * - col1 AS col2 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3069
SELECT - + 36 DIV + col2 + col2 DIV - CAST( - 41 AS SIGNED ) FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-3069
SELECT - + 36 / + col2 + col2 / - CAST ( - 41 AS INTEGER ) FROM tab1 AS cor0
----
1
1
2
query I rowsort
SELECT - 47 + 56 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT - col2 - + 34 * col0 FROM tab1 AS cor0
----
-156
-2233
-2816
query I rowsort
SELECT col1 * - col1 + 82 FROM tab0 AS cor0
----
-7314
-8199
-9327
query I rowsort
SELECT DISTINCT col2 * - ( + col0 * + col0 ) FROM tab2
----
-1323
-158184
-237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3075
SELECT - col2 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3075
SELECT - col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 65 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT + col1 + col2 DIV 16 AS col0 FROM tab0 cor0
----
88
96
97
skipif mysql # not compatible
query I rowsort label-3077
SELECT + col1 + col2 / 16 AS col0 FROM tab0 cor0
----
88
96
97
query I rowsort
SELECT + cor0.col1 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT 20 AS col2 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT ALL + + ( - col0 ) * + col1 * - col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + 81 AS col2 FROM tab2 AS cor0
----
81
81
81
query I rowsort
SELECT ( + col2 ) AS col0 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * - col2 + col2 col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL col2 * + col1 - ( - col2 ) * + col2 FROM tab2 AS cor0
----
1566
2090
2210
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col2 FROM tab0
----
20
query I rowsort
SELECT ALL col1 + - col2 - + col0 AS col2 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT ALL + col1 * + 35 AS col1 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT DISTINCT - + col0 + 57 FROM tab1 AS cor0
----
-23
-7
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3089
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3089
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab0
----
-77
query I rowsort
SELECT col2 + tab1.col0 + - col0 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL 63 * - 46 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 19c6342d1d1a4a85a1f2e499d086a236
query I rowsort
SELECT + + 3 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT ALL - 19 DIV col0 AS col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL - 19 / col0 AS col1 FROM tab2
----
-2
0
0
query I rowsort
SELECT DISTINCT 12 + tab2.col0 * 89 AS col1 FROM tab2, tab1 AS cor0
----
635
6954
7043
query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT 50 * col1 * - tab1.col0 AS col1 FROM tab1
----
-32000
-3900
-52000
query I rowsort
SELECT ALL + tab2.col0 + - col0 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + col2 * - col1 + col1 FROM tab1 cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-3100
SELECT + col1 * - col1 DIV + col1 + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3100
SELECT + col1 * - col1 / + col1 + col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + 62 * col0 col0 FROM tab2
----
466
4868
4930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3102
SELECT + CAST( ( + col0 ) AS SIGNED ) AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3102
SELECT + CAST ( ( + col0 ) AS INTEGER ) AS col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3103
SELECT ALL 46 DIV tab2.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0c0b138578d24c14d41ceab68dfc9437
skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL 46 / tab2.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0c0b138578d24c14d41ceab68dfc9437
query I rowsort
SELECT - ( - cor0.col2 ) + cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0
query I rowsort
SELECT - col1 + - col0 + col2 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT DISTINCT - 95 * - col1 + col1 * - 64 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT DISTINCT col0 * - col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT + cor0.col2 * col1 * ( + 86 ) AS col1 FROM tab0 AS cor0
----
244068
641732
8342
query I rowsort
SELECT ALL + + col1 * + col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 * - col2 * col2 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT DISTINCT - col1 - + col2 * - col0 AS col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT - col2 + + col0 * + tab1.col2 * col2 AS col0 FROM tab1
----
207879
737184
8694
query I rowsort
SELECT ALL - cor0.col1 * col2 * col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + - col0 - ( col1 ) FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * + col1 + - 11 col1 FROM tab0 AS cor0
----
-2075
-3406
-8110
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3116
SELECT - - CAST( + 79 AS SIGNED ) FROM tab2 AS cor0
----
79
79
79
skipif mysql # not compatible
query I rowsort label-3116
SELECT - - CAST ( + 79 AS INTEGER ) FROM tab2 AS cor0
----
79
79
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 - + col2 col1 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT DISTINCT + - 71 * col1 + + col1 * - ( col2 ) + - col2 FROM tab1 AS cor0
----
-1337
-2267
-3304
query I rowsort
SELECT DISTINCT col2 * + ( col0 ) * col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - 53 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-1725
-18
-4257
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3121
SELECT ALL + + CAST( NULL AS SIGNED ) * col1 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL + + CAST ( NULL AS INTEGER ) * col1 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + col2 AS col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - 22 * 31 * col1 + 94 FROM tab1 AS cor0
----
-17638
-6726
-8772
query I rowsort
SELECT ALL - + 9 * - col0 - col1 AS col1 FROM tab2 AS cor0
----
32
643
694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 95 col0 FROM tab1 cor0
----
149
152
191
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3126
SELECT DISTINCT - CAST( + 91 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-91
skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - CAST ( + 91 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-91
query I rowsort
SELECT - - col0 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab2, tab1 AS cor0
----
95
query I rowsort
SELECT col1 * - ( + tab0.col2 + + col1 ) AS col1 FROM tab0
----
-10234
-15743
-9506
query I rowsort
SELECT ALL col2 * + col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT col0 * ( - col1 ) AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col1 * ( - col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - + col1 + - 89 * 60 AS col1 FROM tab2 AS cor0
----
-5357
-5371
-5399
onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT col1 + + col0 DIV 3 AS col2 FROM tab1 cor0
----
27
31
39
skipif mysql # not compatible
query I rowsort label-3134
SELECT col1 + + col0 / 3 AS col2 FROM tab1 cor0
----
27
31
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 11 col2 FROM tab2 AS cor0
----
286
297
418
query I rowsort
SELECT DISTINCT - col2 + + cor0.col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT + col0 * - 18 AS col2 FROM tab0 cor0
----
-1602
-432
-630
query I rowsort
SELECT + - cor0.col0 * 8 AS col0 FROM tab2 AS cor0
----
-56
-624
-632
query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + 44 + + col1 + ( col2 ) AS col1 FROM tab2
----
102
129
99
query I rowsort
SELECT - col2 + col0 + tab1.col0 FROM tab1
----
-48
64
71
query I rowsort
SELECT ALL + col0 * - col0 + + col2 AS col2 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT ALL + 22 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3144
SELECT ALL col1 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL col1 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT tab1.col2 * + 67 AS col2 FROM tab1
----
3618
3819
6432
query I rowsort
SELECT ALL ( 41 ) FROM tab1, tab0 cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT DISTINCT - cor0.col2 * + 31 + - col1 FROM tab0 AS cor0
----
-1109
-128
-2633
query I rowsort
SELECT 2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # use DIV operator for integer division
query I rowsort label-3149
SELECT ALL 69 - col1 DIV - col0 AS col1 FROM tab2
----
69
69
73
skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL 69 - col1 / - col0 AS col1 FROM tab2
----
69
69
73
query I rowsort
SELECT ALL - tab2.col1 - tab2.col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT 63 FROM tab1, tab0 AS cor0
----
63
query I rowsort
SELECT ALL + ( + col0 ) + col0 * col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL col2 * - col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - col1 + + cor0.col1 * 62 FROM tab1 AS cor0
----
1586
610
793
onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT DISTINCT ( col2 ) DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT ( col2 ) / col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col0 * + col1 * col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + 35 * col0 AS col1 FROM tab0
----
1225
3115
840
query I rowsort
SELECT DISTINCT col2 * - 28 * - col1 AS col0 FROM tab0
----
208936
2716
79464
query I rowsort
SELECT DISTINCT ( - 88 ) AS col1 FROM tab0
----
-88
query I rowsort
SELECT ALL + col2 * - cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT DISTINCT col0 DIV col0 + ( - 27 ) + - col1 col2 FROM tab2
----
-43
-57
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT col0 / col0 + ( - 27 ) + - col1 col2 FROM tab2
----
-43
-57
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab1, tab1 cor0
----
54
57
96
query I rowsort
SELECT 59 + - cor0.col0 FROM tab1 AS cor0
----
-21
-5
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + + col0 + col2 * + col0 col1 FROM tab2 AS cor0
----
385
4134
6083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - cor0.col1 * - col1 * 78 FROM tab1 AS cor0
----
13182
52728
7800
query I rowsort
SELECT ALL - 57 * col1 FROM tab2 cor0
----
-1767
-3363
-969
query I rowsort
SELECT ALL + 72 AS col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT ALL 10 + tab0.col0 AS col0 FROM tab0
----
34
45
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + tab2.col0 + col0 + + col1 col0 FROM tab2
----
-151
-1891
-2906
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3171
SELECT DISTINCT - - 29 * - col2 + - CAST( - col0 AS SIGNED ) * + col2 * - 39 AS col2 FROM tab2 AS cor0
----
-118180
-79846
-8154
skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT - - 29 * - col2 + - CAST ( - col0 AS INTEGER ) * + col2 * - 39 AS col2 FROM tab2 AS cor0
----
-118180
-79846
-8154
query I rowsort
SELECT - ( - col1 ) - - cor0.col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT DISTINCT 21 DIV col0 + col0 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
skipif mysql # not compatible
query I rowsort label-3173
SELECT DISTINCT 21 / col0 + col0 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 10 - - cor0.col1 col0 FROM tab0 cor0
----
-154
-253
-799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3175
SELECT + + col1 + CAST( NULL AS SIGNED ) * + 37 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3175
SELECT + + col1 + CAST ( NULL AS INTEGER ) * + 37 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - ( - col1 ) + col1 * ( + col0 * cor0.col2 ) + + ( col1 ) FROM tab2 AS cor0
----
118177
50405
5053
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3177
SELECT + col0 + + CAST( + ( - col1 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-3177
SELECT + col0 + + CAST ( + ( - col1 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT - col2 - ( + col1 ) * - col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT col1 + 85 - col2 FROM tab0 AS cor0
----
138
181
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-3180
SELECT - col2 + cor0.col0 DIV 31 FROM tab1 AS cor0
----
-54
-55
-94
skipif mysql # not compatible
query I rowsort label-3180
SELECT - col2 + cor0.col0 / 31 FROM tab1 AS cor0
----
-54
-55
-94
query I rowsort
SELECT + 26 FROM tab2 AS cor0
----
26
26
26
query I rowsort
SELECT DISTINCT + ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - + ( - 29 ) FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT + 44 + - ( col0 ) FROM tab1 cor0
----
-20
-36
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + ( + col2 ) col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3186
SELECT ALL + - 82 * ( - col2 ) + - CAST( col0 AS SIGNED ) + - col2 * 20 AS col2 FROM tab1 AS cor0
----
3345
3470
5872
skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL + - 82 * ( - col2 ) + - CAST ( col0 AS INTEGER ) + - col2 * 20 AS col2 FROM tab1 AS cor0
----
3345
3470
5872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 97 + + cor0.col1 col1 FROM tab2 AS cor0
----
114
128
156
query I rowsort
SELECT ALL col1 + - col1 * + cor0.col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - 1 + - col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ( col2 ) * + ( + cor0.col2 ) + col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT col2 * - col0 + - col2 * col1 * - 23 FROM tab1
----
21024
32130
9462
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 * + col2 AS REAL ) AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT 67 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8
query I rowsort
SELECT DISTINCT - 81 FROM tab2, tab0 AS cor0
----
-81
query I rowsort
SELECT ALL + 59 + col2 FROM tab2 AS cor0
----
85
86
97
query I rowsort
SELECT DISTINCT - + ( - col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - - 29 AS col1 FROM tab2 AS cor0
----
29
29
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 * col0 + + col1 col2 FROM tab0 cor0
----
-1956
-466
-708
query I rowsort
SELECT col1 * col2 * 98 FROM tab2 AS cor0
----
150332
63308
82026
onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT 16 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3201
SELECT 16 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 25 + col1 AS col0 FROM tab2 AS cor0
----
-8
34
6
query I rowsort
SELECT - + 76 * cor0.col2 FROM tab1 cor0
----
-4104
-4332
-7296
query I rowsort
SELECT ALL - 53 + 78 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT DISTINCT + - 0 * + col1 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col0 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + + col1 * ( ( + col0 ) ) col0 FROM tab2 cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * col1 col0 FROM tab1 AS cor0
----
230
299
598
query I rowsort
SELECT cor0.col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col2 + ( - 21 ) FROM tab0 cor0
----
-20
12
61
query I rowsort
SELECT + - cor0.col1 * ( + col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - - cor2.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6
query I rowsort
SELECT DISTINCT cor1.col2 * 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
1890
1995
3360
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3217
SELECT - + col1 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3217
SELECT - + col1 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + ( col2 ) col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + - col1 + ( - col0 ) FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3220
SELECT - col0 DIV col0 - - col1 col0 FROM tab0 cor0
----
85
90
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3220
SELECT - col0 / col0 - - col1 col0 FROM tab0 cor0
----
85
90
96
query I rowsort
SELECT ALL + col2 * 7 + col0 FROM tab1 cor0
----
381
463
752
query I rowsort
SELECT DISTINCT - col2 * - ( + col1 ) - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - - col0 * 85 - col1 AS col1 FROM tab1 AS cor0
----
229
5430
6787
query I rowsort
SELECT + col1 * + cor0.col1 AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT 42 * - 11 * + col2 + + col1 FROM tab1 AS cor0
----
-24922
-26324
-44339
query I rowsort
SELECT DISTINCT - col0 * - 97 + col1 FROM tab0 AS cor0
----
2414
3492
8724
query I rowsort
SELECT DISTINCT + 32 + col0 AS col0 FROM tab1 cor0
----
112
35
96
query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1, tab0, tab0 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
query I rowsort
SELECT ALL + 36 + - 46 * + col0 AS col0 FROM tab2 AS cor0
----
-286
-3552
-3598
query I rowsort
SELECT DISTINCT - 26 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
143
650
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3231
SELECT col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3231
SELECT col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 - col2 AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT 51 + + col2 + + col0 FROM tab0 cor0
----
108
222
87
query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab0 AS cor0
----
22
query I rowsort
SELECT DISTINCT col1 * 59 FROM tab1 cor0
----
1534
590
767
query I rowsort
SELECT ALL col1 + + cor0.col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT ( 59 ) - + col1 * col2 * + 44 FROM tab0 AS cor0
----
-124813
-328269
-4209
query I rowsort
SELECT - + col0 * 89 - - col1 AS col1 FROM tab1 AS cor0
----
-241
-5686
-7107
query I rowsort
SELECT DISTINCT + + 73 + + col2 AS col2 FROM tab2 cor0
----
100
111
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-3240
SELECT DISTINCT cor0.col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT cor0.col0 / - col0 AS col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL - 97 * col1 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT + tab2.col2 + tab2.col2 + col1 * tab2.col2 AS col0 FROM tab2
----
1586
722
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT DISTINCT + col0 - - col0 AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL - ( + 30 ) FROM tab0 AS cor0
----
-30
-30
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * - col0 col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT col0 * - col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) - cor0.col2 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 78 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT ALL 81 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
onlyif mysql # use DIV operator for integer division
query I rowsort label-3251
SELECT + 65 * col1 + 95 DIV + col2 FROM tab1 AS cor0
----
1691
651
845
skipif mysql # not compatible
query I rowsort label-3251
SELECT + 65 * col1 + 95 / + col2 FROM tab1 AS cor0
----
1691
651
845
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3252
SELECT - CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3252
SELECT - CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3253
SELECT ALL + CAST( ( col1 ) AS SIGNED ) + col2 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
29
3
77
skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL + CAST ( ( col1 ) AS INTEGER ) + col2 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT - 71 FROM tab0 cor0
----
-71
-71
-71
query I rowsort
SELECT ALL + 15 + - cor0.col2 - - col2 FROM tab1 AS cor0
----
15
15
15
query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - ( + col2 ) + col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3258
SELECT - col0 DIV - col0 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3258
SELECT - col0 / - col0 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT col2 * + 86 + col2 AS col1 FROM tab1
----
4698
4959
8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-3260
SELECT + tab0.col2 DIV col0 col1 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3260
SELECT + tab0.col2 / col0 col1 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( 97 ) * col1 col1 FROM tab2
----
28033
337657
93217
query I rowsort
SELECT tab0.col0 + 10 + + col2 * col2 AS col1 FROM tab0
----
1123
46
6823
onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT ALL - col0 + 6 + - 82 DIV col1 FROM tab2
----
-3
-73
-77
skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - col0 + 6 + - 82 / col1 FROM tab2
----
-3
-73
-77
query I rowsort
SELECT 10 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT DISTINCT - col2 - col0 * 78 FROM tab2
----
-573
-6110
-6200
onlyif mysql # use DIV operator for integer division
query I rowsort label-3266
SELECT + tab0.col0 * 94 + col2 DIV - col2 col2 FROM tab0
----
2255
3289
8365
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3266
SELECT + tab0.col0 * 94 + col2 / - col2 col2 FROM tab0
----
2255
3289
8365
query I rowsort
SELECT + tab2.col0 + 24 AS col0 FROM tab2
----
102
103
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-3268
SELECT tab0.col2 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3268
SELECT tab0.col2 / + col1 FROM tab0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3269
SELECT tab2.col2 * - CAST( NULL AS SIGNED ) * col0 + tab2.col0 - tab2.col2 / col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3269
SELECT tab2.col2 * - CAST ( NULL AS INTEGER ) * col0 + tab2.col0 - tab2.col2 / col0 AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT - tab0.col0 + + col2 DIV - col1 + - col0 * + ( + col1 ) * + col1 AS col2 FROM tab0
----
-177528
-329350
-737098
skipif mysql # not compatible
query I rowsort label-3270
SELECT - tab0.col0 + + col2 / - col1 + - col0 * + ( + col1 ) * + col1 AS col2 FROM tab0
----
-177528
-329350
-737098
query I rowsort
SELECT ALL - + col0 * ( col2 ) * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT - 66 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT ALL - col0 + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col1 + col0 AS col0 FROM tab2 WHERE ( NULL ) NOT IN ( tab2.col2 )
----
query I rowsort
SELECT col0 * col2 + tab1.col2 * col0 + col2 AS col2 FROM tab1
----
15456
378
7353
query I rowsort
SELECT ALL + cor0.col0 + - col1 * + col2 AS col2 FROM tab1 cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL col2 * - col2 + - col2 FROM tab1 cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT col2 * - col2 + col2 - cor0.col2 * - col0 FROM tab1 AS cor0
----
-1440
-2700
456
query I rowsort
SELECT - cor0.col1 + col0 AS col2 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT - + col2 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col2 * - cor0.col2 - cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
-1690
-1733
-4157
query I rowsort
SELECT ALL - cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3285
SELECT DISTINCT + + col2 DIV + col1 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + + col2 / + col1 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0 + + col1 * col2 * col0 )
----
query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( + col1 ) AND col1
----
query I rowsort
SELECT ALL - tab2.col1 * + col0 + tab2.col2 * col2 + col2 AS col0 FROM tab2
----
-3900
139
539
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT DISTINCT + - cor0.col1 + col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT + - cor0.col1 + col0 / + col0 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT - + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT DISTINCT col1 + col1 DIV + col0 col2 FROM tab1 AS cor0
----
10
13
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT col1 + col1 / + col0 col2 FROM tab1 AS cor0
----
10
13
34
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0, tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + + cor0.col2 + + cor0.col0 * - col0 * col0 - - col0 AS col2 FROM tab1 cor0
----
-262023
-511824
30
query I rowsort
SELECT ALL - - col1 + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - 97 + - col2 FROM tab0
----
-130
-179
-98
query I rowsort
SELECT + 66 + col0 FROM tab0 AS cor0
----
101
155
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT col1 DIV + col1 col1 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3298
SELECT col1 / + col1 col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col2 - tab1.col2 AS col2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT - col2 + col2 * + col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT + 14 * col2 AS col2 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT - 97 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + col0 * col0 * col0
----
query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NULL >= NULL
----
query I rowsort
SELECT + col0 - + col2 * + col1 AS col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL + tab0.col0 + col1 * col2 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL + tab2.col0 + tab2.col0 * tab2.col2 * + col2 FROM tab2
----
114155
5110
52806
query I rowsort
SELECT ALL - tab2.col1 + - col2 AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT + col2 * + cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col1 AND ( tab0.col0 )
----
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 * - cor0.col1 FROM tab2 AS cor0
----
205379
29791
4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 + + col0 * + col0 * tab1.col2 col0 FROM tab1
----
229824
324
606720
query I rowsort
SELECT DISTINCT col1 * tab1.col0 * tab1.col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT DISTINCT + col1 * + tab2.col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col0 * + col2 * + col2 - col0 FROM tab0
----
-26160
-598525
-70
query I rowsort
SELECT - col2 FROM tab1 WHERE NOT ( NULL ) <> ( col2 )
----
query I rowsort
SELECT col2 FROM tab2 WHERE col2 NOT IN ( - col1 * - col0 )
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 - + col0 AS col1 FROM tab0 WHERE NOT + col2 * col0 * - col1 IN ( col0 )
----
-178
-48
-70
query I rowsort
SELECT col1 FROM tab2 WHERE col1 < NULL
----
query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT col1 / col2 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT tab0.col2 + col1 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT col0 + + col1 + - col0 FROM tab1
----
10
13
26
query I rowsort
SELECT + tab2.col2 + + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL col2 + col1 * col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE ( NULL ) <= ( + tab1.col2 + + col1 )
----
query I rowsort
SELECT - tab0.col1 + + tab0.col0 + col2 * + col2 FROM tab0
----
-61
1027
6722
query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND col2 * col2 + col1
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3330
SELECT - col1 DIV - 62 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3330
SELECT - col1 / - 62 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3332
SELECT DISTINCT col2 + + col0 DIV - 93 col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT col2 + + col0 / - 93 col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 14 + + col1 + col2 * - 9 AS col1 FROM tab0
----
-197
-633
102
query I rowsort
SELECT 94 * col1 FROM tab0
----
8084
8554
9118
query I rowsort
SELECT tab2.col1 * - col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL - 17 + - tab0.col2 - col2 * + col1 AS col0 FROM tab0
----
-115
-2888
-7561
onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT DISTINCT tab0.col0 - + col2 DIV + tab0.col0 AS col1 FROM tab0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT tab0.col0 - + col2 / + tab0.col0 AS col1 FROM tab0
----
23
35
89
query I rowsort
SELECT col1 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - - cor0.col0 * - ( col2 ) + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + cor0.col0 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-3341
SELECT - + cor0.col2 * cor0.col1 + + 73 DIV + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-3341
SELECT - + cor0.col2 * cor0.col1 + + 73 / + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col2 + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT cor0.col2 + - ( ( + col1 ) ) FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3344
SELECT ALL - cor0.col2 DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - cor0.col2 / col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT - col1 + + ( col2 ) FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3346
SELECT col0 DIV - CAST( - 67 * col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3346
SELECT col0 / - CAST ( - 67 * col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - col2 * + 51 + 70 FROM tab2 cor0
----
-1256
-1307
-1868
query I rowsort
SELECT col0 * - col1 + ( col1 ) AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT - - cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col2 * - col1 * col2 FROM tab1 cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL + ( + cor1.col1 ) AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT + ( col1 ) AS col1 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3353
SELECT + col2 + + 38 DIV col2 col0 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3353
SELECT + col2 + + 38 / col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - 0 * col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 3 FROM tab2, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT col1 * col2 * col0 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL - + ( cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + - 62 FROM tab1 AS cor0
----
-62
-62
-62
query I rowsort
SELECT - - col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT DISTINCT col2 DIV + col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT col2 / + col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT + ( + col0 ) + ( col0 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT + + col0 + - cor0.col1 * 35 * col2 FROM tab2 AS cor0
----
-22531
-29288
-53612
query I rowsort
SELECT cor0.col2 + col0 * ( 26 ) FROM tab1 AS cor0
----
132
1721
2176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * ( tab0.col1 ) col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 * ( 82 ) + - col0 * - cor0.col0 FROM tab1 AS cor0
----
2167
4926
7479
query I rowsort
SELECT ALL + + col1 + + col2 * col0 * 60 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
2100
437880
47520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 + col1 col1 FROM tab2 AS cor0
----
113
127
155
query I rowsort
SELECT - col0 * col0 * 41 FROM tab2 AS cor0
----
-2009
-249444
-255881
query I rowsort
SELECT DISTINCT - cor0.col2 - - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + 97 AS col0 FROM tab0 AS cor0
----
97
97
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 * col1 + + col0 col0 FROM tab2 AS cor0
----
-1094
-2132
-3993
query I rowsort
SELECT ALL + 89 - - col2 AS col1 FROM tab1 AS cor0
----
143
146
185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - ( - 39 ) col0 FROM tab0 AS cor0
----
1287
3198
39
query I rowsort
SELECT + + cor0.col1 + 48 AS col1 FROM tab0 AS cor0
----
134
139
145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + ( - 6 ) col2 FROM tab1 cor0
----
18
384
480
onlyif mysql # use DIV operator for integer division
query I rowsort label-3377
SELECT DISTINCT - col1 DIV - 40 FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT - col1 / - 40 FROM tab0 AS cor0
----
2
query I rowsort
SELECT ALL ( col2 ) - + col0 * 46 FROM tab1
----
-2887
-3584
-84
query I rowsort
SELECT col1 + + 91 AS col1 FROM tab0 cor0
----
177
182
188
query I rowsort
SELECT DISTINCT + - 40 FROM tab2 cor0
----
-40
query I rowsort
SELECT + + col1 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) * + col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + 94 * + col1 AS col1 FROM tab2 AS cor0
----
1598
2914
5546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col1 FROM tab2, tab0 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT - col0 * + col2 + + col2 AS col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT ALL - - col0 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT tab0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * - col0 col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - 53 FROM tab2, tab0 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT ALL col0 * cor0.col1 * - col1 AS col0 FROM tab2 cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL col0 + - 31 * col2 AS col1 FROM tab0 cor0
----
-2453
-999
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT col2 DIV 81 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3392
SELECT col2 / 81 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col0 * 55 FROM tab2 AS cor0
----
385
4290
4345
query I rowsort
SELECT ALL - col1 + col0 * 19 AS col2 FROM tab0 AS cor0
----
1600
370
568
query I rowsort
SELECT - ( 37 ) + col2 FROM tab1 AS cor0
----
17
20
59
query I rowsort
SELECT + col0 * + ( + col2 ) AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + col0 * - 29 * col1 + col0 * - 72 - col2 AS col1 FROM tab1 AS cor0
----
-23225
-2532
-36016
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * + col2 col1 FROM tab2 AS cor0
----
520
540
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3399
SELECT + CAST( NULL AS SIGNED ) * - col1 * + col2 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3399
SELECT + CAST ( NULL AS INTEGER ) * - col1 * + col2 - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 59 * - col2 FROM tab1
----
-3186
-3363
-5664
query I rowsort
SELECT col2 * col2 * - tab0.col2 + + 90 AS col1 FROM tab0
----
-35847
-551278
89
query I rowsort
SELECT 15 * + col0 * col1 FROM tab0
----
121485
30960
50925
onlyif mysql # use DIV operator for integer division
query I rowsort label-3403
SELECT DISTINCT - col0 DIV + col0 + + col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - col0 / + col0 + + col1 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3404
SELECT DISTINCT - cor0.col2 * col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT - cor0.col2 * col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab2
----
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT DISTINCT col2 DIV - col1 + 31 AS col0 FROM tab1 AS cor0
----
24
26
29
skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT col2 / - col1 + 31 AS col0 FROM tab1 AS cor0
----
24
26
29
query I rowsort
SELECT ALL - col1 * col1 * ( - ( col0 ) ) + 58 AS col2 FROM tab0 AS cor0
----
177562
329373
737067
query I rowsort
SELECT DISTINCT - 2 AS col0 FROM tab1 AS cor0
----
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3409
SELECT DISTINCT + ( - col0 ) * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT + ( - col0 ) * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col0 * - col0 + - col2 * col1 + - col0 FROM tab0 AS cor0
----
-1357
-15472
-3438
query I rowsort
SELECT DISTINCT col2 * + 19 + col0 FROM tab1 AS cor0
----
1029
1147
1904
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 * 23 FROM tab1 AS cor0
----
-14720
-1794
-23920
query I rowsort
SELECT ALL + col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + + col2 + col0 AS col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3415
SELECT ALL - col0 + - CAST( 6 * + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-540
-617
-635
skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - col0 + - CAST ( 6 * + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-540
-617
-635
onlyif mysql # use DIV operator for integer division
query I rowsort label-3416
SELECT ALL col2 DIV + CAST( + 78 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL col2 / + CAST ( + 78 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - col2 + 63 * col2 AS col1 FROM tab1 AS cor0
----
3456
3648
6144
query I rowsort
SELECT - col0 + 71 FROM tab0 AS cor0
----
-18
36
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + col0 + + 47 * - col0 FROM tab0 AS cor0
----
-1104
-1610
-4094
onlyif mysql # use DIV operator for integer division
query I rowsort label-3422
SELECT - col2 * - col2 * + cor0.col1 + - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
611883
93651
95
skipif mysql # not compatible
query I rowsort label-3422
SELECT - col2 * - col2 * + cor0.col1 + - col1 / col0 AS col2 FROM tab0 AS cor0
----
611883
93651
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT + col1 DIV + cor0.col1 + + 76 AS col0 FROM tab2 AS cor0
----
77
77
77
skipif mysql # not compatible
query I rowsort label-3423
SELECT + col1 / + cor0.col1 + + 76 AS col0 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT + + ( 0 ) * - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 25 * - col2 FROM tab2 AS cor0
----
650
675
950
query I rowsort
SELECT 15 FROM tab0 cor0
----
15
15
15
query I rowsort
SELECT ALL - col0 - - 92 * col2 AS col2 FROM tab1 cor0
----
4965
5180
8752
onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT + col2 + col2 DIV - col0 FROM tab1 cor0
----
36
57
95
skipif mysql # not compatible
query I rowsort label-3429
SELECT + col2 + col2 / - col0 FROM tab1 cor0
----
36
57
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3430
SELECT + col2 + + col1 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3430
SELECT + col2 + + col1 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + col1 + - 71 * + col0 FROM tab2 AS cor0
----
-493
-5505
-5630
query I rowsort
SELECT ALL 50 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT - col2 * + ( + tab0.col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - 23 * cor0.col2 FROM tab2 AS cor0
----
-598
-621
-874
query I rowsort
SELECT - col2 + - col1 - col1 AS col0 FROM tab2 AS cor0
----
-144
-72
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3436
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 + - tab0.col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 + - tab0.col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col1 FROM tab2
----
78
78
78
query I rowsort
SELECT ALL - col0 + 4 FROM tab2
----
-3
-74
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3439
SELECT ALL + col0 * - col1 + + CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL + col0 * - col1 + + CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 88 + + col1 * - 99 - - 19 AS col0 FROM tab2 cor0
----
-1576
-2962
-5734
query I rowsort
SELECT - - col2 * + cor0.col2 + + ( + col0 * col1 ) AS col2 FROM tab0 cor0
----
14823
3153
3396
query I rowsort
SELECT ALL - 75 AS col2 FROM tab0 AS cor0
----
-75
-75
-75
query I rowsort
SELECT + col2 * col1 + 52 * ( + col0 * + col0 ) AS col2 FROM tab2 AS cor0
----
317902
325178
3385
query I rowsort
SELECT ALL cor0.col2 * col1 * 0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT 46 + + col2 FROM tab0 cor0
----
128
47
79
query I rowsort
SELECT ALL + 44 * - col1 - - col2 FROM tab1 AS cor0
----
-1090
-383
-476
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - col2 + + col1 * + col0 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) AS col1 FROM tab1 cor0
----
54
57
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d
query I rowsort
SELECT DISTINCT - ( + 97 ) * + col0 FROM tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT + col1 - col0 * + col2 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT ( + col0 ) + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + 51 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 * - 34 col2 FROM tab1 AS cor0
----
-1122
query I rowsort
SELECT ALL 44 FROM tab0, tab0 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3457
SELECT CAST( + col2 AS SIGNED ) * - col0 AS col0 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-3457
SELECT CAST ( + col2 AS INTEGER ) * - col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3459
SELECT - + col2 * + col2 + - col1 DIV col1 FROM tab2 AS cor0
----
-1445
-677
-730
skipif mysql # not compatible
query I rowsort label-3459
SELECT - + col2 * + col2 + - col1 / col1 FROM tab2 AS cor0
----
-1445
-677
-730
query I rowsort
SELECT DISTINCT + 97 + + col1 AS col2 FROM tab1 cor0
----
107
110
123
query I rowsort
SELECT ALL + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col0 + 21 * col0 FROM tab2
----
140
1560
1580
query I rowsort
SELECT col0 * - 58 AS col0 FROM tab2
----
-406
-4524
-4582
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 - - tab1.col0 * col1 col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT DISTINCT 35 * - 59 * - col0 - 55 FROM tab0
----
183730
49505
72220
query I rowsort
SELECT + col0 - - tab2.col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT 45 FROM tab2, tab0 AS cor0
----
45
query I rowsort
SELECT DISTINCT + - col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL col1 * - 94 FROM tab0 AS cor0
----
-8084
-8554
-9118
query I rowsort
SELECT DISTINCT col1 * col1 * ( - col1 ) FROM tab1
----
-1000
-17576
-2197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3471
SELECT ALL + col2 * CAST( 43 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2322
2451
4128
skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL + col2 * CAST ( 43 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT DISTINCT + + col2 * cor0.col2 * 77 FROM tab2 AS cor0
----
111188
52052
56133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3473
SELECT - col1 * + ( + col2 + - col2 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3473
SELECT - col1 * + ( + col2 + - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3475
SELECT + - col1 DIV 57 AS col0 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3475
SELECT + - col1 / 57 AS col0 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab0, tab1 AS cor0
----
1
query I rowsort
SELECT ALL col2 * ( - tab0.col1 ) AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col0 * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37
query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3481
SELECT + CAST( - col2 AS SIGNED ) + - cor0.col2 * ( col0 ) FROM tab0 AS cor0
----
-36
-7380
-825
skipif mysql # not compatible
query I rowsort label-3481
SELECT + CAST ( - col2 AS INTEGER ) + - cor0.col2 * ( col0 ) FROM tab0 AS cor0
----
-36
-7380
-825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 17 col0 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT ALL - 45 AS col0 FROM tab1 AS cor0
----
-45
-45
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3484
SELECT ALL - 26 * col2 * col1 + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-193923
-2487
-73764
skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - 26 * col2 * col1 + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-193923
-2487
-73764
onlyif mysql # use DIV operator for integer division
query I rowsort label-3485
SELECT DISTINCT - - cor0.col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT - - cor0.col1 / col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - - ( col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col2 * 7 + - col2 FROM tab0 AS cor0
----
198
492
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT DISTINCT cor0.col2 * + col2 DIV - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT cor0.col2 * + col2 / - col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3489
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + col1 ) * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * - col2 col2 FROM tab2 AS cor0
----
-2340
-2430
-3420
query I rowsort
SELECT + + 18 * col1 FROM tab0 AS cor0
----
1548
1638
1746
query I rowsort
SELECT ALL + cor0.col1 + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - 72 * col1 FROM tab0 cor0
----
-6192
-6552
-6984
query I rowsort
SELECT ALL + - 60 AS col0 FROM tab1 AS cor0
----
-60
-60
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT col0 + + col0 * tab1.col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT - col1 * + cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT + + 10 AS col1 FROM tab1 AS cor0
----
10
10
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-3500
SELECT + col2 + tab2.col1 DIV - 99 + - col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3500
SELECT + col2 + tab2.col1 / - 99 + - col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3501
SELECT - + col0 DIV col0 AS col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3501
SELECT - + col0 / col0 AS col0 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT - - 98 AS col1 FROM tab1 cor0
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + + col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - col1 - - col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT DISTINCT - col2 * - col1 DIV - col1 + - 32 * col2 AS col0 FROM tab1 AS cor0
----
-1782
-1881
-3168
skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT - col2 * - col1 / - col1 + - 32 * col2 AS col0 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT ALL + col2 + + col2 + - col0 AS col1 FROM tab1 AS cor0
----
105
112
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-3509
SELECT ALL + - col1 DIV + col1 - 53 FROM tab1 AS cor0
----
-54
-54
-54
skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + - col1 / + col1 - 53 FROM tab1 AS cor0
----
-54
-54
-54
query I rowsort
SELECT ALL col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT 85 + cor0.col0 * + ( cor0.col2 ) FROM tab1 AS cor0
----
247
3733
7765
query I rowsort
SELECT col0 * col2 + col0 * col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT + col2 - - cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + + col2 + + col0 FROM tab2 AS cor0
----
104
117
34
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + CAST ( - col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col2 + col2 * + col1 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT + col2 * - 89 AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382
query I rowsort
SELECT cor0.col0 * col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL + - col0 + 31 + col1 * + col1 * + 68 AS col0 FROM tab1 AS cor0
----
11443
45996
6767
query I rowsort
SELECT + 84 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - 75 AS col0 FROM tab0 AS cor0
----
-75
-75
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT ALL + ( + col0 ) DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + ( + col0 ) / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 26 AS col2 FROM tab2
----
26
26
26
query I rowsort
SELECT ALL 41 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT DISTINCT col0 * + col0 + 46 * 36 AS col1 FROM tab1 AS cor0
----
1665
5752
8056
query I rowsort
SELECT ALL col2 * - col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 + cor0.col0 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT ALL - cor0.col0 - - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( 76 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL ( - col2 + col0 ) * + col2 * - col1 AS col2 FROM tab1
----
-3990
19968
71604
query I rowsort
SELECT col2 * - col2 * 14 AS col2 FROM tab2
----
-10206
-20216
-9464
query I rowsort
SELECT ( 49 ) FROM tab1 AS cor0
----
49
49
49
query I rowsort
SELECT ALL - 88 FROM tab2, tab0 cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT ALL - + col2 + + col0 * col1 * col2 AS col0 FROM tab0 AS cor0
----
3394
664036
68079
query I rowsort
SELECT DISTINCT + 76 FROM tab2
----
76
query I rowsort
SELECT - col0 * ( + col1 ) AS col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT ALL - ( 6 ) DIV col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL - ( 6 ) / col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT - 33 DIV + col0 + col0 FROM tab0 cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-3540
SELECT - 33 / + col0 + col0 FROM tab0 cor0
----
23
35
89
query I rowsort
SELECT + - 20 * + 80 FROM tab0 AS cor0
----
-1600
-1600
-1600
query I rowsort
SELECT DISTINCT - 73 + - col1 FROM tab0 AS cor0
----
-159
-164
-170
query I rowsort
SELECT ALL cor0.col0 * + col1 * + col0 FROM tab2 cor0
----
106097
1519
358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3544
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT ( + col1 ) DIV + col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3545
SELECT ( + col1 ) / + col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 * col0 col2 FROM tab2
----
-140
-1560
-1580
query I rowsort
SELECT 44 * + col0 AS col0 FROM tab1
----
132
2816
3520
onlyif mysql # use DIV operator for integer division
query I rowsort label-3548
SELECT DISTINCT 12 DIV + col1 AS col1 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT 12 / + col1 AS col1 FROM tab1
----
0
1
query I rowsort
SELECT - 99 + col1 * - col2 AS col1 FROM tab0 cor0
----
-196
-2937
-7561
query I rowsort
SELECT 90 + + col2 FROM tab2 AS cor0
----
116
117
128
query I rowsort
SELECT ALL 90 * - tab2.col0 + - tab2.col0 FROM tab2
----
-637
-7098
-7189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * + 6 col0 FROM tab0 AS cor0
----
-12384
-20370
-48594
query I rowsort
SELECT ALL 28 AS col2 FROM tab2 AS cor0
----
28
28
28
query I rowsort
SELECT ALL 63 AS col1 FROM tab0 AS cor0
----
63
63
63
query I rowsort
SELECT DISTINCT - - 55 FROM tab0 AS cor0
----
55
query I rowsort
SELECT + + cor0.col2 * col2 + col0 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + col0 + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-3558
SELECT col0 + + col0 * 19 DIV - col1 AS col0 FROM tab0 AS cor0
----
19
29
71
skipif mysql # not compatible
query I rowsort label-3558
SELECT col0 + + col0 * 19 / - col1 AS col0 FROM tab0 AS cor0
----
19
29
71
query I rowsort
SELECT ALL - + col1 * - cor0.col0 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT - 13 FROM tab2, tab1 AS cor0, tab2 cor1, tab0, tab2 cor2
----
-13
query I rowsort
SELECT DISTINCT - 58 FROM tab2, tab2 AS cor0
----
-58
query I rowsort
SELECT - col2 + - col1 * 91 AS col1 FROM tab2 cor0
----
-1585
-2848
-5395
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + 28 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT DISTINCT ( - 27 ) AS col1 FROM tab2, tab2 AS cor0
----
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3566
SELECT - CAST( NULL AS SIGNED ) + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3566
SELECT - CAST ( NULL AS INTEGER ) + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 - col2 * col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT col1 + - col2 * + col1 * 81 AS col0 FROM tab2 AS cor0
----
-124195
-52309
-67766
query I rowsort
SELECT ( + 47 ) FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT - 80 * + col2 AS col0 FROM tab2 AS cor0
----
-2080
-2160
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT - col1 * col0 DIV col1 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3571
SELECT - col1 * col0 / col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - col0 * + 48 FROM tab2
----
-336
-3744
-3792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3573
SELECT - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3573
SELECT - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + col1 + + 98 AS col1 FROM tab0
----
184
189
195
query I rowsort
SELECT col1 * - 90 AS col2 FROM tab0
----
-7740
-8190
-8730
query I rowsort
SELECT DISTINCT - 30 * + col0 + col0 FROM tab1 cor0
----
-1856
-2320
-87
query I rowsort
SELECT ALL + col1 + col1 * + col2 * + 20 AS col0 FROM tab1 AS cor0
----
11410
24973
28106
query I rowsort
SELECT DISTINCT + 3 * col0 + 48 * - col0 FROM tab2 AS cor0
----
-315
-3510
-3555
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3579
SELECT ALL - + ( + col1 ) + - CAST( + 92 AS SIGNED ) * - col1 col1 FROM tab1 AS cor0
----
1183
2366
910
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3579
SELECT ALL - + ( + col1 ) + - CAST ( + 92 AS INTEGER ) * - col1 col1 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT - - 77 * col2 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT - 65 * col2 AS col1 FROM tab1 AS cor0
----
-3510
-3705
-6240
query I rowsort
SELECT DISTINCT + col2 + + col1 * ( col2 ) FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + col1 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL col1 * + col2 AS col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3585
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) + + col1 * col2 + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) + + col1 * col2 + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * ( + 0 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col2 + + 2 AS col0 FROM tab0 AS cor0
----
-31
-80
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3588
SELECT DISTINCT + col0 + 44 DIV - 76 AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT + col0 + 44 / - 76 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col0 * col1 - + 63 FROM tab2 AS cor0
----
1280
154
4539
query I rowsort
SELECT ALL col2 + ( + col2 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + cor0.col1 + cor0.col2 + - col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + col0 * 75 FROM tab2 AS cor0
----
525
5850
5925
query I rowsort
SELECT DISTINCT col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-3594
SELECT ALL - - col2 + - col0 DIV + cor0.col1 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - - col2 + - col0 / + cor0.col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT col1 + + 8 * col2 AS col0 FROM tab1 AS cor0
----
458
466
781
query I rowsort
SELECT col0 * + col1 + + col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL + 61 AS col2 FROM tab2
----
61
61
61
query I rowsort
SELECT col0 * + cor0.col2 + col2 FROM tab0 cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3599
SELECT - - CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3599
SELECT - - CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 * col2 + - col1 * 77 FROM tab1 AS cor0
----
-10217
-4019
-4918
query I rowsort
SELECT 72 + + col2 AS col0 FROM tab0 AS cor0
----
105
154
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col0 * col0 * col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT - 63 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT 70 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT DISTINCT - 95 * + ( + col1 ) FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT ( - 91 ) FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT ALL - 96 + - col0 AS col1 FROM tab0 AS cor0
----
-120
-131
-185
query I rowsort
SELECT DISTINCT - + 98 + - col1 * col2 FROM tab1 AS cor0
----
-1346
-1502
-668
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 54 FROM tab1, tab2 AS cor0
----
54
query I rowsort
SELECT ALL + + ( col1 ) * + 58 * col2 FROM tab2 AS cor0
----
37468
48546
88972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + col0 col0 FROM tab1
----
113
36
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3615
SELECT - - col0 * - ( - col0 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3615
SELECT - - col0 * - ( - col0 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 8 - col0 FROM tab0
----
-16
-27
-81
query I rowsort
SELECT ALL col0 + 64 AS col0 FROM tab0
----
153
88
99
query I rowsort
SELECT - 14 * col0 AS col1 FROM tab2 cor0
----
-1092
-1106
-98
query I rowsort
SELECT ( - 30 * col0 ) - + col1 AS col1 FROM tab2
----
-2387
-2399
-241
query I rowsort
SELECT DISTINCT col1 + col2 + col2 FROM tab1
----
124
134
205
query I rowsort
SELECT tab2.col0 * + 15 FROM tab2
----
105
1170
1185
query I rowsort
SELECT + 97 * - col0 - + tab2.col0 AS col0 FROM tab2
----
-686
-7644
-7742
query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab2 AS cor0
----
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col2 * + col0 col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT - col0 * + col0 * + col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL - - ( cor0.col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col2 + + tab2.col1 * col0 AS col2 FROM tab2
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col2 FROM tab1
----
55
55
55
query I rowsort
SELECT ALL + ( col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3630
SELECT - col2 + + col1 DIV col0 AS col0 FROM tab1 AS cor0
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-3630
SELECT - col2 + + col1 / col0 AS col0 FROM tab1 AS cor0
----
-46
-57
-96
query I rowsort
SELECT ALL - + 78 AS col2 FROM tab1 AS cor0
----
-78
-78
-78
query I rowsort
SELECT 12 * - col2 + col2 FROM tab2 AS cor0
----
-286
-297
-418
query I rowsort
SELECT DISTINCT + + 97 * col0 FROM tab0 AS cor0
----
2328
3395
8633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col0 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # use DIV operator for integer division
query I rowsort label-3635
SELECT col1 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3635
SELECT col1 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col1 + + col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT col0 - + col1 FROM tab2 cor0
----
-24
19
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3638
SELECT DISTINCT - col1 - + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3638
SELECT DISTINCT - col1 - + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT col0 + 70 DIV - col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3639
SELECT col0 + 70 / - col1 FROM tab0
----
24
35
89
query I rowsort
SELECT col0 + col0 * + 26 - - col1 AS col0 FROM tab1 AS cor0
----
107
1738
2173
query I rowsort
SELECT + col2 + 69 + + 62 FROM tab2 AS cor0
----
157
158
169
query I rowsort
SELECT - - col2 * - col1 + col2 * + cor0.col0 - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-4108
-865
1013
query I rowsort
SELECT ALL + col0 + 7 FROM tab2 AS cor0
----
14
85
86
query I rowsort
SELECT - + cor0.col1 + col0 * col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387
onlyif mysql # use DIV operator for integer division
query I rowsort label-3645
SELECT ALL - col0 DIV col1 + + col2 * col1 FROM tab2
----
1533
642
837
skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - col0 / col1 + + col2 * col1 FROM tab2
----
1533
642
837
query I rowsort
SELECT DISTINCT ( + ( cor0.col1 ) ) AS col2 FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT 64 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3648
SELECT 64 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL + 35 AS col1 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT ALL ( + 22 ) * - col2 + col2 AS col0 FROM tab0
----
-1722
-21
-693
query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL - col1 + - 82 FROM tab0
----
-168
-173
-179
query I rowsort
SELECT + col0 + col0 + + col0 * - tab1.col0 AS col0 FROM tab1
----
-3
-3968
-6240
onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT + col0 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3654
SELECT + col0 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3655
SELECT ALL + + ( - col2 ) + + col1 DIV col0 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL + + ( - col2 ) + + col1 / col0 FROM tab2 AS cor0
----
-23
-26
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3656
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + col0 * + 35 + col0 * col2 FROM tab1 AS cor0
----
1408
4880
57
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col2 AS REAL ) * - col2 + col2 AS col1 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT col0 + cor0.col1 * col0 * col2 AS col0 FROM tab2 cor0
----
119730
51113
5866
query I rowsort
SELECT DISTINCT col0 + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - cor0.col1 + - 5 FROM tab0 AS cor0
----
-102
-91
-96
query I rowsort
SELECT ALL + cor0.col1 + ( + col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col0 * col0 col0 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3665
SELECT + - col0 + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3665
SELECT + - col0 + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 73 * col2 + 50 FROM tab0
----
123
2459
6036
query I rowsort
SELECT - col0 + col2 * 5 AS col0 FROM tab2 AS cor0
----
111
128
52
query I rowsort
SELECT - - 75 * col2 + col1 * - col2 FROM tab2 AS cor0
----
1188
2204
416
onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT - ( col2 ) * col2 + 62 DIV 55 FROM tab0 AS cor0
----
-1088
-6723
0
skipif mysql # not compatible
query I rowsort label-3669
SELECT - ( col2 ) * col2 + 62 / 55 FROM tab0 AS cor0
----
-1088
-6723
0
query I rowsort
SELECT DISTINCT + 11 FROM tab1, tab0 AS cor0
----
11
query I rowsort
SELECT DISTINCT - 33 - - tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
-20
-23
-7
query I rowsort
SELECT - col1 * + cor0.col0 + - col0 + col1 FROM tab0 AS cor0
----
-2002
-3333
-8097
onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT col2 + + col0 + 20 DIV 4 AS col1 FROM tab1 AS cor0
----
126
181
62
skipif mysql # not compatible
query I rowsort label-3673
SELECT col2 + + col0 + 20 / 4 AS col1 FROM tab1 AS cor0
----
126
181
62
query I rowsort
SELECT ALL - + 12 + col1 FROM tab1 AS cor0
----
-2
1
14
query I rowsort
SELECT + 63 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT - col2 + col0 * + tab0.col2 AS col1 FROM tab0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3677
SELECT ALL - CAST( 92 AS SIGNED ) * - tab1.col0 FROM tab1
----
276
5888
7360
skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL - CAST ( 92 AS INTEGER ) * - tab1.col0 FROM tab1
----
276
5888
7360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3678
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3678
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - col2 * col2 + col2 FROM tab1
----
-2862
-3192
-9120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3680
SELECT ALL 67 + - 40 * cor0.col1 / CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL 67 + - 40 * cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 66 + col2 FROM tab2
----
104
92
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT tab0.col0 + col0 DIV tab0.col0 AS col1 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-3682
SELECT tab0.col0 + col0 / tab0.col0 AS col1 FROM tab0
----
25
36
90
query I rowsort
SELECT - + 20 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT DISTINCT + 93 + + col0 FROM tab1
----
157
173
96
query I rowsort
SELECT DISTINCT - 31 * col0 + tab2.col2 FROM tab2
----
-190
-2392
-2411
onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT DISTINCT + - 85 - + col2 DIV + col0 FROM tab0 AS cor0
----
-85
-86
skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT + - 85 - + col2 / + col0 FROM tab0 AS cor0
----
-85
-86
query I rowsort
SELECT DISTINCT - 62 * col1 AS col0 FROM tab0 AS cor0
----
-5332
-5642
-6014
query I rowsort
SELECT ( - 85 ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
query I rowsort
SELECT ALL 6 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT ALL + ( col1 ) * col0 * - col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT col1 * - col0 + - tab1.col0 AS col1 FROM tab1
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT + col2 DIV - col2 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3692
SELECT + col2 / - col2 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 - 58 * - col2 AS col1 FROM tab2
----
1567
1597
2221
query I rowsort
SELECT col1 * col0 * col1 FROM tab0
----
177504
329315
737009
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3696
SELECT - col2 * + CAST( - col1 AS SIGNED ) FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-3696
SELECT - col2 * + CAST ( - col1 AS INTEGER ) FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT 68 + 76 AS col1 FROM tab0, tab0 AS cor0
----
144
query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab2, tab2 AS cor0
----
72
query I rowsort
SELECT + col0 + - 54 FROM tab2 cor0
----
-47
24
25
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ALL 17 + col1 FROM tab2 AS cor0
----
34
48
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col1 ) col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - - col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3705
SELECT - ( col1 ) + CAST( col0 AS SIGNED ) * + col2 FROM tab2 cor0
----
158
1969
2985
skipif mysql # not compatible
query I rowsort label-3705
SELECT - ( col1 ) + CAST ( col0 AS INTEGER ) * + col2 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT + col1 * cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT - 70 + + col2 DIV + col2 FROM tab1 cor0
----
-69
-69
-69
skipif mysql # not compatible
query I rowsort label-3707
SELECT - 70 + + col2 / + col2 FROM tab1 cor0
----
-69
-69
-69
query I rowsort
SELECT 63 AS col0 FROM tab2 AS cor0
----
63
63
63
query I rowsort
SELECT - 37 + - cor0.col2 * - ( col0 * - cor0.col0 + col2 * - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-175797
-21043
-292067
query I rowsort
SELECT - col0 + 82 FROM tab1 AS cor0
----
18
2
79
query I rowsort
SELECT - col2 * + col0 - - col2 * col2 AS col0 FROM tab0
----
-34
-574
297
query I rowsort
SELECT - 81 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
query I rowsort
SELECT ALL 13 FROM tab1
----
13
13
13
query I rowsort
SELECT DISTINCT 52 + col1 FROM tab1 AS cor0
----
62
65
78
query I rowsort
SELECT + - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL + + col2 * col2 + + 55 * cor0.col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
11530
1891
2385
query I rowsort
SELECT DISTINCT cor0.col1 * col2 + + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + + 51 * - col2 AS col0 FROM tab1 AS cor0
----
-2754
-2907
-4896
onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT DISTINCT 22 DIV - col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT 22 / - col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3720
SELECT - 67 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-22
0
skipif mysql # not compatible
query I rowsort label-3720
SELECT - 67 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-22
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT DISTINCT + col2 + + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + col2 + + col0 / col0 AS col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT col0 + + ( tab1.col2 ) + col1 AS col0 FROM tab1
----
131
189
83
query I rowsort
SELECT - col2 + col2 * - 62 FROM tab0
----
-2079
-5166
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( - col2 ) * + col2 col2 FROM tab0
----
-1113
-36
-6813
query I rowsort
SELECT - col0 * - col0 + - col1 - + col2 * col1 FROM tab0
----
-2348
1031
368
onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT col1 DIV col0 + 95 AS col1 FROM tab0
----
96
97
98
skipif mysql # not compatible
query I rowsort label-3726
SELECT col1 / col0 + 95 AS col1 FROM tab0
----
96
97
98
query I rowsort
SELECT col0 + - col0 * 3 + - tab2.col2 AS col0 FROM tab2
----
-182
-196
-41
query I rowsort
SELECT ALL col1 + col2 - tab1.col1 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT - col2 DIV + col0 - - 10 FROM tab2 AS cor0
----
10
10
7
skipif mysql # not compatible
query I rowsort label-3729
SELECT - col2 / + col0 - - 10 FROM tab2 AS cor0
----
10
10
7
query I rowsort
SELECT DISTINCT - 31 * col1 * - col0 FROM tab0 cor0
----
105245
251069
63984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3731
SELECT - CAST( NULL AS DECIMAL ) * cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3731
SELECT - CAST ( NULL AS REAL ) * cor0.col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3732
SELECT DISTINCT - 26 * - 83 + + col2 * col0 DIV + ( + col1 ) FROM tab2 AS cor0
----
2164
2192
2334
skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - 26 * - 83 + + col2 * col0 / + ( + col1 ) FROM tab2 AS cor0
----
2164
2192
2334
query I rowsort
SELECT cor0.col1 * - col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT + col1 + + cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT + col0 + col1 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ( 38 ) + - col0 AS col1 FROM tab0 AS cor0
----
-51
14
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3737
SELECT cor0.col0 * col1 DIV - col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3737
SELECT cor0.col0 * col1 / - col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT 18 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3738
SELECT 18 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( + 31 ) * - col1 FROM tab2 cor0
----
-1829
-527
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-3740
SELECT + + ( col2 ) + + col2 DIV + 70 AS col2 FROM tab0 AS cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-3740
SELECT + + ( col2 ) + + col2 / + 70 AS col2 FROM tab0 AS cor0
----
1
33
83
query I rowsort
SELECT DISTINCT + + col0 * - 94 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT DISTINCT + col0 * 17 + col1 * col0 FROM tab1 AS cor0
----
129
1728
2400
onlyif mysql # use DIV operator for integer division
query I rowsort label-3743
SELECT 78 + 76 DIV col0 FROM tab0 AS cor0
----
78
80
81
skipif mysql # not compatible
query I rowsort label-3743
SELECT 78 + 76 / col0 FROM tab0 AS cor0
----
78
80
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-3744
SELECT ALL cor0.col1 + - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL cor0.col1 + - col0 / col1 AS col1 FROM tab1 AS cor0
----
26
4
7
query I rowsort
SELECT ALL + ( col1 ) + - cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 - + col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT 26 * 97 FROM tab0 AS cor0
----
2522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3748
SELECT - CAST( NULL AS SIGNED ) + 43 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3748
SELECT - CAST ( NULL AS INTEGER ) + 43 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - 5 + + 31 AS col1 FROM tab2 AS cor0
----
26
26
26
query I rowsort
SELECT 85 * col1 + - col2 AS col2 FROM tab0
----
7277
7653
8244
query I rowsort
SELECT - 72 + - col2 + 34 * - col0 FROM tab2 cor0
----
-2750
-2796
-337
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + cor0.col2 * + col2 col2 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3755
SELECT CAST( col0 AS SIGNED ) * + col2 FROM tab2
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-3755
SELECT CAST ( col0 AS INTEGER ) * + col2 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3756
SELECT DISTINCT tab0.col2 + + col2 DIV col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT tab0.col2 + + col2 / col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT - - cor0.col1 + - 41 AS col2 FROM tab0 cor0
----
45
50
56
query I rowsort
SELECT col0 * 60 AS col2 FROM tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT ALL - - col1 * ( - col0 ) FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * cor0.col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col0 * + 68 FROM tab0 cor0
----
1632
2380
6052
query I rowsort
SELECT DISTINCT + + col1 + - 62 * + col2 FROM tab1 AS cor0
----
-3322
-3524
-5939
query I rowsort
SELECT ALL + col2 * col2 - 69 * cor0.col0 FROM tab2 AS cor0
----
-4007
-4706
246
query I rowsort
SELECT ALL - + cor0.col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3766
SELECT col0 + CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-3766
SELECT col0 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - + col1 + 85 - col1 AS col2 FROM tab2 AS cor0
----
-33
23
51
query I rowsort
SELECT - col0 * - ( - ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + tab2.col1 - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 29 * - col1 AS col2 FROM tab0
----
-2494
-2639
-2813
query I rowsort
SELECT DISTINCT 15 * + col1 * + col1 FROM tab1
----
10140
1500
2535
query I rowsort
SELECT + col1 - + tab1.col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT + tab1.col0 * 17 FROM tab1
----
1088
1360
51
query I rowsort
SELECT ALL + - cor0.col1 + ( col2 ) AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL col2 + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT - col2 * 86 AS col1 FROM tab2 AS cor0
----
-2236
-2322
-3268
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 + + col0 - col0 * + col0 FROM tab0 AS cor0
----
-1225
-1344
-15130
query I rowsort
SELECT ALL + - col1 * 30 AS col1 FROM tab1 AS cor0
----
-300
-390
-780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3779
SELECT ALL col1 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL col1 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - col2 * 96 * - col0 AS col0 FROM tab2
----
18144
194688
288192
query I rowsort
SELECT tab2.col1 + col1 + 88 AS col2 FROM tab2
----
122
150
206
query I rowsort
SELECT DISTINCT + 36 * + col2 FROM tab2
----
1368
936
972
onlyif mysql # use DIV operator for integer division
query I rowsort label-3783
SELECT ALL - col1 DIV + col1 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - col1 / + col1 AS col1 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + + 24 col0 FROM tab0
----
113
48
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT col2 + + col2 + col2 DIV col1 col1 FROM tab1
----
110
119
199
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3785
SELECT col2 + + col2 + col2 / col1 col1 FROM tab1
----
110
119
199
query I rowsort
SELECT ALL 6 AS col1 FROM tab0
----
6
6
6
query I rowsort
SELECT + col1 * 6 * - ( + col1 ) + 77 - - col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2575
311
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-3788
SELECT col2 + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-3788
SELECT col2 + col2 / col0 AS col1 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT + - col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col0 * ( - ( + col1 ) ) + + 25 FROM tab0 AS cor0
----
-2039
-3370
-8074
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT col1 + CAST( + col1 * col0 AS SIGNED ) FROM tab2 AS cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-3791
SELECT col1 + CAST ( + col1 * col0 AS INTEGER ) FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + col2 + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - + col1 + 80 + - ( col2 + col0 ) AS col1 FROM tab1 AS cor0
----
-109
-3
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3794
SELECT + - col2 DIV - CAST( + 67 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-3794
SELECT + - col2 / - CAST ( + 67 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
-1
-33
-81
query I rowsort
SELECT + col1 + - 82 FROM tab0 AS cor0
----
15
4
9
query I rowsort
SELECT DISTINCT + - ( col0 ) + cor0.col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col0 FROM tab0 AS cor0
----
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - + 62 * - col0 FROM tab0 cor0
----
1488
2170
5518
query I rowsort
SELECT DISTINCT + - 15 * + cor0.col0 + + col1 FROM tab2 cor0
----
-1111
-1168
-74
query I rowsort
SELECT ALL + ( col1 ) + cor0.col2 * ( col1 ) * col2 FROM tab0 AS cor0
----
194
611975
93740
query I rowsort
SELECT ALL - ( 56 ) - col0 AS col2 FROM tab0 AS cor0
----
-145
-80
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3803
SELECT - CAST( + 31 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
1178
806
837
skipif mysql # not compatible
query I rowsort label-3803
SELECT - CAST ( + 31 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
1178
806
837
query I rowsort
SELECT - ( 55 ) * - col1 FROM tab0 AS cor0
----
4730
5005
5335
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT - - col2 + - col2 * - ( + col1 * col1 ) FROM tab2 cor0
----
11020
25974
90532
query I rowsort
SELECT ALL 49 * cor0.col2 * cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0b33d20bb39c30bdf6da01bcebebcc99
query I rowsort
SELECT - 6 AS col1 FROM tab2 cor0
----
-6
-6
-6
query I rowsort
SELECT + col0 * col2 * 62 FROM tab2 AS cor0
----
11718
125736
186124
query I rowsort
SELECT ALL + 40 FROM tab2 cor0
----
40
40
40
query I rowsort
SELECT ALL + + 5 AS col1 FROM tab2 cor0
----
5
5
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3812
SELECT - col1 + + col0 * CAST( + 44 AS SIGNED ) FROM tab1 AS cor0
----
106
2806
3507
skipif mysql # not compatible
query I rowsort label-3812
SELECT - col1 + + col0 * CAST ( + 44 AS INTEGER ) FROM tab1 AS cor0
----
106
2806
3507
query I rowsort
SELECT ALL + + ( col0 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - + cor0.col0 * col0 + + 75 AS col2 FROM tab2 AS cor0
----
-6009
-6166
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3815
SELECT + col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-3815
SELECT + col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT col0 * - col2 * - col2 - col1 FROM tab0
----
-62
26050
598345
query I rowsort
SELECT - 56 + + col1 FROM tab0 AS cor0
----
30
35
41
query I rowsort
SELECT DISTINCT + - 41 AS col2 FROM tab2 cor0
----
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT DISTINCT - col1 DIV col0 AS col2 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT - col1 / col0 AS col2 FROM tab0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3820
SELECT DISTINCT - col0 DIV - col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT - col0 / - col2 FROM tab1
----
0
1
query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab2, tab2 cor0
----
12
query I rowsort
SELECT 75 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT ALL 82 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT + - ( + 16 ) AS col0 FROM tab1 AS cor0
----
-16
-16
-16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + tab2.col1 col2 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT + col1 DIV - ( - ( + cor0.col0 ) ) + + col1 * col1 FROM tab1 AS cor0
----
100
169
684
skipif mysql # not compatible
query I rowsort label-3827
SELECT + col1 / - ( - ( + cor0.col0 ) ) + + col1 * col1 FROM tab1 AS cor0
----
100
169
684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3828
SELECT ALL + col0 + + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + col0 + + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 73 * col1 FROM tab2
----
1241
2263
4307
query I rowsort
SELECT - 90 + + col1 + + col0 FROM tab2
----
-52
47
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3831
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3831
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-3832
SELECT ALL + tab1.col2 + + col0 DIV - 16 FROM tab1
----
53
54
91
skipif mysql # not compatible
query I rowsort label-3832
SELECT ALL + tab1.col2 + + col0 / - 16 FROM tab1
----
53
54
91
query I rowsort
SELECT DISTINCT + col0 + 22 AS col1 FROM tab1
----
102
25
86
query I rowsort
SELECT ALL - col0 + ( + tab1.col2 ) * + col1 FROM tab1
----
1168
1401
506
query I rowsort
SELECT DISTINCT - tab0.col0 AS col0 FROM tab0, tab2 cor0
----
-24
-35
-89
query I rowsort
SELECT col1 * + 15 AS col1 FROM tab2
----
255
465
885
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT - col0 + CAST( col2 AS SIGNED ) FROM tab1
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-3837
SELECT - col0 + CAST ( col2 AS INTEGER ) FROM tab1
----
-7
16
51
query I rowsort
SELECT + tab0.col0 - + col2 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT DISTINCT + tab2.col1 * - tab2.col1 + col0 AS col2 FROM tab2
----
-210
-3403
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3840
SELECT ALL + tab0.col0 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL + tab0.col0 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 68 FROM tab0, tab2 cor0
----
-68
query I rowsort
SELECT ALL tab0.col0 * + 14 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c8de62554e7ebbd5452c20b4b7977145
query I rowsort
SELECT ALL 15 AS col0 FROM tab0 AS cor0
----
15
15
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT DISTINCT CAST( - 19 AS SIGNED ) DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT CAST ( - 19 AS INTEGER ) / col1 FROM tab0
----
0
query I rowsort
SELECT ALL + 28 AS col0 FROM tab2
----
28
28
28
query I rowsort
SELECT DISTINCT + ( - col0 ) AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 3 * col0 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT + 96 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT + - col0 * - col2 + ( col0 ) + cor0.col1 FROM tab2 AS cor0
----
2165
227
3098
onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT cor0.col1 * - col1 + ( col1 ) * - col1 + col1 DIV - 40 AS col0 FROM tab2 cor0
----
-1922
-578
-6963
skipif mysql # not compatible
query I rowsort label-3850
SELECT cor0.col1 * - col1 + ( col1 ) * - col1 + col1 / - 40 AS col0 FROM tab2 cor0
----
-1922
-578
-6963
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 - - col2 col2 FROM tab1 cor0
----
104
107
146
query I rowsort
SELECT 23 * - col1 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT - ( col0 ) + + 44 + - col1 * + cor0.col0 * - 6 AS col0 FROM tab2 cor0
----
1339
27578
8023
onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT DISTINCT + 57 DIV col2 + + col0 AS col0 FROM tab0 AS cor0
----
25
89
92
skipif mysql # not compatible
query I rowsort label-3854
SELECT DISTINCT + 57 / col2 + + col0 AS col0 FROM tab0 AS cor0
----
25
89
92
query I rowsort
SELECT DISTINCT + 18 * col1 FROM tab0 AS cor0
----
1548
1638
1746
query I rowsort
SELECT DISTINCT + 17 * + col0 AS col1 FROM tab0 AS cor0
----
1513
408
595
query I rowsort
SELECT ( + col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col1 + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + 81 * + col2 AS col1 FROM tab2 AS cor0
----
2106
2187
3078
query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab2 AS cor0
----
13
query I rowsort
SELECT + + cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col0 * col2 * + 0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 86 * col2 AS col0 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT DISTINCT + 60 * + col2 AS col1 FROM tab1 AS cor0
----
3240
3420
5760
query I rowsort
SELECT DISTINCT 71 * - col2 FROM tab0 cor0
----
-2343
-5822
-71
query I rowsort
SELECT 3 - + col2 FROM tab1 AS cor0
----
-51
-54
-93
query I rowsort
SELECT 82 + + cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to fe2ce89b70f6e98f3d6d4333eda76f76
query I rowsort
SELECT + ( col2 + + tab2.col2 ) FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT col2 DIV - col1 + ( col1 * col2 ) col2 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3869
SELECT col2 / - col1 + ( col1 * col2 ) col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 47 FROM tab2, tab1, tab0 AS cor0
----
47
query I rowsort
SELECT ALL - col0 * + col0 - + 32 FROM tab2 AS cor0
----
-6116
-6273
-81
query I rowsort
SELECT ALL - ( - col1 ) * - col1 + + col2 FROM tab2 AS cor0
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-3873
SELECT ALL + cor0.col1 + - col2 DIV + col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL + cor0.col1 + - col2 / + col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT - - ( - col1 ) * 98 + col0 FROM tab2 AS cor0
----
-1587
-3031
-5704
query I rowsort
SELECT ALL + 32 + col0 FROM tab0 AS cor0
----
121
56
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-3876
SELECT + + col0 DIV - col1 + + col0 * + cor0.col1 - + ( - col1 ) FROM tab0 AS cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-3876
SELECT + + col0 / - col1 + + col0 * + cor0.col1 - + ( - col1 ) FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - - cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 + + col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT col0 + 91 - + cor0.col2 AS col0 FROM tab2 cor0
----
132
143
71
query I rowsort
SELECT DISTINCT col0 + + 55 FROM tab2 AS cor0
----
133
134
62
query I rowsort
SELECT - col1 + 86 AS col2 FROM tab0 AS cor0
----
-11
-5
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3882
SELECT + cor0.col1 + CAST( NULL AS DECIMAL ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3882
SELECT + cor0.col1 + CAST ( NULL AS REAL ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * + 86 AS col0 FROM tab0 cor0
----
2838
7052
86
query I rowsort
SELECT ALL - 71 - col0 FROM tab1
----
-135
-151
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT col0 DIV + col0 + + ( col2 ) + col2 col1 FROM tab1
----
109
115
193
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3885
SELECT col0 / + col0 + + ( col2 ) + col2 col1 FROM tab1
----
109
115
193
query I rowsort
SELECT ALL 4 - tab2.col1 AS col0 FROM tab2
----
-13
-27
-55
query I rowsort
SELECT + - cor0.col0 + col1 * 72 FROM tab2 AS cor0
----
1145
2225
4170
onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT DISTINCT - + col2 DIV + col1 - + col2 FROM tab2 AS cor0
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT - + col2 / + col1 - + col2 FROM tab2 AS cor0
----
-26
-27
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3889
SELECT ALL + + CAST( + 33 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
1023
1947
561
skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + + CAST ( + 33 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
1023
1947
561
onlyif mysql # use DIV operator for integer division
query I rowsort label-3890
SELECT DISTINCT + + col2 DIV col0 - - col1 AS col1 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-3890
SELECT DISTINCT + + col2 / col0 - - col1 AS col1 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT ALL + 86 * ( col2 ) AS col2 FROM tab2 AS cor0
----
2236
2322
3268
query I rowsort
SELECT DISTINCT col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + 55 + - col0 FROM tab1 AS cor0
----
-25
-9
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 + col2 col1 FROM tab1 cor0
----
115
118
157
query I rowsort
SELECT DISTINCT 44 + col2 AS col2 FROM tab2 AS cor0
----
70
71
82
query I rowsort
SELECT - + 50 * 61 FROM tab2 AS cor0
----
-3050
-3050
-3050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - cor0.col2 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + - 86 AS col0 FROM tab1 AS cor0
----
-86
-86
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col0 ) * + col2 * + 68 col0 FROM tab0 AS cor0
----
2380
496264
53856
query I rowsort
SELECT ALL - - 31 + col1 AS col1 FROM tab0 cor0
----
117
122
128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3901
SELECT - CAST( + ( tab2.col1 ) AS SIGNED ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
skipif mysql # not compatible
query I rowsort label-3901
SELECT - CAST ( + ( tab2.col1 ) AS INTEGER ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT + ( 71 ) AS col0 FROM tab1
----
71
query I rowsort
SELECT ALL + 0 * + 77 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3904
SELECT - 73 DIV tab2.col0 + - col2 * 17 FROM tab2
----
-442
-469
-646
skipif mysql # not compatible
query I rowsort label-3904
SELECT - 73 / tab2.col0 + - col2 * 17 FROM tab2
----
-442
-469
-646
query I rowsort
SELECT ALL + col1 * tab2.col1 AS col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT - 14 * + 40 FROM tab1 AS cor0
----
-560
-560
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col2 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT + col1 * 16 FROM tab0
----
1376
1456
1552
onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT DISTINCT col0 DIV tab1.col1 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT col0 / tab1.col1 FROM tab1
----
0
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT - tab1.col2 DIV + tab1.col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3910
SELECT - tab1.col2 / + tab1.col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT + ( tab1.col1 * + col0 + col2 ) AS col2 FROM tab1
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-3912
SELECT col1 DIV 61 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3912
SELECT col1 / 61 FROM tab1
----
0
0
0
query I rowsort
SELECT + + 24 AS col0 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT + col2 + col1 * cor0.col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT - col2 * 36 * col2 FROM tab0 AS cor0
----
-242064
-36
-39204
query I rowsort
SELECT + col0 - - col0 * col0 * + col1 FROM tab1 cor0
----
237
41024
83280
query I rowsort
SELECT + - 23 * - col1 AS col2 FROM tab1 cor0
----
230
299
598
query I rowsort
SELECT + ( - col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col1 * col2 FROM tab2 cor0
----
22572
24510
39858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + - 44 AS col1 FROM tab0 cor0
----
-44
-44
-44
query I rowsort
SELECT + cor0.col0 * cor0.col2 + cor0.col1 + col2 AS col0 FROM tab2 cor0
----
2113
247
3057
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 3 * cor0.col2 col2 FROM tab0 AS cor0
----
246
3
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col0 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col1 * + 81 * + cor0.col2 FROM tab1 AS cor0
----
101088
113724
46170
query I rowsort
SELECT col2 * ( 50 * + col1 ) FROM tab1 AS cor0
----
28500
62400
70200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT - + cor0.col0 + + CAST( NULL AS SIGNED ) / 79 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3927
SELECT - + cor0.col0 + + CAST ( NULL AS INTEGER ) / 79 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT col1 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - + col1 * + col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - - col0 + - cor0.col0 * - col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + + col0 * col0 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-3933
SELECT ALL - col2 + - col0 * + cor0.col2 * col2 + + col1 DIV col0 AS col0 FROM tab0 cor0
----
-26166
-34
-598517
skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - col2 + - col0 * + cor0.col2 * col2 + + col1 / col0 AS col0 FROM tab0 cor0
----
-26166
-34
-598517
query I rowsort
SELECT ALL + ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + col0 * + col0 + - col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT + + ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3937
SELECT ALL - CAST( NULL AS SIGNED ) + + ( col0 ) * + ( + col1 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - CAST ( NULL AS INTEGER ) + + ( col0 ) * + ( + col1 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - 65 * 25 AS col1 FROM tab2 AS cor0
----
1625
1625
1625
query I rowsort
SELECT DISTINCT + 65 + 60 * col0 FROM tab1 AS cor0
----
245
3905
4865
query I rowsort
SELECT ALL - col2 * + col0 + - col0 AS col2 FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-3942
SELECT DISTINCT + col0 + + 65 DIV col2 AS col0 FROM tab0 cor0
----
100
25
89
skipif mysql # not compatible
query I rowsort label-3942
SELECT DISTINCT + col0 + + 65 / col2 AS col0 FROM tab0 cor0
----
100
25
89
query I rowsort
SELECT + ( + col0 ) * col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT ( + col1 ) - tab0.col0 * 40 FROM tab0
----
-1303
-3469
-874
query I rowsort
SELECT DISTINCT 36 * col1 FROM tab2
----
1116
2124
612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3946
SELECT - CAST( + col1 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-3946
SELECT - CAST ( + col1 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - 72 * col1 + cor0.col2 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
-414
-93
408
onlyif mysql # use DIV operator for integer division
query I rowsort label-3948
SELECT ALL + + col1 DIV ( col2 ) + col0 AS col1 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL + + col1 / ( col2 ) + col0 AS col1 FROM tab0 AS cor0
----
132
26
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3949
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + col2 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + col2 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 14 + col1 + + col0 FROM tab0
----
124
146
194
query I rowsort
SELECT col0 + col1 + + col2 * + col0 FROM tab2
----
2165
227
3098
query I rowsort
SELECT DISTINCT + - 24 + col2 FROM tab1 cor0
----
30
33
72
query I rowsort
SELECT + col1 + + ( col0 ) AS col1 FROM tab0 cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3954
SELECT ALL CAST( 5 AS SIGNED ) + - col2 - col2 FROM tab2 AS cor0
----
-47
-49
-71
skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL CAST ( 5 AS INTEGER ) + - col2 - col2 FROM tab2 AS cor0
----
-47
-49
-71
query I rowsort
SELECT ( 23 ) AS col1 FROM tab0 AS cor0
----
23
23
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3956
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3956
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 * col1 + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT DISTINCT col1 * col1 - + col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT DISTINCT + + 86 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT + 68 * 36 FROM tab1 AS cor0
----
2448
2448
2448
query I rowsort
SELECT ALL - - col1 + 11 AS col1 FROM tab0 cor0
----
102
108
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT DISTINCT + cor0.col2 DIV + col2 + col2 + - CAST( 90 AS SIGNED ) FROM tab0 AS cor0
----
-56
-7
-88
skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + cor0.col2 / + col2 + col2 + - CAST ( 90 AS INTEGER ) FROM tab0 AS cor0
----
-56
-7
-88
query I rowsort
SELECT DISTINCT - + 87 + 87 AS col0 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3964
SELECT DISTINCT + ( col0 ) DIV - col2 + col2 * col0 * - col0 AS col1 FROM tab1 cor0
----
-233473
-486
-614400
skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT + ( col0 ) / - col2 + col2 * col0 * - col0 AS col1 FROM tab1 cor0
----
-233473
-486
-614400
query I rowsort
SELECT ALL ( 44 ) - + col2 FROM tab2 AS cor0
----
17
18
6
query I rowsort
SELECT ALL + 85 * col0 * col2 + col1 * 71 * + col2 AS col1 FROM tab0 AS cor0
----
1150132
268818
9862
query I rowsort
SELECT - - ( - col0 ) FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3968
SELECT ALL - ( - col2 ) * + CAST( NULL AS SIGNED ) + 85 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - ( - col2 ) * + CAST ( NULL AS INTEGER ) + 85 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 24 + - col0 - col1 FROM tab1
----
-5
-50
-69
query I rowsort
SELECT - 1 + - col1 AS col2 FROM tab1 cor0
----
-11
-14
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3971
SELECT ALL cor0.col1 DIV col1 col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL cor0.col1 / col1 col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT 40 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
3473
3722
3881
query I rowsort
SELECT DISTINCT + 99 * col0 + 9 * col2 AS col0 FROM tab2 AS cor0
----
7956
8163
936
query I rowsort
SELECT - + 88 FROM tab1 AS cor0
----
-88
-88
-88
query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab2, tab2 AS cor0
----
84
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
24
35
89
query I rowsort
SELECT ALL - col0 * col2 + 45 AS col2 FROM tab1 cor0
----
-117
-3603
-7635
query I rowsort
SELECT DISTINCT + + cor0.col1 - - col2 AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT DISTINCT col2 + + col1 DIV + col2 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT col2 + + col1 / + col2 FROM tab0 AS cor0
----
35
83
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col2 * cor0.col1 col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3981
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3981
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 + ( - col1 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 7f0405f8197238fbd342972ef0bcee12
onlyif mysql # use DIV operator for integer division
query I rowsort label-3984
SELECT ALL + + col1 DIV cor0.col0 + - col1 col0 FROM tab1 AS cor0
----
-10
-13
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3984
SELECT ALL + + col1 / cor0.col0 + - col1 col0 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT 89 * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 739ae7782ec73e3aaf8ca0253994ea8e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3986
SELECT DISTINCT + CAST( 25 AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0
----
25
skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT + CAST ( 25 AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0
----
25
query I rowsort
SELECT ALL - 79 FROM tab1, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2
query I rowsort
SELECT col2 + - 52 FROM tab2
----
-14
-25
-26
query I rowsort
SELECT 73 FROM tab2, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT col2 * + col1 * + col2 AS col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT 42 + tab1.col2 AS col1 FROM tab1
----
138
96
99
query I rowsort
SELECT + ( + ( col2 ) ) + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT - + ( + col0 ) * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 * - cor0.col0 col0 FROM tab2 AS cor0
----
-238
-2652
-2686
query I rowsort
SELECT DISTINCT - ( col0 + - col0 ) * + col0 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT DISTINCT + CAST( 81 AS SIGNED ) + + col2 * cor0.col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-2
-37
79
skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + CAST ( 81 AS INTEGER ) + + col2 * cor0.col1 / - col0 AS col0 FROM tab0 AS cor0
----
-2
-37
79
query I rowsort
SELECT 64 * col1 AS col0 FROM tab2 AS cor0
----
1088
1984
3776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 17 ) + - col2 col0 FROM tab1 AS cor0
----
-113
-71
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4000
SELECT - + CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4000
SELECT - + CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4001
SELECT DISTINCT - 98 * col0 + - col2 + + col2 DIV col0 AS col0 FROM tab0
----
-2384
-3431
-8804
skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT - 98 * col0 + - col2 + + col2 / col0 AS col0 FROM tab0
----
-2384
-3431
-8804
query I rowsort
SELECT cor1.col0 + 32 * - cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 61747befc4e73aef2af16aadb049c63a
onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT DISTINCT + col2 + col0 * col2 DIV + ( col2 ) AS col0 FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + col2 + col0 * col2 / + ( col2 ) AS col0 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4004
SELECT DISTINCT col2 * col2 DIV 80 + - col1 * col0 AS col2 FROM tab0
----
-2051
-3395
-8015
skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT col2 * col2 / 80 + - col1 * col0 AS col2 FROM tab0
----
-2051
-3395
-8015
query I rowsort
SELECT DISTINCT tab1.col0 + - tab1.col1 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT - 8 * col1 FROM tab1
----
-104
-208
-80
query I rowsort
SELECT ALL col2 + + col2 * - col1 AS col2 FROM tab0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 col0 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT ALL col0 * tab2.col2 + - ( + 76 ) * col0 + col2 FROM tab2
----
-2964
-316
-3874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * 63 + - col2 col2 FROM tab2 cor0
----
1033
1926
3691
query I rowsort
SELECT ALL + - col1 * + cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + col2 * 89 AS col1 FROM tab0 AS cor0
----
2937
7298
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4013
SELECT + + cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4013
SELECT + + cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT - - cor0.col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4015
SELECT - - cor0.col1 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 67 + + col0 FROM tab2
----
145
146
74
query I rowsort
SELECT ALL + col2 * ( + 37 ) AS col1 FROM tab1 AS cor0
----
1998
2109
3552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + 37 * - col0 col2 FROM tab1 AS cor0
----
-2358
-2947
-85
query I rowsort
SELECT + col1 * 16 + - col1 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT - tab2.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4021
SELECT DISTINCT 68 DIV col0 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT 68 / col0 FROM tab0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * + col1 + 86 col0 FROM tab0
----
-11
-2752
-7376
onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT - cor0.col1 DIV + col0 + col2 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-4023
SELECT - cor0.col1 / + col0 + col2 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT DISTINCT + + col2 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
2890
3239
9203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4025
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT - 37 AS col1 FROM tab0
----
-37
-37
-37
query I rowsort
SELECT + 59 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT + col1 + ( - col2 ) DIV col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-4029
SELECT + col1 + ( - col2 ) / col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT cor0.col1 * 98 FROM tab0 AS cor0
----
8428
8918
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4031
SELECT - CAST( NULL AS SIGNED ) * col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4031
SELECT - CAST ( NULL AS INTEGER ) * col1 + col0 * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col0 col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + 96 + - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2820
-3153
-9120
query I rowsort
SELECT + + 85 + col0 FROM tab1 cor0
----
149
165
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4035
SELECT col1 * col2 + col0 * CAST( + ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
1026
3562
3648
skipif mysql # not compatible
query I rowsort label-4035
SELECT col1 * col2 + col0 * CAST ( + ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT ALL + 64 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT DISTINCT - col1 * - col2 + + 16 * tab0.col0 FROM tab0
----
3222
657
8886
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4038
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4038
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT col1 DIV ( col0 ) FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4039
SELECT col1 / ( col0 ) FROM tab2
----
0
0
4
query I rowsort
SELECT + col1 * - ( - col2 ) AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT col0 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4042
SELECT DISTINCT - CAST( - ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT - CAST ( - ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * - col2 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + 92 * - col1 FROM tab1 AS cor0
----
-1100
-2338
-863
query I rowsort
SELECT + + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT DISTINCT - col1 DIV col2 AS col0 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT - col1 / col2 AS col0 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT ALL col0 * + col0 - ( 72 ) FROM tab2 AS cor0
----
-23
6012
6169
query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL 70 + col2 FROM tab2 AS cor0
----
108
96
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4050
SELECT DISTINCT ( - 46 ) - col0 * CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT ( - 46 ) - col0 * CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL
query I rowsort
SELECT ( - col1 ) + - col2 - col1 FROM tab1
----
-106
-122
-77
query I rowsort
SELECT + col1 * - tab2.col0 + - tab2.col1 * + 9 AS col1 FROM tab2
----
-1496
-496
-5133
query I rowsort
SELECT + 34 * col2 FROM tab1
----
1836
1938
3264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - ( col0 ) col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 - - 37 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8982f75f5683c4cce765888e7a543a0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 + 39 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d32adf5fdd5e4096e2c037977ca3f009
query I rowsort
SELECT tab2.col0 + + tab2.col2 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col2 + ( + 47 ) * - col0 AS col2 FROM tab0
----
-11645
-1742
-3966
query I rowsort
SELECT DISTINCT - - 9 * col2 AS col2 FROM tab2 AS cor0
----
234
243
342
query I rowsort
SELECT - col0 + col0 + + ( col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - - 48 * col2 AS col1 FROM tab2 AS cor0
----
1248
1296
1824
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * - col0 * CAST ( - col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT DISTINCT 9 + col2 FROM tab2 cor0
----
35
36
47
query I rowsort
SELECT + - 99 + col0 FROM tab2 AS cor0
----
-20
-21
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - - 82 + + col1 AS col0 FROM tab0 AS cor0
----
168
173
179
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4068
SELECT col0 - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4068
SELECT col0 - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT DISTINCT - col0 DIV + 48 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT - col0 / + 48 FROM tab0
----
-1
0
query I rowsort
SELECT DISTINCT + col0 * ( - col1 ) * col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - 53 + + 99 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT + + 0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - col2 * 71 FROM tab0
----
-2343
-5822
-71
query I rowsort
SELECT - col1 + col0 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
165
2047
3064
query I rowsort
SELECT DISTINCT - ( - col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 14 + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-19
10
35
query I rowsort
SELECT + cor0.col0 - tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to bd9d093c1474b55627062c05809f59d2
query I rowsort
SELECT + cor0.col0 * + 59 FROM tab1 AS cor0
----
177
3776
4720
query I rowsort
SELECT - col1 + ( 74 ) AS col1 FROM tab0 AS cor0
----
-12
-17
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4081
SELECT DISTINCT - - cor0.col2 * - CAST( - col2 AS SIGNED ) * - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-119821
-32500
-75842
skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - - cor0.col2 * - CAST ( - col2 AS INTEGER ) * - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-119821
-32500
-75842
onlyif mysql # use DIV operator for integer division
query I rowsort label-4082
SELECT DISTINCT - col1 - + col1 DIV col2 AS col1 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT - col1 - + col1 / col2 AS col1 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4083
SELECT + col2 + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-4083
SELECT + col2 + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL col2 * + col0 + + 56 * + col2 FROM tab1 AS cor0
----
13056
3186
6840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4085
SELECT DISTINCT - + col2 * - CAST( + ( - col1 ) AS SIGNED ) FROM tab1 cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT - + col2 * - CAST ( + ( - col1 ) AS INTEGER ) FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT 88 AS col1 FROM tab2 cor0
----
88
query I rowsort
SELECT ALL + - col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4088
SELECT col1 + col0 DIV col2 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-4088
SELECT col1 + col0 / col2 FROM tab1 AS cor0
----
11
13
26
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c
query I rowsort
SELECT + col1 * 43 AS col0 FROM tab1 cor0
----
1118
430
559
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d
query I rowsort
SELECT DISTINCT col1 * - 52 + + col0 FROM tab1 AS cor0
----
-1349
-456
-596
query I rowsort
SELECT DISTINCT - + 60 FROM tab0 cor0
----
-60
query I rowsort
SELECT + 22 AS col0 FROM tab0 AS cor0
----
22
22
22
query I rowsort
SELECT ALL - + ( + col1 ) * col1 + cor0.col2 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab0 AS cor0
----
43
query I rowsort
SELECT ALL 82 + + col1 FROM tab2 AS cor0
----
113
141
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT ALL + + col1 * col0 * - 81 + - col1 DIV col2 FROM tab0 AS cor0
----
-167186
-275092
-656020
skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL + + col1 * col0 * - 81 + - col1 / col2 FROM tab0 AS cor0
----
-167186
-275092
-656020
query I rowsort
SELECT ALL col0 + + col1 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL - + ( cor0.col0 ) + 12 AS col0 FROM tab0 AS cor0
----
-12
-23
-77
query I rowsort
SELECT ALL + col0 * col0 * - 5 + col1 FROM tab0 AS cor0
----
-2794
-39514
-6028
query I rowsort
SELECT DISTINCT - - col2 + - 28 AS col2 FROM tab1 AS cor0
----
26
29
68
query I rowsort
SELECT DISTINCT col2 + - ( 76 ) FROM tab2 AS cor0
----
-38
-49
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4104
SELECT - 62 * - col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
35340
77376
87048
skipif mysql # not compatible
query I rowsort label-4104
SELECT - 62 * - col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
35340
77376
87048
query I rowsort
SELECT ALL - + col2 * 1 + col1 * col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT + col0 * - col2 * col1 + col1 * col2 + + 12 FROM tab0 AS cor0
----
-3286
-65262
-656644
query I rowsort
SELECT ALL - - col0 * + 49 FROM tab2 AS cor0
----
343
3822
3871
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4108
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT tab2.col2 * col2 + - col2 AS col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT col2 + col0 * 13 FROM tab2
----
1040
1065
118
query I rowsort
SELECT ALL - col1 + col0 * 41 AS col0 FROM tab0
----
1338
3558
898
query I rowsort
SELECT + col0 * - col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 * - 67 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT cor0.col1 + cor0.col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col0 * 40 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1435
-3649
-984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4116
SELECT ALL + + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 27 + col1 + + col1 FROM tab1
----
47
53
79
query I rowsort
SELECT 96 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT + cor0.col0 * - col1 + - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL - col2 + - ( - 18 ) * + col0 AS col0 FROM tab0 AS cor0
----
1520
399
629
query I rowsort
SELECT - + col1 + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL ( + col2 ) * col2 + + 23 - - 34 AS col1 FROM tab1
----
2973
3306
9273
query I rowsort
SELECT DISTINCT col1 - tab2.col2 AS col0 FROM tab2
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - col1 col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + - ( + col1 ) * + ( 75 ) + - col0 + 78 AS col1 FROM tab1 AS cor0
----
-1875
-736
-977
onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT ( col1 ) DIV - col2 + + col1 * + col2 col0 FROM tab0
----
0
2836
7461
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4126
SELECT ( col1 ) / - col2 + + col1 * + col2 col0 FROM tab0
----
0
2836
7461
query I rowsort
SELECT ALL 33 FROM tab1
----
33
33
33
query I rowsort
SELECT ALL - ( 16 ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
query I rowsort
SELECT + tab0.col0 + 41 * col0 AS col0 FROM tab0
----
1008
1470
3738
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4130
SELECT DISTINCT + ( - col1 ) * col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + ( - col1 ) * col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT col2 + col2 DIV col0 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-4131
SELECT col2 + col2 / col0 FROM tab2
----
26
30
38
query I rowsort
SELECT DISTINCT + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + 48 * col0 FROM tab2 AS cor0
----
336
3744
3792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4134
SELECT ALL cor0.col1 * col1 - - 55 DIV - col1 AS col2 FROM tab1 AS cor0
----
165
674
95
skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL cor0.col1 * col1 - - 55 / - col1 AS col2 FROM tab1 AS cor0
----
165
674
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col0 + 52 col1 FROM tab2 AS cor0
----
101
6136
6293
query I rowsort
SELECT ALL 49 + + col2 AS col2 FROM tab2 AS cor0
----
75
76
87
query I rowsort
SELECT col1 * + cor0.col0 + ( + 25 ) AS col2 FROM tab1 AS cor0
----
103
1065
665
onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT ALL + ( col2 ) DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + ( col2 ) / - col0 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4139
SELECT 16 * col0 - - CAST( col1 + col0 * - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2614
-6387
-88
skipif mysql # not compatible
query I rowsort label-4139
SELECT 16 * col0 - - CAST ( col1 + col0 * - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2614
-6387
-88
query I rowsort
SELECT cor0.col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - tab1.col2 * col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - + col2 * - col0 + - cor0.col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col2 * + col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - - col1 * cor0.col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT - - col2 * + cor0.col1 + - col2 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
-232902
-613152
918
query I rowsort
SELECT + col2 + + cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-4149
SELECT + + col0 DIV - col0 + col1 * col0 + col0 * - col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-11761
-39481
-696871
skipif mysql # not compatible
query I rowsort label-4149
SELECT + + col0 / - col0 + col1 * col0 + col0 * - col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-11761
-39481
-696871
query I rowsort
SELECT ALL col1 * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - ( - col2 ) - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * cor0.col2 + col1 col1 FROM tab0 AS cor0
----
160
2165
5257
query I rowsort
SELECT ALL + col1 * col1 + col0 + col1 AS col2 FROM tab0 AS cor0
----
7506
8461
9541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + ( tab1.col1 ) * - col0 + - tab1.col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT - col0 + + 8 FROM tab1
----
-56
-72
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4158
SELECT ALL + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT - col0 * + col1 + col0 * cor0.col2 FROM tab1 AS cor0
----
3008
6640
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4160
SELECT + 49 DIV + col0 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4160
SELECT + 49 / + col0 FROM tab0
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-4161
SELECT + 8 DIV + col0 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4161
SELECT + 8 / + col0 FROM tab2
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4162
SELECT - tab2.col0 DIV col1 AS col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4162
SELECT - tab2.col0 / col1 AS col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT DISTINCT + col0 * + col2 * + col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col0 * - col1 + col2 * col2 AS col2 FROM tab2
----
-3926
101
512
query I rowsort
SELECT col0 * col2 + col1 * - col0 FROM tab0
----
-1272
-3360
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT ALL - col0 DIV + col0 + + col1 AS col1 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL - col0 / + col0 + + col1 AS col1 FROM tab1
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * col1 col1 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT - col0 + col2 * col1 AS col2 FROM tab0
----
2814
62
7373
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 >= col1 + + col0 + col0 * + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4171
SELECT DISTINCT - col0 DIV col0 + col1 AS col1 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - col0 / col0 + col1 AS col1 FROM tab2
----
16
30
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT tab2.col1 DIV col1 + + col0 AS col2 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-4172
SELECT tab2.col1 / col1 + + col0 AS col2 FROM tab2
----
79
8
80
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT BETWEEN ( NULL ) AND col2 + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT + tab1.col1 DIV col2 - col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4174
SELECT + tab1.col1 / col2 - col0 FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col2 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT + tab1.col1 * + col2 + col0 + col2 FROM tab1
----
1424
1461
691
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - col0 * + tab1.col0 >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT ALL col1 * tab0.col2 DIV - col1 AS col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL col1 * tab0.col2 / - col1 AS col2 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 + - col2 col2 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4180
SELECT ALL col1 DIV + tab1.col1 + + tab1.col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-4180
SELECT ALL col1 / + tab1.col1 + + tab1.col1 FROM tab1
----
11
14
27
query I rowsort
SELECT - col2 * + col2 * col0 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT col1 * col1 * - col2 AS col0 FROM tab1
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query III rowsort label-4183
SELECT * FROM tab2 WHERE - col2 + col2 <> tab2.col2 DIV col0
----
7
31
27
skipif mysql # not compatible
query III rowsort label-4183
SELECT * FROM tab2 WHERE - col2 + col2 <> tab2.col2 / col0
----
7
31
27
query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT col2 * tab2.col2 AS col2 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 + col0 + - col2 * col1 col1 FROM tab1
----
-10384
-3755
-4317
query I rowsort
SELECT tab1.col1 * col2 * + col2 + - col0 + col1 AS col0 FROM tab1
----
119741
32436
75839
query I rowsort
SELECT DISTINCT col0 + - col0 + - col2 * col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL tab0.col0 FROM tab0 WHERE NULL >= ( col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT IN ( tab2.col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + col2 * col1 * col0 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT ALL - col2 DIV + col2 + tab0.col0 * - col0 FROM tab0
----
-1226
-577
-7922
skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL - col2 / + col2 + tab0.col0 * - col0 FROM tab0
----
-1226
-577
-7922
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * - col2 col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + + 46 * col0 * col1 + col2 FROM tab0 AS cor0
----
156171
372636
94977
query I rowsort
SELECT - + col2 + - col2 * + col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 AS col1 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 col0 FROM tab2
----
52
54
76
query I rowsort
SELECT + col1 - 33 AS col0 FROM tab2
----
-16
-2
26
query I rowsort
SELECT col1 * + tab0.col2 - - col2 * 50 FROM tab0
----
11562
147
4488
query I rowsort
SELECT ALL - + 54 + + cor0.col2 * col2 * 9 AS col0 FROM tab2 AS cor0
----
12942
6030
6507
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + col2 col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - - col0 * - col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + col2 + + 55 * col2 AS col1 FROM tab0
----
1848
4592
56
query I rowsort
SELECT 40 * + tab0.col0 + col2 AS col1 FROM tab0
----
1401
3642
993
query I rowsort
SELECT DISTINCT - 28 + col1 AS col0 FROM tab2
----
-11
3
31
query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab2, tab1, tab1 AS cor0
----
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT 71 + 44 DIV col0 AS col2 FROM tab0
----
71
72
72
skipif mysql # not compatible
query I rowsort label-4208
SELECT 71 + 44 / col0 AS col2 FROM tab0
----
71
72
72
query I rowsort
SELECT - 93 + + 81 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT - col1 + col2 * tab0.col0 * ( - col0 + - col2 ) FROM tab0
----
-1248049
-1357
-45230
query I rowsort
SELECT DISTINCT + 89 * tab0.col1 + col2 AS col0 FROM tab0
----
7687
8181
8634
query I rowsort
SELECT ALL ( - 22 ) + col1 * 2 * - 27 AS col1 FROM tab2
----
-1696
-3208
-940
query I rowsort
SELECT 77 + col1 AS col0 FROM tab0
----
163
168
174
query I rowsort
SELECT + 62 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4215
SELECT DISTINCT - CAST( 17 AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-17
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT - CAST ( 17 AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-17
query I rowsort
SELECT ALL - tab1.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT 82 AS col2 FROM tab0
----
82
82
82
query I rowsort
SELECT DISTINCT - + col0 * col2 * 71 AS col0 FROM tab0 AS cor0
----
-2485
-518158
-56232
query I rowsort
SELECT + col1 * + col0 + col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT ALL + + col0 * col2 - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL col0 * col0 + 34 FROM tab0 AS cor0
----
1259
610
7955
query I rowsort
SELECT ALL + + col0 - + col2 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - - cor1.col2 * cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4224
SELECT ALL - col0 - col0 DIV 74 col1 FROM tab1
----
-3
-64
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - col0 - col0 / 74 col1 FROM tab1
----
-3
-64
-81
query I rowsort
SELECT col2 * tab2.col1 + - col0 AS col0 FROM tab2
----
1456
567
830
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1
query I rowsort
SELECT cor0.col1 + + col1 * + 14 AS col1 FROM tab2 AS cor0
----
255
465
885
onlyif mysql # use DIV operator for integer division
query I rowsort label-4228
SELECT ALL + col1 DIV 53 AS col2 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL + col1 / 53 AS col2 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT ALL col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col2 + + col0 + col1 * col1 FROM tab2
----
3585
406
995
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + + col1 * - 5 col0 FROM tab0 AS cor0
----
-1222
-520
-7753
query I rowsort
SELECT DISTINCT - cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
-10
-13
-26
query I rowsort
SELECT + 66 * - col1 AS col1 FROM tab0 AS cor0
----
-5676
-6006
-6402
query I rowsort
SELECT ALL + + 53 FROM tab2 AS cor0
----
53
53
53
query I rowsort
SELECT ALL + 61 * col1 * cor0.col0 FROM tab1 cor0
----
39040
4758
63440
query I rowsort
SELECT DISTINCT + col1 * + 98 FROM tab2 AS cor0
----
1666
3038
5782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + - ( col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + + ( 2 ) + col0 AS col1 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT DISTINCT + ( + 25 ) AS col1 FROM tab2 AS cor0
----
25
query I rowsort
SELECT - ( - col0 ) + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - 27 * ( - col2 ) FROM tab0 AS cor0
----
2214
27
891
query I rowsort
SELECT 87 + - col0 FROM tab2 AS cor0
----
8
80
9
query I rowsort
SELECT ALL - 78 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col1 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col2 + + ( col0 ) * col2 - + ( - 8 ) col0 FROM tab1 AS cor0
----
15368
332
7304
query I rowsort
SELECT ALL + col0 * col1 + cor0.col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - - 59 FROM tab2 AS cor0
----
59
59
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4250
SELECT - + ( col2 ) * col2 - + ( + cor0.col2 + + col1 ) DIV col2 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif mysql # not compatible
query I rowsort label-4250
SELECT - + ( col2 ) * col2 - + ( + cor0.col2 + + col1 ) / col2 FROM tab1 AS cor0
----
-2917
-3250
-9217
query I rowsort
SELECT - ( 44 ) * col0 FROM tab1 AS cor0
----
-132
-2816
-3520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 4 col2 FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT ALL + - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - 95 + - 1 * - col2 AS col1 FROM tab1 AS cor0
----
-38
-41
1
query I rowsort
SELECT ALL - 95 * + 75 AS col0 FROM tab1 cor0
----
-7125
-7125
-7125
onlyif mysql # use DIV operator for integer division
query I rowsort label-4256
SELECT + - 56 DIV + col0 + + col2 * col1 * col0 FROM tab0 AS cor0
----
3394
664118
68110
skipif mysql # not compatible
query I rowsort label-4256
SELECT + - 56 / + col0 + + col2 * col1 * col0 FROM tab0 AS cor0
----
3394
664118
68110
query I rowsort
SELECT ALL + ( cor0.col2 ) + col0 + - col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 85 + col2 * cor0.col2 FROM tab1 AS cor0
----
3001
3334
9301
query I rowsort
SELECT ALL + 56 AS col1 FROM tab0 AS cor0
----
56
56
56
query I rowsort
SELECT ALL - - 99 AS col0 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT + 96 * col2 * col2 AS col1 FROM tab2 AS cor0
----
138624
64896
69984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 + col0 * col0 col0 FROM tab2
----
107
6169
6296
query I rowsort
SELECT + + ( col2 ) + ( cor0.col1 * col1 ) FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT col1 + - col0 * + cor0.col0 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT - + 23 FROM tab0, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
skipif mysql # not compatible
query I rowsort
SELECT ALL + + cor0.col1 + 76 * col0 + col0 * - CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
12493
263
8970
query I rowsort
SELECT DISTINCT + col1 * col0 + 62 FROM tab2 AS cor0
----
1405
279
4664
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 * cor0.col2 col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT + col2 * ( col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - 70 * col1 * 10 + 97 * col1 FROM tab2
----
-10251
-18693
-35577
query I rowsort
SELECT DISTINCT col2 + ( col0 ) * + col0 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT ALL col1 - 19 AS col1 FROM tab1
----
-6
-9
7
query I rowsort
SELECT + - ( - 53 ) + col0 AS col0 FROM tab2 AS cor0
----
131
132
60
query I rowsort
SELECT + col2 + - 58 AS col0 FROM tab2 AS cor0
----
-20
-31
-32
query I rowsort
SELECT 84 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4276
SELECT - cor0.col0 - CAST( NULL AS SIGNED ) * + 66 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4276
SELECT - cor0.col0 - CAST ( NULL AS INTEGER ) * + 66 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + col1 + 91 AS col1 FROM tab0 AS cor0
----
177
182
188
query I rowsort
SELECT col1 + - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col1 * + 68 * col2 AS col1 FROM tab2 AS cor0
----
104312
43928
56916
query I rowsort
SELECT DISTINCT + 14 * col2 AS col1 FROM tab1
----
1344
756
798
query I rowsort
SELECT DISTINCT col0 + + ( col2 ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT + col2 + ( 75 * col2 ) FROM tab2
----
1976
2052
2888
query I rowsort
SELECT + col2 + 36 * 13 FROM tab0 AS cor0
----
469
501
550
query I rowsort
SELECT ( - 46 ) FROM tab2
----
-46
-46
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col0 FROM tab0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4286
SELECT ALL + + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 60 ) AS col1 FROM tab2
----
-60
-60
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col0 + - col2 * col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + + 6 * + col1 + + ( col1 ) * col0 FROM tab2 AS cor0
----
1445
403
4956
query I rowsort
SELECT DISTINCT + - ( col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT DISTINCT 67 DIV col2 col0 FROM tab0
----
0
2
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT 67 / col2 col0 FROM tab0
----
0
2
67
query I rowsort
SELECT - 96 * col2 * col2 AS col2 FROM tab2 AS cor0
----
-138624
-64896
-69984
query I rowsort
SELECT - + cor0.col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - 81 AS col0 FROM tab1, tab2, tab0 AS cor0
----
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT 3 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
3
query I rowsort
SELECT DISTINCT 87 FROM tab2, tab1, tab2 AS cor0
----
87
query I rowsort
SELECT - 62 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT DISTINCT + + col0 DIV + col0 + col2 col2 FROM tab0 AS cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + + col0 / + col0 + col2 col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + col0 * col1 * 66 - col0 FROM tab1 AS cor0
----
42176
5145
68560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT - 65 + + col2 AS col1 FROM tab2 cor0
----
-27
-38
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * + col0 + - col0 * + 86 col1 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT ALL - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + - ( col2 ) + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT col1 DIV ( - col2 + + col1 ) FROM tab0 AS cor0
----
1
1
10
skipif mysql # not compatible
query I rowsort label-4307
SELECT col1 / ( - col2 + + col1 ) FROM tab0 AS cor0
----
1
1
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-4308
SELECT - col0 DIV + 90 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4308
SELECT - col0 / + 90 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + - 94 * + col1 AS col0 FROM tab1 AS cor0
----
-1126
-2390
-883
query I rowsort
SELECT ALL cor0.col1 * ( + 77 ) FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT ALL col0 * + 33 * col2 AS col1 FROM tab1 AS cor0
----
120384
253440
5346
query I rowsort
SELECT ( - col1 ) * 78 + col2 * + col0 FROM tab1
----
-1866
2868
6666
query I rowsort
SELECT + 70 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT DISTINCT - + col0 * - ( - col1 + - col1 ) * col2 FROM tab2 AS cor0
----
-102068
-11718
-239304
query I rowsort
SELECT ALL - col1 + ( 5 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
104
173
71
query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - 56 FROM tab1
----
-56
-56
-56
query I rowsort
SELECT DISTINCT col2 + col1 * col1 AS col2 FROM tab2 AS cor0
----
327
3507
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 + col0 * col0 col1 FROM tab2 AS cor0
----
4
6039
6196
query I rowsort
SELECT ALL 21 * - col0 + col2 + + 6 FROM tab0 AS cor0
----
-1781
-465
-728
onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT DISTINCT - col2 DIV col0 + - cor0.col2 FROM tab1 AS cor0
----
-57
-72
-97
skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - col2 / col0 + - cor0.col2 FROM tab1 AS cor0
----
-57
-72
-97
query I rowsort
SELECT + - ( 22 ) AS col2 FROM tab0 AS cor0
----
-22
-22
-22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4323
SELECT + CAST( NULL AS SIGNED ) + col2 * - cor0.col2 * col0 + ( - col2 * + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4323
SELECT + CAST ( NULL AS INTEGER ) + col2 * - cor0.col2 * col0 + ( - col2 * + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - ( - col0 ) + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab0, tab2 AS cor0
----
7
query I rowsort
SELECT DISTINCT - + ( col0 ) + - col1 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL - col2 * - col2 * col0 + - ( 79 ) FROM tab0 AS cor0
----
-44
26057
598357
query I rowsort
SELECT ALL + 96 + cor0.col0 - - col2 FROM tab1 AS cor0
----
153
217
272
query I rowsort
SELECT ALL 66 + - col2 AS col0 FROM tab1 AS cor0
----
-30
12
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 + col1 col2 FROM tab0 AS cor0
----
104
109
115
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4331
SELECT - cor0.col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4331
SELECT - cor0.col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + + 65 * col2 FROM tab0 cor0
----
2145
5330
65
query I rowsort
SELECT - - 5 * + col0 * 54 FROM tab1 AS cor0
----
17280
21600
810
query I rowsort
SELECT DISTINCT 25 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT 44 * col0 AS col1 FROM tab0 AS cor0
----
1056
1540
3916
query I rowsort
SELECT ( - col0 ) - - tab1.col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col1 + 6 * col1 FROM tab1
----
130
50
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-4338
SELECT DISTINCT + col2 DIV ( + col2 ) + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT + col2 / ( + col2 ) + col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT ALL col2 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT + col2 * + ( - ( col0 ) ) + ( + 12 ) AS col2 FROM tab0 AS cor0
----
-23
-7286
-780
query I rowsort
SELECT ALL - cor0.col0 * + 94 AS col2 FROM tab2 cor0
----
-658
-7332
-7426
query I rowsort
SELECT DISTINCT - + col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - - cor0.col0 + + 10 AS col1 FROM tab0 AS cor0
----
34
45
99
query I rowsort
SELECT DISTINCT - col0 * 80 + col0 AS col0 FROM tab2 AS cor0
----
-553
-6162
-6241
query I rowsort
SELECT DISTINCT + col1 + + col0 * + 12 + - col1 AS col1 FROM tab0 AS cor0
----
1068
288
420
query I rowsort
SELECT + col2 + + col1 * ( + col1 + col0 ) FROM tab0 AS cor0
----
12805
16462
9493
query I rowsort
SELECT DISTINCT + + col2 + - 56 FROM tab2 AS cor0
----
-18
-29
-30
query I rowsort
SELECT ALL col2 * + tab2.col0 - 8 * col0 FROM tab2
----
133
1404
2370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4349
SELECT ALL - 87 + + col2 - + CAST( - 89 AS SIGNED ) * + col1 FROM tab0
----
7600
8094
8547
skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - 87 + + col2 - + CAST ( - 89 AS INTEGER ) * + col1 FROM tab0
----
7600
8094
8547
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 - col0 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 - col2 AS col0 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT ALL col2 * 49 * + col1 FROM tab0 AS cor0
----
139062
365638
4753
query I rowsort
SELECT col0 - + col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + + cor0.col1 * + col1 * + col2 + col2 * cor0.col1 FROM tab0 AS cor0
----
246906
686504
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-4355
SELECT col0 * - ( col2 ) + + col0 DIV col0 AS col0 FROM tab0 cor0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-4355
SELECT col0 * - ( col2 ) + + col0 / col0 AS col0 FROM tab0 cor0
----
-34
-7297
-791
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * + col2 + col0 * col1 * col0 + - col2 col2 FROM tab0 AS cor0
----
118785
48216
717531
query I rowsort
SELECT - + col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT col0 * - cor0.col0 + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-1260
-1368
-15219
query I rowsort
SELECT DISTINCT 37 * col0 + - col2 - col1 * col2 FROM tab0 AS cor0
----
-1983
-4251
1197
query I rowsort
SELECT ALL col1 - col2 * ( - 37 ) FROM tab2 cor0
----
1021
1030
1423
query I rowsort
SELECT + 20 - - col1 FROM tab0
----
106
111
117
query I rowsort
SELECT col1 + + col2 * + col0 + - col2 AS col1 FROM tab2
----
193
2061
2981
onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT + tab1.col0 DIV - col2 + - 99 * + col2 AS col2 FROM tab1
----
-5346
-5644
-9504
skipif mysql # not compatible
query I rowsort label-4364
SELECT + tab1.col0 / - col2 + - 99 * + col2 AS col2 FROM tab1
----
-5346
-5644
-9504
onlyif mysql # use DIV operator for integer division
query I rowsort label-4365
SELECT col0 DIV tab1.col1 + + ( col1 ) * col1 + col2 * + 32 AS col0 FROM tab1
----
1930
2404
3247
skipif mysql # not compatible
query I rowsort label-4365
SELECT col0 / tab1.col1 + + ( col1 ) * col1 + col2 * + 32 AS col0 FROM tab1
----
1930
2404
3247
query I rowsort
SELECT + 42 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT DISTINCT tab1.col1 + - tab1.col0 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT - 39 * - col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
142272
299520
6318
query I rowsort
SELECT + ( col1 ) * - 43 FROM tab2 AS cor0
----
-1333
-2537
-731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4370
SELECT + cor0.col1 * + col1 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4370
SELECT + cor0.col1 * + col1 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 54 * + cor0.col0 FROM tab2 AS cor0
----
378
4212
4266
query I rowsort
SELECT ALL - col2 + + col0 * col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - tab0.col2 * col1 + - col1 AS col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT - 24 AS col0 FROM tab1
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT DISTINCT + - 93 * + col2 + + 95 DIV - col1 FROM tab1 AS cor0
----
-5025
-5310
-8935
skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT + - 93 * + col2 + + 95 / - col1 FROM tab1 AS cor0
----
-5025
-5310
-8935
query I rowsort
SELECT + cor0.col2 + col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4377
SELECT - + ( col0 ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4377
SELECT - + ( col0 ) * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 87 * cor0.col1 + + col0 FROM tab1 AS cor0
----
-1051
-2259
-806
query I rowsort
SELECT + col1 * + 21 - + cor0.col1 FROM tab1 AS cor0
----
200
260
520
query I rowsort
SELECT ALL col0 * 32 FROM tab1 AS cor0
----
2048
2560
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col1 col1 FROM tab2 cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( - col1 AS REAL ) * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + col2 * 40 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT ALL 55 FROM tab2, tab0 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT DISTINCT + 60 - - cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
142
61
93
query I rowsort
SELECT DISTINCT - ( 13 ) FROM tab1 cor0
----
-13
query I rowsort
SELECT 74 + col1 AS col1 FROM tab1
----
100
84
87
query I rowsort
SELECT ALL + ( col0 * - col0 ) AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT + + col1 + col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT ALL + col0 * - col2 + - col1 + col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4392
SELECT DISTINCT + col0 * - 91 + cor0.col1 + + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-247
-5813
-7267
skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT + col0 * - 91 + cor0.col1 + + col0 / col2 AS col2 FROM tab1 AS cor0
----
-247
-5813
-7267
onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT DISTINCT - - col0 DIV - 25 + col0 FROM tab0 AS cor0
----
24
34
86
skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT - - col0 / - 25 + col0 FROM tab0 AS cor0
----
24
34
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4394
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col0 col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab1 cor0
----
48
query I rowsort
SELECT ALL - 95 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-105
-108
-121
query I rowsort
SELECT - - 47 + - 41 * + col2 AS col2 FROM tab1 AS cor0
----
-2167
-2290
-3889
query I rowsort
SELECT - 52 AS col2 FROM tab2 AS cor0
----
-52
-52
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT DISTINCT col0 DIV + col0 AS col2 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT col0 / + col0 AS col2 FROM tab2 cor0
----
1
query I rowsort
SELECT - col0 + + col2 * cor0.col1 * 36 FROM tab2 AS cor0
----
23177
30125
55146
query I rowsort
SELECT DISTINCT - 91 + col2 AS col1 FROM tab1 AS cor0
----
-34
-37
5
query I rowsort
SELECT ALL + ( cor0.col2 ) + col0 * cor0.col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT ALL + - ( - col1 ) * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL 26 AS col0 FROM tab2
----
26
26
26
query I rowsort
SELECT - 80 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd
query I rowsort
SELECT + - 23 AS col1 FROM tab0 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL - - 34 FROM tab1 cor0
----
34
34
34
query I rowsort
SELECT - 21 * + ( + tab0.col2 ) FROM tab0
----
-1722
-21
-693
onlyif mysql # use DIV operator for integer division
query I rowsort label-4410
SELECT + col2 * 57 DIV - col1 AS col0 FROM tab1
----
-118
-324
-420
skipif mysql # not compatible
query I rowsort label-4410
SELECT + col2 * 57 / - col1 AS col0 FROM tab1
----
-118
-324
-420
query I rowsort
SELECT ALL 11 FROM tab2, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT 25 * col1 - - tab0.col2 FROM tab0
----
2183
2357
2426
query I rowsort
SELECT ALL - 29 FROM tab2
----
-29
-29
-29
onlyif mysql # use DIV operator for integer division
query I rowsort label-4414
SELECT col1 DIV + col1 + + tab2.col0 col0 FROM tab2
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4414
SELECT col1 / + col1 + + tab2.col0 col0 FROM tab2
----
79
8
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT DISTINCT - tab1.col2 DIV col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-4415
SELECT DISTINCT - tab1.col2 / col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ALL + - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - ( - col1 ) col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + col1 + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + + col0 * - ( + col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - + cor0.col1 + - col0 * - col2 AS col0 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT + col2 + - tab2.col1 * col1 AS col0 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT col1 * + 23 FROM tab2
----
1357
391
713
query I rowsort
SELECT col0 - col2 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT - col0 * + cor0.col0 + - 41 FROM tab2 AS cor0
----
-6125
-6282
-90
query I rowsort
SELECT + - ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - ( 14 ) + col0 FROM tab2 AS cor0
----
-7
64
65
query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab2 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4428
SELECT - CAST( col0 AS SIGNED ) + col2 * + 65 AS col2 FROM tab1 AS cor0
----
3507
3641
6160
skipif mysql # not compatible
query I rowsort label-4428
SELECT - CAST ( col0 AS INTEGER ) + col2 * + 65 AS col2 FROM tab1 AS cor0
----
3507
3641
6160
onlyif mysql # use DIV operator for integer division
query I rowsort label-4429
SELECT - ( 0 ) DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4429
SELECT - ( 0 ) / col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4430
SELECT ALL - col1 + - col1 + - col2 * - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-2146
-251
-3036
skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - col1 + - col1 + - col2 * - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-2146
-251
-3036
query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab0, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - + 11 FROM tab1 AS cor0
----
-11
query I rowsort
SELECT + ( + col1 ) * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4435
SELECT + + CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4435
SELECT + + CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col0 * + col0 + - col0 AS col2 FROM tab1 cor0
----
4032
6
6320
query I rowsort
SELECT - cor0.col0 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col1 FROM tab1 cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-4440
SELECT DISTINCT cor0.col2 + col0 DIV + col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT cor0.col2 + col0 / + col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT - + 38 + + col2 * col2 * 47 AS col0 FROM tab1 AS cor0
----
137014
152665
433114
onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT ALL - 88 DIV + col0 AS col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL - 88 / + col0 AS col0 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT ALL ( + col0 ) * ( col2 ) - + cor0.col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - col0 + col1 * 71 * col0 FROM tab0 AS cor0
----
146520
241010
574940
query I rowsort
SELECT DISTINCT 29 + col2 FROM tab1 AS cor0
----
125
83
86
query I rowsort
SELECT ALL - ( cor0.col0 ) * cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - + col0 + cor0.col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - 83 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-109
-93
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT col0 * + col0 + - cor0.col1 DIV - col1 FROM tab1 AS cor0
----
10
4097
6401
skipif mysql # not compatible
query I rowsort label-4449
SELECT col0 * + col0 + - cor0.col1 / - col1 FROM tab1 AS cor0
----
10
4097
6401
query I rowsort
SELECT + col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - col0 * + col2 + cor0.col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + col2 * + col2 col1 FROM tab1 AS cor0
----
18432
5832
6498
query I rowsort
SELECT DISTINCT - col2 * col1 * - col0 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT cor0.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT col1 * col1 + + col2 * col0 FROM tab0
----
15579
8188
9444
query I rowsort
SELECT col0 + col2 * - col2 * col0 FROM tab2
----
-113997
-5096
-52650
query I rowsort
SELECT ALL - cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + + ( cor0.col1 ) + + tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0d3314bb1336bbbe450f5f7434b6b3cd
query I rowsort
SELECT DISTINCT 85 * - tab1.col0 + - tab1.col0 FROM tab1
----
-258
-5504
-6880
onlyif mysql # use DIV operator for integer division
query I rowsort label-4460
SELECT DISTINCT tab2.col2 * col0 + col1 DIV + col1 FROM tab2
----
190
2029
3003
skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT tab2.col2 * col0 + col1 / + col1 FROM tab2
----
190
2029
3003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4461
SELECT DISTINCT - 76 * - col2 + + CAST( col1 * - col0 AS SIGNED ) FROM tab2 AS cor0
----
-2626
1545
1835
skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT - 76 * - col2 + + CAST ( col1 * - col0 AS INTEGER ) FROM tab2 AS cor0
----
-2626
1545
1835
query I rowsort
SELECT + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col1 * + col1 * - col0 - col0 AS col0 FROM tab0 AS cor0
----
177480
329280
736920
query I rowsort
SELECT col1 * - col0 + + cor0.col1 AS col0 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT col1 + col2 * cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col2 + 90 FROM tab0 AS cor0
----
123
172
91
query I rowsort
SELECT ALL + col0 + + 68 AS col1 FROM tab1 AS cor0
----
132
148
71
query I rowsort
SELECT + - col1 * 24 + - 36 * + col0 - col2 AS col0 FROM tab0 AS cor0
----
-2961
-3589
-5470
query I rowsort
SELECT DISTINCT - col1 * 26 AS col2 FROM tab2 AS cor0
----
-1534
-442
-806
query I rowsort
SELECT ALL + col2 * col0 + + 16 * col1 FROM tab0 AS cor0
----
1587
2168
8754
query I rowsort
SELECT DISTINCT + cor0.col1 - + ( + col0 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - - col0 * - 0 + cor0.col1 * col2 - - col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - cor0.col0 * - 45 * + 0 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col0 - col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL 73 + col1 - col1 FROM tab0
----
73
73
73
query I rowsort
SELECT cor0.col1 * 44 FROM tab0 AS cor0
----
3784
4004
4268
query I rowsort
SELECT ALL col0 + col2 * col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT col2 * col1 FROM tab1 WHERE NULL NOT BETWEEN - col0 AND NULL
----
query I rowsort
SELECT - col1 * + col2 - col1 AS col0 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT ALL tab1.col1 + tab1.col0 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT col2 * col2 + + col0 + - col0 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NULL NOT IN ( col1 )
----
query I rowsort
SELECT - col0 + tab0.col0 * col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT + tab0.col1 * tab0.col1 + col2 - - tab0.col1 FROM tab0
----
7515
8454
9507
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IN ( - col2 * col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT DISTINCT col1 + col1 DIV - tab1.col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT col1 + col1 / - tab1.col2 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - col1 * - col1 + + col0 AS col1 FROM tab2 WHERE col0 NOT BETWEEN - col2 AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( tab1.col0 * col0 )
----
query I rowsort
SELECT col2 + - col0 + col0 FROM tab2
----
26
27
38
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( col2 + col1 )
----
query I rowsort
SELECT ALL col0 + - cor0.col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - ( - col1 ) * + 31 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT DISTINCT - col1 + col2 * + col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT - tab1.col0 * col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col2 + col2 * tab2.col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT tab0.col0 * + col2 + col0 + col0 * - col1 AS col2 FROM tab0
----
-1248
-3325
-712
query I rowsort
SELECT ALL 21 AS col0 FROM tab2
----
21
21
21
query I rowsort
SELECT ALL + 64 + - col2 FROM tab1 AS cor0
----
-32
10
7
query I rowsort
SELECT DISTINCT + cor0.col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - 46 AS col2 FROM tab2
----
-46
-46
-46
query I rowsort
SELECT 52 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab0, tab0 AS cor0
----
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4504
SELECT + cor0.col2 DIV + col2 + - col1 * + cor0.col0 * col2 FROM tab1 AS cor0
----
-36479
-4211
-99839
skipif mysql # not compatible
query I rowsort label-4504
SELECT + cor0.col2 / + col2 + - col1 * + cor0.col0 * col2 FROM tab1 AS cor0
----
-36479
-4211
-99839
onlyif mysql # use DIV operator for integer division
query I rowsort label-4505
SELECT + col0 + + col1 DIV cor0.col0 FROM tab0 cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-4505
SELECT + col0 + + col1 / cor0.col0 FROM tab0 cor0
----
27
37
90
query I rowsort
SELECT - - ( ( - col1 ) ) * 38 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT DISTINCT + + cor0.col2 * - 32 AS col1 FROM tab0, tab2 AS cor0
----
-1216
-832
-864
query I rowsort
SELECT DISTINCT col2 * col2 + - col0 FROM tab1 cor0
----
2913
3185
9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + 93 col1 FROM tab0 cor0
----
4
58
69
query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab0 AS cor0
----
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 + col0 * - col0 col0 FROM tab0
----
-1126
-477
-7822
query I rowsort
SELECT col1 * col0 + - col1 * - col2 FROM tab0 AS cor0
----
15561
3492
4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 col1 FROM tab2 cor0
----
-52
-54
-76
query I rowsort
SELECT ALL + - 47 + + col2 * col1 AS col2 FROM tab2 cor0
----
1487
599
790
query I rowsort
SELECT 23 + - cor0.col2 + col0 * - cor0.col2 AS col0 FROM tab2 cor0
----
-193
-2031
-3017
onlyif mysql # use DIV operator for integer division
query I rowsort label-4516
SELECT - 15 DIV cor0.col2 FROM tab0 AS cor0
----
-15
0
0
skipif mysql # not compatible
query I rowsort label-4516
SELECT - 15 / cor0.col2 FROM tab0 AS cor0
----
-15
0
0
query I rowsort
SELECT DISTINCT + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col0 + col1 * col1 * - col0 FROM tab0 AS cor0
----
-177480
-329280
-736920
onlyif mysql # use DIV operator for integer division
query I rowsort label-4519
SELECT + + cor0.col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-4519
SELECT + + cor0.col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4520
SELECT CAST( + col2 AS SIGNED ) + - cor0.col2 + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4520
SELECT CAST ( + col2 AS INTEGER ) + - cor0.col2 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - 19 FROM tab2 AS cor0
----
19
19
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col2 FROM tab0, tab0 AS cor0
----
92
query I rowsort
SELECT - + 31 AS col1 FROM tab2 AS cor0
----
-31
-31
-31
query I rowsort
SELECT - ( col0 ) + + col1 AS col0 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT + - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # use DIV operator for integer division
query I rowsort label-4526
SELECT + - cor0.col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4526
SELECT + - cor0.col1 / - col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT - 99 - + cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to da7b9d9efdf6471d1d34c07fbd61ad4b
query I rowsort
SELECT ALL + - 56 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1287
161
4546
query I rowsort
SELECT DISTINCT - - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - 85 - - tab2.col2 AS col2 FROM tab2, tab0 cor0
----
-47
-58
-59
query I rowsort
SELECT ALL 36 * + col1 FROM tab2
----
1116
2124
612
query I rowsort
SELECT ALL col0 + - col2 + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - 89 * - col1 FROM tab2 cor0
----
1513
2759
5251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col1 col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - ( col2 ) + col2 * col0 FROM tab1 cor0
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4537
SELECT ALL CAST( + col2 * + col2 AS SIGNED ) AS col0 FROM tab2
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL CAST ( + col2 * + col2 AS INTEGER ) AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT - ( col0 * - col0 ) - + col0 AS col1 FROM tab2
----
42
6006
6162
query I rowsort
SELECT - ( 68 ) * + col0 FROM tab2
----
-476
-5304
-5372
query I rowsort
SELECT DISTINCT ( + col2 ) + + col2 FROM tab1
----
108
114
192
query I rowsort
SELECT col0 * 68 FROM tab2
----
476
5304
5372
query I rowsort
SELECT col0 * 69 AS col1 FROM tab2
----
483
5382
5451
query I rowsort
SELECT DISTINCT + col0 + - col2 + col1 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT + col0 + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + cor0.col2 + col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col2 < NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + + col2 + - col0 col2 FROM tab2 AS cor0
----
248
3429
981
query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL > ( col0 + col1 * col1 )
----
query I rowsort
SELECT DISTINCT col2 - tab0.col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL col1 - - col0 FROM tab1
----
29
74
93
query I rowsort
SELECT + col1 + - col1 + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT col2 + col2 * tab1.col1 * + col2 + + col1 FROM tab1
----
119917
32557
75896
query I rowsort
SELECT - col2 * - col0 + + col2 - + tab2.col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col0 * - col2 * + col1 FROM tab1 WHERE NOT ( NULL ) IN ( col0 )
----
query I rowsort
SELECT DISTINCT col2 * tab2.col1 + col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT col1 * - col1 AS col0 FROM tab2 WHERE NOT NULL <> ( col1 * col1 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + col1 NOT IN ( + col1 + tab2.col0 + - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( tab0.col2 ) AND - col2 + col1
----
query I rowsort
SELECT DISTINCT + tab1.col2 * - tab1.col2 * col0 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT + col0 + - col1 * + tab0.col1 AS col2 FROM tab0
----
-7372
-8192
-9374
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col2 * - col1 )
----
query I rowsort
SELECT ALL col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT tab1.col2 * col2 * - col0 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT col2 + col2 + col2 AS col2 FROM tab0
----
246
3
99
query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE col2 * - col0 IN ( col1 )
----
query I rowsort
SELECT DISTINCT - col2 * - tab1.col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT + col2 * col1 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-4568
SELECT - col1 + col1 DIV cor0.col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4568
SELECT - col1 + col1 / cor0.col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col0 * - col1 + - col2 AS col0 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT - col1 FROM tab2 WHERE NULL >= ( tab2.col2 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4571
SELECT + - col1 DIV cor0.col0 - col0 * + col0 FROM tab1 AS cor0
----
-17
-4096
-6400
skipif mysql # not compatible
query I rowsort label-4571
SELECT + - col1 / cor0.col0 - col0 * + col0 FROM tab1 AS cor0
----
-17
-4096
-6400
query I rowsort
SELECT ALL + col2 * - col2 * - col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT - col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + col1 * - col2 - + col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT col0 + + col0 + - col0 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL + col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - col2 * + col2 * - col0 AS col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL cor0.col2 * col0 - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + col2 + col1 * col2 * + col1 FROM tab0 AS cor0
----
244101
679124
9410
query I rowsort
SELECT col0 * col0 - - col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT + col0 * - col2 * + col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT - col2 * + ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4583
SELECT DISTINCT + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - - col1 + - cor0.col2 * - col0 * 28 AS col2 FROM tab1 AS cor0
----
102154
215053
4562
query I rowsort
SELECT ALL - - 22 * + col2 + col2 - - 27 FROM tab1 cor0
----
1269
1338
2235
query I rowsort
SELECT - col0 * - cor0.col0 * + col2 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - cor0.col1 + col1 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 41 * + col0 FROM tab0 AS cor0
----
-1435
-3649
-984
query I rowsort
SELECT DISTINCT col2 + - col0 * + col0 AS col1 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT 77 * cor0.col2 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT ( 72 ) * col2 FROM tab0 AS cor0
----
2376
5904
72
query I rowsort
SELECT ALL col0 * - ( col2 ) * col2 + + col1 * col0 FROM tab0 AS cor0
----
-24072
-590337
3360
query I rowsort
SELECT - + ( col2 ) + col2 * cor0.col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT + ( + 40 ) * + col1 AS col2 FROM tab1 cor0
----
1040
400
520
onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT DISTINCT - ( - col1 ) DIV col1 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT - ( - col1 ) / col1 FROM tab0 cor0
----
1
query I rowsort
SELECT + ( - col0 ) * + col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + ( + col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + 1 FROM tab1 AS cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4599
SELECT DISTINCT col1 * + col0 + + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4599
SELECT DISTINCT col1 * + col0 + + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT DISTINCT - 30 DIV 27 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-1
skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT - 30 / 27 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-1
query I rowsort
SELECT ALL 17 + col1 * 50 FROM tab0
----
4317
4567
4867
query I rowsort
SELECT + 99 FROM tab2
----
99
99
99
query I rowsort
SELECT ALL + 71 * + col0 + - col0 FROM tab2 AS cor0
----
490
5460
5530
query I rowsort
SELECT ALL - + 80 AS col2 FROM tab2 AS cor0
----
-80
-80
-80
query I rowsort
SELECT DISTINCT ( - col0 ) * ( col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col0 + - col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-4607
SELECT - 56 DIV + col1 + 35 FROM tab2 cor0
----
32
34
35
skipif mysql # not compatible
query I rowsort label-4607
SELECT - 56 / + col1 + 35 FROM tab2 cor0
----
32
34
35
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + col1 + - col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - col0 col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT + - col2 DIV + col0 + - col0 FROM tab2 AS cor0
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-4611
SELECT + - col2 / + col0 + - col0 FROM tab2 AS cor0
----
-10
-78
-79
query I rowsort
SELECT DISTINCT - - 80 AS col0 FROM tab2 AS cor0
----
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col0 * ( + col0 ) col2 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT cor0.col0 + + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - - ( + col2 ) + col2 * cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
-114038
-5076
-52702
query I rowsort
SELECT ALL + col1 * - col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + col0 * col1 + 85 FROM tab2 AS cor0
----
1428
302
4687
query I rowsort
SELECT DISTINCT - 87 + - col1 FROM tab0 AS cor0
----
-173
-178
-184
onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT ALL + col0 DIV + cor0.col2 AS col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL + col0 / + cor0.col2 AS col2 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT - 40 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT col1 + - 2 AS col2 FROM tab2 AS cor0
----
15
29
57
query I rowsort
SELECT ALL + col2 * + ( - col0 ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT 46 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d
query I rowsort
SELECT ALL col2 * - 47 + + col0 + + col0 * + 86 AS col0 FROM tab2 AS cor0
----
-660
5087
5564
query I rowsort
SELECT DISTINCT + + col0 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + cor0.col0 * 43 * 31 FROM tab0 AS cor0
----
118637
31992
46655
query I rowsort
SELECT + 17 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT ALL tab1.col1 + - col1 + ( - col2 ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col1 * - 83 AS col0 FROM tab2 AS cor0
----
1411
2573
4897
query I rowsort
SELECT - + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col1 + + ( - col0 ) FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - col0 * - ( col0 ) + col1 + - col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL col2 * 7 AS col0 FROM tab1
----
378
399
672
query I rowsort
SELECT DISTINCT - - col2 + - 27 AS col1 FROM tab1 AS cor0
----
27
30
69
query I rowsort
SELECT ALL - - col0 + + col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT col2 + - col1 AS col0 FROM tab2
----
-33
-4
21
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT + + col0 + + col0 * cor0.col1 * - col2 + - col2 FROM tab1 AS cor0
----
-36473
-4263
-99856
query I rowsort
SELECT 77 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab0 cor0
----
80
80
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - ( col0 ) * - 93 + 67 * col1 AS col1 FROM tab0 cor0
----
14374
7994
9754
query I rowsort
SELECT - 53 * col2 AS col2 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT ALL + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col1 * + col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + 16 * - col2 FROM tab1
----
-1536
-864
-912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - tab0.col0 + col0 col1 FROM tab0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT - 73 DIV + col0 col0 FROM tab1
----
-1
-24
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4651
SELECT - 73 / + col0 col0 FROM tab1
----
-1
-24
0
query I rowsort
SELECT col1 * + col1 * ( + tab2.col2 * - col1 ) AS col2 FROM tab2
----
-186694
-5339854
-804357
query I rowsort
SELECT - ( col1 ) + col2 * - col2 + tab0.col0 * + col1 FROM tab0
----
1284
3297
889
onlyif mysql # use DIV operator for integer division
query I rowsort label-4654
SELECT + 32 DIV col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4654
SELECT + 32 / col0 FROM tab2
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + 25 col1 FROM tab1
----
1273
1429
595
query I rowsort
SELECT + 70 * col2 + 16 FROM tab0
----
2326
5756
86
query I rowsort
SELECT ALL + 67 + - col2 FROM tab1
----
-29
10
13
query I rowsort
SELECT ALL col2 * cor0.col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL - 14 * - col0 - ( col0 * + col1 + 58 ) AS col2 FROM tab0 cor0
----
-1786
-2963
-6911
onlyif mysql # use DIV operator for integer division
query I rowsort label-4660
SELECT DISTINCT 10 DIV - col1 AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4660
SELECT DISTINCT 10 / - col1 AS col1 FROM tab2
----
0
query I rowsort
SELECT ( + 29 ) * col2 FROM tab2
----
1102
754
783
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * + 64 + + col0 col2 FROM tab0 AS cor0
----
3672
3683
3737
onlyif mysql # use DIV operator for integer division
query I rowsort label-4663
SELECT - - col1 DIV 70 col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4663
SELECT - - col1 / 70 col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT - ( col1 ) DIV - col1 AS col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4664
SELECT - ( col1 ) / - col1 AS col1 FROM tab2 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT + ( col0 ) + - col0 * + col1 DIV - col1 FROM tab0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-4665
SELECT + ( col0 ) + - col0 * + col1 / - col1 FROM tab0
----
178
48
70
query I rowsort
SELECT + col0 * cor0.col1 + + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4667
SELECT + - col1 + + col1 * CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
skipif mysql # not compatible
query I rowsort label-4667
SELECT + - col1 + + col1 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4668
SELECT + col1 * 85 + + col1 - col0 * + CAST( ( + col0 ) AS SIGNED ) col2 FROM tab2 cor0
----
-1010
-4779
2617
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4668
SELECT + col1 * 85 + + col1 - col0 * + CAST ( ( + col0 ) AS INTEGER ) col2 FROM tab2 cor0
----
-1010
-4779
2617
query I rowsort
SELECT tab1.col0 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT - col1 + + col2 * + col1 AS col0 FROM tab2 cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col0 FROM tab1 AS cor0
----
-47
-47
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT - - 76 + - ( - col0 ) DIV col0 FROM tab2 AS cor0
----
77
77
77
skipif mysql # not compatible
query I rowsort label-4672
SELECT - - 76 + - ( - col0 ) / col0 FROM tab2 AS cor0
----
77
77
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4673
SELECT - cor0.col0 * cor0.col1 + - col1 + CAST( NULL AS SIGNED ) * + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4673
SELECT - cor0.col0 * cor0.col1 + - col1 + CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 50 + + col0 AS col0 FROM tab2 AS cor0
----
128
129
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4675
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + col1 * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - ( - col1 ) * cor0.col2 + ( - col2 ) FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT col2 * - col2 + col0 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT - col2 * col2 * + col0 AS col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT + 9 FROM tab1 cor0
----
9
query I rowsort
SELECT ALL 76 + + col0 + cor0.col1 AS col2 FROM tab1 cor0
----
105
150
169
query I rowsort
SELECT DISTINCT + - ( + ( col2 ) ) + ( - ( cor0.col2 ) ) AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT col2 - 32 FROM tab1 AS cor0
----
22
25
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - col1 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( col0 ) * col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT - col0 + col2 DIV - col0 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-4685
SELECT - col0 + col2 / - col0 FROM tab1 AS cor0
----
-21
-64
-81
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab2 cor3
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 65 + + col1 - + col0 col0 FROM tab1
----
-119
-132
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-4688
SELECT DISTINCT + 88 + cor0.col0 DIV - col1 FROM tab2 AS cor0
----
84
87
88
skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + 88 + cor0.col0 / - col1 FROM tab2 AS cor0
----
84
87
88
query I rowsort
SELECT ALL 61 + + col1 FROM tab1 AS cor0
----
71
74
87
query I rowsort
SELECT DISTINCT + + cor0.col0 + + cor0.col2 AS col1 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4691
SELECT DISTINCT - - 32 DIV + col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT - - 32 / + col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL 17 * col2 AS col1 FROM tab0
----
1394
17
561
query I rowsort
SELECT DISTINCT col0 * col1 + col0 * + ( ( + col2 ) + col0 ) AS col2 FROM tab0
----
23318
3432
4655
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 + col1 col1 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT DISTINCT + col1 DIV - tab2.col0 + tab2.col1 * col1 col2 FROM tab2
----
289
3481
957
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT + col1 / - tab2.col0 + tab2.col1 * col1 col2 FROM tab2
----
289
3481
957
query I rowsort
SELECT col2 + - col2 * + col0 * col0 + + col2 FROM tab1
----
-233358
-378
-614208
query I rowsort
SELECT + tab2.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL - col1 * 7 * col0 - col0 AS col2 FROM tab2
----
-1526
-32292
-9480
query I rowsort
SELECT col0 + 62 + + tab0.col0 AS col0 FROM tab0
----
110
132
240
query I rowsort
SELECT - ( 25 * col0 ) - col2 FROM tab1
----
-129
-1657
-2096
query I rowsort
SELECT ALL col0 + + ( - col0 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 - ( cor0.col2 ) * - cor0.col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - + cor0.col0 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT DISTINCT + col1 DIV 64 + - col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT + col1 / 64 + - col0 FROM tab0 AS cor0
----
-23
-34
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4705
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 * tab1.col1 * ( + col1 ) + col0 + col1 * + tab1.col1 * + col2 FROM tab1
----
11464
32528
73011
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col1 + ( - ( + col0 ) ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT - + col1 + - col1 * ( + col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
-106114
-1550
-359015
query I rowsort
SELECT col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col1 + col1 + - 5 * col2 AS col0 FROM tab2 cor0
----
-12
-156
-73
query I rowsort
SELECT + - col2 + col2 * + ( 54 ) AS col2 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT ALL - col0 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT - + 40 FROM tab2 AS cor0
----
-40
-40
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4715
SELECT DISTINCT - col2 * - col0 + CAST( cor0.col0 * cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
378
4056
6004
skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - col2 * - col0 + CAST ( cor0.col0 * cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
378
4056
6004
query I rowsort
SELECT ALL 68 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4717
SELECT ALL col1 DIV - col2 AS col1 FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL col1 / - col2 AS col1 FROM tab0
----
-1
-2
-97
query I rowsort
SELECT - col2 + ( + col2 ) AS col2 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 * + col2 ) col0 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT ALL 88 DIV col0 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL 88 / col0 FROM tab0
----
0
2
3
query I rowsort
SELECT ALL - col1 * tab2.col1 AS col2 FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4723
SELECT ALL - 4 + - 62 DIV cor1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to be81884cb7129b6a5f1e097b7b1540f0
skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - 4 + - 62 / cor1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to be81884cb7129b6a5f1e097b7b1540f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4724
SELECT - ( + col2 * - CAST( col2 AS SIGNED ) ) AS col2 FROM tab2
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-4724
SELECT - ( + col2 * - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL + col2 * 7 - + col2 * col2 AS col2 FROM tab2
----
-1178
-494
-540
query I rowsort
SELECT ALL + col0 - - 69 FROM tab1
----
133
149
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 + - cor0.col1 col2 FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT 74 + 83 * + cor0.col2 FROM tab2 AS cor0
----
2232
2315
3228
query I rowsort
SELECT ALL - - col0 + - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4731
SELECT DISTINCT col2 + + col2 DIV - 13 AS col2 FROM tab2
----
24
25
36
skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT col2 + + col2 / - 13 AS col2 FROM tab2
----
24
25
36
query I rowsort
SELECT col0 + - col1 + col1 * + col2 FROM tab1
----
1315
1381
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-4733
SELECT - col1 DIV + 70 + + col0 * + tab1.col1 + + tab1.col2 * 17 FROM tab1
----
1609
2672
996
skipif mysql # not compatible
query I rowsort label-4733
SELECT - col1 / + 70 + + col0 * + tab1.col1 + + tab1.col2 * 17 FROM tab1
----
1609
2672
996
query I rowsort
SELECT DISTINCT ( 2 ) FROM tab0, tab2 cor0
----
2
query I rowsort
SELECT col1 + col2 + col0 AS col2 FROM tab0
----
133
143
262
query I rowsort
SELECT ALL - col1 + + 45 * col1 FROM tab2
----
1364
2596
748
query I rowsort
SELECT - col0 + - ( + tab1.col1 ) FROM tab1
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT DISTINCT tab0.col2 + - 60 DIV - col0 AS col0 FROM tab0
----
2
35
82
skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT tab0.col2 + - 60 / - col0 AS col0 FROM tab0
----
2
35
82
query I rowsort
SELECT + 84 AS col1 FROM tab1 cor0
----
84
84
84
query I rowsort
SELECT DISTINCT + 66 + + 94 * + col2 + + col2 * col0 FROM tab0 AS cor0
----
15072
195
3960
query I rowsort
SELECT DISTINCT + 22 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-37
-9
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 * + col2 col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT 99 + col1 * col1 FROM tab2 AS cor0
----
1060
3580
388
query I rowsort
SELECT ALL - 88 * col1 + col2 FROM tab1 AS cor0
----
-1048
-2234
-823
query I rowsort
SELECT DISTINCT col0 * col2 - - cor0.col1 AS col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + - 60 - - col1 AS col0 FROM tab1 AS cor0
----
-34
-47
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT + 73 * col0 + - col1 DIV - ( ( + cor0.col2 ) ) AS col0 FROM tab1 AS cor0
----
219
4672
5840
skipif mysql # not compatible
query I rowsort label-4747
SELECT + 73 * col0 + - col1 / - ( ( + cor0.col2 ) ) AS col0 FROM tab1 AS cor0
----
219
4672
5840
query I rowsort
SELECT DISTINCT 56 * col0 AS col1 FROM tab1 cor0
----
168
3584
4480
onlyif mysql # use DIV operator for integer division
query I rowsort label-4749
SELECT ALL col1 + col2 DIV col2 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1262
1431
581
skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL col1 + col2 / col2 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1262
1431
581
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 + col1 col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL 66 + - cor0.col0 FROM tab0 AS cor0
----
-23
31
42
query I rowsort
SELECT DISTINCT col0 * cor0.col2 * col0 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4753
SELECT + + CAST( col0 AS SIGNED ) * cor0.col1 - 5 FROM tab2 AS cor0
----
1338
212
4597
skipif mysql # not compatible
query I rowsort label-4753
SELECT + + CAST ( col0 AS INTEGER ) * cor0.col1 - 5 FROM tab2 AS cor0
----
1338
212
4597
query I rowsort
SELECT ALL - 16 * col0 * + col2 FROM tab1
----
-122880
-2592
-58368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab0
----
69
69
69
query I rowsort
SELECT DISTINCT ( 41 ) AS col0 FROM tab2
----
41
query I rowsort
SELECT DISTINCT - col1 + - 41 FROM tab0
----
-127
-132
-138
onlyif mysql # use DIV operator for integer division
query I rowsort label-4758
SELECT ALL 31 + col1 DIV + col0 AS col0 FROM tab1
----
31
31
39
skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL 31 + col1 / + col0 AS col0 FROM tab1
----
31
31
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT DISTINCT + ( + col0 + col0 ) DIV + col1 FROM tab2
----
0
2
9
skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT + ( + col0 + col0 ) / + col1 FROM tab2
----
0
2
9
query I rowsort
SELECT - 22 * col1 * + 40 + col2 FROM tab2 AS cor0
----
-14922
-27253
-51894
query I rowsort
SELECT + - col1 + + cor0.col2 * + 80 FROM tab1 AS cor0
----
4294
4550
7667
query I rowsort
SELECT - + col0 - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4763
SELECT + cor0.col0 + + cor0.col0 DIV col1 FROM tab1 cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-4763
SELECT + cor0.col0 + + cor0.col0 / col1 FROM tab1 cor0
----
3
70
86
query I rowsort
SELECT - - col2 + ( - 28 ) AS col0 FROM tab0 AS cor0
----
-27
5
54
query I rowsort
SELECT DISTINCT cor0.col2 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT col2 * cor0.col0 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT - + col2 * 52 FROM tab0 AS cor0
----
-1716
-4264
-52
query I rowsort
SELECT - col0 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4770
SELECT + - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4770
SELECT + - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - + col2 * col0 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4773
SELECT - ( - col0 ) + - col2 DIV col0 + col1 FROM tab0 AS cor0
----
109
132
180
skipif mysql # not compatible
query I rowsort label-4773
SELECT - ( - col0 ) + - col2 / col0 + col1 FROM tab0 AS cor0
----
109
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4774
SELECT - col0 DIV - 27 + col0 AS col2 FROM tab0
----
24
36
92
skipif mysql # not compatible
query I rowsort label-4774
SELECT - col0 / - 27 + col0 AS col2 FROM tab0
----
24
36
92
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 82e15d5967b272804e574774895a0222
query I rowsort
SELECT ALL - col0 * 38 FROM tab0
----
-1330
-3382
-912
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - + col1 + ( - cor0.col0 ) * col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL + - col1 * col2 * col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-244092
-679131
-9444
query I rowsort
SELECT col1 + - col2 * 35 AS col1 FROM tab2 AS cor0
----
-1313
-851
-914
query I rowsort
SELECT DISTINCT + col0 + - col1 * - col2 + cor0.col1 FROM tab2 AS cor0
----
1671
742
875
onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT DISTINCT + col1 * col0 DIV + col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + col1 * col0 / + col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col1 * col1 - + cor0.col2 AS col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL - col2 * col2 + 31 AS col2 FROM tab2 AS cor0
----
-1413
-645
-698
query I rowsort
SELECT - - cor0.col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4787
SELECT DISTINCT - - col0 - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT - - col0 - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 - - 49 FROM tab0 AS cor0
----
-37
-42
-48
query I rowsort
SELECT - tab0.col2 * + tab0.col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col2 - - ( + 13 ) FROM tab2
----
39
40
51
query I rowsort
SELECT - 13 * - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to cfbf6626f06fcc4e0c3acb42c813e056
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4792
SELECT + cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4792
SELECT + cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 0 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - 42 FROM tab1, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT ALL ( - col1 ) * col0 * - col0 AS col2 FROM tab1
----
234
40960
83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4796
SELECT + - CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4796
SELECT + - CAST ( NULL AS REAL ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4797
SELECT + - CAST( col0 AS SIGNED ) + + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-4797
SELECT + - CAST ( col0 AS INTEGER ) + + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + 18 AS col0 FROM tab2
----
18
18
18
query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL IN ( cor0.col0 )
----
query I rowsort
SELECT DISTINCT 23 * - col2 FROM tab0 AS cor0
----
-1886
-23
-759
query I rowsort
SELECT DISTINCT - + col2 + + col0 * 5 AS col1 FROM tab1 AS cor0
----
-39
263
304
query I rowsort
SELECT 63 * col0 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT ALL - - col2 * col1 + cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
1638
763
871
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4804
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - ( + cor0.col2 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT CAST ( NULL AS REAL ) + - ( + cor0.col2 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL + + 86 * - col2 AS col2 FROM tab0 cor0
----
-2838
-7052
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-4806
SELECT DISTINCT - + col0 + + col1 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-4806
SELECT DISTINCT - + col0 + + col1 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-22
-88
62
query I rowsort
SELECT 27 + col2 * - ( 32 ) FROM tab2 AS cor0
----
-1189
-805
-837
query I rowsort
SELECT ALL + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT 25 + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-137
-3623
-7655
query I rowsort
SELECT + col2 * col0 * - col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-4811
SELECT ALL + col2 * col0 - cor0.col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
0
7297
792
skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL + col2 * col0 - cor0.col0 / cor0.col2 AS col0 FROM tab0 AS cor0
----
0
7297
792
query I rowsort
SELECT ALL + cor0.col1 + col1 - - ( col2 ) FROM tab1 AS cor0
----
106
122
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-4813
SELECT + tab1.col0 DIV 6 FROM tab1
----
0
10
13
skipif mysql # not compatible
query I rowsort label-4813
SELECT + tab1.col0 / 6 FROM tab1
----
0
10
13
query I rowsort
SELECT - col2 * - col2 * + col2 FROM tab0 AS cor0
----
1
35937
551368
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab1, tab2 AS cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808
query I rowsort
SELECT DISTINCT - 90 AS col0 FROM tab2, tab2 AS cor0
----
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col1 ) col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4818
SELECT - - CAST( NULL AS DECIMAL ) * - col2 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4818
SELECT - - CAST ( NULL AS REAL ) * - col2 * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4820
SELECT ALL + CAST( NULL AS SIGNED ) * 37 col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + CAST ( NULL AS INTEGER ) * 37 col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab1.col1 + + 8 FROM tab1
----
-18
-2
-5
query I rowsort
SELECT DISTINCT + 52 * - col1 AS col0 FROM tab1 AS cor0
----
-1352
-520
-676
query I rowsort
SELECT DISTINCT ( col2 ) * + col1 + + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - col1 + - ( - col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL col0 + 92 AS col1 FROM tab2 AS cor0
----
170
171
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4826
SELECT DISTINCT CAST( + cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT CAST ( + cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + + ( col0 ) * col2 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - 16 + 97 FROM tab2 AS cor0
----
81
81
81
query I rowsort
SELECT ALL col2 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - col2 + cor0.col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 65 * - col2 AS col0 FROM tab2 cor0
----
1690
1755
2470
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT + 51 * + col1 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT DISTINCT - 66 FROM tab0 AS cor0
----
-66
query I rowsort
SELECT ALL + col1 * + col0 + + 15 + ( - col0 ) FROM tab2 AS cor0
----
1279
225
4539
query I rowsort
SELECT ALL + + col0 + col2 * - col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT 10 AS col1 FROM tab2 AS cor0
----
10
10
10
query I rowsort
SELECT DISTINCT - col0 * col0 + + ( + 57 ) * col1 + + 7 FROM tab0 AS cor0
----
-2727
4311
4333
query I rowsort
SELECT DISTINCT col1 + col0 + + col2 FROM tab2
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT - tab1.col1 + col2 DIV col1 AS col2 FROM tab1
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-4840
SELECT - tab1.col1 + col2 / col1 AS col2 FROM tab1
----
-24
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 * col1 - ( + tab2.col1 ) col2 FROM tab2
----
-10999
-25978
-90565
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 98 * + col2 col0 FROM tab0
----
195
3320
8127
query I rowsort
SELECT - col0 * col2 + - col0 FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT DISTINCT + col2 + 4 DIV + 8 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT + col2 + 4 / + 8 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4845
SELECT - col1 + ( + tab0.col1 ) * col2 DIV - col2 + - col1 col0 FROM tab0
----
-258
-273
-291
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4845
SELECT - col1 + ( + tab0.col1 ) * col2 / - col2 + - col1 col0 FROM tab0
----
-258
-273
-291
onlyif mysql # use DIV operator for integer division
query I rowsort label-4846
SELECT ALL - col2 + - col2 DIV col1 FROM tab2 AS cor0
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - col2 + - col2 / col1 FROM tab2 AS cor0
----
-26
-27
-40
query I rowsort
SELECT col0 + - 21 AS col0 FROM tab1 AS cor0
----
-18
43
59
query I rowsort
SELECT ALL + cor0.col0 * 50 FROM tab2 AS cor0
----
350
3900
3950
query I rowsort
SELECT - col0 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT - ( cor0.col0 ) + col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT DISTINCT col1 * tab1.col1 DIV - col2 + col0 FROM tab1
----
-9
63
79
skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT col1 * tab1.col1 / - col2 + col0 FROM tab1
----
-9
63
79
query I rowsort
SELECT + col2 * - col1 * + col0 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - 69 + ( - col0 ) * - 15 AS col1 FROM tab0 cor0
----
1266
291
456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 + + col2 + - col0 col0 FROM tab1
----
105
112
50
query I rowsort
SELECT ALL 21 FROM tab0, tab1, tab0 cor0, tab2 AS cor1
----
81 values hashing to 4eecc28c48bfdf162a585f11d1dd0b6c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4856
SELECT col0 * CAST( + col0 AS SIGNED ) FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-4856
SELECT col0 * CAST ( + col0 AS INTEGER ) FROM tab1
----
4096
6400
9
query I rowsort
SELECT + col1 * - 80 + 93 FROM tab2
----
-1267
-2387
-4627
query I rowsort
SELECT DISTINCT col0 + - col1 * col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT + 10 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1, tab2 cor0
----
17
31
59
query I rowsort
SELECT - col0 * ( col0 ) + - col1 AS col0 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT + tab1.col1 * + ( col1 * - col1 ) FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT 45 + col2 AS col2 FROM tab2 AS cor0
----
71
72
83
query I rowsort
SELECT 19 AS col2 FROM tab2 cor0
----
19
19
19
query I rowsort
SELECT ALL - - col1 + col2 + + 59 FROM tab1 AS cor0
----
126
139
168
query I rowsort
SELECT ALL + + 14 + - col1 * - col1 FROM tab2 cor0
----
303
3495
975
onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT DISTINCT + 74 DIV col0 - + col0 FROM tab0 AS cor0
----
-21
-33
-89
skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT + 74 / col0 - + col0 FROM tab0 AS cor0
----
-21
-33
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 + 50 FROM tab1 AS cor0
----
-119
-50
-626
query I rowsort
SELECT - + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT DISTINCT + 96 * - col2 - ( cor0.col1 ) DIV col1 AS col1 FROM tab1 AS cor0
----
-5185
-5473
-9217
skipif mysql # not compatible
query I rowsort label-4871
SELECT DISTINCT + 96 * - col2 - ( cor0.col1 ) / col1 AS col1 FROM tab1 AS cor0
----
-5185
-5473
-9217
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4872
SELECT DISTINCT col2 * col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT col2 * col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL + 15 + + col1 AS col0 FROM tab1 AS cor0
----
25
28
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4874
SELECT ALL - CAST( + col2 + - col2 AS SIGNED ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - CAST ( + col2 + - col2 AS INTEGER ) FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col0 * + col1 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col1 * - tab1.col2 + + tab1.col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + col2 * + col2 - col1 FROM tab1
----
2890
3239
9203
query I rowsort
SELECT ALL + 66 AS col1 FROM tab0
----
66
66
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-4879
SELECT DISTINCT + col1 DIV + col1 + col0 DIV + 2 + - tab1.col1 DIV - ( + tab1.col0 * col1 ) FROM tab1
----
2
33
41
skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + col1 / + col1 + col0 / + 2 + - tab1.col1 / - ( + tab1.col0 * col1 ) FROM tab1
----
2
33
41
query I rowsort
SELECT DISTINCT 44 + + 34 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
78
query I rowsort
SELECT DISTINCT - ( col2 ) - - col0 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL - cor0.col2 * + col1 + - ( + ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT ALL col1 + cor0.col0 DIV 93 FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL col1 + cor0.col0 / 93 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL - col1 * col2 + 73 FROM tab1 AS cor0
----
-1175
-1331
-497
query I rowsort
SELECT ALL col2 + + cor0.col0 - 61 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-3237
-3356
-5680
query I rowsort
SELECT - + col2 * 87 FROM tab2 AS cor0
----
-2262
-2349
-3306
query I rowsort
SELECT cor0.col2 * - ( + col0 ) * col0 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - col0 * 29 AS col0 FROM tab0 AS cor0
----
-1015
-2581
-696
query I rowsort
SELECT DISTINCT - 53 * - cor0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
4558
4823
5141
query I rowsort
SELECT ALL tab0.col0 * - tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4892
SELECT col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4892
SELECT col2 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab0, tab1 AS cor0
----
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4894
SELECT col2 DIV - 96 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4894
SELECT col2 / - 96 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 - col2 AS col0 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4896
SELECT - col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4896
SELECT - col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 - + 66 FROM tab0 AS cor0
----
-148
-67
-99
query I rowsort
SELECT + col0 * ( 26 ) + col1 AS col0 FROM tab1 AS cor0
----
104
1674
2093
query I rowsort
SELECT ( 71 * + col0 ) FROM tab0
----
1704
2485
6319
query I rowsort
SELECT ALL + 47 * tab2.col2 AS col0 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 6863ada60bd624fa327d6c075ecd0edd
query I rowsort
SELECT - 31 AS col1 FROM tab0
----
-31
-31
-31
query I rowsort
SELECT 48 + - col0 FROM tab0
----
-41
13
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4903
SELECT ALL - CAST( col2 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL - CAST ( col2 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT col2 * - col0 DIV col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4904
SELECT col2 * - col0 / col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - col2 + + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT ALL - ( ( col0 ) ) * 91 AS col2 FROM tab0 AS cor0
----
-2184
-3185
-8099
query I rowsort
SELECT DISTINCT - ( - 91 ) * + col0 FROM tab0 AS cor0
----
2184
3185
8099
query I rowsort
SELECT DISTINCT + + ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT 50 + 64 * cor0.col2 AS col2 FROM tab0 AS cor0
----
114
2162
5298
query I rowsort
SELECT ALL + ( + col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 61 * col1 * - col2 FROM tab1 cor0
----
-34770
-76128
-85644
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 32 col2 FROM tab0 AS cor0
----
32
32
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4913
SELECT CAST( NULL AS SIGNED ) * + col1 + - col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4913
SELECT CAST ( NULL AS INTEGER ) * + col1 + - col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 26 AS col1 FROM tab1 AS cor0
----
26
26
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 * + col0 col2 FROM tab2
----
399
4446
4503
query I rowsort
SELECT ALL + + 65 * col2 - 47 FROM tab0 AS cor0
----
18
2098
5283
query I rowsort
SELECT + - ( + col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + + col0 * + col1 * col1 AS col1 FROM tab1 cor0
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT - - ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4921
SELECT 30 DIV col1 FROM tab2 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4921
SELECT 30 / col1 FROM tab2 cor0
----
0
0
1
query I rowsort
SELECT - 13 * - col0 AS col2 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT ALL - col0 * col0 + col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT + - 10 + + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2054
3385
8089
query I rowsort
SELECT DISTINCT - 55 FROM tab2, tab2 AS cor0
----
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT + ( - col1 ) DIV col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4926
SELECT + ( - col1 ) / col1 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT DISTINCT - + 0 DIV 99 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT - + 0 / 99 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - 61 + ( + col0 ) * ( + 93 ) * - col1 FROM tab1 AS cor0
----
-59581
-7315
-96781
query I rowsort
SELECT - + 12 FROM tab1 cor0
----
-12
-12
-12
query I rowsort
SELECT ALL - 39 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e
query I rowsort
SELECT ALL - 24 AS col0 FROM tab0 AS cor0
----
-24
-24
-24
query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + 46 - 88 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27
query I rowsort
SELECT ( tab0.col0 ) - + col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ( 10 * - col2 ) FROM tab2
----
-260
-270
-380
query I rowsort
SELECT - col1 * col0 + - col1 * + col1 FROM tab1 AS cor0
----
-1209
-740
-754
query I rowsort
SELECT + + col2 + col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT 8 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4939
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4940
SELECT col0 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4940
SELECT col0 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT + + CAST( NULL AS SIGNED ) / + col2 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4942
SELECT + + CAST ( NULL AS INTEGER ) / + col2 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab1 AS cor0
----
65
query I rowsort
SELECT + + ( 29 ) + col1 * 77 FROM tab1 AS cor0
----
1030
2031
799
query I rowsort
SELECT DISTINCT - col1 + - tab2.col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL col1 + 56 AS col1 FROM tab1
----
66
69
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col2 FROM tab0 AS cor0
----
18
18
18
query I rowsort
SELECT ALL + 56 AS col0 FROM tab1
----
56
56
56
query I rowsort
SELECT ALL + ( 16 ) FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT ALL tab2.col2 * tab2.col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + - 40 * + col1 - col1 AS col0 FROM tab0 AS cor0
----
-3526
-3731
-3977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + + col2 col2 FROM tab2 cor0
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 87 col2 FROM tab1 AS cor0
----
-151
-167
-90
query I rowsort
SELECT DISTINCT - ( col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 9 AS col1 FROM tab0 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT col0 + 99 + col0 FROM tab1 AS cor0
----
105
227
259
query I rowsort
SELECT ALL 62 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT 30 * cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4958
SELECT 30 * cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - - col0 + - col1 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT 55 + col1 AS col1 FROM tab1 AS cor0
----
65
68
81
query I rowsort
SELECT 9 * col0 AS col0 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT 3 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT DISTINCT cor0.col1 + 47 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
133
138
144
onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT ALL - - 30 DIV col1 - - cor0.col1 col0 FROM tab1 AS cor0
----
13
15
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - - 30 / col1 - - cor0.col1 col0 FROM tab1 AS cor0
----
13
15
27
query I rowsort
SELECT + + 69 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1656
2415
6141
query I rowsort
SELECT DISTINCT - tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - 32 FROM tab2, tab0, tab2 AS cor0
----
-32
query I rowsort
SELECT ALL - col2 + + col0 - col1 FROM tab0
----
-63
-84
-95
query I rowsort
SELECT ALL + 19 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT ( col0 ) + col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE ( - cor0.col1 ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col0 * col2 * col0 + col0 FROM tab2 AS cor0
----
-1316
-158106
-237079
query I rowsort
SELECT DISTINCT + cor0.col1 - ( cor0.col2 * + col1 + + col2 ) FROM tab1 AS cor0
----
-1331
-1432
-617
onlyif mysql # use DIV operator for integer division
query I rowsort label-4974
SELECT - col2 + 61 * cor0.col2 DIV + col2 FROM tab1 AS cor0
----
-35
4
7
skipif mysql # not compatible
query I rowsort label-4974
SELECT - col2 + 61 * cor0.col2 / + col2 FROM tab1 AS cor0
----
-35
4
7
query I rowsort
SELECT ALL col0 + cor0.col2 * col1 AS col0 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + cor0.col1 - col0 * col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - col1 * - 85 AS col2 FROM tab1 AS cor0
----
1105
2210
850
onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT ALL + cor0.col1 + + col1 DIV + 58 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL + cor0.col1 + + col1 / + 58 AS col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT + - col0 + + col0 DIV col2 col0 FROM tab0 AS cor0
----
-24
-88
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4979
SELECT + - col0 + + col0 / col2 col0 FROM tab0 AS cor0
----
-24
-88
0
query I rowsort
SELECT DISTINCT - col2 * + 59 FROM tab0 AS cor0
----
-1947
-4838
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4981
SELECT ALL + - cor0.col0 * - CAST( NULL AS DECIMAL ) / 96 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4981
SELECT ALL + - cor0.col0 * - CAST ( NULL AS REAL ) / 96 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 * + col1 + col1 col1 FROM tab0 AS cor0
----
-243982
-678951
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT + + cor0.col0 DIV + ( cor0.col0 * col0 ) + 12 FROM tab0 cor0
----
12
12
12
skipif mysql # not compatible
query I rowsort label-4983
SELECT + + cor0.col0 / + ( cor0.col0 * col0 ) + 12 FROM tab0 cor0
----
12
12
12
query I rowsort
SELECT - col2 + - ( - 81 ) * col1 AS col0 FROM tab2 AS cor0
----
1339
2484
4753
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT col1 + + 89 FROM tab1 AS cor0
----
102
115
99
query I rowsort
SELECT ALL + + col2 * 43 FROM tab0 cor0
----
1419
3526
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-4988
SELECT col0 DIV - col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-4988
SELECT col0 / - col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-132
-86
-92
query I rowsort
SELECT ALL + cor0.col2 * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT 43 * col1 * - col2 FROM tab1
----
-24510
-53664
-60372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 * cor0.col2 col0 FROM tab1 AS cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col1 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - 87 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
10
4
query I rowsort
SELECT DISTINCT col1 * - 44 FROM tab2 AS cor0
----
-1364
-2596
-748
query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col1 * cor0.col1 + col2 AS col2 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + col1 * ( + col0 + + col0 * col1 ) AS col2 FROM tab0
----
179568
332710
745108
query I rowsort
SELECT - - col2 * + col0 + + ( col2 * 81 ) FROM tab1 AS cor0
----
15456
4536
8265
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - 51 col1 FROM tab2 AS cor0
----
-1581
-3009
-867
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT - 81 DIV + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 96308c1047e27c000d229f71df430662
skipif mysql # not compatible
query I rowsort label-5002
SELECT - 81 / + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 96308c1047e27c000d229f71df430662
query I rowsort
SELECT ALL ( + ( - col1 ) ) FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL ( - 75 + col1 ) * - col2 FROM tab1
----
2646
3705
5952
query I rowsort
SELECT - cor0.col2 + col0 + col0 FROM tab1 AS cor0
----
-48
64
71
query I rowsort
SELECT + 68 * col2 FROM tab0 cor0
----
2244
5576
68
query I rowsort
SELECT DISTINCT 53 * + 12 AS col1 FROM tab2 AS cor0
----
636
query I rowsort
SELECT + 63 + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3ae0f1064ff1f5d034a03e672585d08e
query I rowsort
SELECT 10 * col0 FROM tab0 AS cor0
----
240
350
890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 24 col0 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT + col0 * + 71 FROM tab1 cor0
----
213
4544
5680
query I rowsort
SELECT ALL + 73 + col0 * - cor0.col2 * col0 FROM tab2 AS cor0
----
-1250
-158111
-237085
onlyif mysql # use DIV operator for integer division
query I rowsort label-5013
SELECT ALL - cor0.col1 DIV cor0.col1 AS col1 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL - cor0.col1 / cor0.col1 AS col1 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 1 + - col2 AS col0 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT DISTINCT 86 + col0 FROM tab2 AS cor0
----
164
165
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 * - col0 col2 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + + ( + col1 ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col2 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL ( - tab0.col1 + col0 ) * - col0 FROM tab0
----
1488
178
2170
onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT col2 DIV - 24 + + tab1.col1 * - tab1.col0 FROM tab1
----
-1044
-642
-80
skipif mysql # not compatible
query I rowsort label-5021
SELECT col2 / - 24 + + tab1.col1 * - tab1.col0 FROM tab1
----
-1044
-642
-80
query I rowsort
SELECT - - 9 * + col0 AS col0 FROM tab2 AS cor0
----
63
702
711
query I rowsort
SELECT + 76 - + col2 FROM tab1
----
-20
19
22
query I rowsort
SELECT + ( cor0.col0 ) + + 36 FROM tab0 AS cor0
----
125
60
71
query I rowsort
SELECT + 84 + col2 * + 16 FROM tab0
----
100
1396
612
query I rowsort
SELECT - - cor0.col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5027
SELECT - + 89 + - col0 DIV 39 col2 FROM tab0 cor0
----
-89
-89
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5027
SELECT - + 89 + - col0 / 39 col2 FROM tab0 cor0
----
-89
-89
-91
query I rowsort
SELECT cor1.col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif mysql # not compatible
query I rowsort
SELECT + ( - col0 ) + CAST ( - 17 AS REAL ) * col0 + + 10 / 58 FROM tab1 AS cor0
----
-1152
-1440
-54
query I rowsort
SELECT - + col1 + + col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5031
SELECT + + col0 DIV + 61 FROM tab2 cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5031
SELECT + + col0 / + 61 FROM tab2 cor0
----
0
1
1
query I rowsort
SELECT ALL + col2 * - 25 * col0 AS col2 FROM tab0 AS cor0
----
-182450
-19800
-875
onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT col1 DIV ( - col0 ) FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-5033
SELECT col1 / ( - col0 ) FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT DISTINCT - col1 DIV col0 AS col2 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT - col1 / col0 AS col2 FROM tab2
----
-4
0
query I rowsort
SELECT DISTINCT - col2 * tab1.col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab0, tab1, tab0 AS cor0
----
14
query I rowsort
SELECT DISTINCT ( tab2.col0 ) * - col1 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + 32 AS col1 FROM tab1, tab2, tab2 AS cor0
----
32
query I rowsort
SELECT - col0 + + col1 * col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT + ( 60 ) * cor0.col0 FROM tab2 AS cor0
----
420
4680
4740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - col0 + + 75 AS col2 FROM tab2 AS cor0
----
-3
-4
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col2 FROM tab2, tab0 AS cor0
----
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab2, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col2 * + col1 * - tab2.col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT tab1.col0 + - 97 FROM tab1
----
-17
-33
-94
query I rowsort
SELECT ALL - ( - 4 ) * col2 AS col0 FROM tab0
----
132
328
4
query I rowsort
SELECT + 50 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040
query I rowsort
SELECT - - 74 + 17 FROM tab0 cor0
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5050
SELECT + - col0 * 61 + - col2 DIV ( 47 ) FROM tab2 AS cor0
----
-427
-4758
-4819
skipif mysql # not compatible
query I rowsort label-5050
SELECT + - col0 * 61 + - col2 / ( 47 ) FROM tab2 AS cor0
----
-427
-4758
-4819
query I rowsort
SELECT col2 + col0 AS col2 FROM tab0 cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5052
SELECT ALL + col1 + CAST( 71 + + col1 AS SIGNED ) * 54 AS col2 FROM tab1
----
4384
4549
5264
skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL + col1 + CAST ( 71 + + col1 AS INTEGER ) * 54 AS col2 FROM tab1
----
4384
4549
5264
query I rowsort
SELECT DISTINCT + col0 * + col2 + col1 AS col0 FROM tab1
----
188
3658
7693
query I rowsort
SELECT ALL - col1 * 94 * col1 AS col1 FROM tab2
----
-27166
-327214
-90334
query I rowsort
SELECT + col0 - ( - col1 ) * col0 AS col2 FROM tab2
----
1422
224
4680
query I rowsort
SELECT col0 * + col0 - + col2 AS col0 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT + 35 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT - col0 * ( - col1 * col1 ) AS col2 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5059
SELECT - CAST( - 44 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif mysql # not compatible
query I rowsort label-5059
SELECT - CAST ( - 44 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT - col0 + 42 * tab1.col1 FROM tab1
----
1089
356
466
onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT col0 DIV 94 - - col1 * col2 col1 FROM tab2
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5061
SELECT col0 / 94 - - col1 * col2 col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + 95 FROM tab0, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT - 34 * + col1 FROM tab2 AS cor0
----
-1054
-2006
-578
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 * col0 col0 FROM tab1 AS cor0
----
1024
1280
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5065
SELECT ALL + + CAST( NULL AS SIGNED ) * col0 * - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL + + CAST ( NULL AS INTEGER ) * col0 * - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + 34 AS col2 FROM tab2 AS cor0
----
34
query I rowsort
SELECT ALL ( + cor0.col2 ) * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT - + col0 * 25 FROM tab2 AS cor0
----
-175
-1950
-1975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT - + 19 * 53 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1007
-33231
-82574
query I rowsort
SELECT + + 46 * - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-29716
-38502
-70564
query I rowsort
SELECT ALL - + col2 * ( cor0.col2 ) - - col2 * col0 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL + + col2 * ( + col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5075
SELECT DISTINCT - CAST( col1 AS SIGNED ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + col2 - - col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT cor0.col1 + - cor0.col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT + - 33 + - col1 - ( + 77 * cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-1967
-2825
-6977
onlyif mysql # use DIV operator for integer division
query I rowsort label-5079
SELECT - col1 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5079
SELECT - col1 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col0 * col0 + + ( ( col1 ) ) * + col1 AS col2 FROM tab0 AS cor0
----
10634
16202
7972
query I rowsort
SELECT DISTINCT + col2 + + col1 + - 3 * cor0.col0 FROM tab1 AS cor0
----
-125
-131
71
query I rowsort
SELECT DISTINCT - 48 + cor0.col1 FROM tab2 AS cor0
----
-17
-31
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT + 47 + - col2 DIV col1 - col2 * col1 * + col0 col2 FROM tab2 AS cor0
----
-119605
-50989
-5812
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5083
SELECT + 47 + - col2 / col1 - col2 * col1 * + col0 col2 FROM tab2 AS cor0
----
-119605
-50989
-5812
query I rowsort
SELECT ALL - col1 * cor0.col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col2 + - col2 * + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT + 16 + col0 FROM tab1 AS cor0
----
19
80
96
query I rowsort
SELECT - col2 + ( + cor0.col2 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT + cor0.col1 + + CAST( - col2 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-5088
SELECT + cor0.col1 + + CAST ( - col2 AS INTEGER ) / col1 FROM tab1 AS cor0
----
24
5
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + 73 col1 FROM tab1 AS cor0
----
1898
730
949
query I rowsort
SELECT ALL + - cor0.col2 AS col0 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col1 + col2 col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - - cor0.col1 AS col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5093
SELECT DISTINCT - cor0.col2 * + 57 + ( - col1 + CAST( - ( + col2 ) AS SIGNED ) ) FROM tab1 AS cor0
----
-3158
-3316
-5581
skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT - cor0.col2 * + 57 + ( - col1 + CAST ( - ( + col2 ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3158
-3316
-5581
query I rowsort
SELECT ALL 70 * col1 FROM tab1
----
1820
700
910
query I rowsort
SELECT + ( col0 ) * + ( - col0 ) FROM tab0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5096
SELECT col0 + CAST( NULL AS DECIMAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5096
SELECT col0 + CAST ( NULL AS REAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * + col0 + - col2 FROM tab1 cor0
----
24
583
944
query I rowsort
SELECT + col0 + 40 * col1 AS col0 FROM tab2 AS cor0
----
1247
2438
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5099
SELECT DISTINCT + col2 * - cor0.col1 - col2 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1241
-1402
-565
skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT + col2 * - cor0.col1 - col2 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1241
-1402
-565
query I rowsort
SELECT col2 * ( + 48 ) + - col0 AS col2 FROM tab0 cor0
----
13
1560
3847
query I rowsort
SELECT ALL col1 + - cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT + - col0 * - 66 AS col1 FROM tab1 AS cor0
----
198
4224
5280
query I rowsort
SELECT + col1 * - 68 AS col2 FROM tab0 AS cor0
----
-5848
-6188
-6596
query I rowsort
SELECT DISTINCT + col2 * col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
16896
3078
6897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( col2 ) col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col0 * - col2 + - cor0.col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL - col1 + col2 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5108
SELECT DISTINCT + col0 DIV CAST( - col2 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + col0 / CAST ( - col2 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT ALL + col1 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5110
SELECT DISTINCT col1 * col2 - CAST( + 86 + + col0 AS SIGNED ) AS col1 FROM tab1
----
1082
1315
420
skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT col1 * col2 - CAST ( + 86 + + col0 AS INTEGER ) AS col1 FROM tab1
----
1082
1315
420
query I rowsort
SELECT - 85 + + col1 * tab0.col1 AS col0 FROM tab0
----
7311
8196
9324
query I rowsort
SELECT + col1 * col2 + + 70 AS col2 FROM tab1 AS cor0
----
1318
1474
640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT - col0 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT DISTINCT + col2 + + ( cor0.col2 ) AS col1 FROM tab2 cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5116
SELECT ALL + col0 DIV - ( cor0.col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + col0 / - ( cor0.col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT ALL - col2 * ( + 13 ) + col2 AS col0 FROM tab1
----
-1152
-648
-684
query I rowsort
SELECT 29 - col2 FROM tab2
----
-9
2
3
query I rowsort
SELECT ALL - + col2 * - col2 AS col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0, tab2 AS cor0
----
32
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT col0 * - col2 + tab2.col2 AS col0 FROM tab2
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-5123
SELECT ALL col1 + col1 DIV - CAST( ( + tab1.col0 ) AS SIGNED ) + + col2 FROM tab1
----
109
67
72
skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL col1 + col1 / - CAST ( ( + tab1.col0 ) AS INTEGER ) + + col2 FROM tab1
----
109
67
72
query I rowsort
SELECT 39 AS col0 FROM tab0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT tab0.col2 DIV col2 col2 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5125
SELECT tab0.col2 / col2 col2 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT 34 + - col0 * - 22 AS col2 FROM tab2
----
1750
1772
188
skipif mysql # not compatible
query I rowsort
SELECT ALL tab1.col0 * + col2 + + CAST ( + col1 * - col0 AS REAL ) FROM tab1
----
3008
6640
84
query I rowsort
SELECT + 36 * - col0 FROM tab2
----
-252
-2808
-2844
query I rowsort
SELECT - col2 + col0 * ( + col0 ) + col0 FROM tab2
----
29
6136
6282
query I rowsort
SELECT ALL col1 + - col0 - col0 FROM tab0 AS cor0
----
-87
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col1 col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col1 + col0 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT + tab1.col1 * col2 + + col1 + - ( tab1.col2 + ( - 44 ) ) * col0 FROM tab1
----
-252
-2899
1400
query I rowsort
SELECT + - col0 - - col2 * col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT - - col2 + col1 * - ( + cor0.col1 * - cor0.col1 ) FROM tab1 AS cor0
----
1057
17630
2293
query I rowsort
SELECT ALL col0 * col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + 81 AS col0 FROM tab2 AS cor0
----
81
81
81
query I rowsort
SELECT DISTINCT - 70 + - 44 FROM tab0, tab2 AS cor0
----
-114
query I rowsort
SELECT col0 * col0 + + col2 * - col2 AS col1 FROM tab1
----
-2816
-2907
847
query I rowsort
SELECT DISTINCT - col1 * ( + col1 ) FROM tab1
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT DISTINCT + col2 * col2 DIV col0 FROM tab1
----
115
50
972
skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + col2 * col2 / col0 FROM tab1
----
115
50
972
query I rowsort
SELECT DISTINCT + 47 * - col0 FROM tab2
----
-329
-3666
-3713
query I rowsort
SELECT + ( - ( tab0.col2 ) ) FROM tab0
----
-1
-33
-82
query I rowsort
SELECT cor0.col1 - + cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT 73 * + col1 + col0 AS col2 FROM tab0
----
6302
6732
7116
query I rowsort
SELECT ALL col0 + col2 + - col2 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL 99 FROM tab2 cor0
----
99
99
99
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT - 2 + + ( col1 ) * + 1 AS col0 FROM tab0 AS cor0
----
84
89
95
query I rowsort
SELECT DISTINCT - 17 + col1 FROM tab2 AS cor0
----
0
14
42
query I rowsort
SELECT DISTINCT - - 16 * cor0.col0 + + col1 FROM tab0 AS cor0
----
1515
470
657
query I rowsort
SELECT ALL + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 26 + - col1 * - 60 FROM tab1
----
1586
626
806
query I rowsort
SELECT DISTINCT - 3 + col2 FROM tab2
----
23
24
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT DISTINCT col2 * + col1 + - ( col1 ) DIV - col1 FROM tab0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT col2 * + col1 + - ( col1 ) / - col1 FROM tab0
----
2839
7463
98
query I rowsort
SELECT DISTINCT + col1 + - tab2.col0 + + col2 AS col0 FROM tab2
----
-24
51
7
query I rowsort
SELECT + - col2 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT col0 * - col0 * - 46 FROM tab1
----
188416
294400
414
query I rowsort
SELECT DISTINCT ( + col0 ) * 67 FROM tab1 AS cor0
----
201
4288
5360
query I rowsort
SELECT DISTINCT - col2 + - ( 41 ) FROM tab2 AS cor0
----
-67
-68
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * col2 col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - col0 * + ( + col2 + - col1 * col2 ) AS col0 FROM tab2 AS cor0
----
117624
48032
5670
query I rowsort
SELECT DISTINCT cor0.col1 + - 39 AS col1 FROM tab2 AS cor0
----
-22
-8
20
query I rowsort
SELECT DISTINCT - cor0.col2 * ( - cor0.col2 ) AS col2 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT DISTINCT - + cor0.col2 DIV col2 - 19 AS col0 FROM tab1 AS cor0
----
-20
skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT - + cor0.col2 / col2 - 19 AS col0 FROM tab1 AS cor0
----
-20
query I rowsort
SELECT - - cor0.col2 * ( + cor0.col1 ) + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - - col2 + - col0 * - ( - col1 ) FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT DISTINCT + col1 DIV - CAST( col2 + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
1
7
skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT + col1 / - CAST ( col2 + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
1
7
query I rowsort
SELECT - cor0.col2 * - col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 - col2 * 92 * tab1.col0 col2 FROM tab1
----
-14850
-335559
-706464
query I rowsort
SELECT col2 * - col2 + col2 AS col2 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT col1 + + ( col2 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - cor0.col2 - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + - cor0.col1 * ( col2 ) + col1 AS col2 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab1, tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5176
SELECT cor0.col2 DIV + 76 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5176
SELECT cor0.col2 / + 76 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + col2 col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT + 33 AS col1 FROM tab1 cor0
----
33
33
33
query I rowsort
SELECT + col1 + + 81 FROM tab1 AS cor0
----
107
91
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5180
SELECT + + 69 * cor0.col2 DIV - col1 FROM tab0 cor0
----
-26
-62
0
skipif mysql # not compatible
query I rowsort label-5180
SELECT + + 69 * cor0.col2 / - col1 FROM tab0 cor0
----
-26
-62
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT + 33 DIV col1 + col2 * col2 * - cor0.col0 FROM tab1 AS cor0
----
-207933
-737278
-8747
skipif mysql # not compatible
query I rowsort label-5181
SELECT + 33 / col1 + col2 * col2 * - cor0.col0 FROM tab1 AS cor0
----
-207933
-737278
-8747
query I rowsort
SELECT - col0 * - ( col0 ) + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5183
SELECT ALL + + CAST( NULL AS DECIMAL ) * + 43 * cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL + + CAST ( NULL AS REAL ) * + 43 * cor0.col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col0 ) + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + + col0 * col2 + - 96 - col1 * + col2 FROM tab2 AS cor0
----
-744
2260
398
query I rowsort
SELECT ALL - cor0.col2 + - col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT + - 12 AS col0 FROM tab0 cor0
----
-12
-12
-12
query I rowsort
SELECT - - col1 - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT DISTINCT + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + 67 + + col2 FROM tab0 AS cor0
----
100
149
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5192
SELECT - ( - cor0.col1 ) * + CAST( NULL AS SIGNED ) * - 10 - - col0 col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5192
SELECT - ( - cor0.col1 ) * + CAST ( NULL AS INTEGER ) * - 10 - - col0 col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + col0 col2 FROM tab2 AS cor0
----
182
196
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5194
SELECT - ( col2 ) + CAST( col2 AS SIGNED ) * col1 - + col0 FROM tab1 AS cor0
----
1072
1347
449
skipif mysql # not compatible
query I rowsort label-5194
SELECT - ( col2 ) + CAST ( col2 AS INTEGER ) * col1 - + col0 FROM tab1 AS cor0
----
1072
1347
449
query I rowsort
SELECT + col0 * col2 + ( + col0 ) * col1 FROM tab0 cor0
----
15397
2856
3430
onlyif mysql # use DIV operator for integer division
query I rowsort label-5196
SELECT - 34 - - col2 DIV - col2 FROM tab1 AS cor0
----
-35
-35
-35
skipif mysql # not compatible
query I rowsort label-5196
SELECT - 34 - - col2 / - col2 FROM tab1 AS cor0
----
-35
-35
-35
query I rowsort
SELECT DISTINCT + 99 * - col2 AS col0 FROM tab0
----
-3267
-8118
-99
query I rowsort
SELECT - - col2 + + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT ( + 92 ) * cor0.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
1564
2852
5428
query I rowsort
SELECT DISTINCT 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
67
query I rowsort
SELECT - 32 FROM tab2, tab1 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT ALL + 79 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT + + col2 + - col1 * col0 AS col2 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - 52 FROM tab1 AS cor0
----
-52
query I rowsort
SELECT + col0 + + 79 FROM tab1
----
143
159
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5206
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 62 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 62 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 * 42 - col2 col2 FROM tab2
----
3952
3963
3964
query I rowsort
SELECT ( col2 ) - - tab1.col0 FROM tab1
----
121
176
57
query I rowsort
SELECT - col0 * col1 + + col2 + col0 * + col1 * + col1 FROM tab2
----
21526
266942
6537
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5210
SELECT DISTINCT CAST( NULL AS SIGNED ) + 18 * - col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5210
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 18 * - col1 FROM tab0
----
NULL
query I rowsort
SELECT - 91 + - 4 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT DISTINCT - col1 + 58 * - col0 FROM tab2
----
-437
-4583
-4599
query I rowsort
SELECT 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT - 34 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT + 82 + col0 AS col1 FROM tab2 AS cor0
----
160
161
89
query I rowsort
SELECT ALL + col1 * col0 + - ( 65 + col0 * col0 ) AS col1 FROM tab0 AS cor0
----
113
1423
2105
onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT DISTINCT ( + col0 ) * cor0.col0 + - 15 DIV + col2 - col1 FROM tab1 AS cor0
----
-17
4086
6387
skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT ( + col0 ) * cor0.col0 + - 15 / + col2 - col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT - col2 * col1 + col1 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - - col1 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT col1 - + col2 * - col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT 86 * col0 FROM tab0 cor0
----
2064
3010
7654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 col2 FROM tab2 AS cor0
----
-91
-91
-91
query I rowsort
SELECT ALL + 9 + - col2 AS col2 FROM tab2 AS cor0
----
-17
-18
-29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5224
SELECT ALL ( - col0 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL ( - col0 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * + ( 98 ) AS col2 FROM tab1 AS cor0
----
1274
2548
980
query I rowsort
SELECT - ( col1 ) * col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col2 * 36 + col2 AS col2 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT ALL - col2 + 20 AS col0 FROM tab2 cor0
----
-18
-6
-7
query I rowsort
SELECT + ( - 15 ) FROM tab1 AS cor0
----
-15
-15
-15
query I rowsort
SELECT ALL col2 * - ( 23 ) AS col1 FROM tab0
----
-1886
-23
-759
query I rowsort
SELECT DISTINCT - cor0.col1 * 38 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT ALL - - col1 * col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5233
SELECT CAST( NULL AS SIGNED ) * - col0 * + col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5233
SELECT CAST ( NULL AS INTEGER ) * - col0 * + col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5234
SELECT - ( 98 ) + col0 + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5234
SELECT - ( 98 ) + col0 + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - col2 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT DISTINCT + col1 DIV 9 + col2 * ( + col1 ) FROM tab2 cor0
----
1540
647
840
skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + col1 / 9 + col2 * ( + col1 ) FROM tab2 cor0
----
1540
647
840
query I rowsort
SELECT ALL col1 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 24 FROM tab2 AS cor0
----
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-5240
SELECT cor0.col2 + - ( - col1 ) + 54 * col0 DIV - col0 FROM tab0 AS cor0
----
119
44
65
skipif mysql # not compatible
query I rowsort label-5240
SELECT cor0.col2 + - ( - col1 ) + 54 * col0 / - col0 FROM tab0 AS cor0
----
119
44
65
query I rowsort
SELECT ALL 21 + 70 FROM tab0 AS cor0
----
91
91
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 50 ) * - col2 col2 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT ALL 71 * cor0.col0 AS col2 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT DISTINCT 77 + + cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-20
-2761
-7385
query I rowsort
SELECT DISTINCT + + col2 * col2 * 99 FROM tab1 AS cor0
----
288684
321651
912384
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT col1 + - col0 + - 3 * col2 FROM tab1 AS cor0
----
-139
-225
-355
query I rowsort
SELECT ALL + + 15 AS col1 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT ( col1 ) + + col0 + + tab1.col2 * col2 FROM tab1
----
2945
3323
9309
query I rowsort
SELECT ( + col0 ) * col1 + col0 + 1 FROM tab1
----
1121
705
82
query I rowsort
SELECT col1 * 46 AS col2 FROM tab2
----
1426
2714
782
onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT DISTINCT col1 + 0 * - col1 - + 47 DIV + col0 AS col2 FROM tab2
----
17
25
59
skipif mysql # not compatible
query I rowsort label-5252
SELECT DISTINCT col1 + 0 * - col1 - + 47 / + col0 AS col2 FROM tab2
----
17
25
59
query I rowsort
SELECT DISTINCT ( - col2 ) - + col1 * col1 * - col0 FROM tab0
----
177471
329314
736927
query I rowsort
SELECT + col0 + - 52 AS col1 FROM tab1
----
-49
12
28
query I rowsort
SELECT + + col0 * ( - col1 ) FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - - cor0.col2 - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT col0 * - col0 + 68 FROM tab0 AS cor0
----
-1157
-508
-7853
query I rowsort
SELECT DISTINCT - col1 + 9 FROM tab2 AS cor0
----
-22
-50
-8
query I rowsort
SELECT - col1 + + 96 FROM tab1 cor0
----
70
83
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + - col1 col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - col0 * - col2 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
1330
158262
237237
onlyif mysql # use DIV operator for integer division
query I rowsort label-5262
SELECT ALL + - col1 DIV - ( + 48 * col2 ) + + 35 AS col1 FROM tab0 AS cor0
----
35
35
37
skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL + - col1 / - ( + 48 * col2 ) + + 35 AS col1 FROM tab0 AS cor0
----
35
35
37
query I rowsort
SELECT ALL + - col1 * col0 + - 7 AS col2 FROM tab2 AS cor0
----
-1350
-224
-4609
onlyif mysql # use DIV operator for integer division
query I rowsort label-5264
SELECT DISTINCT col1 DIV + 79 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT col1 / + 79 AS col0 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * col2 col2 FROM tab2
----
1300
1350
1900
query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - - 6 + + col2 FROM tab2 AS cor0
----
32
33
44
query I rowsort
SELECT 37 AS col0 FROM tab0 cor0
----
37
37
37
query I rowsort
SELECT ALL - col1 * - 44 FROM tab2 cor0
----
1364
2596
748
query I rowsort
SELECT + col1 + col0 * tab1.col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT ALL - - col0 + 3 * - col1 AS col0 FROM tab2 cor0
----
-86
-99
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT DISTINCT + + col1 + 30 DIV col1 FROM tab2 AS cor0
----
18
31
59
skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT + + col1 + 30 / col1 FROM tab2 AS cor0
----
18
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5273
SELECT CAST( NULL AS SIGNED ) + + 49 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5273
SELECT CAST ( NULL AS INTEGER ) + + 49 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5274
SELECT ALL col0 DIV + tab0.col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL col0 / + tab0.col2 AS col0 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT - 48 * col1 + col2 * cor0.col1 * + col0 FROM tab1 AS cor0
----
2964
36000
99216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT ( col0 ) + cor0.col0 DIV - ( col0 ) AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5276
SELECT ( col0 ) + cor0.col0 / - ( col0 ) AS col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL + + ( col0 ) * - col2 * - 38 AS col0 FROM tab1 AS cor0
----
138624
291840
6156
query I rowsort
SELECT ALL + 58 + cor0.col2 AS col1 FROM tab2 AS cor0
----
84
85
96
query I rowsort
SELECT DISTINCT - 59 + col2 AS col2 FROM tab2 AS cor0
----
-21
-32
-33
query I rowsort
SELECT - + 80 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT + cor0.col0 DIV col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5281
SELECT + cor0.col0 / col0 FROM tab2 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5282
SELECT DISTINCT col2 + + col0 DIV + col0 + 33 AS col0 FROM tab0
----
116
35
67
skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT col2 + + col0 / + col0 + 33 AS col0 FROM tab0
----
116
35
67
query I rowsort
SELECT + col1 * - col2 + 32 FROM tab1 AS cor0
----
-1216
-1372
-538
query I rowsort
SELECT ALL 72 AS col0 FROM tab0
----
72
72
72
query I rowsort
SELECT ALL 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT - - cor0.col2 + - 71 * + col0 AS col1 FROM tab0 AS cor0
----
-1671
-2484
-6237
query I rowsort
SELECT + col1 * 32 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT 48 AS col2 FROM tab2 cor0
----
48
48
48
query I rowsort
SELECT DISTINCT - col0 + - 99 * - col2 AS col0 FROM tab0
----
3243
64
8029
query I rowsort
SELECT 85 FROM tab0, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5291
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5291
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT - col2 * ( - col0 ) DIV + col1 FROM tab0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-5292
SELECT - col2 * ( - col0 ) / + col1 FROM tab0
----
0
80
9
query I rowsort
SELECT tab0.col1 + - tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ( col2 ) * col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col0 * tab1.col0 FROM tab1
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5296
SELECT DISTINCT - tab2.col0 + - col1 * - col0 + - CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
1226
183
4498
skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT - tab2.col0 + - col1 * - col0 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
1226
183
4498
query I rowsort
SELECT 9 * + col0 AS col2 FROM tab1
----
27
576
720
query I rowsort
SELECT - 96 + col2 AS col1 FROM tab1
----
-39
-42
0
query I rowsort
SELECT 53 + + ( + tab2.col2 ) * tab2.col0 FROM tab2
----
2081
242
3055
onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT DISTINCT 92 * 98 + col2 DIV tab1.col1 AS col2 FROM tab1
----
9018
9021
9023
skipif mysql # not compatible
query I rowsort label-5300
SELECT DISTINCT 92 * 98 + col2 / tab1.col1 AS col2 FROM tab1
----
9018
9021
9023
query I rowsort
SELECT ALL + - 56 * - col2 + + col0 FROM tab2 AS cor0
----
1519
1534
2207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL + 67 * - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 93deaa122e114ffa8d6beb273abef2f9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT DISTINCT col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT col2 / + col2 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL 53 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT ALL + 91 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT 92 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2156
3487
8191
onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT ALL + ( - cor0.col2 ) + + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL + ( - cor0.col2 ) + + col0 / - col2 AS col2 FROM tab0 AS cor0
----
-33
-36
-83
query I rowsort
SELECT DISTINCT - col0 + + col1 * col0 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT ALL - - col0 + + cor0.col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5311
SELECT - 86 + 73 DIV - tab2.col0 - col0 FROM tab2
----
-103
-164
-165
skipif mysql # not compatible
query I rowsort label-5311
SELECT - 86 + 73 / - tab2.col0 - col0 FROM tab2
----
-103
-164
-165
onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT col2 DIV - 58 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5312
SELECT col2 / - 58 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT + col0 - col1 DIV 63 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5313
SELECT + col0 - col1 / 63 FROM tab0
----
23
34
88
query I rowsort
SELECT + - col2 * - col2 AS col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + col2 * ( + 47 ) AS col0 FROM tab1
----
2538
2679
4512
query I rowsort
SELECT ALL col1 * 42 * 80 AS col1 FROM tab2
----
104160
198240
57120
query I rowsort
SELECT DISTINCT - tab1.col0 * - tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + col0 * + ( + col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 3 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT - 31 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT col0 + + ( col0 ) * ( + ( col1 ) ) FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT 56 - col1 FROM tab2 AS cor0
----
-3
25
39
query I rowsort
SELECT ( 4 ) * col0 FROM tab2 cor0
----
28
312
316
query I rowsort
SELECT DISTINCT + col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5325
SELECT ALL + - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL + - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + col0 * col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL - col0 * + col0 + - col1 + + col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5329
SELECT + col2 + + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5329
SELECT + col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * tab1.col1 + + tab1.col1 AS col1 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT ALL 33 + - cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 83e4bc30b21ec896ad4f646514786833
query I rowsort
SELECT DISTINCT col2 * + 89 AS col1 FROM tab0 AS cor0
----
2937
7298
89
query I rowsort
SELECT DISTINCT - cor0.col0 * 75 * cor0.col1 AS col1 FROM tab1 cor0
----
-48000
-5850
-78000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab2.col0 - col1 col0 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT ALL + col0 + col2 - - 19 FROM tab0
----
190
55
76
query I rowsort
SELECT ALL 26 + cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 15f4e3b77a72f80e62dd36b629cd16bf
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + - col0 + - col2 * - col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-36544
-4215
-99920
query I rowsort
SELECT + col0 * ( col2 ) * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 95 col0 FROM tab0 AS cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT col0 + + col1 * col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - col1 + 27 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1718
2147
55
query I rowsort
SELECT + col1 * + col0 + col1 * - ( - col2 * col0 ) - col1 AS col2 FROM tab0 AS cor0
----
6693
672126
70090
query I rowsort
SELECT DISTINCT - col2 + + col1 + + col2 AS col2 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5345
SELECT + col2 + CAST( - col0 AS SIGNED ) + col1 AS col0 FROM tab0
----
63
84
95
skipif mysql # not compatible
query I rowsort label-5345
SELECT + col2 + CAST ( - col0 AS INTEGER ) + col1 AS col0 FROM tab0
----
63
84
95
query I rowsort
SELECT ALL - tab1.col1 + 30 * + tab1.col2 AS col1 FROM tab1
----
1594
1700
2867
query I rowsort
SELECT DISTINCT 78 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
78
query I rowsort
SELECT tab1.col0 * 92 FROM tab1
----
276
5888
7360
query I rowsort
SELECT DISTINCT tab2.col0 + col1 * col2 * - col1 + + ( - col2 * - col1 ) AS col0 FROM tab2
----
-10257
-25103
-88894
query I rowsort
SELECT ALL col0 * + 27 * - ( col2 * 66 ) + 92 FROM tab2
----
-336706
-3613804
-5349472
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5351
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) * col0 + col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) * col0 + col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT ( + col0 ) * col2 + col2 * col2 + - 47 FROM tab0 AS cor0
----
-11
13975
1834
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col2 - col0 col1 FROM tab1 AS cor0
----
159
3584
7600
skipif mysql # not compatible
query I rowsort
SELECT - ( + col2 ) * + CAST ( + col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + ( + col2 ) * - col0 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL col0 + cor0.col2 + + ( + col0 + col2 ) * - col1 FROM tab1 AS cor0
----
-1089
-1425
-2112
query I rowsort
SELECT DISTINCT col0 * cor0.col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT - col0 * + ( - col0 ) + 66 FROM tab1
----
4162
6466
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col0 FROM tab0, tab1, tab0 AS cor0
----
75
query I rowsort
SELECT 91 + col2 AS col2 FROM tab0
----
124
173
92
query I rowsort
SELECT DISTINCT - - col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - + 46 * - col0 FROM tab2 AS cor0
----
322
3588
3634
onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT + col0 DIV + col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5363
SELECT + col0 / + col1 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col1 * + col0 + - ( - 42 ) FROM tab2
----
1385
259
4644
query I rowsort
SELECT ALL + col1 + col1 * col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-5367
SELECT DISTINCT col2 - col1 DIV 4 FROM tab1 AS cor0
----
48
55
93
skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT col2 - col1 / 4 FROM tab1 AS cor0
----
48
55
93
query I rowsort
SELECT DISTINCT + col2 * col1 + 89 FROM tab2 AS cor0
----
1623
735
926
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5369
SELECT ALL + - col1 * CAST( NULL AS SIGNED ) + + cor0.col2 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + - col1 * CAST ( NULL AS INTEGER ) + + cor0.col2 - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT DISTINCT + col0 DIV col0 + col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + col0 / col0 + col2 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + ( col2 ) * + col2 + col0 * - col0 col1 FROM tab2 AS cor0
----
-4759
-5382
707
query I rowsort
SELECT + col0 + ( + col0 ) FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - - col1 + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL col0 * 38 + - col0 * col1 FROM tab0 AS cor0
----
-1152
-2065
-4717
onlyif mysql # use DIV operator for integer division
query I rowsort label-5375
SELECT DISTINCT + col1 DIV + 4 + col2 FROM tab0 AS cor0
----
104
25
54
skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT + col1 / + 4 + col2 FROM tab0 AS cor0
----
104
25
54
query I rowsort
SELECT + tab2.col1 * + 65 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to af433c790a9d0aedb12a71171da99159
query I rowsort
SELECT ( - col1 * col2 ) AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - 64 FROM tab1 AS cor0
----
-64
query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL + + col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col2 FROM tab2 cor0
----
35
35
35
query I rowsort
SELECT - 49 * + cor0.col2 FROM tab0 AS cor0
----
-1617
-4018
-49
query I rowsort
SELECT + cor0.col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5384
SELECT DISTINCT 71 + + 33 DIV col1 AS col1 FROM tab2 AS cor0
----
71
72
skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT 71 + + 33 / col1 AS col1 FROM tab2 AS cor0
----
71
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 15 * - col0 col0 FROM tab0 AS cor0
----
1335
360
525
query I rowsort
SELECT col0 + 87 FROM tab2 cor0
----
165
166
94
query I rowsort
SELECT DISTINCT - + col0 * - col1 + + col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT - - col0 * col1 + + col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT - - col2 - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + + col0 + + col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT cor0.col0 * + col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL col0 * + col1 - col1 * + 42 * + 37 AS col0 FROM tab0 AS cor0
----
-131580
-133315
-147343
onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT ALL + 38 DIV col0 FROM tab1 AS cor0
----
0
0
12
skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + 38 / col0 FROM tab1 AS cor0
----
0
0
12
query I rowsort
SELECT ALL - 41 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-14
-15
-3
query I rowsort
SELECT ( + col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + ( col2 ) * + ( + cor0.col1 ) + col1 * - ( col1 ) FROM tab2 AS cor0
----
-124
-1947
357
query I rowsort
SELECT ALL + + col2 + + col1 + - col0 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT DISTINCT - 85 + - col1 FROM tab2 AS cor0
----
-102
-116
-144
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT tab2.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - col2 col2 FROM tab1
----
108
114
192
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT col2 + + tab0.col1 DIV tab0.col1 AS col2 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5404
SELECT col2 + + tab0.col1 / tab0.col1 AS col2 FROM tab0
----
2
34
83
query I rowsort
SELECT + col2 * col2 - - tab0.col0 FROM tab0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT + col2 DIV - tab0.col2 + - col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-5406
SELECT + col2 / - tab0.col2 + - col2 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT col1 + + tab0.col1 + + tab0.col1 FROM tab0
----
258
273
291
query I rowsort
SELECT ALL - tab2.col1 AS col1 FROM tab2 WHERE col0 / col1 - col1 * + col2 IN ( + col2 * col1 / - tab2.col0 )
----
query I rowsort
SELECT tab0.col1 * col0 * col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT col0 + - col2 + col0 AS col1 FROM tab1
----
-48
64
71
query I rowsort
SELECT + col2 * + col2 + col2 AS col0 FROM tab2
----
1482
702
756
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= NULL
----
query I rowsort
SELECT col0 * + col2 - + col1 * + col2 FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col1 + col0 * + col0 * + tab1.col0 FROM tab1
----
262154
512013
53
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + col0
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT IN ( col1 )
----
query I rowsort
SELECT - - 7 + col2 AS col0 FROM tab0 AS cor0
----
40
8
89
query I rowsort
SELECT ALL 25 AS col2 FROM tab2 AS cor0
----
25
25
25
query I rowsort
SELECT col1 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
272
3422
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT DISTINCT col2 * + col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + tab1.col1 * + col0 * + col2 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + + col2 * - col1 + - col1 * cor0.col0 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL col0 * tab2.col2 + - col1 * - col2 AS col2 FROM tab2
----
1026
3562
3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT ALL col1 * col2 DIV - col2 + + col2 * col0 DIV - col1 FROM tab0 AS cor0
----
-171
-95
-97
skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL col1 * col2 / - col2 + + col2 * col0 / - col1 FROM tab0 AS cor0
----
-171
-95
-97
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 <= ( NULL )
----
query I rowsort
SELECT - col0 * + cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL <> ( - col0 )
----
query I rowsort
SELECT ALL + col1 + + col1 + col2 AS col0 FROM tab0
----
195
205
264
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL tab1.col0 + tab1.col2 + - col1 FROM tab1
----
111
163
31
query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NULL NOT IN ( - col0 * - col2 * + col1 - + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5434
SELECT DISTINCT col1 + col0 DIV col0 + + tab2.col1 * - col2 AS col1 FROM tab2
----
-1474
-628
-805
skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT col1 + col0 / col0 + + tab2.col1 * - col2 AS col1 FROM tab2
----
-1474
-628
-805
onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT DISTINCT col0 DIV tab1.col1 AS col0 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT col0 / tab1.col1 AS col0 FROM tab1
----
0
6
query I rowsort
SELECT col1 + col0 + tab2.col1 FROM tab2 WHERE col1 IN ( col2 - col1 )
----
query I rowsort
SELECT DISTINCT col2 + col2 * + tab0.col1 * col0 FROM tab0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab1 WHERE NOT col0 * tab1.col2 < NULL
----
query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 * - col1 + col0 FROM tab0
----
15650
3527
4926
query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NULL >= col2
----
query I rowsort
SELECT DISTINCT - col2 + col0 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT - + 75 FROM tab2 AS cor0
----
-75
-75
-75
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 04d825fa29899c3ee2704c26a542267d
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT ALL + 4 + + col2 AS col1 FROM tab1 AS cor0
----
100
58
61
query I rowsort
SELECT col2 * tab1.col1 AS col0 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col2 FROM tab2
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + + 78 - col1 col1 FROM tab0
----
27
33
38
query I rowsort
SELECT ALL + 69 FROM tab1, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ALL 51 + col0 - col2 FROM tab0
----
42
58
85
query I rowsort
SELECT ALL cor0.col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT ALL tab2.col2 + 36 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 83c3504799f3a4f21b00241a633c0759
query I rowsort
SELECT - col0 * 80 AS col0 FROM tab2 AS cor0
----
-560
-6240
-6320
query I rowsort
SELECT - col2 * 65 AS col2 FROM tab2 AS cor0
----
-1690
-1755
-2470
query I rowsort
SELECT + - col0 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5458
SELECT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5458
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5459
SELECT + + col2 + CAST( - ( col0 ) AS SIGNED ) * col1 FROM tab0 cor0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort label-5459
SELECT + + col2 + CAST ( - ( col0 ) AS INTEGER ) * col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + col0 * 28 * col0 FROM tab0 cor0
----
16128
221788
34300
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * ( - cor0.col0 ) col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + 17 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5463
SELECT DISTINCT - CAST( - col0 + col1 * col2 AS SIGNED ) FROM tab0
----
-2814
-62
-7373
skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT - CAST ( - col0 + col1 * col2 AS INTEGER ) FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT - cor0.col0 * col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + 86 + 84 * + col0 AS col0 FROM tab2 AS cor0
----
6638
6722
674
query I rowsort
SELECT ALL - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 32 * col1 FROM tab1 cor0
----
320
416
832
query I rowsort
SELECT col2 + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - - 24 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
13824
190104
29400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT - col2 DIV - cor0.col1 + col1 + - col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5470
SELECT - col2 / - cor0.col1 + col1 + - col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - + col0 * - col2 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab1 cor0
----
46
query I rowsort
SELECT + - col1 - + col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 * col2 * + col2 FROM tab1 AS cor0
----
119904
32547
75870
onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT ALL + col2 * - cor0.col1 - cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-1249
-1405
-571
skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL + col2 * - cor0.col1 - cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
-1249
-1405
-571
query I rowsort
SELECT DISTINCT 43 * col0 FROM tab0 AS cor0
----
1032
1505
3827
query I rowsort
SELECT - + col2 - col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - - col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - cor0.col2 * col0 + col0 + col1 AS col2 FROM tab1 AS cor0
----
-133
-3574
-7587
query I rowsort
SELECT DISTINCT - 66 AS col0 FROM tab2 AS cor0
----
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col1 ) col2 FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - col2 col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT - col2 * - 6 AS col1 FROM tab1
----
324
342
576
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 * + col2 AS REAL ) FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL ( - col2 ) * - col1 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT + col0 * tab0.col1 * col1 + col2 FROM tab0
----
177537
329316
737091
query I rowsort
SELECT + 70 + col1 FROM tab0
----
156
161
167
onlyif mysql # use DIV operator for integer division
query I rowsort label-5489
SELECT ALL + - col1 DIV col1 - col2 AS col2 FROM tab2 cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + - col1 / col1 - col2 AS col2 FROM tab2 cor0
----
-27
-28
-39
query I rowsort
SELECT ( 89 ) - col2 AS col1 FROM tab0
----
56
7
88
skipif mysql # not compatible
query I rowsort
SELECT + - col0 + - CAST ( + col0 AS REAL ) * col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT ALL - - col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + 38 * + col1 col2 FROM tab2 AS cor0
----
1209
2301
663
query I rowsort
SELECT col1 * - ( col0 ) AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col2 * ( + 11 ) FROM tab1 AS cor0
----
1056
594
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - - col1 + col0 * - col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5498
SELECT + col1 + + CAST( cor0.col0 AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
131
189
83
skipif mysql # not compatible
query I rowsort label-5498
SELECT + col1 + + CAST ( cor0.col0 AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT + cor0.col2 + - col2 * - col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - - cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT col2 + col2 * - cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
-135
-1976
-2926
onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT DISTINCT - - col2 + - col1 DIV - col0 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT - - col2 + - col1 / - col0 FROM tab1 AS cor0
----
57
62
96
query I rowsort
SELECT tab0.col0 + tab0.col0 AS col1 FROM tab0
----
178
48
70
query I rowsort
SELECT - tab2.col1 + col2 + + col2 FROM tab2
----
-7
23
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT col2 * col1 + col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT col0 + - col0 * col1 * col0 FROM tab2
----
-106018
-1512
-358878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col1 col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT col0 + col1 AS col2 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col1 FROM tab1
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5512
SELECT ALL + - col0 * col0 + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1226
-577
-7922
skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + - col0 * col0 + col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1226
-577
-7922
query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col1 + + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - col1 + - col0 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-35
2728
7282
query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE + col2 + - col0 IN ( - col1 ) OR NULL > col2 * - col1 + col0
----
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < col2
----
query I rowsort
SELECT 20 * col0 AS col0 FROM tab2
----
140
1560
1580
query I rowsort
SELECT + ( col2 ) + col0 + col2 FROM tab2
----
130
155
61
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + + col0 col1 FROM tab1 cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT ALL - col2 + col1 DIV + tab1.col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - col2 + col1 / + tab1.col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - + col2 * - col0 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT DISTINCT - - col1 * col1 * - col0 + - col0 FROM tab2 cor0
----
-22910
-271596
-6734
query I rowsort
SELECT + col1 + col1 AS col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT col2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col2 + col0 * col2 col2 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT DISTINCT col0 + + col2 - col2 AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT + + col0 DIV + cor0.col0 + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5528
SELECT + + col0 / + cor0.col0 + col1 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5530
SELECT ALL - + col1 DIV col1 + cor0.col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL - + col1 / col1 + cor0.col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT ALL - col0 * + col0 + col1 * - col0 FROM tab1 AS cor0
----
-4736
-7440
-87
query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab1
----
4
query I rowsort
SELECT ALL - 35 AS col0 FROM tab2
----
-35
-35
-35
query I rowsort
SELECT + 59 AS col0 FROM tab1
----
59
59
59
query I rowsort
SELECT 41 * + 59 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 57b55bcc4fbce9b59ee2066842695bf2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT - col0 DIV + 93 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5536
SELECT - col0 / + 93 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 + - 40 AS col1 FROM tab0 cor0
----
46
51
57
query I rowsort
SELECT + + col2 - - 83 AS col2 FROM tab2 AS cor0
----
109
110
121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 - col0 * col1 col1 FROM tab2 cor0
----
-1247
-179
-4465
query I rowsort
SELECT + col2 + 20 * col1 FROM tab0 AS cor0
----
1753
1902
1941
query I rowsort
SELECT + col2 + col2 * 44 FROM tab1 AS cor0
----
2430
2565
4320
query I rowsort
SELECT DISTINCT + 0 * - tab1.col0 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
0
query I rowsort
SELECT ALL + - ( col2 ) * col1 - - cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + col2 * 84 FROM tab0 cor0
----
2772
6888
84
query I rowsort
SELECT DISTINCT - 23 AS col0 FROM tab2 AS cor0
----
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5546
SELECT + + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5546
SELECT + + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - ( + 65 ) * - col0 + + ( + col2 ) FROM tab1 AS cor0
----
249
4217
5296
query I rowsort
SELECT + - col2 * + col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + 71 FROM tab2
----
71
query I rowsort
SELECT cor0.col0 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 36 AS col2 FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT - col0 * ( - col2 ) + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 + - col0 * + cor0.col0 col1 FROM tab2 cor0
----
-5
-6040
-6197
query I rowsort
SELECT DISTINCT + col0 * - col2 + 19 * col1 + cor0.col0 FROM tab0 cor0
----
-5480
1843
866
query I rowsort
SELECT ALL - 39 * + col0 FROM tab2
----
-273
-3042
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-5556
SELECT + col1 DIV col0 col2 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5556
SELECT + col1 / col0 col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT + + 16 * col2 * + cor0.col0 FROM tab0 AS cor0
----
116768
12672
560
query I rowsort
SELECT DISTINCT - - col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + 32 FROM tab2 cor0
----
32
32
32
query I rowsort
SELECT ALL + 37 * col2 AS col2 FROM tab1 AS cor0
----
1998
2109
3552
query I rowsort
SELECT + + cor0.col1 * + col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + 37 * col0 * col2 FROM tab2 AS cor0
----
111074
6993
75036
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 col2 FROM tab2 AS cor0
----
-82
-82
-82
query I rowsort
SELECT + ( + col2 ) * col1 * 51 AS col1 FROM tab2 AS cor0
----
32946
42687
78234
query I rowsort
SELECT - - col2 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT DISTINCT - + col0 DIV + col2 AS col0 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - + col0 / + col2 AS col0 FROM tab0 cor0
----
-1
-35
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0
query I rowsort
SELECT col1 * col1 * 27 FROM tab2 AS cor0
----
25947
7803
93987
query I rowsort
SELECT ALL 64 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT ( - 17 ) + - col1 AS col2 FROM tab2 AS cor0
----
-34
-48
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5571
SELECT - - CAST( 68 AS SIGNED ) * col1 + 87 AS col2 FROM tab1 AS cor0
----
1855
767
971
skipif mysql # not compatible
query I rowsort label-5571
SELECT - - CAST ( 68 AS INTEGER ) * col1 + 87 AS col2 FROM tab1 AS cor0
----
1855
767
971
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5572
SELECT CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5572
SELECT CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 92 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT - tab1.col0 * ( cor0.col0 ) FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c86a7c2445d7410c559267e98ed0c591
query I rowsort
SELECT + 49 * col2 * + 94 FROM tab2 AS cor0
----
119756
124362
175028
query I rowsort
SELECT ALL - 17 AS col0 FROM tab1 AS cor0
----
-17
-17
-17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + col1 col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT 88 * col1 AS col2 FROM tab1 AS cor0
----
1144
2288
880
query I rowsort
SELECT + 56 FROM tab2
----
56
56
56
query I rowsort
SELECT ( tab2.col2 ) * + col2 + 64 + - col1 FROM tab2
----
1491
681
762
query I rowsort
SELECT ALL - 54 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
query I rowsort
SELECT DISTINCT + + 95 * + cor0.col1 + + col2 * ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
1183
5332
9118
query I rowsort
SELECT ALL - col0 + - col1 * - col2 AS col1 FROM tab1
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-5584
SELECT ALL - col2 DIV - tab1.col0 + - 25 * col1 FROM tab1
----
-250
-324
-632
skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - col2 / - tab1.col0 + - 25 * col1 FROM tab1
----
-250
-324
-632
onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT ALL - 34 * + col1 + col2 DIV 89 AS col2 FROM tab1 AS cor0
----
-340
-441
-884
skipif mysql # not compatible
query I rowsort label-5585
SELECT ALL - 34 * + col1 + col2 / 89 AS col2 FROM tab1 AS cor0
----
-340
-441
-884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5586
SELECT + + CAST( - 85 AS SIGNED ) FROM tab1 AS cor0
----
-85
-85
-85
skipif mysql # not compatible
query I rowsort label-5586
SELECT + + CAST ( - 85 AS INTEGER ) FROM tab1 AS cor0
----
-85
-85
-85
query I rowsort
SELECT ALL - col1 + - 13 FROM tab0 AS cor0
----
-104
-110
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5588
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( 51 ) AS col1 FROM tab1 AS cor0
----
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * col2 col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + + cor0.col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + + ( + 95 ) + - col1 AS col0 FROM tab0 AS cor0
----
-2
4
9
query I rowsort
SELECT ALL - col1 * col1 + - 46 FROM tab0
----
-7442
-8327
-9455
query I rowsort
SELECT ALL - 38 + + col2 FROM tab0 AS cor0
----
-37
-5
44
query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 AS col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT + - col1 + col2 AS col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL + + col1 + - 96 - cor0.col0 FROM tab2 AS cor0
----
-115
-158
-72
query I rowsort
SELECT col2 * 36 * col1 FROM tab1 AS cor0
----
20520
44928
50544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 + cor0.col1 col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL col0 * - 57 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT DISTINCT col2 + 58 FROM tab0 AS cor0
----
140
59
91
query I rowsort
SELECT - + col0 + ( + col0 ) * + col2 + 13 FROM tab1 AS cor0
----
172
3597
7613
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 55 col2 FROM tab1 AS cor0
----
109
112
151
query I rowsort
SELECT + + col2 + - 5 FROM tab0 AS cor0
----
-4
28
77
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * CAST ( col0 AS REAL ) FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - col2 * + col0 + 1 AS col0 FROM tab1 AS cor0
----
-161
-3647
-7679
query I rowsort
SELECT ALL - col2 - tab1.col1 FROM tab1
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5609
SELECT ALL - col1 + - CAST( + cor0.col0 AS SIGNED ) * - col0 * ( + col0 * - col1 ) FROM tab0 cor0
----
-1188950
-4158972
-64152270
skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL - col1 + - CAST ( + cor0.col0 AS INTEGER ) * - col0 * ( + col0 * - col1 ) FROM tab0 cor0
----
-1188950
-4158972
-64152270
query I rowsort
SELECT ALL col0 + + 84 FROM tab0 AS cor0
----
108
119
173
query I rowsort
SELECT ALL - - col2 * ( cor0.col2 ) * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT ALL col0 + - 84 + 9 * + col0 AS col0 FROM tab1 AS cor0
----
-54
556
716
query I rowsort
SELECT + - col0 + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - + cor0.col2 * ( + 10 ) + col2 * + col1 FROM tab2 AS cor0
----
1274
266
567
query I rowsort
SELECT ALL - tab0.col0 * tab0.col1 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - col1 * - ( + col2 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 * + col1 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT 18 * + 25 + - col0 AS col2 FROM tab0 AS cor0
----
361
415
426
onlyif mysql # use DIV operator for integer division
query I rowsort label-5620
SELECT - col1 DIV 10 + cor0.col1 DIV + 64 AS col0 FROM tab0 AS cor0
----
-7
-8
-8
skipif mysql # not compatible
query I rowsort label-5620
SELECT - col1 / 10 + cor0.col1 / + 64 AS col0 FROM tab0 AS cor0
----
-7
-8
-8
query I rowsort
SELECT DISTINCT col2 * col2 + + 57 FROM tab0
----
1146
58
6781
onlyif mysql # use DIV operator for integer division
query I rowsort label-5622
SELECT DISTINCT col2 * col0 + + col2 DIV + col0 + - ( - col1 ) * col2 AS col1 FROM tab0
----
132
14760
3631
skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT col2 * col0 + + col2 / + col0 + - ( - col1 ) * col2 AS col1 FROM tab0
----
132
14760
3631
query I rowsort
SELECT DISTINCT col2 * + ( - tab0.col1 ) * col1 + 54 AS col2 FROM tab0
----
-244014
-678988
-9355
query I rowsort
SELECT 30 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT - 99 + col1 FROM tab1 AS cor0
----
-73
-86
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5626
SELECT DISTINCT + - col1 * col0 + CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT + - col1 * col0 + CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL col1 * + cor0.col2 + col1 + - 36 * + col2 FROM tab1 AS cor0
----
-1472
-2195
-514
query I rowsort
SELECT - + col1 + + col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5629
SELECT DISTINCT col1 + - col2 + ( + 21 ) DIV + col1 AS col1 FROM tab0 cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT col1 + - col2 + ( + 21 ) / + col1 AS col1 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT - - col1 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5630
SELECT - - col1 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * col1 * + col0 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + 3 * col1 * col0 + + col1 * 54 FROM tab1
----
1638
2460
3822
query I rowsort
SELECT - 29 - ( col2 ) * 78 AS col1 FROM tab1
----
-4241
-4475
-7517
onlyif mysql # use DIV operator for integer division
query I rowsort label-5634
SELECT tab1.col2 DIV col0 + col1 AS col1 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-5634
SELECT tab1.col2 / col0 + col1 AS col1 FROM tab1
----
10
14
44
query I rowsort
SELECT ALL - col0 * - tab1.col1 * col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT ALL col2 + - col0 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT + col2 * + col2 + + 83 AS col1 FROM tab2
----
1527
759
812
query I rowsort
SELECT DISTINCT col2 * + col0 * col2 - - tab0.col2 AS col1 FROM tab0
----
26169
36
598518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + col0 * + col2 + col1 * - col0 col1 FROM tab2
----
-1898
3103
701
query I rowsort
SELECT col1 * col2 * + ( 95 ) FROM tab2
----
145730
61370
79515
query I rowsort
SELECT DISTINCT + + 33 FROM tab0 AS cor0
----
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-5642
SELECT col0 * col2 DIV 1 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-5642
SELECT col0 * col2 / 1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL 36 + col0 + col2 AS col1 FROM tab1
----
157
212
93
query I rowsort
SELECT - ( col0 ) * col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col1 FROM tab2, tab2 AS cor0
----
66
query I rowsort
SELECT tab2.col1 + col2 * col1 FROM tab2
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 73 col1 FROM tab1, tab2 cor0, tab2, tab2 AS cor1
----
81 values hashing to b6d4a8c1826477f660e7b977a0d1fdd7
query I rowsort
SELECT ALL col0 + - col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + - col2 * - 73 AS col1 FROM tab1 AS cor0
----
3942
4161
7008
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( - 45 AS REAL ) * + col1 AS col1 FROM tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT - ( ( - cor0.col0 ) ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col1 + - col1 * - col1 FROM tab1 cor0
----
156
650
90
query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab1
----
46
query I rowsort
SELECT DISTINCT + - 28 + - 72 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-100
query I rowsort
SELECT - col1 * - col0 + + col1 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT + col2 + + 94 AS col0 FROM tab0 AS cor0
----
127
176
95
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + + col2 * - col0 + col1 * col1 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT cor0.col2 * - 71 * + cor0.col0 + - col2 AS col2 FROM tab2 cor0
----
-13446
-144014
-213180
query I rowsort
SELECT - ( + 42 ) * col1 FROM tab0 AS cor0
----
-3612
-3822
-4074
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col0 FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT - col1 + + col1 * col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + col2 + + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT ALL - + cor0.col2 DIV col0 + col0 * - ( - col2 + col2 * cor0.col0 ) FROM tab0 AS cor0
----
-1190
-18217
-642224
skipif mysql # not compatible
query I rowsort label-5665
SELECT ALL - + cor0.col2 / col0 + col0 * - ( - col2 + col2 * cor0.col0 ) FROM tab0 AS cor0
----
-1190
-18217
-642224
onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT DISTINCT + 8 * - col2 + - col1 DIV - CAST( col2 AS SIGNED ) - col0 * 37 * 5 AS col1 FROM tab0 cor0
----
-17120
-4702
-6386
skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT + 8 * - col2 + - col1 / - CAST ( col2 AS INTEGER ) - col0 * 37 * 5 AS col1 FROM tab0 cor0
----
-17120
-4702
-6386
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + 86 AS col2 FROM tab2 AS cor0
----
86
86
86
query I rowsort
SELECT col1 + col2 * + 2 * 16 AS col2 FROM tab1 AS cor0
----
1754
1834
3085
onlyif mysql # use DIV operator for integer division
query I rowsort label-5670
SELECT - col1 * col1 DIV 19 FROM tab0
----
-389
-435
-495
skipif mysql # not compatible
query I rowsort label-5670
SELECT - col1 * col1 / 19 FROM tab0
----
-389
-435
-495
query I rowsort
SELECT ALL - tab0.col2 + - col0 - col1 FROM tab0
----
-133
-143
-262
query I rowsort
SELECT - - 78 * col1 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT - col0 * - col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT col0 * + col0 + + col1 + col1 * ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-137
1541
4915
query I rowsort
SELECT + cor0.col1 * col1 + - col1 FROM tab2 cor0
----
272
3422
930
query I rowsort
SELECT 48 * - col1 AS col1 FROM tab2
----
-1488
-2832
-816
query I rowsort
SELECT - 48 * col2 AS col2 FROM tab1
----
-2592
-2736
-4608
query I rowsort
SELECT DISTINCT - 37 FROM tab1
----
-37
query I rowsort
SELECT 70 * - col2 + + cor0.col0 * - col0 FROM tab1 AS cor0
----
-13120
-3789
-8086
query I rowsort
SELECT ALL - - col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + - 76 + cor0.col1 FROM tab1 cor0
----
-50
-63
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 + col1 col1 FROM tab0 cor0
----
59
64
70
query I rowsort
SELECT DISTINCT + - col0 * - col1 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + - 4 + - cor0.col0 * - 38 FROM tab1 AS cor0
----
110
2428
3036
query I rowsort
SELECT ALL - ( - col0 ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT 2 DIV 4 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
243 values hashing to fa3d5b69e444df969b60da5e4c5c3507
skipif mysql # not compatible
query I rowsort label-5686
SELECT 2 / 4 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
243 values hashing to fa3d5b69e444df969b60da5e4c5c3507
onlyif mysql # use DIV operator for integer division
query I rowsort label-5687
SELECT col2 + col0 * col2 DIV col1 + - col0 * - col2 FROM tab0
----
36
7460
834
skipif mysql # not compatible
query I rowsort label-5687
SELECT col2 + col0 * col2 / col1 + - col0 * - col2 FROM tab0
----
36
7460
834
onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT ( col2 ) DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5688
SELECT ( col2 ) / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 65 * + tab1.col2 + + col0 FROM tab1
----
3513
3769
6320
query I rowsort
SELECT - 15 + col2 AS col0 FROM tab2
----
11
12
23
query I rowsort
SELECT DISTINCT - col1 * col1 + - 19 FROM tab0
----
-7415
-8300
-9428
onlyif mysql # use DIV operator for integer division
query I rowsort label-5692
SELECT tab1.col2 * col2 DIV + tab1.col1 + col0 AS col2 FROM tab1
----
115
388
788
skipif mysql # not compatible
query I rowsort label-5692
SELECT tab1.col2 * col2 / + tab1.col1 + col0 AS col2 FROM tab1
----
115
388
788
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT 14 * - col0 FROM tab2
----
-1092
-1106
-98
query I rowsort
SELECT DISTINCT + col1 * col1 * col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - ( + tab1.col1 ) FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT tab1.col1 * CAST( col0 AS SIGNED ) FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-5698
SELECT tab1.col1 * CAST ( col0 AS INTEGER ) FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL col0 * ( col2 ) AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL + ( - col0 ) * - col2 - col1 AS col1 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT - 64 + col0 FROM tab1 AS cor0
----
-61
0
16
query I rowsort
SELECT DISTINCT 29 * - 89 AS col0 FROM tab0 AS cor0
----
-2581
query I rowsort
SELECT DISTINCT col0 * tab0.col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - - 49 FROM tab0 AS cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT + col1 + col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5706
SELECT + col1 + col2 / - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - col2 * 6 + col2 FROM tab1
----
-270
-285
-480
query I rowsort
SELECT ALL col2 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT 40 - cor0.col2 AS col1 FROM tab0 cor0
----
-42
39
7
query I rowsort
SELECT DISTINCT - 74 + - col0 AS col2 FROM tab2 AS cor0
----
-152
-153
-81
query I rowsort
SELECT + - 27 + - col2 FROM tab1 AS cor0
----
-123
-81
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5712
SELECT DISTINCT + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT + col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + + 24 + col1 FROM tab2 AS cor0
----
41
55
83
query I rowsort
SELECT ALL ( + cor0.col1 ) + + col0 - cor0.col1 AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5715
SELECT ALL col2 + - col2 * col1 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL col2 + - col2 * col1 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 20 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
-1551
-636
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5717
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - 79 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - 79 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col0 + - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT ALL 88 DIV - 77 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL 88 / - 77 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT col2 * + col1 - - col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5721
SELECT DISTINCT CAST( NULL AS SIGNED ) * + cor0.col0 + col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + cor0.col0 + col1 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT + 83 DIV col0 AS col2 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-5722
SELECT + 83 / col0 AS col2 FROM tab0
----
0
2
3
query I rowsort
SELECT 2 * + col1 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL col2 * + col2 + - col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT - col1 * 32 * - col2 FROM tab0
----
238784
3104
90816
query I rowsort
SELECT ( + 33 ) AS col0 FROM tab2
----
33
33
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5727
SELECT + CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5727
SELECT + CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col0 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + - col1 * + col0 - col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - + ( ( cor0.col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 16 AS col1 FROM tab0 cor0
----
16
16
16
query I rowsort
SELECT ALL col0 * - 32 FROM tab2 AS cor0
----
-224
-2496
-2528
query I rowsort
SELECT ALL - col1 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT + + 83 - - 28 AS col0 FROM tab1 AS cor0
----
111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - + 32 AS col1 FROM tab1 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT - 94 * col0 FROM tab0 cor0
----
-2256
-3290
-8366
query I rowsort
SELECT + ( + col2 ) * col1 * col0 - - col2 FROM tab2 AS cor0
----
119678
51072
5886
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + col1 AS col0 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - col1 * - cor0.col2 + 5 * col1 * col2 FROM tab1 AS cor0
----
3420
7488
8424
query I rowsort
SELECT ALL 99 * + col1 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT ALL + cor0.col1 - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL + 10 + col2 + ( col0 + col2 * - cor0.col1 ) FROM tab0 AS cor0
----
-2771
-51
-7281
query I rowsort
SELECT DISTINCT - 89 + col1 * col2 * + col2 AS col1 FROM tab0 AS cor0
----
611795
8
93565
query I rowsort
SELECT - 82 FROM tab2 cor0
----
-82
-82
-82
query I rowsort
SELECT ALL col1 + col2 * - col2 * col0 FROM tab0
----
-26050
-598345
62
query I rowsort
SELECT - col0 + 42 + + tab0.col1 AS col2 FROM tab0
----
104
104
44
query I rowsort
SELECT - 51 + col0 AS col1 FROM tab0 cor0
----
-16
-27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5751
SELECT - col2 DIV 59 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5751
SELECT - col2 / 59 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * + col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-5753
SELECT col0 DIV + cor0.col0 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5753
SELECT col0 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col2 + col1 * - col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT - col0 + 6 + - col1 * col0 FROM tab2 AS cor0
----
-1416
-218
-4674
query I rowsort
SELECT DISTINCT + col0 * + ( + col0 ) FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-5757
SELECT - cor0.col2 * col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5757
SELECT - cor0.col2 * col0 / col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col1 * - col2 + + 8 AS col2 FROM tab2 AS cor0
----
-1526
-638
-829
query I rowsort
SELECT ALL - + col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col0 * col0 col2 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5761
SELECT DISTINCT + col1 * + CAST( 28 AS SIGNED ) AS col2 FROM tab1 cor0
----
280
364
728
skipif mysql # not compatible
query I rowsort label-5761
SELECT DISTINCT + col1 * + CAST ( 28 AS INTEGER ) AS col2 FROM tab1 cor0
----
280
364
728
query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT cor0.col1 + col2 + - col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * ( col1 ) * col0 col0 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT cor0.col0 + - 94 * - 55 FROM tab0 cor0
----
5194
5205
5259
query I rowsort
SELECT + 46 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT - 68 FROM tab0, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT + 2 + + ( col2 ) FROM tab1 AS cor0
----
56
59
98
query I rowsort
SELECT ALL tab0.col1 + col1 FROM tab0
----
172
182
194
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 BETWEEN - col1 AND col0
----
7
31
27
query I rowsort
SELECT DISTINCT - col2 + - col2 + + col1 FROM tab0
----
-73
20
95
query I rowsort
SELECT + col1 + + col1 * col2 + col1 FROM tab1
----
1274
1456
590
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) <= NULL
----
query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < NULL
----
query I rowsort
SELECT ALL + col0 * col2 + col2 FROM tab1
----
216
3705
7776
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) < - col2 * col0
----
query I rowsort
SELECT + col1 + + col2 FROM tab0 WHERE NOT col1 = NULL
----
query I rowsort
SELECT col0 * - col1 + + col2 AS col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT col2 * col2 - col1 AS col0 FROM tab2
----
1427
617
698
query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT IN ( col0 * - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab1.col1 col2 FROM tab1
----
100
169
676
query I rowsort
SELECT col0 * + col0 + + col1 AS col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT NULL BETWEEN col1 + - col1 AND col0 * - col1 * col2
----
query I rowsort
SELECT - cor0.col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * + col0 + + col2 + col1 FROM tab0 AS cor0
----
2183
3493
8272
query I rowsort
SELECT col1 + col2 * - col1 * col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col2 + cor0.col0 + + col2 col2 FROM tab0 AS cor0
----
-1032
-6553
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-5789
SELECT DISTINCT + - col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-5789
SELECT DISTINCT + - col1 / - col0 AS col2 FROM tab2 AS cor0
----
0
4
query I rowsort
SELECT - col0 + - col1 * - col2 - - col0 * col2 FROM tab2 AS cor0
----
1019
3484
3569
query I rowsort
SELECT + + col0 * col2 + cor0.col1 * col1 FROM tab1 AS cor0
----
3748
7849
838
onlyif mysql # use DIV operator for integer division
query I rowsort label-5792
SELECT cor0.col0 + col1 + cor0.col2 DIV col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5792
SELECT cor0.col0 + col1 + cor0.col2 / col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - col2 + col2 + + col1 AS col2 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab2.col2 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT cor0.col2 - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col2 + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT ALL + col2 DIV + tab2.col0 col2 FROM tab2
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + col2 / + tab2.col0 col2 FROM tab2
----
0
0
3
query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5799
SELECT cor0.col2 * + col1 + col2 DIV + col0 FROM tab1 AS cor0
----
1249
1422
570
skipif mysql # not compatible
query I rowsort label-5799
SELECT cor0.col2 * + col1 + col2 / + col0 FROM tab1 AS cor0
----
1249
1422
570
query I rowsort
SELECT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL - col1 + + col0 * + col2 - col0 * col2 * + col1 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5802
SELECT + col0 * - tab0.col1 DIV col1 AS col2 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5802
SELECT + col0 * - tab0.col1 / col1 AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL - col1 + + 1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT col0 * + 58 + ( col0 ) * 41 FROM tab2 AS cor0
----
693
7722
7821
onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT DISTINCT col2 * 13 DIV 67 + col1 * + col0 AS col0 FROM tab2 cor0
----
1350
222
4607
skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT col2 * 13 / 67 + col1 * + col0 AS col0 FROM tab2 cor0
----
1350
222
4607
query I rowsort
SELECT ALL + - col1 + col1 + 72 * cor0.col0 FROM tab2 AS cor0
----
504
5616
5688
onlyif mysql # use DIV operator for integer division
query I rowsort label-5807
SELECT ALL - col1 + - 36 DIV + col0 + col1 FROM tab1 AS cor0
----
-12
0
0
skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL - col1 + - 36 / + col0 + col1 FROM tab1 AS cor0
----
-12
0
0
query I rowsort
SELECT ALL - col2 * - col2 + - 21 AS col1 FROM tab1 AS cor0
----
2895
3228
9195
onlyif mysql # use DIV operator for integer division
query I rowsort label-5809
SELECT col2 * ( col1 ) DIV + col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5809
SELECT col2 * ( col1 ) / + col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col1 * 97 + + col2 AS col2 FROM tab0 AS cor0
----
8375
8909
9410
query I rowsort
SELECT + - col0 + + ( col1 ) - + col0 AS col0 FROM tab2 AS cor0
----
-141
-97
17
query I rowsort
SELECT DISTINCT + cor0.col0 + - 81 + - cor0.col2 FROM tab1 AS cor0
----
-132
-74
-97
query I rowsort
SELECT col1 + + col1 * + 7 * + col1 FROM tab2 AS cor0
----
2040
24426
6758
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5814
SELECT ALL - col0 + - CAST( ( col1 ) AS SIGNED ) * - 59 FROM tab2 AS cor0
----
1822
3403
924
skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL - col0 + - CAST ( ( col1 ) AS INTEGER ) * - 59 FROM tab2 AS cor0
----
1822
3403
924
query I rowsort
SELECT DISTINCT col1 * 75 * 22 + col1 AS col0 FROM tab2 cor0
----
28067
51181
97409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT + col2 DIV + col0 AS col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-5816
SELECT + col2 / + col0 AS col0 FROM tab2
----
0
0
3
query I rowsort
SELECT ALL - tab2.col1 + - col1 - + 24 * - col2 FROM tab2
----
506
586
878
query I rowsort
SELECT 60 * col1 AS col0 FROM tab0
----
5160
5460
5820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 col2 FROM tab1
----
16
query I rowsort
SELECT - cor0.col0 + - 6 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 63f753fd368b3c152388b6e8ecd3bae5
query I rowsort
SELECT + col2 * 49 FROM tab0
----
1617
4018
49
query I rowsort
SELECT + 47 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT - col0 * ( 91 ) * + col2 + + 58 FROM tab2 AS cor0
----
-17141
-184490
-273124
query I rowsort
SELECT DISTINCT + col0 * col2 * col1 - - col1 AS col2 FROM tab2
----
119711
51051
5890
query I rowsort
SELECT + col2 - - tab2.col2 AS col0 FROM tab2
----
52
54
76
query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 >= col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - col1 * + tab0.col1 FROM tab0 WHERE NULL BETWEEN NULL AND ( col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 NOT IN ( - tab1.col0 )
----
query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( col0 ) NOT IN ( col2 )
----
query I rowsort
SELECT + col0 + - col2 + + col0 * - col2 FROM tab2
----
-1976
-209
-2961
query I rowsort
SELECT 33 + - col1 FROM tab1 AS cor0
----
20
23
7
query I rowsort
SELECT ALL col0 + col1 - - tab1.col2 FROM tab1
----
131
189
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * col0 col2 FROM tab0
----
2047
552
805
query I rowsort
SELECT ALL - ( col1 ) + + ( + col2 + - col2 * + 5 ) AS col2 FROM tab1 AS cor0
----
-238
-242
-397
query I rowsort
SELECT DISTINCT + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 69 * + col2 AS col1 FROM tab2 AS cor0
----
-1794
-1863
-2622
query I rowsort
SELECT ( + ( + cor1.col2 ) ) * + 72 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c63a57b30758018569620c7878fb7375
query I rowsort
SELECT - + col1 * - ( + col1 ) - + col2 AS col0 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT - col0 - - 99 FROM tab0 cor0
----
10
64
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5840
SELECT ALL col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + 77 FROM tab1 AS cor0
----
-3
13
74
query I rowsort
SELECT ALL + - col0 * ( + col2 ) * col2 + col1 FROM tab0 AS cor0
----
-26050
-598345
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5843
SELECT cor0.col0 * CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5843
SELECT cor0.col0 * CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + + col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + col2 * col0 - - col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL - + col0 * col2 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
-399
1536
2754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5847
SELECT - cor0.col2 DIV + col0 + + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1
1
97
skipif mysql # not compatible
query I rowsort label-5847
SELECT - cor0.col2 / + col0 + + col1 / col2 AS col2 FROM tab0 AS cor0
----
1
1
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5848
SELECT ALL + col1 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + CAST ( - cor0.col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + col2 * + 34 FROM tab1 AS cor0
----
1836
1938
3264
query I rowsort
SELECT DISTINCT - + col0 * col0 + col0 * - col1 FROM tab0 AS cor0
----
-16020
-2640
-4620
query I rowsort
SELECT + col1 + + col0 * cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
132
26222
598527
query I rowsort
SELECT - cor0.col1 + - 63 * - col1 AS col2 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT DISTINCT + 48 + + col1 FROM tab1 AS cor0
----
58
61
74
query I rowsort
SELECT - 92 FROM tab2, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 - + col1 col0 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5857
SELECT DISTINCT - col1 DIV - cor0.col1 + - ( col1 ) + - col0 FROM tab2 AS cor0
----
-136
-37
-95
skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT - col1 / - cor0.col1 + - ( col1 ) + - col0 FROM tab2 AS cor0
----
-136
-37
-95
query I rowsort
SELECT - + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 * col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 6 * col2 AS col0 FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT - - cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL col1 + col1 + col2 FROM tab0 AS cor0
----
195
205
264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + cor0.col1 * cor0.col2 col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5865
SELECT ALL 30 DIV + col0 AS col1 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL 30 / + col0 AS col1 FROM tab2
----
0
0
4
query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT ALL tab0.col0 DIV + col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5867
SELECT ALL tab0.col0 / + col0 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT - + col1 + col0 * - col2 FROM tab0 AS cor0
----
-132
-7389
-878
onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT + col0 * - col1 + - col1 DIV - col0 + - col1 * tab1.col0 FROM tab1
----
-1280
-148
-2080
skipif mysql # not compatible
query I rowsort label-5869
SELECT + col0 * - col1 + - col1 / - col0 + - col1 * tab1.col0 FROM tab1
----
-1280
-148
-2080
query I rowsort
SELECT + ( col0 + + tab0.col1 ) * + col2 * - col0 FROM tab0
----
-1313640
-4620
-87120
query I rowsort
SELECT DISTINCT ( 23 + col2 * col2 ) FROM tab0
----
1112
24
6747
query I rowsort
SELECT DISTINCT 89 * col0 * col2 AS col0 FROM tab1
----
14418
324672
683520
query I rowsort
SELECT ( 18 ) * + col1 * + col1 AS col2 FROM tab0
----
133128
149058
169362
query I rowsort
SELECT ALL 70 + col0 AS col0 FROM tab1
----
134
150
73
query I rowsort
SELECT DISTINCT - 97 + col0 AS col2 FROM tab2
----
-18
-19
-90
query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 * 70 * - col2 + + col1 col0 FROM tab1 AS cor0
----
-332614
-351110
-591347
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col0 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT + + col0 + col2 * col2 AS col1 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT ALL - + 96 + col2 FROM tab2 AS cor0
----
-58
-69
-70
query I rowsort
SELECT DISTINCT - - col1 * + col1 + col2 * + col1 * - col1 - col1 FROM tab1 AS cor0
----
-16068
-35854
-5610
query I rowsort
SELECT ALL - col1 * - col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL + - 6 + - col2 FROM tab2 cor0
----
-32
-33
-44
query I rowsort
SELECT ALL 83 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1426
300
4685
query I rowsort
SELECT ALL - + col1 * col2 + cor0.col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT - col1 * + cor0.col0 * cor0.col0 + col2 * - col2 * col2 FROM tab0 AS cor0
----
-118826
-1272179
-85473
query I rowsort
SELECT + + col2 * - cor0.col1 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT - col2 * + col0 * - col2 + col1 FROM tab2 AS cor0
----
114093
5134
52787
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - cor0.col2 col0 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT ( col0 + col2 ) DIV - col1 FROM tab2
----
-1
-1
-6
skipif mysql # not compatible
query I rowsort label-5890
SELECT ( col0 + col2 ) / - col1 FROM tab2
----
-1
-1
-6
query I rowsort
SELECT tab0.col2 + - col0 * col1 + - col0 FROM tab0
----
-2055
-3429
-8106
query I rowsort
SELECT 30 * 50 * col0 AS col0 FROM tab0
----
133500
36000
52500
query I rowsort
SELECT - 97 * col1 AS col0 FROM tab0
----
-8342
-8827
-9409
query I rowsort
SELECT col1 * tab1.col2 * col0 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + 28 AS col2 FROM tab0 AS cor0
----
28
28
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - + col2 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT + col2 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 + 31 col1 FROM tab0 cor0
----
-2807
-66
-7431
query I rowsort
SELECT + + cor0.col0 * + col1 + + ( col2 + + cor0.col1 ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1310
2158
2457
query I rowsort
SELECT ALL - tab0.col0 * + col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col0 * - col0 * + ( - col2 ) AS col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT col2 + - 72 * + col2 FROM tab2 AS cor0
----
-1846
-1917
-2698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5904
SELECT - col1 * + CAST( 4 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-344
-364
-388
skipif mysql # not compatible
query I rowsort label-5904
SELECT - col1 * + CAST ( 4 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-344
-364
-388
query I rowsort
SELECT ALL + col2 * + 39 + col0 * - cor0.col0 + 54 FROM tab2 AS cor0
----
-4705
-5016
1058
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * 10 col2 FROM tab1 AS cor0
----
697
84
896
query I rowsort
SELECT + 84 * col0 AS col0 FROM tab2 AS cor0
----
588
6552
6636
query I rowsort
SELECT 10 * - col1 FROM tab0 AS cor0
----
-860
-910
-970
query I rowsort
SELECT - col1 * + 68 FROM tab2 cor0
----
-1156
-2108
-4012
query I rowsort
SELECT + col2 + 63 FROM tab0 AS cor0
----
145
64
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5911
SELECT - CAST( NULL AS SIGNED ) + 35 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5911
SELECT - CAST ( NULL AS INTEGER ) + 35 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * 29 col2 FROM tab0 AS cor0
----
2378
29
957
onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT + 47 + - cor0.col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
47
47
47
skipif mysql # not compatible
query I rowsort label-5913
SELECT + 47 + - cor0.col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
47
47
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-5914
SELECT - cor0.col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5914
SELECT - cor0.col0 / - col1 AS col1 FROM tab2 AS cor0
----
0
1
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5915
SELECT - + CAST( NULL AS DECIMAL ) * ( cor0.col1 ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5915
SELECT - + CAST ( NULL AS REAL ) * ( cor0.col1 ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0 cor0
----
32
query I rowsort
SELECT 67 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + - 93 * 51 AS col2 FROM tab0 AS cor0
----
-4743
-4743
-4743
query I rowsort
SELECT DISTINCT - - col0 * - ( cor0.col0 ) * + col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5920
SELECT + - CAST( col1 AS SIGNED ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-5920
SELECT + - CAST ( col1 AS INTEGER ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab2, tab2 AS cor0
----
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5922
SELECT ALL - col1 * col2 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL - col1 * col2 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col2 + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + - 12 * + col2 + - cor0.col2 + 87 AS col0 FROM tab0 AS cor0
----
-342
-979
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-5925
SELECT - cor0.col2 * cor0.col2 + col2 DIV - col2 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif mysql # not compatible
query I rowsort label-5925
SELECT - cor0.col2 * cor0.col2 + col2 / - col2 FROM tab1 AS cor0
----
-2917
-3250
-9217
query I rowsort
SELECT + + 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5927
SELECT DISTINCT ( + col0 * CAST( - col0 AS SIGNED ) ) FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT ( + col0 * CAST ( - col0 AS INTEGER ) ) FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT + 45 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT - col2 - - tab2.col2 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT col2 * col0 + - col1 FROM tab2
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT DISTINCT col1 DIV + col2 AS col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT col1 / + col2 AS col2 FROM tab0
----
1
2
97
query I rowsort
SELECT + col1 + - cor0.col2 * + 5 AS col1 FROM tab2 AS cor0
----
-104
-173
-71
query I rowsort
SELECT - + col0 * 38 AS col0 FROM tab1 AS cor0
----
-114
-2432
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-5934
SELECT 25 DIV cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7edfc0a5855391b33d47c24386fc9222
skipif mysql # not compatible
query I rowsort label-5934
SELECT 25 / cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7edfc0a5855391b33d47c24386fc9222
query I rowsort
SELECT ALL 41 AS col2 FROM tab2
----
41
41
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) + col2 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - + 88 + col2 AS col1 FROM tab1 AS cor0
----
-31
-34
8
query I rowsort
SELECT ALL + - 85 * + col1 - + 63 FROM tab0 AS cor0
----
-7373
-7798
-8308
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5939
SELECT DISTINCT - 45 * + col0 * CAST( NULL AS SIGNED ) + 7 col1 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - 45 * + col0 * CAST ( NULL AS INTEGER ) + 7 col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + - 92 * col0 AS col0 FROM tab0 AS cor0
----
-2208
-3220
-8188
query I rowsort
SELECT ALL - - col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + 41 - cor0.col1 AS col2 FROM tab1 AS cor0
----
15
28
31
query I rowsort
SELECT DISTINCT ( col0 ) * 60 * + col2 AS col0 FROM tab2
----
11340
121680
180120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab1.col1 * - tab1.col1 col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT + ( cor0.col2 ) * + 40 + cor0.col1 FROM tab2 AS cor0
----
1099
1111
1537
query I rowsort
SELECT ALL + col2 + - 41 FROM tab0 AS cor0
----
-40
-8
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5948
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) - - col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5948
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) - - col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + 64 - - col2 * - ( col2 ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + 64 - - col2 * - ( col2 ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * - 91 - 4 FROM tab2 cor0
----
-2370
-2461
-3462
query I rowsort
SELECT 97 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT col0 - ( - col2 + cor0.col0 ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL 66 AS col0 FROM tab1
----
66
66
66
query I rowsort
SELECT + 82 * - 72 AS col2 FROM tab1 AS cor0
----
-5904
-5904
-5904
query I rowsort
SELECT ALL + 45 * + cor0.col1 AS col1 FROM tab2 cor0
----
1395
2655
765
query I rowsort
SELECT 94 * col1 + col2 * - col1 FROM tab0 AS cor0
----
1092
5246
9021
query I rowsort
SELECT DISTINCT ( col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL 2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT DISTINCT + ( 15 ) AS col1 FROM tab0 cor0
----
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5960
SELECT + CAST( NULL AS SIGNED ) / ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5960
SELECT + CAST ( NULL AS INTEGER ) / ( col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( - col1 ) + - col1 * - ( col1 + + col0 ) FROM tab2 cor0
----
1209
1649
8142
query I rowsort
SELECT DISTINCT ( col2 ) * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + 35 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
1836
1938
3264
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5964
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * - col1 + + col1 * - ( - 25 ) FROM tab0
----
-5824
-970
86
query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab0 AS cor0
----
9
query I rowsort
SELECT ALL - + 18 AS col2 FROM tab0 cor0
----
-18
-18
-18
query I rowsort
SELECT DISTINCT + col2 * - col1 + tab1.col2 AS col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + col1 + col0 * col0 AS col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT DISTINCT - col0 + tab1.col0 * col1 + tab1.col1 FROM tab1
----
101
586
973
query I rowsort
SELECT 8 + - 66 AS col0 FROM tab2
----
-58
-58
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5972
SELECT ( + 66 ) - + col1 * CAST( - 30 AS SIGNED ) * - col2 AS col1 FROM tab1
----
-17034
-37374
-42054
skipif mysql # not compatible
query I rowsort label-5972
SELECT ( + 66 ) - + col1 * CAST ( - 30 AS INTEGER ) * - col2 AS col1 FROM tab1
----
-17034
-37374
-42054
query I rowsort
SELECT - col0 + col0 * + ( + col1 + - col1 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT 63 * col0 * + col2 FROM tab2 cor0
----
11907
127764
189126
query I rowsort
SELECT ALL - col1 * col2 * 79 FROM tab2 AS cor0
----
-121186
-51034
-66123
query I rowsort
SELECT ALL col2 * col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL + col1 + + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col0 + col1 + - col1 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT - - cor0.col2 - 20 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9587973dd957c4efe7c538db83fbb878
query I rowsort
SELECT - + 82 + + col0 AS col0 FROM tab2 AS cor0
----
-3
-4
-75
query I rowsort
SELECT col0 * col1 * 13 + - col1 * cor0.col0 FROM tab1 AS cor0
----
12480
7680
936
query I rowsort
SELECT ALL + tab0.col2 - col0 AS col0 FROM tab0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5983
SELECT ALL - col0 + col0 * + col0 DIV + col0 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - col0 + col0 * + col0 / + col0 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT tab1.col1 AS col0 FROM tab1, tab0 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + col1 * - tab0.col1 + + col1 AS col2 FROM tab0
----
-7310
-8190
-9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5986
SELECT col2 * CAST( - col2 AS SIGNED ) FROM tab2
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-5986
SELECT col2 * CAST ( - col2 AS INTEGER ) FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col1 * tab1.col0 + - tab1.col1 AS col2 FROM tab1
----
1027
52
630
query I rowsort
SELECT ALL col0 + - tab1.col0 * + col0 AS col0 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT - col1 + + col1 * ( col1 ) FROM tab0
----
7310
8190
9312
query I rowsort
SELECT - col0 * + col1 + 75 + + col0 FROM tab0
----
-1965
-3285
-7935
onlyif mysql # use DIV operator for integer division
query I rowsort label-5991
SELECT col0 DIV col2 + 22 FROM tab1
----
22
22
23
skipif mysql # not compatible
query I rowsort label-5991
SELECT col0 / col2 + 22 FROM tab1
----
22
22
23
query I rowsort
SELECT DISTINCT - ( 79 ) + col1 AS col1 FROM tab1 AS cor0
----
-53
-66
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT + + 28 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
2
2
skipif mysql # not compatible
query I rowsort label-5993
SELECT + + 28 / + col1 AS col0 FROM tab1 AS cor0
----
1
2
2
query I rowsort
SELECT col0 + 42 * col0 FROM tab1 AS cor0
----
129
2752
3440
query I rowsort
SELECT cor0.col0 * + col0 + col2 + col0 * ( cor0.col0 ) FROM tab2 AS cor0
----
12194
125
12520
query I rowsort
SELECT ALL - 82 * + 68 AS col0 FROM tab1 AS cor0
----
-5576
-5576
-5576
query I rowsort
SELECT DISTINCT - col2 + + col1 * + col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT ALL + + ( col2 ) + col2 * 40 AS col2 FROM tab1 AS cor0
----
2214
2337
3936
query I rowsort
SELECT ALL col0 + col2 * col1 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT ALL col2 * + 85 FROM tab2 AS cor0
----
2210
2295
3230
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6001
SELECT ALL + CAST( - col0 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL + CAST ( - col0 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col1 * 45 + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
3699
4086
9801
onlyif mysql # use DIV operator for integer division
query I rowsort label-6003
SELECT ALL + ( cor0.col2 ) DIV col2 col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL + ( cor0.col2 ) / col2 col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - - cor0.col2 + + col0 * - col1 AS col2 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT col1 + - 48 FROM tab1 AS cor0
----
-22
-35
-38
query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL + + col0 * + ( 61 + col2 ) AS col2 FROM tab0 AS cor0
----
12727
2170
2256
query I rowsort
SELECT - col0 * 66 * col1 FROM tab0
----
-136224
-224070
-534534
query I rowsort
SELECT DISTINCT 18 + 69 FROM tab2, tab0 cor0
----
87
query I rowsort
SELECT DISTINCT tab2.col2 + + cor0.col0 AS col0 FROM tab2, tab0, tab0 AS cor0
----
115
116
127
50
51
61
62
73
query I rowsort
SELECT DISTINCT ( - col2 ) * col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + ( col2 ) * - cor0.col1 + - ( + col2 * col0 ) - col1 AS col2 FROM tab0 AS cor0
----
-35
1960
73
query I rowsort
SELECT + col2 * tab0.col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col2 * ( + 8 ) FROM tab1
----
432
456
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col2 - - col2 col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6016
SELECT + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6016
SELECT + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6017
SELECT ALL col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + tab0.col1 + col1 AS col0 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT - 10 AS col2 FROM tab2
----
-10
-10
-10
query I rowsort
SELECT ALL + ( col0 ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT col0 + + col1 * ( col2 ) FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL 3 + col0 FROM tab0 AS cor0
----
27
38
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6023
SELECT ALL + CAST( NULL AS SIGNED ) + - ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL + CAST ( NULL AS INTEGER ) + - ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT DISTINCT + 5 DIV 49 col0 FROM tab1, tab0, tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6024
SELECT DISTINCT + 5 / 49 col0 FROM tab1, tab0, tab0 AS cor0
----
0
query I rowsort
SELECT ALL + 89 AS col0 FROM tab2
----
89
89
89
query I rowsort
SELECT 66 * 45 - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8df407f44595eaddf597b0692418c281
query I rowsort
SELECT DISTINCT - - 40 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
40
query I rowsort
SELECT + - col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - + 8 * + col1 FROM tab1 AS cor0
----
-104
-208
-80
query I rowsort
SELECT 10 + col0 * + cor0.col0 FROM tab1 AS cor0
----
19
4106
6410
query I rowsort
SELECT - - 52 * + cor0.col0 FROM tab2 cor0
----
364
4056
4108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6032
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT + ( + tab2.col2 ) DIV + col1 - + col0 FROM tab2
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-6033
SELECT + ( + tab2.col2 ) / + col1 - + col0 FROM tab2
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 4 AS REAL ) * cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
124
236
68
query I rowsort
SELECT ( + col2 * - tab1.col1 ) + tab1.col0 AS col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT + col2 * col1 + col0 AS col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL - + col1 * - cor0.col2 - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - + col0 * - 80 AS col0 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT ALL + cor0.col1 + 13 AS col1 FROM tab2 AS cor0
----
30
44
72
query I rowsort
SELECT DISTINCT + col2 + - 63 FROM tab0 AS cor0
----
-30
-62
19
query I rowsort
SELECT ALL - + col1 - - col1 * + cor0.col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT col0 * ( col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col1 * - col0 * col0 AS col1 FROM tab2 cor0
----
106176
1526
359034
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 AS col2 FROM tab2 cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT ALL + + col2 DIV + ( + col0 ) FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL + + col2 / + ( + col0 ) FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT col2 * 92 FROM tab0 AS cor0
----
3036
7544
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL - col1 + + col2 * + cor0.col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT - + col0 * 46 FROM tab2 AS cor0
----
-322
-3588
-3634
query I rowsort
SELECT ALL + cor0.col1 - 14 FROM tab1 AS cor0
----
-1
-4
12
query I rowsort
SELECT ALL col1 + - 37 + + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
157
2887
7516
query I rowsort
SELECT col1 * ( 21 ) FROM tab2 cor0
----
1239
357
651
query I rowsort
SELECT ALL + + cor0.col2 * col0 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - - col2 * col1 + + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + ( + col1 ) + col0 AS col0 FROM tab0
----
110
132
180
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7
query I rowsort
SELECT + - 45 + + col0 FROM tab1 AS cor0
----
-42
19
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6058
SELECT ALL CAST( col2 AS SIGNED ) * - col1 - + ( col0 * col0 ) FROM tab1 AS cor0
----
-1413
-4666
-7648
skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL CAST ( col2 AS INTEGER ) * - col1 - + ( col0 * col0 ) FROM tab1 AS cor0
----
-1413
-4666
-7648
onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT DISTINCT + col2 * col2 DIV - col0 FROM tab0 cor0
----
-45
-75
0
skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + col2 * col2 / - col0 FROM tab0 cor0
----
-45
-75
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 66 col2 FROM tab0 AS cor0
----
-66
-66
-66
query I rowsort
SELECT + ( + 68 ) + - col0 + + 93 FROM tab0 AS cor0
----
126
137
72
query I rowsort
SELECT DISTINCT 49 + col1 AS col1 FROM tab0 AS cor0
----
135
140
146
query I rowsort
SELECT ALL + ( + col2 ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + + ( + cor0.col2 ) * - ( - 76 ) * + col1 + 82 AS col2 FROM tab2 AS cor0
----
116666
49178
63694
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6065
SELECT DISTINCT CAST( + tab0.col0 * col0 AS SIGNED ) + - col0 AS col0 FROM tab0
----
1190
552
7832
skipif mysql # not compatible
query I rowsort label-6065
SELECT DISTINCT CAST ( + tab0.col0 * col0 AS INTEGER ) + - col0 AS col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT - col0 * + 2 AS col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT - 20 * 78 + col0 + col0 FROM tab0 AS cor0
----
-1382
-1490
-1512
query I rowsort
SELECT DISTINCT + - 29 + + col1 FROM tab0 AS cor0
----
57
62
68
query I rowsort
SELECT ALL + col0 * 27 FROM tab2 cor0
----
189
2106
2133
query I rowsort
SELECT DISTINCT + col1 * + ( col0 + tab0.col0 * + col2 ) FROM tab0
----
672217
6790
70176
query I rowsort
SELECT col0 * tab0.col0 - + ( col2 ) * col1 AS col2 FROM tab0
----
-2262
1128
459
query I rowsort
SELECT ALL - - 98 + col1 + col0 AS col2 FROM tab0 AS cor0
----
208
230
278
query I rowsort
SELECT DISTINCT - ( 73 ) AS col0 FROM tab2 AS cor0
----
-73
query I rowsort
SELECT DISTINCT - + 19 * col0 AS col0 FROM tab0 AS cor0
----
-1691
-456
-665
query I rowsort
SELECT + 48 * cor0.col0 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT ALL - col2 + + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 7 FROM tab2, tab1 AS cor0
----
7
query I rowsort
SELECT + ( - col2 ) * + tab1.col2 + col0 * + col0 + col1 FROM tab1
----
-2803
-2881
857
query I rowsort
SELECT DISTINCT + 64 + - col0 FROM tab2
----
-14
-15
57
query I rowsort
SELECT tab1.col1 * - col2 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + + 49 FROM tab2 AS cor0
----
49
query I rowsort
SELECT DISTINCT cor0.col0 * col1 + ( col2 ) FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT col2 - - col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL + 30 + - col2 AS col2 FROM tab0 AS cor0
----
-3
-52
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT + - 94 * col2 + - col0 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2443
-2538
-3568
skipif mysql # not compatible
query I rowsort label-6086
SELECT + - 94 * col2 + - col0 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2443
-2538
-3568
query I rowsort
SELECT DISTINCT + 29 + + col1 AS col0 FROM tab0 AS cor0
----
115
120
126
query I rowsort
SELECT DISTINCT - col1 * - col0 + - col1 * col0 * + col1 FROM tab2 AS cor0
----
-21488
-266916
-6510
query I rowsort
SELECT ALL - - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT - col0 + - col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT + col0 * - col2 + col2 + + col0 FROM tab2
----
-155
-1924
-2885
query I rowsort
SELECT ALL col2 * - 92 FROM tab0 AS cor0
----
-3036
-7544
-92
query I rowsort
SELECT ALL - + cor0.col0 * + ( + 9 ) AS col0 FROM tab1 cor0
----
-27
-576
-720
query I rowsort
SELECT ALL col1 * 78 + + col0 * cor0.col2 FROM tab2 AS cor0
----
2607
4328
6630
query I rowsort
SELECT + + col2 + 14 FROM tab1 AS cor0
----
110
68
71
query I rowsort
SELECT + tab2.col2 * + 64 FROM tab2
----
1664
1728
2432
query I rowsort
SELECT ALL + 3 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT + col1 + - ( col0 ) AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT + col0 + ( col2 ) FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - - cor0.col0 + + 46 + 77 FROM tab2 AS cor0
----
130
201
202
onlyif mysql # use DIV operator for integer division
query I rowsort label-6101
SELECT - cor0.col0 + col2 DIV 51 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-6101
SELECT - cor0.col0 + col2 / 51 FROM tab1 AS cor0
----
-2
-63
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
-95
query I rowsort
SELECT - - col2 * + col0 + col0 * - col2 + - 57 AS col0 FROM tab2 AS cor0
----
-57
-57
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT DISTINCT + col1 DIV + ( col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + col1 / + ( col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT DISTINCT - 36 FROM tab2, tab0 AS cor0
----
-36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT - cor0.col0 * - cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba
query I rowsort
SELECT col1 - ( col0 ) AS col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT + col0 * ( col0 * col0 ) + 72 AS col2 FROM tab2 AS cor0
----
415
474624
493111
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - ( - col2 ) - + col2 col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT - col0 * + col2 + - 90 FROM tab1 AS cor0
----
-252
-3738
-7770
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - ( col1 ) * col2 col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT - cor0.col1 + ( + col1 ) * col1 AS col0 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT - col1 * col1 + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - + col0 + cor0.col2 * col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT + - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - + ( col0 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 36 col0 FROM tab1 AS cor0
----
108
2304
2880
query I rowsort
SELECT + col1 * + cor0.col1 * + col0 + + col1 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT 39 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT 64 + - col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1184
-1340
-506
query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab1 cor0
----
-79
query I rowsort
SELECT DISTINCT - - cor0.col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - + 50 * + col1 * 63 FROM tab0 AS cor0
----
-270900
-286650
-305550
query I rowsort
SELECT cor0.col1 + 6 FROM tab2, tab0 AS cor0
----
9 values hashing to 6ddeb0654cc5ea0822a8d37677ca5d35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6127
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col0 + + col1 + col2 AS col2 FROM tab0
----
133
143
262
query I rowsort
SELECT ALL 44 + - col0 FROM tab1
----
-20
-36
41
query I rowsort
SELECT - col0 * cor0.col2 + col1 * + col1 * ( col1 ) AS col0 FROM tab1 AS cor0
----
-2648
-5483
17414
onlyif mysql # use DIV operator for integer division
query I rowsort label-6131
SELECT - + col2 DIV col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-6131
SELECT - + col2 / col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
24
26
38
query I rowsort
SELECT - 26 FROM tab0
----
-26
-26
-26
query I rowsort
SELECT DISTINCT - col1 + - col2 * - col2 * + col0 + col1 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT ALL - col1 * col1 + + col0 AS col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6136
SELECT ALL - cor1.col0 * - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL - cor1.col0 * - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - 23 * + col2 FROM tab0 AS cor0
----
-1886
-23
-759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6138
SELECT - ( - col0 ) * + col2 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6138
SELECT - ( - col0 ) * + col2 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6139
SELECT CAST( 60 AS SIGNED ) FROM tab1
----
60
60
60
skipif mysql # not compatible
query I rowsort label-6139
SELECT CAST ( 60 AS INTEGER ) FROM tab1
----
60
60
60
query I rowsort
SELECT ALL 54 AS col0 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT + - 85 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1258
132
4517
query I rowsort
SELECT - col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + + 48 * col0 AS col1 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT cor0.col2 + col0 * - cor0.col2 AS col0 FROM tab1 cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6145
SELECT + CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6145
SELECT + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT - col0 * + 53 - col1 AS col0 FROM tab2
----
-402
-4193
-4204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * + col0 col2 FROM tab1
----
1472
1840
69
query I rowsort
SELECT DISTINCT + 20 AS col1 FROM tab2, tab0 AS cor0
----
20
query I rowsort
SELECT - + col0 * 94 FROM tab2 AS cor0
----
-658
-7332
-7426
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6150
SELECT - col0 * CAST( NULL AS SIGNED ) + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6150
SELECT - col0 * CAST ( NULL AS INTEGER ) + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6152
SELECT col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6152
SELECT col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 80 * + col1 FROM tab0
----
6880
7280
7760
query I rowsort
SELECT DISTINCT - 35 * col2 FROM tab1
----
-1890
-1995
-3360
query I rowsort
SELECT 75 * col2 AS col0 FROM tab0
----
2475
6150
75
query I rowsort
SELECT DISTINCT - 14 FROM tab0
----
-14
query I rowsort
SELECT cor0.col2 + 63 AS col0 FROM tab0 AS cor0
----
145
64
96
query I rowsort
SELECT + col0 * cor0.col0 + col2 + + col1 AS col2 FROM tab2 AS cor0
----
107
6169
6296
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1, tab1 AS cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
query I rowsort
SELECT col1 + - col1 + cor0.col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + 17 * col2 * - col0 col2 FROM tab1 AS cor0
----
-130656
-2808
-62073
query I rowsort
SELECT ALL + + col1 * + 75 + - col0 FROM tab1 AS cor0
----
1947
686
895
query I rowsort
SELECT ALL - - col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 42 * + ( col1 ) FROM tab0 AS cor0
----
3612
3822
4074
query I rowsort
SELECT DISTINCT - ( 63 ) * col1 FROM tab1 AS cor0
----
-1638
-630
-819
query I rowsort
SELECT DISTINCT col1 * ( + 88 ) + col0 AS col1 FROM tab2
----
1575
2735
5270
query I rowsort
SELECT col0 + - 6 AS col2 FROM tab1
----
-3
58
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( ( + col0 ) ) + col0 col2 FROM tab2
----
175
215
45
query I rowsort
SELECT ALL - col2 + - col0 * + 95 * + col0 AS col2 FROM tab1
----
-389177
-608096
-909
onlyif mysql # use DIV operator for integer division
query I rowsort label-6170
SELECT - col0 DIV tab2.col1 + col2 AS col2 FROM tab2
----
25
27
34
skipif mysql # not compatible
query I rowsort label-6170
SELECT - col0 / tab2.col1 + col2 AS col2 FROM tab2
----
25
27
34
query I rowsort
SELECT ALL - col0 + col1 * - tab0.col1 * tab0.col2 FROM tab0
----
-244092
-679131
-9444
query I rowsort
SELECT DISTINCT - col2 + + col2 + 38 AS col1 FROM tab0
----
38
query I rowsort
SELECT ALL + 28 * + 66 FROM tab0
----
1848
1848
1848
query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT DISTINCT + + 21 * - cor0.col0 + + col0 DIV + 38 AS col0 FROM tab2 AS cor0
----
-147
-1636
-1657
skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + + 21 * - cor0.col0 + + col0 / + 38 AS col0 FROM tab2 AS cor0
----
-147
-1636
-1657
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6176
SELECT - CAST( col0 AS SIGNED ) * + col1 + CAST( col2 AS SIGNED ) * - col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
-3250
-757
215
skipif mysql # not compatible
query I rowsort label-6176
SELECT - CAST ( col0 AS INTEGER ) * + col1 + CAST ( col2 AS INTEGER ) * - col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
-3250
-757
215
query I rowsort
SELECT ALL ( ( - col2 ) ) FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - + 41 AS col0 FROM tab1 AS cor0
----
-41
-41
-41
query I rowsort
SELECT - col2 * - 33 AS col0 FROM tab1 cor0
----
1782
1881
3168
query I rowsort
SELECT + 56 + col0 + col2 * col0 FROM tab0 AS cor0
----
126
7443
872
query I rowsort
SELECT DISTINCT col2 * - 97 FROM tab2 cor0
----
-2522
-2619
-3686
query I rowsort
SELECT DISTINCT - + col1 + - col0 + col0 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - - ( + col1 ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ( col2 ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + 11 + - 35 FROM tab2 AS cor0
----
-24
query I rowsort
SELECT DISTINCT + + col2 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL tab2.col0 - - col2 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - col2 * + col2 - col1 AS col2 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT DISTINCT - col1 * + col0 - ( col2 ) FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT - - col2 + - col1 AS col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT ALL - cor0.col1 DIV col1 + + 89 + + col1 * - 0 FROM tab2 cor0
----
88
88
88
skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL - cor0.col1 / col1 + + 89 + + col1 * - 0 FROM tab2 cor0
----
88
88
88
query I rowsort
SELECT ALL col0 + - ( col0 * - col1 ) FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + + col1 + + 31 * col1 AS col2 FROM tab1 cor0
----
320
416
832
query I rowsort
SELECT col1 * ( col0 ) + - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + col1 * 99 + 88 AS col0 FROM tab1 AS cor0
----
1078
1375
2662
query I rowsort
SELECT + col1 * + col1 + + col2 AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT - - col0 * col0 * ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
262144
27
512000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + + 63 + + col0 FROM tab2 AS cor0
----
141
142
70
query I rowsort
SELECT - + cor0.col1 + + col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT DISTINCT col1 * col2 DIV - col1 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT col1 * col2 / - col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab1 AS cor0
----
69
query I rowsort
SELECT + + 93 * - col0 + col0 FROM tab0 AS cor0
----
-2208
-3220
-8188
query I rowsort
SELECT ALL - + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6206
SELECT - col2 * cor0.col2 + - ( + col2 + + col1 ) DIV - col0 col0 FROM tab2 AS cor0
----
-1444
-675
-721
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6206
SELECT - col2 * cor0.col2 + - ( + col2 + + col1 ) / - col0 col0 FROM tab2 AS cor0
----
-1444
-675
-721
query I rowsort
SELECT DISTINCT col1 * col1 + col2 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT col1 * ( col0 ) + 67 AS col2 FROM tab0
----
2131
3462
8166
query I rowsort
SELECT ALL col2 + col1 + col2 FROM tab2
----
111
85
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + - col1 col2 FROM tab0
----
-52
-57
-63
query I rowsort
SELECT ALL + 20 + + 37 AS col1 FROM tab0
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT - 77 + col0 DIV 43 FROM tab0 AS cor0
----
-75
-77
-77
skipif mysql # not compatible
query I rowsort label-6212
SELECT - 77 + col0 / 43 FROM tab0 AS cor0
----
-75
-77
-77
query I rowsort
SELECT + - 60 * + col2 - + 69 * - col1 FROM tab1 AS cor0
----
-1446
-2730
-4863
query I rowsort
SELECT ALL - ( + col0 * 99 ) + tab1.col2 * col1 * - col0 FROM tab1
----
-107760
-42816
-4509
query I rowsort
SELECT col2 + col2 * cor0.col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - 68 AS col1 FROM tab1
----
-68
-68
-68
query I rowsort
SELECT + + col2 + + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT - col0 - + col0 * col1 FROM tab1
----
-1120
-704
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6219
SELECT - + CAST( NULL AS SIGNED ) + 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6219
SELECT - + CAST ( NULL AS INTEGER ) + 21 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * 74 FROM tab1 AS cor0
----
222
4736
5920
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT DISTINCT - col2 + - 48 FROM tab2
----
-74
-75
-86
query I rowsort
SELECT - ( + col0 ) + tab0.col0 * + 96 + - ( col0 ) FROM tab0
----
2256
3290
8366
query I rowsort
SELECT + 98 * col1 FROM tab2
----
1666
3038
5782
query I rowsort
SELECT DISTINCT col1 + 19 * + col1 + + col0 FROM tab1
----
264
340
523
query I rowsort
SELECT ALL 31 + col1 FROM tab1
----
41
44
57
query I rowsort
SELECT ALL 75 + 48 FROM tab2
----
123
123
123
query I rowsort
SELECT - col2 * + cor0.col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL 2 AS col0 FROM tab2 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab2 AS cor0
----
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6231
SELECT DISTINCT + CAST( - 57 AS SIGNED ) AS col2 FROM tab2 cor0
----
-57
skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT + CAST ( - 57 AS INTEGER ) AS col2 FROM tab2 cor0
----
-57
query I rowsort
SELECT - ( col0 ) - col2 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 38 col1 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT DISTINCT + 13 + col2 FROM tab2 AS cor0
----
39
40
51
query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab2 cor0
----
15
query I rowsort
SELECT ALL + cor0.col1 * 81 + col1 AS col1 FROM tab2 AS cor0
----
1394
2542
4838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 16 col1 FROM tab1 cor0
----
16
16
16
query I rowsort
SELECT ALL - col0 + + ( col2 ) * + col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT + col1 * 5 FROM tab0 AS cor0
----
430
455
485
query I rowsort
SELECT DISTINCT - col2 * col0 * col0 + 39 * col1 AS col2 FROM tab2 AS cor0
----
-114
-155883
-236495
query I rowsort
SELECT ALL - 84 * - col1 AS col1 FROM tab2 cor0
----
1428
2604
4956
onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT + ( cor0.col0 ) - col1 DIV + col1 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-6242
SELECT + ( cor0.col0 ) - col1 / + col1 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT ALL - + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL - + col0 / col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6245
SELECT ALL 72 DIV tab2.col0 FROM tab2
----
0
0
10
skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL 72 / tab2.col0 FROM tab2
----
0
0
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col0 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT col2 * cor0.col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT 4 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6249
SELECT ALL tab1.col0 * - CAST( col0 AS SIGNED ) FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL tab1.col0 * - CAST ( col0 AS INTEGER ) FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - 89 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6252
SELECT ALL - - col0 / CAST( NULL AS SIGNED ) - + ( col2 ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL - - col0 / CAST ( NULL AS INTEGER ) - + ( col2 ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT ALL col0 + col1 + + 24 DIV + col2 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL col0 + col1 + + 24 / + col2 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6254
SELECT + - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6254
SELECT + - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col1 * + col0 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - - 6 * col0 AS col0 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT - + cor0.col0 + + col1 * + col0 FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6258
SELECT - + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6258
SELECT - + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6259
SELECT DISTINCT col2 - + col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT col2 - + col2 / - col0 AS col2 FROM tab0 AS cor0
----
1
34
82
query I rowsort
SELECT ALL + + ( - col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - 85 + + 84 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col0 * + cor0.col2 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6264
SELECT - - col2 * - col1 + + col1 DIV - col0 FROM tab2 AS cor0
----
-1534
-646
-841
skipif mysql # not compatible
query I rowsort label-6264
SELECT - - col2 * - col1 + + col1 / - col0 FROM tab2 AS cor0
----
-1534
-646
-841
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6265
SELECT - cor0.col0 + - CAST( col0 + - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-69
-96
skipif mysql # not compatible
query I rowsort label-6265
SELECT - cor0.col0 + - CAST ( col0 + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-69
-96
query I rowsort
SELECT - - cor0.col0 + col2 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT ALL + 27 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT ALL 69 * + 14 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to b3fc189e336e614bcc876b0f9d316316
query I rowsort
SELECT - col1 * 4 - + col0 AS col1 FROM tab2
----
-131
-147
-314
onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT + + col2 + col1 DIV + col1 col2 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6270
SELECT + + col2 + col1 / + col1 col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT + + 25 + col2 * col0 * + col1 AS col1 FROM tab0 AS cor0
----
3420
664143
68137
query I rowsort
SELECT col0 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - cor0.col1 * - 71 * - col0 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
-145752
-241010
-567731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6275
SELECT DISTINCT - CAST( ( - col1 ) AS SIGNED ) * col2 + - col0 * col1 FROM tab1 AS cor0
----
-70
1326
208
skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT - CAST ( ( - col1 ) AS INTEGER ) * col2 + - col0 * col1 FROM tab1 AS cor0
----
-70
1326
208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col0 col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT 27 * + col0 * - col1 - col0 * col2 FROM tab0
----
-225971
-56520
-91700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col1 * tab2.col0 col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT - cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - col0 * col0 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6281
SELECT - cor0.col1 * CAST( cor0.col1 AS SIGNED ) - + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6281
SELECT - cor0.col1 * CAST ( cor0.col1 AS INTEGER ) - + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * - ( - 61 ) + - col1 col2 FROM tab1 cor0
----
-3320
-3487
-5869
query I rowsort
SELECT ALL - col1 * - ( col1 ) + + col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT + col0 * ( col0 ) + + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - cor0.col0 + 51 AS col0 FROM tab2 AS cor0
----
-27
-28
44
query I rowsort
SELECT DISTINCT - col0 * + tab0.col0 FROM tab0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6288
SELECT col2 * CAST( col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
36480
4212
99840
skipif mysql # not compatible
query I rowsort label-6288
SELECT col2 * CAST ( col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT tab0.col2 + + 48 FROM tab0
----
130
49
81
query I rowsort
SELECT + col0 * - col1 + 59 AS col2 FROM tab2 cor0
----
-1284
-158
-4543
query I rowsort
SELECT - col1 + - col2 + ( - col2 ) FROM tab1 cor0
----
-124
-134
-205
query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab2, tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + col1 * - ( 44 ) * col0 AS col0 FROM tab2 AS cor0
----
-202488
-59092
-9548
query I rowsort
SELECT 45 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6297
SELECT - + col0 * - col1 + col0 * - col2 * CAST( NULL AS SIGNED ) + - 17 * col2 * col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6297
SELECT - + col0 * - col1 + col0 * - col2 * CAST ( NULL AS INTEGER ) + - 17 * col2 * col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 55 col0 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT 16 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT - tab2.col1 + + 54 - 56 AS col1 FROM tab2
----
-19
-33
-61
query I rowsort
SELECT DISTINCT + 6 + 61 * + col2 * - col0 FROM tab1 AS cor0
----
-222522
-468474
-9876
query I rowsort
SELECT DISTINCT - col1 + - 44 - + cor0.col2 * + col1 FROM tab2 AS cor0
----
-1637
-707
-912
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * - col1 FROM tab1 cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-6304
SELECT col0 DIV cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-6304
SELECT col0 / cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
33
36
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6305
SELECT ALL + CAST( NULL AS DECIMAL ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + CAST ( NULL AS REAL ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * ( col0 ) + + cor0.col2 col2 FROM tab0 AS cor0
----
2485
681
946
query I rowsort
SELECT col1 + 76 * 57 FROM tab2
----
4349
4363
4391
onlyif mysql # use DIV operator for integer division
query I rowsort label-6308
SELECT col2 DIV ( col1 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6308
SELECT col2 / ( col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col0 + - ( col2 ) + col1 AS col1 FROM tab2
----
11
111
58
query I rowsort
SELECT ALL + + cor0.col2 * col2 + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT - + 74 * col2 * - col1 FROM tab0 AS cor0
----
210012
552188
7178
query I rowsort
SELECT ALL - 66 * - col2 AS col2 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT - ( col2 ) + col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT - cor0.col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 + + cor0.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2b5ade85be5319861c59c5f0e150ea0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 57 * col2 col0 FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 AS col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT ALL 54 DIV + col1 AS col1 FROM tab1 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL 54 / + col1 AS col1 FROM tab1 AS cor0
----
2
4
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6319
SELECT DISTINCT + + col1 * - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT + + col1 * - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 13 * + cor0.col1 FROM tab0 AS cor0
----
-1118
-1183
-1261
query I rowsort
SELECT 85 * - 3 AS col2 FROM tab0
----
-255
-255
-255
query I rowsort
SELECT ALL - 48 + col2 AS col0 FROM tab2
----
-10
-21
-22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6323
SELECT DISTINCT CAST( - col1 * - col0 AS SIGNED ) + + col2 * - col2 FROM tab0
----
1375
3394
975
skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT CAST ( - col1 * - col0 AS INTEGER ) + + col2 * - col2 FROM tab0
----
1375
3394
975
query I rowsort
SELECT ALL - tab0.col2 * - col2 * - col0 + col1 AS col2 FROM tab0
----
-26050
-598345
62
query I rowsort
SELECT ALL + 16 + + ( col0 ) AS col0 FROM tab2
----
23
94
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + 13 * 28 AS col2 FROM tab2 AS cor0
----
364
query I rowsort
SELECT DISTINCT - + 94 AS col2 FROM tab2 AS cor0
----
-94
query I rowsort
SELECT ALL ( - col2 ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col0 col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 44 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to 19a2b9512177749564ba22ea2213fe3f
query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
54
query I rowsort
SELECT ALL + col2 * + 47 AS col2 FROM tab2 AS cor0
----
1222
1269
1786
query I rowsort
SELECT + 18 * - col1 FROM tab2 AS cor0
----
-1062
-306
-558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6335
SELECT ALL - CAST( NULL AS SIGNED ) + 55 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL - CAST ( NULL AS INTEGER ) + 55 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 92 AS col1 FROM tab0 cor0
----
92
92
92
query I rowsort
SELECT ALL - ( - col1 ) * + 30 FROM tab2 AS cor0
----
1770
510
930
query I rowsort
SELECT - col2 - - col2 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * cor0.col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6340
SELECT DISTINCT 15 * - cor0.col0 / CAST( NULL AS SIGNED ) + 16 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT 15 * - cor0.col0 / CAST ( NULL AS INTEGER ) + 16 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + 20 + col2 * - ( col1 ) FROM tab1 AS cor0
----
-1228
-1384
-550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - 9 + - col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
280
3472
952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 93 col1 FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT + ( col1 ) + col2 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + tab0.col2 * col2 + col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6348
SELECT 45 + tab0.col1 DIV + col1 + tab0.col2 FROM tab0
----
128
47
79
skipif mysql # not compatible
query I rowsort label-6348
SELECT 45 + tab0.col1 / + col1 + tab0.col2 FROM tab0
----
128
47
79
query I rowsort
SELECT - + col2 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - col2 * col0 * + ( cor0.col2 ) + + col0 FROM tab2 AS cor0
----
-113997
-5096
-52650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col1 ) * + col1 col1 FROM tab1 AS cor0
----
1000
17576
2197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6352
SELECT ALL + + col0 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL + + col0 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - + col1 * + ( 22 ) FROM tab2 cor0
----
-1298
-374
-682
onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT ALL - + col0 + - col1 DIV col1 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL - + col0 + - col1 / col1 FROM tab2 AS cor0
----
-79
-8
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6355
SELECT + col2 + - CAST( + col1 AS SIGNED ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
skipif mysql # not compatible
query I rowsort label-6355
SELECT + col2 + - CAST ( + col1 AS INTEGER ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - col0 + 30 FROM tab2 AS cor0
----
-48
-49
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6357
SELECT ALL + + col0 + + CAST( NULL AS SIGNED ) * ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL + + col0 + + CAST ( NULL AS INTEGER ) * ( + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 * ( 4 ) FROM tab1 AS cor0
----
216
228
384
query I rowsort
SELECT 35 + - col2 AS col0 FROM tab1 AS cor0
----
-19
-22
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6360
SELECT + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6360
SELECT + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT DISTINCT 10 DIV col0 AS col0 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6361
SELECT DISTINCT 10 / col0 AS col0 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT + 95 + - col2 * + col0 FROM tab2 AS cor0
----
-1933
-2907
-94
query I rowsort
SELECT - 5 - + 13 FROM tab0, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 4b8f1109b78a52c6ee572810d1973a42
query I rowsort
SELECT + col0 + ( - col2 + + tab1.col1 ) FROM tab1
----
-25
-3
17
query I rowsort
SELECT + 54 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - + col2 * 21 AS col2 FROM tab2 cor0
----
-546
-567
-798
onlyif mysql # use DIV operator for integer division
query I rowsort label-6367
SELECT col0 + + col0 DIV - col2 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-6367
SELECT col0 + + col0 / - col2 FROM tab1 AS cor0
----
3
63
80
query I rowsort
SELECT - 83 * col2 FROM tab2 cor0
----
-2158
-2241
-3154
query I rowsort
SELECT 28 * - col2 AS col0 FROM tab0 AS cor0
----
-2296
-28
-924
query I rowsort
SELECT - col0 * col1 + 52 FROM tab2
----
-1291
-165
-4550
query I rowsort
SELECT + 13 * + col2 AS col0 FROM tab2 AS cor0
----
338
351
494
query I rowsort
SELECT + col2 * + 88 AS col2 FROM tab0 AS cor0
----
2904
7216
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6373
SELECT col0 + col1 * + ( - col1 + + CAST( + col0 AS SIGNED ) * tab0.col0 ) FROM tab0
----
109451
42164
712619
skipif mysql # not compatible
query I rowsort label-6373
SELECT col0 + col1 * + ( - col1 + + CAST ( + col0 AS INTEGER ) * tab0.col0 ) FROM tab0
----
109451
42164
712619
query I rowsort
SELECT DISTINCT + 78 * - col1 FROM tab0
----
-6708
-7098
-7566
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6375
SELECT DISTINCT + col2 * col2 * CAST( 41 AS SIGNED ) FROM tab2 AS cor0
----
27716
29889
59204
skipif mysql # not compatible
query I rowsort label-6375
SELECT DISTINCT + col2 * col2 * CAST ( 41 AS INTEGER ) FROM tab2 AS cor0
----
27716
29889
59204
query I rowsort
SELECT - 73 * col1 AS col1 FROM tab1 AS cor0
----
-1898
-730
-949
query I rowsort
SELECT + - col1 + - col1 AS col0 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT 71 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 * - col2 col0 FROM tab1
----
-1134
-1197
-2016
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6380
SELECT DISTINCT tab0.col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab0 cor0, tab1, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT tab0.col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab0, tab0 cor0, tab1, tab1 AS cor1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6381
SELECT + col2 + CAST( ( - col1 ) AS SIGNED ) * + ( ( col1 ) ) FROM tab1 AS cor0
----
-43
-622
-73
skipif mysql # not compatible
query I rowsort label-6381
SELECT + col2 + CAST ( ( - col1 ) AS INTEGER ) * + ( ( col1 ) ) FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6382
SELECT DISTINCT - + col2 * CAST( - col2 + - col1 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
112320
136032
38190
skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT - + col2 * CAST ( - col2 + - col1 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
112320
136032
38190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6383
SELECT DISTINCT + col1 + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT + col1 + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 3 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
-3
query I rowsort
SELECT - 68 + + col1 AS col2 FROM tab2 AS cor0
----
-37
-51
-9
query I rowsort
SELECT ALL 53 + + col0 FROM tab2 AS cor0
----
131
132
60
query I rowsort
SELECT + - col1 + - col2 * ( col2 ) FROM tab0 cor0
----
-1175
-6815
-98
query I rowsort
SELECT ALL col2 - + 67 * + col0 FROM tab0
----
-1575
-2344
-5881
onlyif mysql # use DIV operator for integer division
query I rowsort label-6389
SELECT ( col1 ) DIV + col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6389
SELECT ( col1 ) / + col1 FROM tab0
----
1
1
1
query I rowsort
SELECT + ( - col2 ) * - tab0.col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 84 + col1 FROM tab2
----
101
115
143
query I rowsort
SELECT DISTINCT 22 * col0 + - ( + ( col0 ) ) + - 58 FROM tab2
----
1580
1601
89
query I rowsort
SELECT - col2 * col1 + col1 * col0 * col0 AS col2 FROM tab2
----
105451
357422
682
query I rowsort
SELECT - ( col0 + 30 ) * 60 AS col0 FROM tab2
----
-2220
-6480
-6540
query I rowsort
SELECT DISTINCT ( - tab1.col2 ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-54
-57
-96
query I rowsort
SELECT ALL tab1.col2 + - col1 * ( - col0 ) + + col2 FROM tab1
----
1232
186
754
query I rowsort
SELECT + 12 + col2 AS col0 FROM tab0 cor0
----
13
45
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6398
SELECT + col2 * col0 + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6398
SELECT + col2 * col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6399
SELECT col0 DIV - col2 col1 FROM tab0 cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6399
SELECT col0 / - col2 col1 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT - - 8 - + 98 * - col2 FROM tab2 AS cor0
----
2556
2654
3732
onlyif mysql # use DIV operator for integer division
query I rowsort label-6401
SELECT ( - 86 ) * + col0 + + cor0.col2 DIV - ( col1 ) FROM tab1 AS cor0
----
-260
-5509
-6887
skipif mysql # not compatible
query I rowsort label-6401
SELECT ( - 86 ) * + col0 + + cor0.col2 / - ( col1 ) FROM tab1 AS cor0
----
-260
-5509
-6887
query I rowsort
SELECT ( - col1 ) - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT col0 + col2 * col0 * - col2 - + tab2.col0 * tab2.col1 FROM tab2
----
-115340
-5313
-57252
query I rowsort
SELECT - col0 + + col0 + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + 17 - col0 FROM tab0 AS cor0
----
-18
-7
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-6406
SELECT DISTINCT - col0 - - col1 DIV - col1 FROM tab0 cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT - col0 - - col1 / - col1 FROM tab0 cor0
----
-25
-36
-90
query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - col2 + col2 + + col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 94 AS REAL ) * cor0.col1 AS col0 FROM tab2 cor0
----
1598
2914
5546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col1 FROM tab2 AS cor0
----
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6412
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 + + col1 / - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 + + col1 / - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT DISTINCT - + 71 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1
-23
0
skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT - + 71 / + col0 AS col1 FROM tab1 AS cor0
----
-1
-23
0
query I rowsort
SELECT ALL + - ( - 88 ) FROM tab1 AS cor0
----
88
88
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 15 col1 FROM tab1 AS cor0
----
-150
-195
-390
query I rowsort
SELECT ALL + col0 * cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-6417
SELECT + + CAST( col0 AS SIGNED ) + col2 DIV 44 AS col0 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6417
SELECT + + CAST ( col0 AS INTEGER ) + col2 / 44 AS col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 10 * + cor0.col1 col0 FROM tab1 AS cor0
----
100
130
260
query I rowsort
SELECT DISTINCT - col0 * col2 - 60 * col2 AS col2 FROM tab2 AS cor0
----
-1809
-3588
-5282
query I rowsort
SELECT - col1 * col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679
onlyif mysql # use DIV operator for integer division
query I rowsort label-6421
SELECT - ( cor0.col0 ) * col0 - col0 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-49
-6085
-6245
skipif mysql # not compatible
query I rowsort label-6421
SELECT - ( cor0.col0 ) * col0 - col0 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-49
-6085
-6245
query I rowsort
SELECT DISTINCT + 48 + col0 AS col0 FROM tab0 AS cor0
----
137
72
83
query I rowsort
SELECT DISTINCT col0 - - col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - ( + col1 ) + 86 AS col2 FROM tab2 cor0
----
27
55
69
query I rowsort
SELECT ALL - 87 * col2 * ( col2 ) FROM tab1 AS cor0
----
-253692
-282663
-801792
query I rowsort
SELECT ALL - col0 + + col0 * col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL - - 9 * + col2 - col0 FROM tab2 cor0
----
156
236
263
query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT + 76 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL + col0 * + col2 + col0 - - 43 * cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
-126005
-7931
-85098
onlyif mysql # use DIV operator for integer division
query I rowsort label-6431
SELECT ALL + col1 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + col1 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT ( cor0.col0 ) + col1 * - 52 AS col1 FROM tab2 AS cor0
----
-1605
-2990
-805
query I rowsort
SELECT + 29 * col0 AS col2 FROM tab2
----
203
2262
2291
query I rowsort
SELECT col0 + 93 * - tab2.col0 FROM tab2
----
-644
-7176
-7268
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT col1 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-6437
SELECT col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6437
SELECT col1 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + - cor0.col1 * - 29 FROM tab0 AS cor0
----
2461
2557
2812
query I rowsort
SELECT - col0 * - col2 * col0 + - col2 * ( 1 ) + - col1 AS col0 FROM tab1 AS cor0
----
233405
406
614291
query I rowsort
SELECT ALL ( - tab1.col1 ) FROM tab1
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6441
SELECT + + cor0.col1 * 18 + + col2 + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6441
SELECT + + cor0.col1 * 18 + + col2 + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 + col0 * cor0.col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT ALL - + col0 + 90 FROM tab1 AS cor0
----
10
26
87
query I rowsort
SELECT col0 * - col2 * + col1 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - + col1 * - 99 AS col2 FROM tab1 AS cor0
----
1287
2574
990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6446
SELECT - col1 + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-172
-182
-194
skipif mysql # not compatible
query I rowsort label-6446
SELECT - col1 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT 17 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col0 FROM tab0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL - 95 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT DISTINCT 72 * - 99 FROM tab2, tab2 cor0
----
-7128
query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT ALL - col0 DIV - col1 + col0 * + col2 FROM tab1 cor0
----
162
3654
7686
skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - col0 / - col1 + col0 * + col2 FROM tab1 cor0
----
162
3654
7686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6454
SELECT ALL + + col1 + + CAST( - col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL + + col1 + + CAST ( - col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL col1 + - 67 + + col1 FROM tab2
----
-33
-5
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT DISTINCT col1 DIV 11 + + col0 AS col0 FROM tab1 AS cor0
----
5
64
81
skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT col1 / 11 + + col0 AS col0 FROM tab1 AS cor0
----
5
64
81
query I rowsort
SELECT cor0.col2 + col0 * 2 AS col1 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT DISTINCT col2 * cor0.col1 + 72 FROM tab0 AS cor0
----
169
2910
7534
query I rowsort
SELECT ALL + cor0.col2 + 12 + col1 FROM tab2 AS cor0
----
67
70
97
query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to aeb56f097f17f262600266df7fcf8652
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6462
SELECT ALL + - col2 * + col0 + col0 * + CAST( 14 AS SIGNED ) FROM tab2 AS cor0
----
-1896
-91
-936
skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + - col2 * + col0 + col0 * + CAST ( 14 AS INTEGER ) FROM tab2 AS cor0
----
-1896
-91
-936
query I rowsort
SELECT ALL - col1 - col2 * col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL + 17 FROM tab2
----
17
17
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * - 86 + col1 col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + col0 * 5 + col1 AS col2 FROM tab2 cor0
----
412
449
66
query I rowsort
SELECT DISTINCT + 3 - - ( col1 ) * cor0.col1 FROM tab2 AS cor0
----
292
3484
964
query I rowsort
SELECT + ( col2 ) * col1 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + + col1 * 36 AS col2 FROM tab0 cor0
----
3096
3276
3492
query I rowsort
SELECT + + ( + col0 ) * col0 + + col2 AS col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT - ( 40 ) * col2 AS col1 FROM tab1 AS cor0
----
-2160
-2280
-3840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6472
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col0 + + col2 * - col2 * col1 AS col0 FROM tab2 cor0
----
-22592
-24469
-39806
query I rowsort
SELECT DISTINCT + - ( - col1 ) * + col0 + - ( col0 ) * + cor0.col1 AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ALL + 47 + col0 AS col2 FROM tab2 AS cor0
----
125
126
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6477
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 32 * col1 + col1 FROM tab2 AS cor0
----
-1829
-527
-961
query I rowsort
SELECT ALL 31 * col1 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT DISTINCT + col2 * + col0 + 27 AS col2 FROM tab2 cor0
----
2055
216
3029
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col0 FROM tab2 AS cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT + 52 * cor0.col0 FROM tab2 AS cor0
----
364
4056
4108
query I rowsort
SELECT 53 + col1 AS col1 FROM tab1 AS cor0
----
63
66
79
query I rowsort
SELECT + + col1 * - col2 * col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - - cor0.col1 * col1 * 54 FROM tab1 AS cor0
----
36504
5400
9126
query I rowsort
SELECT col0 * + col0 + 48 FROM tab2 AS cor0
----
6132
6289
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT 10 FROM tab1, tab1 cor0, tab2 AS cor1
----
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6489
SELECT ALL - tab1.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - tab1.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6491
SELECT + CAST( ( col0 ) AS SIGNED ) + col0 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-6491
SELECT + CAST ( ( col0 ) AS INTEGER ) + col0 FROM tab1 AS cor0
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 0 * ( col0 ) + col0 col0 FROM tab2
----
7
78
79
query I rowsort
SELECT - 34 AS col0 FROM tab1 AS cor0
----
-34
-34
-34
query I rowsort
SELECT + col0 + 72 + tab0.col2 * - col1 FROM tab0
----
-2742
-7301
10
query I rowsort
SELECT - col0 + col2 + - col2 * - col0 FROM tab0
----
1
7291
801
query I rowsort
SELECT DISTINCT - 87 + - 42 AS col0 FROM tab0
----
-129
query I rowsort
SELECT ( 62 ) * + tab2.col2 + + 87 AS col1 FROM tab2
----
1699
1761
2443
query I rowsort
SELECT + 61 + col2 AS col1 FROM tab2
----
87
88
99
query I rowsort
SELECT DISTINCT 45 * 64 FROM tab0
----
2880
query I rowsort
SELECT - - 22 * + col0 FROM tab1 AS cor0
----
1408
1760
66
query I rowsort
SELECT ALL col0 * - 63 AS col0 FROM tab1
----
-189
-4032
-5040
query I rowsort
SELECT + tab1.col2 * 49 FROM tab1
----
2646
2793
4704
query I rowsort
SELECT col0 * 84 * + tab2.col1 FROM tab2
----
112812
18228
386568
query I rowsort
SELECT + col1 + - col1 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
-10965
-25916
-90447
query I rowsort
SELECT col1 * + 3 AS col1 FROM tab0 AS cor0
----
258
273
291
onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT + cor0.col2 DIV + col0 AS col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6506
SELECT + cor0.col2 / + col0 AS col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT ALL - tab2.col0 * col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6508
SELECT - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6508
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 67 col1 FROM tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT DISTINCT + col1 * - 91 AS col0 FROM tab2 AS cor0
----
-1547
-2821
-5369
query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col0 * col2 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ( col1 ) * col2 + col1 * + 77 FROM tab2 AS cor0
----
1955
3224
6077
query I rowsort
SELECT ALL + ( col1 ) + + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + + col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT 35 FROM tab1, tab0 cor0
----
35
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6519
SELECT ALL - col0 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL - col0 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 5 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT + col0 + col1 + + col0 AS col0 FROM tab0
----
134
167
269
query I rowsort
SELECT ALL - - 97 AS col2 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT - - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT 74 AS col0 FROM tab2 cor0
----
74
74
74
query I rowsort
SELECT 16 + col2 + cor0.col0 FROM tab0 AS cor0
----
187
52
73
query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT + 69 + col1 AS col1 FROM tab2 AS cor0
----
100
128
86
query I rowsort
SELECT cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT cor1.col0 * + cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b430aacab80c9bce1e28006eb9a0312c
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 * col0 * - col1 col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - tab1.col2 - col2 AS col0 FROM tab1
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-6534
SELECT tab1.col1 - - col0 DIV - ( + col2 ) AS col0 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-6534
SELECT tab1.col1 - - col0 / - ( + col2 ) AS col0 FROM tab1
----
13
26
9
query I rowsort
SELECT + 32 + col2 AS col0 FROM tab2
----
58
59
70
query I rowsort
SELECT ALL + 23 * - col1 * col2 FROM tab2
----
-14858
-19251
-35282
query I rowsort
SELECT - 57 + ( cor1.col0 + + 69 ) * 72 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e8681c02f7bc0ec486f55f536640a5c5
query I rowsort
SELECT DISTINCT + ( + col1 ) * + ( col0 + + col0 * col2 ) FROM tab2
----
124254
52377
6076
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + - ( + tab1.col2 ) col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT - 24 - + col0 AS col0 FROM tab1
----
-104
-27
-88
query I rowsort
SELECT + 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT + col2 + + col1 * - col2 * col0 FROM tab1 cor0
----
-36423
-4158
-99744
query I rowsort
SELECT DISTINCT - 20 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-20
query I rowsort
SELECT ALL + + cor0.col0 + ( - col0 * - col1 + + 34 ) FROM tab1 AS cor0
----
115
1154
738
query I rowsort
SELECT DISTINCT + col2 * ( + col2 * col1 ) FROM tab1 cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-6546
SELECT ALL + col0 + col2 DIV col0 FROM tab1 cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + col0 + col2 / col0 FROM tab1 cor0
----
21
64
81
query I rowsort
SELECT DISTINCT - col1 + - ( 25 ) FROM tab2 AS cor0
----
-42
-56
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col0 * - col1 AS REAL ) - + 31 * + col1 * - col1 col1 FROM tab0
----
231340
264810
295074
query I rowsort
SELECT ALL col2 + ( + col1 * ( col1 ) ) AS col1 FROM tab1
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6550
SELECT ALL - CAST( - col1 AS SIGNED ) * - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - CAST ( - col1 AS INTEGER ) * - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + 76 FROM tab1
----
102
86
89
query I rowsort
SELECT ALL 31 + col1 AS col0 FROM tab0
----
117
122
128
query I rowsort
SELECT ALL col1 + - 97 FROM tab1
----
-71
-84
-87
query I rowsort
SELECT DISTINCT 7 * 93 + col2 FROM tab2 AS cor0
----
677
678
689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6555
SELECT CAST( NULL AS DECIMAL ) + - col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6555
SELECT CAST ( NULL AS REAL ) + - col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 14 * col1 * + col0 AS col1 FROM tab2 AS cor0
----
-18802
-3038
-64428
query I rowsort
SELECT DISTINCT + - 73 FROM tab1 AS cor0
----
-73
query I rowsort
SELECT ALL col1 + + col2 * + col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL - 37 * cor0.col2 AS col1 FROM tab0 cor0
----
-1221
-3034
-37
query I rowsort
SELECT 80 AS col2 FROM tab2 cor0
----
80
80
80
query I rowsort
SELECT DISTINCT - - col2 + - col0 + 66 AS col2 FROM tab0 AS cor0
----
32
59
75
query I rowsort
SELECT ALL - col2 + col0 + col1 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT DISTINCT - - col0 + cor0.col0 + 59 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
3192
3491
5824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 + col2 col2 FROM tab2 AS cor0
----
58
59
70
query I rowsort
SELECT ALL 5 AS col1 FROM tab1 AS cor0
----
5
5
5
query I rowsort
SELECT DISTINCT - 31 * col2 AS col2 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT ALL - col1 * + col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab2 cor0, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT DISTINCT + - col1 DIV + col0 - col2 FROM tab0 cor0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT + - col1 / + col0 - col2 FROM tab0 cor0
----
-3
-36
-83
query I rowsort
SELECT - - ( col1 ) * + col1 + + 68 AS col2 FROM tab1 AS cor0
----
168
237
744
query I rowsort
SELECT - - col1 + col0 * + col2 AS col2 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + + col2 + + cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT 85 + + cor0.col1 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT DISTINCT - col0 + col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT ALL col2 DIV + col0 + col0 - 1 FROM tab0 cor0
----
24
34
88
skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL col2 / + col0 + col0 - 1 FROM tab0 cor0
----
24
34
88
query I rowsort
SELECT cor0.col1 * - cor0.col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT - - 2 * - 79 + - col0 AS col1 FROM tab2 cor0
----
-165
-236
-237
onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT ALL + + ( col1 ) DIV - col0 + col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL + + ( col1 ) / - col0 + col0 FROM tab2 AS cor0
----
3
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6580
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) - - col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT - - CAST ( NULL AS REAL ) - - col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - 96 * + col0 + - col1 * - 22 FROM tab0 AS cor0
----
-1226
-412
-6542
query I rowsort
SELECT DISTINCT col0 + - 30 + 50 * tab0.col1 * + 63 FROM tab0
----
270894
286709
305555
query I rowsort
SELECT - - col2 * - cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + tab2.col1 * col2 * - col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col1 * col1 + - ( col2 ) * cor0.col0 FROM tab2 cor0
----
-2713
1453
772
query I rowsort
SELECT ALL + 8 * + 28 AS col1 FROM tab0
----
224
224
224
query I rowsort
SELECT ALL + 93 * - 48 AS col1 FROM tab2
----
-4464
-4464
-4464
query I rowsort
SELECT ALL + 30 + col1 AS col0 FROM tab1
----
40
43
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-6589
SELECT - col1 - col1 * 85 DIV cor0.col2 FROM tab0 AS cor0
----
-185
-307
-8342
skipif mysql # not compatible
query I rowsort label-6589
SELECT - col1 - col1 * 85 / cor0.col2 FROM tab0 AS cor0
----
-185
-307
-8342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6590
SELECT col0 + - CAST( NULL AS SIGNED ) * 0 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6590
SELECT col0 + - CAST ( NULL AS INTEGER ) * 0 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + col1 + + ( 32 ) AS col0 FROM tab0
----
142
164
212
onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT ALL ( col2 ) * col2 DIV col1 + col1 FROM tab1
----
138
334
721
skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL ( col2 ) * col2 / col1 + col1 FROM tab1
----
138
334
721
query I rowsort
SELECT col1 + + col1 + col2 AS col0 FROM tab1
----
106
122
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col1 + - 84 col1 FROM tab1
----
16
592
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT ALL + cor0.col0 DIV 18 AS col1 FROM tab2 AS cor0
----
0
4
4
skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + cor0.col0 / 18 AS col1 FROM tab2 AS cor0
----
0
4
4
query I rowsort
SELECT cor0.col0 * - 1 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col1 * + col2 + + cor0.col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col0 * ( col2 ) + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6600
SELECT DISTINCT - col2 + - CAST( + col0 * + col1 AS SIGNED ) FROM tab1 AS cor0
----
-1136
-132
-697
skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT - col2 + - CAST ( + col0 * + col1 AS INTEGER ) FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - col0 + + 69 AS col0 FROM tab0 AS cor0
----
-20
34
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - ( col0 ) * + cor0.col0 col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT + col2 + 63 AS col2 FROM tab1 cor0
----
117
120
159
onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT + col0 DIV - 89 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6604
SELECT + col0 / - 89 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6606
SELECT + + col2 * CAST( NULL AS SIGNED ) * - 39 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6606
SELECT + + col2 * CAST ( NULL AS INTEGER ) * - 39 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6607
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6608
SELECT DISTINCT - cor0.col2 + CAST( + 83 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1959
2904
7305
skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - cor0.col2 + CAST ( + 83 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1959
2904
7305
query I rowsort
SELECT ALL - cor0.col0 * + 95 FROM tab1 AS cor0
----
-285
-6080
-7600
query I rowsort
SELECT + cor0.col1 * 41 AS col2 FROM tab1 AS cor0
----
1066
410
533
query I rowsort
SELECT + tab0.col0 * - col1 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col1 - col2 * col1 FROM tab0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6613
SELECT - col2 DIV + 9 AS col2 FROM tab2 AS cor0
----
-2
-3
-4
skipif mysql # not compatible
query I rowsort label-6613
SELECT - col2 / + 9 AS col2 FROM tab2 AS cor0
----
-2
-3
-4
query I rowsort
SELECT - col1 * - ( ( - col2 ) ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col1 * col0 + + tab0.col1 AS col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - 18 * ( col1 ) - - col1 * tab1.col1 FROM tab1
----
-65
-80
208
onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT 16 + col1 DIV col0 FROM tab1 AS cor0
----
16
16
24
skipif mysql # not compatible
query I rowsort label-6617
SELECT 16 + col1 / col0 FROM tab1 AS cor0
----
16
16
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6618
SELECT + col1 DIV 70 + col1 col2 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6618
SELECT + col1 / 70 + col1 col2 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * col0 col0 FROM tab1 AS cor0
----
-156
-3328
-4160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + col0 col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT 37 * col1 + - 19 - - cor0.col2 FROM tab2 AS cor0
----
1155
2190
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT DISTINCT + col1 DIV col0 + - 19 FROM tab0 AS cor0
----
-16
-17
-18
skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT + col1 / col0 + - 19 FROM tab0 AS cor0
----
-16
-17
-18
query I rowsort
SELECT ALL + col2 + col1 - - col0 AS col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT col2 * col2 * + col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + ( col0 ) + ( col2 ) * cor0.col2 AS col2 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT + 8 + cor0.col2 * - 54 AS col2 FROM tab2 AS cor0
----
-1396
-1450
-2044
query I rowsort
SELECT cor0.col2 * + ( - 63 ) + col0 * 94 FROM tab0 AS cor0
----
177
3200
3227
query I rowsort
SELECT + col1 * + col0 - + col2 AS col1 FROM tab2
----
1305
190
4576
query I rowsort
SELECT ALL - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 * cor0.col0 + - col0 col0 FROM tab1 cor0
----
13440
2025
6336
query I rowsort
SELECT ALL + cor0.col0 * col0 + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-6633
SELECT - cor0.col0 DIV col0 + + col1 col1 FROM tab2 AS cor0
----
16
30
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6633
SELECT - cor0.col0 / col0 + + col1 col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT col2 + + cor0.col2 * + col0 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col2 + - col0 + col1 FROM tab0 cor0
----
-80
29
61
query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT - col1 * + col0 + + col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT col0 DIV col2 + col2 AS col0 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-6639
SELECT col0 / col2 + col2 AS col0 FROM tab1 AS cor0
----
54
58
96
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT - tab2.col1 * + col1 AS col0 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT col1 - - cor0.col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + + col1 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - + col1 col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - col1 + - col2 + - tab0.col1 FROM tab0
----
-195
-205
-264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - tab0.col0 col1 FROM tab0
----
0
query I rowsort
SELECT + col1 * - col2 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab1 AS cor0
----
2
query I rowsort
SELECT + 35 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT col0 * tab2.col2 + col0 * tab2.col1 AS col0 FROM tab2
----
406
4345
6630
query I rowsort
SELECT DISTINCT tab1.col1 * col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL tab0.col0 * tab0.col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + tab2.col0 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - col1
----
query I rowsort
SELECT + col0 + + col1 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col0
----
query I rowsort
SELECT DISTINCT + tab0.col1 * - col2 * col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----
query I rowsort
SELECT + col2 * col1 + col2 * + col0 * - col2 + - tab1.col2 AS col1 FROM tab1
----
-207423
-736128
-7398
query I rowsort
SELECT + col2 + tab0.col1 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT 37 AS col0 FROM tab1
----
37
37
37
query I rowsort
SELECT DISTINCT col1 + - col2 * tab2.col2 AS col2 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT ALL - col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + col1 + + col1 * 43 FROM tab1 AS cor0
----
1144
440
572
query I rowsort
SELECT DISTINCT - 96 - - 41 FROM tab0, tab2 cor0, tab1 AS cor1
----
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT ALL + col2 + col0 * col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + col2 + col0 * col2 / - col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT - col2 + col0 DIV + col2 FROM tab1
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-6668
SELECT - col2 + col0 / + col2 FROM tab1
----
-54
-56
-96
query I rowsort
SELECT DISTINCT col2 + col1 + col2 AS col0 FROM tab2
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT ALL - col2 DIV + col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL - col2 / + col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT col2 * - col1 + + col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT col2 * - col0 + tab0.col2 AS col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ALL col0 * + col2 + - col2 AS col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT col2 * + tab1.col0 FROM tab1
----
162
3648
7680
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col0 AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6676
SELECT col2 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6676
SELECT col2 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT + col0 + col1 DIV col1 + + col2 * - col1 AS col0 FROM tab0
----
-2813
-61
-7372
skipif mysql # not compatible
query I rowsort label-6677
SELECT + col0 + col1 / col1 + + col2 * - col1 AS col0 FROM tab0
----
-2813
-61
-7372
onlyif mysql # use DIV operator for integer division
query I rowsort label-6678
SELECT DISTINCT col2 + - col0 DIV col2 AS col0 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-6678
SELECT DISTINCT col2 + - col0 / col2 AS col0 FROM tab1
----
54
56
96
query I rowsort
SELECT ALL tab2.col1 * - col0 + col0 * - col0 FROM tab2
----
-10686
-266
-7584
query I rowsort
SELECT DISTINCT + tab1.col2 * - col2 AS col1 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT tab0.col1 + + col0 * + col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT col1 * - col2 + col0 * + col0 * col1 AS col0 FROM tab2
----
105451
357422
682
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + + col0 > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 * col1 col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - tab0.col2 * tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + tab1.col2 / - col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT - col0 * tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - col0 * col2 + col1 * + col0 * col0 AS col2 FROM tab1
----
37312
72
75520
onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT - col0 DIV col1 + + col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6689
SELECT - col0 / col1 + + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT tab0.col2 + col1 * + col2 FROM tab0 WHERE ( - col2 ) <= + col0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 * col1 col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col0 - + col2 FROM tab2
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT + col0 - tab0.col1 DIV col2 AS col1 FROM tab0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-6693
SELECT + col0 - tab0.col1 / col2 AS col1 FROM tab0
----
-62
22
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 * + ( + cor0.col2 ) col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6695
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6695
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + - cor0.col2 * + col1 + - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT - + 11 FROM tab1 cor0
----
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * - tab2.col0 col2 FROM tab2
----
-217
-2418
-2449
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col0 FROM tab1
----
49
query I rowsort
SELECT + + ( + cor0.col0 ) * ( + col1 ) + + col0 * col0 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT + col1 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT - col1 * + cor0.col2 * col1 + - col0 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
-243300
-671833
-9409
query I rowsort
SELECT ALL - + col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL col1 + + tab1.col0 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT - col2 + - cor0.col2 * + col2 FROM tab0 cor0
----
-1122
-2
-6806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6706
SELECT - cor0.col1 * - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6706
SELECT - cor0.col1 * - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( tab2.col0 ) + col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - 77 * col2 FROM tab2 AS cor0
----
-2002
-2079
-2926
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * col0 col0 FROM tab1 AS cor0
----
-2112
-2640
-99
query I rowsort
SELECT DISTINCT + + 24 * + 93 FROM tab2 AS cor0
----
2232
query I rowsort
SELECT 39 AS col0 FROM tab2 cor0
----
39
39
39
query I rowsort
SELECT ALL ( + col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col0 ) - - col0 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + - 45 AS col0 FROM tab2 AS cor0
----
-38
33
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6715
SELECT ALL + + ( col2 ) * col1 + - col2 + col1 DIV col0 AS col0 FROM tab1 cor0
----
1152
1358
513
skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL + + ( col2 ) * col1 + - col2 + col1 / col0 AS col0 FROM tab1 cor0
----
1152
1358
513
query I rowsort
SELECT - + col0 + - 91 FROM tab1 AS cor0
----
-155
-171
-94
query I rowsort
SELECT DISTINCT - - 47 AS col2 FROM tab1 cor0
----
47
query I rowsort
SELECT DISTINCT - 75 * 33 FROM tab1 AS cor0
----
-2475
query I rowsort
SELECT col2 * col1 + col1 AS col2 FROM tab0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-6720
SELECT col2 DIV + 46 + + tab1.col1 FROM tab1
----
11
15
27
skipif mysql # not compatible
query I rowsort label-6720
SELECT col2 / + 46 + + tab1.col1 FROM tab1
----
11
15
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 38 ) col2 FROM tab1 cor0
----
-38
-38
-38
query I rowsort
SELECT - tab0.col0 * + 37 - col1 AS col0 FROM tab0
----
-1392
-3384
-974
query I rowsort
SELECT tab1.col0 + - ( + ( + col2 ) ) * col1 * col2 AS col2 FROM tab1
----
-119728
-32426
-75813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6724
SELECT - CAST( - col1 AS SIGNED ) * - col0 * + 14 FROM tab0
----
-113386
-28896
-47530
skipif mysql # not compatible
query I rowsort label-6724
SELECT - CAST ( - col1 AS INTEGER ) * - col0 * + 14 FROM tab0
----
-113386
-28896
-47530
query I rowsort
SELECT DISTINCT - 67 + + col2 + + col0 * + 0 * ( col2 ) AS col1 FROM tab0
----
-34
-66
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT - col1 DIV col2 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6726
SELECT - col1 / col2 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - - cor0.col1 * - col1 - - col0 * 42 * - cor0.col1 FROM tab1 AS cor0
----
-26980
-3952
-43849
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * col2 + 77 AS col0 FROM tab2 AS cor0
----
-112
-1951
-2925
query I rowsort
SELECT + cor0.col2 + cor0.col2 - - cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
270
3762
7872
query I rowsort
SELECT - cor0.col2 * tab0.col2 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 75e7d40d19474f7f484a05f0e7982ada
query I rowsort
SELECT ALL 40 * col1 AS col1 FROM tab1
----
1040
400
520
query I rowsort
SELECT col2 * + col2 + + col0 - col0 FROM tab2 cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 - - col2 col1 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT + col2 + col0 + col1 FROM tab2 cor0
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col2 FROM tab1
----
64
64
64
query I rowsort
SELECT DISTINCT col1 * 85 * col2 FROM tab2
----
130390
54910
71145
query I rowsort
SELECT ALL - tab2.col2 * - tab2.col2 * col2 AS col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT + col0 - - col2 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - 73 * + col2 - col1 * + col0 FROM tab1 cor0
----
-4020
-4801
-8048
query I rowsort
SELECT - 54 + + col0 FROM tab1 AS cor0
----
-51
10
26
query I rowsort
SELECT + cor0.col1 - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT + col2 + col1 - + col2 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + 64 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT DISTINCT col0 * ( 74 ) AS col2 FROM tab2
----
518
5772
5846
query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab1, tab1 AS cor0
----
67
query I rowsort
SELECT ALL + col2 * + 90 AS col0 FROM tab1 AS cor0
----
4860
5130
8640
query I rowsort
SELECT ALL + col0 * ( col0 * cor0.col1 ) FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - col0 * col1 + 57 FROM tab0 AS cor0
----
-2007
-3338
-8042
query I rowsort
SELECT tab1.col0 * 27 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 38509f5495f543f696c509446f5cefe4
query I rowsort
SELECT + col1 * col1 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1079
-470
-728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * - cor0.col2 col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + col2 - - col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - 86 FROM tab1
----
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT + + 92 DIV + 31 AS col2 FROM tab2 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-6755
SELECT + + 92 / + 31 AS col2 FROM tab2 AS cor0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * - col0 col0 FROM tab1 AS cor0
----
-1856
-2320
-87
query I rowsort
SELECT - 59 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703
query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab1, tab2 AS cor0
----
69
query I rowsort
SELECT ALL - cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col1 * - 5 FROM tab1 AS cor0
----
-130
-50
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + col2 col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL col2 + + 23 AS col0 FROM tab0 AS cor0
----
105
24
56
query I rowsort
SELECT DISTINCT + + 26 FROM tab2 AS cor0
----
26
query I rowsort
SELECT ALL col0 * + 49 FROM tab2 AS cor0
----
343
3822
3871
query I rowsort
SELECT ALL + 81 * + col1 + + col2 FROM tab2 cor0
----
1415
2538
4805
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 * - 64 + - tab2.col2 col1 FROM tab2
----
421
4966
5018
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6767
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 11 ) col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
onlyif mysql # use DIV operator for integer division
query I rowsort label-6769
SELECT col1 + ( col0 ) DIV + col1 col1 FROM tab2
----
21
31
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6769
SELECT col1 + ( col0 ) / + col1 col1 FROM tab2
----
21
31
60
query I rowsort
SELECT + 75 FROM tab1, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT + + col2 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT + 58 * 17 + + cor0.col1 FROM tab1 AS cor0
----
1012
996
999
query I rowsort
SELECT ALL + - ( col0 ) + col2 AS col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT + col1 * col1 + col2 FROM tab1 cor0
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * col2 col0 FROM tab0 AS cor0
----
-2541
-6314
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6776
SELECT - + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6776
SELECT - + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + ( col1 ) * col2 + 99 FROM tab1 AS cor0
----
-1149
-1305
-471
query I rowsort
SELECT DISTINCT 49 FROM tab1 AS cor0
----
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6779
SELECT ALL CAST( - col1 AS SIGNED ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-6779
SELECT ALL CAST ( - col1 AS INTEGER ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT col0 * ( - col0 ) * + col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT - col2 * 18 AS col0 FROM tab2 AS cor0
----
-468
-486
-684
query I rowsort
SELECT ALL - ( + ( col0 ) ) * col2 + - col2 * + col2 FROM tab2 AS cor0
----
-2704
-4446
-918
query I rowsort
SELECT ALL 18 + col2 * col0 - - col2 FROM tab1
----
234
3723
7794
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 70 col1 FROM tab1 AS cor0
----
-70
-70
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col1 * + col1 col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT + - cor0.col0 + + col2 AS col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT - 50 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT - + 52 FROM tab1 AS cor0
----
-52
-52
-52
query I rowsort
SELECT ( col1 ) * + col0 - - col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-6790
SELECT ALL - col0 DIV + ( col1 ) AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-6790
SELECT ALL - col0 / + ( col1 ) AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL col0 + ( col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + + col0 + col1 * - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6793
SELECT col2 * + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-6793
SELECT col2 * + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + + col0 * cor0.col2 * + col1 + + col2 AS col0 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT ALL 84 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT DISTINCT + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - 64 FROM tab2, tab2 AS cor0
----
-64
query I rowsort
SELECT DISTINCT - 2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT DISTINCT + + col1 + col2 DIV 3 FROM tab0 AS cor0
----
118
97
skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT + + col1 + col2 / 3 FROM tab0 AS cor0
----
118
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT - + col1 * - ( + col1 ) - col2 DIV + col0 FROM tab0 AS cor0
----
7395
8281
9409
skipif mysql # not compatible
query I rowsort label-6800
SELECT - + col1 * - ( + col1 ) - col2 / + col0 FROM tab0 AS cor0
----
7395
8281
9409
query I rowsort
SELECT ALL col0 + cor0.col0 * - 78 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT - 21 * - 47 * + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c284f6af54e61c654246fce0ed77de5b
query I rowsort
SELECT - col2 * col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + - col1 * ( col0 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT DISTINCT col0 DIV - 97 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT col0 / - 97 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col2 * - ( - col1 + col2 ) FROM tab1 AS cor0
----
-1512
-2679
-7968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6807
SELECT DISTINCT col1 * CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT col1 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col2 * - col0 + - col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-15579
-8188
-9444
query I rowsort
SELECT DISTINCT + col2 * 26 + cor0.col2 * col1 FROM tab0 AS cor0
----
123
3696
9594
query I rowsort
SELECT + cor0.col1 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + + col2 * - col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 * - 56 FROM tab0
----
-1344
-1960
-4984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT - - col1 + col2 * + col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT DISTINCT - col2 DIV - col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT - col2 / - col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT - col1 + - col2 * 11 * + col1 FROM tab0 AS cor0
----
-1164
-31304
-82173
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL 89 + col1 * 37 FROM tab2 AS cor0
----
1236
2272
718
query I rowsort
SELECT ALL cor0.col2 * col0 + + col0 * - 94 AS col1 FROM tab0 AS cor0
----
-1068
-1464
-3255
query I rowsort
SELECT + col0 + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT - 74 * - col2 FROM tab0 AS cor0
----
2442
6068
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-6824
SELECT ALL col0 + - col1 DIV + ( - col0 + - col0 ) FROM tab2 AS cor0
----
78
79
9
skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL col0 + - col1 / + ( - col0 + - col0 ) FROM tab2 AS cor0
----
78
79
9
query I rowsort
SELECT tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT col0 + tab2.col1 * - col2 * 34 AS col1 FROM tab2
----
-21885
-28451
-52078
query I rowsort
SELECT DISTINCT tab0.col0 * col0 * + tab0.col0 FROM tab0
----
13824
42875
704969
query I rowsort
SELECT - col2 + 21 * cor0.col1 FROM tab0 AS cor0
----
1773
1829
2036
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ( col1 * + tab1.col1 ) FROM tab1
----
100
169
676
query I rowsort
SELECT ( + col2 ) * + 37 AS col2 FROM tab0 AS cor0
----
1221
3034
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col1 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT + - cor0.col2 * col0 + col2 * + col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col0 + ( cor0.col2 * - col1 ) FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
80
query I rowsort
SELECT ALL 12 AS col2 FROM tab2 cor0
----
12
12
12
query I rowsort
SELECT ALL - col1 * + col1 + + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-3559
-368
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-6838
SELECT cor0.col2 + col2 DIV + ( 77 ) FROM tab1 AS cor0
----
54
57
97
skipif mysql # not compatible
query I rowsort label-6838
SELECT cor0.col2 + col2 / + ( 77 ) FROM tab1 AS cor0
----
54
57
97
query I rowsort
SELECT - - col1 + col2 * col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT - - col1 * - col2 + 55 FROM tab2 AS cor0
----
-1479
-591
-782
query I rowsort
SELECT DISTINCT + + 6 FROM tab2, tab1 AS cor0
----
6
query I rowsort
SELECT ALL col0 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6843
SELECT - col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6843
SELECT - col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * col2 + + col2 * + col0 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT col1 * ( 6 ) FROM tab0 cor0
----
516
546
582
query I rowsort
SELECT DISTINCT + col1 * - 7 - - 81 AS col2 FROM tab1 AS cor0
----
-10
-101
11
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
60
query I rowsort
SELECT ALL col0 + col2 * cor0.col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + cor0.col0 + 45 * - cor0.col1 FROM tab0 AS cor0
----
-3846
-4006
-4330
onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT - col0 DIV - 9 FROM tab1 AS cor0
----
0
7
8
skipif mysql # not compatible
query I rowsort label-6850
SELECT - col0 / - 9 FROM tab1 AS cor0
----
0
7
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6851
SELECT + + col0 DIV 67 AS col2 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6851
SELECT + + col0 / 67 AS col2 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT + ( - 56 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT + 80 + + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-3568
-7600
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col1 ) * + col0 col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT + 66 + - col1 FROM tab2 AS cor0
----
35
49
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6856
SELECT - + CAST( - 4 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4
4
4
skipif mysql # not compatible
query I rowsort label-6856
SELECT - + CAST ( - 4 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL + 9 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
query I rowsort
SELECT DISTINCT 52 AS col2 FROM tab0 AS cor0
----
52
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
onlyif mysql # use DIV operator for integer division
query I rowsort label-6861
SELECT DISTINCT + - cor0.col2 * col0 + col1 DIV col1 + + col1 FROM tab0 AS cor0
----
-705
-7206
63
skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT + - cor0.col2 * col0 + col1 / col1 + + col1 FROM tab0 AS cor0
----
-705
-7206
63
query I rowsort
SELECT + + col2 * - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + + 46 AS col2 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT ALL - + 52 AS col0 FROM tab2 AS cor0
----
-52
-52
-52
query I rowsort
SELECT ALL ( col2 ) * + col2 + - col0 * col2 * col0 FROM tab0 AS cor0
----
-1224
-17919
-642798
query I rowsort
SELECT DISTINCT tab1.col2 * 9 AS col0 FROM tab1
----
486
513
864
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT 46 - 70 FROM tab0
----
-24
-24
-24
query I rowsort
SELECT 30 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6871
SELECT + CAST( + col0 AS SIGNED ) FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6871
SELECT + CAST ( + col0 AS INTEGER ) FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - ( 78 ) AS col1 FROM tab1
----
-78
-78
-78
query I rowsort
SELECT col0 + + col2 * 85 AS col0 FROM tab2 AS cor0
----
2288
2302
3309
onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT col1 DIV col0 + - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-6874
SELECT col1 / col0 + - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79
query I rowsort
SELECT + col0 * ( 35 ) + col1 AS col2 FROM tab1 AS cor0
----
131
2250
2813
query I rowsort
SELECT col2 * + col0 AS col0 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col0 col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT 47 * - col0 FROM tab0
----
-1128
-1645
-4183
onlyif mysql # use DIV operator for integer division
query I rowsort label-6879
SELECT col0 + - col2 DIV col2 col0 FROM tab1
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6879
SELECT col0 + - col2 / col2 col0 FROM tab1
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT col0 DIV ( - col2 ) + col0 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-6880
SELECT col0 / ( - col2 ) + col0 FROM tab1 AS cor0
----
3
63
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6881
SELECT + - col1 * - CAST( col0 AS SIGNED ) + col1 AS col1 FROM tab0 cor0
----
2150
3492
8190
skipif mysql # not compatible
query I rowsort label-6881
SELECT + - col1 * - CAST ( col0 AS INTEGER ) + col1 AS col1 FROM tab0 cor0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6882
SELECT - col0 * + cor0.col2 + - CAST( 19 * + col1 AS SIGNED ) FROM tab1 AS cor0
----
-3838
-656
-7927
skipif mysql # not compatible
query I rowsort label-6882
SELECT - col0 * + cor0.col2 + - CAST ( 19 * + col1 AS INTEGER ) FROM tab1 AS cor0
----
-3838
-656
-7927
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6883
SELECT DISTINCT + 72 * - col1 + - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1262
-2259
-4274
skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT + 72 * - col1 + - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1262
-2259
-4274
onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT ALL col0 + - col1 DIV - col0 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL col0 + - col1 / - col0 FROM tab1 AS cor0
----
11
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT - - col0 + + col0 DIV + 60 AS col0 FROM tab2 AS cor0
----
7
79
80
skipif mysql # not compatible
query I rowsort label-6885
SELECT - - col0 + + col0 / + 60 AS col0 FROM tab2 AS cor0
----
7
79
80
query I rowsort
SELECT ALL - - 25 * + col0 FROM tab2 AS cor0
----
175
1950
1975
query I rowsort
SELECT - 32 - cor0.col2 FROM tab0 AS cor0
----
-114
-33
-65
query I rowsort
SELECT DISTINCT + 4 * + cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
106
151
262
query I rowsort
SELECT - col2 * + col1 + - 72 FROM tab2 AS cor0
----
-1606
-718
-909
query I rowsort
SELECT ALL - 37 FROM tab0 AS cor0
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * - col0 col1 FROM tab1 AS cor0
----
-222
-4736
-5920
onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT DISTINCT 51 DIV - tab1.col0 FROM tab1
----
-17
0
skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT 51 / - tab1.col0 FROM tab1
----
-17
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6893
SELECT tab0.col0 * - col1 * CAST( col0 AS SIGNED ) - col2 AS col2 FROM tab0
----
-118826
-49569
-720893
skipif mysql # not compatible
query I rowsort label-6893
SELECT tab0.col0 * - col1 * CAST ( col0 AS INTEGER ) - col2 AS col2 FROM tab0
----
-118826
-49569
-720893
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - tab1.col2 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + - tab1.col2 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - + cor0.col1 * - col0 + - col0 FROM tab0 cor0
----
2040
3360
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 + cor0.col2 col2 FROM tab2 AS cor0
----
-10
-9
2
query I rowsort
SELECT ALL + 76 * - 20 AS col1 FROM tab1 AS cor0
----
-1520
-1520
-1520
query I rowsort
SELECT ALL + + col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - cor0.col1 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT + col2 + - 9 FROM tab2 AS cor0
----
17
18
29
query I rowsort
SELECT ALL col2 + col0 * col1 - tab2.col2 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 + - col0 col2 FROM tab1 AS cor0
----
-102
-25
-86
query I rowsort
SELECT - col1 + - col1 - + col0 FROM tab2
----
-113
-196
-69
query I rowsort
SELECT DISTINCT - col1 * col1 - col1 AS col2 FROM tab1
----
-110
-182
-702
query I rowsort
SELECT col1 * + 88 FROM tab0
----
7568
8008
8536
skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( + col0 AS REAL ) * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6910
SELECT + col0 + + col1 DIV - tab0.col2 FROM tab0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-6910
SELECT + col0 + + col1 / - tab0.col2 FROM tab0
----
-62
22
88
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6912
SELECT + CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6912
SELECT + CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT DISTINCT + - col2 DIV col2 - col2 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT + - col2 / col2 - col2 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT DISTINCT - 39 + col0 AS col2 FROM tab1 AS cor0
----
-36
25
41
query I rowsort
SELECT DISTINCT 61 * col2 - - col2 FROM tab0 AS cor0
----
2046
5084
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6916
SELECT ALL CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 76 ) FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT ALL - col1 + + col1 + cor0.col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + col2 - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( 86 ) * col2 FROM tab0 AS cor0
----
2838
7052
86
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) + col1 * + col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + col1 * + 78 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT ALL + 38 + + col1 AS col2 FROM tab1 AS cor0
----
48
51
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6924
SELECT ALL - col1 * - col1 + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
36
673
89
skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL - col1 * - col1 + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT - col2 + col1 * col0 AS col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL + 1 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT ( + col2 ) DIV + ( col1 ) + col2 DIV - 67 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-92
-97
skipif mysql # not compatible
query I rowsort label-6927
SELECT ( + col2 ) / + ( col1 ) + col2 / - 67 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-92
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col2 + 74 col0 FROM tab2 AS cor0
----
1608
720
911
query I rowsort
SELECT ALL 3 AS col2 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
query I rowsort
SELECT - cor0.col2 * + ( cor0.col0 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f
query I rowsort
SELECT + col1 + + cor0.col1 * + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT - - 55 FROM tab2 AS cor0
----
55
query I rowsort
SELECT 84 AS col2 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT DISTINCT - - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 36 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT - col0 * cor0.col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col0 * ( + 84 ) + - cor0.col0 + + 27 FROM tab0 AS cor0
----
2019
2932
7414
query I rowsort
SELECT ALL col0 * - col1 * col2 - - col2 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT - + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col1 + - col1 * + col2 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - col2 * 77 FROM tab1 AS cor0
----
-4158
-4389
-7392
query I rowsort
SELECT ALL 52 * col1 AS col2 FROM tab0 AS cor0
----
4472
4732
5044
query I rowsort
SELECT + ( cor0.col1 ) AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col2 + cor0.col0 * - col1 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + - col2 + 53 * col2 FROM tab1 AS cor0
----
2808
2964
4992
query I rowsort
SELECT DISTINCT 62 + col0 AS col0 FROM tab2 AS cor0
----
140
141
69
query I rowsort
SELECT col2 + + 64 FROM tab2
----
102
90
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT ALL - cor0.col0 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-6949
SELECT ALL - cor0.col0 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT + + col0 * - col2 + col2 + + col0 AS col2 FROM tab2 AS cor0
----
-155
-1924
-2885
query I rowsort
SELECT ALL - col2 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * + col1 col0 FROM tab0 AS cor0
----
6880
7280
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6953
SELECT DISTINCT - tab1.col1 * CAST( + 89 AS SIGNED ) FROM tab1
----
-1157
-2314
-890
skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT - tab1.col1 * CAST ( + 89 AS INTEGER ) FROM tab1
----
-1157
-2314
-890
query I rowsort
SELECT col2 * - tab1.col0 + + 9 * col1 AS col1 FROM tab1
----
-3558
-7563
72
query I rowsort
SELECT - + col0 * col1 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6956
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6956
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c
query I rowsort
SELECT + - col1 + ( col2 ) * - col0 FROM tab1 cor0
----
-188
-3658
-7693
query I rowsort
SELECT - 84 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6960
SELECT ALL - tab0.col2 + + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL - tab0.col2 + + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT col1 + + ( 18 ) * + col2 AS col1 FROM tab2 AS cor0
----
517
527
701
query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - col2 * col1 + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT ALL ( + col1 ) * col2 * - col1 AS col2 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + col2 + + ( col2 ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT 49 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1583
695
886
query I rowsort
SELECT DISTINCT + - 15 + cor0.col0 FROM tab1 AS cor0
----
-12
49
65
query I rowsort
SELECT ( - ( + col1 ) ) + ( - 10 * tab1.col2 ) FROM tab1
----
-566
-580
-973
query I rowsort
SELECT DISTINCT + - 36 * + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-122220
-291564
-74304
onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT - 71 DIV - col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-6971
SELECT - 71 / - col1 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab2 AS cor0
----
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - 40 * - col0 AS col0 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT + col2 * - col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + + 95 * col2 FROM tab1 cor0
----
5130
5415
9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - ( col1 ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - ( 12 ) FROM tab2, tab2 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6981
SELECT - - col1 * + col2 * col2 + 72 DIV - col0 AS col0 FROM tab0 cor0
----
611884
93651
95
skipif mysql # not compatible
query I rowsort label-6981
SELECT - - col1 * + col2 * col2 + 72 / - col0 AS col0 FROM tab0 cor0
----
611884
93651
95
query I rowsort
SELECT + col1 * + cor0.col0 * - 79 AS col2 FROM tab2 AS cor0
----
-106097
-17143
-363558
onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT - cor0.col2 DIV + 94 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6983
SELECT - cor0.col2 / + 94 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT - col2 * ( + 67 ) + - cor0.col2 FROM tab0 AS cor0
----
-2244
-5576
-68
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT cor0.col2 * + col2 + - 3 AS col2 FROM tab2 AS cor0
----
1441
673
726
query I rowsort
SELECT ALL + col0 + 86 FROM tab1 AS cor0
----
150
166
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 + cor0.col0 col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + col1 + col2 * col1 * col0 AS col2 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT + + 30 + - col2 * col2 FROM tab0 AS cor0
----
-1059
-6694
29
query I rowsort
SELECT - 62 * + col2 - col2 * 83 AS col1 FROM tab0 AS cor0
----
-11890
-145
-4785
query I rowsort
SELECT + cor0.col0 * + col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ( 64 ) FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT - - col0 + - col0 * col2 AS col0 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT - - ( col0 ) * + col2 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6996
SELECT 76 * + col0 + + col2 + CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6996
SELECT 76 * + col0 + + col2 + CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6997
SELECT - + col1 DIV + ( col2 ) - + col2 FROM tab0 AS cor0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-6997
SELECT - + col1 / + ( col2 ) - + col2 FROM tab0 AS cor0
----
-35
-83
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6998
SELECT + cor0.col1 DIV 95 + col0 + 66 AS col0 FROM tab2 AS cor0
----
144
145
73
skipif mysql # not compatible
query I rowsort label-6998
SELECT + cor0.col1 / 95 + col0 + 66 AS col0 FROM tab2 AS cor0
----
144
145
73
query I rowsort
SELECT 31 + col1 FROM tab1 AS cor0
----
41
44
57
query I rowsort
SELECT + col1 * + col1 * col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
245157
685766
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT ALL - + col0 DIV - col0 + 49 AS col1 FROM tab0 cor0
----
50
50
50
skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL - + col0 / - col0 + 49 AS col1 FROM tab0 cor0
----
50
50
50
query I rowsort
SELECT cor1.col2 + 20 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6b901b352b58e0b7db5ce924b564ec4
query I rowsort
SELECT - ( - tab2.col0 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - col0 - col2 * - col2 AS col2 FROM tab2 WHERE ( NULL ) IN ( + tab2.col2 + - col1 * col0 * col0 ) AND NOT + col0 * col2 * - col1 - + col0 = NULL
----
query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE NOT NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7006
SELECT ALL tab1.col2 DIV - col1 AS col2 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL tab1.col2 / - col1 AS col2 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT DISTINCT - col1 - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + col1 * - col2 + + col0 - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-2022
-27
-75
query I rowsort
SELECT - + cor0.col0 * - col0 + + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab1, tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7011
SELECT ALL cor0.col0 + col1 DIV + col0 - col2 DIV col1 AS col2 FROM tab1 cor0
----
59
73
9
skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL cor0.col0 + col1 / + col0 - col2 / col1 AS col2 FROM tab1 cor0
----
59
73
9
query I rowsort
SELECT - col2 * - col0 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
114093
5134
52787
onlyif mysql # use DIV operator for integer division
query I rowsort label-7013
SELECT ALL cor0.col1 + - col2 DIV cor0.col2 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL cor0.col1 + - col2 / cor0.col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ALL + col0 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7015
SELECT DISTINCT cor0.col0 DIV - col0 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT cor0.col0 / - col0 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT + + col0 * col1 * cor0.col2 + + col0 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT DISTINCT + col2 * - col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT col0 * - cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + - col2 + - col0 - col1 FROM tab0 AS cor0
----
-133
-143
-262
query I rowsort
SELECT DISTINCT col1 - + col2 * + tab2.col0 AS col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT col2 - col1 AS col1 FROM tab1
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col1 + + col2 col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL col2 + - col2 * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT ALL - cor0.col1 * - cor0.col2 + col0 DIV + col1 FROM tab2 AS cor0
----
1535
650
837
skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - cor0.col1 * - cor0.col2 + col0 / + col1 FROM tab2 AS cor0
----
1535
650
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + + col1 * + col1 col2 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT + col1 + - tab1.col2 * tab1.col2 * col0 AS col2 FROM tab1
----
-207926
-737267
-8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT col2 + + col2 DIV col1 - col2 * col0 FROM tab0
----
-34
-7216
-759
skipif mysql # not compatible
query I rowsort label-7027
SELECT col2 + + col2 / col1 - col2 * col0 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT col2 * + tab1.col1 + tab1.col2 + - col1 AS col2 FROM tab1
----
1331
1432
617
query I rowsort
SELECT ALL + + 43 * - col1 * col0 FROM tab0 AS cor0
----
-145985
-348257
-88752
query I rowsort
SELECT DISTINCT - + 17 * col2 + col0 * col1 FROM tab1 AS cor0
----
-329
-592
-840
query I rowsort
SELECT ALL + - cor0.col1 - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - 44 + + col2 * + col0 * cor0.col0 FROM tab0 cor0
----
1181
18964
649478
query I rowsort
SELECT ALL - - 51 AS col1 FROM tab1 AS cor0
----
51
51
51
query I rowsort
SELECT DISTINCT + 39 * col1 + + cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
3411
3720
3819
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + tab0.col1 * 62 AS col1 FROM tab0
----
5332
5642
6014
query I rowsort
SELECT DISTINCT 58 * col0 FROM tab0
----
1392
2030
5162
query I rowsort
SELECT ALL - ( + col0 * - tab1.col0 ) AS col2 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7039
SELECT ALL 30 DIV - col2 - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL 30 / - col2 - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ( col2 ) * col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT 91 + - col2 * cor0.col1 FROM tab1 cor0
----
-1157
-1313
-479
query I rowsort
SELECT ALL ( - col0 + + col1 ) * col0 AS col0 FROM tab0
----
1488
178
2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + - col0 col1 FROM tab2 cor0
----
-24
-95
-96
query I rowsort
SELECT + col2 * col1 + col1 AS col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL - 82 AS col1 FROM tab1
----
-82
-82
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7046
SELECT col1 * + col2 + col0 DIV - col2 FROM tab1
----
1248
1404
569
skipif mysql # not compatible
query I rowsort label-7046
SELECT col1 * + col2 + col0 / - col2 FROM tab1
----
1248
1404
569
onlyif mysql # use DIV operator for integer division
query I rowsort label-7047
SELECT ALL + tab0.col0 DIV col1 + + col2 AS col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7047
SELECT ALL + tab0.col0 / col1 + + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT col1 * - tab1.col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT col2 + + col2 + - tab1.col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - tab0.col0 * + tab0.col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col1 - tab1.col1 * col1 FROM tab1
----
-156
-650
-90
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 - col1 )
----
query I rowsort
SELECT - col0 * + col1 - tab1.col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - col1 / - col2 AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( tab2.col2 + col2 )
----
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col0 )
----
query I rowsort
SELECT DISTINCT col1 + tab0.col2 * - col0 AS col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( NULL ) IN ( col0 + - col0 * + col1 )
----
query I rowsort
SELECT + tab1.col2 * + col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + tab0.col1 - col2 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
query I rowsort
SELECT DISTINCT col0 * - col0 * col2 FROM tab0 WHERE col1 >= ( NULL )
----
query I rowsort
SELECT DISTINCT col1 + col2 * tab1.col1 * col1 FROM tab1
----
16237
36530
5710
query I rowsort
SELECT col0 + col2 * - col1 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + col1 + + col0 + col0 FROM tab1
----
138
173
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col0 FROM tab1
----
109
67
80
query I rowsort
SELECT + col1 * col2 + col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL + tab2.col0 + + col0 * - col0 + col2 * + col2 FROM tab2
----
-4718
-5330
687
query I rowsort
SELECT - col0 + - col1 - tab0.col1 AS col0 FROM tab0
----
-196
-229
-271
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 - col0 * col2 AS col0 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL - col2 * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - col1 * - col0 + col1 * - col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT DISTINCT col0 - - col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + - col1 * col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - col0 + col0 + + col0 * col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL col2 + col2 * - tab2.col1 AS col2 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-7077
SELECT + col0 + - col1 DIV + col1 + col2 * - col1 FROM tab0 cor0
----
-2815
-63
-7374
skipif mysql # not compatible
query I rowsort label-7077
SELECT + col0 + - col1 / + col1 + col2 * - col1 FROM tab0 cor0
----
-2815
-63
-7374
query I rowsort
SELECT - col0 * col2 - col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT - col1 * + col1 * + col0 IN ( + tab1.col0 + + col0 * col1 )
----
10
13
26
query I rowsort
SELECT ALL + col1 + - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT - col0 + cor0.col0 * - cor0.col2 * - col0 FROM tab2 AS cor0
----
1316
158106
237079
query I rowsort
SELECT ALL cor0.col1 * + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 ) AND - col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT - col1 * cor0.col1 DIV - cor0.col0 FROM tab0 cor0
----
268
308
93
skipif mysql # not compatible
query I rowsort label-7083
SELECT - col1 * cor0.col1 / - cor0.col0 FROM tab0 cor0
----
268
308
93
query I rowsort
SELECT - - 56 FROM tab1 AS cor0
----
56
56
56
query I rowsort
SELECT + col0 + + 55 AS col1 FROM tab2 AS cor0
----
133
134
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7086
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + cor0.col1 + 70 * + col1 AS col1 FROM tab1 AS cor0
----
1794
690
897
query I rowsort
SELECT + + 37 + col2 FROM tab2 cor0
----
63
64
75
query I rowsort
SELECT - 45 * - 66 + - cor0.col1 FROM tab2 AS cor0
----
2911
2939
2953
query I rowsort
SELECT - ( + col1 ) + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 69 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
43
56
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - 85 FROM tab2
----
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7095
SELECT 31 DIV + col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7095
SELECT 31 / + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 46 + cor0.col2 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to e09991e70cbab49d2838605dd2ce0a4f
query I rowsort
SELECT DISTINCT + 37 FROM tab1, tab0 AS cor0
----
37
query I rowsort
SELECT DISTINCT + col1 * 94 * col2 FROM tab2
----
144196
60724
78678
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7099
SELECT col1 * + CAST( col2 AS SIGNED ) FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-7099
SELECT col1 * + CAST ( col2 AS INTEGER ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 * ( col1 ) AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT + + 31 * - cor0.col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1084
-2677
-711
onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT + 83 + ( cor0.col1 ) * col2 DIV col2 AS col2 FROM tab0 AS cor0
----
169
174
180
skipif mysql # not compatible
query I rowsort label-7102
SELECT + 83 + ( cor0.col1 ) * col2 / col2 AS col2 FROM tab0 AS cor0
----
169
174
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT - col1 DIV ( - col0 ) AS col1 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7103
SELECT - col1 / ( - col0 ) AS col1 FROM tab0
----
1
2
3
query I rowsort
SELECT + + col0 + col1 * + cor0.col2 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7105
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7106
SELECT - col0 DIV col0 + - cor0.col1 FROM tab2 cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-7106
SELECT - col0 / col0 + - cor0.col1 FROM tab2 cor0
----
-18
-32
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-7107
SELECT - col0 * + ( - col1 ) DIV col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7107
SELECT - col0 * + ( - col1 ) / col1 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - 9 col1 FROM tab1
----
12
73
89
query I rowsort
SELECT ALL 88 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT DISTINCT + tab2.col1 * col2 + col1 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL + col0 + - ( - col1 ) AS col2 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 43 + col1 AS REAL ) col2 FROM tab1
----
53
56
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * + col1 col0 FROM tab2
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7114
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( + col0 + - col0 ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( + col0 + - col0 ) FROM tab0
----
NULL
query I rowsort
SELECT - col0 + ( cor0.col1 ) FROM tab0 cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + + col1 col0 FROM tab2 cor0
----
108
122
150
query I rowsort
SELECT col0 * 98 AS col1 FROM tab1 AS cor0
----
294
6272
7840
query I rowsort
SELECT - ( col1 ) * - col2 + col0 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT + col0 + - 26 - + col0 AS col1 FROM tab0 cor0
----
-26
-26
-26
query I rowsort
SELECT - col0 * 83 + col0 * col0 FROM tab2 AS cor0
----
-316
-390
-532
onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT ALL col2 DIV 5 - + 88 * - col0 * col0 FROM tab1
----
360459
563219
802
skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL col2 / 5 - + 88 * - col0 * col0 FROM tab1
----
360459
563219
802
onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT col1 + + 12 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7122
SELECT col1 + + 12 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT DISTINCT + col2 DIV 21 + 15 AS col1 FROM tab2 AS cor0
----
16
skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT + col2 / 21 + 15 AS col1 FROM tab2 AS cor0
----
16
query I rowsort
SELECT DISTINCT + col2 * col1 + - 85 AS col0 FROM tab0 AS cor0
----
12
2753
7377
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT + + col1 DIV + ( + col0 ) + + cor0.col2 - col0 FROM tab2 AS cor0
----
-41
-52
24
skipif mysql # not compatible
query I rowsort label-7125
SELECT + + col1 / + ( + col0 ) + + cor0.col2 - col0 FROM tab2 AS cor0
----
-41
-52
24
query I rowsort
SELECT + 74 * - col1 + col2 FROM tab1
----
-1870
-683
-866
query I rowsort
SELECT - col1 - col1 * col1 AS col0 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT ALL - 23 AS col1 FROM tab2
----
-23
-23
-23
query I rowsort
SELECT - tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT + 64 * tab1.col1 FROM tab1
----
1664
640
832
query I rowsort
SELECT col0 * + col0 + + 39 AS col1 FROM tab1 AS cor0
----
4135
48
6439
query I rowsort
SELECT ALL col0 * cor0.col1 + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT col0 + + col2 * - col1 AS col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - 59 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-59
query I rowsort
SELECT col2 + - ( + col0 ) * - col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT ALL - cor0.col1 * + col1 * - 15 AS col1 FROM tab2 cor0
----
14415
4335
52215
query I rowsort
SELECT DISTINCT + col0 * 23 FROM tab1 AS cor0
----
1472
1840
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT DISTINCT - col1 DIV - col1 col1 FROM tab0 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT - col1 / - col1 col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL col2 * col1 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - col2 * - 53 * col2 AS col1 FROM tab0 AS cor0
----
356372
53
57717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 40 col0 FROM tab2 AS cor0
----
-118
-119
-47
query I rowsort
SELECT + cor0.col1 * + ( col2 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + - col0 * + cor0.col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT - col0 + + 7 AS col1 FROM tab2 AS cor0
----
-71
-72
0
query I rowsort
SELECT ALL - col1 * - col0 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7146
SELECT DISTINCT - + cor0.col0 DIV - 78 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7146
SELECT DISTINCT - + cor0.col0 / - 78 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL col2 * 9 FROM tab0 AS cor0
----
297
738
9
query I rowsort
SELECT DISTINCT - - col0 * 93 FROM tab1 AS cor0
----
279
5952
7440
onlyif mysql # use DIV operator for integer division
query I rowsort label-7149
SELECT DISTINCT + col1 * col2 + - col0 DIV cor0.col0 FROM tab2 AS cor0
----
1533
645
836
skipif mysql # not compatible
query I rowsort label-7149
SELECT DISTINCT + col1 * col2 + - col0 / cor0.col0 FROM tab2 AS cor0
----
1533
645
836
onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT ALL - col2 DIV - col1 AS col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL - col2 / - col1 AS col1 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT - + ( + cor0.col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col1 + + col1 * - col2 * + 1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + - cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - cor0.col1 * + 26 * + col2 AS col2 FROM tab0 AS cor0
----
-194012
-2522
-73788
query I rowsort
SELECT - 49 * + 98 FROM tab0 AS cor0
----
-4802
-4802
-4802
query I rowsort
SELECT DISTINCT - col2 + col1 * - col0 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT + col1 * + 31 * + cor0.col1 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
20930
3090
5226
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 95 ) + col2 col0 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT col1 + col0 * col0 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT + + 42 * + col2 + - col2 * 53 * col0 + cor0.col2 AS col1 FROM tab2 cor0
----
-106366
-157472
-8856
query I rowsort
SELECT ALL - ( + col2 ) * + col2 - col1 * + 79 FROM tab0 AS cor0
----
-13913
-7664
-7883
query I rowsort
SELECT ALL - col0 + col0 * 17 FROM tab1 cor0
----
1024
1280
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - + col0 + - col0 + col2 FROM tab2 AS cor0
----
-120
-130
13
query I rowsort
SELECT DISTINCT col2 + + col0 AS col0 FROM tab2
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7166
SELECT CAST( NULL AS SIGNED ) * + tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7166
SELECT CAST ( NULL AS INTEGER ) * + tab0.col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-7168
SELECT ALL - - col2 DIV col1 + - ( - col2 ) DIV col0 - 16 FROM tab2 AS cor0
----
-13
-14
-16
skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL - - col2 / col1 + - ( - col2 ) / col0 - 16 FROM tab2 AS cor0
----
-13
-14
-16
query I rowsort
SELECT - + col2 + + col1 * + col2 FROM tab1 cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-7170
SELECT DISTINCT - 56 DIV col2 + + cor0.col2 FROM tab0 AS cor0
----
-55
32
82
skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT - 56 / col2 + + cor0.col2 FROM tab0 AS cor0
----
-55
32
82
query I rowsort
SELECT DISTINCT - 72 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
3576
7608
90
query I rowsort
SELECT + col0 * col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col0 * col2 - - 30 AS col2 FROM tab2 AS cor0
----
2058
219
3032
onlyif mysql # use DIV operator for integer division
query I rowsort label-7174
SELECT DISTINCT - 0 + - col1 DIV ( col0 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT - 0 + - col1 / ( col0 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - 86 + - col0 AS col0 FROM tab0 cor0
----
-110
-121
-175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 col1 FROM tab0 cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-7177
SELECT ALL - + col2 DIV col0 col2 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL - + col2 / col0 col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - - 94 + - col1 AS col2 FROM tab1 AS cor0
----
68
81
84
query I rowsort
SELECT - 17 + - col1 AS col2 FROM tab0 AS cor0
----
-103
-108
-114
query I rowsort
SELECT ALL - 2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
onlyif mysql # use DIV operator for integer division
query I rowsort label-7181
SELECT ALL + 78 DIV col2 + col0 FROM tab0
----
113
26
89
skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + 78 / col2 + col0 FROM tab0
----
113
26
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 31 + + col1 col1 FROM tab0 AS cor0
----
117
122
128
query I rowsort
SELECT ALL - - col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col0 * - col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT + col0 * cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + col1 * col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + col0 * + col1 + tab0.col1 * + col2 * + col1 AS col2 FROM tab0
----
12804
246132
687141
query I rowsort
SELECT DISTINCT - - 75 * 8 + + cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
617
631
659
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col0 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - tab1.col2 * - col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col0 * 3 + col2 AS col2 FROM tab1
----
249
336
63
query I rowsort
SELECT DISTINCT - col2 * col2 + + tab0.col0 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT 20 + + col0 * - col0 + ( + col2 ) AS col0 FROM tab0
----
-1204
-523
-7819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7194
SELECT ALL CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 0 + col2 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + col0 + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + 26 FROM tab2 AS cor0
----
-52
-53
19
query I rowsort
SELECT ALL + + col2 * - 47 + col0 AS col1 FROM tab1 AS cor0
----
-2535
-2615
-4432
query I rowsort
SELECT ALL ( - col2 ) * + col0 + col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT - ( tab0.col0 ) AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL cor0.col0 * 93 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 05eded35106e8078989c1b5f13c7b876
query I rowsort
SELECT ALL - - 58 * - col1 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT - col2 - col0 AS col2 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT - col0 + col2 * + col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - - col0 * - col1 * col2 + col2 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT + col0 + - col0 * col2 * col1 AS col1 FROM tab2 cor0
----
-119574
-50955
-5852
query I rowsort
SELECT DISTINCT 21 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
21
query I rowsort
SELECT + + col0 + 5 * col1 * 39 FROM tab2 AS cor0
----
11583
3394
6052
query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-26
query I rowsort
SELECT 1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7211
SELECT + CAST( col2 AS SIGNED ) * col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-7211
SELECT + CAST ( col2 AS INTEGER ) * col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - - ( ( col1 ) ) + col0 + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1439
255
4739
query I rowsort
SELECT - 62 + - 42 FROM tab2 AS cor0
----
-104
-104
-104
query I rowsort
SELECT - - 74 + - col2 FROM tab1 cor0
----
-22
17
20
query I rowsort
SELECT + + 41 AS col1 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT - 36 + - col0 AS col1 FROM tab1 AS cor0
----
-100
-116
-39
query I rowsort
SELECT ALL + col2 * col2 * col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT - - col0 + + col0 * + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
13848
42910
705058
query I rowsort
SELECT DISTINCT + 22 * cor0.col0 + + col2 + 46 AS col2 FROM tab1 AS cor0
----
1511
166
1902
query I rowsort
SELECT - col0 * cor0.col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + col2 - - col1 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT + col2 * - col1 - 53 AS col1 FROM tab0 AS cor0
----
-150
-2891
-7515
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7224
SELECT ALL col2 * col2 + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL col2 * col2 + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + col1 * 51 AS col2 FROM tab0
----
4300
4550
4850
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - col0 - - col2 col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT + col1 * + ( + col0 ) - col2 AS col2 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col0 FROM tab2
----
19
query I rowsort
SELECT ALL - ( col2 * + col2 ) + - col1 AS col0 FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT ALL 93 + col1 FROM tab1
----
103
106
119
onlyif mysql # use DIV operator for integer division
query I rowsort label-7231
SELECT ALL col0 * col0 + col0 DIV 48 AS col1 FROM tab2
----
49
6085
6242
skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL col0 * col0 + col0 / 48 AS col1 FROM tab2
----
49
6085
6242
query I rowsort
SELECT ALL 2 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 + + col2 col2 FROM tab1
----
162
171
288
query I rowsort
SELECT col1 * tab0.col1 * 84 FROM tab0
----
621264
695604
790356
query I rowsort
SELECT col1 * 56 + col2 FROM tab2 AS cor0
----
1763
3330
990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7236
SELECT col2 * - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7236
SELECT col2 * - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 8 * - col2 col2 FROM tab1 AS cor0
----
-1296
-29184
-61440
query I rowsort
SELECT - col0 + 33 AS col1 FROM tab0 AS cor0
----
-2
-56
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT ALL + col0 DIV ( - 30 ) FROM tab2 cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-7239
SELECT ALL + col0 / ( - 30 ) FROM tab2 cor0
----
-2
-2
0
query I rowsort
SELECT - col1 * col2 * 66 FROM tab1
----
-37620
-82368
-92664
query I rowsort
SELECT + col0 * 61 * - col1 AS col0 FROM tab1
----
-39040
-4758
-63440
query I rowsort
SELECT col0 * + 97 FROM tab0
----
2328
3395
8633
query I rowsort
SELECT DISTINCT + col0 * 53 - + col2 AS col0 FROM tab0
----
1239
1854
4635
query I rowsort
SELECT col1 + - col1 * - 21 + + tab1.col2 FROM tab1
----
277
382
626
onlyif mysql # use DIV operator for integer division
query I rowsort label-7245
SELECT DISTINCT - col2 DIV + 14 - col1 FROM tab2
----
-19
-32
-60
skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - col2 / + 14 - col1 FROM tab2
----
-19
-32
-60
query I rowsort
SELECT ALL 63 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT ALL + 20 * col0 AS col2 FROM tab2 AS cor0
----
140
1560
1580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( col2 ) ) col2 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + 33 AS col0 FROM tab0
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 * 48 col0 FROM tab1
----
4224
4224
4224
query I rowsort
SELECT - + 91 + col1 * - ( ( + cor0.col0 ) ) FROM tab0 AS cor0
----
-2155
-3486
-8190
query I rowsort
SELECT + - col2 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7253
SELECT CAST( NULL AS SIGNED ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7253
SELECT CAST ( NULL AS INTEGER ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 - + 81 FROM tab2 AS cor0
----
-112
-140
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 25 + + col2 col2 FROM tab0 AS cor0
----
107
26
58
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to e3f81e329d34d83e4528a9ef7b933946
query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 col2 FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT col1 + ( + 81 ) AS col1 FROM tab2
----
112
140
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT + col0 DIV - col2 + col1 FROM tab0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-7262
SELECT + col0 / - col2 + col1 FROM tab0
----
62
86
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7263
SELECT + CAST( NULL AS DECIMAL ) * + tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7263
SELECT + CAST ( NULL AS REAL ) * + tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 2 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT ( + col2 ) - col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 + + col2 * + 18 AS col0 FROM tab1
----
1090
1808
975
query I rowsort
SELECT - ( - col1 ) * - 28 AS col1 FROM tab0
----
-2408
-2548
-2716
query I rowsort
SELECT DISTINCT + + col2 * col1 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - - col1 + col1 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-620
-7116
159
query I rowsort
SELECT - col0 + ( col1 * col0 ) FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT DISTINCT + ( tab1.col2 ) FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col0 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT 50 * + tab1.col1 + - col2 AS col1 FROM tab1
----
1246
443
554
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7274
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT 27 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT col0 + col1 + 44 AS col2 FROM tab0
----
154
176
224
query I rowsort
SELECT DISTINCT - ( + col1 ) + + col2 * + col1 - col0 FROM tab2
----
1397
550
799
query I rowsort
SELECT 83 + + col1 + ( col2 ) * col0 * + ( - col2 + col1 ) AS col1 FROM tab1
----
-171363
-4427
-637344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7279
SELECT col2 + + CAST( col1 AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-7279
SELECT col2 + + CAST ( col1 AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - col1 + ( col1 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT + + col2 * col2 * col0 + col0 AS col1 FROM tab2 cor0
----
114155
5110
52806
query I rowsort
SELECT ALL - col1 + + 14 * - col1 * col2 FROM tab2 AS cor0
----
-11749
-21535
-9061
query I rowsort
SELECT ALL col1 + - col0 * 57 AS col2 FROM tab2 AS cor0
----
-368
-4387
-4486
query I rowsort
SELECT DISTINCT + col1 + col1 * + tab0.col0 AS col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT - - col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - + col0 * col2 * + 58 + - col2 - - 75 FROM tab0 AS cor0
----
-1956
-423291
-45894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - col1 + 50 * col0 - + col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-1724
-3103
1556
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 54 col1 FROM tab0 AS cor0
----
136
55
87
query I rowsort
SELECT - 24 FROM tab0, tab2 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT ALL col2 + - CAST( - col2 + col1 AS SIGNED ) AS col1 FROM tab0
----
-20
-95
73
skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL col2 + - CAST ( - col2 + col1 AS INTEGER ) AS col1 FROM tab0
----
-20
-95
73
query I rowsort
SELECT DISTINCT + col2 * ( tab0.col1 ) + - col1 AS col2 FROM tab0
----
0
2752
7371
query I rowsort
SELECT + col2 * 66 AS col0 FROM tab2 cor0
----
1716
1782
2508
query I rowsort
SELECT DISTINCT col0 * - col0 + 65 + - col2 * col0 AS col1 FROM tab0 cor0
----
-1195
-1303
-15154
query I rowsort
SELECT col1 - + 53 FROM tab2 AS cor0
----
-22
-36
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 70 * cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-144447
-237649
-566848
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + - col0 + + col1 * col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL col2 * 66 + + 80 FROM tab2 AS cor0
----
1796
1862
2588
query I rowsort
SELECT DISTINCT - col1 * 77 AS col1 FROM tab2 AS cor0
----
-1309
-2387
-4543
query I rowsort
SELECT 62 * 77 * - col2 - col0 AS col0 FROM tab0 cor0
----
-157566
-391557
-4809
query I rowsort
SELECT + - 55 + - 84 FROM tab0 cor0
----
-139
-139
-139
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7303
SELECT + CAST( NULL AS SIGNED ) / 66 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7303
SELECT + CAST ( NULL AS INTEGER ) / 66 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7305
SELECT + CAST( NULL AS SIGNED ) / 82 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7305
SELECT + CAST ( NULL AS INTEGER ) / 82 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - col1 ) + col0 * 65 FROM tab2 AS cor0
----
486
5129
5152
query I rowsort
SELECT ( + 38 ) FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT ALL - + 97 + - 19 AS col0 FROM tab0 AS cor0
----
-116
-116
-116
query I rowsort
SELECT ALL - + 75 * - col1 FROM tab0 cor0
----
6450
6825
7275
onlyif mysql # use DIV operator for integer division
query I rowsort label-7310
SELECT DISTINCT + - col1 DIV - col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT + - col1 / - col1 FROM tab0 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7311
SELECT + ( col2 ) + + col0 DIV + ( + 71 ) AS col1 FROM tab2 AS cor0
----
27
27
39
skipif mysql # not compatible
query I rowsort label-7311
SELECT + ( col2 ) + + col0 / + ( + 71 ) AS col1 FROM tab2 AS cor0
----
27
27
39
query I rowsort
SELECT ALL + col0 + - ( col0 ) * - col0 AS col1 FROM tab0
----
1260
600
8010
query I rowsort
SELECT + 3 + + col1 FROM tab0 AS cor0
----
100
89
94
query I rowsort
SELECT - - 24 + 60 - col2 AS col2 FROM tab0 AS cor0
----
2
51
83
query I rowsort
SELECT DISTINCT + col0 * col0 + - 84 FROM tab2 AS cor0
----
-35
6000
6157
query I rowsort
SELECT DISTINCT + 51 + - col1 * - 29 AS col1 FROM tab1 cor0
----
341
428
805
query I rowsort
SELECT ALL - col1 + + col0 + 32 AS col1 FROM tab2 AS cor0
----
51
8
94
query I rowsort
SELECT DISTINCT - 64 * col1 AS col0 FROM tab2 AS cor0
----
-1088
-1984
-3776
query I rowsort
SELECT ALL - + col1 - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7320
SELECT ALL 43 * - cor0.col0 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-301
-3353
-3393
skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL 43 * - cor0.col0 + col0 / col1 AS col2 FROM tab2 AS cor0
----
-301
-3353
-3393
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7321
SELECT + + ( + col0 ) * CAST( 82 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
574
6396
6478
skipif mysql # not compatible
query I rowsort label-7321
SELECT + + ( + col0 ) * CAST ( 82 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
574
6396
6478
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7322
SELECT - col2 + + col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7322
SELECT - col2 + + col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 41 * col0 + ( col1 ) FROM tab1 cor0
----
-2614
-3267
-97
query I rowsort
SELECT ALL - 17 * col2 + 69 * col2 FROM tab2 AS cor0
----
1352
1404
1976
query I rowsort
SELECT 7 * - col0 AS col2 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT DISTINCT + + 69 * col0 * col2 FROM tab2 AS cor0
----
13041
139932
207138
query I rowsort
SELECT ALL + + col1 + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT ALL + 81 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT DISTINCT + 10 + 16 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
26
query I rowsort
SELECT ALL + col2 * + col0 - + col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - - col2 * col2 + + 17 + + ( col0 ) FROM tab0 AS cor0
----
1130
53
6830
query I rowsort
SELECT + 69 - col2 FROM tab2 AS cor0
----
31
42
43
query I rowsort
SELECT + - col0 * col0 - + 43 * 17 FROM tab1 cor0
----
-4827
-7131
-740
query I rowsort
SELECT ALL 60 FROM tab2, tab2 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT DISTINCT - 80 FROM tab1, tab1 AS cor0
----
-80
query I rowsort
SELECT ALL 37 * - 16 FROM tab0
----
-592
-592
-592
query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab1, tab2 AS cor0
----
72
query I rowsort
SELECT DISTINCT 30 * col1 AS col0 FROM tab2
----
1770
510
930
query I rowsort
SELECT ALL + 41 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT DISTINCT - ( - 59 ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
59
query I rowsort
SELECT ( col1 ) * + col1 * + col2 + + col1 * col2 FROM tab0 AS cor0
----
246906
686504
9506
query I rowsort
SELECT - col0 + + cor0.col1 + - ( col2 ) AS col2 FROM tab1 cor0
----
-111
-163
-31
query I rowsort
SELECT - + col1 * + col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-7345
SELECT + 87 + - col1 DIV + ( - col0 ) FROM tab1 AS cor0
----
87
87
95
skipif mysql # not compatible
query I rowsort label-7345
SELECT + 87 + - col1 / + ( - col0 ) FROM tab1 AS cor0
----
87
87
95
query I rowsort
SELECT 54 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7347
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 + + col0 + - col0 * - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + col2 + - 76 * col0 AS col0 FROM tab1 AS cor0
----
-174
-4807
-5984
query I rowsort
SELECT ALL + + col0 + + 18 FROM tab0 AS cor0
----
107
42
53
query I rowsort
SELECT ALL + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7352
SELECT DISTINCT + col2 DIV + 51 AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT + col2 / + 51 AS col1 FROM tab2
----
0
query I rowsort
SELECT + 53 * - col0 AS col2 FROM tab2 AS cor0
----
-371
-4134
-4187
query I rowsort
SELECT + + col1 + col0 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT 80 FROM tab2, tab0 cor0
----
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7356
SELECT ( + col1 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7356
SELECT ( + col1 ) / - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7357
SELECT DISTINCT + + col0 DIV + col2 + + cor0.col1 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT + + col0 / + col2 + + cor0.col1 FROM tab0 AS cor0
----
132
86
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7358
SELECT ALL + CAST( NULL AS SIGNED ) * 99 - - col2 * - 9 col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + CAST ( NULL AS INTEGER ) * 99 - - col2 * - 9 col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7359
SELECT ALL + 95 DIV + col2 FROM tab0 cor0
----
1
2
95
skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + 95 / + col2 FROM tab0 cor0
----
1
2
95
query I rowsort
SELECT DISTINCT ( - col1 ) * - 82 FROM tab2 AS cor0
----
1394
2542
4838
query I rowsort
SELECT - col2 + - col1 * - 54 AS col1 FROM tab2 AS cor0
----
1647
3160
880
query I rowsort
SELECT ALL ( col2 ) * col1 * col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT col2 * - 72 AS col2 FROM tab0
----
-2376
-5904
-72
query I rowsort
SELECT ALL - 26 * - 45 AS col0 FROM tab0
----
1170
1170
1170
query I rowsort
SELECT ALL - 35 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT - col0 + - 68 FROM tab1 AS cor0
----
-132
-148
-71
query I rowsort
SELECT ALL - col0 * col0 * col0 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT tab2.col2 * 47 AS col1 FROM tab2, tab1 AS cor0
----
1222
1269
1786
onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT + + col1 DIV + cor0.col2 + cor0.col2 col0 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7369
SELECT + + col1 / + cor0.col2 + cor0.col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + cor0.col1 + + ( cor0.col2 * cor0.col0 ) AS col2 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT - col0 - col1 AS col0 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT ALL cor0.col2 * - col1 + - col1 * - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + col0 * col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7374
SELECT ALL + col0 * CAST( - col0 AS SIGNED ) FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + col0 * CAST ( - col0 AS INTEGER ) FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - 88 FROM tab2, tab0 AS cor0
----
-88
query I rowsort
SELECT ALL 52 + cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to bc7303cd8a9dd8cb3e3779a385d4eaf3
query I rowsort
SELECT ALL + col0 * col0 * + col1 + + ( - 80 * col2 ) FROM tab2 AS cor0
----
-641
103057
356876
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 10 + - col1 col1 FROM tab1 cor0
----
-56
-650
-813
query I rowsort
SELECT - ( 86 ) AS col0 FROM tab2 AS cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT col0 + + col0 * + col0 AS col0 FROM tab0 cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-7381
SELECT DISTINCT - - cor0.col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT - - cor0.col1 / - col0 AS col2 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT DISTINCT col0 - + col0 AS col0 FROM tab2 cor0
----
0
query I rowsort
SELECT - col0 * 13 AS col1 FROM tab0
----
-1157
-312
-455
query I rowsort
SELECT DISTINCT 64 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
64
query I rowsort
SELECT - - 17 FROM tab0 cor0
----
17
17
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-7386
SELECT col1 DIV tab1.col1 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7386
SELECT col1 / tab1.col1 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT + col0 * col2 + - cor0.col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL cor0.col1 + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT col2 DIV cor0.col1 + col1 * cor0.col2 * col2 FROM tab1 AS cor0
----
119815
32495
75818
skipif mysql # not compatible
query I rowsort label-7389
SELECT col2 / cor0.col1 + col1 * cor0.col2 * col2 FROM tab1 AS cor0
----
119815
32495
75818
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col0 + col1 * - 52 FROM tab0 AS cor0
----
-4448
-4643
-5009
query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 + + 64 + col2 FROM tab1 AS cor0
----
-519
-880
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab1.col0 col0 FROM tab1
----
128
160
6
query I rowsort
SELECT ALL - col2 - - col2 * + col1 AS col1 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7395
SELECT ALL - col1 * cor0.col2 * - 79 + col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL - col1 * cor0.col2 * - 79 + col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + + col2 - col0 AS col1 FROM tab1 cor0
----
105
112
50
query I rowsort
SELECT ALL ( col0 ) * col1 * col0 + - col0 FROM tab1
----
231
40896
83120
query I rowsort
SELECT tab0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL col2 * - col0 + col0 * - 70 FROM tab2
----
-679
-7488
-8532
query I rowsort
SELECT ALL + tab2.col0 + col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT + 84 * + col2 FROM tab0 cor0
----
2772
6888
84
query I rowsort
SELECT DISTINCT - + 71 * - col1 FROM tab2 AS cor0
----
1207
2201
4189
query I rowsort
SELECT ALL - col2 * - 76 + col1 AS col2 FROM tab1 AS cor0
----
4130
4342
7309
onlyif mysql # use DIV operator for integer division
query I rowsort label-7404
SELECT ALL col0 + - cor0.col0 DIV - col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL col0 + - cor0.col0 / - col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT - 32 * - col1 AS col0 FROM tab0 AS cor0
----
2752
2912
3104
onlyif mysql # use DIV operator for integer division
query I rowsort label-7406
SELECT - col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7406
SELECT - col1 / - col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - - 9 * cor0.col1 FROM tab0 AS cor0
----
774
819
873
query I rowsort
SELECT + col2 * - col1 * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT - + 83 AS col0 FROM tab0 AS cor0
----
-83
query I rowsort
SELECT ALL - col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - ( - 13 ) * + col1 AS col2 FROM tab0 AS cor0
----
-1118
-1183
-1261
query I rowsort
SELECT DISTINCT - 15 + + cor0.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
71
76
82
query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab0, tab0 AS cor0
----
86
query I rowsort
SELECT - tab1.col0 * + col1 + - 22 FROM tab1
----
-100
-1062
-662
query I rowsort
SELECT tab1.col2 + ( 87 ) FROM tab1
----
141
144
183
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7418
SELECT - col0 * + 90 + + col0 * + CAST( col2 AS SIGNED ) + col1 * 61 FROM tab1
----
-1502
1273
1478
skipif mysql # not compatible
query I rowsort label-7418
SELECT - col0 * + 90 + + col0 * + CAST ( col2 AS INTEGER ) + col1 * 61 FROM tab1
----
-1502
1273
1478
query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
query I rowsort
SELECT DISTINCT + col1 - ( col0 ) AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT 10 * + 63 * - col2 FROM tab1 AS cor0
----
-34020
-35910
-60480
query I rowsort
SELECT DISTINCT + 62 * - col0 AS col1 FROM tab1 cor0
----
-186
-3968
-4960
query I rowsort
SELECT + - col0 + + col2 * - col2 FROM tab0 cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL - + ( + col0 ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT cor0.col1 * + 51 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT ALL 53 * + col2 AS col2 FROM tab0 AS cor0
----
1749
4346
53
query I rowsort
SELECT col1 + col0 * - col1 AS col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + 77 FROM tab2, tab1 AS cor0
----
77
query I rowsort
SELECT DISTINCT + ( 85 ) * col1 AS col2 FROM tab2
----
1445
2635
5015
query I rowsort
SELECT + 64 FROM tab1, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL + 78 * tab0.col2 FROM tab0
----
2574
6396
78
query I rowsort
SELECT col1 + col0 * - col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab1 AS cor0
----
23
query I rowsort
SELECT + - cor0.col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + col1 + + col1 * 61 AS col0 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT + col1 + col0 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * + cor0.col2 col2 FROM tab0 AS cor0
----
165
410
5
query I rowsort
SELECT - - ( - col0 ) * 23 + - col2 AS col2 FROM tab2 AS cor0
----
-1820
-1855
-188
query I rowsort
SELECT ALL + 44 + col1 FROM tab0 AS cor0
----
130
135
141
query I rowsort
SELECT DISTINCT col0 * col2 + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - - col2 + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + + cor0.col1 * ( cor0.col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL col2 * + 72 + - col2 AS col0 FROM tab0 AS cor0
----
2343
5822
71
query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + col1 + ( + col2 ) * - col1 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col1 * + col2 + + ( - col1 ) col0 FROM tab0 AS cor0
----
-1419
-15474
-3500
query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 + col0 FROM tab1 cor0
----
1216
135
761
query I rowsort
SELECT col1 + + 58 AS col0 FROM tab1 AS cor0
----
68
71
84
query I rowsort
SELECT DISTINCT col1 * - ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - + col1 * cor0.col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - ( col1 ) * col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT col1 * + ( + cor0.col1 + col0 * 77 ) FROM tab2 AS cor0
----
103700
17670
357835
query I rowsort
SELECT ALL 17 * - col1 + + cor0.col0 FROM tab0 AS cor0
----
-1438
-1458
-1614
query I rowsort
SELECT ALL - ( + 86 ) AS col0 FROM tab2 AS cor0
----
-86
-86
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col2 FROM tab2
----
-93
-93
-93
query I rowsort
SELECT + + col1 + + ( 75 ) AS col2 FROM tab1 AS cor0
----
101
85
88
query I rowsort
SELECT ALL - - ( ( + col1 ) ) + 2 FROM tab2 AS cor0
----
19
33
61
query I rowsort
SELECT ALL - col0 * col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + cor0.col2 + + 47 * 40 FROM tab1 AS cor0
----
1934
1937
1976
query I rowsort
SELECT 44 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT + ( col1 ) + 59 * - col2 FROM tab1 AS cor0
----
-3160
-3353
-5651
query I rowsort
SELECT DISTINCT 30 * - tab0.col2 AS col2 FROM tab0, tab0 cor0
----
-2460
-30
-990
query I rowsort
SELECT - + 1 + col0 AS col0 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT + - 4 DIV col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7466
SELECT + - 4 / col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 15 * col1 * + col0 FROM tab2 AS cor0
----
-20145
-3255
-69030
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7468
SELECT ALL CAST( NULL AS SIGNED ) / 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7468
SELECT ALL CAST ( NULL AS INTEGER ) / 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + 68 * - col0 + - 74 AS col2 FROM tab2 AS cor0
----
402
5230
5298
query I rowsort
SELECT - cor0.col1 + col2 AS col2 FROM tab2 cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - + col1 + col2 * + cor0.col2 FROM tab0 AS cor0
----
-96
1003
6633
onlyif mysql # use DIV operator for integer division
query I rowsort label-7473
SELECT DISTINCT - tab2.col2 DIV - col1 AS col2 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT - tab2.col2 / - col1 AS col2 FROM tab2
----
0
2
query I rowsort
SELECT - tab0.col1 - ( - col0 ) AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - col0 + - 83 * - col0 AS col0 FROM tab0 cor0
----
1968
2870
7298
query I rowsort
SELECT ALL + + col1 + - 61 FROM tab2 AS cor0
----
-2
-30
-44
query I rowsort
SELECT - + cor0.col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col1 * col0 + ( - cor0.col2 ) FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT - ( + col2 ) - col1 AS col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT ALL tab2.col2 * col0 - col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT - - col2 * + col1 + - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - 19 + col2 FROM tab2 AS cor0
----
19
7
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - 39 * col2 FROM tab1 cor0
----
-2106
-2223
-3744
query I rowsort
SELECT ALL + cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + + cor0.col0 * - cor0.col2 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7488
SELECT ALL cor0.col2 DIV col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7488
SELECT ALL cor0.col2 / col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - - col2 * + cor0.col0 + 32 FROM tab2 AS cor0
----
2060
221
3034
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 38 ) * - tab1.col2 col2 FROM tab1
----
-2052
-2166
-3648
query I rowsort
SELECT + col2 * 14 FROM tab0
----
1148
14
462
query I rowsort
SELECT ALL + - ( - cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col2 * col2 + + 92 FROM tab2 cor0
----
1536
768
821
query I rowsort
SELECT + + col0 + col0 * - 29 * - col0 + col2 FROM tab0 AS cor0
----
16761
229880
35561
query I rowsort
SELECT 32 * + col0 * + col1 AS col2 FROM tab2
----
147264
42976
6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-7496
SELECT col1 DIV + col2 + col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7496
SELECT col1 / + col2 + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + col2 * + 28 * + col0 AS col0 FROM tab2
----
5292
56784
84056
query I rowsort
SELECT ( 16 ) + col0 * 28 FROM tab0 AS cor0
----
2508
688
996
onlyif mysql # use DIV operator for integer division
query I rowsort label-7499
SELECT DISTINCT - cor0.col0 DIV + 78 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT - cor0.col0 / + 78 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT + ( + 54 ) + + col2 AS col2 FROM tab1 AS cor0
----
108
111
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-7501
SELECT + + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7501
SELECT + + col1 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - ( - 14 ) AS col0 FROM tab1 AS cor0
----
14
14
14
query I rowsort
SELECT ALL - 98 + + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-63
-74
-9
query I rowsort
SELECT DISTINCT + - col1 * col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - - col1 + + ( - col0 * ( + col0 ) + cor0.col1 ) FROM tab1 AS cor0
----
-4076
-6374
43
query I rowsort
SELECT DISTINCT + ( col0 ) AS col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL 8 * - 37 AS col0 FROM tab0 AS cor0
----
-296
-296
-296
query I rowsort
SELECT ALL + - ( - col2 ) * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ( - col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 43 + + col1 FROM tab2 AS cor0
----
102
60
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 * - col2 col1 FROM tab0 AS cor0
----
-2050
-25
-825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7513
SELECT DISTINCT CAST( NULL AS SIGNED ) * tab2.col1 * - col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT CAST ( NULL AS INTEGER ) * tab2.col1 * - col1 FROM tab2
----
NULL
query I rowsort
SELECT - col0 * col0 + 89 AS col2 FROM tab0 AS cor0
----
-1136
-487
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col0 FROM tab1 AS cor0
----
-57
query I rowsort
SELECT ALL - col1 + - col2 * + col0 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * - 19 col0 FROM tab0 cor0
----
-1600
-370
-568
query I rowsort
SELECT - col2 + + 41 AS col0 FROM tab1
----
-13
-16
-55
query I rowsort
SELECT - cor0.col0 * - col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT DISTINCT - col0 + 30 DIV - col0 AS col1 FROM tab0 AS cor0
----
-25
-35
-89
skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT - col0 + 30 / - col0 AS col1 FROM tab0 AS cor0
----
-25
-35
-89
query I rowsort
SELECT DISTINCT col1 + ( + 70 ) * - col2 FROM tab1 AS cor0
----
-3754
-3980
-6707
query I rowsort
SELECT cor0.col2 * cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908
query I rowsort
SELECT DISTINCT - col0 + ( + col2 * + col2 ) AS col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL - - col2 + - col2 AS col1 FROM tab0 cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 35998cdc87c8b13ea047f14c9f5dc8d6
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) * - cor0.col1 + - col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT ALL col1 + ( col1 ) * ( + cor0.col2 ) + col2 * col0 * 76 AS col0 FROM tab1 AS cor0
----
13742
277828
584941
query I rowsort
SELECT + ( - col0 ) * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-7529
SELECT DISTINCT 40 DIV col1 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7529
SELECT DISTINCT 40 / col1 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - 4 + + col2 AS col2 FROM tab0 AS cor0
----
-3
29
78
query I rowsort
SELECT - - col2 * + ( col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + - col0 + col1 * + col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL - col1 * 89 AS col2 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT col1 * - 43 * + col2 + col1 AS col2 FROM tab2
----
-27761
-35960
-65903
query I rowsort
SELECT 18 FROM tab0, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 col0 FROM tab2
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7537
SELECT DISTINCT + 86 * col1 + + col2 + - CAST( NULL AS SIGNED ) * col0 col2 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT + 86 * col1 + + col2 + - CAST ( NULL AS INTEGER ) * col0 col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + - 25 * + ( + col1 + ( - col2 ) * - col0 ) AS col2 FROM tab0 AS cor0
----
-184725
-21950
-3300
query I rowsort
SELECT DISTINCT 39 * + cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
1366
3553
969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col0 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + col0 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 6 * - col1 + col0 * - col1 AS col0 FROM tab0
----
-1548
-2813
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7543
SELECT CAST( - col2 + + col1 * - col2 AS SIGNED ) AS col0 FROM tab0
----
-2871
-7544
-98
skipif mysql # not compatible
query I rowsort label-7543
SELECT CAST ( - col2 + + col1 * - col2 AS INTEGER ) AS col0 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT DISTINCT - col2 + + ( col1 ) * - 53 AS col2 FROM tab0 cor0
----
-4591
-4905
-5142
onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT ALL 10 + col1 DIV - tab1.col2 FROM tab1
----
10
10
10
skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL 10 + col1 / - tab1.col2 FROM tab1
----
10
10
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7547
SELECT - col1 * + CAST( NULL AS SIGNED ) + - 98 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7547
SELECT - col1 * + CAST ( NULL AS INTEGER ) + - 98 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7548
SELECT - cor0.col2 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7548
SELECT - cor0.col2 / + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + tab1.col1 + col1 * col1 FROM tab1
----
1352
200
338
query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab0, tab1, tab2 AS cor0
----
-77
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col2 col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7553
SELECT - col1 DIV 91 + - cor0.col0 col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7553
SELECT - col1 / 91 + - cor0.col0 col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col2 + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-7555
SELECT ALL col0 + - ( - col2 ) * col0 DIV 3 AS col1 FROM tab1 cor0
----
1280
2640
57
skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL col0 + - ( - col2 ) * col0 / 3 AS col1 FROM tab1 cor0
----
1280
2640
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7556
SELECT ALL - - col1 DIV - 15 + 79 FROM tab1 AS cor0
----
78
79
79
skipif mysql # not compatible
query I rowsort label-7556
SELECT ALL - - col1 / - 15 + 79 FROM tab1 AS cor0
----
78
79
79
query I rowsort
SELECT - col1 * + 43 * + 10 FROM tab2 AS cor0
----
-13330
-25370
-7310
query I rowsort
SELECT ALL + - col1 * ( cor0.col0 * col2 ) + + 51 * col0 AS col2 FROM tab2 AS cor0
----
-115674
-47005
-5502
query I rowsort
SELECT DISTINCT - - col2 * ( cor0.col0 ) - - col0 * - col1 AS col1 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT - - col2 * cor0.col2 + + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL 85 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT DISTINCT - 2 FROM tab2, tab0 cor0, tab1 AS cor1
----
-2
query I rowsort
SELECT ALL + 66 AS col0 FROM tab1
----
66
66
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7564
SELECT col1 + col0 + + CAST( + 92 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
130
188
229
skipif mysql # not compatible
query I rowsort label-7564
SELECT col1 + col0 + + CAST ( + 92 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
130
188
229
query I rowsort
SELECT - - 24 * cor0.col0 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT - 14 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * cor0.col1 col2 FROM tab2 AS cor0
----
1241
2263
4307
onlyif mysql # use DIV operator for integer division
query I rowsort label-7568
SELECT cor0.col2 DIV col1 AS col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7568
SELECT cor0.col2 / col1 AS col0 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7569
SELECT - col1 + - col0 DIV col2 FROM tab1 AS cor0
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-7569
SELECT - col1 + - col0 / col2 FROM tab1 AS cor0
----
-11
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * cor0.col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col1 * tab0.col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + col2 * - 51 AS col1 FROM tab1 AS cor0
----
-2754
-2907
-4896
query I rowsort
SELECT DISTINCT - + col2 + + 49 * - col0 AS col1 FROM tab0 AS cor0
----
-1209
-1716
-4443
query I rowsort
SELECT DISTINCT col2 * 98 AS col0 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT DISTINCT cor0.col0 + 1 AS col0 FROM tab0 cor0
----
25
36
90
query I rowsort
SELECT ALL + col0 + 9 AS col1 FROM tab2 AS cor0
----
16
87
88
query I rowsort
SELECT col2 + + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col2 )
----
query I rowsort
SELECT + col0 * - tab2.col0 * col2 FROM tab2
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7580
SELECT ALL col1 DIV col1 col0 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL col1 / col1 col0 FROM tab0
----
1
1
1
query I rowsort
SELECT - col1 + - col1 + col2 AS col1 FROM tab2
----
-35
-92
4
query I rowsort
SELECT - col1 * col1 + - col0 FROM tab1 WHERE NOT ( NULL ) IN ( + col0 / tab1.col2 )
----
query I rowsort
SELECT - col0 * + tab1.col0 * + col2 + col1 * - col0 + col2 * - col2 AS col2 FROM tab1
----
-237361
-3480
-624656
onlyif mysql # use DIV operator for integer division
query I rowsort label-7584
SELECT ALL col1 * + col0 + col1 DIV - col1 - col2 AS col2 FROM tab0
----
2030
3393
8016
skipif mysql # not compatible
query I rowsort label-7584
SELECT ALL col1 * + col0 + col1 / - col1 - col2 AS col2 FROM tab0
----
2030
3393
8016
query I rowsort
SELECT col0 * - col2 * - col2 FROM tab1 WHERE ( NULL ) NOT IN ( - col2 * col1 * col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7586
SELECT + col1 DIV - col2 + col0 * - col1 AS col2 FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-7586
SELECT + col1 / - col2 + col0 * - col1 AS col2 FROM tab1
----
-1040
-640
-78
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col2 / + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7588
SELECT DISTINCT - tab1.col1 DIV col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT - tab1.col1 / col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT - col1 * col0 * + col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL - col0 * tab1.col0 * - col2 AS col0 FROM tab1
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT + col1 DIV + col1 + + col2 * + col1 AS col0 FROM tab0
----
2839
7463
98
skipif mysql # not compatible
query I rowsort label-7591
SELECT + col1 / + col1 + + col2 * + col1 AS col0 FROM tab0
----
2839
7463
98
query I rowsort
SELECT col1 * - col0 + - col1 * col1 + + col0 FROM tab1 WHERE NOT col0 + + col1 <> - col0 / - col1
----
query I rowsort
SELECT DISTINCT col2 * col1 AS col1 FROM tab2 WHERE NOT + col0 + - col1 <> tab2.col0
----
query I rowsort
SELECT tab1.col2 * + col1 * col1 AS col0 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL + tab2.col0 * - col0 * + col2 FROM tab2
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7596
SELECT DISTINCT col1 DIV + col0 + col0 + tab1.col2 FROM tab1
----
121
176
65
skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT col1 / + col0 + col0 + tab1.col2 FROM tab1
----
121
176
65
query I rowsort
SELECT DISTINCT - col1 * col2 * col2 FROM tab0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * 80 col2 FROM tab0 AS cor0
----
1887
2799
7038
query I rowsort
SELECT col0 * col1 * col1 + tab2.col0 FROM tab2
----
22910
271596
6734
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 - col2 col1 FROM tab2
----
162
2002
2964
query I rowsort
SELECT - col2 * - col1 + 0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col1 + tab0.col2 * - col0 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT ALL col2 * + tab1.col2 + + col1 FROM tab1
----
2942
3259
9229
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN ( NULL ) AND + col2
----
7
31
27
78
59
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 * col1 col0 FROM tab2
----
-1475
-629
-806
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / col2 IN ( - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col1 * - tab2.col2 + col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT - col1 * col2 + + col0 + col0 FROM tab2 AS cor0
----
-1378
-488
-823
query I rowsort
SELECT ALL + col0 + + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT 84 - cor0.col2 FROM tab2 AS cor0
----
46
57
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7611
SELECT ALL - - col1 DIV + col1 + - col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-5
-5
1
skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL - - col1 / + col1 + - col0 / + col1 AS col1 FROM tab1 AS cor0
----
-5
-5
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 - + col1 col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - + col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + 60 + - col0 * - ( col2 ) FROM tab2 AS cor0
----
2088
249
3062
query I rowsort
SELECT ALL col0 + - col1 - - col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + 63 * col1 FROM tab0 AS cor0
----
5418
5733
6111
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7617
SELECT col1 + col0 + CAST( NULL AS SIGNED ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7617
SELECT col1 + col0 + CAST ( NULL AS INTEGER ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7618
SELECT + CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7618
SELECT + CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - ( - col2 ) - + col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT 6 * 46 - - col2 * 24 AS col0 FROM tab0
----
1068
2244
300
query I rowsort
SELECT - cor0.col2 * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 21 * + 60 * tab1.col2 AS col2 FROM tab1
----
120960
68040
71820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7623
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7623
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT 47 + col0 AS col0 FROM tab2
----
125
126
54
query I rowsort
SELECT DISTINCT + col1 * - 90 FROM tab0
----
-7740
-8190
-8730
query I rowsort
SELECT DISTINCT 42 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
42
query I rowsort
SELECT ALL col1 * 13 AS col1 FROM tab2
----
221
403
767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7629
SELECT - CAST( - col0 AS SIGNED ) - + col0 * 27 FROM tab1 AS cor0
----
-1664
-2080
-78
skipif mysql # not compatible
query I rowsort label-7629
SELECT - CAST ( - col0 AS INTEGER ) - + col0 * 27 FROM tab1 AS cor0
----
-1664
-2080
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7630
SELECT - CAST( - ( col2 ) AS SIGNED ) - + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7630
SELECT - CAST ( - ( col2 ) AS INTEGER ) - + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + - 64 * col2 FROM tab1
----
-3453
-3584
-6064
query I rowsort
SELECT tab2.col2 + col2 - - col1 AS col2 FROM tab2
----
111
85
93
query I rowsort
SELECT DISTINCT 12 * + col0 - - tab1.col1 AS col0 FROM tab1
----
62
778
973
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7634
SELECT + - CAST( - col2 AS SIGNED ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-7634
SELECT + - CAST ( - col2 AS INTEGER ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-7636
SELECT DISTINCT - - col2 DIV col0 FROM tab2 cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-7636
SELECT DISTINCT - - col2 / col0 FROM tab2 cor0
----
0
3
query I rowsort
SELECT + col0 + ( col0 ) * ( cor0.col2 ) FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT col2 * col2 AS col0 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT 64 * + 62 - col1 FROM tab2 cor0
----
3909
3937
3951
onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT DISTINCT + col1 * CAST( - col2 AS SIGNED ) DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + col1 * CAST ( - col2 AS INTEGER ) / col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + col0 * 93 FROM tab1 AS cor0
----
279
5952
7440
onlyif mysql # use DIV operator for integer division
query I rowsort label-7642
SELECT cor0.col1 * col0 DIV + col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7642
SELECT cor0.col1 * col0 / + col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + - 49 FROM tab2, tab2 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT cor0.col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-7645
SELECT ALL + cor0.col2 * ( col1 + - col1 ) DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + cor0.col2 * ( col1 + - col1 ) / CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT col2 * - 72 FROM tab1 AS cor0
----
-3888
-4104
-6912
query I rowsort
SELECT - cor0.col2 * + 96 FROM tab2, tab1 AS cor0
----
9 values hashing to 1a15525b37e33e1585641523001851ec
query I rowsort
SELECT 37 * + 22 - col2 AS col0 FROM tab0
----
732
781
813
onlyif mysql # use DIV operator for integer division
query I rowsort label-7650
SELECT ALL - 7 DIV + col2 + col1 AS col2 FROM tab0
----
86
90
91
skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL - 7 / + col2 + col1 AS col2 FROM tab0
----
86
90
91
query I rowsort
SELECT 12 * col0 FROM tab2 cor0
----
84
936
948
query I rowsort
SELECT DISTINCT 96 * col2 * col2 FROM tab2 AS cor0
----
138624
64896
69984
onlyif mysql # use DIV operator for integer division
query I rowsort label-7653
SELECT ALL + ( + col1 ) DIV + col1 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7653
SELECT ALL + ( + col1 ) / + col1 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT - cor0.col2 * - 69 + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
3050
3833
6455
query I rowsort
SELECT DISTINCT 56 + + col2 FROM tab1
----
110
113
152
query I rowsort
SELECT DISTINCT col2 * - tab1.col1 + - col0 * + 69 * 13 + - col1 FROM tab1
----
-4121
-57988
-73021
query I rowsort
SELECT - ( col2 ) AS col1 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7658
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col2 col0 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col2 col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL 93 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to bed80270d2bd273301f8ff63d7ef9f43
onlyif mysql # use DIV operator for integer division
query I rowsort label-7660
SELECT + ( - col0 ) * col0 + - 6 DIV col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-7660
SELECT + ( - col0 ) * col0 + - 6 / col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort
SELECT ( cor0.col0 ) * - CAST ( + col0 AS REAL ) / - cor0.col0 + + 26 * - ( col1 ) + col1 AS col1 FROM tab0 cor0
----
-2126
-2186
-2390
query I rowsort
SELECT DISTINCT + + cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7663
SELECT - + ( + cor0.col2 ) + CAST( NULL AS SIGNED ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7663
SELECT - + ( + cor0.col2 ) + CAST ( NULL AS INTEGER ) / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 82 * col0 + 7 AS col1 FROM tab1 AS cor0
----
253
5255
6567
query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + col1 + - col0 AS col2 FROM tab1 cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7668
SELECT ALL - - col0 * + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL - - col0 * + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col1 + col2 + ( col0 ) FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT 26 * + col0 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT ALL - col2 * - cor0.col2 + 16 AS col1 FROM tab0 AS cor0
----
1105
17
6740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 * col0 ) + 75 + + tab0.col2 col1 FROM tab0
----
111
7455
900
query I rowsort
SELECT ( cor0.col1 ) + 51 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 7a6f9bd5ea07c1e515e804f897598436
query I rowsort
SELECT - col2 + col2 + 84 FROM tab0 AS cor0
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT - - col1 DIV - col2 + 71 + 66 AS col1 FROM tab1 cor0
----
137
137
137
skipif mysql # not compatible
query I rowsort label-7675
SELECT - - col1 / - col2 + 71 + 66 AS col1 FROM tab1 cor0
----
137
137
137
query I rowsort
SELECT DISTINCT + 0 * + col0 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT + - ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + + 88 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1128
166
728
query I rowsort
SELECT - 33 * - cor0.col0 FROM tab0 AS cor0
----
1155
2937
792
query I rowsort
SELECT ALL - 7 * + col1 FROM tab2
----
-119
-217
-413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - - col0 * + col0 + col2 * cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-243492
-671121
-8184
query I rowsort
SELECT col0 * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL col0 + col2 * 1 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + + 21 * - col0 FROM tab2 AS cor0
----
-147
-1638
-1659
query I rowsort
SELECT col0 * - col0 + + 7 FROM tab2 cor0
----
-42
-6077
-6234
query I rowsort
SELECT - + col2 + ( col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT 35 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT - col2 * col1 + - 7 + col1 AS col0 FROM tab2
----
-1482
-636
-813
onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT col2 + col1 DIV col1 AS col0 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-7691
SELECT col2 + col1 / col1 AS col0 FROM tab0
----
2
34
83
query I rowsort
SELECT - 98 + col2 FROM tab0
----
-16
-65
-97
query I rowsort
SELECT tab2.col1 + col1 * + ( - 82 + col0 ) FROM tab2
----
-177
-2294
-34
query I rowsort
SELECT ALL + - col2 + 55 AS col2 FROM tab2 AS cor0
----
17
28
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-7695
SELECT ALL - - col2 + col1 DIV - col0 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - - col2 + col1 / - col0 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT - col2 * - 2 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-26
-3
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7697
SELECT ALL + + CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL + + CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * 56 AS col1 FROM tab2 AS cor0
----
-1456
-1512
-2128
query I rowsort
SELECT + - col0 - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7700
SELECT CAST( NULL AS DECIMAL ) FROM tab0, tab2, tab0 cor0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-7700
SELECT CAST ( NULL AS REAL ) FROM tab0, tab2, tab0 cor0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * + col2 col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT + 14 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
14
query I rowsort
SELECT DISTINCT - col0 * ( + 36 + col1 ) FROM tab0
----
-11303
-2928
-4655
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) + col1 col1 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7705
SELECT - col2 DIV + tab0.col0 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7705
SELECT - col2 / + tab0.col0 AS col2 FROM tab0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7706
SELECT + + col0 DIV + cor0.col1 + col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-7706
SELECT + + col0 / + cor0.col1 + col1 FROM tab2 AS cor0
----
21
31
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7707
SELECT DISTINCT + ( col1 * - col0 ) + - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT + ( col1 * - col0 ) + - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
query I rowsort
SELECT 27 + - col2 + + col0 * 85 FROM tab1
----
228
5410
6731
query I rowsort
SELECT ALL col2 + 74 FROM tab2 AS cor0
----
100
101
112
query I rowsort
SELECT 36 FROM tab1, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab1.col1 col0 FROM tab1
----
100
169
676
query I rowsort
SELECT - tab2.col2 * + tab2.col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL col0 * ( 33 ) FROM tab2
----
231
2574
2607
query I rowsort
SELECT ALL - col1 + - cor0.col2 * + col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT 36 FROM tab2, tab1 cor0, tab0 AS cor1
----
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 * ( - tab1.col2 ) - - 87 col2 FROM tab1
----
-2826
-3098
-9049
onlyif mysql # use DIV operator for integer division
query I rowsort label-7719
SELECT + - col0 + col1 * 98 DIV - col0 FROM tab0 AS cor0
----
-189
-306
-375
skipif mysql # not compatible
query I rowsort label-7719
SELECT + - col0 + col1 * 98 / - col0 FROM tab0 AS cor0
----
-189
-306
-375
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT DISTINCT col0 DIV + tab0.col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7721
SELECT DISTINCT col0 / + tab0.col1 FROM tab0
----
0
query I rowsort
SELECT - ( + col1 ) * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7723
SELECT - col1 DIV 89 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7723
SELECT - col1 / 89 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col1 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT + col0 * - ( col1 ) + - 70 AS col2 FROM tab1
----
-1110
-148
-710
query I rowsort
SELECT DISTINCT - col1 * col2 + + col0 AS col1 FROM tab1
----
-1168
-1401
-506
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) * col1 + col2 * - ( col2 ) FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT - ( col0 ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ( 93 ) * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
1619
2910
5513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7730
SELECT CAST( NULL AS SIGNED ) * 51 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7730
SELECT CAST ( NULL AS INTEGER ) * 51 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + col0 * col2 AS col2 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT ALL - - 65 AS col1 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT ALL 79 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT + 17 AS col2 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT - col2 + - 28 FROM tab1 AS cor0
----
-124
-82
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT + col1 * col1 DIV 41 FROM tab2
----
23
7
84
skipif mysql # not compatible
query I rowsort label-7736
SELECT + col1 * col1 / 41 FROM tab2
----
23
7
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-7737
SELECT ALL - col2 DIV - 62 AS col2 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - col2 / - 62 AS col2 FROM tab0 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 37 * - col0 col0 FROM tab0 AS cor0
----
-1260
-3204
-864
query I rowsort
SELECT DISTINCT - col0 * + 67 * - 50 - - cor0.col0 FROM tab1 AS cor0
----
10053
214464
268080
query I rowsort
SELECT DISTINCT - col1 - - 51 * col1 FROM tab2 AS cor0
----
1550
2950
850
query I rowsort
SELECT ALL + cor0.col0 * ( col2 ) + col0 FROM tab1 cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( 69 ) col1 FROM tab2 AS cor0
----
147
148
76
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 - col0 AS col1 FROM tab2 AS cor0
----
-26
-3
47
query I rowsort
SELECT DISTINCT col2 * ( + 34 ) AS col0 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT + + col1 + + col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - col1 * col0 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 0 * col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL ( - col2 ) * - col0 + - ( col0 ) + + cor0.col1 FROM tab0 cor0
----
7300
854
97
query I rowsort
SELECT - + col0 * col1 * - col2 + ( + col2 ) * col1 AS col1 FROM tab0 AS cor0
----
3492
671580
70950
query I rowsort
SELECT DISTINCT - - 18 * ( + col0 ) + - col2 * col0 FROM tab1 AS cor0
----
-108
-2496
-6240
query I rowsort
SELECT DISTINCT 39 + - ( + col1 ) FROM tab0 AS cor0
----
-47
-52
-58
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8
query I rowsort
SELECT ALL 83 * col1 + + col1 AS col1 FROM tab0 cor0
----
7224
7644
8148
query I rowsort
SELECT DISTINCT - - 27 * col2 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT ALL col0 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col2 * cor0.col0 * - col1 + - cor0.col1 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT 9 * cor0.col0 * col1 FROM tab1 AS cor0
----
5760
702
9360
query I rowsort
SELECT ALL - + 15 AS col0 FROM tab2 cor0
----
-15
-15
-15
query I rowsort
SELECT - 88 + col1 AS col2 FROM tab2
----
-29
-57
-71
query I rowsort
SELECT tab0.col1 * - col0 - - col1 AS col2 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT - col0 * col2 * - 58 FROM tab2 AS cor0
----
10962
117624
174116
query I rowsort
SELECT + + 6 * - col1 AS col1 FROM tab2 AS cor0
----
-102
-186
-354
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7763
SELECT + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7763
SELECT + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + + 52 + cor0.col2 FROM tab0 AS cor0
----
134
53
85
query I rowsort
SELECT ALL cor0.col2 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT col1 * 3 - cor0.col1 * + 18 FROM tab1 AS cor0
----
-150
-195
-390
query I rowsort
SELECT ALL + 72 FROM tab2 cor0
----
72
72
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7768
SELECT + CAST( + 84 AS SIGNED ) * - col0 + + col1 col2 FROM tab0 AS cor0
----
-1930
-2843
-7385
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7768
SELECT + CAST ( + 84 AS INTEGER ) * - col0 + + col1 col2 FROM tab0 AS cor0
----
-1930
-2843
-7385
query I rowsort
SELECT ALL + - col1 * + cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT DISTINCT col2 + col0 DIV - col0 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT col2 + col0 / - col0 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT DISTINCT + col0 * col0 + + col1 - + col0 AS col2 FROM tab1 AS cor0
----
32
4042
6333
query I rowsort
SELECT DISTINCT + 87 AS col1 FROM tab2 cor0
----
87
query I rowsort
SELECT - col2 * 55 FROM tab0 AS cor0
----
-1815
-4510
-55
query I rowsort
SELECT ALL + ( + 80 ) + col0 FROM tab0 AS cor0
----
104
115
169
query I rowsort
SELECT DISTINCT - - 28 AS col1 FROM tab0 AS cor0
----
28
query I rowsort
SELECT ALL + + 4 + 6 * col0 FROM tab0 AS cor0
----
148
214
538
query I rowsort
SELECT - + ( + cor0.col0 ) + + col2 * col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT + col2 * - col0 + + 83 AS col2 FROM tab1
----
-3565
-7597
-79
query I rowsort
SELECT ALL col1 + + col2 * + tab2.col1 AS col0 FROM tab2
----
1593
663
868
query I rowsort
SELECT tab2.col1 * + tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT - + 63 * col2 * - col1 + - col0 FROM tab2 AS cor0
----
40619
52724
96564
query I rowsort
SELECT - col1 + col2 * + col0 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7783
SELECT - CAST( - 70 AS SIGNED ) * - col0 AS col0 FROM tab1 cor0
----
-210
-4480
-5600
skipif mysql # not compatible
query I rowsort label-7783
SELECT - CAST ( - 70 AS INTEGER ) * - col0 AS col0 FROM tab1 cor0
----
-210
-4480
-5600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 + 54 col2 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT - 71 + + tab0.col1 * col2 FROM tab0
----
26
2767
7391
query I rowsort
SELECT ( + ( - col0 ) * - ( col2 ) ) + - col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT - - col0 * + col0 + ( col0 ) * + col1 * + col1 FROM tab1 AS cor0
----
10496
19920
2037
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a
query I rowsort
SELECT - col2 + 68 * col2 + col1 FROM tab0 cor0
----
164
2297
5585
query I rowsort
SELECT col2 + col2 - + tab0.col2 AS col0 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7791
SELECT DISTINCT - col2 * - CAST( + cor0.col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT - col2 * - CAST ( + cor0.col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + + 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT ALL - col2 * - col2 + + col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT ALL - tab0.col0 + col2 AS col1 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL tab1.col0 * col1 + 58 FROM tab1
----
1098
136
698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7797
SELECT DISTINCT - + col2 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7797
SELECT DISTINCT - + col2 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + - col2 * - cor0.col0 + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + cor0.col2 + - 25 * - col2 AS col0 FROM tab0 AS cor0
----
2132
26
858
query I rowsort
SELECT + col2 + + 0 * col0 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
onlyif mysql # use DIV operator for integer division
query I rowsort label-7803
SELECT col0 DIV 91 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7803
SELECT col0 / 91 FROM tab1
----
0
0
0
query I rowsort
SELECT ( col2 ) + col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7805
SELECT ALL col1 * - ( - tab2.col0 ) + - col1 * + col1 DIV col1 AS col2 FROM tab2
----
1326
186
4543
skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL col1 * - ( - tab2.col0 ) + - col1 * + col1 / col1 AS col2 FROM tab2
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-7806
SELECT DISTINCT col2 DIV ( - col1 ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT col2 / ( - col1 ) FROM tab0
----
0
query I rowsort
SELECT - col0 * 37 AS col2 FROM tab1 cor0
----
-111
-2368
-2960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7809
SELECT + ( col0 ) + + col0 DIV + 24 AS col2 FROM tab2 AS cor0
----
7
81
82
skipif mysql # not compatible
query I rowsort label-7809
SELECT + ( col0 ) + + col0 / + 24 AS col2 FROM tab2 AS cor0
----
7
81
82
query I rowsort
SELECT ( + cor0.col2 ) + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 63 + 21 col0 FROM tab2 AS cor0
----
-42
-42
-42
query I rowsort
SELECT - - 22 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2086
3417
8121
query I rowsort
SELECT 95 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT + - 57 + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1477
589
780
query I rowsort
SELECT 17 * - col2 AS col2 FROM tab0 AS cor0
----
-1394
-17
-561
query I rowsort
SELECT - - col1 * - 10 FROM tab2 AS cor0
----
-170
-310
-590
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 72 * + 63 col2 FROM tab1 AS cor0
----
4510
4523
4526
query I rowsort
SELECT 46 + + col2 AS col1 FROM tab1
----
100
103
142
query I rowsort
SELECT ALL 2 * col0 AS col0 FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-7821
SELECT + - col0 DIV + col0 + - col2 * - 41 FROM tab1 AS cor0
----
2213
2336
3935
skipif mysql # not compatible
query I rowsort label-7821
SELECT + - col0 / + col0 + - col2 * - 41 FROM tab1 AS cor0
----
2213
2336
3935
onlyif mysql # use DIV operator for integer division
query I rowsort label-7822
SELECT DISTINCT + 61 DIV - col0 FROM tab2 cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT + 61 / - col0 FROM tab2 cor0
----
-8
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 * col0 col1 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT + + col1 - col1 * ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7827
SELECT + + col1 * CAST( NULL AS SIGNED ) - + ( + col2 ) * 18 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7827
SELECT + + col1 * CAST ( NULL AS INTEGER ) - + ( + col2 ) * 18 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + tab0.col0 * + col0 ) AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - 97 * + col0 - - col1 * col0 * col0 FROM tab0
----
115430
47208
712178
query I rowsort
SELECT + - col1 - + col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + 39 * - tab2.col2 - col0 AS col0 FROM tab2
----
-1060
-1092
-1561
query I rowsort
SELECT DISTINCT tab1.col1 * + 59 * - col2 FROM tab1
----
-33630
-73632
-82836
query I rowsort
SELECT DISTINCT - col2 * 45 * + col1 FROM tab0
----
-127710
-335790
-4365
query I rowsort
SELECT + 19 * + 78 FROM tab2 AS cor0
----
1482
1482
1482
query I rowsort
SELECT ALL ( + col0 ) + - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - ( + col1 ) * + cor0.col2 * - ( col2 * + col0 ) FROM tab0 AS cor0
----
2247696
3395
54457676
query I rowsort
SELECT DISTINCT - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL 55 * 19 FROM tab0 AS cor0
----
1045
1045
1045
query I rowsort
SELECT + 20 * + col2 FROM tab2 AS cor0
----
520
540
760
query I rowsort
SELECT ALL + + 22 * col1 AS col2 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT ALL + col2 * - col1 * col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT tab0.col0 * 24 AS col2 FROM tab0
----
2136
576
840
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * ( + col2 ) / + tab2.col1 + CAST ( - col0 AS REAL ) + - col2 FROM tab2
----
-115
-201
-57
query I rowsort
SELECT + 75 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT ( 22 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 * col0 col2 FROM tab2
----
140
1560
1580
onlyif mysql # use DIV operator for integer division
query I rowsort label-7847
SELECT - - cor0.col2 + ( - col1 ) DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-7847
SELECT - - cor0.col2 + ( - col1 ) / + cor0.col2 AS col1 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT + col1 + 41 FROM tab0
----
127
132
138
query I rowsort
SELECT + ( 79 ) * + col1 FROM tab0 AS cor0
----
6794
7189
7663
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col2 * col2 col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT 31 * + col2 - + col1 AS col1 FROM tab2
----
1161
747
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) + + col2 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 col1 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 63 + col0 ) col1 FROM tab0
----
-28
-39
26
query I rowsort
SELECT tab1.col0 + 72 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 657cf027826a74501cf9393d31dbd69f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 11 ) * col1 col2 FROM tab0
----
-1001
-1067
-946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7857
SELECT + - CAST( col2 AS SIGNED ) col0 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7857
SELECT + - CAST ( col2 AS INTEGER ) col0 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - col0 col2 FROM tab2 AS cor0
----
-252
-2808
-2844
query I rowsort
SELECT DISTINCT + + col0 * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + col1 * cor0.col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + col2 * + cor0.col1 * - 88 AS col1 FROM tab0 AS cor0
----
-249744
-656656
-8536
query I rowsort
SELECT + + cor0.col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - ( + col0 ) + ( 58 ) * col1 AS col2 FROM tab2 AS cor0
----
1065
1805
3500
query I rowsort
SELECT DISTINCT - ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT ( + col2 ) * col1 + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-7866
SELECT ALL + 87 DIV + col1 FROM tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL + 87 / + col1 FROM tab2 AS cor0
----
1
2
5
query I rowsort
SELECT ALL ( col1 ) * 97 * + 6 AS col1 FROM tab2 AS cor0
----
18042
34338
9894
query I rowsort
SELECT DISTINCT + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7869
SELECT - + col0 + CAST( 78 + col1 AS SIGNED ) * + 63 * cor0.col0 FROM tab2 cor0
----
472736
48062
673140
skipif mysql # not compatible
query I rowsort label-7869
SELECT - + col0 + CAST ( 78 + col1 AS INTEGER ) * + 63 * cor0.col0 FROM tab2 cor0
----
472736
48062
673140
query I rowsort
SELECT + cor0.col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 * + col0 + + col0 col1 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT DISTINCT + col0 + + col1 * - col1 AS col2 FROM tab1 cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + col0 * 76 AS col0 FROM tab1 AS cor0
----
228
4864
6080
query I rowsort
SELECT ALL col0 * cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + + col1 + - col0 + + col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col2 + 0 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT - col1 * - ( col2 ) + col2 + - col2 DIV 71 AS col1 FROM tab0 AS cor0
----
2871
7543
98
skipif mysql # not compatible
query I rowsort label-7879
SELECT - col1 * - ( col2 ) + col2 + - col2 / 71 AS col1 FROM tab0 AS cor0
----
2871
7543
98
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - cor0.col1 + 14 * col2 AS col0 FROM tab1 cor0
----
1331
730
788
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7882
SELECT ALL - - 5 * + ( col0 ) + - CAST( + 44 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
131
401
76
skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL - - 5 * + ( col0 ) + - CAST ( + 44 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
131
401
76
query I rowsort
SELECT ALL 54 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32
query I rowsort
SELECT ALL + - 15 + col1 + + col1 FROM tab1 AS cor0
----
11
37
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7885
SELECT CAST( NULL AS SIGNED ) + + cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7885
SELECT CAST ( NULL AS INTEGER ) + + cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7887
SELECT + + CAST( NULL AS SIGNED ) + col0 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7887
SELECT + + CAST ( NULL AS INTEGER ) + col0 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
26
27
38
query I rowsort
SELECT - col2 - tab1.col0 * - col0 * + col2 AS col0 FROM tab1
----
233415
432
614304
query I rowsort
SELECT ALL + - col1 + + col2 * + cor0.col1 * + col0 FROM tab2 AS cor0
----
119593
51017
5828
query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + col2 - col1 * + col2 AS col0 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 67 + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1292
643
7988
query I rowsort
SELECT + col0 * - col0 - + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-1260
-1368
-15219
query I rowsort
SELECT ALL - + 3 * + col1 AS col0 FROM tab1 AS cor0
----
-30
-39
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7898
SELECT cor0.col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7898
SELECT cor0.col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7899
SELECT DISTINCT + col0 DIV - cor0.col1 AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + col0 / - cor0.col1 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + 83 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
574
6396
6478
onlyif mysql # use DIV operator for integer division
query I rowsort label-7901
SELECT - col1 + col0 DIV col0 FROM tab0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-7901
SELECT - col1 + col0 / col0 FROM tab0
----
-85
-90
-96
query I rowsort
SELECT col1 + col1 + + col0 * + tab1.col0 AS col2 FROM tab1
----
4116
61
6426
query I rowsort
SELECT DISTINCT 55 + col2 + col0 FROM tab2
----
159
172
89
query I rowsort
SELECT ALL - 70 * col2 AS col1 FROM tab0 AS cor0
----
-2310
-5740
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7905
SELECT + CAST( - col2 AS SIGNED ) col1 FROM tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7905
SELECT + CAST ( - col2 AS INTEGER ) col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - col0 + - 85 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
588
6552
6636
query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9
query I rowsort
SELECT ALL + 96 + 49 - col2 FROM tab2 AS cor0
----
107
118
119
onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT DISTINCT + 18 DIV 60 - - col1 col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT + 18 / 60 - - col1 col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - col1 * col0 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-7911
SELECT ALL + col1 DIV + ( col2 ) + + col1 FROM tab0 cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL + col1 / + ( col2 ) + + col1 FROM tab0 cor0
----
194
88
92
query I rowsort
SELECT DISTINCT col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7913
SELECT ALL - CAST( - col1 AS SIGNED ) FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL - CAST ( - col1 AS INTEGER ) FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 * + col1 AS REAL ) AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT 24 - col2 AS col0 FROM tab0 AS cor0
----
-58
-9
23
query I rowsort
SELECT col2 * ( + col0 ) AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT 70 + col1 FROM tab1
----
80
83
96
query I rowsort
SELECT ALL ( 0 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - - ( 98 ) AS col1 FROM tab1 AS cor0
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT + col1 + - ( col0 ) FROM tab0
----
2
62
62
query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE + col0 - + col0 * - col1 NOT BETWEEN ( NULL ) AND NULL
----
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( tab2.col1 * col0 )
----
query I rowsort
SELECT DISTINCT + col2 * + tab1.col1 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col2 * - col2 - - col0 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT ALL tab2.col0 FROM tab2 WHERE NOT ( + col1 ) NOT IN ( + col2 * col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 * col0 AND NULL
----
query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT tab2.col2 * + col0 + + col2 * col1 FROM tab2
----
1026
3562
3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-7930
SELECT ALL - tab2.col0 + col1 DIV col1 AS col2 FROM tab2
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL - tab2.col0 + col1 / col1 AS col2 FROM tab2
----
-6
-77
-78
query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0 WHERE NULL <= + col0 * col2
----
query I rowsort
SELECT DISTINCT + col1 * col2 + + col1 * + col0 FROM tab1
----
1210
1482
2288
query I rowsort
SELECT ALL col0 + col0 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col1 - tab0.col2 * tab0.col1 AS col2 FROM tab0 WHERE NOT ( - col1 ) NOT IN ( col0 * col0 * + col1 )
----
query I rowsort
SELECT ALL - col0 * col2 + + col0 * col0 FROM tab0 AS cor0
----
-216
1190
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-7936
SELECT DISTINCT col2 * col1 DIV + tab2.col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT col2 * col1 / + tab2.col1 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT col2 * - tab0.col2 AS col2 FROM tab0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col1 col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col0 * col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT - col1 * - col0 * - col0 AS col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT col2 + - col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT ALL - col0 + - col0 * cor0.col2 * col2 FROM tab2 AS cor0
----
-114155
-5110
-52806
query I rowsort
SELECT + + col1 * col1 * col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL + col2 * - col1 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT - - col0 + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - + col0 * + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 96 col1 FROM tab2 AS cor0
----
-122
-123
-134
query I rowsort
SELECT col2 + - ( col1 + + tab1.col1 ) * tab1.col1 AS col2 FROM tab1
----
-1298
-143
-242
query I rowsort
SELECT - + col2 + + cor0.col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7950
SELECT DISTINCT - col1 * + 15 + + 62 DIV - col0 FROM tab0 AS cor0
----
-1292
-1365
-1456
skipif mysql # not compatible
query I rowsort label-7950
SELECT DISTINCT - col1 * + 15 + + 62 / - col0 FROM tab0 AS cor0
----
-1292
-1365
-1456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-3
query I rowsort
SELECT + col0 * col2 * + col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + ( + 97 ) - cor0.col1 AS col2 FROM tab1 AS cor0
----
71
84
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7954
SELECT + CAST( + 62 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
62
62
62
skipif mysql # not compatible
query I rowsort label-7954
SELECT + CAST ( + 62 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
62
62
62
query I rowsort
SELECT ALL + 2 + - 16 FROM tab0 AS cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT 28 AS col2 FROM tab2, tab0 AS cor0
----
28
query I rowsort
SELECT - - col1 + + 4 * + col2 FROM tab1 AS cor0
----
238
242
397
query I rowsort
SELECT DISTINCT - - ( ( cor0.col0 ) ) FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 31 ) + - col0 col2 FROM tab0 AS cor0
----
-120
-55
-66
query I rowsort
SELECT DISTINCT + ( + 18 ) FROM tab2 AS cor0
----
18
query I rowsort
SELECT ALL + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7962
SELECT DISTINCT CAST( NULL AS SIGNED ) - tab1.col0 * cor0.col0 FROM tab1, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT CAST ( NULL AS INTEGER ) - tab1.col0 * cor0.col0 FROM tab1, tab2 AS cor0
----
NULL
query I rowsort
SELECT - col2 * col2 * - cor0.col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - - 9 + + cor0.col2 FROM tab0 AS cor0
----
10
42
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * 90 col0 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT - 44 * ( + col1 * ( + col1 ) ) AS col2 FROM tab2
----
-12716
-153164
-42284
query I rowsort
SELECT ( + col2 ) * tab0.col2 * - col0 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT 18 AS col0 FROM tab2
----
18
18
18
query I rowsort
SELECT + 7 * cor0.col2 + - 10 AS col0 FROM tab2 AS cor0
----
172
179
256
query I rowsort
SELECT ALL + 28 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT ALL - 28 AS col0 FROM tab1
----
-28
-28
-28
query I rowsort
SELECT - col0 + col2 * ( + 48 ) AS col2 FROM tab0 AS cor0
----
13
1560
3847
query I rowsort
SELECT ALL - 70 FROM tab2
----
-70
-70
-70
query I rowsort
SELECT col2 + col2 * - 0 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL + + col1 + - 9 FROM tab0 AS cor0
----
77
82
88
query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + col0 * 11 * col1 AS col2 FROM tab2 AS cor0
----
14773
2387
50622
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 * col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-10944
-25920
-90480
query I rowsort
SELECT DISTINCT - col1 + 74 AS col0 FROM tab2 AS cor0
----
15
43
57
query I rowsort
SELECT + col0 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT DISTINCT + col2 DIV - col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + col2 / - col0 FROM tab0 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7982
SELECT - col1 DIV - 73 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7982
SELECT - col1 / - 73 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT ALL col1 DIV + col0 + + 50 FROM tab1
----
50
50
58
skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL col1 / + col0 + + 50 FROM tab1
----
50
50
58
skipif mysql # not compatible
query I rowsort
SELECT ALL + tab0.col0 * tab0.col1 + - CAST ( - col2 * col0 AS REAL ) AS col0 FROM tab0
----
15397
2856
3430
query I rowsort
SELECT ALL col2 * 81 + cor0.col2 * col0 * col2 FROM tab2 AS cor0
----
117154
54834
7290
query I rowsort
SELECT DISTINCT - col1 * - ( cor0.col1 ) - col2 * - col1 * - col0 FROM tab2 AS cor0
----
-116171
-4898
-50745
query I rowsort
SELECT col0 * + col2 + col0 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - col0 + 37 * col2 AS col0 FROM tab1 AS cor0
----
1995
2045
3472
query I rowsort
SELECT ALL - - col2 * + 59 * + 83 FROM tab2 cor0
----
127322
132219
186086
query I rowsort
SELECT DISTINCT + col2 * ( + col2 ) + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL - col1 + col0 + 62 AS col0 FROM tab0 cor0
----
0
0
60
skipif mysql # not compatible
query I rowsort
SELECT - col2 * CAST ( col0 AS REAL ) + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT ALL + col1 - col1 DIV cor0.col2 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL + col1 - col1 / cor0.col2 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT ( - col0 * col2 ) + col1 - col0 FROM tab1
----
-139
-3702
-7747
onlyif mysql # use DIV operator for integer division
query I rowsort label-7996
SELECT + ( ( col1 ) ) DIV col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7996
SELECT + ( ( col1 ) ) / col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT - - 93 + + cor0.col2 * + col2 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
3012
3406
9389
query I rowsort
SELECT - 79 + - col1 + - col2 FROM tab0 AS cor0
----
-177
-198
-252
query I rowsort
SELECT - col0 * col1 + col0 - col1 FROM tab0 AS cor0
----
-2126
-3457
-8101
query I rowsort
SELECT ( + col0 ) + col0 * 68 FROM tab1
----
207
4416
5520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + + col2 * col0 - col0 col0 FROM tab1 cor0
----
105
3527
7504
onlyif mysql # use DIV operator for integer division
query I rowsort label-8002
SELECT + + col0 * cor0.col2 DIV 53 FROM tab1 AS cor0
----
144
3
68
skipif mysql # not compatible
query I rowsort label-8002
SELECT + + col0 * cor0.col2 / 53 FROM tab1 AS cor0
----
144
3
68
query I rowsort
SELECT - 34 + col0 AS col2 FROM tab2 AS cor0
----
-27
44
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8004
SELECT 76 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
10
skipif mysql # not compatible
query I rowsort label-8004
SELECT 76 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
10
query I rowsort
SELECT 44 + col0 FROM tab2 AS cor0
----
122
123
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 col2 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8007
SELECT DISTINCT - col1 DIV col1 AS col1 FROM tab2 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8007
SELECT DISTINCT - col1 / col1 AS col1 FROM tab2 cor0
----
-1
query I rowsort
SELECT + 52 * + col1 + + cor0.col2 FROM tab1 AS cor0
----
1406
577
772
query I rowsort
SELECT DISTINCT col2 * + tab1.col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL 39 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT + col1 * col2 + - col1 * 32 * + tab2.col2 AS col1 FROM tab2
----
-20026
-25947
-47554
query I rowsort
SELECT + + 50 * - col2 * - col2 FROM tab2 AS cor0
----
33800
36450
72200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8013
SELECT tab2.col0 * + CAST( 80 AS SIGNED ) + cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c95f352771985a5d325d640f7f81f96f
skipif mysql # not compatible
query I rowsort label-8013
SELECT tab2.col0 * + CAST ( 80 AS INTEGER ) + cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c95f352771985a5d325d640f7f81f96f
query I rowsort
SELECT - col0 + + col0 * + col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT - - 2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT tab2.col2 * col2 + tab2.col0 * 12 AS col2 FROM tab2
----
1612
2392
813
query I rowsort
SELECT + ( - 92 ) AS col2 FROM tab0
----
-92
-92
-92
query I rowsort
SELECT DISTINCT + 55 * 24 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
1320
query I rowsort
SELECT ALL - - 67 FROM tab1 AS cor0
----
67
67
67
query I rowsort
SELECT col0 * + cor0.col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-8021
SELECT col1 * col0 - - ( + 18 ) DIV col0 FROM tab1 AS cor0
----
1040
640
84
skipif mysql # not compatible
query I rowsort label-8021
SELECT col1 * col0 - - ( + 18 ) / col0 FROM tab1 AS cor0
----
1040
640
84
query I rowsort
SELECT - - cor0.col2 + col0 * - 35 FROM tab2 AS cor0
----
-218
-2704
-2727
query I rowsort
SELECT - - 91 * col2 AS col2 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT ALL 99 AS col1 FROM tab0 AS cor0
----
99
99
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8025
SELECT DISTINCT 63 + + cor0.col1 DIV col2 FROM tab0 cor0
----
160
64
65
skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT 63 + + cor0.col1 / col2 FROM tab0 cor0
----
160
64
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8026
SELECT col2 * col2 - CAST( NULL AS SIGNED ) * ( col1 + + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8026
SELECT col2 * col2 - CAST ( NULL AS INTEGER ) * ( col1 + + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( + col0 ) * 56 * col2 FROM tab1 AS cor0
----
204288
430080
9072
query I rowsort
SELECT ALL + + col2 * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL ( col1 ) * ( col0 ) - + col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - + col2 + col1 AS col0 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col2 * + 51 FROM tab2 AS cor0
----
1326
1377
1938
query I rowsort
SELECT - col0 + ( col0 ) * col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - - col0 * ( 89 ) * col0 + - ( 71 ) + + col0 * - col0 * - col1 FROM tab2 AS cor0
----
5809
661475
900361
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - 20 FROM tab0 cor0
----
-20
query I rowsort
SELECT + 56 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT - ( col1 ) * - col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8038
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8038
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 91 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT 16 * col2 * col0 AS col1 FROM tab1 AS cor0
----
122880
2592
58368
query I rowsort
SELECT - ( 1 ) FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 84 FROM tab2 cor0
----
-84
-84
-84
query I rowsort
SELECT 93 + 63 FROM tab0 AS cor0
----
156
156
156
query I rowsort
SELECT DISTINCT ( - col1 ) AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 82 * + 52 AS col1 FROM tab2 AS cor0
----
4264
4264
4264
query I rowsort
SELECT - 64 AS col1 FROM tab2 cor0
----
-64
-64
-64
query I rowsort
SELECT ( 52 ) * col2 + col1 + + col0 * - col1 * ( 41 * col0 ) FROM tab1 AS cor0
----
-1676386
-3406195
-6760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 col2 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT + + 33 * cor0.col2 FROM tab0 cor0
----
1089
2706
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-8050
SELECT - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8050
SELECT - col0 / col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col1 * col1 + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT + - col0 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT - 22 + col0 FROM tab0
----
13
2
67
query I rowsort
SELECT - 49 FROM tab1, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT + ( + col1 ) + + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + col1 * ( col0 * + col0 ) FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT col2 * ( - col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * + ( col1 ) col2 FROM tab1 AS cor0
----
43
622
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT - 77 DIV - 9 FROM tab2, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
skipif mysql # not compatible
query I rowsort label-8060
SELECT - 77 / - 9 FROM tab2, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor1.col1 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT - - tab2.col2 - + tab2.col2 FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
0
query I rowsort
SELECT ALL + tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - 87 + col2 FROM tab1 AS cor0
----
-30
-33
9
query I rowsort
SELECT - + 28 + col1 AS col0 FROM tab0 AS cor0
----
58
63
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-8066
SELECT cor0.col2 * col0 DIV + 18 FROM tab2 cor0
----
10
112
166
skipif mysql # not compatible
query I rowsort label-8066
SELECT cor0.col2 * col0 / + 18 FROM tab2 cor0
----
10
112
166
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 95 col1 FROM tab1
----
5130
5415
9120
query I rowsort
SELECT col2 * col1 + tab0.col0 * + col1 FROM tab0
----
15561
3492
4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-8069
SELECT ALL + + col2 * col1 - col0 DIV col0 FROM tab0 AS cor0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + + col2 * col1 - col0 / col0 FROM tab0 AS cor0
----
2837
7461
96
query I rowsort
SELECT DISTINCT col2 - + ( + 10 ) FROM tab2 AS cor0
----
16
17
28
query I rowsort
SELECT + col2 + ( col2 ) * - col1 * col1 FROM tab0 AS cor0
----
-244035
-678960
-9408
query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
20
query I rowsort
SELECT ALL cor0.col1 + - col0 * + col0 AS col1 FROM tab2 cor0
----
-18
-6025
-6224
query I rowsort
SELECT 84 * col1 - col2 * + col0 FROM tab0
----
346
6432
8113
query I rowsort
SELECT col1 * - col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-8076
SELECT cor0.col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8076
SELECT cor0.col0 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + cor0.col2 * col0 + + col1 * - cor0.col1 * col0 AS col1 FROM tab2 cor0
----
-25833
-273546
-6916
query I rowsort
SELECT + 39 * col2 AS col1 FROM tab2 AS cor0
----
1014
1053
1482
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 * + col2 col0 FROM tab2 AS cor0
----
624
648
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-8080
SELECT + - col0 + - col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-8080
SELECT + - col0 + - col2 / - col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8081
SELECT + + col0 + col1 DIV ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-8081
SELECT + + col0 + col1 / ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8082
SELECT - 86 DIV - col1 + col2 FROM tab0 cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-8082
SELECT - 86 / - col1 + col2 FROM tab0 cor0
----
1
34
82
query I rowsort
SELECT ALL - col2 + - col0 FROM tab1 cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8084
SELECT - - 37 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8084
SELECT - - 37 / + col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8085
SELECT + CAST( + col2 AS SIGNED ) * + col0 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-8085
SELECT + CAST ( + col2 AS INTEGER ) * + col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 7 AS col2 FROM tab0
----
-7
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1, tab0, tab0 cor0, tab2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + ( 49 * + col0 ) col2 FROM tab0 AS cor0
----
1143
1714
4279
query I rowsort
SELECT DISTINCT 61 * col0 FROM tab1
----
183
3904
4880
query I rowsort
SELECT ALL + + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + 51 AS col0 FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT - - 87 AS col1 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT ALL - 51 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
query I rowsort
SELECT DISTINCT + - 98 * col0 + - 4 + col1 AS col1 FROM tab1 AS cor0
----
-272
-6266
-7831
query I rowsort
SELECT ALL - + cor0.col0 * col2 * col1 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - + col1 + col0 * 26 AS col2 FROM tab2 AS cor0
----
151
1969
2037
query I rowsort
SELECT + - col2 + col0 * cor0.col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - 8 * col0 + + col0 FROM tab2 AS cor0
----
-49
-546
-553
onlyif mysql # use DIV operator for integer division
query I rowsort label-8099
SELECT ALL - - col2 DIV - cor0.col0 + + col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL - - col2 / - cor0.col0 + + col0 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT DISTINCT + 50 * col1 * col2 FROM tab1 AS cor0
----
28500
62400
70200
query I rowsort
SELECT + col1 + - col0 * 85 AS col1 FROM tab2 AS cor0
----
-564
-6571
-6698
onlyif mysql # use DIV operator for integer division
query I rowsort label-8102
SELECT + col1 DIV + cor0.col0 AS col2 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8102
SELECT + col1 / + cor0.col0 AS col2 FROM tab1 cor0
----
0
0
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8103
SELECT DISTINCT - 25 DIV col0 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT - 25 / col0 FROM tab2 AS cor0
----
-3
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8104
SELECT ALL col2 * - col0 + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL col2 * - col0 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col1 * + col2 * + 60 + + col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-169488
-440422
-5785
query I rowsort
SELECT - col2 + 57 AS col1 FROM tab1 AS cor0
----
-39
0
3
query I rowsort
SELECT + - col1 + + cor0.col0 * + 60 AS col1 FROM tab1 AS cor0
----
154
3830
4787
query I rowsort
SELECT 47 * + col1 AS col0 FROM tab1
----
1222
470
611
onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT DISTINCT - col2 + tab1.col2 DIV + col2 col0 FROM tab1
----
-53
-56
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT - col2 + tab1.col2 / + col2 col0 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT + col2 * col0 + + 41 + col1 FROM tab2 AS cor0
----
2128
261
3060
query I rowsort
SELECT ALL + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - - cor0.col0 * - col1 + - 52 FROM tab2 AS cor0
----
-1395
-269
-4654
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8113
SELECT DISTINCT col1 * - tab0.col1 + CAST( col1 * col0 AS SIGNED ) col0 FROM tab0
----
-182
-5332
-6014
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT col1 * - tab0.col1 + CAST ( col1 * col0 AS INTEGER ) col0 FROM tab0
----
-182
-5332
-6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-8114
SELECT ALL col2 DIV + col1 + - col1 FROM tab1
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL col2 / + col1 + - col1 FROM tab1
----
-24
-5
-6
query I rowsort
SELECT DISTINCT ( col1 ) + - col2 * 64 * col1 FROM tab0
----
-181546
-477477
-6111
onlyif mysql # use DIV operator for integer division
query I rowsort label-8116
SELECT ALL col0 + + col1 + ( col2 ) DIV col1 FROM tab2
----
137
38
98
skipif mysql # not compatible
query I rowsort label-8116
SELECT ALL col0 + + col1 + ( col2 ) / col1 FROM tab2
----
137
38
98
query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab0 cor0
----
82
query I rowsort
SELECT ALL ( col1 ) * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8119
SELECT ALL - - col1 * col2 DIV col1 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL - - col1 * col2 / col1 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - 23 + 80 * col0 FROM tab0 AS cor0
----
1897
2777
7097
query I rowsort
SELECT DISTINCT - - col1 + col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 - col2 AS col0 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT 80 FROM tab0 cor0
----
80
80
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8124
SELECT ALL 98 * col2 DIV - col1 FROM tab0 AS cor0
----
-1
-37
-88
skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL 98 * col2 / - col1 FROM tab0 AS cor0
----
-1
-37
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8125
SELECT ALL + col2 * + ( col1 ) + - ( + col1 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL + col2 * + ( col1 ) + - ( + col1 ) / + col1 AS col2 FROM tab0 AS cor0
----
2837
7461
96
query I rowsort
SELECT DISTINCT - + col0 - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + 14 AS col1 FROM tab0 cor0
----
14
14
14
query I rowsort
SELECT col0 + tab0.col2 * + col0 FROM tab0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8129
SELECT DISTINCT CAST( tab1.col0 AS SIGNED ) FROM tab1, tab0 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT CAST ( tab1.col0 AS INTEGER ) FROM tab1, tab0 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + 7 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
7
query I rowsort
SELECT ALL 10 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT + 58 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL - + cor0.col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + - col0 + + 51 AS col1 FROM tab0 AS cor0
----
-38
16
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL ( cor0.col1 ) + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + - col1 + - col1 AS col0 FROM tab2 cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8138
SELECT DISTINCT + ( + col0 ) DIV col1 AS col2 FROM tab1 cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT + ( + col0 ) / col1 AS col2 FROM tab1 cor0
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 70 col1 FROM tab2 AS cor0
----
101
129
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col1 FROM tab2 AS cor0
----
-83
-83
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8141
SELECT DISTINCT - col1 + - cor0.col2 * col0 DIV col2 FROM tab0 AS cor0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-8141
SELECT DISTINCT - col1 + - cor0.col2 * col0 / col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT - + col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8143
SELECT ALL - + cor0.col1 * + col0 * col1 + + cor0.col1 - CAST( col2 AS SIGNED ) * - col2 FROM tab1 cor0
----
-3141
-4291
914
skipif mysql # not compatible
query I rowsort label-8143
SELECT ALL - + cor0.col1 * + col0 * col1 + + cor0.col1 - CAST ( col2 AS INTEGER ) * - col2 FROM tab1 cor0
----
-3141
-4291
914
query I rowsort
SELECT + col2 * + col0 + + col1 FROM tab2
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + col0 col2 FROM tab0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8146
SELECT ALL - col0 + + col1 DIV col0 FROM tab1 AS cor0
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - col0 + + col1 / col0 FROM tab1 AS cor0
----
-64
-80
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8147
SELECT ALL + col2 * col2 * col1 + - col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
132
611885
93654
skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + col2 * col2 * col1 + - col0 / - col2 AS col1 FROM tab0 AS cor0
----
132
611885
93654
query I rowsort
SELECT DISTINCT + - cor0.col0 + col1 + + col2 AS col0 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT DISTINCT - - cor0.col0 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT col2 * + col2 * + col0 - col1 AS col0 FROM tab1 cor0
----
207926
737267
8722
query I rowsort
SELECT DISTINCT + col0 + 15 FROM tab0 AS cor0
----
104
39
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * - col1 + - col1 * + 24 + col0 col0 FROM tab1
----
-1272
-699
-816
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * col2 - col2 * col1 * col2 col1 FROM tab1
----
-115584
-29982
-73440
query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + - 52 AS col2 FROM tab1 AS cor0
----
-52
-52
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8157
SELECT ALL + - col2 + - col0 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + - col2 + - col0 / col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT 41 * + col2 AS col2 FROM tab0
----
1353
3362
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8159
SELECT - + col2 + + col2 * CAST( - ( col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
skipif mysql # not compatible
query I rowsort label-8159
SELECT - + col2 + + col2 * CAST ( - ( col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL - col2 * + col0 - - cor0.col1 * col1 FROM tab0 cor0
----
6604
9374
983
query I rowsort
SELECT ALL - cor0.col1 + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT col0 - + col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT - + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8163
SELECT - + col0 / col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8164
SELECT - - col1 + col1 DIV - 81 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8164
SELECT - - col1 + col1 / - 81 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8165
SELECT + col1 * col2 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8165
SELECT + col1 * col2 / cor0.col1 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
54
57
96
query I rowsort
SELECT - col1 * ( + col2 ) * col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + - col0 * + 10 FROM tab1 cor0
----
-30
-640
-800
query I rowsort
SELECT DISTINCT + 74 FROM tab0, tab1 AS cor0
----
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8170
SELECT CAST( NULL AS SIGNED ) * - col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8170
SELECT CAST ( NULL AS INTEGER ) * - col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8171
SELECT CAST( 68 AS SIGNED ) AS col2 FROM tab1
----
68
68
68
skipif mysql # not compatible
query I rowsort label-8171
SELECT CAST ( 68 AS INTEGER ) AS col2 FROM tab1
----
68
68
68
query I rowsort
SELECT ALL - ( + col1 ) + + col1 - col1 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8173
SELECT ALL + - CAST( - 86 AS SIGNED ) FROM tab1 cor0
----
86
86
86
skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL + - CAST ( - 86 AS INTEGER ) FROM tab1 cor0
----
86
86
86
query I rowsort
SELECT + cor0.col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + - col1 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + + col2 col0 FROM tab2 AS cor0
----
-47
-58
-59
query I rowsort
SELECT + + col2 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - - col1 * - col2 + - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT + 55 * + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a9ac1870cd1d3b91eef55464077bbaad
onlyif mysql # use DIV operator for integer division
query I rowsort label-8180
SELECT ALL col1 DIV + 53 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL col1 / + 53 FROM tab2
----
0
0
1
query I rowsort
SELECT 39 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-8182
SELECT ALL + - 29 DIV + col1 - - col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL + - 29 / + col1 - - col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - col0 + - 28 AS col1 FROM tab1 AS cor0
----
-108
-31
-92
query I rowsort
SELECT ALL + col1 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ( + 44 ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 19a2b9512177749564ba22ea2213fe3f
query I rowsort
SELECT ALL + col1 - + col1 * + col0 AS col0 FROM tab0
----
-1978
-3298
-8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8187
SELECT + CAST( NULL AS DECIMAL ) + 41 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8187
SELECT + CAST ( NULL AS REAL ) + 41 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col0 * + ( - col2 ) + + col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - col2 * col2 + col1 + + col0 AS col1 FROM tab2
----
-1348
-539
-691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 col2 FROM tab1, tab1 AS cor0
----
75
query I rowsort
SELECT - - ( + col2 ) + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + + ( col0 ) * cor0.col1 + col0 * - 45 FROM tab0 AS cor0
----
1820
4094
984
query I rowsort
SELECT DISTINCT + 21 + + col1 * + col1 FROM tab0 AS cor0
----
7417
8302
9430
query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab2, tab0 cor0
----
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8195
SELECT ALL + col0 DIV - col0 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + col0 / - col0 AS col1 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT ( + 28 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
28
query I rowsort
SELECT col0 * - col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8199
SELECT + col2 * - col2 + CAST( - col2 AS SIGNED ) FROM tab0
----
-1122
-2
-6806
skipif mysql # not compatible
query I rowsort label-8199
SELECT + col2 * - col2 + CAST ( - col2 AS INTEGER ) FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT col2 - + col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8201
SELECT col1 + col2 * 83 * + cor0.col2 + CAST( ( + col0 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
119948
56245
60545
skipif mysql # not compatible
query I rowsort label-8201
SELECT col1 + col2 * 83 * + cor0.col2 + CAST ( ( + col0 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
119948
56245
60545
query I rowsort
SELECT - col1 + cor0.col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
-61
7289
739
query I rowsort
SELECT - + col2 * + 1 + 94 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-10
-23
60
query I rowsort
SELECT col1 + ( - cor0.col1 ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8205
SELECT + + col0 + - 26 - - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
63
9
skipif mysql # not compatible
query I rowsort label-8205
SELECT + + col0 + - 26 - - col2 / + col0 AS col2 FROM tab0 AS cor0
----
-1
63
9
query I rowsort
SELECT DISTINCT + + cor0.col1 * - ( 52 ) * + col1 AS col0 FROM tab1 AS cor0
----
-35152
-5200
-8788
onlyif mysql # use DIV operator for integer division
query I rowsort label-8207
SELECT DISTINCT - col1 + + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT - col1 + + col0 / + col2 AS col1 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT - - col0 + + 40 FROM tab0 cor0
----
129
64
75
query I rowsort
SELECT ALL - col2 * col2 + tab2.col1 * col1 AS col2 FROM tab2
----
-1155
232
2805
onlyif mysql # use DIV operator for integer division
query I rowsort label-8210
SELECT - + col2 DIV 50 + col0 + col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-8210
SELECT - + col2 / 50 + col0 + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + - col0 - col1 * + col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT - + col1 - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL 67 FROM tab2, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT - col0 + - ( 71 ) FROM tab0 AS cor0
----
-106
-160
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8215
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + col2 * col1 col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + col2 * col1 col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8216
SELECT col1 DIV - 83 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8216
SELECT col1 / - 83 AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + col0 * - col0 * ( col0 + tab2.col2 * - 89 ) AS col0 FROM tab2
----
117404
13603824
20614023
query I rowsort
SELECT ALL col2 * 14 AS col1 FROM tab2 AS cor0
----
364
378
532
query I rowsort
SELECT DISTINCT + col2 * ( 14 ) FROM tab2 cor0
----
364
378
532
query I rowsort
SELECT DISTINCT - + col0 + + col1 FROM tab2 cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - 9 FROM tab2 AS cor0
----
-9
-9
-9
query I rowsort
SELECT - - ( col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + 85 * - ( col1 ) - col2 AS col2 FROM tab1 AS cor0
----
-1201
-2264
-907
query I rowsort
SELECT + 39 - col1 AS col2 FROM tab2 AS cor0
----
-20
22
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( 73 AS REAL ) * + col2 + col2 + - col1 col2 FROM tab1 AS cor0
----
3970
4208
7091
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 13 AS REAL ) FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT - 37 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-1221
-3034
-37
query I rowsort
SELECT ALL - ( + 50 ) FROM tab2 cor0
----
-50
-50
-50
query I rowsort
SELECT col2 * - col1 + col0 * + 27 FROM tab1 AS cor0
----
-1323
1158
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-8231
SELECT + col2 DIV + col0 + + col2 * 30 AS col0 FROM tab2 AS cor0
----
1140
780
813
skipif mysql # not compatible
query I rowsort label-8231
SELECT + col2 / + col0 + + col2 * 30 AS col0 FROM tab2 AS cor0
----
1140
780
813
query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8233
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - 6 + col1 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
1375
238
4622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8235
SELECT DISTINCT + - CAST( col0 AS SIGNED ) + col0 * 85 AS col1 FROM tab2 AS cor0
----
588
6552
6636
skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) + col0 * 85 AS col1 FROM tab2 AS cor0
----
588
6552
6636
query I rowsort
SELECT + col1 * ( col2 ) + col2 * col1 + - col2 FROM tab2
----
1254
1647
3042
query I rowsort
SELECT DISTINCT col0 - col0 * - 34 AS col0 FROM tab2
----
245
2730
2765
query I rowsort
SELECT + col2 * + 42 - col0 * col2 AS col1 FROM tab0 AS cor0
----
-3854
594
7
query I rowsort
SELECT DISTINCT col2 + col2 + + col1 AS col2 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT col0 * col0 + col0 + col0 FROM tab2
----
6240
63
6399
query I rowsort
SELECT ALL - + col1 + col1 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + cor0.col1 - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 73 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
1844
673
853
query I rowsort
SELECT + 4 + col0 AS col2 FROM tab0 cor0
----
28
39
93
query I rowsort
SELECT + - col1 + col1 * col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT - col0 + col1 * cor0.col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - - 97 FROM tab0 AS cor0
----
97
97
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8248
SELECT ALL - + 71 * + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL - + 71 * + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 20 * - col0 + + col0 + - col0 AS col2 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT + + 86 AS col2 FROM tab0 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT ( - col1 ) * 53 FROM tab2 AS cor0
----
-1643
-3127
-901
query I rowsort
SELECT ALL - col1 * + cor0.col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8253
SELECT ( - col2 ) + CAST( NULL AS SIGNED ) * + 13 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8253
SELECT ( - col2 ) + CAST ( NULL AS INTEGER ) * + 13 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8254
SELECT ALL - + 76 * + col2 * CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL - + 76 * + col2 * CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8255
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
query I rowsort
SELECT ALL - tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8257
SELECT ALL - col1 DIV - ( + col0 + col2 ) FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL - col1 / - ( + col0 + col2 ) FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT - col1 * 27 AS col2 FROM tab2 cor0
----
-1593
-459
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8259
SELECT DISTINCT - 6 DIV col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT - 6 / col1 FROM tab1
----
0
query I rowsort
SELECT - col1 * + 42 AS col1 FROM tab0
----
-3612
-3822
-4074
query I rowsort
SELECT DISTINCT + + 5 * + cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-39
263
304
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8262
SELECT ALL + CAST( col0 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL + CAST ( col0 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + ( 37 ) FROM tab0 AS cor0
----
37
37
37
query I rowsort
SELECT col1 + col0 + - col1 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 89 * col1 AS col2 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT ( - 87 ) + - col0 FROM tab0
----
-111
-122
-176
onlyif mysql # use DIV operator for integer division
query I rowsort label-8267
SELECT col0 + - col2 DIV col0 AS col0 FROM tab2
----
4
78
79
skipif mysql # not compatible
query I rowsort label-8267
SELECT col0 + - col2 / col0 AS col0 FROM tab2
----
4
78
79
query I rowsort
SELECT + col1 + - ( + col2 ) FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT + col0 * + 93 + col2 AS col0 FROM tab1 AS cor0
----
333
6009
7536
query I rowsort
SELECT ALL + col0 * - 58 + - col0 * cor0.col0 - + col2 * + col1 FROM tab2 AS cor0
----
-11469
-12142
-1292
query I rowsort
SELECT + + col2 + - ( + cor0.col1 ) * col2 * col0 FROM tab1 AS cor0
----
-36423
-4158
-99744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8272
SELECT - cor0.col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8272
SELECT - cor0.col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + 42 * - col2 AS col2 FROM tab0 AS cor0
----
-139
-1472
-3535
query I rowsort
SELECT + + cor0.col0 + ( col1 + - col2 ) AS col2 FROM tab2 AS cor0
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-8275
SELECT ALL + col0 DIV 97 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL + col0 / 97 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + - 53 AS col0 FROM tab1 AS cor0
----
1
4
43
query I rowsort
SELECT ALL col1 + - cor0.col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col2 + 78 AS col0 FROM tab2 AS cor0
----
40
51
52
query I rowsort
SELECT + col0 - col1 AS col0 FROM tab1
----
-23
54
67
query I rowsort
SELECT col0 * col1 + + 21 FROM tab2
----
1364
238
4623
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8281
SELECT + + col0 - - CAST( - col1 + col1 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8281
SELECT + + col0 - - CAST ( - col1 + col1 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8282
SELECT + col1 DIV col1 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8282
SELECT + col1 / col1 AS col2 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + col1 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT ALL col1 + col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL col1 * - ( 95 ) FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT DISTINCT + - col2 * - col1 - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-8288
SELECT - + col2 DIV - cor0.col1 + col2 col1 FROM tab1 AS cor0
----
103
56
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8288
SELECT - + col2 / - cor0.col1 + col2 col1 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT ALL col1 * - col1 * col0 FROM tab1 cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 AS col0 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT ALL + col1 + + col0 + col1 FROM tab1
----
106
55
84
query I rowsort
SELECT - + col2 * - col1 * col1 + col2 AS col0 FROM tab2 cor0
----
11020
25974
90532
query I rowsort
SELECT col0 * - col0 - + col1 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * tab2.col1 col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col1 - + col0 AS col2 FROM tab0
----
2
62
query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT ( col1 ) NOT IN ( col1 )
----
26
27
38
query I rowsort
SELECT - - col1 * col0 + cor0.col0 * + col1 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT - + col1 + col0 * - col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT - tab2.col2 * + col2 - col1 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT + + col0 * + col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col1 * col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT cor0.col2 * - tab2.col2 FROM tab2, tab0 cor0
----
9 values hashing to 4861385979e8c7c39397a7bae15e6e96
query I rowsort
SELECT + + cor0.col1 + col0 * col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + 61 * - col2 FROM tab0 AS cor0
----
-2013
-5002
-61
query I rowsort
SELECT DISTINCT - 20 FROM tab2 cor0
----
-20
query I rowsort
SELECT + cor0.col2 + - col0 * - col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT col1 * col2 + col0 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT + col0 * col2 * col0 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-8309
SELECT - - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8309
SELECT - - col2 / col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT 0 * + cor0.col1 + 96 FROM tab2 AS cor0
----
96
96
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8311
SELECT DISTINCT + + 75 DIV col0 col1 FROM tab1 AS cor0
----
0
1
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + + 75 / col0 col1 FROM tab1 AS cor0
----
0
1
25
query I rowsort
SELECT - cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8313
SELECT - col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8313
SELECT - col0 / - col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + ( 31 ) + - col1 * ( + 53 + + col2 ) FROM tab0 cor0
----
-4527
-4792
-5110
query I rowsort
SELECT ALL + 22 * col2 AS col1 FROM tab1 AS cor0
----
1188
1254
2112
onlyif mysql # use DIV operator for integer division
query I rowsort label-8316
SELECT DISTINCT + 40 DIV col0 + + col1 * col0 * + col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5864
skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT + 40 / col0 + + col1 * col0 * + col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5864
query I rowsort
SELECT ALL - 59 * col0 FROM tab2 AS cor0
----
-413
-4602
-4661
query I rowsort
SELECT DISTINCT - - 85 + cor0.col0 FROM tab0 AS cor0
----
109
120
174
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 * 15 - - 45 * col0 col2 FROM tab0 AS cor0
----
-117480
-29880
-49350
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL col2 * + ( + 73 ) FROM tab0 cor0
----
2409
5986
73
query I rowsort
SELECT col0 * 13 FROM tab2 AS cor0
----
1014
1027
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( 60 ) col2 FROM tab0 AS cor0
----
-22
27
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8324
SELECT - col2 * + col1 + - ( - col2 ) DIV col1 AS col0 FROM tab2 AS cor0
----
-1534
-644
-837
skipif mysql # not compatible
query I rowsort label-8324
SELECT - col2 * + col1 + - ( - col2 ) / col1 AS col0 FROM tab2 AS cor0
----
-1534
-644
-837
query I rowsort
SELECT DISTINCT + - col2 + + col2 * + cor0.col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL 43 + - col2 FROM tab0
----
-39
10
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8327
SELECT DISTINCT CAST( + col0 AS SIGNED ) + + col1 * col1 FROM tab2 AS cor0
----
3559
368
968
skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + + col1 * col1 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-8328
SELECT ALL col1 * + col1 + - col1 DIV col1 FROM tab2 AS cor0
----
288
3480
960
skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL col1 * + col1 + - col1 / col1 FROM tab2 AS cor0
----
288
3480
960
query I rowsort
SELECT DISTINCT col0 - - col0 * + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT 13 + 84 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
97
query I rowsort
SELECT DISTINCT 32 FROM tab1, tab2 AS cor0
----
32
query I rowsort
SELECT - col0 + + 62 * col0 FROM tab2
----
427
4758
4819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8333
SELECT ALL CAST( - col0 + - col0 AS SIGNED ) col1 FROM tab0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL CAST ( - col0 + - col0 AS INTEGER ) col1 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT tab2.col1 + 32 * - col1 AS col2 FROM tab2
----
-1829
-527
-961
query I rowsort
SELECT ( - col0 * - col0 ) + + ( + 15 ) * col2 FROM tab2
----
454
6474
6811
query I rowsort
SELECT ALL + 27 AS col2 FROM tab2
----
27
27
27
query I rowsort
SELECT DISTINCT - 6 FROM tab0
----
-6
query I rowsort
SELECT DISTINCT - 7 FROM tab0, tab1 AS cor0
----
-7
query I rowsort
SELECT DISTINCT + + 8 * - cor0.col2 - ( - col1 ) FROM tab1 AS cor0
----
-406
-446
-755
query I rowsort
SELECT DISTINCT - 12 * + 53 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-636
query I rowsort
SELECT ALL - ( col1 + col1 * col2 ) AS col2 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT 51 * + col2 + col0 * - tab2.col2 FROM tab2
----
-1064
-702
1188
query I rowsort
SELECT DISTINCT col2 * - col1 + + ( col0 ) - col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1019
-3484
-3569
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8344
SELECT DISTINCT - col2 + col2 + - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT - col2 + col2 + - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - ( + cor0.col1 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8346
SELECT DISTINCT col2 + col1 DIV tab0.col1 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT col2 + col1 / tab0.col1 AS col1 FROM tab0
----
2
34
83
query I rowsort
SELECT ALL - col0 * + 26 AS col0 FROM tab2 AS cor0
----
-182
-2028
-2054
onlyif mysql # use DIV operator for integer division
query I rowsort label-8348
SELECT - col2 + - col2 DIV + 24 AS col1 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-8348
SELECT - col2 + - col2 / + 24 AS col1 FROM tab2 AS cor0
----
-27
-28
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8349
SELECT ALL col0 DIV + 66 AS col2 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL col0 / + 66 AS col2 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT - 5 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e
query I rowsort
SELECT ALL - tab1.col2 + - 47 + - 44 FROM tab1
----
-145
-148
-187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 25 col1 FROM tab0 AS cor0
----
2050
25
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-8353
SELECT DISTINCT col2 + - ( - cor0.col2 ) DIV col1 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT col2 + - ( - cor0.col2 ) / col1 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT ALL + cor0.col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 71 * col2 FROM tab1 cor0
----
3834
4047
6816
query I rowsort
SELECT ALL - - 36 AS col1 FROM tab0 AS cor0
----
36
36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 + - ( col0 ) col0 FROM tab0 AS cor0
----
-110
-45
-56
query I rowsort
SELECT ALL + 12 AS col0 FROM tab1 AS cor0
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8360
SELECT ALL + + CAST( NULL AS SIGNED ) * - 13 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 13 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col0 * col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8362
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + ( cor0.col1 ) ) * - ( cor0.col1 * col2 ) AS col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - ( - col2 ) * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - 63 * col0 * + col1 AS col2 FROM tab1 cor0
----
40320
4914
65520
query I rowsort
SELECT ALL + - col1 * + 25 AS col0 FROM tab0 AS cor0
----
-2150
-2275
-2425
query I rowsort
SELECT cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT ( - col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) * col1 col2 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - ( 54 ) * col0 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266
query I rowsort
SELECT ALL col0 * 28 + + col0 FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT ALL + + col0 * 69 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT + - cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8375
SELECT ALL + col1 + + 50 + col2 * - CAST( + col0 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-36420
-4136
-99777
skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + col1 + + 50 + col2 * - CAST ( + col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-36420
-4136
-99777
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8376
SELECT ALL col1 * - 62 - - col2 * + CAST( + 16 AS SIGNED ) FROM tab1 AS cor0
----
-748
292
730
skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL col1 * - 62 - - col2 * + CAST ( + 16 AS INTEGER ) FROM tab1 AS cor0
----
-748
292
730
query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2, tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col1 + 73 AS col0 FROM tab0
----
-13
-18
-24
query I rowsort
SELECT ALL tab1.col0 * tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199
query I rowsort
SELECT ALL col1 * - 46 + - col0 AS col1 FROM tab2
----
-1433
-2792
-861
onlyif mysql # use DIV operator for integer division
query I rowsort label-8381
SELECT DISTINCT + col1 DIV + ( 71 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT + col1 / + ( 71 ) FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 * - col0 + + col1 * + col2 - - col2 col0 FROM tab2 AS cor0
----
159744
2187
237842
query I rowsort
SELECT ALL cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + - col1 + col2 * 77 AS col2 FROM tab1 AS cor0
----
4132
4379
7379
query I rowsort
SELECT ALL - 24 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8386
SELECT ALL + CAST( NULL AS SIGNED ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + ( col1 ) AS col2 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 97 col2 FROM tab2 AS cor0
----
-18
-19
-90
query I rowsort
SELECT + + ( - 99 ) * - col1 FROM tab2 cor0
----
1683
3069
5841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 48 + - 60 col1 FROM tab1 AS cor0
----
-12
-12
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-8391
SELECT ALL + - 83 + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-82
-83
-83
skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL + - 83 + col0 / col2 AS col2 FROM tab1 AS cor0
----
-82
-83
-83
query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab2 cor0
----
93
query I rowsort
SELECT col0 * col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 23 + - 97 * + col0 * cor0.col2 col1 FROM tab0 cor0
----
-3418
-707929
-76847
onlyif mysql # use DIV operator for integer division
query I rowsort label-8395
SELECT col0 DIV - col2 AS col0 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8395
SELECT col0 / - col2 AS col0 FROM tab1
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8396
SELECT - cor0.col1 DIV col2 + - col1 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-8396
SELECT - cor0.col1 / col2 + - col1 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT - 71 + col0 * col2 FROM tab2 AS cor0
----
118
1957
2931
query I rowsort
SELECT + - col2 * + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-8399
SELECT ALL - col1 DIV col1 + - col1 * + col0 FROM tab1 cor0
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL - col1 / col1 + - col1 * + col0 FROM tab1 cor0
----
-1041
-641
-79
query I rowsort
SELECT ALL - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + 85 * col1 + cor0.col2 FROM tab2 AS cor0
----
1483
2662
5041
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 * + 51 + + cor1.col0 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f72df566919d26bfc6537c10c1a32234
query I rowsort
SELECT col2 + col2 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-8404
SELECT DISTINCT + 7 + - cor0.col2 DIV + 57 + 93 AS col2 FROM tab1 AS cor0
----
100
99
skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT + 7 + - cor0.col2 / + 57 + 93 AS col2 FROM tab1 AS cor0
----
100
99
query I rowsort
SELECT ALL col0 - - cor0.col2 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col2 FROM tab2 AS cor0
----
82
82
82
query I rowsort
SELECT cor0.col2 + cor0.col1 * - 2 AS col2 FROM tab0 AS cor0
----
-100
-139
-193
query I rowsort
SELECT ALL + 26 + - col2 FROM tab2 AS cor0
----
-1
-12
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8409
SELECT ALL - + cor0.col0 DIV - col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL - + cor0.col0 / - col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT + + 79 * + col2 AS col2 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT + - 77 * col0 AS col1 FROM tab1 AS cor0
----
-231
-4928
-6160
query I rowsort
SELECT DISTINCT 45 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
45
query I rowsort
SELECT - - col2 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + 36 + - col0 AS col1 FROM tab1
----
-28
-44
33
query I rowsort
SELECT ALL 75 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - col0 * ( col0 * col0 ) AS col2 FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT ALL + col2 * 92 AS col2 FROM tab2 AS cor0
----
2392
2484
3496
query I rowsort
SELECT DISTINCT ( cor0.col2 ) + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT 63 + col1 FROM tab0
----
149
154
160
query I rowsort
SELECT + - 85 * - col1 + - ( col0 ) FROM tab0 cor0
----
7286
7646
8210
query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab0
----
70
query I rowsort
SELECT ALL + ( - col0 * 80 ) FROM tab1
----
-240
-5120
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-8424
SELECT DISTINCT tab1.col0 DIV - 88 AS col1 FROM tab1, tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT tab1.col0 / - 88 AS col1 FROM tab1, tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col0 FROM tab2
----
34
34
34
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col0 - tab2.col2 * - col2 )
----
query I rowsort
SELECT + col0 + - col2 * - col2 FROM tab1 WHERE NULL <= col0
----
query I rowsort
SELECT - col2 - col2 AS col1 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NULL < NULL
----
query I rowsort
SELECT col0 * - tab0.col1 AS col1 FROM tab0
----
-2064
-3395
-8099
query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <> ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = col1 * col1
----
query I rowsort
SELECT ALL - col1 + + col1 AS col2 FROM tab0 WHERE NULL < col1
----
query I rowsort
SELECT DISTINCT + col1 - - col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT col2 + - col0 * col0 AS col0 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT tab1.col0 + + col0 + + col0 FROM tab1
----
192
240
9
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * col2 IN ( col2 )
----
24
86
33
89
91
82
query I rowsort
SELECT DISTINCT 25 * - col0 FROM tab2 AS cor0
----
-175
-1950
-1975
query I rowsort
SELECT ALL + col0 + + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - + 5 + + col0 FROM tab1 AS cor0
----
-2
59
75
query I rowsort
SELECT DISTINCT - - ( - col0 ) * 99 AS col1 FROM tab2 AS cor0
----
-693
-7722
-7821
query I rowsort
SELECT col2 * col0 AS col1 FROM tab2 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT tab0.col0 + col1 + col2 AS col1 FROM tab0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-8444
SELECT col0 + col0 DIV 64 FROM tab2 cor0
----
7
79
80
skipif mysql # not compatible
query I rowsort label-8444
SELECT col0 + col0 / 64 FROM tab2 cor0
----
7
79
80
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) < - col0
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col1 / cor0.col1
----
query I rowsort
SELECT + col0 + + col2 * col0 FROM tab2 cor0
----
196
2106
3081
query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 ) < ( col2 / + col1 + + col2 * - col0 * - col1 )
----
query I rowsort
SELECT col2 + - col1 + - col0 FROM tab0 AS cor0
----
-131
-77
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8450
SELECT ALL + col1 DIV col1 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1344
218
4603
skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL + col1 / col1 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1344
218
4603
query I rowsort
SELECT DISTINCT col2 + + cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL cor0.col0 * - col0 - + col0 FROM tab0 AS cor0
----
-1260
-600
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-8453
SELECT ALL + col2 DIV + cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL + col2 / + cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6
query I rowsort
SELECT col2 * - col2 + col0 * - col2 + + cor0.col1 FROM tab0 AS cor0
----
-13931
-1795
61
query I rowsort
SELECT + col0 * + tab2.col0 - col2 AS col2 FROM tab2
----
22
6058
6203
query I rowsort
SELECT + col2 + + col1 * col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT - col0 + col1 * - col1 AS col1 FROM tab0
----
-7420
-8370
-9444
query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 / - col2 ) IN ( - tab0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT col1 + col0 + + col0 * - col0 AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( + col2 ) AND ( + col2 * col0 / col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8460
SELECT + tab0.col1 DIV col0 AS col1 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8460
SELECT + tab0.col1 / col0 AS col1 FROM tab0
----
1
2
3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( tab1.col1 )
----
query I rowsort
SELECT DISTINCT + col2 * + col2 * - col0 AS col0 FROM tab0
----
-26136
-35
-598436
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT + tab2.col2 * - col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE col1 + - col1 BETWEEN ( NULL ) AND col2 + - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + - col0 col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT col0 - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - - col1 + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - 92 * col0 + col2 FROM tab2 AS cor0
----
-617
-7150
-7230
query I rowsort
SELECT - col0 * col1 + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT ALL - 49 * 46 + col0 AS col0 FROM tab1 cor0
----
-2174
-2190
-2251
onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT + col0 DIV 17 + + cor0.col1 FROM tab2 AS cor0
----
21
31
63
skipif mysql # not compatible
query I rowsort label-8473
SELECT + col0 / 17 + + cor0.col1 FROM tab2 AS cor0
----
21
31
63
query I rowsort
SELECT ALL - - col0 * + col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT col0 + col0 * + col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT 16 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab0, tab0 AS cor0
----
21
query I rowsort
SELECT ( - 95 + col1 ) FROM tab1
----
-69
-82
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8479
SELECT CAST( NULL AS SIGNED ) * + col2 + col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8479
SELECT CAST ( NULL AS INTEGER ) * + col2 + col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * - 87 * + col2 + - col0 FROM tab2 cor0
----
-16450
-176514
-261253
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8481
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - - col0 + ( - cor0.col1 * 37 + 67 ) AS col2 FROM tab1 cor0
----
-239
-334
-892
query I rowsort
SELECT - - ( + 68 ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
127
85
99
query I rowsort
SELECT DISTINCT + col0 * - col0 + + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8485
SELECT - CAST( + col2 + + col2 AS SIGNED ) * col2 AS col2 FROM tab1
----
-18432
-5832
-6498
skipif mysql # not compatible
query I rowsort label-8485
SELECT - CAST ( + col2 + + col2 AS INTEGER ) * col2 AS col2 FROM tab1
----
-18432
-5832
-6498
query I rowsort
SELECT ( + col0 ) * col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + tab1.col2 * - col0 - + 96 FROM tab1
----
-258
-3744
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 + col0 * + col1 + col1 col1 FROM tab1
----
10
556
959
query I rowsort
SELECT 7 * col2 AS col0 FROM tab1
----
378
399
672
query I rowsort
SELECT DISTINCT col2 * - col1 - + col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT - tab2.col1 - col0 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - col2 - col1 AS col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT + col1 DIV + col2 AS col1 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-8494
SELECT + col1 / + col2 AS col1 FROM tab0
----
1
2
97
query I rowsort
SELECT 87 * col0 AS col2 FROM tab1
----
261
5568
6960
query I rowsort
SELECT DISTINCT + ( col2 ) * col1 * + col1 - + tab2.col0 AS col0 FROM tab2
----
10903
25940
90428
onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT DISTINCT + col2 DIV col1 + + col0 FROM tab2
----
7
78
81
skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT + col2 / col1 + + col0 FROM tab2
----
7
78
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
query I rowsort
SELECT - - col2 + - cor0.col2 * col2 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + col0 * + 74 AS col2 FROM tab0 cor0
----
1776
2590
6586
query I rowsort
SELECT - cor0.col2 + col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT col1 * col1 + col2 + - col0 AS col0 FROM tab1 AS cor0
----
185
727
93
query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8504
SELECT DISTINCT + col2 * CAST( NULL AS DECIMAL ) + 4 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT + col2 * CAST ( NULL AS REAL ) + 4 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT - + cor0.col0 + - ( col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL col2 * 1 - + cor0.col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + + col2 * col0 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT col1 + 58 FROM tab0 AS cor0
----
144
149
155
query I rowsort
SELECT DISTINCT - + col2 + 68 AS col0 FROM tab0 AS cor0
----
-14
35
67
query I rowsort
SELECT + - col2 + + ( + ( col2 ) ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 * 45 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1399
-3599
52
query I rowsort
SELECT DISTINCT - - cor0.col1 * 81 * cor0.col1 FROM tab1 AS cor0
----
13689
54756
8100
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8513
SELECT col2 * CAST( 10 AS SIGNED ) col1 FROM tab0 AS cor0
----
10
330
820
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8513
SELECT col2 * CAST ( 10 AS INTEGER ) col1 FROM tab0 AS cor0
----
10
330
820
query I rowsort
SELECT ALL + - col2 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT + - 35 AS col1 FROM tab1 cor0
----
-35
-35
-35
query I rowsort
SELECT ALL ( - 85 ) AS col0 FROM tab2
----
-85
-85
-85
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8518
SELECT + col1 DIV col0 AS col2 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8518
SELECT + col1 / col0 AS col2 FROM tab2
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * - col0 col2 FROM tab0
----
-1152
-1680
-4272
onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT + 2 DIV col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8520
SELECT + 2 / col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 72 + + tab2.col1 * 7 * - tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to fabc27a7ea3c5c26eb5f042ba253629e
query I rowsort
SELECT + 32 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 31 + + col2 col0 FROM tab0
----
2699
2903
3008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 45 * + 70 col1 FROM tab1
----
3153
3214
3230
query I rowsort
SELECT - cor0.col2 - 73 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to f0d6f58c7529c2976dbb64a25ead8b44
query I rowsort
SELECT - 69 FROM tab1, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT ALL - col1 * - ( - 58 + col2 ) FROM tab1 AS cor0
----
-10
-104
494
query I rowsort
SELECT ALL - + col0 * - col1 + + 89 * + cor0.col0 FROM tab1 AS cor0
----
345
6336
8160
query I rowsort
SELECT DISTINCT tab1.col2 * + ( + 22 ) AS col1 FROM tab1
----
1188
1254
2112
query I rowsort
SELECT ALL + + col2 + cor0.col1 - + col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + ( col0 ) * col2 + col2 * cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
157626
188841
892416
query I rowsort
SELECT DISTINCT 8 * + col1 FROM tab2 AS cor0
----
136
248
472
query I rowsort
SELECT ALL - + 28 + col2 FROM tab2 AS cor0
----
-1
-2
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8535
SELECT ALL + + CAST( + col0 AS SIGNED ) - - col1 AS col1 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + + CAST ( + col0 AS INTEGER ) - - col1 AS col1 FROM tab2 cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8536
SELECT + - CAST( 47 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-47
-47
-47
skipif mysql # not compatible
query I rowsort label-8536
SELECT + - CAST ( 47 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-47
-47
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + col2 * - 54 col0 FROM tab0 AS cor0
----
282
3341
3671
query I rowsort
SELECT + + col1 + 33 AS col1 FROM tab2 AS cor0
----
50
64
92
query I rowsort
SELECT - 39 * - cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
288444
322959
366951
query I rowsort
SELECT ALL ( - col2 ) + col0 + + col0 FROM tab0
----
15
69
96
query I rowsort
SELECT ALL + 37 + col2 * + tab1.col0 + - col2 AS col0 FROM tab1
----
145
3628
7621
query I rowsort
SELECT ALL col0 * 11 * - col0 AS col1 FROM tab1
----
-45056
-70400
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8543
SELECT - CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8543
SELECT - CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + col0 * - 6 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT + - col1 + cor0.col1 * - 99 FROM tab0 AS cor0
----
-8600
-9100
-9700
query I rowsort
SELECT col2 + + col0 * 29 FROM tab1 AS cor0
----
141
1913
2416
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8547
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8547
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( 6 ) FROM tab0
----
6
6
6
query I rowsort
SELECT ALL + + 55 + - cor0.col0 AS col1 FROM tab0 cor0
----
-34
20
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8550
SELECT 42 * - cor0.col1 + + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8550
SELECT 42 * - cor0.col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 21 * + col1 AS col0 FROM tab1 AS cor0
----
-210
-273
-546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8552
SELECT DISTINCT + + cor0.col1 * - col1 * - CAST( col2 * col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
55681444
8054244
9409
skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT + + cor0.col1 * - col1 * - CAST ( col2 * col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
55681444
8054244
9409
query I rowsort
SELECT - 18 + + col1 * + col1 FROM tab1 AS cor0
----
151
658
82
query I rowsort
SELECT - col0 + ( col2 ) FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8555
SELECT col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-8555
SELECT col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8556
SELECT col2 + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8556
SELECT col2 + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 - + col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8559
SELECT + + col0 + 56 + ( + col2 ) * col1 DIV + col0 FROM tab0 AS cor0
----
198
228
93
skipif mysql # not compatible
query I rowsort label-8559
SELECT + + col0 + 56 + ( + col2 ) * col1 / + col0 FROM tab0 AS cor0
----
198
228
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT + col0 DIV 5 FROM tab2 AS cor0
----
1
15
15
skipif mysql # not compatible
query I rowsort label-8560
SELECT + col0 / 5 FROM tab2 AS cor0
----
1
15
15
query I rowsort
SELECT col0 - + col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8562
SELECT + col0 * + CAST( 56 AS SIGNED ) AS col0 FROM tab2 cor0
----
392
4368
4424
skipif mysql # not compatible
query I rowsort label-8562
SELECT + col0 * + CAST ( 56 AS INTEGER ) AS col0 FROM tab2 cor0
----
392
4368
4424
query I rowsort
SELECT DISTINCT + col1 * - col1 + 43 + col2 FROM tab1
----
-30
-579
0
query I rowsort
SELECT + 83 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT + + 92 + 25 FROM tab0 AS cor0
----
117
117
117
query I rowsort
SELECT 71 + + col2 FROM tab0 AS cor0
----
104
153
72
query I rowsort
SELECT 32 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8568
SELECT ALL + + col1 DIV - 75 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + + col1 / - 75 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 16 * col0 FROM tab0
----
1424
384
560
query I rowsort
SELECT DISTINCT 89 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8571
SELECT ALL + col1 DIV + col0 + - 44 FROM tab2 cor0
----
-40
-44
-44
skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL + col1 / + col0 + - 44 FROM tab2 cor0
----
-40
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col1 col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - + cor0.col2 * 86 AS col2 FROM tab0 AS cor0
----
-2838
-7052
-86
query I rowsort
SELECT ALL col1 * col2 + + col2 * + col0 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT DISTINCT + + cor0.col0 * ( 30 ) FROM tab2 AS cor0
----
210
2340
2370
query I rowsort
SELECT ALL - - col1 + + 57 FROM tab2 AS cor0
----
116
74
88
query I rowsort
SELECT + col1 + 51 FROM tab1 cor0
----
61
64
77
query I rowsort
SELECT ALL 24 + + col2 FROM tab2
----
50
51
62
query I rowsort
SELECT ALL ( + col2 ) + ( col0 ) FROM tab2
----
104
117
34
query I rowsort
SELECT - col1 + col0 * + col0 AS col2 FROM tab0
----
1128
490
7830
query I rowsort
SELECT tab0.col1 + ( - ( - col0 ) ) * - col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT col0 + 8 FROM tab2 AS cor0
----
15
86
87
query I rowsort
SELECT - col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL col0 + 69 * + col1 FROM tab2 AS cor0
----
1252
2146
4149
query I rowsort
SELECT DISTINCT + + col1 + + 23 * - ( col1 * - col0 ) AS col0 FROM tab1 AS cor0
----
14730
1820
23933
query I rowsort
SELECT + - col2 + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col2 * 95 + col0 + + cor0.col0 FROM tab1 AS cor0
----
-5124
-5287
-8960
onlyif mysql # use DIV operator for integer division
query I rowsort label-8588
SELECT DISTINCT - col0 - - 40 DIV col2 FROM tab0 AS cor0
----
-23
-89
5
skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT - col0 - - 40 / col2 FROM tab0 AS cor0
----
-23
-89
5
query I rowsort
SELECT - col2 * col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 - - col1 col1 FROM tab1
----
18
21
34
query I rowsort
SELECT ALL 93 + 21 - - col0 * - col0 AS col1 FROM tab2
----
-5970
-6127
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8592
SELECT - + ( + ( col1 ) ) DIV cor0.col0 - + 61 * col1 AS col1 FROM tab0 AS cor0
----
-5249
-5552
-5919
skipif mysql # not compatible
query I rowsort label-8592
SELECT - + ( + ( col1 ) ) / cor0.col0 - + 61 * col1 AS col1 FROM tab0 AS cor0
----
-5249
-5552
-5919
query I rowsort
SELECT - + cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + + 88 AS col0 FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT + 23 + col0 * cor0.col0 AS col0 FROM tab0 cor0
----
1248
599
7944
query I rowsort
SELECT 5 * col0 AS col2 FROM tab2 AS cor0
----
35
390
395
onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT + col0 * col2 DIV col1 + ( + col1 ) * - col0 FROM tab2 AS cor0
----
-1167
-211
-4568
skipif mysql # not compatible
query I rowsort label-8597
SELECT + col0 * col2 / col1 + ( + col1 ) * - col0 FROM tab2 AS cor0
----
-1167
-211
-4568
query I rowsort
SELECT DISTINCT + + ( col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 + - col0 * + ( col1 ) FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + + 9 * + cor0.col2 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT 70 AS col1 FROM tab0 AS cor0
----
70
70
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col1 FROM tab0 AS cor0
----
86
86
86
query I rowsort
SELECT + 51 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT + 99 DIV col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8604
SELECT + 99 / col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL + 58 * - col0 AS col2 FROM tab0 AS cor0
----
-1392
-2030
-5162
onlyif mysql # use DIV operator for integer division
query I rowsort label-8606
SELECT + col1 DIV col0 + col0 + 59 DIV + col1 FROM tab2 AS cor0
----
12
79
82
skipif mysql # not compatible
query I rowsort label-8606
SELECT + col1 / col0 + col0 + 59 / + col1 FROM tab2 AS cor0
----
12
79
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 26 col0 FROM tab0 cor0
----
26
query I rowsort
SELECT DISTINCT - col0 * col1 + + 20 FROM tab1 AS cor0
----
-1020
-58
-620
query I rowsort
SELECT DISTINCT + - 22 + + cor0.col2 FROM tab0 AS cor0
----
-21
11
60
query I rowsort
SELECT DISTINCT col1 + - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-80
29
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * - ( col0 ) * col2 col0 FROM tab2 AS cor0
----
-113997
-5096
-52650
query I rowsort
SELECT DISTINCT 88 + col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
41
5
60
query I rowsort
SELECT + col2 * + col0 * - 46 FROM tab0 AS cor0
----
-1610
-335708
-36432
query I rowsort
SELECT - - col0 + ( + 1 ) * col1 FROM tab1 cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8615
SELECT ALL + CAST( NULL AS DECIMAL ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + CAST ( NULL AS REAL ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9
query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
17
31
59
query I rowsort
SELECT + 21 AS col2 FROM tab2 AS cor0
----
21
21
21
query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT ALL - 92 + + cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e6b163940db75feb679cc807b786d554
query I rowsort
SELECT ALL + 27 * + col0 * col2 AS col2 FROM tab0 AS cor0
----
197046
21384
945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8622
SELECT + CAST( NULL AS SIGNED ) * col1 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8622
SELECT + CAST ( NULL AS INTEGER ) * col1 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8623
SELECT + CAST( NULL AS DECIMAL ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8623
SELECT + CAST ( NULL AS REAL ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8624
SELECT - col2 + + col0 DIV col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8624
SELECT - col2 + + col0 / col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT ( - col0 ) * col1 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ( col2 ) + + col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8627
SELECT + 91 + col1 - 31 DIV col1 FROM tab1 AS cor0
----
102
116
98
skipif mysql # not compatible
query I rowsort label-8627
SELECT + 91 + col1 - 31 / col1 FROM tab1 AS cor0
----
102
116
98
query I rowsort
SELECT + col1 * + col0 + 16 FROM tab0 AS cor0
----
2080
3411
8115
onlyif mysql # use DIV operator for integer division
query I rowsort label-8629
SELECT ALL + col2 DIV tab0.col0 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL + col2 / tab0.col0 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT 46 * - cor0.col1 + col2 + col1 FROM tab0 AS cor0
----
-3837
-4013
-4364
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT 34 * - tab1.col1 + col1 * - col1 AS col1 FROM tab1
----
-1560
-440
-611
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
query I rowsort
SELECT - ( + 73 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 71d467ba3372dfdd21847af1687c92e7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT - - cor0.col1 + cor0.col1 DIV - col0 col2 FROM tab0 AS cor0
----
83
90
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8636
SELECT - - cor0.col1 + cor0.col1 / - col0 col2 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT ALL - col0 + - 48 AS col0 FROM tab2 AS cor0
----
-126
-127
-55
onlyif mysql # use DIV operator for integer division
query I rowsort label-8638
SELECT - - col0 * + col2 + cor0.col1 + col0 DIV 29 AS col0 FROM tab1 AS cor0
----
188
3660
7695
skipif mysql # not compatible
query I rowsort label-8638
SELECT - - col0 * + col2 + cor0.col1 + col0 / 29 AS col0 FROM tab1 AS cor0
----
188
3660
7695
query I rowsort
SELECT DISTINCT + ( cor1.col2 ) * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e15c44d5a431966f2851e6bf4041b374
onlyif mysql # use DIV operator for integer division
query I rowsort label-8640
SELECT - CAST( + col1 AS SIGNED ) + col1 DIV - col2 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-8640
SELECT - CAST ( + col1 AS INTEGER ) + col1 / - col2 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT 56 * ( - col1 ) FROM tab2 cor0
----
-1736
-3304
-952
query I rowsort
SELECT DISTINCT tab1.col2 * - col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + tab0.col0 + + col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - 31 + + col1 AS col1 FROM tab2
----
-14
0
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8645
SELECT - ( - col0 ) + - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8645
SELECT - ( - col0 ) + - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 30 FROM tab2, tab2 AS cor0
----
-30
query I rowsort
SELECT DISTINCT 79 + 70 * + col2 AS col0 FROM tab1
----
3859
4069
6799
query I rowsort
SELECT - + 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT DISTINCT - ( col2 ) * + 15 + + col0 AS col1 FROM tab0 AS cor0
----
-1141
-471
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT col1 + col1 DIV + 87 col2 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8650
SELECT col1 + col1 / + 87 col2 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col0 col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - 38 FROM tab2 AS cor0
----
-38
-38
-38
query I rowsort
SELECT + col2 * + col2 + - ( col1 ) * + col2 AS col1 FROM tab2 cor0
----
-108
-858
798
query I rowsort
SELECT ALL col0 - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col2 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - ( - col1 ) * - col2 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col0 * - ( 9 ) + col1 * - 51 FROM tab0 AS cor0
----
-4602
-5262
-5442
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8658
SELECT ALL - 87 * col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL - 87 * col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - tab2.col0 ) AS col2 FROM tab2, tab1, tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8660
SELECT DISTINCT - 90 DIV col0 - col1 * tab0.col0 FROM tab0
----
-2067
-3397
-8100
skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT - 90 / col0 - col1 * tab0.col0 FROM tab0
----
-2067
-3397
-8100
query I rowsort
SELECT col0 + - tab0.col1 * + col2 - + tab0.col2 AS col0 FROM tab0
----
-2847
-63
-7455
query I rowsort
SELECT - col2 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
251
3455
934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 51 * - col1 + - col2 col1 FROM tab1 cor0
----
-32697
-4032
-53136
query I rowsort
SELECT ALL col2 * + 0 + + col1 * - col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT tab0.col0 + + 17 AS col2 FROM tab0
----
106
41
52
query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab1, tab1 AS cor0
----
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8667
SELECT - col1 DIV + tab2.col1 - + col0 DIV col1 FROM tab2
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-8667
SELECT - col1 / + tab2.col1 - + col0 / col1 FROM tab2
----
-1
-2
-5
query I rowsort
SELECT 56 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT ALL - col0 * 65 AS col2 FROM tab2 AS cor0
----
-455
-5070
-5135
onlyif mysql # use DIV operator for integer division
query I rowsort label-8670
SELECT - col0 * 3 DIV cor0.col1 + col1 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-234
-40979
-83218
skipif mysql # not compatible
query I rowsort label-8670
SELECT - col0 * 3 / cor0.col1 + col1 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-234
-40979
-83218
query I rowsort
SELECT DISTINCT col2 + + 93 FROM tab0 AS cor0
----
126
175
94
query I rowsort
SELECT + + col1 + cor0.col2 * + col0 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 31 + + 69 * + col0 col1 FROM tab1 cor0
----
300
6400
8000
query I rowsort
SELECT + + col0 * 90 + + 61 AS col1 FROM tab2 AS cor0
----
691
7081
7171
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8675
SELECT DISTINCT CAST( + 14 AS SIGNED ) FROM tab1
----
14
skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT CAST ( + 14 AS INTEGER ) FROM tab1
----
14
query I rowsort
SELECT - 91 FROM tab0
----
-91
-91
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8677
SELECT + - col1 DIV - col2 col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8677
SELECT + - col1 / - col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * - 62 AS col1 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT DISTINCT 4 * - col1 FROM tab1
----
-104
-40
-52
query I rowsort
SELECT + col1 + col1 + + col1 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT - - cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab2, tab2 cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8683
SELECT + + CAST( NULL AS DECIMAL ) * ( - col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8683
SELECT + + CAST ( NULL AS REAL ) * ( - col0 ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * 62 + col2 * ( col2 ) FROM tab0 AS cor0
----
12366
6015
6421
onlyif mysql # use DIV operator for integer division
query I rowsort label-8685
SELECT DISTINCT + + col1 + + col2 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT + + col1 + + col2 / cor0.col0 AS col2 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + col2 * - 70 FROM tab0 AS cor0
----
-1221
-69
984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8687
SELECT CAST( col0 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8687
SELECT CAST ( col0 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + 27 - + 18 AS col1 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT + 55 + - col0 * col1 FROM tab2 AS cor0
----
-1288
-162
-4547
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - 13 * - 37 AS col1 FROM tab0 cor0
----
481
481
481
query I rowsort
SELECT ALL - - col1 + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8693
SELECT DISTINCT + - CAST( col1 AS SIGNED ) DIV + cor0.col0 + 99 * col1 AS col2 FROM tab2 AS cor0
----
1683
3065
5841
skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) / + cor0.col0 + 99 * col1 AS col2 FROM tab2 AS cor0
----
1683
3065
5841
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8694
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + 68 FROM tab0 AS cor0
----
-21
33
44
query I rowsort
SELECT DISTINCT col2 + 75 FROM tab0 AS cor0
----
108
157
76
query I rowsort
SELECT ALL + 71 * - col2 - + col1 AS col1 FROM tab1 AS cor0
----
-3860
-4057
-6829
query I rowsort
SELECT DISTINCT ( - 45 ) * - col0 FROM tab0 AS cor0
----
1080
1575
4005
query I rowsort
SELECT DISTINCT - tab1.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-54
-57
-96
query I rowsort
SELECT 95 - - col2 AS col0 FROM tab0
----
128
177
96
query I rowsort
SELECT 60 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT + col1 * - col0 + col2 + col1 FROM tab1
----
-573
-931
2
query I rowsort
SELECT DISTINCT 5 + col1 FROM tab1
----
15
18
31
query I rowsort
SELECT - ( 69 ) FROM tab0 AS cor0
----
-69
-69
-69
query I rowsort
SELECT + cor0.col1 * - 90 FROM tab0 AS cor0
----
-7740
-8190
-8730
query I rowsort
SELECT DISTINCT + ( tab1.col2 ) + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + + 24 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
24
query I rowsort
SELECT ALL tab2.col1 + 8 FROM tab2
----
25
39
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT col1 + 91 + - ( + col0 ) DIV + 25 FROM tab0
----
177
179
187
skipif mysql # not compatible
query I rowsort label-8709
SELECT col1 + 91 + - ( + col0 ) / + 25 FROM tab0
----
177
179
187
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab1, tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col2 - + ( col1 ) AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + col0 + + col0 * col0 FROM tab2
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8713
SELECT - col1 + CAST( col2 AS SIGNED ) DIV + col0 + - 62 AS col0 FROM tab1
----
-70
-72
-74
skipif mysql # not compatible
query I rowsort label-8713
SELECT - col1 + CAST ( col2 AS INTEGER ) / + col0 + - 62 AS col0 FROM tab1
----
-70
-72
-74
query I rowsort
SELECT DISTINCT + col0 * 73 AS col0 FROM tab2 AS cor0
----
511
5694
5767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col1 FROM tab2 cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor2.col0 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT + cor0.col0 * 14 + col2 AS col2 FROM tab2 AS cor0
----
1118
1144
125
query I rowsort
SELECT DISTINCT - - col0 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL + + cor0.col0 + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - - cor0.col0 + col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + cor0.col0 * 89 AS col2 FROM tab2 AS cor0
----
623
6942
7031
query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 * - col1 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - 5 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT ALL - col1 - + col1 AS col1 FROM tab0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-8726
SELECT ALL - col1 - ( 7 ) DIV + col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL - col1 - ( 7 ) / + col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col0 + - 99 * + col0 * col0 AS col1 FROM tab0 AS cor0
----
-121240
-57000
-784090
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + + cor0.col1 + - 63 * - col0 FROM tab2 AS cor0
----
472
4973
4994
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8730
SELECT - col0 + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8730
SELECT - col0 + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8731
SELECT col2 + col2 DIV - 11 AS col1 FROM tab1
----
50
52
88
skipif mysql # not compatible
query I rowsort label-8731
SELECT col2 + col2 / - 11 AS col1 FROM tab1
----
50
52
88
query I rowsort
SELECT DISTINCT - cor0.col2 * + 18 FROM tab0 AS cor0
----
-1476
-18
-594
query I rowsort
SELECT ALL - 50 * col0 * + col2 AS col2 FROM tab0 cor0
----
-1750
-364900
-39600
query I rowsort
SELECT DISTINCT + col0 * 1 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8735
SELECT CAST( NULL AS SIGNED ) * col1 - cor0.col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8735
SELECT CAST ( NULL AS INTEGER ) * col1 - cor0.col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + ( 86 ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
140
143
182
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8737
SELECT ALL - CAST( - 37 AS SIGNED ) * - col0 + - 43 FROM tab0 cor0
----
-1338
-3336
-931
skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - CAST ( - 37 AS INTEGER ) * - col0 + - 43 FROM tab0 cor0
----
-1338
-3336
-931
query I rowsort
SELECT - 99 + col1 FROM tab2 cor0
----
-40
-68
-82
query I rowsort
SELECT - - ( cor0.col2 ) * + col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT 97 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
97
query I rowsort
SELECT - + 3 + ( + col2 ) + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2094
3393
8178
query I rowsort
SELECT col0 * col0 * col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT - + 13 AS col0 FROM tab2 AS cor0
----
-13
query I rowsort
SELECT - col0 + + cor0.col2 * col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT - 71 AS col2 FROM tab0
----
-71
-71
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab2
----
-51
query I rowsort
SELECT ALL - ( col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL col0 + + cor0.col1 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - 76 + - col2 + + col2 FROM tab0 AS cor0
----
-76
-76
-76
query I rowsort
SELECT DISTINCT - + 44 AS col0 FROM tab2 AS cor0
----
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 + 24 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
query I rowsort
SELECT ALL - 63 + col1 FROM tab0 cor0
----
23
28
34
query I rowsort
SELECT ALL + - col0 * - col1 + - col1 + col0 * - col0 FROM tab2 AS cor0
----
-1541
-4915
137
onlyif mysql # use DIV operator for integer division
query I rowsort label-8755
SELECT DISTINCT - cor0.col2 + - col0 * col1 DIV col2 FROM tab1 AS cor0
----
-106
-55
-68
skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT - cor0.col2 + - col0 * col1 / col2 FROM tab1 AS cor0
----
-106
-55
-68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( cor0.col0 ) col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col1 + 44 AS col2 FROM tab1 AS cor0
----
54
57
70
query I rowsort
SELECT ALL - col1 + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + + col1 + + 57 FROM tab1 AS cor0
----
67
70
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + col2 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT ALL - col0 DIV + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8762
SELECT ALL - col0 / + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT 45 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
45
query I rowsort
SELECT ALL ( + col2 ) * col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL + 72 AS col1 FROM tab2
----
72
72
72
query I rowsort
SELECT - col0 + col2 * - col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT 27 AS col0 FROM tab2 cor0
----
27
27
27
query I rowsort
SELECT - col1 * col1 + + col0 * + cor0.col2 FROM tab1 AS cor0
----
-514
3548
7511
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 81 * + col0 col0 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT - col1 * + col1 + + ( col1 ) FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT - + col0 + 58 AS col1 FROM tab2 AS cor0
----
-20
-21
51
query I rowsort
SELECT 31 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT - col2 + 4 FROM tab0 AS cor0
----
-29
-78
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8775
SELECT + - col1 DIV + 67 + col2 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8775
SELECT + - col1 / + 67 + col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - - cor0.col1 * + 33 + + col1 - - ( + col0 ) FROM tab0 AS cor0
----
2948
3183
3333
query I rowsort
SELECT + ( + 52 ) FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT ALL + - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 37 col2 FROM tab2 AS cor0
----
37
37
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8780
SELECT - ( - col2 ) + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8780
SELECT - ( - col2 ) + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col0 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab1 AS cor0
----
48
48
48
query I rowsort
SELECT DISTINCT - tab2.col1 + - cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
-118
-34
-48
-62
-76
-90
query I rowsort
SELECT ALL + col2 + col1 + + col1 FROM tab2
----
144
72
89
query I rowsort
SELECT DISTINCT + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col1 * col1 + + 21 AS col0 FROM tab0 AS cor0
----
7417
8302
9430
query I rowsort
SELECT + + col0 + col1 * - 90 AS col1 FROM tab2 AS cor0
----
-1451
-2783
-5232
onlyif mysql # use DIV operator for integer division
query I rowsort label-8788
SELECT ALL - - col1 DIV + col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL - - col1 / + col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col1 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab1
----
83
83
83
query I rowsort
SELECT DISTINCT 36 + tab0.col1 * - col1 FROM tab0
----
-7360
-8245
-9373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + - 32 + - col1 col1 FROM tab0
----
-32
-32
-32
query I rowsort
SELECT - 75 + - col1 * col2 AS col2 FROM tab1 cor0
----
-1323
-1479
-645
query I rowsort
SELECT + col2 * - col2 + col1 * + col2 FROM tab0
----
1749
738
96
query I rowsort
SELECT col2 + + col0 + - ( - col1 ) FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT col0 * + 44 FROM tab2
----
308
3432
3476
query I rowsort
SELECT DISTINCT + + ( col0 ) + + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - ( 23 ) FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL + ( + 91 ) FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 6 * col1 * - col1 + + 14 * ( col1 * 15 ) + + col2 FROM tab1 AS cor0
----
1458
1557
1812
query I rowsort
SELECT ALL - 27 * - ( col1 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
1619
497
864
query I rowsort
SELECT col0 + 76 * - col2 AS col0 FROM tab0 cor0
----
-2484
-41
-6143
query I rowsort
SELECT ALL cor0.col1 + 40 AS col2 FROM tab0 AS cor0
----
126
131
137
query I rowsort
SELECT ALL + 96 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT + cor0.col2 * 48 AS col2 FROM tab0 AS cor0
----
1584
3936
48
query I rowsort
SELECT + - 82 AS col0 FROM tab0 cor0
----
-82
-82
-82
query I rowsort
SELECT - - 57 * col2 FROM tab0 AS cor0
----
1881
4674
57
query I rowsort
SELECT col1 + - col0 * cor0.col2 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8810
SELECT ALL col2 + col1 * - col0 * + col0 + col2 DIV - tab1.col0 FROM tab1
----
-198
-40903
-83105
skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL col2 + col1 * - col0 * + col0 + col2 / - tab1.col0 FROM tab1
----
-198
-40903
-83105
query I rowsort
SELECT col0 * col0 * + col0 FROM tab2
----
343
474552
493039
query I rowsort
SELECT DISTINCT + col2 + + col2 + col1 FROM tab0
----
152
255
99
query I rowsort
SELECT col1 + - col2 * tab2.col2 FROM tab2
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-8814
SELECT ALL - col0 DIV tab1.col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - col0 / tab1.col2 FROM tab1
----
-1
0
0
query I rowsort
SELECT col0 * col2 * - col0 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT tab1.col0 FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT + col2 * + tab0.col1 * col2 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8818
SELECT col1 DIV col2 + + col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8818
SELECT col1 / col2 + + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + col2 * + col2 AS col0 FROM tab1
----
2916
3249
9216
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT - cor0.col1 + col1 FROM tab0 cor0 WHERE NOT col1 = ( - col2 )
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( + col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col0 / - col1 BETWEEN - col0 + col1 + col2 AND NULL
----
query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col2 <= NULL
----
query I rowsort
SELECT ALL col2 + - col2 * col1 AS col1 FROM tab0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8827
SELECT - col1 DIV + col1 + - col1 DIV col2 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8827
SELECT - col1 / + col1 + - col1 / col2 AS col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL + col2 * col0 * col1 + - col2 + col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT col1 * - col2 DIV + col2 + - col2 DIV + col1 AS col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8829
SELECT col1 * - col2 / + col2 + - col2 / + col1 AS col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - col1 >= NULL
----
query I rowsort
SELECT DISTINCT - col0 * tab1.col0 + col0 + col2 * + col2 AS col0 FROM tab1
----
-783
2896
2910
query I rowsort
SELECT ALL col0 + + col0 * - tab2.col2 + col2 AS col1 FROM tab2
----
-155
-1924
-2885
query I rowsort
SELECT col2 * - col2 + tab0.col2 FROM tab0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8834
SELECT DISTINCT + tab2.col1 DIV - col1 AS col1 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-8834
SELECT DISTINCT + tab2.col1 / - col1 AS col1 FROM tab2
----
-1
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( - col2 - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8836
SELECT ALL - col1 + col2 DIV + col0 + + col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - col1 + col2 / + col0 + + col1 FROM tab1
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8839
SELECT DISTINCT col2 DIV col1 col1 FROM tab2
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT col2 / col1 col1 FROM tab2
----
0
2
query I rowsort
SELECT DISTINCT + col0 + + col2 + col0 FROM tab1
----
185
256
60
query I rowsort
SELECT + col1 + col0 - + col1 * + col0 * - col0 AS col1 FROM tab1
----
263
41034
83293
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( tab0.col1 - col0 )
----
query I rowsort
SELECT + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col0 * col0 + col0 * - cor0.col2 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT DISTINCT + col2 + + col2 * col1 * cor0.col1 FROM tab2 AS cor0
----
11020
25974
90532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8847
SELECT DISTINCT tab2.col0 DIV col1 col0 FROM tab2
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT tab2.col0 / col1 col0 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT col2 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL + - col0 * - col2 + - col2 * + col1 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT ALL - - col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + col0 * - col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8853
SELECT col2 DIV - col0 - tab1.col2 * - col1 AS col2 FROM tab1
----
1247
1386
570
skipif mysql # not compatible
query I rowsort label-8853
SELECT col2 / - col0 - tab1.col2 * - col1 AS col2 FROM tab1
----
1247
1386
570
query I rowsort
SELECT DISTINCT + tab2.col0 * col1 * col1 AS col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT DISTINCT cor0.col1 * + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + col1 * col0 + - col1 col2 FROM tab2 WHERE NOT col1 IN ( col2 * - col2 )
----
10627
235
7567
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
1
33
82
query I rowsort
SELECT - col2 * col2 + tab2.col1 * tab2.col2 AS col1 FROM tab2
----
-798
108
858
query I rowsort
SELECT DISTINCT - col0 * + col1 * - col1 AS col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT + + col0 * ( + col0 ) + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - col2 * - col1 * + col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL - cor0.col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8863
SELECT DISTINCT col0 * col1 DIV 74 AS col1 FROM tab0 AS cor0
----
109
27
45
skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT col0 * col1 / 74 AS col1 FROM tab0 AS cor0
----
109
27
45
query I rowsort
SELECT + col0 + + 56 FROM tab0 cor0
----
145
80
91
query I rowsort
SELECT ALL - + col1 + + col1 * + col1 FROM tab2 AS cor0
----
272
3422
930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8866
SELECT DISTINCT col2 + CAST( - col2 * col0 AS SIGNED ) FROM tab0 AS cor0
----
-34
-7216
-759
skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT col2 + CAST ( - col2 * col0 AS INTEGER ) FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - + col1 + + 93 FROM tab0 AS cor0
----
-4
2
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8868
SELECT ALL + - col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL + - col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 * ( + col0 ) + cor0.col0 * cor0.col0 AS col0 FROM tab0 cor0
----
1260
1368
15219
query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - tab0.col2 * col2 * col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT + col1 * col2 * - col0 AS col1 FROM tab2
----
-119652
-51034
-5859
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col2 <= + col0
----
query I rowsort
SELECT DISTINCT col0 * col0 * col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL - col0 * col2 * col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col1 * - tab1.col2 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL col1 * + tab2.col0 AS col0 FROM tab2
----
1343
217
4602
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col2 / col0 )
----
query I rowsort
SELECT col1 * - tab0.col0 - + tab0.col1 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT col1 * - col0 + + tab2.col2 AS col1 FROM tab2
----
-1305
-190
-4576
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND ( NULL )
----
query I rowsort
SELECT + col1 * col0 * + col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT tab1.col2 * - tab1.col0 + - col1 * col2 AS col1 FROM tab1
----
-1566
-4218
-8928
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( col1 ) AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8885
SELECT ALL - 54 * - col2 * + 76 + + col0 DIV col0 FROM tab2 AS cor0
----
106705
110809
155953
skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL - 54 * - col2 * + 76 + + col0 / col0 FROM tab2 AS cor0
----
106705
110809
155953
query I rowsort
SELECT ALL + 6 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT ALL - + 41 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT DISTINCT - + ( col1 ) + ( + col1 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + + 1 * - col2 - + col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + 94 AS col0 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT + 92 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT DISTINCT 90 FROM tab1, tab0 AS cor0
----
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8893
SELECT col1 DIV + tab2.col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8893
SELECT col1 / + tab2.col1 FROM tab2
----
1
1
1
query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8895
SELECT - col2 DIV col0 col1 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8895
SELECT - col2 / col0 col1 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT col2 * ( col0 ) + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 - + col1 AS col2 FROM tab2 cor0
----
-1461
-735
-760
query I rowsort
SELECT DISTINCT 84 + cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
162
163
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT 34 * - col2 FROM tab0
----
-1122
-2788
-34
query I rowsort
SELECT ALL + ( tab1.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ( col2 ) * - col0 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + + col2 + 65 FROM tab2 AS cor0
----
103
91
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-8904
SELECT col2 DIV + col2 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
10
4097
6401
skipif mysql # not compatible
query I rowsort label-8904
SELECT col2 / + col2 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
10
4097
6401
query I rowsort
SELECT - + 56 + ( col0 ) FROM tab0 cor0
----
-21
-32
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col0 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 * tab1.col0 col1 FROM tab1
----
-294
-6272
-7840
query I rowsort
SELECT 87 * col1 FROM tab1 AS cor0
----
1131
2262
870
query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab1 AS cor0
----
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8910
SELECT ALL - col0 DIV + col1 + cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8910
SELECT ALL - col0 / + col1 + cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL - + cor0.col2 + col1 * col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT + - col1 * + 60 + - ( cor0.col2 ) FROM tab2 AS cor0
----
-1058
-1887
-3566
query I rowsort
SELECT DISTINCT col2 + - 74 FROM tab0 AS cor0
----
-41
-73
8
query I rowsort
SELECT ALL + - col2 + + 95 FROM tab1 AS cor0
----
-1
38
41
query I rowsort
SELECT + col2 + cor0.col1 * - 99 FROM tab2 AS cor0
----
-1645
-3042
-5815
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + col1 * - 7 FROM tab0 AS cor0
----
-602
-637
-679
query I rowsort
SELECT 73 + col2 AS col2 FROM tab1
----
127
130
169
query I rowsort
SELECT - + cor0.col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8920
SELECT - col2 + CAST( col1 * + col0 AS SIGNED ) FROM tab2
----
1305
190
4576
skipif mysql # not compatible
query I rowsort label-8920
SELECT - col2 + CAST ( col1 * + col0 AS INTEGER ) FROM tab2
----
1305
190
4576
query I rowsort
SELECT ALL + col0 * + 74 FROM tab0 AS cor0
----
1776
2590
6586
query I rowsort
SELECT - - col1 * col0 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - ( ( cor0.col0 ) ) + + col2 * - col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT DISTINCT - ( 67 ) AS col2 FROM tab0 AS cor0
----
-67
query I rowsort
SELECT DISTINCT + + 15 AS col0 FROM tab1 AS cor0
----
15
query I rowsort
SELECT ALL - + 46 * col1 AS col2 FROM tab2 cor0
----
-1426
-2714
-782
query I rowsort
SELECT col0 * cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - + 83 FROM tab1 AS cor0
----
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8929
SELECT - CAST( NULL AS SIGNED ) / 8 + + col2 * 26 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8929
SELECT - CAST ( NULL AS INTEGER ) / 8 + + col2 * 26 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 9 * - 68 AS col2 FROM tab1 AS cor0
----
-612
-612
-612
query I rowsort
SELECT + col1 - cor0.col1 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * ( 73 ) FROM tab1
----
-219
-4672
-5840
query I rowsort
SELECT DISTINCT - col2 * - tab2.col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT - + 51 * col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
-578
-620
472
query I rowsort
SELECT col1 + col1 * ( 37 ) FROM tab0 cor0
----
3268
3458
3686
query I rowsort
SELECT DISTINCT - ( col1 ) + - ( 78 ) FROM tab0 cor0
----
-164
-169
-175
query I rowsort
SELECT ALL + col1 - + col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - - 55 * - cor0.col2 FROM tab1 cor0
----
-2970
-3135
-5280
query I rowsort
SELECT - col0 * + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT 28 * col2 FROM tab2
----
1064
728
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-8941
SELECT 38 + + 72 DIV col0 FROM tab0
----
38
40
41
skipif mysql # not compatible
query I rowsort label-8941
SELECT 38 + + 72 / col0 FROM tab0
----
38
40
41
query I rowsort
SELECT ALL tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT + 7 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT ALL tab1.col1 * tab1.col0 AS col2 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT + col1 + - col2 AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT - ( col0 ) * 70 AS col1 FROM tab0 AS cor0
----
-1680
-2450
-6230
query I rowsort
SELECT - col1 + - col2 * 6 FROM tab1
----
-350
-352
-589
query I rowsort
SELECT 38 + col1 AS col0 FROM tab1
----
48
51
64
query I rowsort
SELECT 12 * col2 * - col1 + - col1 AS col0 FROM tab2
----
-10075
-18467
-7769
query I rowsort
SELECT ALL ( - col2 * + tab2.col2 + - 78 ) FROM tab2
----
-1522
-754
-807
query I rowsort
SELECT DISTINCT col1 * - ( col2 ) + 85 - col0 * col2 AS col1 FROM tab0 cor0
----
-14675
-3545
-47
query I rowsort
SELECT - col1 * col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - - col2 * + cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - - col2 - 27 FROM tab0 AS cor0
----
-26
55
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8956
SELECT CAST( NULL AS SIGNED ) * - col1 + + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8956
SELECT CAST ( NULL AS INTEGER ) * - col1 + + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 32 * col1 FROM tab2
----
1888
544
992
query I rowsort
SELECT + ( + 23 ) FROM tab1
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 * + col2 + col0 col2 FROM tab2 cor0
----
-2340
-2504
-3455
query I rowsort
SELECT 95 * col0 FROM tab0 AS cor0
----
2280
3325
8455
onlyif mysql # use DIV operator for integer division
query I rowsort label-8961
SELECT ALL + col0 DIV + col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8961
SELECT ALL + col0 / + col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - + ( col2 ) + - 67 FROM tab2 AS cor0
----
-105
-93
-94
query I rowsort
SELECT col2 * + cor0.col0 * - 98 FROM tab2 AS cor0
----
-18522
-198744
-294196
query I rowsort
SELECT ALL + col1 * cor0.col0 - - col1 * col1 AS col1 FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT ALL - col0 * - col1 * cor0.col0 + col2 AS col2 FROM tab2 cor0
----
106135
1546
358982
query I rowsort
SELECT ALL + ( - cor0.col0 ) * col2 - + cor0.col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL ( col0 ) * 99 - col2 FROM tab0 AS cor0
----
2343
3464
8729
query I rowsort
SELECT DISTINCT + ( col2 ) * ( ( col1 ) ) + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + col0 + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT - 37 FROM tab2 cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT + 3 * col1 AS col0 FROM tab2 AS cor0
----
177
51
93
query I rowsort
SELECT + + 44 * - cor0.col2 FROM tab2 AS cor0
----
-1144
-1188
-1672
query I rowsort
SELECT ALL + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8974
SELECT DISTINCT + 94 DIV - col1 AS col1 FROM tab1 AS cor0
----
-3
-7
-9
skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + 94 / - col1 AS col1 FROM tab1 AS cor0
----
-3
-7
-9
query I rowsort
SELECT DISTINCT 68 FROM tab2 AS cor0
----
68
query I rowsort
SELECT DISTINCT + 81 AS col2 FROM tab2 AS cor0
----
81
query I rowsort
SELECT col1 * - col0 * col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + cor0.col0 * - 14 FROM tab1 AS cor0
----
-1120
-42
-896
query I rowsort
SELECT + col1 * + 62 AS col0 FROM tab0 cor0
----
5332
5642
6014
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8980
SELECT + col0 * + CAST( NULL AS SIGNED ) + 68 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8980
SELECT + col0 * + CAST ( NULL AS INTEGER ) + 68 AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8981
SELECT DISTINCT col1 * + ( + col2 ) + - col1 DIV - col2 FROM tab1 cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-8981
SELECT DISTINCT col1 * + ( + col2 ) + - col1 / - col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - + col1 * + 28 FROM tab2 cor0
----
-1652
-476
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col1 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT col1 * ( - 55 + - col0 ) FROM tab0 AS cor0
----
-13104
-6794
-8730
query I rowsort
SELECT col2 * - col1 - - col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + col1 + col1 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
-36470
-4186
-99827
query I rowsort
SELECT ALL + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 + + ( 65 ) FROM tab0 cor0
----
100
154
89
query I rowsort
SELECT DISTINCT col2 * + 96 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT DISTINCT - + ( + col1 ) + col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL + - 34 * - 31 AS col1 FROM tab2 AS cor0
----
1054
1054
1054
query I rowsort
SELECT - - col1 + 9 * col0 * 18 FROM tab1 cor0
----
10378
12973
512
query I rowsort
SELECT DISTINCT ( + col2 ) * col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - 20 * + cor0.col1 + col0 + col1 AS col0 FROM tab2 AS cor0
----
-1043
-244
-582
query I rowsort
SELECT 27 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT col2 + - 95 * col0 * - ( + ( - col0 ) * col2 ) FROM tab1 cor0
----
-22179783
-46116
-58367904
query I rowsort
SELECT ALL - col0 + col2 * - col1 FROM tab1
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 76 col0 FROM tab1
----
130
133
172
query I rowsort
SELECT DISTINCT - col1 * - ( col2 ) + col0 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT 42 + + 64 FROM tab1 AS cor0
----
106
query I rowsort
SELECT col2 * 35 AS col2 FROM tab0 cor0
----
1155
2870
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9002
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 20 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9002
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 20 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9003
SELECT + ( col1 ) + col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9003
SELECT + ( col1 ) + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col1 ) + col0 * col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL + - ( 15 ) + col0 + - col2 * - ( + col0 ) FROM tab1 AS cor0
----
150
3697
7745
query I rowsort
SELECT - + col2 * col2 * col2 + 95 + + col2 * + cor0.col2 FROM tab0 AS cor0
----
-34753
-544549
95
query I rowsort
SELECT 26 + + col1 * col0 FROM tab0 cor0
----
2090
3421
8125
onlyif mysql # use DIV operator for integer division
query I rowsort label-9008
SELECT - - cor0.col2 * col0 + - cor0.col0 DIV col0 AS col1 FROM tab0 AS cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-9008
SELECT - - cor0.col2 * col0 + - cor0.col0 / col0 AS col1 FROM tab0 AS cor0
----
34
7297
791
query I rowsort
SELECT DISTINCT 40 + tab1.col1 FROM tab1, tab0 AS cor0
----
50
53
66
query I rowsort
SELECT - - cor0.col1 * - col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - col1 + 69 * + 55 FROM tab2 AS cor0
----
3736
3764
3778
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9012
SELECT - col1 * CAST( 49 AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
-4190
-4370
-4718
skipif mysql # not compatible
query I rowsort label-9012
SELECT - col1 * CAST ( 49 AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
-4190
-4370
-4718
query I rowsort
SELECT + cor1.col2 * ( - cor0.col2 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e9c9a5d5cefe83eb1c091d89114ff7df
query I rowsort
SELECT ALL + + col1 * 59 AS col1 FROM tab2 AS cor0
----
1003
1829
3481
onlyif mysql # use DIV operator for integer division
query I rowsort label-9015
SELECT ALL + cor0.col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + cor0.col1 / + col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL - 59 - 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9398f9266f4394fd88a51789b552b6e1
query I rowsort
SELECT DISTINCT col1 * col2 + - col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT ALL col2 * + col2 + + col2 * - col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9019
SELECT ALL + col2 DIV - col2 + 5 * tab0.col1 * col1 + 47 FROM tab0
----
37026
41451
47091
skipif mysql # not compatible
query I rowsort label-9019
SELECT ALL + col2 / - col2 + 5 * tab0.col1 * col1 + 47 FROM tab0
----
37026
41451
47091
query I rowsort
SELECT ALL col1 + - ( + col0 ) FROM tab1
----
-54
-67
23
query I rowsort
SELECT - - col1 + 98 * ( col2 ) AS col0 FROM tab0 AS cor0
----
195
3320
8127
query I rowsort
SELECT DISTINCT col0 * - 70 FROM tab0 AS cor0
----
-1680
-2450
-6230
query I rowsort
SELECT - 50 * col0 * col0 FROM tab1 AS cor0
----
-204800
-320000
-450
query I rowsort
SELECT + - col0 + + col2 * ( - 51 ) AS col0 FROM tab2 AS cor0
----
-1384
-1404
-2017
query I rowsort
SELECT + tab1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + + 24 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT + cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - ( 50 ) AS col0 FROM tab0
----
-50
query I rowsort
SELECT DISTINCT col1 * col0 * 6 AS col1 FROM tab1 AS cor0
----
3840
468
6240
query I rowsort
SELECT ALL + col2 * - col2 + 65 FROM tab1 cor0
----
-2851
-3184
-9151
onlyif mysql # use DIV operator for integer division
query I rowsort label-9031
SELECT - col1 DIV col0 AS col1 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9031
SELECT - col1 / col0 AS col1 FROM tab2
----
-4
0
0
query I rowsort
SELECT DISTINCT - col0 * 68 * - 45 AS col0 FROM tab1 AS cor0
----
195840
244800
9180
query I rowsort
SELECT ALL - col0 * 73 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT cor0.col2 + ( - col0 * + col0 ) FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT - cor0.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - col0 + ( - tab0.col0 + + col2 ) FROM tab0
----
-15
-69
-96
query I rowsort
SELECT DISTINCT + 46 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
46
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) AS col0 FROM tab1, tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9040
SELECT - col2 DIV - 3 + cor0.col2 FROM tab2 cor0
----
34
36
50
skipif mysql # not compatible
query I rowsort label-9040
SELECT - col2 / - 3 + cor0.col2 FROM tab2 cor0
----
34
36
50
query I rowsort
SELECT ALL 99 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # use DIV operator for integer division
query I rowsort label-9042
SELECT DISTINCT col2 DIV 90 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT col2 / 90 FROM tab1
----
0
1
query I rowsort
SELECT - 39 + col0 * col2 FROM tab1 AS cor0
----
123
3609
7641
query I rowsort
SELECT - ( - 47 ) * col2 AS col2 FROM tab1 AS cor0
----
2538
2679
4512
query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
18
query I rowsort
SELECT ALL + ( tab1.col2 ) + col2 AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT + ( col2 * - col2 + col1 ) FROM tab2
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 40 col1 FROM tab0 AS cor0
----
1320
3280
40
query I rowsort
SELECT DISTINCT + ( col2 ) + - tab1.col0 AS col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT 38 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
38
query I rowsort
SELECT ALL - 97 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT + col2 + - tab0.col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + 10 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT col2 * tab0.col2 + ( + col1 ) FROM tab0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + col0 col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - + ( col0 ) + ( - 35 ) AS col2 FROM tab0 AS cor0
----
-124
-59
-70
query I rowsort
SELECT ALL + ( - col0 ) * col2 + + col1 + col0 FROM tab0 AS cor0
----
-682
-7118
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9059
SELECT DISTINCT + 0 DIV col2 - col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9059
SELECT DISTINCT + 0 / col2 - col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 61 + col1 * col1 AS col0 FROM tab1 AS cor0
----
161
230
737
query I rowsort
SELECT DISTINCT - col0 * col1 - ( + 83 ) FROM tab0 AS cor0
----
-2147
-3478
-8182
query I rowsort
SELECT tab0.col2 - - ( 15 ) AS col2 FROM tab0
----
16
48
97
query I rowsort
SELECT ALL col2 - 79 FROM tab2
----
-41
-52
-53
query I rowsort
SELECT col1 + + col0 - col2 * col2 FROM tab2
----
-1348
-539
-691
query I rowsort
SELECT col1 * - tab2.col2 + + col0 AS col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT col0 * - ( + 90 ) * col1 + + col2 FROM tab2
----
-120832
-19503
-414154
query I rowsort
SELECT DISTINCT + col1 * + ( col1 ) - + col2 AS col2 FROM tab1
----
43
622
73
query I rowsort
SELECT col0 + 65 * col1 AS col0 FROM tab0 AS cor0
----
5614
6004
6340
query I rowsort
SELECT + cor0.col1 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - ( + col0 * col0 ) + col1 col2 FROM tab0 AS cor0
----
-118728
-49450
-720720
query I rowsort
SELECT - col0 + - col0 AS col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - col0 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL ( + col1 ) + + cor0.col0 * ( - col1 ) FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL 11 * col1 - col0 * col2 AS col0 FROM tab0 AS cor0
----
-6297
1032
154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT ( col0 ) * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9077
SELECT + - ( + ( col1 ) ) + + ( + col0 + + col2 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-18
-35
-60
skipif mysql # not compatible
query I rowsort label-9077
SELECT + - ( + ( col1 ) ) + + ( + col0 + + col2 ) / - col0 AS col1 FROM tab2 AS cor0
----
-18
-35
-60
query I rowsort
SELECT col1 * col0 + - col0 FROM tab0 cor0
----
2040
3360
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9079
SELECT CAST( NULL AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9079
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + cor0.col2 + - col1 * col1 AS col0 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT - - cor0.col0 * cor0.col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-9083
SELECT + col2 DIV ( - col1 ) + col2 FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-9083
SELECT + col2 / ( - col1 ) + col2 FROM tab1 AS cor0
----
52
52
89
query I rowsort
SELECT - col1 * 33 + col0 + col1 AS col0 FROM tab2 cor0
----
-1810
-465
-985
query I rowsort
SELECT DISTINCT col0 * ( cor0.col2 * + col1 + col2 * col1 ) FROM tab1 cor0
----
199680
72960
8424
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9087
SELECT - cor0.col1 + - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9087
SELECT - cor0.col1 + - CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9089
SELECT DISTINCT - + col1 + - CAST( NULL AS SIGNED ) * + 20 * - col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - + col1 + - CAST ( NULL AS INTEGER ) * + 20 * - col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + + col0 + - col2 * col0 + - col1 FROM tab1 AS cor0
----
-185
-3594
-7613
query I rowsort
SELECT - tab2.col1 + tab2.col1 * col0 AS col1 FROM tab2
----
1326
186
4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * 28 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 4d9256fd12c997ce7ca3f46ec6931d1d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT ALL - cor0.col1 DIV + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL - cor0.col1 / + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT - col1 * 20 + tab2.col0 FROM tab2
----
-1102
-261
-613
query I rowsort
SELECT - cor0.col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + - col1 + col2 * + 55 FROM tab0 AS cor0
----
-42
1729
4419
query I rowsort
SELECT DISTINCT + - col2 * 45 + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1229
-1246
-1727
onlyif mysql # use DIV operator for integer division
query I rowsort label-9098
SELECT ALL - col2 * - 70 + cor0.col1 DIV col2 FROM tab0 AS cor0
----
167
2312
5741
skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL - col2 * - 70 + cor0.col1 / col2 FROM tab0 AS cor0
----
167
2312
5741
query I rowsort
SELECT ALL + tab2.col0 * ( tab2.col1 * col0 + tab2.col1 ) AS col1 FROM tab2
----
107440
1736
363558
query I rowsort
SELECT DISTINCT 55 * 70 - - tab1.col1 FROM tab1
----
3860
3863
3876
query I rowsort
SELECT DISTINCT - 64 - + col2 FROM tab2
----
-102
-90
-91
query I rowsort
SELECT 20 + col1 * col1 + col0 * col0 * tab0.col1 AS col0 FROM tab0
----
128254
56952
729112
query I rowsort
SELECT col2 + col0 - - col0 * col0 AS col1 FROM tab0
----
1261
633
8092
query I rowsort
SELECT - 91 * col2 FROM tab2
----
-2366
-2457
-3458
query I rowsort
SELECT DISTINCT col2 * col0 - + col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT DISTINCT + + 33 + col1 FROM tab1 AS cor0
----
43
46
59
query I rowsort
SELECT ALL col0 * col2 * - 16 FROM tab2 AS cor0
----
-3024
-32448
-48032
query I rowsort
SELECT DISTINCT ( col0 * tab2.col1 ) - + col1 AS col0 FROM tab2
----
1326
186
4543
query I rowsort
SELECT ALL + col1 + - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9110
SELECT ALL - col0 * col1 + - col0 DIV + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-9110
SELECT ALL - col0 * col1 + - col0 / + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
-2065
-3396
-8100
query I rowsort
SELECT ALL 51 * 68 + col0 AS col1 FROM tab2
----
3475
3546
3547
query I rowsort
SELECT 69 * col0 FROM tab0
----
1656
2415
6141
query I rowsort
SELECT DISTINCT - 91 - + col0 AS col0 FROM tab2
----
-169
-170
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9114
SELECT col0 DIV - 54 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9114
SELECT col0 / - 54 FROM tab2
----
-1
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9115
SELECT CAST( NULL AS SIGNED ) + + col1 + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9115
SELECT CAST ( NULL AS INTEGER ) + + col1 + + col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + - col0 col0 FROM tab1 AS cor0
----
-140
-156
-79
query I rowsort
SELECT ALL + 25 FROM tab1 cor0
----
25
25
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-9118
SELECT DISTINCT - + col1 DIV - col1 + - col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT - + col1 / - col1 + - col0 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT + 43 + col0 AS col0 FROM tab2
----
121
122
50
query I rowsort
SELECT 11 - col0 * col1 FROM tab0 AS cor0
----
-2053
-3384
-8088
query I rowsort
SELECT ALL - + col0 * - col0 + col0 * col1 AS col2 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col0 * - cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL 3 + col2 AS col2 FROM tab0 AS cor0
----
36
4
85
query I rowsort
SELECT + - cor0.col1 * - col0 + cor0.col2 * + 29 FROM tab1 AS cor0
----
1644
2293
3824
skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 * CAST ( + col2 AS REAL ) + - col1 / - ( col2 * - col0 ) AS col2 FROM tab0 AS cor0
----
611884
93654
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * col1 col2 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT DISTINCT cor0.col2 * - col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + + 99 * col2 AS col1 FROM tab2 AS cor0
----
2574
2673
3762
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - col0 col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL - col2 * col2 * col2 AS col0 FROM tab0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-9132
SELECT ALL - 73 + col1 DIV + 1 FROM tab0
----
13
18
24
skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL - 73 + col1 / + 1 FROM tab0
----
13
18
24
query I rowsort
SELECT ALL col2 + + tab0.col2 * 3 * + 72 AS col0 FROM tab0
----
17794
217
7161
query I rowsort
SELECT - col2 * col0 + + col0 FROM tab2 cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9135
SELECT DISTINCT col2 + + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9135
SELECT DISTINCT col2 + + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - col1 + + 49 FROM tab2 AS cor0
----
-10
18
32
query I rowsort
SELECT - - col2 * + col0 + + col2 AS col1 FROM tab0 cor0
----
36
7380
825
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 * CAST ( - cor0.col2 AS REAL ) + - col0 AS col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL + - col0 + col2 FROM tab1 cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - 6 ) col1 FROM tab1 cor0
----
-3
58
74
query I rowsort
SELECT 53 * col2 * 34 FROM tab0
----
147764
1802
59466
query I rowsort
SELECT - 46 AS col1 FROM tab0
----
-46
-46
-46
query I rowsort
SELECT col0 + + col2 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT col2 * + col0 + - col1 AS col2 FROM tab2 cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab2 AS cor0
----
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 32 col1 FROM tab0 AS cor0
----
-2752
-2912
-3104
onlyif mysql # use DIV operator for integer division
query I rowsort label-9147
SELECT ALL 35 DIV col1 col2 FROM tab1 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL 35 / col1 col2 FROM tab1 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9148
SELECT - col2 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9148
SELECT - col2 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - 5 + 28 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT ( col0 ) * - col0 FROM tab1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT - + CAST( col2 AS SIGNED ) DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9151
SELECT - + CAST ( col2 AS INTEGER ) / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 26 * cor0.col2 AS col0 FROM tab0 cor0
----
-2132
-26
-858
query I rowsort
SELECT DISTINCT - 26 * + col2 AS col1 FROM tab1 AS cor0
----
-1404
-1482
-2496
query I rowsort
SELECT ALL 16 * col2 FROM tab2 AS cor0
----
416
432
608
onlyif mysql # use DIV operator for integer division
query I rowsort label-9155
SELECT DISTINCT - 30 DIV cor0.col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - 30 / cor0.col0 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT ALL + ( cor0.col1 ) AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - - ( cor0.col0 ) * + 93 + col2 + col0 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
13364
13626
727
query I rowsort
SELECT 93 * cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b079ecdfa2def654c20e71b140414b79
query I rowsort
SELECT col1 - - 27 AS col2 FROM tab1
----
37
40
53
query I rowsort
SELECT - col0 + 37 * + 32 FROM tab2 AS cor0
----
1105
1106
1177
query I rowsort
SELECT ALL + - ( - col0 ) + col2 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ( 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + 50 * 19 AS col0 FROM tab2 AS cor0
----
950
950
950
query I rowsort
SELECT + col1 * col1 * + col2 AS col1 FROM tab0 AS cor0
----
244068
679042
9409
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0
query I rowsort
SELECT DISTINCT + col1 * 73 FROM tab2
----
1241
2263
4307
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT - 45 + 44 AS col0 FROM tab0, tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 + + col1 + - col1 * + col1 col0 FROM tab1 AS cor0
----
-138
-632
-72
query I rowsort
SELECT col2 + - col2 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9171
SELECT - col1 + tab0.col0 + col1 * CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9171
SELECT - col1 + tab0.col0 + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 3 + col2 FROM tab0
----
36
4
85
query I rowsort
SELECT + 41 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT DISTINCT - ( col2 ) * + 45 FROM tab2
----
-1170
-1215
-1710
query I rowsort
SELECT ( - col0 ) * - col2 * tab1.col1 AS col0 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9176
SELECT DISTINCT tab1.col1 DIV tab1.col1 AS col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT tab1.col1 / tab1.col1 AS col2 FROM tab1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col0 col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9178
SELECT DISTINCT - + col2 DIV + cor0.col2 + - cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
-110
-68
-81
skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - + col2 / + cor0.col2 + - cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
-110
-68
-81
query I rowsort
SELECT ALL - tab0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab2, tab0, tab2 AS cor0
----
19
query I rowsort
SELECT DISTINCT - col1 + - col0 + col2 AS col0 FROM tab2 AS cor0
----
-11
-111
-58
query I rowsort
SELECT - col0 * col2 * col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL cor0.col1 + + col2 + col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL + - col2 * col1 * - col1 + + col1 FROM tab2 AS cor0
----
10999
25978
90565
query I rowsort
SELECT DISTINCT col1 + - col0 * col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026
onlyif mysql # use DIV operator for integer division
query I rowsort label-9186
SELECT + col1 DIV + col2 + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9186
SELECT + col1 / + col2 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col1 - col0 AS col0 FROM tab0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 * - col1 * - col0 + col1 * + tab1.col2 col1 FROM tab1
----
-12272
-5830
-624
query I rowsort
SELECT ALL tab1.col2 + - col0 * + col1 * col1 AS col0 FROM tab1
----
-13424
-1974
-6343
query I rowsort
SELECT ALL + col2 + col1 * col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT - col0 * - col0 - + tab0.col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT - col0 + col0 * - col1 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT col0 * - cor0.col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT - tab2.col1 * + col0 + col1 AS col2 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + 42 FROM tab2, tab0 AS cor0
----
42
query I rowsort
SELECT ALL 29 * col0 AS col2 FROM tab0
----
1015
2581
696
query I rowsort
SELECT - - 94 + 35 * col0 FROM tab2 cor0
----
2824
2859
339
query I rowsort
SELECT + 66 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT + 70 + + 74 FROM tab2
----
144
144
144
query I rowsort
SELECT + col2 - - col1 * + col1 * col2 AS col1 FROM tab0 cor0
----
244101
679124
9410
query I rowsort
SELECT col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + col2 * col1 - col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT DISTINCT - + ( - col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 - + col2 * col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - 6 + col0 FROM tab2 AS cor0
----
1
72
73
query I rowsort
SELECT + col1 + col2 * cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - 15 AS col2 FROM tab2 AS cor0
----
-15
-15
-15
query I rowsort
SELECT + + 86 FROM tab2 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT 10 + col2 * col0 AS col0 FROM tab0 AS cor0
----
45
7308
802
query I rowsort
SELECT 48 * + col2 AS col2 FROM tab1 cor0
----
2592
2736
4608
onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT - cor0.col0 DIV - col2 + col1 col0 FROM tab1 AS cor0
----
11
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9211
SELECT - cor0.col0 / - col2 + col1 col0 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT 14 * - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 506fa9b37e6d2d27774df3f3e290075f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9213
SELECT - + ( - col2 ) + col0 DIV + col1 FROM tab2 cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-9213
SELECT - + ( - col2 ) + col0 / + col1 FROM tab2 cor0
----
27
27
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col2 FROM tab1
----
79
79
79
query I rowsort
SELECT 3 - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 90d39f7cb09eedf0ef04fff7232bcc17
query I rowsort
SELECT ALL - col1 * 26 AS col1 FROM tab2 AS cor0
----
-1534
-442
-806
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - 10 * cor0.col2 + col2 AS col0 FROM tab2 cor0
----
-234
-243
-342
query I rowsort
SELECT + cor0.col1 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 50 * + col2 + cor0.col1 FROM tab1 AS cor0
----
-2674
-2840
-4787
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9221
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT + ( + col2 ) + - col0 FROM tab2 cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col0 + 15 + - col1 FROM tab2
----
-122
-23
-81
query I rowsort
SELECT 86 + tab0.col2 AS col1 FROM tab0
----
119
168
87
query I rowsort
SELECT - col2 + col2 * - 92 FROM tab2 AS cor0
----
-2418
-2511
-3534
query I rowsort
SELECT ALL - 23 * col2 AS col0 FROM tab1 AS cor0
----
-1242
-1311
-2208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9228
SELECT + col0 * + col2 + ( - col1 ) * col0 + CAST( - col2 + col2 * - col0 AS SIGNED ) col2 FROM tab1 cor0
----
-1136
-132
-697
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9228
SELECT + col0 * + col2 + ( - col1 ) * col0 + CAST ( - col2 + col2 * - col0 AS INTEGER ) col2 FROM tab1 cor0
----
-1136
-132
-697
query I rowsort
SELECT - cor0.col0 + col1 * + 50 AS col0 FROM tab2 AS cor0
----
1543
2872
771
query I rowsort
SELECT DISTINCT + col1 * 22 * + col1 AS col0 FROM tab1 AS cor0
----
14872
2200
3718
query I rowsort
SELECT - col0 * + cor0.col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col1 * col0 + - col2 + col0 FROM tab1 cor0
----
1024
27
647
query I rowsort
SELECT DISTINCT + cor0.col2 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + + col1 * ( cor0.col0 ) + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + - col0 + ( + col2 ) * + cor0.col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT - - col2 + + ( + ( + cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col2 + + ( - col0 ) * - cor0.col2 * col0 + + col1 FROM tab0 AS cor0
----
1323
19127
649695
query I rowsort
SELECT col0 * ( + 60 ) FROM tab1 AS cor0
----
180
3840
4800
query I rowsort
SELECT ALL + cor0.col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + + col0 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + cor0.col0 * ( 18 ) + - col0 AS col1 FROM tab0 AS cor0
----
1513
408
595
query I rowsort
SELECT col0 + + col2 * 94 * - col1 + - ( - 68 ) FROM tab0
----
-266680
-701271
-9015
query I rowsort
SELECT ALL col1 + + col0 - - tab1.col2 * - col1 AS col1 FROM tab1
----
-1155
-1375
-496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9244
SELECT ALL - col2 - CAST( + cor0.col2 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
34
7216
759
skipif mysql # not compatible
query I rowsort label-9244
SELECT ALL - col2 - CAST ( + cor0.col2 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9245
SELECT DISTINCT col0 + - CAST( + col0 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT col0 + - CAST ( + col0 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - col0 * - 52 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2760
-5056
79
query I rowsort
SELECT cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-9248
SELECT ALL col1 DIV ( + col0 * col0 + - col0 ) AS col1 FROM tab1 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL col1 / ( + col0 * col0 + - col0 ) AS col1 FROM tab1 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT - col1 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL col1 * + ( col1 * - col0 ) + + tab2.col0 AS col2 FROM tab2
----
-22752
-271440
-6720
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT + col1 + + 21 FROM tab0 cor0
----
107
112
118
query I rowsort
SELECT col2 + col0 * + col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT 61 * 15 * tab0.col2 FROM tab0, tab1 AS cor0
----
30195
75030
915
query I rowsort
SELECT ALL + col2 * + col0 * ( + col1 ) FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - col2 + col0 * col1 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT ALL 1 + + col2 * - cor0.col0 * + col1 FROM tab1 AS cor0
----
-36479
-4211
-99839
onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT - CAST( col1 AS SIGNED ) DIV col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9258
SELECT - CAST ( col1 AS INTEGER ) / col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - 7 - 94 * col2 FROM tab2 AS cor0
----
-2451
-2545
-3579
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - cor0.col2 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 * col2 + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 11 col2 FROM tab0 AS cor0
----
-11
query I rowsort
SELECT ALL - col2 + ( col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col2 - + col0 * - col0 AS col2 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT + tab0.col0 * + col0 + tab0.col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - 16 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-16
query I rowsort
SELECT col1 + - col2 * - col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT ALL + 8 AS col0 FROM tab2
----
8
8
8
query I rowsort
SELECT DISTINCT 98 * + col1 FROM tab1 AS cor0
----
1274
2548
980
onlyif mysql # use DIV operator for integer division
query I rowsort label-9270
SELECT + + col2 + + col2 DIV cor0.col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9270
SELECT + + col2 + + col2 / cor0.col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9271
SELECT DISTINCT + - ( cor0.col1 ) * CAST( NULL AS SIGNED ) - 73 * - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + - ( cor0.col1 ) * CAST ( NULL AS INTEGER ) - 73 * - col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 + col0 * 63 AS col1 FROM tab2 AS cor0
----
468
4940
5015
query I rowsort
SELECT ALL col1 + col2 + - col0 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT ALL + + col0 * + col2 * - col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - + 38 AS col1 FROM tab0 cor0
----
-38
-38
-38
query I rowsort
SELECT - 88 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32
query I rowsort
SELECT ALL + col0 * + col2 + cor0.col2 - col1 AS col0 FROM tab1 AS cor0
----
190
3695
7763
query I rowsort
SELECT ALL - - cor0.col1 * - 68 + col0 - col1 FROM tab1 cor0
----
-1791
-626
-817
query I rowsort
SELECT cor0.col1 * 60 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ce0d6eb0f90eb4d84810c590310b44f6
query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
-4
35
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9281
SELECT DISTINCT + col1 DIV col1 + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
1
5
skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT + col1 / col1 + col1 / + col0 AS col1 FROM tab2 AS cor0
----
1
5
query I rowsort
SELECT + col1 + ( + col1 ) * - cor0.col2 * - ( col0 ) FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT ALL - cor0.col2 * + 56 FROM tab0, tab0 AS cor0
----
9 values hashing to b5ac07851fe10ec7b4f57100c31039f6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9284
SELECT DISTINCT - + col0 + cor0.col1 DIV col1 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - + col0 + cor0.col1 / col1 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT + col0 - - col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT col0 + + col1 * - col0 * + 4 AS col2 FROM tab2
----
-18330
-5293
-861
query I rowsort
SELECT - tab1.col0 * - col0 + ( - 2 ) * + col2 AS col0 FROM tab1
----
-99
3982
6208
query I rowsort
SELECT DISTINCT 10 - col0 AS col2 FROM tab0
----
-14
-25
-79
query I rowsort
SELECT + 92 * - col0 * 26 FROM tab1
----
-153088
-191360
-7176
query I rowsort
SELECT + + col2 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT col0 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col0 * col2 - 6 FROM tab1
----
156
3642
7674
query I rowsort
SELECT ALL + col0 - col0 * col0 AS col1 FROM tab0 cor0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - ( - col2 ) col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col1 * + cor0.col2 + + cor0.col2 * col1 * + ( + col2 ) FROM tab2 AS cor0
----
21762
23902
38350
query I rowsort
SELECT ALL - + col0 * 92 + + 63 AS col1 FROM tab1 AS cor0
----
-213
-5825
-7297
query I rowsort
SELECT ALL - col2 * + 55 + + 42 AS col0 FROM tab2 AS cor0
----
-1388
-1443
-2048
query I rowsort
SELECT - col1 * 0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 * 95 AS col2 FROM tab0 AS cor0
----
8170
8645
9215
query I rowsort
SELECT - 5 + + 35 AS col2 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT + 3 * - col0 FROM tab1 AS cor0
----
-192
-240
-9
query I rowsort
SELECT + 77 * - col0 + - col0 AS col1 FROM tab1 cor0
----
-234
-4992
-6240
query I rowsort
SELECT - - 81 * + col2 AS col0 FROM tab0 AS cor0
----
2673
6642
81
query I rowsort
SELECT col0 * + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - 21 AS col1 FROM tab2 cor0
----
-21
-21
-21
query I rowsort
SELECT DISTINCT 46 * col1 AS col2 FROM tab2
----
1426
2714
782
query I rowsort
SELECT DISTINCT - col0 * - col0 * - col2 AS col0 FROM tab2
----
-1323
-158184
-237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9308
SELECT CAST( + col0 AS SIGNED ) * col1 AS col0 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-9308
SELECT CAST ( + col0 AS INTEGER ) * col1 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT col0 + - col1 + 12 * - cor0.col0 AS col0 FROM tab0 cor0
----
-1070
-350
-482
query I rowsort
SELECT + 2 + + col0 - + 43 AS col0 FROM tab2 AS cor0
----
-34
37
38
query I rowsort
SELECT 76 FROM tab2 cor0
----
76
76
76
query I rowsort
SELECT 35 - + col0 AS col0 FROM tab0 AS cor0
----
-54
0
11
query I rowsort
SELECT - - 3 + col1 - col2 AS col2 FROM tab2 cor0
----
-18
36
7
query I rowsort
SELECT ALL + col1 + + col0 * - col1 * + cor0.col2 FROM tab1 AS cor0
----
-36470
-4186
-99827
query I rowsort
SELECT DISTINCT - + col1 + + col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 * col0 * + 91 AS col1 FROM tab2 AS cor0
----
-122213
-19747
-418782
query I rowsort
SELECT col2 + + col2 + cor0.col2 * - col0 FROM tab1 AS cor0
----
-3534
-54
-7488
query I rowsort
SELECT 65 + col2 - ( + 41 + + col2 * - col2 ) AS col1 FROM tab0 AS cor0
----
1146
26
6830
query I rowsort
SELECT DISTINCT col1 + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT col1 * + col2 * + ( + col0 ) FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-9321
SELECT DISTINCT + col1 DIV + col0 AS col1 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9321
SELECT DISTINCT + col1 / + col0 AS col1 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT - col1 + - col0 + + col0 AS col1 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + + cor0.col0 + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col2 + - col0 * 81 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-46689
-641683
-99226
query I rowsort
SELECT DISTINCT 77 * + tab2.col2 FROM tab2
----
2002
2079
2926
query I rowsort
SELECT ALL col2 + 40 AS col1 FROM tab2 AS cor0
----
66
67
78
query I rowsort
SELECT DISTINCT + col0 + col0 AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT ALL - col2 * - col1 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT 74 + cor0.col0 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8a23c4c1a0146343ec3661bb35ab85ee
query I rowsort
SELECT DISTINCT - 75 * - col1 FROM tab1 AS cor0
----
1950
750
975
query I rowsort
SELECT col2 + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + + col0 + - col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9333
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - col2 + col0 * CAST( + 15 AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - col2 + col0 * CAST ( + 15 AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9334
SELECT ALL 89 DIV cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 2fb45a4d17d497a4c43fa69a577a1525
skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL 89 / cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 2fb45a4d17d497a4c43fa69a577a1525
query I rowsort
SELECT - ( ( cor0.col1 ) ) AS col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + + 24 * 32 FROM tab2 AS cor0
----
768
768
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9337
SELECT CAST( NULL AS SIGNED ) * + tab0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9337
SELECT CAST ( NULL AS INTEGER ) * + tab0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + ( cor0.col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + 59 FROM tab2, tab1 AS cor0
----
59
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT DISTINCT col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT col2 / col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - cor0.col2 + + ( - cor0.col1 ) FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9343
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) * ( - col0 * + col2 ) AS col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) * ( - col0 * + col2 ) AS col1 FROM tab0 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9344
SELECT ALL + - 19 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + - 19 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col2 * col1 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - ( + tab1.col1 ) * col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - col0 * + 86 AS col0 FROM tab1 AS cor0
----
-258
-5504
-6880
query I rowsort
SELECT + - col1 * 74 + col1 FROM tab1 AS cor0
----
-1898
-730
-949
query I rowsort
SELECT 59 + - col0 FROM tab0 AS cor0
----
-30
24
35
query I rowsort
SELECT + - col2 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - + ( col1 ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab1
----
-95
query I rowsort
SELECT - + 71 * cor0.col2 + + col0 + col2 FROM tab2 AS cor0
----
-1742
-1883
-2581
query I rowsort
SELECT DISTINCT 58 * col0 FROM tab0 AS cor0
----
1392
2030
5162
query I rowsort
SELECT ALL + - 34 + col0 * - col2 * col0 FROM tab2 AS cor0
----
-1357
-158218
-237192
onlyif mysql # use DIV operator for integer division
query I rowsort label-9356
SELECT - col2 + col1 * 97 DIV 56 + + col1 FROM tab0 AS cor0
----
166
201
264
skipif mysql # not compatible
query I rowsort label-9356
SELECT - col2 + col1 * 97 / 56 + + col1 FROM tab0 AS cor0
----
166
201
264
query I rowsort
SELECT ALL col1 + 79 FROM tab1 cor0
----
105
89
92
query I rowsort
SELECT ALL + col1 * + col1 + - 31 AS col0 FROM tab0 AS cor0
----
7365
8250
9378
query I rowsort
SELECT DISTINCT + - cor0.col2 * 62 + cor0.col2 - cor0.col0 FROM tab0 AS cor0
----
-2037
-5091
-96
query I rowsort
SELECT DISTINCT + - col2 * + 56 + - col1 FROM tab1 AS cor0
----
-3050
-3202
-5389
query I rowsort
SELECT - col1 + - col2 * - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
17517
19652
54855
query I rowsort
SELECT DISTINCT + col2 + ( col2 ) AS col1 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( 8 ) col0 FROM tab0 AS cor0
----
-688
-728
-776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - 74 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f3382ae349243c43d2dbe2a3c6c042f1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9365
SELECT + - col1 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9365
SELECT + - col1 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( cor0.col1 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + - col1 * col2 col0 FROM tab0
----
-1749
-738
-96
query I rowsort
SELECT 44 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9369
SELECT ALL - col1 * col2 DIV - col0 FROM tab0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - col1 * col2 / - col0 FROM tab0
----
118
2
83
query I rowsort
SELECT DISTINCT col1 * ( + col2 ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - col1 + - col2 + - ( - col1 + + col0 ) AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - ( - col2 ) + col1 * cor0.col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT - tab0.col1 - + tab0.col0 * col0 AS col1 FROM tab0
----
-1322
-662
-8012
query I rowsort
SELECT DISTINCT ( - col2 ) + + col1 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT - 5 + + col1 FROM tab1
----
21
5
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9376
SELECT + + col1 * - cor0.col2 * - col2 + + 94 DIV - cor0.col2 + ( + col1 + col0 ) AS col0 FROM tab1 AS cor0
----
119901
32563
75844
skipif mysql # not compatible
query I rowsort label-9376
SELECT + + col1 * - cor0.col2 * - col2 + + 94 / - cor0.col2 + ( + col1 + col0 ) AS col0 FROM tab1 AS cor0
----
119901
32563
75844
query I rowsort
SELECT DISTINCT 34 * tab1.col1 + - col2 AS col2 FROM tab1
----
283
346
830
query I rowsort
SELECT ALL - 23 + + col0 AS col0 FROM tab2
----
-16
55
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-9379
SELECT ALL + col1 DIV col2 + + col0 AS col1 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + col1 / col2 + + col0 AS col1 FROM tab0
----
132
26
90
query I rowsort
SELECT ALL cor0.col0 + col1 AS col2 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT - 81 AS col1 FROM tab2 AS cor0
----
-81
-81
-81
query I rowsort
SELECT DISTINCT + + cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9383
SELECT ALL + ( + col0 ) + + ( - col0 ) DIV - col0 + + col2 * - 34 * + col0 AS col0 FROM tab2 AS cor0
----
-101988
-6418
-68873
skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL + ( + col0 ) + + ( - col0 ) / - col0 + + col2 * - 34 * + col0 AS col0 FROM tab2 AS cor0
----
-101988
-6418
-68873
query I rowsort
SELECT DISTINCT + 92 + col1 FROM tab2 AS cor0
----
109
123
151
query I rowsort
SELECT DISTINCT - 43 + + 26 * - col2 FROM tab1 AS cor0
----
-1447
-1525
-2539
onlyif mysql # use DIV operator for integer division
query I rowsort label-9386
SELECT DISTINCT + + col1 DIV + col1 + + col0 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + + col1 / + col1 + + col0 FROM tab1 cor0
----
4
65
81
query I rowsort
SELECT + col0 + col1 + + cor0.col0 * + 56 * col0 FROM tab0 AS cor0
----
32366
443756
68732
query I rowsort
SELECT ALL + ( cor0.col0 ) * + col2 + + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - + col0 + - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9390
SELECT ALL - + CAST( col2 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - + CAST ( col2 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9391
SELECT ALL col1 + + 27 DIV + col1 AS col1 FROM tab1 cor0
----
12
15
27
skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL col1 + + 27 / + col1 AS col1 FROM tab1 cor0
----
12
15
27
query I rowsort
SELECT + 36 - 99 AS col2 FROM tab2 AS cor0
----
-63
-63
-63
query I rowsort
SELECT - - col0 * col0 - + col1 AS col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT - col2 * - 9 + col2 AS col0 FROM tab1 AS cor0
----
540
570
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9395
SELECT ALL + CAST( NULL AS SIGNED ) * - 13 + + col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + CAST ( NULL AS INTEGER ) * - 13 + + col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT 65 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT - + 60 * - col2 + - col1 AS col0 FROM tab2 AS cor0
----
1501
1589
2263
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 - col1 col1 FROM tab0 AS cor0
----
-53
-58
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9400
SELECT + CAST( 34 AS SIGNED ) + col0 DIV col1 FROM tab1 AS cor0
----
34
40
40
skipif mysql # not compatible
query I rowsort label-9400
SELECT + CAST ( 34 AS INTEGER ) + col0 / col1 FROM tab1 AS cor0
----
34
40
40
query I rowsort
SELECT - - col0 + col2 * + col1 FROM tab2 AS cor0
----
1612
725
844
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683
onlyif mysql # use DIV operator for integer division
query I rowsort label-9403
SELECT - - col1 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-9403
SELECT - - col1 + col2 / col1 AS col0 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT ALL ( col1 ) * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 57 FROM tab0 cor0
----
-57
query I rowsort
SELECT 61 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1464
2135
5429
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 20 * - col1 col0 FROM tab1 cor0
----
-200
-260
-520
query I rowsort
SELECT DISTINCT - tab2.col2 * col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL - 62 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT col0 * ( tab1.col0 ) + + col1 * + ( 2 + col0 * col0 ) AS col1 FROM tab1
----
295
45076
89626
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9411
SELECT + col2 + - CAST( NULL AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9411
SELECT + col2 + - CAST ( NULL AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + + col0 col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT col2 * + cor0.col1 * col1 AS col2 FROM tab2 cor0
----
10982
25947
90506
query I rowsort
SELECT ALL col0 + + col2 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT cor0.col2 * + col1 * - cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT cor0.col2 + + col1 * col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT - - 29 * 66 - cor0.col2 AS col1 FROM tab1 AS cor0
----
1818
1857
1860
query I rowsort
SELECT ALL + + 8 FROM tab0 AS cor0
----
8
8
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 + + cor0.col1 * - col1 col1 FROM tab0 AS cor0
----
-7340
-8225
-9353
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + col1 * - 23 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT DISTINCT - col2 - + col0 * col0 * - col0 FROM tab1 AS cor0
----
-27
262087
511904
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9427
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-9427
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9428
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ( + 95 ) AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9430
SELECT DISTINCT + col1 + + 86 DIV col2 FROM tab0 AS cor0
----
183
88
92
skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT + col1 + + 86 / col2 FROM tab0 AS cor0
----
183
88
92
query I rowsort
SELECT - ( col0 ) + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col1 * + col2 * + col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT + 38 * col1 AS col1 FROM tab2 AS cor0
----
1178
2242
646
query I rowsort
SELECT DISTINCT + - 76 FROM tab2 AS cor0
----
-76
query I rowsort
SELECT cor0.col2 * col1 + 59 FROM tab1 AS cor0
----
1307
1463
629
query I rowsort
SELECT ALL 75 * cor0.col0 FROM tab2 AS cor0
----
525
5850
5925
query I rowsort
SELECT ALL col1 * col2 + col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9438
SELECT DISTINCT - 17 + - col2 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9438
SELECT DISTINCT - 17 + - col2 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT - 87 AS col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * + col1 + - cor0.col2 * col0 col2 FROM tab2 AS cor0
----
-1676
2229
2574
query I rowsort
SELECT DISTINCT - col0 + - col1 * col1 FROM tab2 cor0
----
-3559
-368
-968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9442
SELECT ALL - - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL - - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * ( - col1 * col2 ) FROM tab0 AS cor0
----
611884
93654
97
skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 * - CAST ( + 65 AS REAL ) AS col0 FROM tab2 cor0
----
-1105
-2015
-3835
query I rowsort
SELECT DISTINCT - 78 + + col1 + - ( + col2 ) * - col1 FROM tab1
----
1183
1352
502
query I rowsort
SELECT + - 14 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc
query I rowsort
SELECT - col0 * - 24 + col1 AS col0 FROM tab1
----
1546
1933
98
query I rowsort
SELECT - ( - col0 ) + - tab1.col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + - 2 AS col2 FROM tab1 AS cor0
----
-2
-2
-2
query I rowsort
SELECT DISTINCT + 77 FROM tab0, tab2 AS cor0
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-9451
SELECT ALL - cor1.col0 DIV 57 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - cor1.col0 / 57 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
query I rowsort
SELECT DISTINCT + tab0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT ALL col2 DIV - col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9454
SELECT ALL col2 / - col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL + - col2 + - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ( col2 * + col2 ) AS col1 FROM tab2
----
1444
676
729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9457
SELECT ALL - ( - col1 ) - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - ( - col1 ) - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - - 78 + + col2 AS col1 FROM tab2 AS cor0
----
104
105
116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 + + 86 col2 FROM tab1 cor0
----
1334
1490
656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 + col0 col0 FROM tab2 AS cor0
----
-11
-12
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * col1 + col2 col1 FROM tab2
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9462
SELECT ALL tab1.col2 + + CAST( - col0 AS SIGNED ) FROM tab1
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL tab1.col2 + + CAST ( - col0 AS INTEGER ) FROM tab1
----
-7
16
51
query I rowsort
SELECT col0 + + 81 FROM tab1
----
145
161
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9464
SELECT col1 * ( + col1 ) DIV col0 FROM tab0 AS cor0
----
268
308
93
skipif mysql # not compatible
query I rowsort label-9464
SELECT col1 * ( + col1 ) / col0 FROM tab0 AS cor0
----
268
308
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9465
SELECT + - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9465
SELECT + - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + - ( + col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + + col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-9468
SELECT ALL col2 + + 15 DIV col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL col2 + + 15 / col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - + cor0.col1 * col0 + - cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - col0 * + col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + - col2 col0 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT ALL - ( 99 ) + col2 AS col0 FROM tab0 AS cor0
----
-17
-66
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9473
SELECT ALL - ( + 33 ) * col1 + 22 DIV + col2 FROM tab0 AS cor0
----
-2838
-3003
-3179
skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - ( + 33 ) * col1 + 22 / + col2 FROM tab0 AS cor0
----
-2838
-3003
-3179
query I rowsort
SELECT ALL + 40 * + col2 AS col2 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT ALL + - 4 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2912
3245
9212
query I rowsort
SELECT - - 15 * - cor0.col1 AS col1 FROM tab1 cor0
----
-150
-195
-390
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * col0 col1 FROM tab2
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-9478
SELECT - col1 + ( 46 + col0 ) * col2 DIV col1 AS col0 FROM tab2
----
-5
15
262
skipif mysql # not compatible
query I rowsort label-9478
SELECT - col1 + ( 46 + col0 ) * col2 / col1 AS col0 FROM tab2
----
-5
15
262
query I rowsort
SELECT 87 FROM tab2, tab1 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT col0 * 55 FROM tab0
----
1320
1925
4895
query I rowsort
SELECT DISTINCT - ( col1 ) + + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT ( 60 ) * + col2 - + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
3186
3363
5664
query I rowsort
SELECT col0 + - ( + col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col1 * col0 * - col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT 9 * + col0 + col2 AS col2 FROM tab1 AS cor0
----
633
81
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 * - col1 * col1 + + 61 * col2 col0 FROM tab0 cor0
----
556713
626077
705736
query I rowsort
SELECT ALL 21 - + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
2937
3270
9237
query I rowsort
SELECT ALL + + col2 * + cor0.col0 + col1 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 + - col0 * + col2 col2 FROM tab2 AS cor0
----
-2091
-252
-3065
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * col0 col0 FROM tab2 AS cor0
----
287
3198
3239
query I rowsort
SELECT ALL - 24 + + ( col1 ) * + 54 AS col2 FROM tab2 AS cor0
----
1650
3162
894
query I rowsort
SELECT - ( col0 * col0 ) AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + cor0.col0 + 68 FROM tab2 AS cor0
----
146
147
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT + 73 + - cor0.col2 DIV col1 FROM tab1 AS cor0
----
66
68
71
skipif mysql # not compatible
query I rowsort label-9496
SELECT + 73 + - cor0.col2 / col1 FROM tab1 AS cor0
----
66
68
71
query I rowsort
SELECT ALL + + col0 * + col2 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + 27 * - col0 FROM tab0 AS cor0
----
-2403
-648
-945
query I rowsort
SELECT + + col1 * + 52 * - col2 + + 38 FROM tab2 AS cor0
----
-33554
-43486
-79730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9500
SELECT cor0.col0 + col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9500
SELECT cor0.col0 + col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * 65 FROM tab1
----
195
4160
5200
query I rowsort
SELECT ALL col2 * + tab0.col1 AS col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col0 FROM tab1, tab0, tab2 AS cor0
----
-22
query I rowsort
SELECT ALL + col1 + col1 AS col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT col1 * - 46 + + 21 * col0 FROM tab1 AS cor0
----
-1133
1082
884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + + cor0.col2 - col2 col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9507
SELECT - + col2 DIV + 87 AS col2 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9507
SELECT - + col2 / + 87 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - col0 + - ( 77 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1924
2072
2847
query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - col1 * - col0 - 57 * - col2 FROM tab2 AS cor0
----
-3120
1322
823
query I rowsort
SELECT ALL - + col2 * ( + 68 ) FROM tab1 AS cor0
----
-3672
-3876
-6528
onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT col1 DIV + col1 - 74 * cor0.col1 * 12 FROM tab2 cor0
----
-15095
-27527
-52391
skipif mysql # not compatible
query I rowsort label-9512
SELECT col1 / + col1 - 74 * cor0.col1 * 12 FROM tab2 cor0
----
-15095
-27527
-52391
query I rowsort
SELECT ALL - col0 * + ( col1 + col0 ) FROM tab2 AS cor0
----
-10686
-266
-7584
query I rowsort
SELECT - + col1 * + ( - col2 * col1 ) - ( cor0.col2 ) * col0 AS col1 FROM tab2 AS cor0
----
25758
7980
88478
query I rowsort
SELECT DISTINCT col2 - + col1 * - col1 AS col0 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT ALL - 25 FROM tab1, tab1 cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9517
SELECT ALL tab0.col0 * - 78 + + 95 + - tab0.col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL tab0.col0 * - 78 + + 95 + - tab0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9518
SELECT DISTINCT CAST( - 60 AS SIGNED ) FROM tab0, tab2 AS cor0
----
-60
skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT CAST ( - 60 AS INTEGER ) FROM tab0, tab2 AS cor0
----
-60
query I rowsort
SELECT ( - col0 ) * - col0 + col2 * 63 FROM tab0 AS cor0
----
1288
13087
2655
query I rowsort
SELECT DISTINCT col0 * 63 + col1 + + col1 FROM tab2
----
5011
503
5032
onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT col0 DIV 81 + - col0 FROM tab0
----
-24
-35
-88
skipif mysql # not compatible
query I rowsort label-9521
SELECT col0 / 81 + - col0 FROM tab0
----
-24
-35
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9522
SELECT + col2 * col2 - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9522
SELECT + col2 * col2 - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + col0 - tab0.col1 * + ( - col0 * col1 ) FROM tab0
----
178296
329350
744307
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 * ( + col0 ) + col1 col0 FROM tab0
----
-13738
-42778
-704878
query I rowsort
SELECT ALL - ( - col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + ( cor1.col0 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + 23 * - cor0.col1 FROM tab1 AS cor0
----
-230
-299
-598
query I rowsort
SELECT + col0 * + col2 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT cor0.col1 DIV + col0 - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-18
skipif mysql # not compatible
query I rowsort label-9529
SELECT cor0.col1 / + col0 - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-18
query I rowsort
SELECT ALL col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - col0 + + cor0.col1 * - col0 * - col2 AS col0 FROM tab0 AS cor0
----
3360
664029
68088
query I rowsort
SELECT + cor0.col0 * 76 - + col2 AS col1 FROM tab2 AS cor0
----
505
5902
5966
query I rowsort
SELECT ALL - col2 + ( - 21 * col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
-1411
-143
-1789
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - cor0.col1 col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9535
SELECT ALL + + col1 * ( - col0 ) DIV col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL + + col1 * ( - col0 ) / col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col1 + + col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT + col1 * col2 - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - col0 * + ( + col0 ) FROM tab1 cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * 45 * col2 - col1 col0 FROM tab1 AS cor0
----
25640
56147
63154
query I rowsort
SELECT + + col0 * - ( - col2 ) - + col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL cor0.col2 * 61 + - col2 AS col1 FROM tab1 AS cor0
----
3240
3420
5760
query I rowsort
SELECT + - 24 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab2
----
-65
query I rowsort
SELECT + tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + + ( - col2 ) * col0 * - col0 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9546
SELECT - CAST( NULL AS SIGNED ) * 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9546
SELECT - CAST ( NULL AS INTEGER ) * 30 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + + 98 * col1 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT - + ( col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - 33 * - col0 FROM tab0 cor0
----
1155
2937
792
query I rowsort
SELECT + 17 * - col0 + - col2 AS col1 FROM tab0 cor0
----
-1595
-441
-596
query I rowsort
SELECT - + col1 * - 92 FROM tab2 cor0
----
1564
2852
5428
query I rowsort
SELECT - col1 * col2 * + col2 FROM tab0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9553
SELECT ALL + + ( - col0 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + + ( - col0 ) / - col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 * - col1 * ( col2 + col0 ) col2 FROM tab0 AS cor0
----
117681
122221
1385011
query I rowsort
SELECT ALL tab0.col2 * - col1 AS col2 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * tab2.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c2aacfdf4f2480a874e8b88315fbf830
onlyif mysql # use DIV operator for integer division
query I rowsort label-9557
SELECT ALL - col1 DIV col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL - col1 / col1 FROM tab1
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9558
SELECT ALL CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9558
SELECT ALL CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT + col0 + col0 * + col2 + + 76 * col1 FROM tab0 AS cor0
----
14303
7352
7442
query I rowsort
SELECT - - 52 * + cor0.col2 FROM tab1 AS cor0
----
2808
2964
4992
onlyif mysql # use DIV operator for integer division
query I rowsort label-9561
SELECT + ( 14 ) * cor0.col2 DIV col0 AS col1 FROM tab2 AS cor0
----
4
54
6
skipif mysql # not compatible
query I rowsort label-9561
SELECT + ( 14 ) * cor0.col2 / col0 AS col1 FROM tab2 AS cor0
----
4
54
6
query I rowsort
SELECT DISTINCT ( - tab1.col1 ) * col1 AS col2 FROM tab1
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-9563
SELECT + 37 DIV cor0.col0 col2 FROM tab1 AS cor0
----
0
0
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9563
SELECT + 37 / cor0.col0 col2 FROM tab1 AS cor0
----
0
0
12
query I rowsort
SELECT DISTINCT col2 + col2 + col2 AS col2 FROM tab0
----
246
3
99
query I rowsort
SELECT - col1 * 98 AS col0 FROM tab0
----
-8428
-8918
-9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-9566
SELECT + col1 DIV - col2 - + col2 AS col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9566
SELECT + col1 / - col2 - + col2 AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT 12 * + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 125f2f3fb2d94b0cc3f62e6ce4a3f314
query I rowsort
SELECT - 81 + - col2 AS col1 FROM tab2 AS cor0
----
-107
-108
-119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + cor0.col2 col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + - 41 + + col1 FROM tab1 AS cor0
----
-15
-28
-31
query I rowsort
SELECT DISTINCT + + ( - col2 ) * col0 - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + + col1 + col1 * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + + cor0.col2 col1 FROM tab1 AS cor0
----
148
151
190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col2 FROM tab1
----
0
query I rowsort
SELECT ALL - ( col1 ) * col2 + col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ALL 30 * - col0 FROM tab0
----
-1050
-2670
-720
query I rowsort
SELECT - tab0.col2 + tab0.col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT - 0 * col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 62 * + col0 + col1 FROM tab2 AS cor0
----
465
4895
4915
query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 * col0 AS col2 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT ALL - 14 FROM tab2 cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT - - 87 * + col1 FROM tab1 AS cor0
----
1131
2262
870
query I rowsort
SELECT ALL col0 + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + - 15 AS col2 FROM tab1 AS cor0
----
-15
query I rowsort
SELECT DISTINCT 74 FROM tab0 cor0
----
74
query I rowsort
SELECT ALL - col0 - - col0 * 68 AS col1 FROM tab2
----
469
5226
5293
query I rowsort
SELECT ALL + col0 * - 12 FROM tab0
----
-1068
-288
-420
query I rowsort
SELECT DISTINCT - ( + 75 ) AS col0 FROM tab1, tab2 cor0
----
-75
query I rowsort
SELECT + col1 * 42 - ( + col2 + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
1035
299
370
query I rowsort
SELECT - - cor0.col1 - + 26 AS col2 FROM tab0 AS cor0
----
60
65
71
query I rowsort
SELECT DISTINCT + ( - col2 ) + col1 * + col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + cor0.col0 * + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9594
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + 10 AS col2 FROM tab1 AS cor0
----
106
64
67
query I rowsort
SELECT DISTINCT cor0.col1 + - col1 * col2 * cor0.col2 - + cor0.col2 * + col2 FROM tab1 AS cor0
----
-129011
-35729
-78706
query I rowsort
SELECT ALL + - col2 * - cor0.col1 + col2 + col2 FROM tab1 AS cor0
----
1440
1512
684
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + - col0 + col2 + col2 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab1, tab2 AS cor0
----
16
query I rowsort
SELECT DISTINCT + 47 * col2 + col0 AS col0 FROM tab1 AS cor0
----
2541
2743
4592
onlyif mysql # use DIV operator for integer division
query I rowsort label-9602
SELECT ALL + + 31 DIV col1 + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL + + 31 / col1 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL col2 * + col1 - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col1 * - ( 7 ) AS col2 FROM tab2 cor0
----
119
217
413
query I rowsort
SELECT DISTINCT col2 * - ( 65 ) FROM tab0 AS cor0
----
-2145
-5330
-65
query I rowsort
SELECT ALL col0 * 89 AS col1 FROM tab0
----
2136
3115
7921
query I rowsort
SELECT + + col1 + - col0 * col0 * - col0 FROM tab1 AS cor0
----
262154
512013
53
query I rowsort
SELECT DISTINCT col2 + 14 FROM tab0 AS cor0
----
15
47
96
query I rowsort
SELECT ALL col2 - - cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col2 + + col2 * col2 * - cor0.col2 FROM tab2 AS cor0
----
-17602
-19710
-54910
query I rowsort
SELECT - cor0.col2 * - 1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT col0 + 90 + + col0 FROM tab0 AS cor0
----
138
160
268
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9614
SELECT DISTINCT - col1 + - tab2.col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT - col1 + - tab2.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
query I rowsort
SELECT col1 + 22 FROM tab1 AS cor0
----
32
35
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ( 5 ) + cor2.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to a05dc5b9aab828bef917ee4fb3a61329
query I rowsort
SELECT 77 FROM tab1, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT col2 * 60 AS col2 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT + cor0.col2 * - col1 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT - 1 + 84 * col2 * col2 + - col1 AS col2 FROM tab1
----
244917
272905
774130
query I rowsort
SELECT DISTINCT + ( col1 ) + col0 * cor0.col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL col1 + - col2 * ( col1 ) FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + cor0.col2 * col2 + col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + 38 + col0 AS col0 FROM tab0 AS cor0
----
127
62
73
query I rowsort
SELECT ALL - 48 * + col0 + col2 AS col1 FROM tab0
----
-1119
-1679
-4190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 + col0 * + col0 * + col0 col0 FROM tab0
----
13833
42884
704978
query I rowsort
SELECT DISTINCT - 72 + + col1 + - 39 AS col0 FROM tab0
----
-14
-20
-25
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
86
91
97
query I rowsort
SELECT ALL 50 + col2 + + col0 FROM tab1
----
107
171
226
query I rowsort
SELECT ALL - 57 + - col0 AS col1 FROM tab2
----
-135
-136
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9633
SELECT ALL - 2 * col1 * - CAST( + col0 AS SIGNED ) + + col0 FROM tab0
----
16287
4152
6825
skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL - 2 * col1 * - CAST ( + col0 AS INTEGER ) + + col0 FROM tab0
----
16287
4152
6825
query I rowsort
SELECT ALL + col0 + + col1 * 19 AS col2 FROM tab2
----
1199
402
596
query I rowsort
SELECT 35 * col0 FROM tab0
----
1225
3115
840
query I rowsort
SELECT DISTINCT + cor0.col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - - cor0.col2 AS col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT 70 * + cor0.col2 + ( 51 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
3831
4041
6771
query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - col0 * ( cor0.col0 ) + cor0.col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT 61 * 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b1bcffdef82f8b7121bc3cc7c0eac57c
query I rowsort
SELECT ALL + 63 * col2 - ( - col2 * col2 ) FROM tab1 AS cor0
----
15264
6318
6840
query I rowsort
SELECT ALL 57 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT DISTINCT - col1 * col0 * + col0 AS col2 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT col2 * col0 + col0 + + tab1.col0 FROM tab1
----
168
3776
7840
query I rowsort
SELECT + + col2 * - 78 AS col0 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT col0 * + 66 FROM tab2
----
462
5148
5214
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 8 * col0 col2 FROM tab1 AS cor0
----
27
576
720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9649
SELECT - col0 DIV CAST( - col0 * col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9649
SELECT - col0 / CAST ( - col0 * col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * + 68 AS col0 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT + ( + 68 ) FROM tab2
----
68
68
68
query I rowsort
SELECT ( + ( - col0 ) ) AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - tab2.col1 * + col0 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + 29 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT - - ( col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col1 * - col2 + + col2 * 30 * cor0.col0 - cor0.col1 * + 85 FROM tab1 AS cor0
----
108020
1246
228047
query I rowsort
SELECT - cor0.col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT 10 FROM tab2 cor0
----
10
query I rowsort
SELECT DISTINCT + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + ( - 65 ) * - col0 FROM tab0 AS cor0
----
1560
2275
5785
query I rowsort
SELECT ALL - cor0.col2 * - cor1.col1 + 6 * - cor1.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 150bf5a84f18fe1b8764432caf0c0353
query I rowsort
SELECT + col0 * - col1 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - col0 * col1 * + 3 FROM tab1 AS cor0
----
-1920
-234
-3120
query I rowsort
SELECT ( col1 ) + col0 * + col0 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT tab0.col0 * + col0 * - tab0.col1 + - col0 * + col1 FROM tab0
----
-122220
-51600
-728910
query I rowsort
SELECT - col1 * - col1 + 36 FROM tab1 AS cor0
----
136
205
712
query I rowsort
SELECT col2 * col2 + + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL ( tab0.col0 ) + + col2 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT + col0 + + col0 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT - ( 31 ) * + col1 * col2 FROM tab1 AS cor0
----
-17670
-38688
-43524
query I rowsort
SELECT ALL ( 80 ) + col1 FROM tab1
----
106
90
93
query I rowsort
SELECT ALL ( col2 ) + + 28 AS col2 FROM tab1 cor0
----
124
82
85
query I rowsort
SELECT DISTINCT + col0 * col1 * - col1 AS col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT col2 + col2 * 34 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT 53 * cor0.col2 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT ALL col2 * + col2 * + 83 + - col0 + col1 AS col1 FROM tab2 cor0
----
119790
56089
60531
query I rowsort
SELECT DISTINCT - + 11 + - col2 AS col0 FROM tab1 AS cor0
----
-107
-65
-68
query I rowsort
SELECT - + col1 * cor0.col2 * + ( col2 ) FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - col2 + - col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + 52 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-37
17
28
query I rowsort
SELECT - + col2 + 4 * - cor0.col1 FROM tab2 cor0
----
-106
-151
-262
query I rowsort
SELECT col1 - cor0.col2 * col1 AS col1 FROM tab2 cor0
----
-1475
-629
-806
skipif mysql # not compatible
query I rowsort
SELECT ALL tab2.col0 + CAST ( 43 AS REAL ) FROM tab2
----
121
122
50
query I rowsort
SELECT - col2 + + ( - cor0.col2 ) * + col1 FROM tab2 cor0
----
-1560
-684
-864
query I rowsort
SELECT - + col2 + ( + ( cor0.col1 ) ) FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + 70 + + col2 FROM tab1
----
124
127
166
query I rowsort
SELECT col1 + 38 FROM tab0 AS cor0
----
124
129
135
query I rowsort
SELECT ALL - + cor0.col1 * - 43 FROM tab2 AS cor0
----
1333
2537
731
query I rowsort
SELECT - - col2 + - col2 * - ( col0 + col0 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
1328318
136257
6791
query I rowsort
SELECT col0 * ( + cor0.col2 ) * col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT col1 * col0 + 30 * - cor0.col1 FROM tab0 AS cor0
----
-516
485
5369
onlyif mysql # use DIV operator for integer division
query I rowsort label-9692
SELECT ALL + - ( + col2 ) DIV + col0 - - 60 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL + - ( + col2 ) / + col0 - - 60 / - col1 AS col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
54
57
96
query I rowsort
SELECT - + 40 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-2157
-2216
-3760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - 57 * col1 col2 FROM tab1 AS cor0
----
-1508
-580
-754
query I rowsort
SELECT col2 * 42 + - col0 + ( col2 ) * col0 AS col2 FROM tab0 AS cor0
----
10653
2154
42
query I rowsort
SELECT + cor0.col0 + - ( col0 ) * - col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - - ( + col1 ) * col0 + col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + 20 * col2 AS col2 FROM tab2 AS cor0
----
520
540
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9701
SELECT ALL CAST( NULL AS SIGNED ) + col2 * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 23 * + 87 col1 FROM tab0 AS cor0
----
-2001
-2001
-2001
query I rowsort
SELECT col2 + ( - col2 ) - + tab2.col1 AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL - ( 93 ) + - col2 * + col2 FROM tab1 AS cor0
----
-3009
-3342
-9309
query I rowsort
SELECT + 20 * col1 FROM tab2 AS cor0
----
1180
340
620
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT ALL - cor0.col1 + 36 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5a7ea829bf3f5888cbb2de1902a5f1f4
query I rowsort
SELECT col1 * 91 + col1 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT - 66 AS col1 FROM tab2 AS cor0
----
-66
-66
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9710
SELECT ALL col0 + ( col2 * + CAST( col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL col0 + ( col2 * + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - 50 * - col0 + + col1 AS col2 FROM tab2
----
381
3959
3967
query I rowsort
SELECT ALL - col0 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT - cor0.col2 * + ( ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - 81 * col1 - col1 * tab0.col0 * + col0 FROM tab0
----
-126682
-56502
-728182
query I rowsort
SELECT col0 * tab1.col0 - - 43 * col1 FROM tab1
----
1127
4526
6959
query I rowsort
SELECT DISTINCT col1 * - col2 + - 70 * - tab0.col2 AS col2 FROM tab0
----
-1722
-27
-528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9717
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9717
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * + tab1.col0 + ( + col1 ) AS col2 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT tab2.col1 + tab2.col2 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a66faf44289070d88fd26bbc9bf34e3
query I rowsort
SELECT DISTINCT col2 * + col0 * + col2 - col2 FROM tab1
----
207879
737184
8694
query I rowsort
SELECT col2 + - col2 + col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT DISTINCT + col1 + 70 + tab1.col0 DIV col2 AS col2 FROM tab1
----
81
83
96
skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT + col1 + 70 + tab1.col0 / col2 AS col2 FROM tab1
----
81
83
96
query I rowsort
SELECT DISTINCT col1 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9724
SELECT - col1 + - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9724
SELECT - col1 + - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT ALL + cor0.col1 DIV - 77 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + cor0.col1 / - 77 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 - col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col1 * col1 + + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT - col2 - + cor0.col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-9729
SELECT cor0.col0 + col0 * col0 DIV cor0.col1 FROM tab1 cor0
----
3
473
572
skipif mysql # not compatible
query I rowsort label-9729
SELECT cor0.col0 + col0 * col0 / cor0.col1 FROM tab1 cor0
----
3
473
572
query I rowsort
SELECT col1 * cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT col0 + col2 * tab0.col2 * col2 + col0 AS col2 FROM tab0
----
35985
551546
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * - col0 col0 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-9733
SELECT - col0 DIV + tab0.col2 + - col1 AS col1 FROM tab0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-9733
SELECT - col0 / + tab0.col2 + - col1 AS col1 FROM tab0
----
-132
-86
-92
query I rowsort
SELECT ALL - col0 * + col1 * cor0.col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + + col0 + + cor0.col0 + + col1 * col0 FROM tab1 cor0
----
1200
768
84
query I rowsort
SELECT - cor0.col1 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT col2 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT col2 + + col2 * col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + col2 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL col1 * col0 + - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT NULL <= col1
----
query I rowsort
SELECT + col1 + col0 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL - tab1.col0 * + col2 + + tab1.col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - col2 * col1 - col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT + col2 * col1 - + col1 AS col0 FROM tab2
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-9748
SELECT - tab0.col1 * col0 DIV + col2 AS col1 FROM tab0
----
-3395
-62
-98
skipif mysql # not compatible
query I rowsort label-9748
SELECT - tab0.col1 * col0 / + col2 AS col1 FROM tab0
----
-3395
-62
-98
query I rowsort
SELECT + col0 * tab0.col1 + col0 * - col2 + - col2 FROM tab0
----
1239
3359
719
onlyif mysql # use DIV operator for integer division
query I rowsort label-9750
SELECT col2 + col0 * - col0 * col2 + col2 * col2 DIV + col2 col2 FROM tab0
----
-1223
-18942
-649358
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9750
SELECT col2 + col0 * - col0 * col2 + col2 * col2 / + col2 col2 FROM tab0
----
-1223
-18942
-649358
query I rowsort
SELECT + col2 * tab2.col0 + + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL + col2 * col0 * col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT col0 + - col1 AS col2 FROM tab0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9754
SELECT - tab1.col2 DIV col2 + col2 + - col1 FROM tab1
----
27
46
82
skipif mysql # not compatible
query I rowsort label-9754
SELECT - tab1.col2 / col2 + col2 + - col1 FROM tab1
----
27
46
82
query I rowsort
SELECT DISTINCT + col1 + - col0 + + col1 FROM tab2
----
-45
40
55
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col1 ) AND ( col0 + col1 ) IN ( + col0 )
----
query I rowsort
SELECT col0 + - tab2.col2 * col0 FROM tab2
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 18 * col1 + ( + 48 ) col1 FROM tab0 cor0
----
1596
1686
1794
query I rowsort
SELECT + 32 + col2 AS col2 FROM tab0 AS cor0
----
114
33
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-9761
SELECT DISTINCT + col0 - col0 DIV - col0 AS col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT + col0 - col0 / - col0 AS col0 FROM tab0
----
25
36
90
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9763
SELECT ALL - 16 DIV col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL - 16 / col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9764
SELECT DISTINCT + col1 DIV - col1 AS col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + col1 / - col1 AS col1 FROM tab0
----
-1
query I rowsort
SELECT - tab0.col1 + col1 * + col2 AS col2 FROM tab0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + col1 * + col0 + col0 AS col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL col2 * + col2 + + col1 AS col1 FROM tab2 WHERE col1 NOT IN ( - col2 )
----
1461
735
760
query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL IN ( + col2 )
----
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL <= NULL
----
query I rowsort
SELECT col1 + - tab0.col0 + col2 * col0 AS col2 FROM tab0 WHERE NULL NOT IN ( col0 * col1 )
----
query I rowsort
SELECT + col1 - - col1 * + tab1.col1 AS col1 FROM tab1
----
110
182
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col2 + - col1 + col1 * - cor0.col0 FROM tab2 cor0
----
-1322
-221
-4635
query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT - tab2.col0 + - col1 AS col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + col1 + - col1 * col2 * col1 AS col1 FROM tab0
----
-243982
-678951
-9312
query I rowsort
SELECT ALL + col1 * col1 + tab1.col1 AS col1 FROM tab1
----
110
182
702
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT BETWEEN - col1 AND ( + col2 * + col1 + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - tab0.col0 + + col2 + col1 * col2 FROM tab0
----
2847
63
7455
onlyif mysql # use DIV operator for integer division
query I rowsort label-9780
SELECT ALL + col0 DIV tab0.col0 - col2 AS col0 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL + col0 / tab0.col0 - col2 AS col0 FROM tab0
----
-32
-81
0
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) <= NULL
----
query I rowsort
SELECT - col0 - + col0 * col2 AS col2 FROM tab0
----
-70
-7387
-816
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - tab0.col0 * col2 * + tab0.col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + - col2 - - col0 col2 FROM tab0
----
7387
8288
9443
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9786
SELECT + col1 DIV + col0 AS col2 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9786
SELECT + col1 / + col0 AS col2 FROM tab2
----
0
0
4
query I rowsort
SELECT ALL - col2 * col2 + - col0 * tab2.col1 AS col1 FROM tab2
----
-2787
-5278
-946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9788
SELECT ALL col2 + + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + + col0 * - col0 + 46 FROM tab1 AS cor0
----
-4050
-6354
37
query I rowsort
SELECT ALL col0 + col2 + 27 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
2385
63
948
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab0, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT + col1 - col0 * + col0 AS col0 FROM tab2
----
-18
-6025
-6224
onlyif mysql # use DIV operator for integer division
query I rowsort label-9794
SELECT ALL - 38 DIV - col0 FROM tab2
----
0
0
5
skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL - 38 / - col0 FROM tab2
----
0
0
5
query I rowsort
SELECT ALL + tab0.col1 + - 76 AS col2 FROM tab0
----
10
15
21
query I rowsort
SELECT - 58 + - 47 FROM tab1, tab1 AS cor0
----
9 values hashing to c0af328d38b82a55707e7cbb373586e8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9797
SELECT col1 DIV col0 - tab2.col2 AS col2 FROM tab2
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-9797
SELECT col1 / col0 - tab2.col2 AS col2 FROM tab2
----
-23
-26
-38
query I rowsort
SELECT DISTINCT - tab2.col1 + col2 + - col0 * + col1 FROM tab2
----
-1322
-221
-4635
query I rowsort
SELECT + col0 + 42 + - col0 * col1 * col1 AS col0 FROM tab2 AS cor0
----
-22710
-271398
-6678
query I rowsort
SELECT DISTINCT - cor0.col0 * 94 + - col2 + col2 FROM tab1 AS cor0
----
-282
-6016
-7520
query I rowsort
SELECT DISTINCT - - cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9802
SELECT + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9802
SELECT + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT - 19 DIV - 4 AS col2 FROM tab1
----
4
4
4
skipif mysql # not compatible
query I rowsort label-9803
SELECT - 19 / - 4 AS col2 FROM tab1
----
4
4
4
query I rowsort
SELECT tab2.col1 * tab2.col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL 78 * - 88 FROM tab2
----
-6864
-6864
-6864
query I rowsort
SELECT + col1 * col0 + col0 + - 12 AS col1 FROM tab0 AS cor0
----
2076
3418
8176
query I rowsort
SELECT - - 61 AS col1 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT ALL - + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - 93 - + col2 FROM tab2 AS cor0
----
-119
-120
-131
query I rowsort
SELECT ALL - - col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - ( col1 ) * col0 + - col0 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT + col2 * col1 - - col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - col1 * + col0 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-2787
-5278
-946
query I rowsort
SELECT DISTINCT - - 22 + + col0 AS col2 FROM tab0 AS cor0
----
111
46
57
query I rowsort
SELECT - cor0.col0 + col1 * 49 FROM tab2 AS cor0
----
1512
2813
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9816
SELECT - cor0.col1 * col0 - CAST( col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1054
-1989
-6136
skipif mysql # not compatible
query I rowsort label-9816
SELECT - cor0.col1 * col0 - CAST ( col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL - - col2 * - col2 + - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312
query I rowsort
SELECT DISTINCT + 42 + col2 AS col2 FROM tab0 AS cor0
----
124
43
75
query I rowsort
SELECT ALL - 27 * + tab2.col0 + + 36 AS col0 FROM tab2
----
-153
-2070
-2097
query I rowsort
SELECT + col2 * - col2 + tab2.col1 AS col1 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT col0 * col2 + + ( - tab0.col0 ) AS col0 FROM tab0
----
0
7209
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 * + tab1.col2 ) + ( - col2 ) col0 FROM tab1
----
108
3591
7584
query I rowsort
SELECT 14 + + col2 + col1 FROM tab0
----
112
133
187
onlyif mysql # use DIV operator for integer division
query I rowsort label-9824
SELECT DISTINCT - col1 DIV + col2 + - col2 * - 28 AS col1 FROM tab1
----
1512
1596
2688
skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT - col1 / + col2 + - col2 * - 28 AS col1 FROM tab1
----
1512
1596
2688
query I rowsort
SELECT col1 * tab2.col0 * + col0 AS col0 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col2 FROM tab0
----
110
132
180
query I rowsort
SELECT 67 * - col2 FROM tab0
----
-2211
-5494
-67
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 cor0, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT DISTINCT + col1 * - col1 + col0 + ( col1 ) AS col1 FROM tab1
----
-26
-647
-76
query I rowsort
SELECT ALL - 28 AS col1 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT ALL 11 * col1 AS col1 FROM tab0 AS cor0
----
1001
1067
946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 * col2 col2 FROM tab1 AS cor0
----
3780
3990
6720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9833
SELECT ALL + col0 * - cor0.col1 - ( 67 ) * + col1 * + CAST( + col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-12363
-45370
-7340
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL + col0 * - cor0.col1 - ( 67 ) * + col1 * + CAST ( + col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-12363
-45370
-7340
query I rowsort
SELECT ALL col0 - - col2 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - + col2 * col1 + 31 + cor0.col1 * col0 AS col1 FROM tab2 cor0
----
-589
3099
728
query I rowsort
SELECT - + col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL - col1 * 23 AS col1 FROM tab2 AS cor0
----
-1357
-391
-713
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9839
SELECT - col1 + - CAST( 93 AS SIGNED ) FROM tab2 AS cor0
----
-110
-124
-152
skipif mysql # not compatible
query I rowsort label-9839
SELECT - col1 + - CAST ( 93 AS INTEGER ) FROM tab2 AS cor0
----
-110
-124
-152
query I rowsort
SELECT ALL + - cor0.col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + + col1 + - col2 * + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + col0 + ( + 35 ) * col2 AS col2 FROM tab2 AS cor0
----
1409
952
988
query I rowsort
SELECT DISTINCT + cor0.col1 * 72 + + col1 - + col2 FROM tab0 AS cor0
----
6245
6561
7080
query I rowsort
SELECT - col0 + + col1 * col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT - col1 + - 91 AS col0 FROM tab0 AS cor0
----
-177
-182
-188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9846
SELECT ALL - col1 - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL - col1 - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col1 + col2 * col0 - + col0 AS col1 FROM tab1
----
185
3594
7613
onlyif mysql # use DIV operator for integer division
query I rowsort label-9850
SELECT DISTINCT col0 * - col1 - col0 DIV 9 AS col0 FROM tab1
----
-1048
-647
-78
skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT col0 * - col1 - col0 / 9 AS col0 FROM tab1
----
-1048
-647
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9851
SELECT DISTINCT - col1 * ( col0 ) * - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT - col1 * ( col0 ) * - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9852
SELECT + + cor0.col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9852
SELECT + + cor0.col1 / - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9853
SELECT ALL col1 DIV + ( col2 ) + + col2 * + ( - cor0.col2 * col2 ) + - col2 FROM tab0 AS cor0
----
-35968
-551449
95
skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL col1 / + ( col2 ) + + col2 * + ( - cor0.col2 * col2 ) + - col2 FROM tab0 AS cor0
----
-35968
-551449
95
query I rowsort
SELECT ALL - cor0.col1 - - col2 AS col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - - col1 * + 14 FROM tab1 AS cor0
----
140
182
364
query I rowsort
SELECT + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - + 67 AS col2 FROM tab1 AS cor0
----
-67
onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT DISTINCT + col2 DIV ( + col0 * - col0 ) col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT + col2 / ( + col0 * - col0 ) col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9859
SELECT ( + ( - col0 ) ) DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9859
SELECT ( + ( - col0 ) ) / col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col2 FROM tab2, tab1 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT + cor0.col2 * - 44 * col2 FROM tab0 AS cor0
----
-295856
-44
-47916
query I rowsort
SELECT ALL cor0.col0 * - 82 FROM tab1 AS cor0
----
-246
-5248
-6560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9863
SELECT + CAST( NULL AS DECIMAL ) * 7 + + col2 + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9863
SELECT + CAST ( NULL AS REAL ) * 7 + + col2 + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT DISTINCT + 84 DIV + 3 AS col0 FROM tab0 AS cor0
----
28
skipif mysql # not compatible
query I rowsort label-9864
SELECT DISTINCT + 84 / + 3 AS col0 FROM tab0 AS cor0
----
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-9865
SELECT DISTINCT - col2 * col0 DIV ( col1 ) AS col0 FROM tab1 AS cor0
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - col2 * col0 / ( col1 ) AS col0 FROM tab1 AS cor0
----
-364
-590
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9866
SELECT - col1 + col2 DIV 47 FROM tab0 cor0
----
-86
-90
-97
skipif mysql # not compatible
query I rowsort label-9866
SELECT - col1 + col2 / 47 FROM tab0 cor0
----
-86
-90
-97
query I rowsort
SELECT ALL + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT + - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9869
SELECT - 57 DIV - cor0.col0 FROM tab0 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9869
SELECT - 57 / - cor0.col0 FROM tab0 cor0
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9870
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + + col1 + + col1 AS col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT + ( - col2 ) + - col1 * + cor0.col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-9874
SELECT col0 + + col1 DIV - 50 AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9874
SELECT col0 + + col1 / - 50 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - 57 AS col1 FROM tab0 cor0
----
-57
-57
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9876
SELECT + 19 DIV 47 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9876
SELECT + 19 / 47 AS col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9877
SELECT - CAST( - col2 AS SIGNED ) DIV - col1 col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9877
SELECT - CAST ( - col2 AS INTEGER ) / - col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col1 * - 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9e25b9d39d87c243b8ff77a0d637140a
query I rowsort
SELECT + cor0.col2 * - col2 + + col1 FROM tab2 AS cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - cor0.col2 * cor0.col1 * col0 col0 FROM tab2 AS cor0
----
119593
51017
5828
query I rowsort
SELECT DISTINCT + 50 * - col0 AS col0 FROM tab2 AS cor0
----
-350
-3900
-3950
query I rowsort
SELECT - + col0 * col0 - - col1 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - - ( col0 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * col2 + ( col2 * col2 ) AS col0 FROM tab0 AS cor0
----
-34
-574
297
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9885
SELECT CAST( NULL AS SIGNED ) + + col1 * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9885
SELECT CAST ( NULL AS INTEGER ) + + col1 * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + ( col1 ) * col1 - 86 * col0 AS col2 FROM tab0 AS cor0
----
5246
536
6302
query I rowsort
SELECT 12 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT DISTINCT + - col0 + col1 + col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col2 * + col1 - cor0.col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT - 10 * - col2 + col2 * col1 FROM tab2 AS cor0
----
1026
1107
1794
query I rowsort
SELECT ALL col2 * + col1 - + col0 AS col1 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-9892
SELECT DISTINCT col1 * - col0 + - col1 DIV - col1 AS col2 FROM tab1 cor0
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT col1 * - col0 + - col1 / - col1 AS col2 FROM tab1 cor0
----
-1039
-639
-77
query I rowsort
SELECT 12 + col0 * + 78 FROM tab1 AS cor0
----
246
5004
6252
query I rowsort
SELECT - - 60 + col0 AS col0 FROM tab1 AS cor0
----
124
140
63
query I rowsort
SELECT DISTINCT + 10 + + cor0.col1 * + col1 FROM tab2 AS cor0
----
299
3491
971
onlyif mysql # use DIV operator for integer division
query I rowsort label-9896
SELECT DISTINCT - col2 * - col0 DIV - col0 - - 99 FROM tab2 cor0
----
61
72
73
skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - col2 * - col0 / - col0 - - 99 FROM tab2 cor0
----
61
72
73
query I rowsort
SELECT + ( + col2 ) * + ( + col1 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 * - col1 * - col0 + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-36487
-4161
-99824
query I rowsort
SELECT ALL + col1 * - col2 + cor0.col0 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 80 col2 FROM tab0 AS cor0
----
166
171
177
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9901
SELECT + col0 * + CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9901
SELECT + col0 * + CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col1 + col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 + cor0.col1 - col2 * - col1 AS col0 FROM tab0 AS cor0
----
195
2957
7635
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9904
SELECT ALL col2 * + CAST( col1 AS SIGNED ) * - col2 FROM tab2
----
-22599
-24548
-39884
skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL col2 * + CAST ( col1 AS INTEGER ) * - col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT 61 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT col2 * col1 - - col1 AS col0 FROM tab2
----
1593
663
868
query I rowsort
SELECT + + col0 * 6 AS col2 FROM tab2 AS cor0
----
42
468
474
onlyif mysql # use DIV operator for integer division
query I rowsort label-9908
SELECT + + col0 DIV + 63 + + col2 FROM tab1 AS cor0
----
54
58
97
skipif mysql # not compatible
query I rowsort label-9908
SELECT + + col0 / + 63 + + col2 FROM tab1 AS cor0
----
54
58
97
query I rowsort
SELECT - col0 * ( - col0 ) + + 77 AS col1 FROM tab1 AS cor0
----
4173
6477
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-9910
SELECT ALL + - col2 DIV + col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL + - col2 / + col1 FROM tab2 cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col2 FROM tab0 AS cor0
----
-35
-7298
-792
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2, tab0 cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT - + 56 + + col0 FROM tab2 AS cor0
----
-49
22
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9914
SELECT + 78 DIV col0 FROM tab1
----
0
1
26
skipif mysql # not compatible
query I rowsort label-9914
SELECT + 78 / col0 FROM tab1
----
0
1
26
query I rowsort
SELECT + 2 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9917
SELECT col0 + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9917
SELECT col0 + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * - col1 * cor0.col0 + col2 FROM tab2 cor0
----
-119626
-50996
-5832
query I rowsort
SELECT - col1 * col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT ALL 64 + col2 * cor0.col1 FROM tab2 AS cor0
----
1598
710
901
query I rowsort
SELECT ( col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9922
SELECT DISTINCT - tab1.col1 * 36 DIV 63 AS col1 FROM tab1
----
-14
-5
-7
skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT - tab1.col1 * 36 / 63 AS col1 FROM tab1
----
-14
-5
-7
query I rowsort
SELECT 29 * col0 + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
10680
2760
4410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9924
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9924
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( - col0 + col1 * col0 ) AS col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT + 11 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT + 33 AS col0 FROM tab1
----
33
33
33
query I rowsort
SELECT ( tab0.col0 + col2 ) * + tab0.col2 AS col1 FROM tab0
----
14022
1881
36
query I rowsort
SELECT 73 * col0 + col1 AS col1 FROM tab0 AS cor0
----
1838
2652
6588
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 AS col0 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9931
SELECT - 44 DIV + 72 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9931
SELECT - 44 / + 72 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 + - 0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ( col0 + - 55 ) FROM tab2
----
-48
23
24
query I rowsort
SELECT DISTINCT tab0.col2 * - col2 AS col0 FROM tab0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 * col2 col0 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT + col0 * col1 * 53 AS col1 FROM tab2
----
11501
243906
71179
query I rowsort
SELECT ALL + + col0 + ( - col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col2 + ( + col2 ) AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + col1 + 2 + - col1 FROM tab1 AS cor0
----
2
query I rowsort
SELECT + ( tab2.col0 ) AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ( - col1 ) * 51 * - col1 - - col1 AS col0 FROM tab2
----
14756
177590
49042
query I rowsort
SELECT tab0.col2 * cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd
query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab2
----
81
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-9945
SELECT - - cor0.col2 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-9945
SELECT - - cor0.col2 + col0 / col0 AS col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT - - col1 + - ( col2 ) * cor0.col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-9947
SELECT - - col0 DIV + ( cor0.col2 + - col0 ) col0 FROM tab0 AS cor0
----
-1
-12
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9947
SELECT - - col0 / + ( cor0.col2 + - col0 ) col0 FROM tab0 AS cor0
----
-1
-12
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9948
SELECT col0 DIV + ( 76 ) AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9948
SELECT col0 / + ( 76 ) AS col2 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9949
SELECT tab1.col1 + - 38 * tab1.col1 DIV + col1 FROM tab1
----
-12
-25
-28
skipif mysql # not compatible
query I rowsort label-9949
SELECT tab1.col1 + - 38 * tab1.col1 / + col1 FROM tab1
----
-12
-25
-28
query I rowsort
SELECT DISTINCT col0 * ( + col0 ) AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9952
SELECT + col2 + + 33 DIV 46 AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9952
SELECT + col2 + + 33 / 46 AS col0 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9953
SELECT ALL col0 DIV + 19 + col0 + - cor0.col0 FROM tab1 AS cor0
----
0
3
4
skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL col0 / + 19 + col0 + - cor0.col0 FROM tab1 AS cor0
----
0
3
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - cor0.col0 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT tab2.col1 + + col2 * col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL ( - 36 ) AS col0 FROM tab1 AS cor0
----
-36
-36
-36
query I rowsort
SELECT - - 91 * - ( - col2 ) FROM tab0 AS cor0
----
3003
7462
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + col0 + - col0 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT 77 + 64 + cor0.col2 AS col1 FROM tab1 AS cor0
----
195
198
237
query I rowsort
SELECT ALL + 91 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
onlyif mysql # use DIV operator for integer division
query I rowsort label-9962
SELECT ALL - cor0.col0 + - 67 * col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-13
3
64
skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL - cor0.col0 + - 67 * col0 / - col0 AS col2 FROM tab1 AS cor0
----
-13
3
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 36 ) + + col1 col1 FROM tab0 AS cor0
----
122
127
133
query I rowsort
SELECT DISTINCT + col1 * - col0 + cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - - ( - 38 ) AS col2 FROM tab1 AS cor0
----
-38
-38
-38
query I rowsort
SELECT + - col1 * 52 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT + ( - col2 ) FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9968
SELECT ALL + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT cor0.col2 + - col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-9970
SELECT ALL + ( + col1 ) DIV + col1 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-48
-6083
-6240
skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL + ( + col1 ) / + col1 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-48
-6083
-6240
query I rowsort
SELECT - 92 AS col0 FROM tab2 AS cor0
----
-92
-92
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col1 col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL + - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + - 9 * col1 FROM tab1 AS cor0
----
-117
-234
-90
query I rowsort
SELECT DISTINCT + col0 + ( + col0 ) + col1 FROM tab2 cor0
----
175
215
45
query I rowsort
SELECT DISTINCT col1 + + ( col1 ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT col1 + + col2 * col2 AS col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT ALL 19 * col1 FROM tab0 AS cor0
----
1634
1729
1843
query I rowsort
SELECT - 68 * col0 + 4 AS col1 FROM tab1 AS cor0
----
-200
-4348
-5436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ( + col2 ) * - ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 74 + col2 FROM tab0 AS cor0
----
-41
-73
8
query I rowsort
SELECT DISTINCT + - cor0.col1 + + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-9984
SELECT - col0 DIV col2 + 60 col0 FROM tab0 AS cor0
----
25
59
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9984
SELECT - col0 / col2 + 60 col0 FROM tab0 AS cor0
----
25
59
60
query I rowsort
SELECT ALL - col1 * - 5 + 52 FROM tab1 AS cor0
----
102
117
182
query I rowsort
SELECT DISTINCT col1 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + col1 - + col2 AS col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT + col2 * - cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col2 * col2 + - ( - col2 ) FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL 81 + col2 FROM tab2
----
107
108
119
query I rowsort
SELECT ALL - tab2.col2 * - col0 * + ( + col1 ) + - col1 * 49 AS col1 FROM tab2
----
116761
4340
50201
query I rowsort
SELECT - - col2 + col1 * col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT + ( - col0 ) * + col2 + 80 * col1 * col0 AS col1 FROM tab0 AS cor0
----
164328
271565
640622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col1 FROM tab2 AS cor0
----
74
74
74
query I rowsort
SELECT - col2 * - col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab0, tab1, tab0 cor0
----
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 53 ) col1 FROM tab2
----
-53
-53
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col0 FROM tab1, tab0 AS cor0
----
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9999
SELECT - col0 DIV - col1 + col0 AS col2 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9999
SELECT - col0 / - col1 + col0 AS col2 FROM tab0
----
24
35
89