sqllogictest
Artifact Content
Not logged in

Artifact 1cac7a051638973be8dc26a20cbda932d0dd5880:


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)

query I rowsort
SELECT + - col2 * - 23 + + cor0.col1 FROM tab1 AS cor0
----
1268
1321
2221

query I rowsort
SELECT ( - col1 ) * col1 + + 40 * + 86 * - col0 FROM tab0 cor0
----
-129809
-314441
-89956

query I rowsort
SELECT cor0.col0 * - 80 FROM tab0 AS cor0
----
-1920
-2800
-7120

query I rowsort
SELECT DISTINCT + ( 30 ) * col1 FROM tab2 cor0
----
1770
510
930

query I rowsort
SELECT ALL 84 * + 50 AS col0 FROM tab2 AS cor0
----
4200
4200
4200

query I rowsort
SELECT ALL 0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ( col1 ) * col1 + + 26 AS col2 FROM tab2 cor0
----
315
3507
987

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

query I rowsort
SELECT - + cor0.col2 + + col2 * 55 + 58 FROM tab2 AS cor0
----
1462
1516
2110

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9
SELECT ALL - CAST( NULL AS DECIMAL ) * + 15 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - CAST ( NULL AS REAL ) * + 15 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 66 * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b2d0b5987227ebcfbbdc1d4b5c380d9b

query I rowsort
SELECT - col2 * 14 AS col2 FROM tab2
----
-364
-378
-532

query I rowsort
SELECT DISTINCT 78 + - 15 FROM tab1
----
63

query I rowsort
SELECT + col0 * + col1 * 72 AS col2 FROM tab0
----
148608
244440
583128

query I rowsort
SELECT DISTINCT + 16 * col1 FROM tab2 AS cor0
----
272
496
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT DISTINCT + 83 DIV - col1 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT + 83 / - col1 FROM tab1
----
-3
-6
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 68 + col2 * + 66 col2 FROM tab2 AS cor0
----
1648
1714
2440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * + cor0.col1 col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT col0 + ( tab2.col0 ) FROM tab2
----
14
156
158

query I rowsort
SELECT ALL col0 + ( col1 ) FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + cor0.col2 * ( - col1 ) + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - + col2 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - cor0.col0 + + cor0.col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - + col2 + - col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL cor0.col1 * 14 AS col2 FROM tab1 AS cor0
----
140
182
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 col0 FROM tab2 AS cor0
----
53

query I rowsort
SELECT ALL + - 57 + col1 AS col0 FROM tab2 AS cor0
----
-26
-40
2

query I rowsort
SELECT + col2 + + ( + col0 * - col0 ) AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL - 72 * col1 AS col1 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT - 46 - col0 AS col1 FROM tab1 AS cor0
----
-110
-126
-49

query I rowsort
SELECT - 86 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT - 51 * col1 + col2 AS col2 FROM tab2 cor0
----
-1554
-2983
-829

query I rowsort
SELECT DISTINCT - - 47 * col1 AS col2 FROM tab2 AS cor0
----
1457
2773
799

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

query I rowsort
SELECT col1 * col0 + + 35 + col0 * col0 AS col1 FROM tab1
----
122
4771
7475

query I rowsort
SELECT col1 + 2 * + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT + + ( + col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col1 FROM tab1
----
20
20
20

query I rowsort
SELECT ALL - ( col0 * 83 ) AS col0 FROM tab1
----
-249
-5312
-6640

query I rowsort
SELECT DISTINCT + - ( col1 ) + + col0 * col0 FROM tab0 AS cor0
----
1128
490
7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( 18 ) * cor0.col0 col0 FROM tab2 AS cor0
----
119
1326
1343

onlyif mysql # use DIV operator for integer division
query I rowsort label-41
SELECT - col0 + ( col2 ) DIV - col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-41
SELECT - col0 + ( col2 ) / - col1 FROM tab0 cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + + col2 col1 FROM tab1
----
120
123
162

query I rowsort
SELECT - col2 + col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-44
SELECT DISTINCT - CAST( NULL AS SIGNED ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 73 * 73 FROM tab1 AS cor0
----
5329
5329
5329

query I rowsort
SELECT + col1 * 10 AS col0 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT DISTINCT ( - col1 ) + col2 * 56 AS col0 FROM tab1 AS cor0
----
2998
3182
5363

query I rowsort
SELECT ALL - ( + cor0.col2 ) * - col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + ( + 27 ) + col2 FROM tab0 AS cor0
----
-26
55
6

query I rowsort
SELECT - col2 * 58 FROM tab2
----
-1508
-1566
-2204

query I rowsort
SELECT col1 * + tab0.col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col2 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - - col2 - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - col2 * 86 + col1 FROM tab2 AS cor0
----
-2177
-2291
-3251

onlyif mysql # use DIV operator for integer division
query I rowsort label-55
SELECT + col2 DIV - 19 + col1 FROM tab0 AS cor0
----
85
87
97

skipif mysql # not compatible
query I rowsort label-55
SELECT + col2 / - 19 + col1 FROM tab0 AS cor0
----
85
87
97

query I rowsort
SELECT DISTINCT + 81 * tab0.col0 FROM tab0
----
1944
2835
7209

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2, tab2 cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT DISTINCT + - col1 * col2 * ( col2 * col2 ) AS col1 FROM tab0 cor0
----
-3090582
-50174488
-97

query I rowsort
SELECT DISTINCT col1 + col2 * col0 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col2 + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - col2 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT 49 * + col2 AS col0 FROM tab0 cor0
----
1617
4018
49

query I rowsort
SELECT - ( + col1 ) + 33 * - col1 * - col1 + + 23 FROM tab0 AS cor0
----
244005
273205
310423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 * + col2 col1 FROM tab1
----
4482
4731
7968

query I rowsort
SELECT + 37 AS col0 FROM tab2
----
37
37
37

query I rowsort
SELECT + 75 * - 89 FROM tab0
----
-6675
-6675
-6675

query I rowsort
SELECT 95 * col1 + col0 FROM tab0 AS cor0
----
8194
8734
9250

query I rowsort
SELECT ALL - col0 * col1 * col2 - col0 AS col0 FROM tab2 cor0
----
-119730
-51113
-5866

query I rowsort
SELECT col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col0 + col2 + - 46 * + col0 FROM tab2 AS cor0
----
-288
-3484
-3517

query I rowsort
SELECT + 34 * ( col2 * col0 + 48 ) FROM tab2
----
103700
70584
8058

query I rowsort
SELECT DISTINCT col2 + + 60 + 42 * col1 * - 2 AS col1 FROM tab0 AS cor0
----
-7131
-7502
-8087

query I rowsort
SELECT ALL + + col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 84 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
84

query I rowsort
SELECT + - ( cor0.col2 ) * - 73 + - col0 + + cor0.col2 FROM tab2 AS cor0
----
1846
1991
2733

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 - 91 FROM tab1, tab2 cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col0 FROM tab0, tab0 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 99 col1 FROM tab2
----
-693
-7722
-7821

onlyif mysql # use DIV operator for integer division
query I rowsort label-81
SELECT ALL - col0 DIV - 70 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - col0 / - 70 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT ALL 39 - col2 AS col0 FROM tab2
----
1
12
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-83
SELECT col2 DIV 90 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-83
SELECT col2 / 90 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( col0 ) * tab2.col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT cor0.col0 - 62 AS col2 FROM tab2 AS cor0
----
-55
16
17

query I rowsort
SELECT - ( col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - col1 col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT tab2.col2 * + 94 FROM tab2
----
2444
2538
3572

query I rowsort
SELECT - cor0.col0 * col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT col0 + - 61 AS col0 FROM tab1 AS cor0
----
-58
19
3

query I rowsort
SELECT - - cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-92
SELECT ALL col0 DIV + col0 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-92
SELECT ALL col0 / + col0 col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + - col2 + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + cor0.col2 + - col0 * + col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-95
SELECT DISTINCT + col2 DIV + ( col2 * col2 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT + col2 / + ( col2 * col2 ) FROM tab1 cor0
----
0

query I rowsort
SELECT - col2 * - col0 + 46 AS col2 FROM tab0 AS cor0
----
7344
81
838

query I rowsort
SELECT DISTINCT + - 42 * + col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT ALL + col0 * - col1 * col2 + col0 AS col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

onlyif mysql # use DIV operator for integer division
query I rowsort label-99
SELECT DISTINCT + ( 59 ) + col2 DIV col0 AS col1 FROM tab1 cor0
----
59
60
77

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT + ( 59 ) + col2 / col0 AS col1 FROM tab1 cor0
----
59
60
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-100
SELECT - cor0.col2 DIV col0 + col1 col0 FROM tab1 AS cor0
----
10
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-100
SELECT - cor0.col2 / col0 + col1 col0 FROM tab1 AS cor0
----
10
12
8

query I rowsort
SELECT - 64 FROM tab0, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT + 3 FROM tab2, tab2 AS cor0
----
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-103
SELECT col0 * ( + col1 ) + + col1 DIV 3 AS col0 FROM tab1
----
1044
643
86

skipif mysql # not compatible
query I rowsort label-103
SELECT col0 * ( + col1 ) + + col1 / 3 AS col0 FROM tab1
----
1044
643
86

query I rowsort
SELECT + col2 - - col1 * 85 FROM tab0 cor0
----
7343
7817
8246

query I rowsort
SELECT DISTINCT 27 * col2 * + 81 AS col0 FROM tab1 AS cor0
----
118098
124659
209952

query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
62

query I rowsort
SELECT 30 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-109
SELECT DISTINCT - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT - col1 / col1 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + col1 * + col0 - col0 * - col2 AS col2 FROM tab1 AS cor0
----
240
4288
8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT - 0 + cor0.col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - + col1 + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-114
SELECT ALL - col0 DIV col1 - + 54 FROM tab0 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - col0 / col1 - + 54 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL + 40 * tab2.col1 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to f690cfc113fcbc4e8309efe2dd405161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 40 ) col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT DISTINCT + col2 * 73 + - col1 FROM tab1 AS cor0
----
3916
4151
6995

query I rowsort
SELECT ALL + col0 + 64 FROM tab1 AS cor0
----
128
144
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-119
SELECT + cor0.col2 + 55 DIV col0 FROM tab0 cor0
----
2
35
82

skipif mysql # not compatible
query I rowsort label-119
SELECT + cor0.col2 + 55 / col0 FROM tab0 cor0
----
2
35
82

query I rowsort
SELECT ALL + col1 - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col0 col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-123
SELECT + + cor0.col1 - + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-123
SELECT + + cor0.col1 - + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-124
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + - col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + - col2 + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col0 * + col1 - col2 FROM tab1
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-126
SELECT ALL tab0.col0 - + tab0.col1 DIV + col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL tab0.col0 - + tab0.col1 / + col1 FROM tab0
----
23
34
88

query I rowsort
SELECT ( - tab1.col1 * col0 ) + col0 * col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 51 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

onlyif mysql # use DIV operator for integer division
query I rowsort label-129
SELECT DISTINCT tab0.col0 - - col2 DIV - 55 FROM tab0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT tab0.col0 - - col2 / - 55 FROM tab0
----
24
35
88

query I rowsort
SELECT + - col1 * 71 * col2 + + col1 * col2 - 35 FROM tab2 AS cor0
----
-107415
-45255
-58625

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-131
SELECT col1 * + CAST( col2 * col2 + 78 AS SIGNED ) AS col1 FROM tab2
----
25017
25874
44486

skipif mysql # not compatible
query I rowsort label-131
SELECT col1 * + CAST ( col2 * col2 + 78 AS INTEGER ) AS col1 FROM tab2
----
25017
25874
44486

query I rowsort
SELECT ALL + col1 + - tab0.col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-133
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) + + col0 * - col1 + col1 / col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) + + col0 * - col1 + col1 / col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 + - 71 AS col0 FROM tab2
----
-33
-44
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col1 col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - - col0 + 13 AS col2 FROM tab0 AS cor0
----
102
37
48

query I rowsort
SELECT DISTINCT + + col2 + 88 FROM tab0 AS cor0
----
121
170
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-138
SELECT - col0 * CAST( NULL AS SIGNED ) + + col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-138
SELECT - col0 * CAST ( NULL AS INTEGER ) + + col2 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072

query I rowsort
SELECT - col0 * 82 + + cor0.col1 * col2 FROM tab0 AS cor0
----
-2773
164
870

query I rowsort
SELECT col2 * - ( col0 ) AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + ( col0 ) + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT cor2.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
24
35
89

query I rowsort
SELECT ALL - + 22 + - 40 AS col1 FROM tab1 cor0
----
-62
-62
-62

query I rowsort
SELECT 13 + - col0 * col0 AS col2 FROM tab1
----
-4083
-6387
4

query I rowsort
SELECT ( - col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 94 * col1 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT DISTINCT col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - ( - col2 ) AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + col1 AS col0 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-151
SELECT col1 + + col0 * CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-151
SELECT col1 + + col0 * CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-152
SELECT DISTINCT 21 DIV - col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT 21 / - col0 FROM tab2 AS cor0
----
-3
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-153
SELECT ALL - + col0 + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL - + col0 + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-154
SELECT col0 + col0 * col2 DIV col0 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-154
SELECT col0 + col0 * col2 / col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-155
SELECT DISTINCT + col0 DIV col0 + - cor0.col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-155
SELECT DISTINCT + col0 / col0 + - cor0.col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL cor0.col2 + + cor0.col2 AS col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - 60 * col0 FROM tab1 cor0
----
-180
-3840
-4800

query I rowsort
SELECT - + 52 * - col1 FROM tab0 AS cor0
----
4472
4732
5044

query I rowsort
SELECT DISTINCT + ( - col2 ) + col2 * col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + col1 * ( + col0 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 47 AS col2 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL + col0 * tab1.col1 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + 38 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - 23 AS col0 FROM tab2
----
-23
-23
-23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-166
SELECT ALL + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT 34 * - col2 + col2 FROM tab0 AS cor0
----
-1089
-2706
-33

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab0, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT ALL - col1 + + 82 + col0 AS col2 FROM tab1
----
136
149
59

query I rowsort
SELECT ALL 67 + + col1 + - 15 * - col2 FROM tab2
----
503
516
654

query I rowsort
SELECT - col1 * - tab1.col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT + col1 * cor0.col2 * col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - + col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + - col1 * - col0 - ( - col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
16198
4128
6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab2.col0 col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - col1 * + 93 + + 74 + - col2 * + col2 FROM tab1 AS cor0
----
-10351
-4105
-5260

query I rowsort
SELECT col1 * + col1 AS col1 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-179
SELECT DISTINCT - + col2 + 12 * col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-11
-25
17

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - + col2 + 12 * col0 / col1 AS col2 FROM tab2 AS cor0
----
-11
-25
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( - col2 ) + + col2 + - cor0.col2 * - col1 * col2 col1 FROM tab0 cor0
----
133
619264
94479

query I rowsort
SELECT - cor0.col0 * ( + col2 ) + - col0 * - col0 * col0 AS col0 FROM tab0 AS cor0
----
13032
42840
697671

query I rowsort
SELECT col2 * + col2 + col0 * col1 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT - tab2.col1 * col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col0 + col2 - + col0 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - cor0.col2 + tab2.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 8a2817ca2245c4aefa16a39f1a9a0f95

query I rowsort
SELECT col0 + - col1 * - tab2.col2 AS col0 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-187
SELECT - tab0.col2 DIV tab0.col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-187
SELECT - tab0.col2 / tab0.col0 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL col1 * tab1.col2 - + col2 AS col0 FROM tab1
----
1152
1350
513

query I rowsort
SELECT - + col1 * + col1 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
-13507
-2002
-6390

query I rowsort
SELECT ALL - col0 * - col1 + + col0 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 - - cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT - col2 DIV col0 - + col2 AS col0 FROM tab1 cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-192
SELECT - col2 / col0 - + col2 AS col0 FROM tab1 cor0
----
-57
-72
-97

query I rowsort
SELECT DISTINCT - col0 * - col0 + cor0.col0 * col1 + col1 FROM tab2 AS cor0
----
10745
297
7601

onlyif mysql # use DIV operator for integer division
query I rowsort label-194
SELECT ALL + + cor0.col1 DIV col1 + col0 * - col2 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL + + cor0.col1 / col1 + col0 * - col2 FROM tab1 AS cor0
----
-161
-3647
-7679

query I rowsort
SELECT + col0 * col0 + + col2 + col2 AS col1 FROM tab0 AS cor0
----
1227
642
8085

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) >= col1 OR NULL NOT IN ( + cor0.col1 + - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + - col2 + cor0.col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + col0 * - col2 * col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT DISTINCT + col1 DIV + tab1.col0 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT + col1 / + tab1.col0 FROM tab1
----
0
8

query I rowsort
SELECT + tab0.col2 * col1 * - col2 AS col2 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-201
SELECT ALL - col2 DIV col1 + col2 + - col1 FROM tab1 AS cor0
----
26
42
76

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL - col2 / col1 + col2 + - col1 FROM tab1 AS cor0
----
26
42
76

query I rowsort
SELECT + - cor0.col0 + col0 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 + - col0 * cor0.col0 FROM tab1 cor0
----
-12
-4160
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-204
SELECT DISTINCT + col2 + col0 DIV + cor0.col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT + col2 + col0 / + cor0.col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab1
----
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-207
SELECT ALL ( - col1 ) + - col0 * col1 DIV col1 + cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
-1671
-742
-875

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL ( - col1 ) + - col0 * col1 / col1 + cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
-1671
-742
-875

query I rowsort
SELECT 65 * col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT ( + col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-210
SELECT ALL - - col0 * col2 - + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL - - col0 * col2 - + col0 / + col0 AS col2 FROM tab2 AS cor0
----
188
2027
3001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col0 FROM tab2
----
-8

query I rowsort
SELECT DISTINCT + col0 + - col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * col2 + cor0.col1 * + col1 FROM tab2 AS cor0
----
1150
3291
5509

onlyif mysql # use DIV operator for integer division
query I rowsort label-214
SELECT + col1 - col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-214
SELECT + col1 - col2 / - col0 AS col2 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT DISTINCT col0 * - col1 * col2 + col2 AS col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 * tab0.col2 + tab0.col2 NOT IN ( - col2 ) ) AND NOT - col0 IN ( col1 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * col0 col2 FROM tab1
----
273
5824
7280

query I rowsort
SELECT DISTINCT + col2 - col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT col2 * 26 AS col2 FROM tab0
----
2132
26
858

query I rowsort
SELECT ALL - 75 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-525
-5850
-5925

query I rowsort
SELECT ALL - 35 AS col0 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT - + col0 * col0 + + cor0.col0 AS col0 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL + col0 * col1 * - col1 AS col2 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + col2 - + col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 * col0 + - col2 - col0 FROM tab0
----
-1261
-633
-8092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 - + col0 col0 FROM tab2
----
-30
-31
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * + 96 + col1 + - col0 col2 FROM tab0
----
5570
5630
5630

onlyif mysql # use DIV operator for integer division
query I rowsort label-228
SELECT + col2 DIV + 71 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-228
SELECT + col2 / + 71 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 + - col2 + col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-230
SELECT - + cor0.col0 * col2 + + col2 DIV 17 - + col0 * 79 FROM tab1 AS cor0
----
-13995
-396
-8701

skipif mysql # not compatible
query I rowsort label-230
SELECT - + cor0.col0 * col2 + + col2 / 17 - + col0 * 79 FROM tab1 AS cor0
----
-13995
-396
-8701

query I rowsort
SELECT DISTINCT - + cor1.col0 + - 4 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-11
-82
-83

query I rowsort
SELECT cor0.col0 * 41 FROM tab0, tab2 cor0
----
9 values hashing to ef9d6bc88cc4195c817dc603d1612be5

query I rowsort
SELECT ALL - ( - cor0.col0 ) + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL 60 FROM tab1 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 83 col0 FROM tab1 AS cor0
----
83

query I rowsort
SELECT DISTINCT + - col0 + col1 * - 70 AS col0 FROM tab0 AS cor0
----
-6044
-6459
-6825

query I rowsort
SELECT ALL - + 41 * col1 FROM tab0 cor0
----
-3526
-3731
-3977

query I rowsort
SELECT + ( col0 ) * 28 * col1 - col1 * - col1 FROM tab2 cor0
----
132337
37893
7037

query I rowsort
SELECT col1 + col1 * + col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT ALL + col1 DIV - col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + col1 / - col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + 22 - + col1 AS col0 FROM tab1 AS cor0
----
-4
12
9

query I rowsort
SELECT DISTINCT - col0 * 96 + 1 + col0 * 67 AS col2 FROM tab1 AS cor0
----
-1855
-2319
-86

query I rowsort
SELECT DISTINCT - col0 + 10 FROM tab1 AS cor0
----
-54
-70
7

query I rowsort
SELECT ALL col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-245
SELECT ALL col2 * CAST( + col0 * - col1 AS SIGNED ) FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL col2 * CAST ( + col0 * - col1 AS INTEGER ) FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-246
SELECT DISTINCT + col1 DIV ( + 81 * - col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-246
SELECT DISTINCT + col1 / ( + 81 * - col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col0 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 91 col2 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT ALL + ( - col0 ) * col2 * - cor0.col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL + col1 - + 38 * col0 * + col2 AS col2 FROM tab0 AS cor0
----
-1233
-277233
-30010

query I rowsort
SELECT + col2 * ( - col0 ) + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - + col1 + 57 AS col1 FROM tab0 cor0
----
-29
-34
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-254
SELECT ALL col1 * - col2 + col1 * + CAST( - cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1210
-1482
-2288

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL col1 * - col2 + col1 * + CAST ( - cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT - col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-256
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col2 + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - 65 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL 74 * col2 + col2 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT ALL + 46 + col1 * col0 FROM tab2 cor0
----
1389
263
4648

query I rowsort
SELECT ALL + - 41 * 22 - col0 AS col0 FROM tab0 AS cor0
----
-926
-937
-991

query I rowsort
SELECT ( col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT ALL - 13 DIV col2 + col2 * cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL - 13 / col2 + col2 * cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT DISTINCT col1 * 35 + - col1 - col0 DIV col0 FROM tab0 AS cor0
----
2923
3093
3297

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT col1 * 35 + - col1 - col0 / col0 FROM tab0 AS cor0
----
2923
3093
3297

query I rowsort
SELECT + + col2 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL 50 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
319
3841
3933

query I rowsort
SELECT + col0 * cor0.col1 * + col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - 97 + - col0 FROM tab1 AS cor0
----
-100
-161
-177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-269
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col0 * 86 FROM tab2 AS cor0
----
602
6708
6794

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-272
SELECT col0 + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-272
SELECT col0 + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col2 + + 86 * cor0.col1 FROM tab1 AS cor0
----
1430
2366
3640

query I rowsort
SELECT - tab1.col1 * col1 + tab1.col0 AS col0 FROM tab1
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( - col0 + col1 ) col0 FROM tab1
----
-69
3456
5360

query I rowsort
SELECT DISTINCT - + col2 * ( col1 * - col2 ) - col1 AS col2 FROM tab1 AS cor0
----
119795
32480
75790

query I rowsort
SELECT DISTINCT + col0 * + tab0.col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - 34 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - - col1 * col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + cor0.col0 - col1 * - col2 AS col1 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT ALL + - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT cor0.col1 + + col0 * col2 * col1 - 58 * col0 AS col1 FROM tab0 AS cor0
----
1462
659047
66806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + + 38 - + col1 * - col1 FROM tab1 AS cor0
----
138
207
714

query I rowsort
SELECT 71 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-287
SELECT - 7 + - cor1.col2 DIV 62 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

skipif mysql # not compatible
query I rowsort label-287
SELECT - 7 + - cor1.col2 / 62 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT tab2.col1 * - 99 AS col2 FROM tab2
----
-1683
-3069
-5841

query I rowsort
SELECT - 32 FROM tab2
----
-32
-32
-32

query I rowsort
SELECT - 83 + - col1 AS col1 FROM tab0
----
-169
-174
-180

query I rowsort
SELECT DISTINCT 54 * col1 AS col1 FROM tab2
----
1674
3186
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-292
SELECT + tab0.col0 DIV 63 + - tab0.col1 FROM tab0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-292
SELECT + tab0.col0 / 63 + - tab0.col1 FROM tab0
----
-86
-90
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-293
SELECT DISTINCT - col1 DIV + col0 col2 FROM tab1
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT - col1 / + col0 col2 FROM tab1
----
-8
0

query I rowsort
SELECT + + ( col2 ) * col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL 95 * - col1 FROM tab1
----
-1235
-2470
-950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col0 FROM tab1, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 55 * col2 AS col2 FROM tab0
----
1815
4510
55

query I rowsort
SELECT ALL + 97 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-300
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-300
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col0 * col0 + + col1 * - 66 - cor0.col1 FROM tab2 AS cor0
----
-2028
2131
5102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 * 41 col0 FROM tab2 AS cor0
----
-123082
-7749
-83148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 + col2 col1 FROM tab1 AS cor0
----
131
134
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + - 75 * col2 AS col1 FROM tab1 cor0
----
-4050
-4275
-7200

query I rowsort
SELECT + col1 - - col0 * + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT - tab2.col2 - - col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT + col1 DIV - col1 + - 68 col1 FROM tab1
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-308
SELECT + col1 / - col1 + - 68 col1 FROM tab1
----
-69
-69
-69

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0, tab0 cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + - col0 + - col2 col1 FROM tab2
----
1327
572
695

query I rowsort
SELECT + col0 * ( + col2 ) + col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-312
SELECT + - col2 DIV + ( - 6 + col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-312
SELECT + - col2 / + ( - 6 + col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 * cor0.col1 * 49 AS col1 FROM tab2 AS cor0
----
-10633
-225498
-65807

query I rowsort
SELECT ALL + col2 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 - - col1 AS col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT col0 * + col0 + - col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL - + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + - col1 - - col2 * col2 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT + col0 * + col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT col2 * + col1 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-323
SELECT + - col1 * - col0 + + col2 DIV ( + col2 ) FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-323
SELECT + - col1 * - col0 + + col2 / ( + col2 ) FROM tab1 AS cor0
----
1041
641
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 + col0 col1 FROM tab1 AS cor0
----
129
145
68

query I rowsort
SELECT ALL - cor0.col0 * - col1 + - col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1281
241
4583

query I rowsort
SELECT ALL cor0.col0 * cor0.col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + cor0.col1 * - col0 + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 + - col0 + - 10 col1 FROM tab1 AS cor0
----
-35
-51
26

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col0 IN ( col1 + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE + col2 IN ( - col2 )
----

query I rowsort
SELECT col2 + + col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT tab0.col2 - col2 * col1 AS col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-333
SELECT - tab2.col1 DIV tab2.col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-333
SELECT - tab2.col1 / tab2.col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT ALL col2 * - col2 + - col2 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * - tab2.col2 col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( tab1.col0 * col2 ) IN ( tab1.col1 + + col1 * + tab1.col1 * col1 )
----
10
13
26

query I rowsort
SELECT tab1.col1 + tab1.col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT col0 FROM tab1 WHERE NULL NOT IN ( - col1 + col1 * tab1.col1 * + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-340
SELECT DISTINCT - col0 DIV col2 + - col2 - col0 FROM tab0
----
-172
-57
-71

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - col0 / col2 + - col2 - col0 FROM tab0
----
-172
-57
-71

query I rowsort
SELECT - tab1.col2 * col0 * - col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL - col1 - - col2 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT tab0.col2 * col2 + col2 + - col1 AS col2 FROM tab0
----
-95
1036
6715

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE NOT + col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * + tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 WHERE NOT NULL IN ( - col1 * + col0 + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + col2 * - cor0.col2 * - col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT col1 * col0 + tab2.col2 * col0 * - tab2.col2 + col2 * + tab2.col2 AS col2 FROM tab2
----
-111289
-4157
-47450

query I rowsort
SELECT DISTINCT + tab2.col1 + - col0 + - col0 AS col2 FROM tab2
----
-141
-97
17

query I rowsort
SELECT + col0 * tab0.col0 * tab0.col0 AS col1 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( col1 ) NOT IN ( - col1 + col0 )
----
17
31
59

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL NOT BETWEEN col0 * + col2 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col2 NOT IN ( + col0 )
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE - col0 = NULL
----

query I rowsort
SELECT col2 + col1 + + col0 FROM tab0 WHERE NOT col2 * - col1 > NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1, tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL - ( 63 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # use DIV operator for integer division
query I rowsort label-361
SELECT DISTINCT col1 DIV + col1 + col1 AS col2 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT col1 / + col1 + col1 AS col2 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL - - col1 * - col2 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + - cor0.col2 * col1 + col1 * col1 + + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
-39
-650
170

onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT ALL col2 + + 52 * col2 + col0 DIV - CAST( + ( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
2862
3027
5094

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL col2 + + 52 * col2 + col0 / - CAST ( + ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
2862
3027
5094

query I rowsort
SELECT ALL col1 * 19 FROM tab2 AS cor0
----
1121
323
589

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + + col2 * 50 - - col2 * + col0 FROM tab2 cor0
----
1539
3328
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * col2 * - 75 col0 FROM tab0 AS cor0
----
2625
547350
59400

query I rowsort
SELECT - col2 * - 87 FROM tab2 cor0
----
2262
2349
3306

query I rowsort
SELECT ALL + col1 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + ( - cor0.col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - ( - col1 ) + + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + + ( + 85 ) AS col1 FROM tab2 cor0
----
85
85
85

query I rowsort
SELECT ALL + col2 * ( + ( tab2.col2 ) ) AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT col2 + + 51 * 94 AS col0 FROM tab2
----
4820
4821
4832

query I rowsort
SELECT DISTINCT cor3.col1 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab0 AS cor3
----
86
91
97

query I rowsort
SELECT ALL ( - cor0.col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - col1 + col1 + ( col0 + col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - - 26 * col0 + ( col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1440
-2485
-5785

query I rowsort
SELECT + ( - col2 ) * + 24 - 85 AS col0 FROM tab1 AS cor0
----
-1381
-1453
-2389

query I rowsort
SELECT DISTINCT - ( col1 ) - 2 * - col2 AS col1 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT DISTINCT ( - col1 ) + - 95 AS col0 FROM tab0
----
-181
-186
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col0 FROM tab2, tab0, tab0 AS cor0
----
56

query I rowsort
SELECT - ( + col0 ) * - 97 FROM tab2
----
679
7566
7663

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + col0 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
234112
564
615440

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 1713adaf687595322d888d4eeefdbbc8

query I rowsort
SELECT + 65 * col1 + col2 * col1 FROM tab0 AS cor0
----
13377
6402
8428

query I rowsort
SELECT DISTINCT + 23 FROM tab0, tab1 cor0, tab1 AS cor1
----
23

query I rowsort
SELECT - col1 * - col1 + + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-390
SELECT - col1 * - CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-390
SELECT - col1 * - CAST ( NULL AS REAL ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col2 ) + + 61 * col1 FROM tab1
----
1640
667
889

onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT ALL - - cor0.col2 DIV + col1 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
1047
645
80

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL - - cor0.col2 / + col1 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
1047
645
80

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col1 + col1 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL 12 + col2 FROM tab1
----
108
66
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - tab2.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-7
-78
-79

query I rowsort
SELECT cor0.col0 * + ( - 84 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 0e0079a803d9d8db2f9ce41d13018027

query I rowsort
SELECT - 85 + 67 * col1 FROM tab1 AS cor0
----
1657
585
786

query I rowsort
SELECT col2 * - col0 + + ( - col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT + col0 * cor0.col0 * - col2 FROM tab1 cor0
----
-233472
-486
-614400

query I rowsort
SELECT + cor0.col1 * + col0 + 36 AS col2 FROM tab1 cor0
----
1076
114
676

query I rowsort
SELECT - + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + 80 - col2 AS col2 FROM tab1 AS cor0
----
-16
23
26

query I rowsort
SELECT + - col0 - + cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + 71 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT ALL - + 57 FROM tab1, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT DISTINCT col2 * tab0.col1 + 31 AS col1 FROM tab0
----
128
2869
7493

query I rowsort
SELECT - + 41 FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT ALL - col1 DIV cor0.col1 + - col2 col0 FROM tab0 AS cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-411
SELECT ALL - col1 / cor0.col1 + - col2 col0 FROM tab0 AS cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT - + ( - col2 ) * - col1 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-414
SELECT + col0 * - col2 DIV cor0.col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-414
SELECT + col0 * - col2 / cor0.col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-416
SELECT + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-416
SELECT + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - ( - 50 ) * col1 AS col2 FROM tab2
----
32300
41850
76700

query I rowsort
SELECT ( 16 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT + + col0 + 70 FROM tab0 AS cor0
----
105
159
94

query I rowsort
SELECT col2 * 45 * + tab1.col0 AS col2 FROM tab1
----
164160
345600
7290

query I rowsort
SELECT ALL - + 58 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT DISTINCT - - col0 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + - cor0.col1 * col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 91 AS REAL ) - + col1 * - 35 AS col0 FROM tab1
----
1001
441
546

query I rowsort
SELECT DISTINCT - col2 + - col2 * - col0 * cor0.col1 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT 54 + - tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cb09f70ba90e3704bc28921a14547356

query I rowsort
SELECT - tab1.col0 * + tab1.col2 + col2 AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT 53 + + col2 AS col1 FROM tab2 AS cor0
----
79
80
91

query I rowsort
SELECT + col1 + + col0 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT - ( + col2 ) - + tab2.col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + 71 * - tab0.col1 * + col0 AS col0 FROM tab0
----
-146544
-241045
-575029

query I rowsort
SELECT - ( - tab2.col2 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-433
SELECT - 59 DIV - tab1.col0 AS col2 FROM tab1
----
0
0
19

skipif mysql # not compatible
query I rowsort label-433
SELECT - 59 / - tab1.col0 AS col2 FROM tab1
----
0
0
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-434
SELECT DISTINCT col0 DIV ( col0 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT col0 / ( col0 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + cor0.col0 * - cor0.col1 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT + 74 + + col1 FROM tab1
----
100
84
87

query I rowsort
SELECT 97 + col2 * + col0 FROM tab0
----
132
7395
889

query I rowsort
SELECT 97 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT col2 * + tab1.col2 + - 63 FROM tab1
----
2853
3186
9153

onlyif mysql # use DIV operator for integer division
query I rowsort label-440
SELECT DISTINCT - tab0.col1 + 8 DIV col2 FROM tab0
----
-86
-89
-91

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT - tab0.col1 + 8 / col2 FROM tab0
----
-86
-89
-91

query I rowsort
SELECT + 90 FROM tab1, tab2 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - col1 * + col1 + 22 AS col0 FROM tab2 AS cor0
----
-267
-3459
-939

query I rowsort
SELECT DISTINCT + col2 - + ( + col2 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 - + 35 * col2 AS col0 FROM tab0 AS cor0
----
-1241
-132
-2961

onlyif mysql # use DIV operator for integer division
query I rowsort label-445
SELECT + col1 DIV - col1 + - col1 * col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-22600
-24549
-39885

skipif mysql # not compatible
query I rowsort label-445
SELECT + col1 / - col1 + - col1 * col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-22600
-24549
-39885

query I rowsort
SELECT ALL - col2 * - ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-447
SELECT - col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-447
SELECT - col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-448
SELECT - col2 DIV ( ( - col2 ) ) + - 85 * cor0.col1 + - col2 FROM tab1 AS cor0
----
-1200
-2263
-906

skipif mysql # not compatible
query I rowsort label-448
SELECT - col2 / ( ( - col2 ) ) + - 85 * cor0.col1 + - col2 FROM tab1 AS cor0
----
-1200
-2263
-906

query I rowsort
SELECT + col1 * + col1 + + 99 FROM tab0
----
7495
8380
9508

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-450
SELECT ALL + tab0.col0 + - CAST( NULL AS DECIMAL ) col0 FROM tab0, 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-450
SELECT ALL + tab0.col0 + - CAST ( NULL AS REAL ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - + cor0.col0 + - col2 AS col2 FROM tab1 cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-453
SELECT ALL + col1 + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + col1 + col2 / + col0 AS col1 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT - - 90 + - cor0.col0 * - col1 FROM tab0 cor0
----
2154
3485
8189

query I rowsort
SELECT ALL col1 * - col1 * col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-244154
-679133
-9506

query I rowsort
SELECT ALL col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col2 * + 95 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT ALL + col0 * 73 AS col1 FROM tab1 AS cor0
----
219
4672
5840

onlyif mysql # use DIV operator for integer division
query I rowsort label-459
SELECT DISTINCT + col2 * - col1 DIV - col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-459
SELECT DISTINCT + col2 * - col1 / - col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + col2 * col2 + col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT + - cor0.col0 + col0 * col1 * col1 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT ALL + 66 AS col1 FROM tab1
----
66
66
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT cor0.col0 - + col0 DIV col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-464
SELECT cor0.col0 - + col0 / col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + - col0 + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-466
SELECT - col1 + - 65 DIV - col0 AS col2 FROM tab2 AS cor0
----
-17
-22
-59

skipif mysql # not compatible
query I rowsort label-466
SELECT - col1 + - 65 / - col0 AS col2 FROM tab2 AS cor0
----
-17
-22
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 85 + col1 * + ( - 89 ) * + col0 col0 FROM tab1 AS cor0
----
-62400
-7197
-99360

query I rowsort
SELECT + col0 + + col1 * col2 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT ALL + col0 * + col1 + - col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + col0 - - col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + ( + 70 ) + - col0 FROM tab0 AS cor0
----
-105
-159
-94

query I rowsort
SELECT + 43 + - ( + col1 ) FROM tab2 AS cor0
----
-16
12
26

query I rowsort
SELECT ALL - cor0.col0 - + cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL + 18 + cor0.col1 FROM tab1 AS cor0
----
28
31
44

query I rowsort
SELECT - tab1.col0 * - col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL col1 * ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + ( col1 ) + col0 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - - col1 * 69 AS col0 FROM tab1 AS cor0
----
1794
690
897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-480
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * - 10 * - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-480
SELECT DISTINCT + - CAST ( NULL AS REAL ) * - 10 * - col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 + col0 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 85 - + col2 FROM tab0
----
-118
-167
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 53 col2 FROM tab0 cor0
----
53
53
53

query I rowsort
SELECT DISTINCT col1 + tab0.col1 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT col1 + col0 * tab1.col1 * - 63 AS col1 FROM tab1
----
-40310
-4888
-65507

query I rowsort
SELECT 84 * tab0.col2 FROM tab0
----
2772
6888
84

query I rowsort
SELECT col1 * - cor0.col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT + 42 * col2 AS col0 FROM tab2 AS cor0
----
1092
1134
1596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col2 col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 11 + - col2 FROM tab2 AS cor0
----
-37
-38
-49

query I rowsort
SELECT - 61 * col1 FROM tab1 cor0
----
-1586
-610
-793

query I rowsort
SELECT DISTINCT - col0 + - col1 * col1 + col1 AS col0 FROM tab2
----
-3500
-351
-937

query I rowsort
SELECT ALL + col1 * - col2 + col2 * + ( - 79 ) + - tab1.col0 FROM tab1
----
-5137
-5673
-8912

query I rowsort
SELECT ALL tab2.col1 * - col1 + col2 AS col0 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT ALL - 45 * col0 + - col1 FROM tab1
----
-161
-2890
-3613

query I rowsort
SELECT ALL - ( col0 * + col0 ) + - col1 * 66 AS col2 FROM tab1
----
-1725
-4756
-7258

onlyif mysql # use DIV operator for integer division
query I rowsort label-497
SELECT + 7 + - col0 DIV col1 FROM tab2 AS cor0
----
3
6
7

skipif mysql # not compatible
query I rowsort label-497
SELECT + 7 + - col0 / col1 FROM tab2 AS cor0
----
3
6
7

query I rowsort
SELECT ALL col0 + cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT 43 + + col0 AS col2 FROM tab1 AS cor0
----
107
123
46

query I rowsort
SELECT ALL 68 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT ALL col2 + - col2 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col2 + col2 * + 37 FROM tab0 cor0
----
1254
3116
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT - col0 + ( cor0.col0 ) DIV col1 col1 FROM tab1 cor0
----
-3
-58
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-503
SELECT - col0 + ( cor0.col0 ) / col1 col1 FROM tab1 cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * CAST ( ( col1 ) AS REAL ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - ( + ( + col0 ) ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - 54 + col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-45
4042
6346

query I rowsort
SELECT 17 * 94 FROM tab0
----
1598
1598
1598

query I rowsort
SELECT DISTINCT - tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-509
SELECT CAST( - col1 AS SIGNED ) * col0 AS col2 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-509
SELECT CAST ( - col1 AS INTEGER ) * col0 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - + col1 * - 74 AS col0 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT + - col0 + - col1 - + col2 FROM tab0 AS cor0
----
-133
-143
-262

query I rowsort
SELECT cor0.col1 * - col2 + col2 - + ( + ( - col1 ) * col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-513
SELECT - 43 * + col2 + col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-2314
-2451
-4128

skipif mysql # not compatible
query I rowsort label-513
SELECT - 43 * + col2 + col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-2314
-2451
-4128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-514
SELECT + col2 * + col1 + col2 + + CAST( NULL AS SIGNED ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-514
SELECT + col2 * + col1 + col2 + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * - col1 + - 10 AS col2 FROM tab0 cor0
----
-107
-2848
-7472

onlyif mysql # use DIV operator for integer division
query I rowsort label-516
SELECT col0 DIV + 16 AS col0 FROM tab2 AS cor0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-516
SELECT col0 / + 16 AS col0 FROM tab2 AS cor0
----
0
4
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-517
SELECT - col1 DIV ( col1 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-517
SELECT - col1 / ( col1 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 * - 27 FROM tab1
----
-1728
-2160
-81

query I rowsort
SELECT + col1 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - + cor0.col0 * - ( 89 ) FROM tab1 AS cor0
----
267
5696
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-521
SELECT cor0.col0 DIV + col0 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-521
SELECT cor0.col0 / + col0 AS col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + col0 * + col0 * - col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT cor0.col2 * tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8

query I rowsort
SELECT - + col2 + 12 AS col1 FROM tab0 cor0
----
-21
-70
11

query I rowsort
SELECT DISTINCT ( - 14 ) * - col0 + 40 AS col1 FROM tab0 AS cor0
----
1286
376
530

query I rowsort
SELECT ( col0 ) * col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-528
SELECT col2 * + col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-528
SELECT col2 * + col0 / - col0 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 90 * - col0 * col2 + tab2.col0 FROM tab2
----
-17003
-182442
-270101

query I rowsort
SELECT DISTINCT - 94 * col1 AS col1 FROM tab1
----
-1222
-2444
-940

query I rowsort
SELECT 58 + - col0 AS col2 FROM tab2 AS cor0
----
-20
-21
51

query I rowsort
SELECT 81 * + col1 + col0 FROM tab1 AS cor0
----
1133
2109
874

query I rowsort
SELECT + cor0.col0 * + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9f4d33c2594156f40c1a77ce18b06bc3

query I rowsort
SELECT 89 * col1 AS col1 FROM tab1
----
1157
2314
890

query I rowsort
SELECT ALL - - 48 + col1 * 31 FROM tab2 cor0
----
1009
1877
575

onlyif mysql # use DIV operator for integer division
query I rowsort label-536
SELECT ALL - col2 * cor0.col0 DIV col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL - col2 * cor0.col0 / col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + col0 + ( - col2 + + col2 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + cor0.col1 + + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL col0 + + col1 * 26 FROM tab1 AS cor0
----
324
418
679

query I rowsort
SELECT ALL + cor0.col2 * ( - 36 ) + - col1 * 17 FROM tab0 cor0
----
-1685
-2650
-4499

query I rowsort
SELECT DISTINCT + + col0 + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - + col0 + ( + col0 ) * - cor0.col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL - + col2 + ( col2 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 + - 67 * 85 FROM tab2 AS cor0
----
-5616
-5617
-5688

query I rowsort
SELECT DISTINCT + - col0 * - col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL col0 * cor0.col0 + col0 * col2 * + col0 + col2 FROM tab1 AS cor0
----
237625
549
620896

query I rowsort
SELECT tab2.col2 * 92 FROM tab2, tab1 AS cor0
----
9 values hashing to 0759b089d6fb4e40e511a1f725137392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + cor0.col0 + 86 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 30ee4e6ef162a0d37d4238d7b9cb1562

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-549
SELECT ALL 66 * - col1 + - CAST( - col0 AS SIGNED ) FROM tab1
----
-1713
-596
-778

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL 66 * - col1 + - CAST ( - col0 AS INTEGER ) FROM tab1
----
-1713
-596
-778

query I rowsort
SELECT col1 + col1 * ( col1 ) FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT - 93 FROM tab0, tab1, tab2 AS cor0
----
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT + 96 + col1 * col1 - + cor0.col0 DIV 93 col1 FROM tab1 AS cor0
----
196
265
772

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-552
SELECT + 96 + col1 * col1 - + cor0.col0 / 93 col1 FROM tab1 AS cor0
----
196
265
772

query I rowsort
SELECT - ( - col0 ) FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-554
SELECT + 61 * - col2 - col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-2014
-5002
-61

skipif mysql # not compatible
query I rowsort label-554
SELECT + 61 * - col2 - col2 / col0 AS col2 FROM tab0 AS cor0
----
-2014
-5002
-61

query I rowsort
SELECT ALL + + ( + 71 ) AS col1 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT + + col1 * col1 + col2 + + 89 * col1 FROM tab1 AS cor0
----
1047
1422
3044

query I rowsort
SELECT - ( - col1 ) + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - ( + col2 ) + - col0 * - col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-559
SELECT ALL + + CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL + + CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-560
SELECT DISTINCT - 7 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT - 7 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + tab1.col2 * 75 * - 33 FROM tab1
----
-133650
-141075
-237600

query I rowsort
SELECT - - 38 + col2 FROM tab1 cor0
----
134
92
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + col0 * + col0 * - col1 col1 FROM tab1 AS cor0
----
-164
-40890
-83130

query I rowsort
SELECT - 89 - ( col0 ) * + col0 FROM tab0
----
-1314
-665
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-565
SELECT DISTINCT + ( - col1 ) * - col1 + ( + tab0.col2 ) - col1 DIV - 37 FROM tab0
----
7431
8365
9412

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT + ( - col1 ) * - col1 + ( + tab0.col2 ) - col1 / - 37 FROM tab0
----
7431
8365
9412

query I rowsort
SELECT ALL + col1 * col2 + col0 AS col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-49

query I rowsort
SELECT ALL col2 * col0 + tab2.col2 AS col1 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-569
SELECT DISTINCT - + col2 DIV 59 - + col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-569
SELECT DISTINCT - + col2 / 59 - + col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - col1 + cor0.col0 AS col1 FROM tab1 cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort
SELECT ALL - - col2 * CAST ( + col1 AS REAL ) + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT tab0.col0 * + col0 + + col1 FROM tab0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-573
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-573
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + col0 + + col1 * col0 * - 73 AS col2 FROM tab0 AS cor0
----
-150648
-247800
-591138

query I rowsort
SELECT - 49 * - col0 + + col0 + - 1 AS col1 FROM tab0 AS cor0
----
1199
1749
4449

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-576
SELECT DISTINCT + - CAST( col2 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 86 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-578
SELECT + ( ( cor0.col1 ) ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT + ( ( cor0.col1 ) ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 9 AS col2 FROM tab1 cor0
----
9
9
9

query I rowsort
SELECT ALL + col2 + + ( col2 ) * ( 44 * col0 ) FROM tab2 AS cor0
----
132126
8343
89258

query I rowsort
SELECT + 30 * 87 FROM tab0 AS cor0
----
2610
2610
2610

query I rowsort
SELECT + 80 + ( col2 ) FROM tab2 AS cor0
----
106
107
118

query I rowsort
SELECT ALL + 83 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-14
-2755
-7379

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-584
SELECT DISTINCT CAST( + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT CAST ( + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-585
SELECT ALL - - CAST( col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - - CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + - 73 AS col0 FROM tab0 cor0
----
-73
-73
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-587
SELECT ALL cor0.col0 DIV col0 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL cor0.col0 / col0 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT DISTINCT ( - col0 ) + + col1 DIV - col2 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-589
SELECT DISTINCT ( - col0 ) + + col1 / - col2 FROM tab0 AS cor0
----
-132
-26
-90

query I rowsort
SELECT - 74 + - tab2.col0 FROM tab2
----
-152
-153
-81

query I rowsort
SELECT - ( - col2 ) * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + - 11 * col2 col2 FROM tab0 AS cor0
----
-108
-3201
-8364

query I rowsort
SELECT ALL - - col0 * col1 + + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL + col2 * col0 - - col2 * - col0 * col0 FROM tab2 AS cor0
----
-1134
-156156
-234156

query I rowsort
SELECT DISTINCT - + col2 - col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + + col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL 54 * - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1465
-1482
-2131

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-598
SELECT + + ( + col1 ) * + CAST( NULL AS SIGNED ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-598
SELECT + + ( + col1 ) * + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 - 23 * col2 FROM tab2 cor0
----
-432
1430
2128

query I rowsort
SELECT DISTINCT - col2 + 9 AS col1 FROM tab0 AS cor0
----
-24
-73
8

query I rowsort
SELECT ALL col0 * 23 FROM tab1 AS cor0
----
1472
1840
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-602
SELECT - cor0.col2 + - col0 DIV col2 FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-602
SELECT - cor0.col2 + - col0 / col2 FROM tab1 AS cor0
----
-54
-58
-96

query I rowsort
SELECT DISTINCT col0 * cor0.col0 + + 26 * col2 FROM tab0 AS cor0
----
10053
1251
1434

query I rowsort
SELECT cor0.col2 * + col0 - + 4 AS col1 FROM tab1 cor0
----
158
3644
7676

onlyif mysql # use DIV operator for integer division
query I rowsort label-605
SELECT ALL col2 DIV + col1 - 25 FROM tab0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL col2 / + col1 - 25 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT ALL - tab0.col2 * + col1 - col0 AS col1 FROM tab0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-607
SELECT ALL - col1 DIV col0 - + col2 FROM tab2
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL - col1 / col0 - + col2 FROM tab2
----
-26
-31
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-608
SELECT ALL col2 - - col1 * + col2 DIV col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL col2 - - col1 * + col2 / col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + col2 - 66 * - col0 FROM tab1 AS cor0
----
252
4281
5376

query I rowsort
SELECT + + col1 + 36 AS col1 FROM tab2 AS cor0
----
53
67
95

query I rowsort
SELECT - col0 + - ( - 27 ) AS col0 FROM tab2 AS cor0
----
-51
-52
20

query I rowsort
SELECT - col0 * + 60 FROM tab2 AS cor0
----
-420
-4680
-4740

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 - + 41 AS col1 FROM tab1 cor0
----
-15
-28
-31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-615
SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) + - cor0.col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) + - cor0.col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-616
SELECT - ( col2 ) + + col0 DIV + col2 FROM tab1
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-616
SELECT - ( col2 ) + + col0 / + col2 FROM tab1
----
-54
-56
-96

query I rowsort
SELECT + - col1 + col2 * - col0 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT + cor0.col0 * - 14 FROM tab0 AS cor0
----
-1246
-336
-490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-619
SELECT col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-619
SELECT col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col0 * - col1 - col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT col2 * - col1 + col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ( col1 * col0 ) AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT col2 * col2 + col2 * + col0 * col0 FROM tab1
----
236721
3402
623616

query I rowsort
SELECT + col1 * col2 + 60 * + col0 AS col1 FROM tab2
----
1257
5386
6214

query I rowsort
SELECT ALL - - ( + col0 ) + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - col0 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT - 33 * - cor0.col1 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT + 23 * - col0 AS col2 FROM tab1 cor0
----
-1472
-1840
-69

query I rowsort
SELECT ALL - - ( - col0 ) + col2 * - col2 FROM tab1 cor0
----
-2919
-3313
-9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-632
SELECT ALL - + 89 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-632
SELECT ALL - + 89 / col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT - col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col2 * col0 + ( col0 * col2 ) FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT ALL + 1 FROM tab0, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT - col1 - - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col1 + col1 * 52 AS col1 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT ALL - + col0 + col2 * col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT - 45 + + col2 * ( + col2 * cor0.col0 ) AS col1 FROM tab1 AS cor0
----
207891
737235
8703

query I rowsort
SELECT ALL - - col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT cor0.col2 + - cor0.col1 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-642
SELECT ALL + - col2 + col1 DIV + col2 AS col0 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-642
SELECT ALL + - col2 + col1 / + col2 AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + col2 * col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col0 + - 26 * + 68 FROM tab2 AS cor0
----
-1775
-1846
-1847

query I rowsort
SELECT - col0 - tab0.col0 FROM tab0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 + + col2 col2 FROM tab1
----
121
176
57

query I rowsort
SELECT - - col2 + - col1 * cor0.col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-649
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-649
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 79 + - 82 FROM tab0 cor0
----
-3
-3
-3

query I rowsort
SELECT + ( - 1 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + ( + 2 ) * + col0 - - cor0.col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL + 88 + + 74 + cor0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to b080a46e4f962fe8fac5a5a2234df403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * col1 col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col1 * - col1 * - col1 + - col2 - + col2 FROM tab0
----
635990
753407
912671

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-658
SELECT - CAST( NULL AS DECIMAL ) / tab1.col2 + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT - CAST ( NULL AS REAL ) / tab1.col2 + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT + 14 + col1 AS col1 FROM tab1 AS cor0
----
24
27
40

query I rowsort
SELECT ALL col2 - + ( col1 ) FROM tab1
----
28
47
83

query I rowsort
SELECT + + col2 + 2 FROM tab2 AS cor0
----
28
29
40

query I rowsort
SELECT ALL - 60 + col1 FROM tab1 AS cor0
----
-34
-47
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-664
SELECT ALL col2 DIV cor0.col2 + + col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-7
1
1

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL col2 / cor0.col2 + + col1 / - col0 AS col1 FROM tab1 AS cor0
----
-7
1
1

query I rowsort
SELECT ALL + 79 * col2 AS col2 FROM tab1 cor0
----
4266
4503
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-666
SELECT col2 * - col2 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1427
-617
-698

skipif mysql # not compatible
query I rowsort label-666
SELECT col2 * - col2 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL - + 99 + col1 * 2 AS col1 FROM tab2 AS cor0
----
-37
-65
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-668
SELECT + col2 + + 58 DIV tab2.col0 FROM tab2
----
26
35
38

skipif mysql # not compatible
query I rowsort label-668
SELECT + col2 + + 58 / tab2.col0 FROM tab2
----
26
35
38

query I rowsort
SELECT - 9 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col2 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT - col2 + + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-672
SELECT DISTINCT col0 * + col0 + - 17 * cor0.col1 + - CAST( NULL AS DECIMAL ) / ( - col1 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT col0 * + col0 + - 17 * cor0.col1 + - CAST ( NULL AS REAL ) / ( - col1 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT 10 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # use DIV operator for integer division
query I rowsort label-675
SELECT ALL col1 + ( - col0 ) DIV col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL col1 + ( - col0 ) / col2 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT ALL - col2 * 16 * col2 FROM tab0 AS cor0
----
-107584
-16
-17424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( - col2 ) * col2 + + 52 col2 FROM tab1 AS cor0
----
-207884
-737228
-8696

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + - 70 + col2 FROM tab0 AS cor0
----
-37
-69
12

query I rowsort
SELECT DISTINCT - col2 * 64 FROM tab2 cor0
----
-1664
-1728
-2432

query I rowsort
SELECT DISTINCT col0 * 58 FROM tab1 AS cor0
----
174
3712
4640

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT + 98 * col0 + col0 AS col1 FROM tab1 cor0
----
297
6336
7920

query I rowsort
SELECT DISTINCT + ( + 16 ) FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT + 28 * - col2 AS col0 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT + - ( + col2 ) * col2 * + col1 AS col0 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT + col1 * + col2 + + col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + col0 - - col2 * + cor0.col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT col2 - col0 * col1 AS col2 FROM tab1 cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-690
SELECT - col1 * col1 + + col2 DIV - tab1.col2 FROM tab1
----
-101
-170
-677

skipif mysql # not compatible
query I rowsort label-690
SELECT - col1 * col1 + + col2 / - tab1.col2 FROM tab1
----
-101
-170
-677

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab2.col2 col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT tab0.col1 + col2 FROM tab0
----
119
173
98

query III rowsort
SELECT * FROM tab0 WHERE - col0 / + col1 + + tab0.col2 * - col0 <= + col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + tab2.col0 * - col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col0 * + col2 + - tab1.col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT + tab0.col1 * - col1 * + col0 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col1 + + col0 * + col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL + col0 + - col2 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT cor0.col1 + - col2 * - col2 - + cor0.col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-483
383
63

query I rowsort
SELECT - tab1.col1 * + col2 - col2 * col1 AS col2 FROM tab1
----
-1140
-2496
-2808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + - tab2.col2 col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL col2 * + col1 + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + + col1 + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT tab1.col2 * col0 * col1 + - tab1.col0 FROM tab1
----
36416
4209
99760

query I rowsort
SELECT DISTINCT - col1 + - col0 FROM tab2 WHERE NOT NULL BETWEEN ( - col1 * + col1 - col2 ) AND ( NULL ) AND ( NULL ) IN ( col2 + col1 / - col1 )
----

query I rowsort
SELECT + col0 + - col2 * tab1.col2 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-17
-31
-59

query I rowsort
SELECT ALL - col0 + col1 * cor0.col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT col0 * col2 AS col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND col2 + + col0
----

query I rowsort
SELECT - col0 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - + col2 * col1 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT ALL - + col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - + col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL - col1 + + cor0.col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL - tab0.col0 - + tab0.col2 FROM tab0, tab0 cor0
----
9 values hashing to aac9661904614ee295157ea355327523

query I rowsort
SELECT - 37 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

query I rowsort
SELECT 40 AS col0 FROM tab2
----
40
40
40

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT ALL ( col2 ) * ( 27 * - col1 ) AS col2 FROM tab1 cor0
----
-15390
-33696
-37908

onlyif mysql # use DIV operator for integer division
query I rowsort label-719
SELECT + - col0 DIV cor0.col0 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-719
SELECT + - col0 / cor0.col0 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - cor0.col0 * ( + col1 * + col2 ) FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-721
SELECT + - col2 * col0 DIV + ( - col1 + - 3 * 1 ) FROM tab1 AS cor0
----
280
480
5

skipif mysql # not compatible
query I rowsort label-721
SELECT + - col2 * col0 / + ( - col1 + - 3 * 1 ) FROM tab1 AS cor0
----
280
480
5

query I rowsort
SELECT - + col2 * 5 AS col1 FROM tab2 cor0
----
-130
-135
-190

query I rowsort
SELECT - col0 * - col2 + col1 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE ( col2 ) NOT IN ( + col2 + col0 )
----
7
78
79

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col2 NOT IN ( - col1 + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= - col2
----

query I rowsort
SELECT ALL - col0 * col1 * + col2 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col1 + col0 - col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL = ( + col2 )
----

query I rowsort
SELECT ALL col0 * col0 * - col2 FROM tab0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col0 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col0 FROM tab1
----
2916
3249
9216

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col0 FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT + col0 + col2 * - col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT 43 * cor0.col2 FROM tab1 AS cor0
----
2322
2451
4128

query I rowsort
SELECT + - col0 + col1 * col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + col2 * cor0.col2 + col1 FROM tab2 AS cor0
----
1461
735
760

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT DISTINCT col2 * + ( + 81 ) AS col1 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT - col1 * + 58 FROM tab1 AS cor0
----
-1508
-580
-754

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col1 + + 29 AS col0 FROM tab0 cor0
----
-57
-62
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-744
SELECT + col0 + cor0.col1 DIV - 12 AS col2 FROM tab0 AS cor0
----
17
27
82

skipif mysql # not compatible
query I rowsort label-744
SELECT + col0 + cor0.col1 / - 12 AS col2 FROM tab0 AS cor0
----
17
27
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-745
SELECT + - col0 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT + - col0 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT - 41 FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 007857b49fbf51962923f3da53f42f2b

query I rowsort
SELECT ALL 62 + 28 AS col1 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-749
SELECT - + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-749
SELECT - + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT - + 37 + cor0.col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-750
SELECT - + 37 + cor0.col2 / col1 AS col1 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-751
SELECT DISTINCT - + col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT - + col1 / + col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ( 70 ) FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT ALL + 79 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to da0116d31b8af0da9f685c090d378baf

query I rowsort
SELECT + ( col0 + + col0 * - 4 ) AS col2 FROM tab2
----
-21
-234
-237

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-755
SELECT CAST( 13 AS SIGNED ) AS col2 FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-755
SELECT CAST ( 13 AS INTEGER ) AS col2 FROM tab2
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-756
SELECT col1 DIV tab1.col0 AS col1 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-756
SELECT col1 / tab1.col0 AS col1 FROM tab1
----
0
0
8

query I rowsort
SELECT - ( col2 ) + - ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-758
SELECT - ( - col0 * + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT - ( - col0 * + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 77 * + col2 - 10 FROM tab2
----
1992
2069
2916

onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT DISTINCT - col2 DIV 58 + col0 + col0 col0 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-760
SELECT DISTINCT - col2 / 58 + col0 + col0 col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL col2 - col1 * cor0.col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col1 + ( - 49 ) AS col1 FROM tab1 AS cor0
----
-23
-36
-39

query I rowsort
SELECT - tab0.col1 - - cor1.col0 * + cor1.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 756c55c5f3ebd4bd3da3b233da95a63f

onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT DISTINCT 94 DIV + col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT 94 / + col0 FROM tab0
----
1
2
3

query I rowsort
SELECT ALL + col1 * 76 + - col2 AS col0 FROM tab1
----
1922
703
892

query I rowsort
SELECT DISTINCT - col1 - - 9 AS col2 FROM tab0
----
-77
-82
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-767
SELECT DISTINCT + tab1.col0 - - 43 DIV + col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT + tab1.col0 - - 43 / + col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - 10 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

onlyif mysql # use DIV operator for integer division
query I rowsort label-769
SELECT ALL - tab2.col2 * - col2 - col0 DIV col0 FROM tab2
----
1443
675
728

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - tab2.col2 * - col2 - col0 / col0 FROM tab2
----
1443
675
728

onlyif mysql # use DIV operator for integer division
query I rowsort label-770
SELECT ALL - col1 DIV - ( 55 ) AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL - col1 / - ( 55 ) AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * col2 + - col0 * col1 + + col0 AS col0 FROM tab2
----
-3848
180
519

query I rowsort
SELECT + col0 + - col0 - 33 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-773
SELECT + col2 + - CAST( + col1 AS SIGNED ) * - cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
2121
3431
8270

skipif mysql # not compatible
query I rowsort label-773
SELECT + col2 + - CAST ( + col1 AS INTEGER ) * - cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
2121
3431
8270

query I rowsort
SELECT - 44 + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d4f011437267154aaf608d952cd30a17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-775
SELECT + col0 * col2 / col0 - + CAST( NULL AS DECIMAL ) / 2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-775
SELECT + col0 * col2 / col0 - + CAST ( NULL AS REAL ) / 2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + ( + col2 ) * - col0 FROM tab1
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-777
SELECT CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-778
SELECT ALL 29 DIV tab0.col2 col0 FROM tab0
----
0
0
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-778
SELECT ALL 29 / tab0.col2 col0 FROM tab0
----
0
0
29

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-780
SELECT - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-780
SELECT - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-781
SELECT + - col1 DIV 70 + cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-781
SELECT + - col1 / 70 + cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-782
SELECT ALL col1 DIV col2 + + col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL col1 / col2 + + col2 FROM tab0
----
35
83
98

query I rowsort
SELECT + 61 + + col0 AS col1 FROM tab2 AS cor0
----
139
140
68

query I rowsort
SELECT DISTINCT + + 56 + - col1 FROM tab1 AS cor0
----
30
43
46

query I rowsort
SELECT ALL cor0.col0 * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - col1 * tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-787
SELECT + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-787
SELECT + col2 / + col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col0 * - 42 col2 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT - - col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col2 FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL cor0.col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-792
SELECT + col0 * - col2 DIV + col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-792
SELECT + col0 * - col2 / + col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + ( + col2 ) * ( + col0 * + col1 ) + col1 AS col1 FROM tab0 AS cor0
----
3492
664209
68198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * ( col2 ) col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 + - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + - 90 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - col1 + 83 FROM tab2 cor0
----
24
52
66

query I rowsort
SELECT - col2 + 86 * + col2 AS col2 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT DISTINCT + 1 + 13 FROM tab0 AS cor0
----
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-800
SELECT + CAST( + ( col2 ) AS SIGNED ) + + CAST( ( col1 ) AS SIGNED ) * ( col2 * cor0.col1 ) FROM tab2 AS cor0
----
11020
25974
90532

skipif mysql # not compatible
query I rowsort label-800
SELECT + CAST ( + ( col2 ) AS INTEGER ) + + CAST ( ( col1 ) AS INTEGER ) * ( col2 * cor0.col1 ) FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT + tab1.col2 * ( - col2 ) - - col0 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT - + cor0.col0 * - col0 - 46 AS col2 FROM tab2 AS cor0
----
3
6038
6195

query I rowsort
SELECT - ( 68 ) + - col0 * + ( col1 ) AS col0 FROM tab0
----
-2132
-3463
-8167

query I rowsort
SELECT + 15 FROM tab1, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT col2 * + col1 * col2 + col0 AS col1 FROM tab0
----
132
611973
93678

query I rowsort
SELECT - + cor0.col1 * - col1 * + col2 AS col0 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT + + col0 - + col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT + - ( col0 ) + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + col0 * + col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + col1 * + col2 + + col2 * 88 FROM tab0
----
14678
185
5742

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-811
SELECT 87 * cor0.col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-811
SELECT 87 * cor0.col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 48 * + ( + tab0.col0 * col2 ) FROM tab0
----
1680
350304
38016

query I rowsort
SELECT col0 * + 63 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT DISTINCT - col1 + 56 FROM tab0 AS cor0
----
-30
-35
-41

query I rowsort
SELECT + + col1 * - col0 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - col1 * - col0 + - col1 * + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT DISTINCT + col1 * col1 + col0 DIV col0 FROM tab2 AS cor0
----
290
3482
962

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + col1 * col1 + col0 / col0 FROM tab2 AS cor0
----
290
3482
962

query I rowsort
SELECT DISTINCT - + cor0.col1 * 44 - - col2 AS col1 FROM tab2 AS cor0
----
-1337
-2570
-710

query I rowsort
SELECT + col0 + 89 FROM tab2 AS cor0
----
167
168
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-820
SELECT ALL - + col1 + CAST( NULL AS DECIMAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - + col1 + CAST ( NULL AS REAL ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - - col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 + + col1 + + col1 * 11 AS col1 FROM tab2 AS cor0
----
1101
1384
1648

query I rowsort
SELECT ALL - + col2 - + 54 * col2 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT ALL - col0 + tab2.col0 + 98 * col2 * + col0 AS col1 FROM tab2
----
18522
198744
294196

query I rowsort
SELECT ALL + col0 * + col1 + + ( col1 ) AS col1 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT ALL tab1.col2 * - col2 + - ( tab1.col1 ) DIV + col0 FROM tab1
----
-2924
-3249
-9216

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL tab1.col2 * - col2 + - ( tab1.col1 ) / + col0 FROM tab1
----
-2924
-3249
-9216

query I rowsort
SELECT ALL + + tab1.col1 AS col2 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL + 95 + tab1.col1 * col1 + tab1.col1 FROM tab1
----
205
277
797

onlyif mysql # use DIV operator for integer division
query I rowsort label-829
SELECT ALL + col1 * col0 DIV ( col1 ) + col0 FROM tab2
----
14
156
158

skipif mysql # not compatible
query I rowsort label-829
SELECT ALL + col1 * col0 / ( col1 ) + col0 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab2.col1 ) + 74 col2 FROM tab2
----
15
43
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT + tab0.col2 DIV + 99 + + 13 AS col2 FROM tab0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-831
SELECT + tab0.col2 / + 99 + + 13 AS col2 FROM tab0
----
13
13
13

query I rowsort
SELECT + col0 * 99 FROM tab1 AS cor0
----
297
6336
7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-833
SELECT DISTINCT + - cor0.col1 DIV - ( cor0.col0 ) FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT + - cor0.col1 / - ( cor0.col0 ) FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT col1 + cor0.col1 * 79 AS col1 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT ALL col1 + + ( - ( col1 ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + cor0.col2 + col1 * col2 * - col1 FROM tab2 cor0
----
-10906
-25893
-90454

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT DISTINCT + col0 DIV ( col1 ) - - col2 AS col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + col0 / ( col1 ) - - col2 AS col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT ALL + + col1 + 30 + col1 AS col2 FROM tab1 AS cor0
----
50
56
82

query I rowsort
SELECT DISTINCT - - col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + 47 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT 58 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + cor0.col1 * + 69 FROM tab1 cor0
----
1794
690
897

query I rowsort
SELECT col2 + ( col2 + + tab0.col0 ) * col2 AS col2 FROM tab0
----
14104
1914
37

query I rowsort
SELECT ALL - col1 * 83 AS col2 FROM tab2 cor0
----
-1411
-2573
-4897

query I rowsort
SELECT - - col1 + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT + col1 * + 4 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT col2 * 5 AS col2 FROM tab1
----
270
285
480

query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-849
SELECT DISTINCT col2 DIV - col2 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT col2 / - col2 AS col2 FROM tab0
----
-1

query I rowsort
SELECT col1 * 12 * tab1.col0 FROM tab1
----
12480
7680
936

query I rowsort
SELECT ( + col1 * tab0.col0 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + - col2 * + 25 AS col1 FROM tab2 AS cor0
----
-650
-675
-950

query I rowsort
SELECT ( 19 ) FROM tab1 AS cor0
----
19
19
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-855
SELECT ALL - - 52 DIV ( col2 ) FROM tab0 AS cor0
----
0
1
52

skipif mysql # not compatible
query I rowsort label-855
SELECT ALL - - 52 / ( col2 ) FROM tab0 AS cor0
----
0
1
52

query I rowsort
SELECT DISTINCT + 78 FROM tab0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col0 FROM tab1
----
10
10
10

query I rowsort
SELECT + ( + 21 ) FROM tab1
----
21
21
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-859
SELECT + ( + col0 ) DIV cor0.col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-859
SELECT + ( + col0 ) / cor0.col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + 94 * col0 FROM tab2 AS cor0
----
658
7332
7426

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * + cor0.col0 + 63 + col2 col2 FROM tab2 AS cor0
----
-1242
-127
-4513

query I rowsort
SELECT col1 * - col1 + ( + col2 + cor0.col0 ) FROM tab2 AS cor0
----
-172
-3377
-927

onlyif mysql # use DIV operator for integer division
query I rowsort label-863
SELECT - col2 DIV + col0 + 35 * + col1 FROM tab0 AS cor0
----
3009
3185
3395

skipif mysql # not compatible
query I rowsort label-863
SELECT - col2 / + col0 + 35 * + col1 FROM tab0 AS cor0
----
3009
3185
3395

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-864
SELECT - col2 - cor0.col2 * + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

skipif mysql # not compatible
query I rowsort label-864
SELECT - col2 - cor0.col2 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL + col0 * col2 + ( col2 ) FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 + + 18 AS col2 FROM tab1 AS cor0
----
-151
-658
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 + ( col1 ) col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - + col1 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - 47 + + col1 AS col2 FROM tab1 AS cor0
----
-21
-34
-37

query I rowsort
SELECT DISTINCT + tab2.col1 * 28 FROM tab2, tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT ALL - 52 * + col2 FROM tab2
----
-1352
-1404
-1976

query I rowsort
SELECT 83 + + 66 FROM tab2
----
149
149
149

query I rowsort
SELECT DISTINCT + + 0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 + + col2 - + col0 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT ALL + - col1 * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + tab2.col0 ) col2 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-878
SELECT - col1 * col2 DIV - col2 - + ( 37 ) FROM tab0
----
49
54
60

skipif mysql # not compatible
query I rowsort label-878
SELECT - col1 * col2 / - col2 - + ( 37 ) FROM tab0
----
49
54
60

query I rowsort
SELECT + col2 + ( col2 ) * col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col1 - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col0 - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-883
SELECT ALL cor0.col0 DIV - cor0.col0 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL cor0.col0 / - cor0.col0 AS col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT - - 9 + col2 FROM tab2 AS cor0
----
35
36
47

query I rowsort
SELECT DISTINCT - col0 * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT + 63 * + col0 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT + col0 * col0 + 8 AS col1 FROM tab0 AS cor0
----
1233
584
7929

query I rowsort
SELECT ALL - col1 + + col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + col1 + + col1 - 64 AS col2 FROM tab0 AS cor0
----
108
118
130

query I rowsort
SELECT col0 + - 7 AS col1 FROM tab1
----
-4
57
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-891
SELECT col0 DIV col2 - col0 AS col1 FROM tab1
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-891
SELECT col0 / col2 - col0 AS col1 FROM tab1
----
-3
-63
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col0 + + CAST ( col1 AS REAL ) + - col0 col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - tab2.col2 * ( ( col1 ) ) AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - cor0.col2 + + cor0.col1 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col0 col1 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-896
SELECT ALL CAST( + 94 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL CAST ( + 94 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT 53 + - col2 * col1 FROM tab2 cor0
----
-1481
-593
-784

query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + 14 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1092
1106
98

query I rowsort
SELECT col2 * 26 AS col1 FROM tab2 cor0
----
676
702
988

query I rowsort
SELECT ALL - 28 FROM tab1, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab2, tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-903
SELECT ALL - col1 DIV + 84 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - col1 / + 84 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - + ( - col2 ) * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - 56 + - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-228
-238
-250

query I rowsort
SELECT DISTINCT 1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - ( 10 ) + + col1 AS col2 FROM tab1 cor0
----
0
16
3

query I rowsort
SELECT + 9 AS col1 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT + ( + 37 ) FROM tab0 AS cor0
----
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-911
SELECT ALL - CAST( + col2 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL - CAST ( + col2 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT 62 AS col1 FROM tab0 cor0
----
62
62
62

query I rowsort
SELECT ALL - col2 * - col2 + + col2 * cor0.col1 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT ALL - - 43 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT - 28 * - 85 AS col2 FROM tab1 AS cor0
----
2380
2380
2380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-916
SELECT ALL - CAST( NULL AS SIGNED ) - ( col1 ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL - CAST ( NULL AS INTEGER ) - ( col1 ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) + + 30 AS col1 FROM tab2 AS cor0
----
-32
11
54

query I rowsort
SELECT ALL + col1 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT 23 + + 75 AS col0 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL + col1 + col1 + col1 AS col0 FROM tab0 AS cor0
----
258
273
291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * col1 + - col1 col2 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT DISTINCT 82 - cor0.col0 AS col1 FROM tab1 cor0
----
18
2
79

query I rowsort
SELECT DISTINCT - 6 + col2 FROM tab2 AS cor0
----
20
21
32

query I rowsort
SELECT ALL - 6 + - col1 FROM tab0 AS cor0
----
-103
-92
-97

query I rowsort
SELECT ALL - + 37 + + col1 AS col0 FROM tab1 cor0
----
-11
-24
-27

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT cor0.col1 * col2 - col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT col2 * col1 * col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL cor0.col1 * + ( - col2 ) AS col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 30 col0 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT ALL + col1 - col0 AS col1 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 11 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
11

query I rowsort
SELECT ALL ( col1 * ( col2 ) ) FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col2 + col0 * + 96 * tab2.col2 AS col2 FROM tab2
----
18117
194662
288154

onlyif mysql # use DIV operator for integer division
query I rowsort label-936
SELECT DISTINCT col1 + 66 DIV + col1 AS col1 FROM tab1
----
16
18
28

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT col1 + 66 / + col1 AS col1 FROM tab1
----
16
18
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 52 col0 FROM tab1
----
106
109
148

query I rowsort
SELECT col1 * + 25 AS col2 FROM tab1 cor0
----
250
325
650

query I rowsort
SELECT ALL + col0 * col1 + + tab0.col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT col2 + + ( + 24 ) FROM tab0
----
106
25
57

query I rowsort
SELECT ALL col1 + ( - col2 ) FROM tab0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-942
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-942
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 11 + - 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT - - col2 + col1 + + col2 DIV 81 AS col0 FROM tab1 AS cor0
----
110
67
80

skipif mysql # not compatible
query I rowsort label-944
SELECT - - col2 + col1 + + col2 / 81 AS col0 FROM tab1 AS cor0
----
110
67
80

query I rowsort
SELECT DISTINCT - 44 * + cor0.col2 + 26 * + col1 AS col1 FROM tab0 cor0
----
-1242
2478
784

query I rowsort
SELECT ALL + - col0 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - cor0.col1 + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-948
SELECT DISTINCT col2 DIV + col0 + + 40 col2 FROM tab0 AS cor0
----
40
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT col2 / + col0 + + 40 col2 FROM tab0 AS cor0
----
40
41

query I rowsort
SELECT DISTINCT col0 * + col1 + - ( + cor0.col1 ) + - col1 FROM tab2 cor0
----
1309
155
4484

onlyif mysql # use DIV operator for integer division
query I rowsort label-950
SELECT ALL col1 DIV + 77 + cor0.col2 DIV col1 + col0 * col2 * col0 AS col1 FROM tab0 AS cor0
----
1226
19009
649523

skipif mysql # not compatible
query I rowsort label-950
SELECT ALL col1 / + 77 + cor0.col2 / col1 + col0 * col2 * col0 AS col1 FROM tab0 AS cor0
----
1226
19009
649523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 99 * - 91 col2 FROM tab2 AS cor0
----
234234
243243
342342

query I rowsort
SELECT - + cor0.col1 * 2 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - cor0.col1 + 22 FROM tab0 AS cor0
----
-64
-69
-75

query I rowsort
SELECT + ( col2 ) + col2 * - col1 + col1 FROM tab1 AS cor0
----
-1139
-1324
-503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col0 col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT + CAST( 43 AS SIGNED ) DIV col0 AS col2 FROM tab1
----
0
0
14

skipif mysql # not compatible
query I rowsort label-956
SELECT + CAST ( 43 AS INTEGER ) / col0 AS col2 FROM tab1
----
0
0
14

query I rowsort
SELECT 13 - cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1330
-204
-4589

onlyif mysql # use DIV operator for integer division
query I rowsort label-958
SELECT DISTINCT + col2 + 25 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
54
59
97

skipif mysql # not compatible
query I rowsort label-958
SELECT DISTINCT + col2 + 25 / cor0.col1 AS col1 FROM tab1 AS cor0
----
54
59
97

query I rowsort
SELECT cor0.col1 * - col0 - - col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT ALL - - CAST( col0 AS SIGNED ) DIV - col2 + cor0.col0 * cor0.col2 DIV col1 FROM tab0 AS cor0
----
-35
79
9

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL - - CAST ( col0 AS INTEGER ) / - col2 + cor0.col0 * cor0.col2 / col1 FROM tab0 AS cor0
----
-35
79
9

query I rowsort
SELECT ALL - col2 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-962
SELECT + - col0 DIV col1 + + col0 + - col2 FROM tab2 AS cor0
----
-20
37
51

skipif mysql # not compatible
query I rowsort label-962
SELECT + - col0 / col1 + + col0 + - col2 FROM tab2 AS cor0
----
-20
37
51

query I rowsort
SELECT + ( + col2 ) * - 69 + col0 + col1 AS col0 FROM tab2 AS cor0
----
-1657
-1825
-2526

query I rowsort
SELECT ALL + ( + col2 ) + + ( col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT - + cor0.col0 + - cor0.col2 DIV - col1 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-965
SELECT - + cor0.col0 + - cor0.col2 / - col1 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - 58 AS col0 FROM tab1 AS cor0
----
-58
-58
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-968
SELECT col2 DIV + tab0.col1 + col2 + ( col1 ) FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-968
SELECT col2 / + tab0.col1 + col2 + ( col1 ) FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab0
----
74
74
74

query I rowsort
SELECT DISTINCT - 43 + col0 FROM tab0
----
-19
-8
46

query I rowsort
SELECT ALL ( - col0 ) + + col1 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT - col2 * col1 + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT 69 * col1 + col1 * + 19 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT DISTINCT - 75 + + cor0.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-16
-44
-58

query I rowsort
SELECT col2 * col2 * + 27 AS col1 FROM tab0
----
181548
27
29403

query I rowsort
SELECT cor0.col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT col2 * col2 + col1 AS col2 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT col1 * - 66 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-12730
-6403
-6765

onlyif mysql # use DIV operator for integer division
query I rowsort label-979
SELECT col1 + + col2 DIV 46 AS col1 FROM tab1 AS cor0
----
11
15
27

skipif mysql # not compatible
query I rowsort label-979
SELECT col1 + + col2 / 46 AS col1 FROM tab1 AS cor0
----
11
15
27

query I rowsort
SELECT ALL col0 * - 30 * cor0.col1 FROM tab2 AS cor0
----
-138060
-40290
-6510

query I rowsort
SELECT + ( col1 ) * col2 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + - 76 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - + col2 * 16 FROM tab0 AS cor0
----
-1312
-16
-528

query I rowsort
SELECT tab0.col0 + + tab0.col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
9

query I rowsort
SELECT col1 + + 63 FROM tab2
----
122
80
94

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT + col1 * + 44 AS col0 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT - + 90 AS col0 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-990
SELECT - col0 DIV - 84 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-990
SELECT - col0 / - 84 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * col2 + - cor0.col2 * 99 * - col0 AS col2 FROM tab1 AS cor0
----
13122
357903
751104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-992
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-993
SELECT ALL cor0.col2 + + col0 DIV - ( - col1 ) FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL cor0.col2 + + col0 / - ( - col1 ) FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT ALL + cor0.col0 - - col0 * 92 AS col0 FROM tab2 cor0
----
651
7254
7347

query I rowsort
SELECT ALL - + col0 + + 84 FROM tab1 AS cor0
----
20
4
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-996
SELECT DISTINCT - - col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT - - col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-997
SELECT DISTINCT - col0 + ( + 56 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-6
-76
-78

skipif mysql # not compatible
query I rowsort label-997
SELECT DISTINCT - col0 + ( + 56 ) / col1 AS col2 FROM tab2 AS cor0
----
-6
-76
-78

query I rowsort
SELECT ALL + - col2 + 11 * + col0 * - col1 FROM tab0 AS cor0
----
-22737
-37346
-89171

query I rowsort
SELECT ALL - 74 + col0 AS col0 FROM tab0
----
-39
-50
15

query I rowsort
SELECT ALL col2 * - col1 + col2 + + col0 FROM tab2
----
-1430
-529
-803

query I rowsort
SELECT - 47 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

query I rowsort
SELECT DISTINCT + 13 FROM tab1
----
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-1003
SELECT DISTINCT + 47 DIV - col0 AS col0 FROM tab1
----
-15
0

skipif mysql # not compatible
query I rowsort label-1003
SELECT DISTINCT + 47 / - col0 AS col0 FROM tab1
----
-15
0

query I rowsort
SELECT DISTINCT + 74 FROM tab1, tab0 AS cor0
----
74

query I rowsort
SELECT col2 - - ( + col2 ) * - col1 AS col1 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col2 * + 98 AS col0 FROM tab1
----
5292
5586
9408

query I rowsort
SELECT DISTINCT - 73 FROM tab1, tab1 AS cor0
----
-73

query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * cor0.col2 col0 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - 21 * - 72 AS col2 FROM tab2, tab0 cor0
----
1512

query I rowsort
SELECT ALL + col2 * - ( col0 + col1 ) * tab1.col2 FROM tab1
----
-240426
-84564
-857088

query I rowsort
SELECT + ( cor0.col0 ) - + col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - cor0.col1 * - 16 + col1 * 24 * + cor0.col2 FROM tab1 AS cor0
----
13840
30160
34112

query I rowsort
SELECT - col1 + - col0 * cor0.col2 AS col2 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT - ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - col1 + 54 * + col2 FROM tab1 AS cor0
----
2890
3068
5171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
36

query I rowsort
SELECT col0 + - col2 * + tab1.col1 + ( col2 * tab1.col1 + + col2 ) FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1019
SELECT 61 + + 49 - col0 DIV - col0 FROM tab1
----
111
111
111

skipif mysql # not compatible
query I rowsort label-1019
SELECT 61 + + 49 - col0 / - col0 FROM tab1
----
111
111
111

query I rowsort
SELECT ALL + 86 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT - 56 * - col2 + - col2 * + col2 FROM tab2 AS cor0
----
684
780
783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 * - col2 + col2 col2 FROM tab1 cor0
----
3348
3534
5952

onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT - - col0 * col1 DIV - 21 AS col2 FROM tab1 AS cor0
----
-3
-30
-49

skipif mysql # not compatible
query I rowsort label-1023
SELECT - - col0 * col1 / - 21 AS col2 FROM tab1 AS cor0
----
-3
-30
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 * col0 * col0 col1 FROM tab0 cor0
----
44352
609917
94325

query I rowsort
SELECT DISTINCT col0 + col0 + - tab0.col0 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col1 * - col0 * - col2 + col1 AS col2 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT tab1.col0 * col0 * - col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT - 77 + col2 * col0 * + col2 + + col2 * + col2 FROM tab0
----
-41
27148
605083

query I rowsort
SELECT DISTINCT - col2 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT ALL - - col0 * cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - ( col0 ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT ( + col1 ) - + cor0.col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT - - 93 - col0 FROM tab1 AS cor0
----
13
29
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1034
SELECT ALL - col2 * - col2 + col2 DIV cor0.col2 FROM tab0 AS cor0
----
1090
2
6725

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - col2 * - col2 + col2 / cor0.col2 FROM tab0 AS cor0
----
1090
2
6725

onlyif mysql # use DIV operator for integer division
query I rowsort label-1035
SELECT + + col1 + - col2 DIV - col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1035
SELECT + + col1 + - col2 / - col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - col1 + col2 + col0 FROM tab2 AS cor0
----
100
3
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL cor0.col0 * + 34 + - col0 AS col2 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT - + col2 - + col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + + col0 + - 8 + + col2 FROM tab0 AS cor0
----
163
28
49

query I rowsort
SELECT ( - col0 ) * - col2 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - 96 + - col0 FROM tab2 AS cor0
----
-103
-174
-175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT col1 DIV 15 - col0 FROM tab0 cor0
----
-19
-29
-83

skipif mysql # not compatible
query I rowsort label-1045
SELECT col1 / 15 - col0 FROM tab0 cor0
----
-19
-29
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 - + col1 col0 FROM tab2 AS cor0
----
-17
11
25

query I rowsort
SELECT ALL + ( + 9 ) * + col1 + col1 AS col2 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT ALL - col2 - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + - col2 * col0 + + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - 7 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT - 11 - - 35 * - tab2.col0 AS col2 FROM tab2
----
-256
-2741
-2776

query I rowsort
SELECT DISTINCT col2 * - col1 - - col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - - col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - - 46 + col2 AS col2 FROM tab1 AS cor0
----
100
103
142

query I rowsort
SELECT - 93 + col0 + col1 * col1 FROM tab0 AS cor0
----
7327
8277
9351

query I rowsort
SELECT ALL + col2 + - cor0.col2 * - col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col0 * + col2 + col0 AS col0 FROM tab1 cor0
----
-156
-3520
-7520

query I rowsort
SELECT DISTINCT - - col0 * col2 + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT ALL - col1 + + col1 * + col2 AS col0 FROM tab0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 * - col1 col0 FROM tab2
----
251
3455
934

query I rowsort
SELECT + ( - tab0.col0 ) * + col0 * col0 + - tab0.col1 AS col0 FROM tab0
----
-13910
-42972
-705060

query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - col2 - 17 FROM tab1
----
-113
-71
-74

query I rowsort
SELECT - col1 + 52 + + tab0.col0 AS col1 FROM tab0
----
-10
-10
50

query I rowsort
SELECT ALL ( ( - col0 ) * - col2 ) - tab2.col0 AS col0 FROM tab2
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1067
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1067
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT + + col1 + - col1 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT ALL tab2.col1 * + col0 AS col0 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 69 col1 FROM tab2
----
-1794
-1863
-2622

query I rowsort
SELECT - 68 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT - 52 AS col1 FROM tab1
----
-52
-52
-52

query I rowsort
SELECT DISTINCT ( - col1 + col2 ) * col0 AS col0 FROM tab1
----
3008
6640
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + + col1 col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT + + 83 + + col0 AS col2 FROM tab1 cor0
----
147
163
86

query I rowsort
SELECT + - 22 + col1 AS col0 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT DISTINCT col1 * + 44 AS col0 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT 95 + - col1 FROM tab2 AS cor0
----
36
64
78

query I rowsort
SELECT - col2 * col1 + 11 + - col1 FROM tab2
----
-1582
-652
-857

query I rowsort
SELECT - ( cor0.col1 ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL + col2 * col1 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * + col2 col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - 54 AS col0 FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-1084
SELECT DISTINCT - col0 + col0 * - ( - col1 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT - col0 + col0 * - ( - col1 ) / - col1 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col2 + - ( col2 ) * + cor0.col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + + col2 - col1 * - col2 * col0 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT DISTINCT - - col2 * col0 * 31 FROM tab1 AS cor0
----
113088
238080
5022

query I rowsort
SELECT ALL + - col2 + ( 94 + - col1 ) FROM tab2 AS cor0
----
36
39
9

query I rowsort
SELECT cor0.col1 + ( 84 ) * col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
13634
306442
645133

query I rowsort
SELECT ALL col2 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + + col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1093
SELECT DISTINCT col2 - - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT col2 - - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + col2 * ( - col2 ) col1 FROM tab1
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-1095
SELECT ( col0 ) DIV + col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1095
SELECT ( col0 ) / + col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - 29 - col0 AS col1 FROM tab1
----
-109
-32
-93

query I rowsort
SELECT + cor0.col0 * col1 - + col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + col2 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - + col1 * cor0.col1 + 63 - - col2 AS col0 FROM tab2 AS cor0
----
-188
-3392
-871

query I rowsort
SELECT + col0 * ( col1 ) + col1 * + col0 FROM tab1 AS cor0
----
1280
156
2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT + cor0.col1 DIV - 38 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-1101
SELECT + cor0.col1 / - 38 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT cor0.col1 * cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
43
622
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ( + col2 ) + + col1 * ( col1 ) AS col1 FROM tab2 cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-1105
SELECT ALL col2 DIV col1 + col1 * + col1 FROM tab1 AS cor0
----
105
176
678

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL col2 / col1 + col1 * + col1 FROM tab1 AS cor0
----
105
176
678

query I rowsort
SELECT 77 + + col1 + + col1 AS col2 FROM tab2 AS cor0
----
111
139
195

query I rowsort
SELECT col1 - - col2 * + cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-16211
-36478
-5690

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( 82 AS REAL ) * col2 + CAST ( + ( - cor0.col1 ) AS INTEGER ) * col1 * - col1 AS col1 FROM tab2 cor0
----
207511
32005
8029

query I rowsort
SELECT + + cor0.col0 + - col0 + - col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - ( col1 ) - col2 * 36 AS col1 FROM tab1 AS cor0
----
-1970
-2062
-3469

onlyif mysql # use DIV operator for integer division
query I rowsort label-1111
SELECT tab0.col0 DIV col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1111
SELECT tab0.col0 / col2 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT - - ( col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT + - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 11 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT 80 * + col0 + + col0 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT - 58 + + col0 AS col0 FROM tab1 AS cor0
----
-55
22
6

query I rowsort
SELECT ALL + col1 * - 49 * + col0 FROM tab1
----
-31360
-3822
-50960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1118
SELECT CAST( - col1 AS SIGNED ) col2 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1118
SELECT CAST ( - col1 AS INTEGER ) col2 FROM tab2
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1119
SELECT - col0 + ( - col1 ) * - CAST( NULL AS SIGNED ) * - tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1119
SELECT - col0 + ( - col1 ) * - CAST ( NULL AS INTEGER ) * - tab0.col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 51 AS col1 FROM tab0
----
51
51
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1121
SELECT DISTINCT - CAST( 3 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT - CAST ( 3 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query I rowsort
SELECT col1 * - col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1123
SELECT col1 + + col1 DIV col0 + + col0 FROM tab1 AS cor0
----
37
74
93

skipif mysql # not compatible
query I rowsort label-1123
SELECT col1 + + col1 / col0 + + col0 FROM tab1 AS cor0
----
37
74
93

query I rowsort
SELECT + col2 + - cor0.col0 + + col0 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + 87 col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
23
7
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1126
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT ALL col2 DIV col2 + ( col0 ) FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL col2 / col2 + ( col0 ) FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT + + ( + col1 ) FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 + - col2 col1 FROM tab0 AS cor0
----
-3
-35
-84

query I rowsort
SELECT + - 89 * + col0 + 60 AS col2 FROM tab2 AS cor0
----
-563
-6882
-6971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col2 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1132
SELECT ALL col2 DIV col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL col2 / col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - col1 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1134
SELECT ALL - + 93 DIV col2 + + 55 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2969
3134
5280

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - + 93 / col2 + + 55 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2969
3134
5280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - ( - ( col1 ) ) col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL col1 * + 21 FROM tab1 cor0
----
210
273
546

query I rowsort
SELECT - + col0 * - col1 * - cor0.col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1138
SELECT DISTINCT - col2 + CAST( col0 AS SIGNED ) col2 FROM tab2 cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - col2 + CAST ( col0 AS INTEGER ) col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL col0 * - ( col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 + CAST ( - 33 AS REAL ) FROM tab2 AS cor0
----
-6
-7
5

query I rowsort
SELECT DISTINCT - col2 * + col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - + col0 + + 33 * - col0 AS col1 FROM tab1 cor0
----
-102
-2176
-2720

onlyif mysql # use DIV operator for integer division
query I rowsort label-1143
SELECT - col2 DIV + CAST( - col0 * col0 AS SIGNED ) + ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1143
SELECT - col2 / + CAST ( - col0 * col0 AS INTEGER ) + ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col1 * ( + col2 ) * + cor0.col2 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT ALL + tab1.col2 + + col0 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT - 32 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

onlyif mysql # use DIV operator for integer division
query I rowsort label-1147
SELECT ALL + col0 DIV - col0 + + col2 DIV - col0 FROM tab2
----
-1
-1
-4

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL + col0 / - col0 + + col2 / - col0 FROM tab2
----
-1
-1
-4

query I rowsort
SELECT DISTINCT - 74 * + col1 + + col1 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT DISTINCT col1 + + cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col0 * - 68 FROM tab2 AS cor0
----
-476
-5304
-5372

query I rowsort
SELECT - - col1 * - 10 - cor0.col0 FROM tab1 AS cor0
----
-164
-210
-263

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * + 15 + - col0 + cor0.col0 FROM tab0 cor0
----
1335
360
525

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL - col2 - + col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + ( - col1 ) + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT col2 * + col1 * col0 - 82 FROM tab0 AS cor0
----
3313
664036
68030

query I rowsort
SELECT + ( 94 ) + + cor0.col2 FROM tab1 AS cor0
----
148
151
190

query I rowsort
SELECT ALL - col1 * - ( - tab0.col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - tab2.col1 * 27 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT 44 + + col1 AS col1 FROM tab1 AS cor0
----
54
57
70

query I rowsort
SELECT DISTINCT col1 * 24 + cor0.col2 * col1 AS col2 FROM tab0 cor0
----
2425
4902
9646

query I rowsort
SELECT ALL + col0 * col0 - + col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT col2 + - 44 + col2 * - 57 FROM tab1
----
-3068
-3236
-5420

query I rowsort
SELECT - + 90 * col1 - col0 FROM tab0 AS cor0
----
-7764
-8279
-8765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * col0 + col0 * ( + cor0.col1 ) * - col1 col0 FROM tab1 AS cor0
----
-10752
-18960
-2232

query I rowsort
SELECT - ( + ( col1 ) ) * col0 + - ( + col2 * + col1 + col0 ) AS col1 FROM tab1
----
-1274
-1485
-2368

query I rowsort
SELECT col2 + col0 * col2 + col0 FROM tab0
----
71
7469
849

query I rowsort
SELECT + col2 * + tab2.col0 + - col2 + 81 FROM tab2
----
2083
243
3045

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col2 FROM tab0, tab1, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 0982dc7d0db8187bbb77550a76766104

query I rowsort
SELECT ( col2 ) * + tab1.col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL col1 + cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT 72 + - col0 DIV 80 AS col0 FROM tab1 AS cor0
----
71
72
72

skipif mysql # not compatible
query I rowsort label-1173
SELECT 72 + - col0 / 80 AS col0 FROM tab1 AS cor0
----
71
72
72

query I rowsort
SELECT + col0 + + tab1.col0 * + col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT + col2 * - col0 + - col0 + + ( 28 ) * col1 FROM tab0
----
-4839
1592
2646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + - col2 col2 FROM tab0
----
-45
36
4

query I rowsort
SELECT 63 + 61 AS col0 FROM tab0
----
124
124
124

query I rowsort
SELECT DISTINCT + col1 * col0 * + col0 + col1 FROM tab0
----
118922
49622
720902

query I rowsort
SELECT ALL cor0.col2 * 56 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 75c2689f4747c476354348f85d7e2023

query I rowsort
SELECT - 96 + col0 FROM tab1
----
-16
-32
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1181
SELECT ALL 31 + + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL 31 + + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 92 + - col1 FROM tab0 AS cor0
----
-178
-183
-189

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

query I rowsort
SELECT ALL - col1 - col0 * col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - col1 * - cor0.col2 + - col0 FROM tab0 AS cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 24 + col2 col0 FROM tab0 cor0
----
-23
58
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1187
SELECT 18 DIV col2 + - col0 AS col2 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1187
SELECT 18 / col2 + - col0 AS col2 FROM tab1 cor0
----
-3
-64
-80

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 625894990bdb8a9e41da1ea8f0cabaa3

query I rowsort
SELECT ALL - + col1 + 41 * - col0 FROM tab0 cor0
----
-1070
-1532
-3740

onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT cor0.col1 + + col2 DIV col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-1190
SELECT cor0.col1 + + col2 / col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT DISTINCT col0 + ( - 8 ) AS col2 FROM tab2 cor0
----
-1
70
71

query I rowsort
SELECT ALL + - col1 + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT ALL + col2 - - col2 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1195
SELECT DISTINCT ( + 9 ) DIV - col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT ( + 9 ) / - col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 97 AS REAL ) * cor0.col1 AS col0 FROM tab2 cor0
----
1649
3007
5723

query I rowsort
SELECT DISTINCT - 69 + + 0 * col0 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + 22 * + col2 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT ALL col2 + col0 * cor0.col1 * 74 + + col1 FROM tab1 AS cor0
----
47427
5852
77069

query I rowsort
SELECT ALL + + ( - 64 ) AS col2 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT + + cor0.col0 + - col1 FROM tab2 cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1202
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1203
SELECT DISTINCT - + CAST( 61 AS SIGNED ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT - + CAST ( 61 AS INTEGER ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT ALL - ( 12 ) + col1 AS col0 FROM tab0 AS cor0
----
74
79
85

query I rowsort
SELECT col0 + cor0.col2 + + 83 FROM tab2 AS cor0
----
117
187
200

query I rowsort
SELECT ALL col1 * col2 * + col1 - - col0 FROM tab2 AS cor0
----
11061
25954
90584

query I rowsort
SELECT DISTINCT col2 * 89 FROM tab2 AS cor0
----
2314
2403
3382

query I rowsort
SELECT col0 * + col2 - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT col0 - ( col1 * col1 ) AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT + + 21 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT col0 * - ( - ( col0 ) ) FROM tab0
----
1225
576
7921

query I rowsort
SELECT col1 * - 86 AS col1 FROM tab1
----
-1118
-2236
-860

query I rowsort
SELECT 72 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1214
SELECT col2 + col0 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT col2 + col0 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 + ( tab2.col0 ) ) col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 12 FROM tab2, tab1, tab0 cor0
----
-12

query I rowsort
SELECT DISTINCT - col2 * col1 * ( col2 ) + - cor0.col0 * col2 AS col0 FROM tab2 cor0
----
-22788
-27550
-41912

query I rowsort
SELECT + 80 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT - + 26 * col0 AS col1 FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT - ( - col1 ) + - 32 * + 52 AS col0 FROM tab0 AS cor0
----
-1567
-1573
-1578

query I rowsort
SELECT ALL - 70 + - col0 AS col2 FROM tab0 cor0
----
-105
-159
-94

query I rowsort
SELECT ALL + col1 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + 31 + + 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT + 47 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT DISTINCT ( col0 * col1 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + 82 * 30 * col0 AS col2 FROM tab1
----
157440
196800
7380

query I rowsort
SELECT 63 * + col1 FROM tab0
----
5418
5733
6111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1228
SELECT + CAST( + col0 AS SIGNED ) * - tab2.col0 FROM tab2
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-1228
SELECT + CAST ( + col0 AS INTEGER ) * - tab2.col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL - ( col1 ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - 63 * 85 FROM tab2 AS cor0
----
-5355
-5355
-5355

query I rowsort
SELECT ( col2 ) * + 86 AS col1 FROM tab1 cor0
----
4644
4902
8256

query I rowsort
SELECT cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT 50 * + col1 AS col0 FROM tab2
----
1550
2950
850

query I rowsort
SELECT col0 + ( - 77 ) + tab1.col2 AS col1 FROM tab1
----
-20
44
99

query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 + tab0.col0 FROM tab0
----
1137
6902
71

query I rowsort
SELECT col1 * 89 - - col0 FROM tab2
----
1592
2766
5329

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1237
SELECT ALL - col2 + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL - col2 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT - ( + 57 ) + - cor0.col1 * 9 AS col2 FROM tab2 AS cor0
----
-210
-336
-588

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

query I rowsort
SELECT DISTINCT + + 96 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT DISTINCT + col2 * 77 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT ALL - + 79 * 4 AS col1 FROM tab2 cor0
----
-316
-316
-316

query I rowsort
SELECT + col0 * 46 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT ALL + 60 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT - 91 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
2366
2457
3458

query I rowsort
SELECT + 60 + ( col2 ) FROM tab2 AS cor0
----
86
87
98

query I rowsort
SELECT ALL + col2 * + 7 AS col2 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT DISTINCT + - ( + 90 ) FROM tab2 AS cor0
----
-90

query I rowsort
SELECT + 10 + col1 AS col2 FROM tab0 AS cor0
----
101
107
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1251
SELECT ALL + col1 DIV col1 col1 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1251
SELECT ALL + col1 / col1 col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL + + col0 * col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 39 AS col1 FROM tab0 cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT - 39 + + 78 FROM tab2 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 26 * - col1 col2 FROM tab2 cor0
----
-1534
-442
-806

query I rowsort
SELECT + + col1 + + col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL - 98 + + col2 AS col0 FROM tab2 AS cor0
----
-60
-71
-72

query I rowsort
SELECT DISTINCT + col1 + col0 * ( + ( + col2 ) ) + 94 AS col1 FROM tab0 cor0
----
226
7483
972

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab1, tab0 AS cor0
----
16

query I rowsort
SELECT - 78 + + col1 AS col2 FROM tab0 AS cor0
----
13
19
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT ALL + ( - cor0.col1 ) DIV col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL + ( - cor0.col1 ) / col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
84
90

query I rowsort
SELECT DISTINCT + 5 * col0 + 65 FROM tab0 cor0
----
185
240
510

query I rowsort
SELECT DISTINCT + 27 * col2 + - 28 FROM tab1 AS cor0
----
1430
1511
2564

query I rowsort
SELECT cor0.col1 + - tab0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b35213e9a51dcfaaad8504c443dca527

query I rowsort
SELECT DISTINCT + col0 * + 24 * + col0 AS col2 FROM tab2 AS cor0
----
1176
146016
149784

query I rowsort
SELECT DISTINCT + col0 + + col2 * - 71 * + col0 AS col2 FROM tab1 cor0
----
-11499
-258944
-545200

query I rowsort
SELECT ALL - col1 - - 12 AS col0 FROM tab1 AS cor0
----
-1
-14
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT ALL col0 * col2 + col0 * col1 DIV cor0.col0 FROM tab0 AS cor0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL col0 * col2 + col0 * col1 / cor0.col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - col0 * 10 * col2 + - col2 FROM tab1 AS cor0
----
-1674
-36537
-76896

query I rowsort
SELECT DISTINCT + cor0.col2 + 61 AS col2 FROM tab1 cor0
----
115
118
157

query I rowsort
SELECT DISTINCT + cor0.col2 * 24 + + col0 * + col2 FROM tab2 AS cor0
----
2652
3914
837

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + + col0 * col2 * 32 FROM tab0 AS cor0
----
-8289
17948
225255

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - cor0.col0 - - ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1276
SELECT DISTINCT + - col0 - CAST( - col2 + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT + - col0 - CAST ( - col2 + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - - cor0.col0 + - ( + cor0.col1 ) FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - col1 + + cor0.col2 * col2 FROM tab2 cor0
----
1427
617
698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1279
SELECT ALL CAST( NULL AS SIGNED ) * - ( col1 * - 77 ) + col0 / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL CAST ( NULL AS INTEGER ) * - ( col1 * - 77 ) + col0 / + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - 3 FROM tab1
----
51
54
93

query I rowsort
SELECT + + ( - col0 ) * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - + col1 * col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + 69 AS col0 FROM tab1
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col2 FROM tab0
----
-69
-69
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1285
SELECT ALL 71 * - col1 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL 71 * - col1 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 * - col0 * cor0.col2 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + + 70 AS col1 FROM tab2 AS cor0
----
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1288
SELECT ( + 37 ) DIV col0 FROM tab2 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1288
SELECT ( + 37 ) / col0 FROM tab2 cor0
----
0
0
5

query I rowsort
SELECT ALL - - ( + 56 ) * + col0 FROM tab0 cor0
----
1344
1960
4984

query I rowsort
SELECT DISTINCT + - 84 AS col1 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT ALL - + col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + ( + col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1293
SELECT ALL + - col2 DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL + - col2 / - cor0.col0 FROM tab2 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + col0 col2 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-1295
SELECT - 80 DIV - cor0.col0 FROM tab2 AS cor0
----
1
1
11

skipif mysql # not compatible
query I rowsort label-1295
SELECT - 80 / - cor0.col0 FROM tab2 AS cor0
----
1
1
11

query I rowsort
SELECT + ( 77 ) * - col0 FROM tab1 AS cor0
----
-231
-4928
-6160

query I rowsort
SELECT DISTINCT + + cor0.col1 + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - cor0.col2 * + col1 * - 67 AS col2 FROM tab1 AS cor0
----
38190
83616
94068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT + - col2 + col2 * - col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT 40 * - cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2293d4f2bd63df3c319ee533bf760216

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( + col0 AS REAL ) col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1303
SELECT + CAST( tab2.col1 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif mysql # not compatible
query I rowsort label-1303
SELECT + CAST ( tab2.col1 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col0 * - ( + col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col0 * 95 AS col1 FROM tab0
----
2280
3325
8455

onlyif mysql # use DIV operator for integer division
query I rowsort label-1306
SELECT DISTINCT col0 + + col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT col0 + + col0 / + col0 AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL 90 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT - 43 AS col2 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL - 91 * col0 + cor0.col2 * col2 FROM tab0 AS cor0
----
-1095
-1375
-3184

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1311
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 83 * - col1 AS col2 FROM tab2
----
1411
2573
4897

query I rowsort
SELECT ALL 9 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + + cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 * - cor0.col2 AS col2 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT cor0.col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - 77 AS col0 FROM tab0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 * + col2 col1 FROM tab0
----
132
328
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1319
SELECT col2 DIV + col2 + col0 * - col0 FROM tab0 cor0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-1319
SELECT col2 / + col2 + col0 * - col0 FROM tab0 cor0
----
-1224
-575
-7920

query I rowsort
SELECT - col2 * col0 + 39 * - col1 FROM tab0 AS cor0
----
-10847
-3818
-4146

query I rowsort
SELECT + - col1 * + 52 FROM tab2 AS cor0
----
-1612
-3068
-884

onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT + col2 DIV + 29 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1322
SELECT + col2 / + 29 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT - col1 + - ( 45 ) * col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT - cor0.col2 + 9 * - col1 FROM tab0 AS cor0
----
-807
-874
-901

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1325
SELECT DISTINCT + col1 * + col1 + CAST( NULL AS SIGNED ) / - col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT + col1 * + col1 + CAST ( NULL AS INTEGER ) / - col1 FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT DISTINCT cor0.col2 DIV cor0.col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT cor0.col2 / cor0.col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + - ( cor0.col0 ) * 82 FROM tab1 AS cor0
----
-246
-5248
-6560

query I rowsort
SELECT DISTINCT + + 54 AS col0 FROM tab1 AS cor0
----
54

query I rowsort
SELECT + col0 + - 22 AS col2 FROM tab2
----
-15
56
57

query I rowsort
SELECT 24 * col2 FROM tab0
----
1968
24
792

query I rowsort
SELECT ALL col1 + + tab1.col2 * col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - tab0.col2 - - col1 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * - ( - ( col2 ) ) col1 FROM tab0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + ( 16 + - col2 ) col1 FROM tab2
----
16
16
16

query I rowsort
SELECT ALL - + 96 + col0 + + 32 FROM tab1 AS cor0
----
-61
0
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT DISTINCT + col0 * col0 + - col2 DIV - col1 col1 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + col0 * col0 + - col2 / - col1 col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1337
SELECT - CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1337
SELECT - CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col1 * + col0 + - col0 AS col0 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - 47 * col0 - + ( 1 ) FROM tab0 AS cor0
----
-1129
-1646
-4184

query I rowsort
SELECT - tab1.col2 * 97 - 97 FROM tab1
----
-5335
-5626
-9409

query I rowsort
SELECT col1 * 17 - - col0 FROM tab0
----
1486
1636
1684

query I rowsort
SELECT ALL - 24 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT col2 * col1 * + col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT - 67 FROM tab1, tab2 AS cor0
----
-67

query I rowsort
SELECT - 81 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT ALL col2 + ( tab0.col0 + + col0 ) AS col0 FROM tab0
----
260
71
81

query I rowsort
SELECT + + col2 * - col2 + 28 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-2891
-3285
-9268

query I rowsort
SELECT DISTINCT - col1 * col1 + 70 FROM tab1
----
-30
-606
-99

query I rowsort
SELECT ALL - ( 49 ) * + col2 AS col1 FROM tab1 AS cor0
----
-2646
-2793
-4704

onlyif mysql # use DIV operator for integer division
query I rowsort label-1351
SELECT ALL - ( col1 ) DIV col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL - ( col1 ) / col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - 36 AS col0 FROM tab1
----
-36
-36
-36

query I rowsort
SELECT + 45 * - cor0.col0 FROM tab1 cor0
----
-135
-2880
-3600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 50 col2 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT DISTINCT + col1 * col0 * + col1 FROM tab1 cor0
----
13520
2028
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + col1 * cor0.col2 col1 FROM tab0 AS cor0
----
168
2909
7533

query I rowsort
SELECT ALL + 22 - 2 AS col2 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 AS col1 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - - ( - col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + 28 * + 95 FROM tab1 AS cor0
----
2660
2660
2660

query I rowsort
SELECT DISTINCT - ( col0 ) * + col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col0 * tab1.col0 * col2 FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT - 85 DIV tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e1181c08f3ef5542665cac20ee2cc5f8

skipif mysql # not compatible
query I rowsort label-1364
SELECT - 85 / tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e1181c08f3ef5542665cac20ee2cc5f8

query I rowsort
SELECT ( + col0 * + col0 ) AS col0 FROM tab2
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1366
SELECT + CAST( NULL AS SIGNED ) + + ( col0 + - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1366
SELECT + CAST ( NULL AS INTEGER ) + + ( col0 + - col0 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1367
SELECT + CAST( 18 AS SIGNED ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1367
SELECT + CAST ( 18 AS INTEGER ) / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1368
SELECT - 91 * col1 DIV col2 FROM tab0 AS cor0
----
-100
-237
-8827

skipif mysql # not compatible
query I rowsort label-1368
SELECT - 91 * col1 / col2 FROM tab0 AS cor0
----
-100
-237
-8827

query I rowsort
SELECT DISTINCT - + col2 * - 54 FROM tab0 cor0
----
1782
4428
54

query I rowsort
SELECT DISTINCT - - 37 AS col0 FROM tab0 AS cor0
----
37

query I rowsort
SELECT ALL + 40 * + col0 FROM tab2 cor0
----
280
3120
3160

query I rowsort
SELECT ALL + - 61 * col2 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT ALL - col0 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT DISTINCT + col1 * cor0.col0 DIV + col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT + col1 * cor0.col0 / + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-1376
SELECT - - col2 + col0 DIV cor0.col1 col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1376
SELECT - - col2 + col0 / cor0.col1 col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL 27 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL - 55 AS col1 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT + 12 * - col0 AS col0 FROM tab1 AS cor0
----
-36
-768
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT ALL col2 DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL col2 / col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1381
SELECT DISTINCT tab1.col2 DIV + col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT tab1.col2 / + col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - + col0 + - ( col2 ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + - col2 * - col1 - ( col2 ) AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL - + col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - - col2 + - 10 * - 75 + col2 AS col2 FROM tab0 AS cor0
----
752
816
914

query I rowsort
SELECT ALL cor0.col0 * 14 FROM tab2 AS cor0
----
1092
1106
98

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + + col0 + - 33 * - 98 FROM tab0 cor0
----
3258
3269
3323

query I rowsort
SELECT DISTINCT col2 + ( col2 + + col2 ) * + col2 FROM tab1 AS cor0
----
18528
5886
6555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 * col1 + col1 * - col0 col1 FROM tab2 AS cor0
----
25730
85904
9639

query I rowsort
SELECT - col2 + ( + col1 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1392
SELECT col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1392
SELECT col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 39 + ( col1 ) FROM tab2 cor0
----
304
3098
3101

query I rowsort
SELECT DISTINCT + - col1 + - col1 + col0 AS col0 FROM tab0 AS cor0
----
-148
-159
-93

query I rowsort
SELECT col2 + col1 * - 49 + + ( col1 * col1 ) FROM tab2
----
-506
-531
616

query I rowsort
SELECT DISTINCT + + col1 + col1 * + col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1397
SELECT ALL col2 + - CAST( NULL AS SIGNED ) * + ( - col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1397
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) * + ( - col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + ( + cor0.col2 ) * - col1 * cor0.col1 AS col2 FROM tab2 cor0
----
-10944
-25920
-90480

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT col2 * - ( + tab2.col0 + + col2 ) FROM tab2
----
-2704
-4446
-918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( + 68 ) + col0 * col2 + + col0 col0 FROM tab1
----
-164
-3507
1232

query I rowsort
SELECT + col1 + - 33 + 24 AS col0 FROM tab2
----
22
50
8

query I rowsort
SELECT - col1 + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT 90 * col1 FROM tab1
----
1170
2340
900

query I rowsort
SELECT - + col1 + cor0.col2 AS col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT cor0.col1 * - 46 FROM tab1, tab1 cor0
----
-1196
-460
-598

query I rowsort
SELECT - cor0.col2 + ( col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - col0 + - col2 ) * - ( + col1 + col2 ) FROM tab1
----
-19184
-4560
-8107

query I rowsort
SELECT + ( 41 ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT - 23 - + 32 FROM tab0 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + ( col1 ) * col2 + + 67 FROM tab1 AS cor0
----
1315
1471
637

query I rowsort
SELECT ALL - col1 * + 12 FROM tab0 AS cor0
----
-1032
-1092
-1164

query I rowsort
SELECT ALL + 96 * col0 AS col1 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT col0 * + ( col0 ) + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * - cor0.col0 col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - + col1 * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) * - col2 * + col2 + - col2 * - col2 FROM tab2
----
-112632
-4374
-52052

query I rowsort
SELECT - col0 * + col1 + + 70 * col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
-910
408
5429

query I rowsort
SELECT 6 * col1 * + col0 + + col2 AS col2 FROM tab2 AS cor0
----
1329
27638
8096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * col2 + col0 col2 FROM tab0 AS cor0
----
-26112
-598347
0

query I rowsort
SELECT DISTINCT 16 + col1 * 81 FROM tab2 AS cor0
----
1393
2527
4795

query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 * + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1424
SELECT - - col0 DIV + col2 - col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3649
7680

skipif mysql # not compatible
query I rowsort label-1424
SELECT - - col0 / + col2 - col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3649
7680

query I rowsort
SELECT + cor0.col1 + + col2 + col1 FROM tab0 AS cor0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT - col1 DIV col1 - 5 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-1426
SELECT - col1 / col1 - 5 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT 33 * cor0.col2 * 45 FROM tab1 AS cor0
----
142560
80190
84645

query I rowsort
SELECT col1 * + 10 * + col0 FROM tab0 AS cor0
----
20640
33950
80990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - cor0.col2 * - 83 FROM tab2 AS cor0
----
2158
2241
3154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 0 * 21 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - cor0.col0 * + 75 AS col1 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT ( - ( cor0.col0 ) ) + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 61 * col1 AS col0 FROM tab0 AS cor0
----
173118
455182
5917

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab2, tab1, tab2 AS cor0
----
19

query I rowsort
SELECT ALL - ( + col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * col1 col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + 31 AS col2 FROM tab2
----
31
31
31

query I rowsort
SELECT 94 * col2 AS col1 FROM tab2 AS cor0
----
2444
2538
3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT 49 DIV - ( + col0 * ( - col0 ) + tab2.col0 ) AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1440
SELECT 49 / - ( + col0 * ( - col0 ) + tab2.col0 ) AS col2 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 + - 56 col2 FROM tab2 AS cor0
----
20
20
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1442
SELECT + cor1.col1 + CAST( - 51 AS SIGNED ) * cor1.col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to f74edbb2c01256f2300c17c9f06f84eb

skipif mysql # not compatible
query I rowsort label-1442
SELECT + cor1.col1 + CAST ( - 51 AS INTEGER ) * cor1.col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to f74edbb2c01256f2300c17c9f06f84eb

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - col1 * - cor0.col0 + + col1 + + col1 FROM tab2 AS cor0
----
1377
279
4720

query I rowsort
SELECT DISTINCT + col0 + - col0 * cor0.col1 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + 60 + - col0 * col1 FROM tab1 AS cor0
----
-18
-580
-980

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab2, tab1 AS cor0
----
-30

query I rowsort
SELECT + cor0.col0 * - 45 + - col1 FROM tab1 AS cor0
----
-161
-2890
-3613

query I rowsort
SELECT ALL ( + 51 ) * + cor0.col2 FROM tab2 AS cor0
----
1326
1377
1938

query I rowsort
SELECT ALL 30 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT DISTINCT - + cor0.col0 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT - + cor0.col0 / col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1453
SELECT ALL col0 + col1 DIV - col1 + - ( - col1 ) * 87 * - col1 FROM tab1 AS cor0
----
-14624
-58810
-8637

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL col0 + col1 / - col1 + - ( - col1 ) * 87 * - col1 FROM tab1 AS cor0
----
-14624
-58810
-8637

query I rowsort
SELECT - 45 * + 41 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 49907be01c11a5095ea112822c5298fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT col1 + + 80 FROM tab2
----
111
139
97

query I rowsort
SELECT 14 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1458
SELECT DISTINCT - + col2 * - CAST( NULL AS DECIMAL ) * - 47 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT - + col2 * - CAST ( NULL AS REAL ) * - 47 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col0 * ( - cor0.col0 * col0 ) FROM tab1 cor0
----
262144
27
512000

query I rowsort
SELECT DISTINCT - col0 * - 44 FROM tab1 AS cor0
----
132
2816
3520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1461
SELECT - col0 * CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-1461
SELECT - col0 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + tab1.col0 + + col2 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT col1 + col0 * ( + col2 ) + col0 * - 60 AS col2 FROM tab0
----
-1968
-562
2049

query I rowsort
SELECT ALL + 19 + - tab0.col0 AS col2 FROM tab0
----
-16
-5
-70

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - col1 - col0 AS col2 FROM tab1
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + 95 * 81 col0 FROM tab1 cor0
----
7698
7759
7775

query I rowsort
SELECT DISTINCT - col1 + col2 * ( col2 ) AS col0 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT ALL - cor1.col1 FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1470
SELECT ALL col0 - + col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL col0 - + col2 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT col2 * cor0.col1 + - col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL + col1 * + col2 + col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1473
SELECT DISTINCT + col2 * CAST( col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT + col2 * CAST ( col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT - - col2 + 31 DIV + 13 FROM tab0 AS cor0
----
3
35
84

skipif mysql # not compatible
query I rowsort label-1474
SELECT - - col2 + 31 / + 13 FROM tab0 AS cor0
----
3
35
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT col0 DIV 63 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-168
-676
-99

skipif mysql # not compatible
query I rowsort label-1475
SELECT col0 / 63 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-168
-676
-99

query I rowsort
SELECT DISTINCT + tab2.col2 + - 38 * ( col1 ) FROM tab2
----
-1151
-2216
-608

query I rowsort
SELECT + - cor0.col1 + + ( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL col1 * col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL - col2 + - 89 + col1 AS col2 FROM tab0
----
-36
-80
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1480
SELECT + - 16 DIV + col2 + col0 DIV + col0 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1480
SELECT + - 16 / + col2 + col0 / + col0 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - ( + cor0.col2 ) * + col2 + - col2 * + col1 FROM tab0 cor0
----
-1749
-738
-96

query I rowsort
SELECT ALL - ( cor0.col1 ) * - col1 + - 24 - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1393
2056
646

query I rowsort
SELECT DISTINCT col1 * col2 + col2 * 12 + + ( col0 ) FROM tab1 AS cor0
----
1318
2055
2480

query I rowsort
SELECT 49 * 87 FROM tab0 AS cor0
----
4263
4263
4263

query I rowsort
SELECT ALL + col2 - + 25 FROM tab0 AS cor0
----
-24
57
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1486
SELECT + - col1 * + col0 + col1 + - CAST( col2 * col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-214
-4278
-8707

skipif mysql # not compatible
query I rowsort label-1486
SELECT + - col1 * + col0 + col1 + - CAST ( col2 * col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-214
-4278
-8707

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1487
SELECT DISTINCT + - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL 99 * col2 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT ALL - - 23 + + 58 * - col0 AS col0 FROM tab0 AS cor0
----
-1369
-2007
-5139

query I rowsort
SELECT - + ( + col2 ) * - col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 95 + col1 FROM tab0 AS cor0
----
-4
-9
2

query I rowsort
SELECT ALL + 6 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT + 29 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1493
SELECT + 29 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + - col1 * col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT ALL + col2 + - tab2.col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT col2 + col2 * col0 * col1 AS col2 FROM tab0
----
3396
664200
68145

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

query I rowsort
SELECT DISTINCT + col2 + - col1 + col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT ALL col2 + col0 DIV ( 14 ) AS col1 FROM tab2 AS cor0
----
27
31
43

skipif mysql # not compatible
query I rowsort label-1499
SELECT ALL col2 + col0 / ( 14 ) AS col1 FROM tab2 AS cor0
----
27
31
43

query I rowsort
SELECT + + 53 * - col1 FROM tab2 AS cor0
----
-1643
-3127
-901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 + col0 col0 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-1502
SELECT - + col1 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-1502
SELECT - + col1 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT DISTINCT 15 DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT 15 / - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 25 + col2 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT DISTINCT 94 * col2 + + col2 FROM tab2 AS cor0
----
2470
2565
3610

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL + - col2 * 79 AS col2 FROM tab0 cor0
----
-2607
-6478
-79

query I rowsort
SELECT + + col2 * + col2 * - col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + + col1 - ( - col0 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL col2 + + ( - col0 * col2 ) AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - + col2 + col2 * + cor0.col2 AS col2 FROM tab1 cor0
----
2862
3192
9120

query I rowsort
SELECT + col1 * col1 + - col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT col2 * + col0 + - cor0.col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT ALL col1 + + col0 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - tab2.col0 AS col2 FROM tab2, tab1 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col1 * - col2 + tab1.col2 FROM tab1
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * col1 * + col2 col1 FROM tab1 AS cor0
----
119712
32433
75762

query I rowsort
SELECT ALL + col0 + col0 * + tab2.col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT col2 + col1 + + col2 AS col0 FROM tab1
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-1522
SELECT DISTINCT - col1 DIV col1 col2 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT - col1 / col1 col2 FROM tab0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + tab2.col1 )
----

query I rowsort
SELECT + + col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - + col1 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT col0 * + col2 * + col1 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col0 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT col0 + - col0 * col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + ( + col2 * + col0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT + cor0.col0 - - col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + - cor0.col2 * + col2 * - col2 + + col1 + col2 FROM tab1 AS cor0
----
157544
185260
884845

query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col0 - col2 * - col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-1534
SELECT tab0.col2 DIV tab0.col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1534
SELECT tab0.col2 / tab0.col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + col1 * tab2.col1 * - col2 + col2 * - col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT ALL tab0.col1 AS col1 FROM tab0 WHERE NULL <> col0 / col2
----

query III rowsort
SELECT * FROM tab0 WHERE col1 > NULL
----

query I rowsort
SELECT ALL col2 - col2 * col0 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT col0 + col1 + tab0.col0 FROM tab0
----
134
167
269

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * - col1 * col0 NOT IN ( col2 - tab2.col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 >= col0 * col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT tab2.col2 * + col1 < col1 + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1544
SELECT ALL + ( cor0.col1 ) DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + ( cor0.col1 ) / col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 - + col2 col2 FROM tab2
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col1 * + col2 col1 FROM tab0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 85 * - col2 - col1 FROM tab0 AS cor0
----
-182
-2891
-7061

query I rowsort
SELECT ALL - col0 * col2 * 97 FROM tab1 AS cor0
----
-15714
-353856
-744960

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col2 + + col2 <> ( - col1 - + col2 * + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 IN ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT - col2 + col2 * - col1 * tab0.col2 FROM tab0
----
-611966
-93687
-98

query I rowsort
SELECT DISTINCT + col1 + col0 AS col0 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - tab1.col1 col1 FROM tab1
----
-20
-26
-52

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * col0 NOT BETWEEN cor0.col2 + - col2 * cor0.col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 < ( NULL )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE + col0 IN ( - col1 )
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( col0 * + col1 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col1 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - col0 + + col2 * col1 AS col0 FROM tab2
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col1 * - col0 AND - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1563
SELECT + col1 - col2 * col0 DIV tab2.col1 AS col2 FROM tab2
----
-159
25
25

skipif mysql # not compatible
query I rowsort label-1563
SELECT + col1 - col2 * col0 / tab2.col1 AS col2 FROM tab2
----
-159
25
25

query I rowsort
SELECT + col2 + col2 * + col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL col2 * tab1.col1 + col0 * - col2 FROM tab1
----
-3078
-6432
1242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 WHERE col2 <= col0
----
35
89

query I rowsort
SELECT col0 + - col1 * tab0.col1 * - col0 AS col0 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT - 27 * col1 FROM tab1
----
-270
-351
-702

query I rowsort
SELECT DISTINCT 5 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
5

query I rowsort
SELECT DISTINCT - col2 + + col1 + - 70 * 95 FROM tab1
----
-6678
-6697
-6733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col1 ) + col2 col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1572
SELECT - col1 * - col0 * CAST( NULL AS SIGNED ) + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT - col1 * - col0 * CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 28 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT - - col1 + col2 * - 73 + col1 AS col1 FROM tab0 cor0
----
-2237
-5804
121

query I rowsort
SELECT ALL 3 * cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
202
253
35

query I rowsort
SELECT DISTINCT - 83 * + col0 FROM tab1 cor0
----
-249
-5312
-6640

query I rowsort
SELECT cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + col2 * + col2 * + ( - 71 ) AS col1 FROM tab0 AS cor0
----
-477404
-71
-77319

query I rowsort
SELECT ALL 9 AS col2 FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort
SELECT ALL + 10 + col2 / - CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT ALL + col0 + - ( - ( + col0 ) ) * + ( + cor0.col0 * - col0 ) + - col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT DISTINCT + col1 + ( + 28 ) AS col1 FROM tab0 AS cor0
----
114
119
125

query I rowsort
SELECT - 60 * col1 + col0 FROM tab0
----
-5136
-5371
-5785

query I rowsort
SELECT ALL + 95 + - 82 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT + col1 - 97 * col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 * + 24 + col0 col0 FROM tab1 AS cor0
----
1683
1744
1760

query I rowsort
SELECT DISTINCT + col2 * + col0 * col2 + + col0 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT - - col2 - 26 AS col2 FROM tab0 AS cor0
----
-25
56
7

query I rowsort
SELECT ALL 5 FROM tab2, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col1 - col2 col1 FROM tab0 AS cor0
----
-133
-143
-262

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * col1 + + col2 AS col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab0 AS cor0
----
28

query I rowsort
SELECT ALL 2 * 14 * col2 - ( + col1 ) * col1 AS col2 FROM tab1
----
1496
2519
836

query I rowsort
SELECT DISTINCT - ( col2 ) + col0 - + col2 * - col0 * col0 FROM tab2
----
1303
158236
237199

query I rowsort
SELECT + 2 + col2 + col2 AS col0 FROM tab1 AS cor0
----
110
116
194

query I rowsort
SELECT ALL + - cor0.col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT - col1 * - col1 DIV col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1597
SELECT - col1 * - col1 / col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 * ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1599
SELECT 57 DIV col2 + + col0 col1 FROM tab0
----
25
89
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1599
SELECT 57 / col2 + + col0 col1 FROM tab0
----
25
89
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 + col1 + + tab1.col1 col1 FROM tab1
----
62
68
94

query I rowsort
SELECT - ( - 81 ) + tab0.col2 * - col2 AS col0 FROM tab0
----
-1008
-6643
80

query I rowsort
SELECT DISTINCT + ( col0 ) + + col0 + col0 AS col2 FROM tab1
----
192
240
9

query I rowsort
SELECT - ( col2 ) * + col0 - cor0.col0 * col1 AS col0 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT DISTINCT - col2 + + col2 + ( + col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + 74 + col0 AS col2 FROM tab1 cor0
----
138
154
77

query I rowsort
SELECT - + cor0.col1 * col2 + ( col1 ) AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1607
SELECT DISTINCT cor1.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT cor1.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) + col2 col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ( 33 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT 21 + col1 * 28 FROM tab2
----
1673
497
889

query I rowsort
SELECT + cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT 75 * - col1 + - col2 * + col1 AS col1 FROM tab2 cor0
----
-1921
-3162
-5959

query I rowsort
SELECT ALL + cor0.col0 + - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT col1 * + col2 + - 26 FROM tab0 cor0
----
2812
71
7436

onlyif mysql # use DIV operator for integer division
query I rowsort label-1617
SELECT 71 DIV + 80 + cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif mysql # not compatible
query I rowsort label-1617
SELECT 71 / + 80 + cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + col0 * col1 * col0 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL col1 * - ( + col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col2 + - col0 * 82 AS col0 FROM tab2
----
-547
-6370
-6440

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT cor0.col1 * 66 + - 52 AS col2 FROM tab1, tab2, tab0 AS cor0
----
5624
5954
6350

query I rowsort
SELECT - 94 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT ALL + col0 * 39 FROM tab1 cor0
----
117
2496
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col1 FROM tab2, tab2 AS cor0
----
-95

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

query I rowsort
SELECT ALL - + cor0.col1 + col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col2 + 60 AS col2 FROM tab0 AS cor0
----
142
61
93

query I rowsort
SELECT - - 46 AS col2 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + 33 + cor0.col2 AS col1 FROM tab2 AS cor0
----
59
60
71

query I rowsort
SELECT DISTINCT col2 - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-1633
SELECT DISTINCT + 78 DIV + col1 - col1 col0 FROM tab1 AS cor0
----
-23
-3
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT + 78 / + col1 - col1 col0 FROM tab1 AS cor0
----
-23
-3
-7

query I rowsort
SELECT ALL + - col0 * col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - ( + col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT DISTINCT + - 84 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + - 84 / cor0.col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT ALL + - col1 + col2 * + col0 AS col2 FROM tab2 cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col1 col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 * - col2 + + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL 11 * cor0.col2 - cor0.col2 AS col1 FROM tab1 AS cor0
----
540
570
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1642
SELECT - CAST( 28 AS SIGNED ) * col0 + 75 FROM tab0 AS cor0
----
-2417
-597
-905

skipif mysql # not compatible
query I rowsort label-1642
SELECT - CAST ( 28 AS INTEGER ) * col0 + 75 FROM tab0 AS cor0
----
-2417
-597
-905

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1643
SELECT DISTINCT CAST( + cor0.col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT CAST ( + cor0.col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + col1 - - tab1.col1 * - col2 * col2 AS col1 FROM tab1
----
-119795
-32480
-75790

query I rowsort
SELECT - col2 * - ( tab2.col0 ) AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col0 * + ( 62 ) AS col1 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT DISTINCT + 13 + cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
14
46
95

query I rowsort
SELECT + - col1 * col0 - 33 * + col1 FROM tab1 AS cor0
----
-1469
-936
-970

query I rowsort
SELECT - 52 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT - - col1 * - cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + ( col0 ) * - col2 - col1 FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT + + col1 + - 6 FROM tab1 AS cor0
----
20
4
7

query I rowsort
SELECT DISTINCT + col0 * 99 FROM tab0 AS cor0
----
2376
3465
8811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1654
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 46 * + col2 FROM tab2 cor0
----
1196
1242
1748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1657
SELECT - CAST( + col2 AS SIGNED ) * - cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

skipif mysql # not compatible
query I rowsort label-1657
SELECT - CAST ( + col2 AS INTEGER ) * - cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 * col0 col2 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT ALL - cor0.col0 + 44 FROM tab1 AS cor0
----
-20
-36
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col2 col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT 88 * + col2 AS col0 FROM tab1 AS cor0
----
4752
5016
8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 * + col1 col1 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab0 cor0
----
78
78
78

query I rowsort
SELECT - 69 * col1 + col1 * col1 FROM tab2
----
-1178
-590
-884

query I rowsort
SELECT 98 AS col2 FROM tab0 cor0
----
98
98
98

query I rowsort
SELECT ALL + + col2 + col2 * - ( + col0 ) * cor0.col1 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT ALL 73 * + col0 + col1 FROM tab1 AS cor0
----
245
4682
5853

query I rowsort
SELECT 17 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + - col1 + + 41 AS col0 FROM tab2 AS cor0
----
-18
10
24

query I rowsort
SELECT col1 + + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - cor0.col2 + 78 + - col2 * + col2 FROM tab2 AS cor0
----
-1404
-624
-678

query I rowsort
SELECT ALL + col2 * + col1 + - ( col0 * ( col0 ) + - col2 ) AS col1 FROM tab2 cor0
----
-4524
-5557
815

query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL - - col1 + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + - col0 + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 * - tab2.col2 * + 33 + 97 col2 FROM tab2
----
22405
24154
47749

query I rowsort
SELECT ALL + ( col2 + col2 ) FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-1678
SELECT + tab2.col0 DIV 11 - col1 AS col2 FROM tab2
----
-10
-31
-52

skipif mysql # not compatible
query I rowsort label-1678
SELECT + tab2.col0 / 11 - col1 AS col2 FROM tab2
----
-10
-31
-52

query I rowsort
SELECT DISTINCT - col1 * 36 + - col0 AS col2 FROM tab2 AS cor0
----
-1123
-2202
-691

query I rowsort
SELECT - 74 + 89 * col2 AS col0 FROM tab1 AS cor0
----
4732
4999
8470

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - col0 + - 80 AS col1 FROM tab0 AS cor0
----
-104
-115
-169

query I rowsort
SELECT + 35 AS col2 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT 85 AS col0 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT ALL + 20 * + col0 AS col0 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT ALL 72 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1872
1944
2736

onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT DISTINCT cor0.col0 + - col2 DIV - 40 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT cor0.col0 + - col2 / - 40 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - 27 + col2 * + ( 44 ) FROM tab1 cor0
----
2349
2481
4197

query I rowsort
SELECT ALL + col1 + + col0 * col0 * col2 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT DISTINCT + + 65 * + col1 AS col2 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT + ( - 29 ) + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1372
-246
-4631

query I rowsort
SELECT DISTINCT + + col2 + 32 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT DISTINCT + - col2 * + 54 FROM tab1 cor0
----
-2916
-3078
-5184

query I rowsort
SELECT 14 + + 57 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
79

query I rowsort
SELECT col2 + + col0 + - 23 AS col0 FROM tab1
----
153
34
98

query I rowsort
SELECT ALL + - col1 + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + col0 * - 34 - + col2 FROM tab1 AS cor0
----
-156
-2233
-2816

query I rowsort
SELECT ALL ( - col2 + col1 ) * - col1 FROM tab1
----
1079
470
728

query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - + col1 - 47 AS col2 FROM tab2 AS cor0
----
-106
-64
-78

query I rowsort
SELECT DISTINCT 41 + + col2 AS col1 FROM tab2 AS cor0
----
67
68
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1703
SELECT ALL + CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 37 AS col2 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT DISTINCT ( - 99 ) DIV + col1 FROM tab2 AS cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT ( - 99 ) / + col1 FROM tab2 AS cor0
----
-1
-3
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1707
SELECT - CAST( NULL AS SIGNED ) * col1 + col1 * 32 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-1707
SELECT - CAST ( NULL AS INTEGER ) * col1 + col1 * 32 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 25 * + cor0.col2 FROM tab2 cor0
----
-650
-675
-950

query I rowsort
SELECT DISTINCT - col0 * 45 - col0 * ( col0 * + col0 ) FROM tab1 AS cor0
----
-162
-265024
-515600

onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT ALL - 29 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - 29 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - 6 + - cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 75d0f659897096e543202c0f2b5e5076

onlyif mysql # use DIV operator for integer division
query I rowsort label-1713
SELECT DISTINCT 92 DIV + col1 AS col2 FROM tab2
----
1
2
5

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT 92 / + col1 AS col2 FROM tab2
----
1
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * 60 - - col2 col0 FROM tab2
----
1058
1887
3566

query I rowsort
SELECT 33 * col0 * col2 AS col1 FROM tab0 cor0
----
1155
240834
26136

onlyif mysql # use DIV operator for integer division
query I rowsort label-1716
SELECT - col0 * col1 DIV 40 FROM tab1 AS cor0
----
-1
-16
-26

skipif mysql # not compatible
query I rowsort label-1716
SELECT - col0 * col1 / 40 FROM tab1 AS cor0
----
-1
-16
-26

query I rowsort
SELECT DISTINCT + ( col0 ) + 4 * - col2 AS col2 FROM tab0 AS cor0
----
-108
-239
31

query I rowsort
SELECT DISTINCT + 88 * + col1 AS col1 FROM tab1 cor0
----
1144
2288
880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT DISTINCT + 78 * col1 DIV - ( 73 ) AS col1 FROM tab2 AS cor0
----
-18
-33
-63

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT + 78 * col1 / - ( 73 ) AS col1 FROM tab2 AS cor0
----
-18
-33
-63

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col2 AS col0 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT + col2 * 63 * 93 AS col1 FROM tab0 AS cor0
----
193347
480438
5859

query I rowsort
SELECT ALL + cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1723
SELECT + col1 DIV 23 AS col1 FROM tab0 AS cor0
----
3
3
4

skipif mysql # not compatible
query I rowsort label-1723
SELECT + col1 / 23 AS col1 FROM tab0 AS cor0
----
3
3
4

query I rowsort
SELECT - col2 + cor0.col2 * 69 - col2 * 21 AS col0 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT + - col2 * + ( 67 ) + col2 - 16 AS col0 FROM tab0 cor0
----
-2194
-5428
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1726
SELECT DISTINCT + - col2 DIV - cor0.col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + - col2 / - cor0.col0 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1727
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) + - 59 * col2 * + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) + - 59 * col2 * + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * ( - col1 + - col2 * + col1 ) FROM tab1 AS cor0
----
-16393
-37180
-5800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 * 3 col2 FROM tab1
----
27648
8748
9747

query I rowsort
SELECT ALL - col1 * - col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL + col1 + 47 AS col2 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT 57 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT col0 * 21 AS col0 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT DISTINCT + 7 FROM tab2
----
7

query I rowsort
SELECT - 84 * - cor0.col2 - col0 FROM tab0 AS cor0
----
2748
49
6799

query I rowsort
SELECT ALL + col2 + 96 - + col1 AS col2 FROM tab0
----
0
43
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT - col0 * - 95 AS col0 FROM tab1
----
285
6080
7600

query I rowsort
SELECT col2 * + col1 + col2 + - col0 FROM tab2
----
1482
605
857

onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT + ( + col0 ) * - cor0.col0 DIV col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1740
SELECT + ( + col0 ) * - cor0.col0 / col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1741
SELECT + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 53 + 31 * - tab0.col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
-1138
-2812
-797

query I rowsort
SELECT + 51 * col2 FROM tab2 cor0
----
1326
1377
1938

query I rowsort
SELECT - col1 + col1 * 12 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT DISTINCT - 65 + - col1 * col1 FROM tab2 AS cor0
----
-1026
-354
-3546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) * col0 - + col0 * - col0 col0 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT ALL - + cor0.col1 * col1 + - col2 * - col1 FROM tab2 AS cor0
----
-124
-1947
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - col0 col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL ( + col0 ) + + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 70 + ( col1 + + col2 ) * - col2 AS col0 FROM tab2
----
-1496
-2020
-2140

query I rowsort
SELECT tab2.col2 * - col1 + - col0 + ( + col2 + + col2 ) * 15 AS col1 FROM tab2
----
-34
-832
415

query I rowsort
SELECT + + ( 33 ) FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1753
SELECT ALL + CAST( NULL AS SIGNED ) + 76 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL + CAST ( NULL AS INTEGER ) + 76 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1754
SELECT ALL CAST( NULL AS DECIMAL ) + + ( + col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL CAST ( NULL AS REAL ) + + ( + col2 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + 51 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT DISTINCT 65 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
65

query I rowsort
SELECT ALL + + col0 + col0 * - ( 9 * - col1 ) FROM tab1 AS cor0
----
5824
705
9440

query I rowsort
SELECT + - 13 AS col0 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + - 70 + + col0 * - 30 * - col0 FROM tab0 AS cor0
----
17210
237560
36680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT ALL - + col2 DIV cor0.col1 - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL - + col2 / cor0.col1 - col0 FROM tab0 AS cor0
----
-24
-35
-89

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

query I rowsort
SELECT DISTINCT + - 52 * + col0 + - 34 + col1 AS col0 FROM tab0 AS cor0
----
-1196
-1757
-4571

query I rowsort
SELECT ALL tab0.col1 * + ( tab0.col0 + 47 ) * - ( - tab0.col2 ) FROM tab0
----
1014832
201498
7954

query I rowsort
SELECT ALL + col2 * - 42 FROM tab0
----
-1386
-3444
-42

query I rowsort
SELECT ( 43 ) FROM tab1
----
43
43
43

query I rowsort
SELECT DISTINCT - 1 + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + - col0 + col0 * col2 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + col2 + col1 * 8 FROM tab2 AS cor0
----
174
275
498

query I rowsort
SELECT - col2 + cor0.col0 * 31 FROM tab2 AS cor0
----
190
2392
2411

query I rowsort
SELECT ALL - - col1 + + 62 * 31 * - col0 AS col2 FROM tab1 AS cor0
----
-122998
-153747
-5740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 + 62 col2 FROM tab1 AS cor0
----
136
155
91

query I rowsort
SELECT DISTINCT + + col0 + + ( - 79 ) * col2 FROM tab1 AS cor0
----
-4263
-4439
-7504

query I rowsort
SELECT + - col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT - cor0.col1 * col0 + - 95 DIV col1 + + cor0.col1 FROM tab1 AS cor0
----
-1034
-55
-639

skipif mysql # not compatible
query I rowsort label-1774
SELECT - cor0.col1 * col0 + - 95 / col1 + + cor0.col1 FROM tab1 AS cor0
----
-1034
-55
-639

query I rowsort
SELECT + - 22 AS col2 FROM tab0 AS cor0
----
-22
-22
-22

query I rowsort
SELECT ( cor0.col2 ) * + col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + cor0.col0 * 79 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT col1 * - 87 FROM tab1
----
-1131
-2262
-870

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab1, tab0 AS cor0
----
-27

query I rowsort
SELECT - ( - 40 + cor0.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 09574684be08b1d8a79dca44bee81d66

query I rowsort
SELECT + col1 * + 4 + - col0 * 99 FROM tab1 AS cor0
----
-193
-6296
-7868

query I rowsort
SELECT + + col1 * - col1 * col0 AS col0 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL - ( 43 ) + col1 * + col2 AS col2 FROM tab2 cor0
----
1491
603
794

onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT col0 * - 43 + - col0 * ( col0 ) DIV + col2 AS col2 FROM tab0 AS cor0
----
-1049
-2730
-3923

skipif mysql # not compatible
query I rowsort label-1785
SELECT col0 * - 43 + - col0 * ( col0 ) / + col2 AS col2 FROM tab0 AS cor0
----
-1049
-2730
-3923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1786
SELECT CAST( NULL AS SIGNED ) + + ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT CAST ( NULL AS INTEGER ) + + ( col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 75 * + 40 + + col0 FROM tab2 AS cor0
----
-2921
-2922
-2993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( tab2.col2 ) col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT - col0 * - ( + col0 ) FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - 57 * + 77 FROM tab2 AS cor0
----
-4389

query I rowsort
SELECT ALL 59 AS col0 FROM tab0
----
59
59
59

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT ALL 28 + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL 28 + col1 / - col1 AS col1 FROM tab0 AS cor0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT ALL + ( - col2 ) + ( 39 ) * col2 AS col1 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT + col0 * - col1 - tab0.col2 * - 35 FROM tab0
----
-3360
-5229
-909

query I rowsort
SELECT 88 + col2 AS col2 FROM tab2
----
114
115
126

query I rowsort
SELECT - + col2 - - ( col1 ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1800
SELECT tab1.col2 DIV cor0.col1 + 22 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 301b91e96163af8e9a18bf24dbdbd3fc

skipif mysql # not compatible
query I rowsort label-1800
SELECT tab1.col2 / cor0.col1 + 22 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 301b91e96163af8e9a18bf24dbdbd3fc

query I rowsort
SELECT + col0 + - ( col2 ) * - col1 AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT - col0 + 72 - col0 AS col2 FROM tab2
----
-84
-86
58

query I rowsort
SELECT - col1 - 56 * col2 FROM tab2
----
-1515
-1543
-2145

query I rowsort
SELECT col0 * + col0 + 94 AS col2 FROM tab0
----
1319
670
8015

query I rowsort
SELECT DISTINCT col0 + col1 * + 83 FROM tab0
----
7162
7642
8086

query I rowsort
SELECT ALL + col0 + - ( col2 * col0 ) FROM tab1
----
-159
-3584
-7600

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

query I rowsort
SELECT - 51 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT ALL - 57 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + 1 col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + + col0 * + col1 - + col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + ( col0 ) + cor0.col0 col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + - col1 * - col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - col2 + + 28 FROM tab1 cor0
----
-26
-29
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT ALL + col2 DIV 62 col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL + col2 / 62 col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1816
SELECT DISTINCT - col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT - col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * - col0 - col0 * - col2 AS col0 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT ALL col1 * - col1 + col2 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - col2 + + ( - col2 ) FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1820
SELECT DISTINCT + col2 / ( + ( + col1 ) * CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + col2 / ( + ( + col1 ) * CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 34 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1822
SELECT + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1822
SELECT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8

query I rowsort
SELECT DISTINCT + col1 - 42 * + ( - col0 * ( + 10 ) ) AS col1 FROM tab0
----
10166
14797
37471

query I rowsort
SELECT DISTINCT + col1 * ( - ( + col2 ) ) + col1 * cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
633218
746109
912576

query I rowsort
SELECT ALL + + col0 + 50 * col0 + col1 FROM tab2 AS cor0
----
388
4037
4046

onlyif mysql # use DIV operator for integer division
query I rowsort label-1827
SELECT ALL col2 DIV - 25 AS col2 FROM tab1 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL col2 / - 25 AS col2 FROM tab1 AS cor0
----
-2
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1828
SELECT DISTINCT - col2 + CAST( 21 AS SIGNED ) FROM tab1 AS cor0
----
-33
-36
-75

skipif mysql # not compatible
query I rowsort label-1828
SELECT DISTINCT - col2 + CAST ( 21 AS INTEGER ) FROM tab1 AS cor0
----
-33
-36
-75

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE NOT NULL >= ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1830
SELECT - col2 DIV - col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1830
SELECT - col2 / - col2 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - col1 * col1 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-12804
-16380
-9460

query I rowsort
SELECT + col0 * col1 + col0 * tab1.col0 + tab1.col1 FROM tab1
----
113
4746
7453

query I rowsort
SELECT ALL tab1.col0 FROM tab1 WHERE ( NULL ) IN ( - col1 + - col2 * - tab1.col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * col2 + col2 <> col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL - col1 * tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + - col0 * tab2.col0 + + col1 col2 FROM tab2 WHERE NOT NULL NOT IN ( + col0 - col2 )
----

query I rowsort
SELECT DISTINCT + col1 * tab2.col0 AS col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1838
SELECT + tab2.col0 DIV + col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1838
SELECT + tab2.col0 / + col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 * tab1.col0 * col1 FROM tab1 WHERE NOT ( + col2 + + col0 ) NOT BETWEEN tab1.col0 AND ( NULL )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 WHERE ( col2 + col2 ) > + col1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 37 * col2 + 97 AS col1 FROM tab1
----
2095
2206
3649

query I rowsort
SELECT ALL - - 24 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 * col0 + col0 col1 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT 13 * col1 FROM tab1 AS cor0
----
130
169
338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 * 6 col1 FROM tab0 AS cor0
----
230
307
625

onlyif mysql # use DIV operator for integer division
query I rowsort label-1847
SELECT ALL cor0.col0 * - col1 + CAST( col2 AS SIGNED ) DIV col1 FROM tab1 AS cor0
----
-1033
-635
-76

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL cor0.col0 * - col1 + CAST ( col2 AS INTEGER ) / col1 FROM tab1 AS cor0
----
-1033
-635
-76

query I rowsort
SELECT ( col0 * 4 + col0 ) AS col2 FROM tab2
----
35
390
395

query I rowsort
SELECT 45 + col2 * cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
210
3757
7805

query I rowsort
SELECT DISTINCT + 95 * - col2 AS col0 FROM tab2 AS cor0
----
-2470
-2565
-3610

query I rowsort
SELECT + 46 * col2 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 + col0 * col0 + 97 AS col0 FROM tab1 AS cor0
----
132
4203
6510

query I rowsort
SELECT ALL cor0.col2 + + col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + 16 - + col1 * + cor0.col0 FROM tab1 AS cor0
----
-1024
-62
-624

onlyif mysql # use DIV operator for integer division
query I rowsort label-1856
SELECT DISTINCT col0 + - 42 DIV + col2 col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT col0 + - 42 / + col2 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + cor0.col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1859
SELECT DISTINCT + - col2 * col1 / cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT + - col2 * col1 / cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1860
SELECT ALL - CAST( NULL AS SIGNED ) * + ( - cor0.col0 ) col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL - CAST ( NULL AS INTEGER ) * + ( - cor0.col0 ) col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 80 * - 75 AS col0 FROM tab2
----
6000
6000
6000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 - cor0.col2 * col0 col0 FROM tab2 cor0
----
-1026
-3562
-3648

query I rowsort
SELECT - col2 * + col1 - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 cor1, tab0 cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

onlyif mysql # use DIV operator for integer division
query I rowsort label-1865
SELECT ( cor0.col0 ) * cor0.col1 + - col0 DIV + col2 FROM tab1 AS cor0
----
1040
639
78

skipif mysql # not compatible
query I rowsort label-1865
SELECT ( cor0.col0 ) * cor0.col1 + - col0 / + col2 FROM tab1 AS cor0
----
1040
639
78

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1867
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - ( + col2 ) + col2 * - col1 * + ( col2 * + 84 ) FROM tab1
----
-10063968
-2729217
-6368598

query I rowsort
SELECT ( - col2 ) + - col1 AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL col2 * + col1 + col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - 47 * - col2 + tab1.col1 FROM tab1
----
2564
2689
4525

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1872
SELECT ( col1 ) * tab0.col0 + CAST( - col1 AS SIGNED ) * - col1 AS col1 FROM tab0
----
12804
16380
9460

skipif mysql # not compatible
query I rowsort label-1872
SELECT ( col1 ) * tab0.col0 + CAST ( - col1 AS INTEGER ) * - col1 AS col1 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT 57 + + 73 * + col1 AS col2 FROM tab2
----
1298
2320
4364

query I rowsort
SELECT DISTINCT 76 + - col2 FROM tab0
----
-6
43
75

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + cor0.col0 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT 84 + - col0 AS col1 FROM tab1
----
20
4
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1879
SELECT - col2 * + col0 DIV - col0 + + tab2.col1 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-1879
SELECT - col2 * + col0 / - col0 + + tab2.col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT - 27 * - 23 FROM tab1
----
621

query I rowsort
SELECT 1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - - col1 - + cor0.col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT 31 * col2 AS col2 FROM tab2
----
1178
806
837

query I rowsort
SELECT ALL + 32 FROM tab1
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT col2 DIV - col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
160
3643
7673

skipif mysql # not compatible
query I rowsort label-1886
SELECT col2 / - col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
160
3643
7673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - + 66 FROM tab2 cor0
----
-66
-66
-66

query I rowsort
SELECT - 71 * col2 + - col0 * col2 AS col1 FROM tab2 cor0
----
-2106
-3874
-5700

query I rowsort
SELECT - - 52 + + cor0.col2 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT ( cor0.col2 ) + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT + 79 DIV col2 + - col2 col2 FROM tab1 AS cor0
----
-53
-56
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1892
SELECT + 79 / col2 + - col2 col2 FROM tab1 AS cor0
----
-53
-56
-96

query I rowsort
SELECT col2 + col0 * + col2 FROM tab0 WHERE ( NULL ) NOT IN ( - col2 + + col1 )
----

query I rowsort
SELECT ALL tab2.col0 + + col1 + - col1 AS col2 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1895
SELECT + tab1.col1 DIV col2 + col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1895
SELECT + tab1.col1 / col2 + col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT col1 + + col2 - tab0.col0 FROM tab0
----
63
84
95

query I rowsort
SELECT DISTINCT - col2 * + tab0.col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT col2 + - col1 + col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT col0 + col0 * - col2 + col0 FROM tab2
----
-175
-1872
-2844

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + col1 + + col2 )
----

query I rowsort
SELECT col2 * col2 * - col1 AS col0 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT col2 + col0 DIV col1 col0 FROM tab1 AS cor0
----
102
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1903
SELECT col2 + col0 / col1 col0 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT - col0 + col2 * - col0 AS col1 FROM tab2 cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-1905
SELECT col0 - col1 * col0 DIV + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1905
SELECT col0 - col1 * col0 / + col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + col1 * col0 + tab0.col0 * + col0 AS col1 FROM tab0
----
16020
2640
4620

query I rowsort
SELECT ALL col2 + + tab2.col0 * col1 * col1 FROM tab2
----
22869
271544
6754

query I rowsort
SELECT col2 * - col2 + + tab1.col1 AS col0 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT + col0 * - col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1910
SELECT DISTINCT col1 + - cor0.col1 DIV + col0 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT col1 + - cor0.col1 / + col0 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT DISTINCT - col0 + col0 * col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + col0 * - cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

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 I rowsort
SELECT + col1 + + col2 - - col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 * col0 / col1 - col2 ) NOT IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 + col1 * + tab1.col1 * - tab1.col0 col2 FROM tab1
----
-13600
-2031
-6464

query I rowsort
SELECT ALL ( col1 ) * - col1 + + ( col1 ) FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + 98 + col1 AS col0 FROM tab0 cor0
----
184
189
195

query I rowsort
SELECT ALL - cor0.col1 * cor0.col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + col0 + + col2 * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT + 26 * + cor0.col1 + + col2 FROM tab1 cor0
----
317
434
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1922
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col2 + col1 / 73 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT CAST ( NULL AS REAL ) * - col2 + col1 / 73 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 75 + 82 AS col0 FROM tab2 cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1924
SELECT CAST( NULL AS SIGNED ) / col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT CAST ( NULL AS INTEGER ) / col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + cor0.col1 ) * col2 + ( + col2 ) FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + cor0.col1 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + 69 + col1 AS col1 FROM tab0 AS cor0
----
155
160
166

onlyif mysql # use DIV operator for integer division
query I rowsort label-1928
SELECT - col1 DIV + cor0.col1 + cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
-29
-48
-84

skipif mysql # not compatible
query I rowsort label-1928
SELECT - col1 / + cor0.col1 + cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
-29
-48
-84

query I rowsort
SELECT + - ( ( - cor0.col2 ) ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) * col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT - + cor0.col0 * col1 DIV - col2 AS col1 FROM tab0 cor0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-1931
SELECT - + cor0.col0 * col1 / - col2 AS col1 FROM tab0 cor0
----
3395
62
98

query I rowsort
SELECT ALL ( cor0.col2 ) + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1933
SELECT ALL + - CAST( col2 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + - CAST ( col2 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT + - ( ( + col2 ) ) DIV CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1934
SELECT + - ( ( + col2 ) ) / CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - col0 * 36 FROM tab0 AS cor0
----
1260
3204
864

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT DISTINCT + ( - col0 ) DIV + ( 31 * col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + ( - col0 ) / + ( 31 * col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1938
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT - + ( - col0 ) DIV ( 97 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT - + ( - col0 ) / ( 97 ) FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( + col2 ) - + col1 col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + col0 * - col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-1942
SELECT ALL + cor0.col1 DIV ( cor0.col2 ) FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL + cor0.col1 / ( cor0.col2 ) FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - 49 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-49

query I rowsort
SELECT col0 - + ( 65 ) FROM tab1
----
-1
-62
15

query I rowsort
SELECT DISTINCT - 85 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1946
SELECT DISTINCT + - col1 DIV 30 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + - col1 / 30 AS col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + - col2 + + 37 * + 16 FROM tab0 AS cor0
----
510
559
591

query I rowsort
SELECT col2 * 25 + col2 FROM tab0
----
2132
26
858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1949
SELECT col2 + - CAST( - col1 AS SIGNED ) FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-1949
SELECT col2 + - CAST ( - col1 AS INTEGER ) FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT col1 + + ( + col1 ) * col1 AS col2 FROM tab1
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 col0 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1952
SELECT tab2.col1 + tab2.col2 DIV col0 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-1952
SELECT tab2.col1 + tab2.col2 / col0 FROM tab2
----
17
34
59

query I rowsort
SELECT 40 * - tab1.col1 FROM tab1
----
-1040
-400
-520

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - cor0.col2 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a

query I rowsort
SELECT 16 * col2 AS col2 FROM tab2
----
416
432
608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1957
SELECT + CAST( col2 AS SIGNED ) * col2 col2 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1957
SELECT + CAST ( col2 AS INTEGER ) * col2 col2 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + + 3 * col0 * - col2 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-104
-21812
-2343

query I rowsort
SELECT DISTINCT ( + col0 ) + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col1 * col0 + cor0.col0 * ( - cor0.col1 ) FROM tab2 AS cor0
----
-2686
-434
-9204

onlyif mysql # use DIV operator for integer division
query I rowsort label-1962
SELECT 66 * col1 DIV + col0 AS col2 FROM tab1
----
10
10
572

skipif mysql # not compatible
query I rowsort label-1962
SELECT 66 * col1 / + col0 AS col2 FROM tab1
----
10
10
572

query I rowsort
SELECT ALL col0 + + col0 * + 59 FROM tab1
----
180
3840
4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT - col0 + col2 DIV col0 AS col1 FROM tab1
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-1964
SELECT - col0 + col2 / col0 AS col1 FROM tab1
----
-64
-79
15

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT ALL + - ( col0 ) DIV 36 AS col2 FROM tab1 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL + - ( col0 ) / 36 AS col2 FROM tab1 cor0
----
-1
-2
0

query I rowsort
SELECT ALL + - 57 * col0 FROM tab2 AS cor0
----
-399
-4446
-4503

onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT DISTINCT - 87 DIV cor0.col0 FROM tab2 AS cor0
----
-1
-12

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - 87 / cor0.col0 FROM tab2 AS cor0
----
-1
-12

query I rowsort
SELECT ALL + 91 * - col2 AS col0 FROM tab1 cor0
----
-4914
-5187
-8736

query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL col2 * ( - ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 * cor0.col2 - 34 FROM tab2 AS cor0
----
1410
642
695

query I rowsort
SELECT + cor0.col0 + 40 * + 29 AS col2 FROM tab1 AS cor0
----
1163
1224
1240

query I rowsort
SELECT - cor0.col1 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1975
SELECT ALL + col0 * CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL + col0 * CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1976
SELECT + col0 DIV - cor0.col0 - col2 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-1976
SELECT + col0 / - cor0.col0 - col2 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT + + cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT 5 + col0 FROM tab2
----
12
83
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT 16 DIV col0 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1979
SELECT 16 / col0 FROM tab2
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT - tab1.col2 + col0 DIV tab1.col2 AS col0 FROM tab1
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-1980
SELECT - tab1.col2 + col0 / tab1.col2 AS col0 FROM tab1
----
-54
-56
-96

query I rowsort
SELECT col1 + - ( + col1 ) * + cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d

query I rowsort
SELECT - 95 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT + col0 * col1 + - ( cor0.col0 ) FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT col2 * cor0.col0 + + 50 * + col0 FROM tab1 cor0
----
11680
312
6848

query I rowsort
SELECT - 67 * cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-10854
-244416
-514560

query I rowsort
SELECT ALL ( col1 * - 65 ) FROM tab2
----
-1105
-2015
-3835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * 72 + 55 col1 FROM tab1 AS cor0
----
1927
775
991

query I rowsort
SELECT ALL + col0 * + 48 * - cor0.col1 FROM tab2 AS cor0
----
-10416
-220896
-64464

query I rowsort
SELECT - col2 + cor0.col2 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1991
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * ( + 73 * + col2 ) AS col2 FROM tab2 AS cor0
----
111982
47158
61101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + - 75 * + cor0.col0 AS col1 FROM tab1, tab0, tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT - 91 + + col1 AS col1 FROM tab2
----
-32
-60
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab1.col0 col2 FROM tab1
----
121
176
57

query I rowsort
SELECT + col0 * col2 * - col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - tab0.col1 * + col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col1 * + col1 * + ( col2 * + tab2.col0 ) AS col1 FROM tab2
----
181629
7059468
867578

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2000
SELECT + col2 * col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT + col2 * col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ( cor0.col2 ) + - col0 * ( 19 + col1 ) AS col2 FROM tab0 AS cor0
----
-2487
-4059
-9708

onlyif mysql # use DIV operator for integer division
query I rowsort label-2002
SELECT col1 + + 93 DIV + col1 col1 FROM tab2
----
22
34
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2002
SELECT col1 + + 93 / + col1 col1 FROM tab2
----
22
34
60

query I rowsort
SELECT - 31 + + 86 * + col0 FROM tab0 AS cor0
----
2033
2979
7623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2004
SELECT + CAST( col1 AS SIGNED ) * + cor0.col2 - - ( col1 ) FROM tab0 AS cor0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-2004
SELECT + CAST ( col1 AS INTEGER ) * + cor0.col2 - - ( col1 ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + 2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT ALL 9 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col0 FROM tab0
----
40
40
40

query I rowsort
SELECT DISTINCT - 22 FROM tab1, tab2 AS cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 * col1 - col2 col0 FROM tab1 AS cor0
----
233
281
700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2010
SELECT CAST( + 75 AS SIGNED ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
164
99

skipif mysql # not compatible
query I rowsort label-2010
SELECT CAST ( + 75 AS INTEGER ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
164
99

query I rowsort
SELECT col2 + 26 AS col2 FROM tab0 cor0
----
108
27
59

query I rowsort
SELECT ALL - ( + 64 + - col0 ) * col1 AS col0 FROM tab0
----
-2813
-3440
2275

query I rowsort
SELECT - + cor0.col2 + col0 * col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + 29 - + col1 * + cor0.col1 FROM tab1 AS cor0
----
-140
-647
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + tab2.col1 col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL col1 * + tab1.col1 FROM tab1
----
100
169
676

query I rowsort
SELECT - col2 + + col2 * - tab1.col1 AS col1 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT - col0 * col1 + col1 AS col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - 30 FROM tab2, tab1 cor0
----
-30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2020
SELECT DISTINCT + CAST( + tab0.col1 * col0 AS SIGNED ) AS col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2020
SELECT DISTINCT + CAST ( + tab0.col1 * col0 AS INTEGER ) AS col1 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2021
SELECT CAST( - 53 + - col1 AS SIGNED ) FROM tab1
----
-63
-66
-79

skipif mysql # not compatible
query I rowsort label-2021
SELECT CAST ( - 53 + - col1 AS INTEGER ) FROM tab1
----
-63
-66
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT - col2 DIV col1 + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-2022
SELECT - col2 / col1 + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-40

query I rowsort
SELECT + col2 * col0 - - col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - col1 * - col0 * + tab2.col2 + - ( + tab2.col2 ) AS col2 FROM tab2
----
119626
50996
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT DISTINCT col1 DIV col1 + + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT col1 / col1 + + col2 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT ALL col2 DIV + col0 - 57 * + 22 FROM tab0 AS cor0
----
-1253
-1254
-1254

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL col2 / + col0 - 57 * + 22 FROM tab0 AS cor0
----
-1253
-1254
-1254

query I rowsort
SELECT + col2 * - col1 - + col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - - col0 + col2 + + ( col0 ) AS col1 FROM tab1 AS cor0
----
185
256
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 + + col1 * 17 col0 FROM tab1 cor0
----
237
330
522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - - 83 FROM tab0 cor0
----
83

query I rowsort
SELECT ALL + - col0 + col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) * - col2 + + 0 + col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT col0 * + cor0.col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + + 1 FROM tab2 AS cor0
----
-288
-3480
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2036
SELECT col2 DIV col2 + - 45 * + col1 AS col2 FROM tab0
----
-3869
-4094
-4364

skipif mysql # not compatible
query I rowsort label-2036
SELECT col2 / col2 + - 45 * + col1 AS col2 FROM tab0
----
-3869
-4094
-4364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2037
SELECT + - col2 * + CAST( NULL AS SIGNED ) * - 80 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT + - col2 * + CAST ( NULL AS INTEGER ) * - 80 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT - col2 * col0 + col2 DIV - col2 + + 64 DIV 98 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-2038
SELECT - col2 * col0 + col2 / - col2 + + 64 / 98 FROM tab1 AS cor0
----
-163
-3649
-7681

query I rowsort
SELECT - 69 FROM tab2 cor0
----
-69
-69
-69

query I rowsort
SELECT ALL col1 + - 43 FROM tab2 AS cor0
----
-12
-26
16

query I rowsort
SELECT DISTINCT - col0 - + 36 FROM tab2 AS cor0
----
-114
-115
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2042
SELECT - - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2042
SELECT - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT 5 DIV col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2043
SELECT 5 / col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - 72 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2, tab0
----
729 values hashing to b8b9bb8267e9a3fd161f9a4ff0064f23

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

onlyif mysql # use DIV operator for integer division
query I rowsort label-2046
SELECT DISTINCT - col2 DIV col1 + col2 AS col0 FROM tab1 cor0
----
52
89

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT - col2 / col1 + col2 AS col0 FROM tab1 cor0
----
52
89

query I rowsort
SELECT ALL col2 - ( col1 ) AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - col2 + + col1 * - col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - col0 + + col1 * 0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + ( + tab0.col2 ) * - 95 + + col2 AS col1 FROM tab0
----
-3102
-7708
-94

query I rowsort
SELECT DISTINCT + 68 + - col0 AS col2 FROM tab2
----
-10
-11
61

query I rowsort
SELECT ALL + ( - col2 ) * + col0 - + col1 * col1 AS col2 FROM tab2 AS cor0
----
-1150
-3291
-5509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT - 67 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2056
SELECT DISTINCT - col1 - + CAST( + 25 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-111
-116
-122

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT - col1 - + CAST ( + 25 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-111
-116
-122

query I rowsort
SELECT DISTINCT col2 - 43 FROM tab1 AS cor0
----
11
14
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2058
SELECT + col0 DIV CAST( + col0 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-2058
SELECT + col0 / CAST ( + col0 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
-25
-26
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col2 * 33 + - cor0.col1 col0 FROM tab1 AS cor0
----
-120394
-253453
-5372

query I rowsort
SELECT ALL + col0 * 55 AS col2 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT DISTINCT - 97 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2062
SELECT - col0 + CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT - col0 + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col0 * col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( - col2 + col2 ) col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col0 + + ( 71 ) AS col2 FROM tab2 AS cor0
----
149
150
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2068
SELECT ALL - cor0.col2 DIV + 73 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL - cor0.col2 / + 73 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2069
SELECT col2 DIV - 32 + - 99 FROM tab2 AS cor0
----
-100
-99
-99

skipif mysql # not compatible
query I rowsort label-2069
SELECT col2 / - 32 + - 99 FROM tab2 AS cor0
----
-100
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + + col0 + cor0.col0 * col2 - - col2 FROM tab1 AS cor0
----
219
3769
7856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col2 * ( cor0.col2 ) + + cor0.col1 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT ALL + ( cor0.col0 ) + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + col1 + + ( + col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col0 - + 98 * col0 AS col0 FROM tab2 cor0
----
-679
-7566
-7663

query I rowsort
SELECT ALL - col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - - col1 * col1 + - col0 FROM tab0 AS cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col2 FROM tab2 AS cor0
----
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2080
SELECT ALL - ( cor0.col0 ) + + col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL - ( cor0.col0 ) + + col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - + col1 * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col0 * 82 * - col1 AS col1 FROM tab2 AS cor0
----
-110126
-17794
-377364

query I rowsort
SELECT + 11 AS col1 FROM tab0 cor0
----
11
11
11

query I rowsort
SELECT + - 1 + col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT + 51 * - col2 AS col1 FROM tab2 AS cor0
----
-1326
-1377
-1938

onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT ALL - 64 + 9 DIV col0 AS col0 FROM tab2 AS cor0
----
-63
-64
-64

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL - 64 + 9 / col0 AS col0 FROM tab2 AS cor0
----
-63
-64
-64

query I rowsort
SELECT + - col2 * cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT + 1 * - col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT ALL - 4 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL - 4 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL col2 * - col0 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + col1 - + col0 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - + col2 - col0 * ( + col1 ) * col0 AS col1 FROM tab2 AS cor0
----
-106135
-1546
-358982

query I rowsort
SELECT DISTINCT + + 75 * - cor0.col1 FROM tab0 AS cor0
----
-6450
-6825
-7275

query I rowsort
SELECT DISTINCT - 69 * col1 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT col2 * col1 - + cor0.col0 FROM tab1 cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2096
SELECT - - 44 DIV + col0 + col0 - - cor0.col2 FROM tab1 AS cor0
----
121
176
71

skipif mysql # not compatible
query I rowsort label-2096
SELECT - - 44 / + col0 + col0 - - cor0.col2 FROM tab1 AS cor0
----
121
176
71

query I rowsort
SELECT - ( + cor0.col0 ) * 72 + col0 * - col2 * - 71 AS col0 FROM tab1 AS cor0
----
11286
254400
539520

query I rowsort
SELECT ALL + 23 * ( col2 ) + - col1 * + col1 + - col0 AS col1 FROM tab2
----
-2961
-347
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2099
SELECT + + col0 * + col2 + - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
180
3648
7681

skipif mysql # not compatible
query I rowsort label-2099
SELECT + + col0 * + col2 + - col2 / - col0 AS col0 FROM tab1 AS cor0
----
180
3648
7681

query I rowsort
SELECT + + col1 * ( - col1 ) FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT - col0 + + col0 * col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + col2 * + 65 AS col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT DISTINCT 53 * - col1 FROM tab0
----
-4558
-4823
-5141

query I rowsort
SELECT 57 * + col2 + col0 AS col1 FROM tab1
----
3081
3313
5552

query I rowsort
SELECT ALL + 94 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + 4 + col1 FROM tab1
----
14
17
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2107
SELECT ALL - CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2107
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2108
SELECT DISTINCT CAST( NULL AS SIGNED ) * 56 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2108
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 56 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col0 * 87 AS col0 FROM tab0 AS cor0
----
2088
3045
7743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * - ( col1 ) col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - + col0 * cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT cor0.col1 * ( - 26 + - cor0.col0 ) FROM tab2, tab0 AS cor0
----
-10465
-4300
-5917

query I rowsort
SELECT ALL col2 * 97 FROM tab2 cor0
----
2522
2619
3686

query I rowsort
SELECT col2 * ( col2 ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL col2 + 58 FROM tab1
----
112
115
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT 60 DIV + 13 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
193
2032
3006

skipif mysql # not compatible
query I rowsort label-2117
SELECT 60 / + 13 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
193
2032
3006

query I rowsort
SELECT - 40 + col0 AS col1 FROM tab1 AS cor0
----
-37
24
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2119
SELECT ALL + CAST( NULL AS SIGNED ) + - 60 - - col1 * col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + CAST ( NULL AS INTEGER ) + - 60 - - col1 * col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2120
SELECT + - CAST( NULL AS SIGNED ) * 40 + col1 * + cor0.col1 - 26 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-2120
SELECT + - CAST ( NULL AS INTEGER ) * 40 + col1 * + cor0.col1 - 26 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
17
31
59

query I rowsort
SELECT + col1 + col2 * - 15 FROM tab0 AS cor0
----
-1139
-409
82

query I rowsort
SELECT - + col0 + col1 * 90 FROM tab0 cor0
----
7716
8101
8695

query I rowsort
SELECT ALL 96 * tab2.col1 FROM tab2
----
1632
2976
5664

query I rowsort
SELECT - 7 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT DISTINCT - col2 + col1 * col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT col0 + ( + col1 ) * col1 FROM tab0 cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT - col1 + - ( - 49 ) DIV col1 FROM tab2 AS cor0
----
-15
-30
-59

skipif mysql # not compatible
query I rowsort label-2128
SELECT - col1 + - ( - 49 ) / col1 FROM tab2 AS cor0
----
-15
-30
-59

query I rowsort
SELECT ALL + - col0 * + col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col0 + - ( - cor0.col0 ) FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + 23 AS col1 FROM tab0
----
23
23
23

query I rowsort
SELECT DISTINCT + cor0.col1 * - 38 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1205
-2268
-684

query I rowsort
SELECT DISTINCT cor0.col2 * - ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col1 + + 55 AS col0 FROM tab1 AS cor0
----
65
68
81

query I rowsort
SELECT DISTINCT + col0 + - ( + 74 ) AS col0 FROM tab1 AS cor0
----
-10
-71
6

query I rowsort
SELECT cor1.col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + col2 * - ( col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + ( + 4 ) * - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 54fe2011393c3e49b7fc4bc423d08ff1

query I rowsort
SELECT ALL - tab1.col0 * col2 AS col1 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

onlyif mysql # use DIV operator for integer division
query I rowsort label-2141
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-2141
SELECT col2 / col1 col1 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT ALL col2 DIV - col2 + + col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL col2 / - col2 + + col0 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT - - cor0.col1 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2143
SELECT - - cor0.col1 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab1, tab2 AS cor0
----
-71

query I rowsort
SELECT DISTINCT - 78 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-78

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab0 AS cor0
----
79

query I rowsort
SELECT - - cor0.col1 + ( - col2 ) * + col1 AS col0 FROM tab1 cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - ( col1 ) col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - - cor0.col0 - col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2150
SELECT ALL col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL col2 / - col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2151
SELECT ALL - - 32 DIV - col0 + col2 FROM tab0 cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL - - 32 / - col0 + col2 FROM tab0 cor0
----
1
32
82

query I rowsort
SELECT DISTINCT col0 * col2 * 64 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
232902
490272
8964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col1 + col2 * - 13 AS col1 FROM tab2 AS cor0
----
-279
-320
-477

query I rowsort
SELECT - + cor0.col0 + + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL 15 FROM tab2, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT + col1 + 6 AS col1 FROM tab1
----
16
19
32

query I rowsort
SELECT - 38 - + col0 FROM tab0
----
-127
-62
-73

query I rowsort
SELECT 28 + - col2 AS col2 FROM tab0
----
-5
-54
27

query I rowsort
SELECT - tab2.col0 + + 13 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 74c0d4a8ce3b0387994bd2246d16fd06

query I rowsort
SELECT DISTINCT 52 + - col1 FROM tab2
----
-7
21
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * 15 col0 FROM tab2
----
-105
-1170
-1185

onlyif mysql # use DIV operator for integer division
query I rowsort label-2163
SELECT DISTINCT - col1 DIV cor0.col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT - col1 / cor0.col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + 84 + - col0 AS col2 FROM tab0 AS cor0
----
-5
49
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2165
SELECT + col0 * col0 DIV col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2165
SELECT + col0 * col0 / col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 61 * col0 + col2 FROM tab1 AS cor0
----
237
3961
4976

query I rowsort
SELECT - - 93 + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
3009
3342
9309

query I rowsort
SELECT DISTINCT + col2 * - 68 - + col1 * col2 FROM tab2
----
-2673
-3230
-3302

query I rowsort
SELECT 97 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2170
SELECT col1 * + CAST( NULL AS SIGNED ) + + tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT col1 * + CAST ( NULL AS INTEGER ) + + tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 89 - col2 col1 FROM tab1 AS cor0
----
-143
-146
-185

query I rowsort
SELECT + col1 * col1 * - col0 - col2 FROM tab0 AS cor0
----
-177537
-329316
-737091

query I rowsort
SELECT col2 + 31 FROM tab1 cor0
----
127
85
88

query I rowsort
SELECT - ( 11 ) * cor0.col0 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
1800
3010
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2175
SELECT col0 DIV + ( - col2 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2175
SELECT col0 / + ( - col2 ) FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT DISTINCT col0 DIV - 21 + - col0 col2 FROM tab1
----
-3
-67
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT col0 / - 21 + - col0 col2 FROM tab1
----
-3
-67
-83

query I rowsort
SELECT ALL - col2 + ( + 16 * + col0 ) FROM tab2
----
1222
1226
85

query I rowsort
SELECT DISTINCT + col2 + + 11 * ( + col1 ) FROM tab1
----
167
239
340

query I rowsort
SELECT ALL - 9 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT DISTINCT + col1 + + 21 AS col0 FROM tab2
----
38
52
80

query I rowsort
SELECT ALL col1 + 56 AS col1 FROM tab0
----
142
147
153

query I rowsort
SELECT + col1 + 16 + + col1 AS col0 FROM tab1
----
36
42
68

query I rowsort
SELECT DISTINCT tab2.col2 + ( col1 ) FROM tab2
----
55
58
85

query I rowsort
SELECT - col2 * 54 FROM tab1
----
-2916
-3078
-5184

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col0 FROM tab1 AS cor0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - 81 * ( col2 ) * + CAST ( + col0 AS REAL ) + col1 FROM tab0 AS cor0
----
2932
591229
64238

query I rowsort
SELECT ALL - col2 * col2 + col1 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2189
SELECT ALL CAST( - col0 AS SIGNED ) * + col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL CAST ( - col0 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col0 * + col2 + - col1 * col2 * + col2 FROM tab0 AS cor0
----
-132
-619182
-94446

query I rowsort
SELECT ALL 13 FROM tab0 cor0
----
13
13
13

query I rowsort
SELECT 62 - col2 * col0 AS col0 FROM tab1 cor0
----
-100
-3586
-7618

query I rowsort
SELECT + 65 + 9 * col0 * + ( - col0 ) FROM tab1 AS cor0
----
-16
-36799
-57535

query I rowsort
SELECT ALL - col1 + col0 * - col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - 17 * col0 + col0 FROM tab0 AS cor0
----
-1424
-384
-560

query I rowsort
SELECT ALL ( col0 ) * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - + col2 + - col1 * - ( - 36 ) FROM tab0 AS cor0
----
-3129
-3358
-3493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col1 col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL 11 + + cor0.col0 AS col1 FROM tab0 cor0
----
100
35
46

query I rowsort
SELECT col1 * + col2 * + tab1.col2 + tab1.col0 AS col0 FROM tab1
----
119888
32554
75819

onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT DISTINCT col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - col0 * + 62 * 3 FROM tab0 AS cor0
----
-16554
-4464
-6510

query I rowsort
SELECT 40 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT - col1 * ( - ( col0 ) ) AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - + tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL 89 + 71 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ac5ffad908886e53c315f058c5fe2210

query I rowsort
SELECT DISTINCT - col0 * col2 + col2 * col2 + col0 FROM tab2 AS cor0
----
-1274
-1479
547

query I rowsort
SELECT + 35 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT - col1 - + col0 * - tab0.col0 AS col2 FROM tab0
----
1128
490
7830

query I rowsort
SELECT ALL + col2 * 45 AS col2 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ALL + + col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - + col1 - - col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT col0 + - ( col2 ) * - col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT 55 + col0 - + col2 AS col2 FROM tab2 cor0
----
107
35
96

query I rowsort
SELECT - + 58 + col2 FROM tab0 AS cor0
----
-25
-57
24

query I rowsort
SELECT - 58 * + 64 FROM tab0 AS cor0
----
-3712
-3712
-3712

query I rowsort
SELECT col2 + col1 - col0 AS col2 FROM tab2 cor0
----
-24
51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + - 4 col0 FROM tab1
----
22
6
9

query I rowsort
SELECT col1 + 81 * tab2.col0 FROM tab2
----
598
6377
6416

query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 * col2 + col1 + ( - col0 ) * col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
101101
37060
5642

query I rowsort
SELECT ALL + + col1 * - cor0.col1 * - 31 FROM tab1 AS cor0
----
20956
3100
5239

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * tab0.col0 col1 FROM tab0, tab1 AS cor0
----
1225
576
7921

query I rowsort
SELECT 54 * col2 FROM tab2 cor0
----
1404
1458
2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * + 96 col2 FROM tab2 AS cor0
----
-2470
-2565
-3610

onlyif mysql # use DIV operator for integer division
query I rowsort label-2226
SELECT ALL + 39 DIV + col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL + 39 / + col0 FROM tab0
----
0
1
1

query I rowsort
SELECT DISTINCT 67 * - col0 FROM tab0
----
-1608
-2345
-5963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
-22

query I rowsort
SELECT ALL - 61 * - col2 FROM tab1
----
3294
3477
5856

query I rowsort
SELECT ALL - 46 FROM tab2, tab1 cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL - col2 + + col1 - - col1 AS col0 FROM tab0 cor0
----
100
139
193

query I rowsort
SELECT ALL col1 * col0 * col2 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
3536
36380
99671

query I rowsort
SELECT col2 + 54 * tab0.col1 FROM tab0
----
4677
4996
5239

query I rowsort
SELECT + col2 * col1 - col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT - col0 + + col1 * + col1 AS col1 FROM tab1
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2236
SELECT - tab0.col2 DIV + tab0.col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2236
SELECT - tab0.col2 / + tab0.col0 AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 2 + + tab1.col2 - 75 FROM tab1, tab2, tab2 AS cor0
----
-20
-23
19

query I rowsort
SELECT ALL + col1 - col2 AS col1 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + 40 * col1 col0 FROM tab0 AS cor0
----
11102
3977
6278

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + + col0 * 13 FROM tab2 AS cor0
----
280
3042
4029

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2241
SELECT DISTINCT col0 * col1 + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
1027
52
630

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT col0 * col1 + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + 49 * + col2 FROM tab1 AS cor0
----
2646
2793
4704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2243
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2243
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col2 * col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col0 * + 73 AS col1 FROM tab2
----
511
5694
5767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2246
SELECT + + col0 * CAST( + col1 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-2246
SELECT + + col0 * CAST ( + col1 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT cor0.col1 + col2 DIV ( col0 ) AS col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-2247
SELECT cor0.col1 + col2 / ( col0 ) AS col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT - 79 + col0 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2119
-3439
-8089

query I rowsort
SELECT + - ( + ( col1 ) ) + + 62 * col0 AS col0 FROM tab2 AS cor0
----
403
4777
4881

query I rowsort
SELECT - + 29 FROM tab1 AS cor0
----
-29
-29
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + - 88 col0 FROM tab2 cor0
----
-76
-76
-76

query I rowsort
SELECT - 86 * col0 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-2975
-7565

query I rowsort
SELECT ALL + cor0.col2 + - col1 + col0 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT + 78 - 69 * - col2 AS col2 FROM tab0 AS cor0
----
147
2355
5736

query I rowsort
SELECT 66 - 87 FROM tab0, tab1 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT - 14 AS col2 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT + col0 * 92 + col1 * col0 AS col0 FROM tab1 AS cor0
----
354
6528
8400

query I rowsort
SELECT ALL 18 * + col0 FROM tab2
----
126
1404
1422

query I rowsort
SELECT ( col2 ) + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL + - 44 + 14 AS col2 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - col0 * ( - cor0.col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT 29 FROM tab1 cor0
----
29

query I rowsort
SELECT + col0 * - 33 AS col2 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT + - ( - col0 ) + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + col1 + - cor0.col1 AS col2 FROM tab2 cor0
----
0
0
0

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 I rowsort
SELECT ALL + + 35 * - col1 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT ALL 92 * - col0 AS col0 FROM tab2 AS cor0
----
-644
-7176
-7268

query I rowsort
SELECT ALL + col2 + - col2 * + col0 * + col2 AS col2 FROM tab2
----
-114038
-5076
-52702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2270
SELECT CAST( - 84 AS SIGNED ) * col1 + - col2 FROM tab0
----
-7257
-7726
-8149

skipif mysql # not compatible
query I rowsort label-2270
SELECT CAST ( - 84 AS INTEGER ) * col1 + - col2 FROM tab0
----
-7257
-7726
-8149

query I rowsort
SELECT DISTINCT col2 + - col1 + col2 AS col1 FROM tab1
----
104
179
82

query I rowsort
SELECT ALL ( + col0 ) + col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT col0 + - 37 + - col1 FROM tab1
----
-60
17
30

query I rowsort
SELECT ALL col2 * + col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - - col2 + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + + col2 * - col2 + + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + cor0.col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col2 * 44 - + col2 * col0 AS col1 FROM tab2 AS cor0
----
-1377
-3172
-4674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col0 + - 33 col0 FROM tab1 cor0
----
1007
45
607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 - col2 * - col2 col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT - col2 * col0 * cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT ALL - cor0.col1 + + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-17
141
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT DISTINCT - col0 DIV + 99 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT - col0 / + 99 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 38 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT ALL + - col2 DIV - 94 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL + - col2 / - 94 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 99 col1 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT ALL tab1.col2 * ( col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL - ( col2 ) * - col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 59 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - - cor0.col1 + + col0 + col1 * - col2 * - ( 86 ) AS col2 FROM tab0 AS cor0
----
244178
641912
8474

query I rowsort
SELECT - col2 * + 57 + + col1 FROM tab1 cor0
----
-3052
-3239
-5459

query I rowsort
SELECT 17 FROM tab0, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL - - col2 * + col0 AS col1 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT DISTINCT - - col0 DIV col1 col0 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT - - col0 / col1 col0 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL - + col1 * + col0 + - col1 * col2 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT col0 * 61 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT ALL - - col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + 96 + 69 FROM tab2, tab0 AS cor0
----
165

onlyif mysql # use DIV operator for integer division
query I rowsort label-2302
SELECT - ( col2 ) + - col1 * + col2 DIV col2 AS col1 FROM tab0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-2302
SELECT - ( col2 ) + - col1 * + col2 / col2 AS col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT col2 * - 54 FROM tab2 AS cor0
----
-1404
-1458
-2052

query I rowsort
SELECT - col1 * 74 - col1 FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT 28 * + 92 + + col0 FROM tab0 cor0
----
2600
2611
2665

query I rowsort
SELECT DISTINCT col1 + - col0 + col2 FROM tab1
----
29
3
77

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab0, tab2 AS cor0
----
64

query I rowsort
SELECT DISTINCT + col1 + col1 + 14 * + tab2.col2 * + col0 AS col2 FROM tab2
----
2708
28510
42062

query I rowsort
SELECT - + col1 * + col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col2 - ( - col1 + - ( - ( col0 ) ) ) * col1 FROM tab1 AS cor0
----
-483
-775
652

query I rowsort
SELECT - col1 * col0 * col2 + - cor0.col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT 73 * - cor0.col2 FROM tab0 cor0
----
-2409
-5986
-73

query I rowsort
SELECT ALL 46 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT DISTINCT - col1 * - 1 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT col0 + - 18 DIV + 68 AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2315
SELECT col0 + - 18 / + 68 AS col2 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 42 * col1 col1 FROM tab1
----
1089
356
466

query I rowsort
SELECT DISTINCT col0 + + col1 * 80 AS col2 FROM tab2
----
1439
2487
4798

query I rowsort
SELECT DISTINCT - col0 + col1 * + col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - - 85 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
595
6630
6715

query I rowsort
SELECT ( tab2.col1 ) + col1 AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL - - 8 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab2 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col1 FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col2 col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2325
SELECT DISTINCT 53 * - 58 + col1 DIV + col2 + + col1 AS col1 FROM tab1
----
-3048
-3061
-3064

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT 53 * - 58 + col1 / + col2 + + col1 AS col1 FROM tab1
----
-3048
-3061
-3064

query I rowsort
SELECT DISTINCT 60 + - 75 AS col2 FROM tab0
----
-15

onlyif mysql # use DIV operator for integer division
query I rowsort label-2327
SELECT DISTINCT tab1.col2 DIV - tab1.col1 col2 FROM tab1, tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2327
SELECT DISTINCT tab1.col2 / - tab1.col1 col2 FROM tab1, tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + 52 + - 29 * - tab1.col0 AS col2 FROM tab1
----
139
1908
2372

query I rowsort
SELECT DISTINCT + col2 + col0 * + col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + - col2 + col2 * - 22 FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT - 63 + - col0 * 40 FROM tab2 AS cor0
----
-3183
-3223
-343

query I rowsort
SELECT + - 63 * col0 FROM tab0 AS cor0
----
-1512
-2205
-5607

query I rowsort
SELECT 30 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT cor0.col1 * 33 AS col0 FROM tab2, tab1 AS cor0
----
330
429
858

query I rowsort
SELECT 72 * - col2 FROM tab2
----
-1872
-1944
-2736

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab2
----
-27

query I rowsort
SELECT - cor0.col1 * 4 FROM tab2, tab0 AS cor0
----
9 values hashing to ace80b9dbfc9cae791d19554907c23ea

query I rowsort
SELECT + col2 + - 64 FROM tab1
----
-10
-7
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2339
SELECT - 20 / + 60 + + cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2339
SELECT - 20 / + 60 + + cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 * - 78 FROM tab2 AS cor0
----
-1326
-2418
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2341
SELECT col1 DIV 3 col0 FROM tab2 AS cor0
----
10
19
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2341
SELECT col1 / 3 col0 FROM tab2 AS cor0
----
10
19
5

query I rowsort
SELECT ALL - ( + col1 ) * + tab2.col0 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col2 - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT 9 * col0 + col0 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT DISTINCT + - ( - ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - + 6 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + 98 + col2 * col2 FROM tab1 AS cor0
----
3014
3347
9314

query I rowsort
SELECT - ( - col1 ) * col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + 76 + - cor0.col1 AS col0 FROM tab1 cor0
----
50
63
66

query I rowsort
SELECT ALL - 56 * - col1 AS col0 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT - 82 * + col0 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT col1 + col0 * + 20 FROM tab0 AS cor0
----
1871
566
797

query I rowsort
SELECT DISTINCT 99 * + cor0.col1 - col2 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
-1638
-35490
-98553

query I rowsort
SELECT + 12 * - col1 AS col2 FROM tab2 AS cor0
----
-204
-372
-708

query I rowsort
SELECT + ( - 52 ) + - col1 FROM tab0 AS cor0
----
-138
-143
-149

query I rowsort
SELECT ALL 91 + ( col1 ) FROM tab0 AS cor0
----
177
182
188

query I rowsort
SELECT + + col2 * col1 * col2 + - col0 * col0 AS col1 FROM tab2 AS cor0
----
18307
22550
33800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2358
SELECT - + col0 * - 86 + - col1 DIV ( - col0 ) + - col0 * 52 col2 FROM tab0 cor0
----
1192
3027
819

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2358
SELECT - + col0 * - 86 + - col1 / ( - col0 ) + - col0 * 52 col2 FROM tab0 cor0
----
1192
3027
819

query I rowsort
SELECT DISTINCT - col1 * - ( - col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - - 37 * col1 FROM tab0 AS cor0
----
3182
3367
3589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col1 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT ALL ( col0 ) + - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 44 AS col0 FROM tab0 cor0
----
44
44
44

query I rowsort
SELECT ALL - + cor0.col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 47 * - col0 + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-11054
-12464
-8524

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1, tab1 cor1
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab2
----
94

query I rowsort
SELECT ALL - ( 39 ) FROM tab0
----
-39
-39
-39

query I rowsort
SELECT + col2 * - cor0.col0 + - ( cor0.col2 ) * 64 FROM tab2 cor0
----
-1917
-3692
-5434

onlyif mysql # use DIV operator for integer division
query I rowsort label-2370
SELECT ALL + col0 + + col0 DIV ( + col2 ) FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL + col0 + + col0 / ( + col2 ) FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT + 93 * col1 FROM tab2
----
1581
2883
5487

query I rowsort
SELECT DISTINCT tab1.col1 + ( tab1.col1 + - col1 ) AS col2 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col1 col0 FROM tab0
----
110
132
180

query I rowsort
SELECT - col1 * col0 + ( col1 ) * col1 AS col2 FROM tab1
----
-540
-871
598

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT col0 * col0 * - col2 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2377
SELECT + col1 DIV ( col2 ) + + cor0.col0 AS col1 FROM tab0 cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-2377
SELECT + col1 / ( col2 ) + + cor0.col0 AS col1 FROM tab0 cor0
----
132
26
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2378
SELECT DISTINCT + col2 + - CAST( col1 + - col0 AS SIGNED ) * + col2 FROM tab0
----
-2013
-61
-82

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT + col2 + - CAST ( col1 + - col0 AS INTEGER ) * + col2 FROM tab0
----
-2013
-61
-82

query I rowsort
SELECT ALL col0 + + ( col0 ) AS col1 FROM tab2
----
14
156
158

query I rowsort
SELECT cor0.col1 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - + cor0.col1 * col2 * 71 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-108940
-45904
-59454

query I rowsort
SELECT DISTINCT + col1 - col2 * + ( col1 ) AS col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL - col0 - + col1 * col0 AS col0 FROM tab1
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2384
SELECT col0 * - CAST( NULL AS SIGNED ) - - 69 * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT col0 * - CAST ( NULL AS INTEGER ) - - 69 * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 * col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + - col0 - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + tab0.col0 * ( col1 ) + col2 AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL 48 * cor0.col0 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT ALL - + 40 - cor0.col0 FROM tab2 AS cor0
----
-118
-119
-47

query I rowsort
SELECT ALL + - col2 * - col2 - - col1 * ( ( cor0.col1 ) ) FROM tab1 AS cor0
----
3349
3592
9385

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2391
SELECT DISTINCT + col0 * ( + col2 + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT + col0 * ( + col2 + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + ( col0 ) + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col0 + col1 * col1 * + col2 FROM tab2
----
11061
25954
90584

query I rowsort
SELECT DISTINCT - col1 + - col0 * + ( cor0.col0 ) FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + 45 + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1134
46
6769

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT DISTINCT + cor0.col0 DIV - CAST( - 38 * cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT + cor0.col0 / - CAST ( - 38 * cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col1 * - 41 + col1 * - col1 FROM tab1 AS cor0
----
-1742
-510
-702

query I rowsort
SELECT ALL col1 * - 9 FROM tab1 AS cor0
----
-117
-234
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2400
SELECT ALL - cor0.col0 * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - cor0.col0 * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + - col2 * col0 - + col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + col0 * - 37 + col2 + cor0.col0 * - col2 * col1 FROM tab1 AS cor0
----
-102704
-38791
-4269

query I rowsort
SELECT DISTINCT - col2 * - col2 + + col0 + + col2 * - cor0.col1 FROM tab1 AS cor0
----
1515
2743
8048

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT ALL col2 DIV 93 + col0 DIV col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL col2 / 93 + col0 / col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 - col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT - col1 + col0 FROM tab1 cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2407
SELECT ALL cor0.col1 * CAST( col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL cor0.col1 * CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - col0 - ( 65 ) FROM tab1 AS cor0
----
-1
-62
15

query I rowsort
SELECT col1 + ( cor0.col2 ) FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - col0 + 20 AS col1 FROM tab1 cor0
----
-44
-60
17

query I rowsort
SELECT DISTINCT - col0 * 5 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
20537
32096
99

query I rowsort
SELECT ALL - cor0.col0 - + 88 FROM tab1 AS cor0
----
-152
-168
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT ALL + col0 DIV ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + col0 / ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT 49 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to e587c122dea39a2488ff88b884cea462

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2415
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / - ( col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / - ( col1 ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 29 col2 FROM tab0
----
2378
29
957

query I rowsort
SELECT ( + tab2.col1 + col2 ) FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 + + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - cor0.col2 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( col2 * + 63 ) col2 FROM tab0 AS cor0
----
-2055
-28
-5077

query I rowsort
SELECT DISTINCT 4 - + col0 FROM tab0 AS cor0
----
-20
-31
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT ALL - + col0 * - col1 - + 61 DIV col1 FROM tab2 AS cor0
----
1340
216
4601

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - + col0 * - col1 - + 61 / col1 FROM tab2 AS cor0
----
1340
216
4601

query I rowsort
SELECT DISTINCT + col0 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col2 * col1 * + col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL - + col2 * cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - 0 * col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col1 + col0 * 40 AS col2 FROM tab2 AS cor0
----
311
3177
3179

query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col2 * 91 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT ALL - col2 * + col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2431
SELECT ALL + + cor0.col1 + + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2432
SELECT + col0 * - CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2432
SELECT + col0 * - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + 8 * - col2 FROM tab0 AS cor0
----
-178
-565
89

query I rowsort
SELECT + + col1 * + 27 + col0 AS col0 FROM tab0 AS cor0
----
2346
2546
2654

query I rowsort
SELECT DISTINCT - cor0.col1 + ( col1 ) * cor0.col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + col2 + 89 * col1 AS col1 FROM tab2 AS cor0
----
1551
2786
5277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2437
SELECT col2 + CAST( NULL AS SIGNED ) * - 53 / col1 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT col2 + CAST ( NULL AS INTEGER ) * - 53 / col1 + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * ( col2 ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col1 * 65 * 77 AS col1 FROM tab2 AS cor0
----
155155
295295
85085

query I rowsort
SELECT ALL - + col1 * col2 + 41 * col2 FROM tab0 AS cor0
----
-1485
-4100
-56

query I rowsort
SELECT DISTINCT + col0 + + col0 - + ( + col1 ) AS col0 FROM tab0
----
-27
-38
87

query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) * col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT col0 + - 28 * col0 FROM tab2 AS cor0
----
-189
-2106
-2133

query I rowsort
SELECT + col2 * col0 + 18 * - col1 FROM tab2 AS cor0
----
-369
2696
966

query I rowsort
SELECT DISTINCT + col2 * col2 + - col1 * - cor0.col0 + - col1 * + cor0.col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + col1 + 28 * - col1 * col2 FROM tab2 cor0
----
-18071
-23405
-42893

onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT ALL col1 DIV CAST( col1 AS SIGNED ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL col1 / CAST ( col1 AS INTEGER ) FROM tab1
----
1
1
1

query I rowsort
SELECT + 95 AS col2 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT - + col1 * cor0.col2 + col0 + - col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - + ( + col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + ( + col2 * 84 + - col0 * col1 ) AS col2 FROM tab2 AS cor0
----
-2392
1887
2078

query I rowsort
SELECT + cor0.col0 * - 91 FROM tab2, tab1, tab2 cor0
----
27 values hashing to aec7bbae8476b347efc159ce1c38ce7c

query I rowsort
SELECT DISTINCT - col0 + ( + 64 ) * + col2 FROM tab0
----
2088
29
5159

query I rowsort
SELECT 86 * 7 FROM tab2, tab1 AS cor0
----
9 values hashing to 63230353eaa88f06b2c20acd55fcb7d7

query I rowsort
SELECT ALL + 97 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
81 values hashing to f1d3319b9491f64621f2dbb0808458ca

query I rowsort
SELECT + cor1.col0 + - 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c40bd53edd70afdee150a60e2d3a53da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col1 FROM tab1, tab1 cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT + CAST( + col1 AS SIGNED ) + - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-2458
SELECT + CAST ( + col1 AS INTEGER ) + - col0 / col1 AS col1 FROM tab1 AS cor0
----
26
4
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2459
SELECT - 86 + col1 * - col2 + CAST( col2 * + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-2459
SELECT - 86 + col1 * - col2 + CAST ( col2 * + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT + col0 + + ( + col2 ) + col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL + col2 + col2 AS col0 FROM tab0
----
164
2
66

query I rowsort
SELECT + - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT - 35 * - col2 + - 98 FROM tab1 AS cor0
----
1792
1897
3262

query I rowsort
SELECT ALL + - 84 * col1 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT + col0 + - col0 * col2 FROM tab1 cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2466
SELECT ALL - 74 * col1 + CAST( NULL AS SIGNED ) * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - 74 * col1 + CAST ( NULL AS INTEGER ) * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 40 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2468
SELECT ALL col1 * CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * col0 - col2 * col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2470
SELECT ALL - col0 - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL - col0 - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT cor0.col2 - - col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col1 * col2 - + 88 AS col0 FROM tab0 AS cor0
----
2750
7374
9

query I rowsort
SELECT - cor0.col2 + 55 * 8 AS col0 FROM tab0 AS cor0
----
358
407
439

query I rowsort
SELECT - + col1 - col0 * + col0 * + col0 AS col0 FROM tab1 AS cor0
----
-262154
-512013
-53

query I rowsort
SELECT ALL 47 + - col0 * col1 + + col1 FROM tab1
----
-5
-583
-980

query I rowsort
SELECT - - col2 * + col1 + + 46 FROM tab1 AS cor0
----
1294
1450
616

query I rowsort
SELECT + col1 * col0 - 65 * col0 FROM tab2 AS cor0
----
-238
-3792
-468

query I rowsort
SELECT ALL + col2 * col1 + + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT DISTINCT ( col1 ) * 18 AS col2 FROM tab0 AS cor0
----
1548
1638
1746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) * col2 + col1 * col2 col0 FROM tab2 cor0
----
1292
1674
3068

query I rowsort
SELECT ALL + - col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 19 + col1 * col1 FROM tab2 AS cor0
----
308
3500
980

query I rowsort
SELECT - + 0 + + col1 FROM tab1 cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + + col2 col0 FROM tab0 AS cor0
----
119
168
87

query I rowsort
SELECT - col2 * - col0 + ( col1 ) * col0 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT cor0.col2 - col0 AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - 39 FROM tab0, tab2 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT col1 * 21 * - col2 FROM tab1 AS cor0
----
-11970
-26208
-29484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 25 col0 FROM tab0 AS cor0
----
2150
2275
2425

query I rowsort
SELECT - + col2 + + 48 AS col1 FROM tab0 AS cor0
----
-34
15
47

query I rowsort
SELECT - + 7 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2493
SELECT DISTINCT - cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT DISTINCT - cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 81 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + cor0.col0 + 46 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4bd41d87f594e7de8d719112fd952069

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2496
SELECT - 46 * + cor0.col0 + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2496
SELECT - 46 * + cor0.col0 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - cor0.col0 FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT DISTINCT - - 49 + + 45 FROM tab1 AS cor0
----
94

query I rowsort
SELECT + ( + 10 ) FROM tab2 AS cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 71 col2 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL - col0 + + 83 AS col1 FROM tab2 AS cor0
----
4
5
76

query I rowsort
SELECT cor0.col2 * ( - cor0.col0 ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to b0121644d0817627bc8036c50f8e780d

query I rowsort
SELECT ALL + - 31 AS col2 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT + ( tab2.col2 + col2 ) FROM tab2
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT - col2 * col0 DIV + 83 FROM tab2 AS cor0
----
-2
-24
-36

skipif mysql # not compatible
query I rowsort label-2505
SELECT - col2 * col0 / + 83 FROM tab2 AS cor0
----
-2
-24
-36

query I rowsort
SELECT ALL - 64 * + col0 FROM tab1
----
-192
-4096
-5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT col1 DIV - tab2.col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2507
SELECT col1 / - tab2.col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + 66 + + tab0.col2 FROM tab0
----
148
67
99

query I rowsort
SELECT - - 51 * col1 + col1 AS col2 FROM tab0 cor0
----
4472
4732
5044

query I rowsort
SELECT DISTINCT + tab0.col2 + col0 - col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT ALL - col2 DIV + col0 - col1 FROM tab0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - col2 / + col0 - col1 FROM tab0
----
-87
-91
-97

query I rowsort
SELECT col1 * + 14 AS col0 FROM tab1
----
140
182
364

query I rowsort
SELECT DISTINCT - - 22 + cor0.col1 * 39 * 34 AS col2 FROM tab2 cor0
----
22564
41128
78256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + cor0.col2 * 46 FROM tab2, tab2 AS cor0
----
9 values hashing to 2f53a5db2c498f0c4222038921362b37

query I rowsort
SELECT DISTINCT + col0 * col1 - + col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL + - col0 * col1 + 3 FROM tab2 AS cor0
----
-1340
-214
-4599

query I rowsort
SELECT cor0.col1 * col0 + + ( col1 ) * + cor0.col0 AS col0 FROM tab1 cor0
----
1280
156
2080

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( ( + col0 ) * + col1 AS REAL ) AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL tab1.col0 * + 4 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c869b379fe98cdee67da4c5f4278bf85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2521
SELECT ( col0 ) + CAST( - 57 AS SIGNED ) + - tab1.col0 AS col1 FROM tab1
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-2521
SELECT ( col0 ) + CAST ( - 57 AS INTEGER ) + - tab1.col0 AS col1 FROM tab1
----
-57
-57
-57

query I rowsort
SELECT tab0.col0 * col2 * + col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - col1 * - col0 + 36 AS col2 FROM tab0
----
2100
3431
8135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * col1 + - ( + 0 ) * col0 * + col1 col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT ( + col0 ) * col1 + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT col2 * col0 + 86 FROM tab1
----
248
3734
7766

query I rowsort
SELECT - col0 * col2 + ( col1 ) * col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT - col2 - - cor0.col1 AS col2 FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + col2 * + col2 col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT - col0 + col0 + + 7 AS col1 FROM tab1
----
7
7
7

query I rowsort
SELECT DISTINCT + + ( col0 ) + - col1 + - 28 FROM tab2 AS cor0
----
-52
-9
34

query I rowsort
SELECT DISTINCT - 10 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
-101
-807
-839

query I rowsort
SELECT + + col1 * col2 + + 50 * - 22 AS col1 FROM tab1 AS cor0
----
-530
148
304

query I rowsort
SELECT ALL + 12 * - col0 AS col1 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab2 AS cor0
----
42

query I rowsort
SELECT ALL + col1 * + 59 AS col2 FROM tab0
----
5074
5369
5723

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL - col1 * + 65 FROM tab0
----
-5590
-5915
-6305

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 87 ) col1 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT - col0 - col0 AS col1 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT + col1 * - 28 FROM tab0 AS cor0
----
-2408
-2548
-2716

query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2543
SELECT - - CAST( - 42 AS SIGNED ) + + col2 * - col2 FROM tab0 cor0
----
-1131
-43
-6766

skipif mysql # not compatible
query I rowsort label-2543
SELECT - - CAST ( - 42 AS INTEGER ) + + col2 * - col2 FROM tab0 cor0
----
-1131
-43
-6766

query I rowsort
SELECT DISTINCT - 67 + + col0 * + col0 - ( col0 ) AS col1 FROM tab1 AS cor0
----
-61
3965
6253

query I rowsort
SELECT + 9 AS col0 FROM tab1 cor0
----
9
9
9

query I rowsort
SELECT DISTINCT + 69 * 53 + + col0 FROM tab1 AS cor0
----
3660
3721
3737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col0 FROM tab0 cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 68 col0 FROM tab1 AS cor0
----
3672
3876
6528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2549
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col0 + - col0 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT CAST ( NULL AS REAL ) * col0 + - col0 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * 35 FROM tab1 AS cor0
----
350
455
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT DISTINCT - + 4 * - 38 + col0 * ( - col2 ) DIV col0 AS col2 FROM tab1 AS cor0
----
56
95
98

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT - + 4 * - 38 + col0 * ( - col2 ) / col0 AS col2 FROM tab1 AS cor0
----
56
95
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2552
SELECT ALL - cor0.col2 DIV 45 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL - cor0.col2 / 45 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT 96 AS col1 FROM tab2 AS cor0
----
96
96
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2554
SELECT ALL - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + - 58 + + cor0.col2 FROM tab0 cor0
----
-25
-57
24

query I rowsort
SELECT DISTINCT + 99 FROM tab1 cor0
----
99

query I rowsort
SELECT ALL - ( cor0.col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2559
SELECT ALL CAST( - 33 AS SIGNED ) * - col0 + 29 AS col1 FROM tab1 AS cor0
----
128
2141
2669

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL CAST ( - 33 AS INTEGER ) * - col0 + 29 AS col1 FROM tab1 AS cor0
----
128
2141
2669

query I rowsort
SELECT + ( col2 ) * 94 FROM tab1
----
5076
5358
9024

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f

query I rowsort
SELECT - 86 * - col0 AS col0 FROM tab2
----
602
6708
6794

query I rowsort
SELECT + ( + cor0.col0 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + - col0 + col0 * col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT - - col2 DIV + 16 AS col1 FROM tab0 AS cor0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-2565
SELECT - - col2 / + 16 AS col1 FROM tab0 AS cor0
----
0
2
5

query I rowsort
SELECT DISTINCT + col0 + 75 * ( col0 ) FROM tab2 AS cor0
----
532
5928
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT DISTINCT - - col1 + + col2 DIV col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT - - col1 + + col2 / col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 AS col1 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + col0 col1 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT DISTINCT - col2 DIV col0 + col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT - col2 / col0 + col0 FROM tab1
----
-15
64
79

query I rowsort
SELECT cor0.col2 * - tab1.col0 * 4 AS col1 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 1d5f8efa1ca7e31a88ac9475ebba87b6

query I rowsort
SELECT 33 + - col0 * - col1 FROM tab1
----
1073
111
673

query I rowsort
SELECT 78 * 79 FROM tab2
----
6162
6162
6162

query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 99 * - 81 FROM tab1 AS cor0
----
-8019
-8019
-8019

query I rowsort
SELECT ALL - - 39 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-47
-52
-58

query I rowsort
SELECT DISTINCT - 70 * col1 + - col0 AS col0 FROM tab0
----
-6044
-6459
-6825

onlyif mysql # use DIV operator for integer division
query I rowsort label-2578
SELECT DISTINCT - + 77 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-25
0

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - + 77 / + cor0.col0 FROM tab1 AS cor0
----
-1
-25
0

query I rowsort
SELECT + - 64 * + ( + col0 ) - col0 * 86 AS col2 FROM tab0 AS cor0
----
-13350
-3600
-5250

query I rowsort
SELECT - col2 * + col2 * cor0.col2 + col1 FROM tab1 AS cor0
----
-157438
-185183
-884723

query I rowsort
SELECT DISTINCT + + 40 + col2 * - 0 FROM tab2 AS cor0
----
40

query I rowsort
SELECT ALL + - ( col0 ) + - col1 FROM tab2 AS cor0
----
-137
-38
-96

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

query I rowsort
SELECT - 43 + - col1 AS col0 FROM tab2 AS cor0
----
-102
-60
-74

query I rowsort
SELECT DISTINCT - 87 + + col0 * col1 FROM tab2 AS cor0
----
1256
130
4515

query I rowsort
SELECT - col0 * - cor0.col0 + + ( - col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-69
3456
5360

query I rowsort
SELECT DISTINCT - 96 * col1 + col2 FROM tab0 AS cor0
----
-8223
-8654
-9311

query I rowsort
SELECT - + col2 * cor0.col1 - - col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2589
SELECT ALL - col2 * col1 DIV + col0 FROM tab1 AS cor0
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL - col2 * col1 / + col0 FROM tab1 AS cor0
----
-15
-468
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 65 col1 FROM tab2
----
-455
-5070
-5135

skipif mysql # not compatible
query I rowsort
SELECT + 73 * + col1 + + col0 + + CAST ( col2 AS REAL ) FROM tab2
----
1358
2297
4411

query I rowsort
SELECT DISTINCT 6 + - col0 FROM tab2
----
-1
-72
-73

query I rowsort
SELECT 59 * + col2 - + ( col1 + + cor0.col2 ) * ( 93 ) AS col2 FROM tab2 AS cor0
----
-2873
-3801
-6371

query I rowsort
SELECT ALL tab2.col0 * tab2.col1 * + tab2.col2 - col1 FROM tab2
----
119593
51017
5828

query I rowsort
SELECT - col2 + col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-157
-265
-730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2596
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2596
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) * 94 * col1 col2 FROM tab1 AS cor0
----
-60160
-7332
-97760

query I rowsort
SELECT DISTINCT 83 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
83

skipif mysql # not compatible
query I rowsort
SELECT 31 + col1 - CAST ( + col2 AS REAL ) FROM tab1 AS cor0
----
-16
-52
3

query I rowsort
SELECT - col0 + + col0 * - col2 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2601
SELECT + col0 + CAST( NULL AS SIGNED ) 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-2601
SELECT + col0 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 79 + - col2 FROM tab1 AS cor0
----
-1123
-2108
-847

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2603
SELECT ALL cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 34 * - 32 FROM tab0 AS cor0
----
-1053
-1064
-999

query I rowsort
SELECT - col0 * - tab2.col0 AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL tab1.col1 * + col2 AS col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT - - col1 * cor0.col2 + - col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-2607
SELECT - - col1 * cor0.col2 + - col2 / - col1 AS col1 FROM tab2 AS cor0
----
1534
648
837

query I rowsort
SELECT DISTINCT col0 * col2 AS col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2609
SELECT - - cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2609
SELECT - - cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2610
SELECT - 66 DIV + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2610
SELECT - 66 / + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - - ( + 33 ) * - col2 + ( col1 ) FROM tab0 AS cor0
----
-1003
-2615
64

query I rowsort
SELECT DISTINCT + col2 * 64 AS col0 FROM tab1
----
3456
3648
6144

query I rowsort
SELECT - 98 + col1 * col1 FROM tab0 AS cor0
----
7298
8183
9311

query I rowsort
SELECT ( 79 ) FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT - cor0.col1 + 32 FROM tab1 AS cor0
----
19
22
6

query I rowsort
SELECT ALL 48 AS col1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT + + cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL col2 * + 8 - - col2 AS col2 FROM tab2
----
234
243
342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col1 col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2620
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 66 * - 27 + col2 FROM tab2 AS cor0
----
-1744
-1755
-1756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2622
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) + col0 FROM tab2 cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) + col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT ALL + ( 73 ) + col1 DIV + 39 AS col1 FROM tab2 AS cor0
----
73
73
74

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL + ( 73 ) + col1 / + 39 AS col1 FROM tab2 AS cor0
----
73
73
74

query I rowsort
SELECT - + col0 * + col1 + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort
SELECT + col0 * - CAST ( - col1 AS REAL ) * col0 + + ( + col2 ) FROM tab1
----
288
41017
83296

query I rowsort
SELECT ALL - 1 * col1 - col1 AS col0 FROM tab1 cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT DISTINCT + - CAST( col0 AS SIGNED ) + col1 * 54 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
114
169

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) + col1 * 54 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
114
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - - 56 AS col0 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT - 40 * col2 * - cor0.col2 FROM tab0 AS cor0
----
268960
40
43560

query I rowsort
SELECT DISTINCT 70 * - col2 + - col2 * - 80 FROM tab2 cor0
----
260
270
380

query I rowsort
SELECT DISTINCT 90 - - 46 AS col2 FROM tab2 AS cor0
----
136

query I rowsort
SELECT DISTINCT + 20 + 88 FROM tab1 cor0
----
108

query I rowsort
SELECT ( - 63 ) + + col0 AS col1 FROM tab1 AS cor0
----
-60
1
17

query I rowsort
SELECT ALL + col2 * col1 AS col1 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT DISTINCT - - col0 * ( col0 ) + col1 + + 16 * + col1 DIV cor0.col1 FROM tab0 AS cor0
----
1338
678
8028

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - - col0 * ( col0 ) + col1 + + 16 * + col1 / cor0.col1 FROM tab0 AS cor0
----
1338
678
8028

query I rowsort
SELECT - - 68 * col0 + col2 AS col0 FROM tab0 AS cor0
----
1665
2381
6134

query I rowsort
SELECT ALL - - col0 + col1 + col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT DISTINCT 21 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-10
-38
4

query I rowsort
SELECT ALL + col1 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2641
SELECT + ( 95 ) DIV + col1 + col2 * col1 * - col1 FROM tab1 AS cor0
----
-16217
-36501
-5691

skipif mysql # not compatible
query I rowsort label-2641
SELECT + ( 95 ) / + col1 + col2 * col1 * - col1 FROM tab1 AS cor0
----
-16217
-36501
-5691

query I rowsort
SELECT ALL + + ( col0 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - 86 + - cor0.col2 * + col1 FROM tab1 AS cor0
----
-1334
-1490
-656

onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT - col2 DIV + col0 - - 84 AS col1 FROM tab1
----
66
83
84

skipif mysql # not compatible
query I rowsort label-2644
SELECT - col2 / + col0 - - 84 AS col1 FROM tab1
----
66
83
84

query I rowsort
SELECT - 69 + col2 FROM tab0
----
-36
-68
13

query I rowsort
SELECT - ( cor0.col0 ) * col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL col2 * col2 - + 25 FROM tab2 cor0
----
1419
651
704

query I rowsort
SELECT ALL + col0 + 65 * cor0.col1 FROM tab0 AS cor0
----
5614
6004
6340

query I rowsort
SELECT DISTINCT + cor0.col1 - + ( col1 * + col1 ) FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL + col2 + col0 * - col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - 90 * + 42 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9326c766fc15f93be1bb2b65f2fa4de1

query I rowsort
SELECT - - col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col1 * + 46 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + col0 * cor0.col1 * col0 FROM tab1 cor0
----
234
40960
83200

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 38 col0 FROM tab2 cor0
----
-266
-2964
-3002

query I rowsort
SELECT ALL + + col0 * - 7 * - 76 FROM tab1 AS cor0
----
1596
34048
42560

query I rowsort
SELECT col1 + - ( 83 ) * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2653
-6715
14

query I rowsort
SELECT DISTINCT col2 + col0 * + 79 FROM tab1 AS cor0
----
291
5113
6416

query I rowsort
SELECT DISTINCT + col2 * ( - 65 + cor0.col0 ) * + col0 FROM tab1 AS cor0
----
-10044
-3648
115200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2662
SELECT col1 + col0 DIV + 83 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2662
SELECT col1 + col0 / + 83 FROM tab2 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT DISTINCT + cor0.col1 + - CAST( col0 AS SIGNED ) * + col0 * - col1 FROM tab0 AS cor0
----
118922
49622
720902

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT + cor0.col1 + - CAST ( col0 AS INTEGER ) * + col0 * - col1 FROM tab0 AS cor0
----
118922
49622
720902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + 45 col1 FROM tab1 cor0
----
145
214
721

query I rowsort
SELECT DISTINCT cor0.col0 * + ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( cor0.col2 ) * + col2 col1 FROM tab1 AS cor0
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT DISTINCT + + cor0.col1 * - ( + cor0.col1 ) * + ( + col0 ) - col1 DIV - 38 col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2667
SELECT DISTINCT + + cor0.col1 * - ( + cor0.col1 ) * + ( + col0 ) - col1 / - 38 col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT - col1 + cor0.col2 * col0 AS col0 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + + ( + col0 ) + + col1 AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - 19 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT + 65 * - col1 AS col1 FROM tab0 AS cor0
----
-5590
-5915
-6305

query I rowsort
SELECT - ( + 53 ) * + col0 AS col2 FROM tab0
----
-1272
-1855
-4717

query I rowsort
SELECT 78 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
243 values hashing to d8a9a05ef9648304bbab29d7e33ea339

query I rowsort
SELECT - ( - 16 ) * + col1 AS col1 FROM tab1
----
160
208
416

query I rowsort
SELECT - 9 * col2 + col0 FROM tab1
----
-449
-483
-784

query I rowsort
SELECT DISTINCT + col0 + - col0 + - col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 97 * + col1 - - col0 * + 88 * - col0 AS col1 FROM tab0
----
-42346
-688221
-98391

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT DISTINCT + ( - col2 ) DIV - ( col2 ) + col1 AS col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + ( - col2 ) / - ( col2 ) + col1 AS col0 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT + 71 - col1 AS col1 FROM tab1
----
45
58
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - tab1.col1 * + 54 FROM tab1, tab0 cor0, tab0 AS cor1
----
-1404
-540
-702

query I rowsort
SELECT + cor0.col0 + col1 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + tab1.col1 * - col0 * col0 AS col1 FROM tab1
----
-234
-40960
-83200

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - col0 / col1 )
----

query I rowsort
SELECT + 73 * cor0.col2 - col0 AS col2 FROM tab2 AS cor0
----
1820
1964
2695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 * - col0 + col0 - + col1 col2 FROM tab0
----
-27
7296
730

query I rowsort
SELECT DISTINCT - col1 + - col2 - + col2 AS col1 FROM tab1
----
-124
-134
-205

onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT - col2 DIV - col1 - col2 DIV tab1.col2 FROM tab1
----
1
4
6

skipif mysql # not compatible
query I rowsort label-2692
SELECT - col2 / - col1 - col2 / tab1.col2 FROM tab1
----
1
4
6

query I rowsort
SELECT + 37 * col2 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT 56 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT + col0 + 32 * col0 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - + 70 + cor0.col1 FROM tab0 AS cor0
----
16
21
27

query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT + ( - col0 ) + + cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT col2 FROM tab0 WHERE col1 = col2 * - col2
----

query I rowsort
SELECT - col2 * - col1 * col2 + + tab1.col1 - - col0 FROM tab1
----
119901
32564
75845

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + col2 * tab0.col0 )
----

query I rowsort
SELECT DISTINCT col0 * col2 + + col2 FROM tab0
----
36
7380
825

query III rowsort
SELECT * FROM tab0 WHERE NULL = col2 * + col1 - col1 * col2 / col2
----

query I rowsort
SELECT col1 + + col2 + col0 AS col1 FROM tab1
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT - tab0.col1 + col1 DIV col2 AS col0 FROM tab0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-2706
SELECT - tab0.col1 + col1 / col2 AS col0 FROM tab0
----
-84
-90
0

query I rowsort
SELECT ALL col1 * - col0 + col0 AS col0 FROM tab1
----
-576
-75
-960

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <> col2
----

query I rowsort
SELECT DISTINCT col0 * - tab0.col0 * col2 FROM tab0 WHERE ( - col1 ) NOT IN ( + col0 )
----
-1225
-19008
-649522

query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) > col1
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( - col0 + col1 + col0 )
----

query I rowsort
SELECT ALL col1 * + col1 - + col1 AS col1 FROM tab1
----
156
650
90

query I rowsort
SELECT DISTINCT + col2 * col1 * - col2 AS col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT - col0 * col1 * col1 AS col1 FROM tab0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * col1 col2 FROM tab1
----
164
249
679

query I rowsort
SELECT tab1.col1 + tab1.col1 + col2 AS col1 FROM tab1
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT DISTINCT col0 * + col1 - - tab2.col0 DIV + tab2.col0 AS col1 FROM tab2
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT col0 * + col1 - - tab2.col0 / + tab2.col0 AS col1 FROM tab2
----
1344
218
4603

query I rowsort
SELECT + col0 + tab0.col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT 43 * 34 AS col1 FROM tab1
----
1462

query I rowsort
SELECT DISTINCT tab2.col2 * - tab2.col1 AS col2 FROM tab2, tab0 cor0
----
-1534
-646
-837

query I rowsort
SELECT + 64 AS col0 FROM tab1
----
64
64
64

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
24
35
89

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

query I rowsort
SELECT - col0 * cor0.col1 + + 3 FROM tab0 AS cor0
----
-2061
-3392
-8096

query I rowsort
SELECT 25 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2726
SELECT ALL cor0.col1 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL cor0.col1 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 86 AS col0 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT ALL - col1 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - col0 + + ( + col0 ) + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col2 * - col1 + 24 + col0 AS col0 FROM tab0 AS cor0
----
-2790
-38
-7349

query I rowsort
SELECT + col0 + col2 + ( - col2 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + col1 * + col1 * + col2 + + col0 AS col1 FROM tab2 AS cor0
----
11061
25954
90584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2733
SELECT + col1 * 94 DIV - col1 + - col1 FROM tab1 AS cor0
----
-104
-107
-120

skipif mysql # not compatible
query I rowsort label-2733
SELECT + col1 * 94 / - col1 + - col1 FROM tab1 AS cor0
----
-104
-107
-120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col1 + 88 * cor0.col2 col0 FROM tab0 cor0
----
150
2966
7218

onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT col2 * + 63 + 62 DIV col2 FROM tab1 AS cor0
----
3403
3592
6048

skipif mysql # not compatible
query I rowsort label-2735
SELECT col2 * + 63 + 62 / col2 FROM tab1 AS cor0
----
3403
3592
6048

query I rowsort
SELECT - col1 * + cor0.col2 + - 59 + + col1 FROM tab2 AS cor0
----
-1534
-688
-865

query I rowsort
SELECT + col0 * + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT ( cor0.col1 ) * 99 FROM tab1, tab1 cor0
----
9 values hashing to 6f145882e7bb0bbb2b1665f06415703e

query I rowsort
SELECT ALL - cor2.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 cor1, tab1, tab0 cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59

query I rowsort
SELECT + - col2 * + col1 * - col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT col0 * col1 * + col0 + col1 FROM tab1
----
260
40970
83213

query I rowsort
SELECT DISTINCT + tab0.col2 * - col2 AS col2 FROM tab0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2744
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2744
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT - col2 DIV - 64 + tab0.col2 * - col1 AS col0 FROM tab0
----
-2838
-7461
-97

skipif mysql # not compatible
query I rowsort label-2745
SELECT - col2 / - 64 + tab0.col2 * - col1 AS col0 FROM tab0
----
-2838
-7461
-97

query I rowsort
SELECT ALL - + 80 FROM tab1 AS cor0
----
-80
-80
-80

query I rowsort
SELECT 13 * + col1 AS col2 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT DISTINCT - - col1 + - cor0.col0 + - col1 * - col0 * col2 FROM tab0 AS cor0
----
3457
664120
68174

query I rowsort
SELECT - - ( col1 ) * col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col2 * + col2 + - col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL - col2 + - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-124
-134
-205

query I rowsort
SELECT + ( 34 ) FROM tab0
----
34
34
34

query I rowsort
SELECT + cor0.col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL col2 * col0 * + col1 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT ( - 6 ) AS col0 FROM tab2
----
-6

query I rowsort
SELECT + tab0.col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT - col0 * - col1 - - tab1.col1 * col1 * col1 AS col2 FROM tab1
----
1640
17654
3237

query I rowsort
SELECT 61 - + col2 AS col0 FROM tab0
----
-21
28
60

query I rowsort
SELECT DISTINCT + ( col2 ) * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col1 + + 61 FROM tab2 AS cor0
----
2
30
44

query I rowsort
SELECT 21 FROM tab0, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + 64 FROM tab1, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT ALL 82 FROM tab2, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + cor0.col1 + - col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + ( col2 ) * col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT ( - col1 ) * col1 * + cor0.col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - + col2 * col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2769
SELECT ALL - CAST( - col1 AS SIGNED ) + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - CAST ( - col1 AS INTEGER ) + + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT - 25 * - col1 AS col1 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT ALL + col2 + col2 * - cor0.col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL + 54 * + col1 + col2 + + col1 FROM tab2 AS cor0
----
1732
3271
973

query I rowsort
SELECT ALL col0 + - col0 * - col2 AS col1 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT + col0 + + cor0.col2 DIV col2 col1 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2774
SELECT + col0 + + cor0.col2 / col2 col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + col2 + col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT col2 * col2 + + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-2777
SELECT ALL + col1 - - col1 DIV - cor0.col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + col1 - - col1 / - cor0.col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT - + col0 + - col2 * + col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT col0 + - col0 * col0 FROM tab1 AS cor0
----
-4032
-6
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col0 col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col0 * + col1 + + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND ( + col2 )
----

query I rowsort
SELECT ALL - col0 * + cor0.col2 * col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( + col0 )
----

query I rowsort
SELECT DISTINCT + + col1 * - col1 * + col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + col1 + - cor0.col0 * col2 * col0 AS col2 FROM tab2 AS cor0
----
-1292
-158125
-237141

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT ALL - col1 * - col2 + - col0 + + col1 * - col2 AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL + + col2 + col2 + - col2 AS col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL col1 + - tab1.col2 - + col0 AS col1 FROM tab1
----
-111
-163
-31

query I rowsort
SELECT col1 * - col0 - - col1 FROM tab1
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 - col0 col0 FROM tab2
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 + + col0 * + col1 col0 FROM tab2 AS cor0
----
1054
1989
6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2794
SELECT ALL + col1 DIV + col1 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL + col1 / + col1 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + col1 * - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - - col1 * col1 + col0 AS col1 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-2797
SELECT DISTINCT col0 + tab1.col1 DIV tab1.col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT col0 + tab1.col1 / tab1.col1 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 * - col0 AS col1 FROM tab2
----
-1482
-4898
168

query I rowsort
SELECT + col0 * - tab1.col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - col2 * col2 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col2 + col0 * + col2 AS col0 FROM tab1
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT DISTINCT + tab1.col2 DIV - col0 + col2 * - col0 * tab1.col2 FROM tab1
----
-207936
-737281
-8766

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT + tab1.col2 / - col0 + col2 * - col0 * tab1.col2 FROM tab1
----
-207936
-737281
-8766

query I rowsort
SELECT DISTINCT tab0.col0 + col1 + - col2 * col1 * - tab0.col1 FROM tab0
----
244178
679222
9541

query I rowsort
SELECT col0 + + col2 - col0 AS col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + tab1.col2 * col0 col1 FROM tab1
----
108
3591
7584

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 * - col2 * col1 FROM tab1
----
-2808
-35910
-98592

query I rowsort
SELECT + 71 + + tab2.col0 AS col1 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to ac8ad63e402e807c33acf0b8440f68f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2808
SELECT ALL + col2 DIV col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + col2 / col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col1 * ( col0 ) + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col0 * ( col1 ) * + col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + cor0.col1 + - 48 FROM tab2, tab1 AS cor0
----
9 values hashing to 736a1f9bed33cc32404b43fe0994c88c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2812
SELECT ALL - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * ( + col1 + col0 ) * - col0 FROM tab2 AS cor0
----
-277836
-288192
-7182

query I rowsort
SELECT + col2 * + col0 - + col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - col2 - col0 * col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT - col0 + + col0 * 7 FROM tab1 AS cor0
----
18
384
480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT ALL - ( col1 ) / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL - ( col1 ) / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 6 FROM tab2 AS cor0
----
6

query I rowsort
SELECT + - cor0.col1 * col0 * 73 AS col2 FROM tab1 AS cor0
----
-46720
-5694
-75920

query I rowsort
SELECT + - col1 + + col0 * col2 * - col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT - col1 + - tab1.col1 * + col0 FROM tab1
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col1 FROM tab2 cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2823
SELECT - 75 + col0 * + CAST( + col0 AS SIGNED ) FROM tab1
----
-66
4021
6325

skipif mysql # not compatible
query I rowsort label-2823
SELECT - 75 + col0 * + CAST ( + col0 AS INTEGER ) FROM tab1
----
-66
4021
6325

query I rowsort
SELECT + cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT 57 * - col1 AS col1 FROM tab1
----
-1482
-570
-741

query I rowsort
SELECT DISTINCT 72 FROM tab0, tab0 cor0, tab0 AS cor1
----
72

query I rowsort
SELECT 67 * - col0 FROM tab0
----
-1608
-2345
-5963

query I rowsort
SELECT + 86 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * 41 col2 FROM tab0, tab0 cor0
----
9 values hashing to ea1f9b7dbda91382d4df07b675e361c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT 48 DIV - 79 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2831
SELECT 48 / - 79 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT cor0.col1 - 45 AS col1 FROM tab2 AS cor0
----
-14
-28
14

query I rowsort
SELECT DISTINCT 88 * + 55 * col0 FROM tab0
----
116160
169400
430760

query I rowsort
SELECT + - 16 AS col2 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-53

query I rowsort
SELECT DISTINCT + cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT - col2 DIV - col2 + - ( col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort label-2837
SELECT - col2 / - col2 + - ( col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098

query I rowsort
SELECT - cor0.col1 + col0 + col0 * ( col1 ) FROM tab0 AS cor0
----
2002
3333
8097

query I rowsort
SELECT + - 74 AS col2 FROM tab0 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - 36 + - cor0.col2 * + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-1359
-158220
-237194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 83 * col2 * + col2 + 90 col0 FROM tab2 AS cor0
----
119942
56198
60597

query I rowsort
SELECT + 6 * - col2 AS col0 FROM tab1 cor0
----
-324
-342
-576

query I rowsort
SELECT + 50 + 47 AS col1 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT col2 + - 12 * + col0 AS col1 FROM tab2 AS cor0
----
-57
-910
-910

query I rowsort
SELECT ALL + - 17 * + cor0.col2 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT - + 9 * col1 AS col0 FROM tab1 cor0
----
-117
-234
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2848
SELECT DISTINCT + - ( + col0 ) + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + - ( + col0 ) + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 12 + + 33 * col2 FROM tab2 AS cor0
----
1266
870
903

query I rowsort
SELECT - 7 + - cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-56
-6091
-6248

query I rowsort
SELECT DISTINCT - 30 AS col2 FROM tab1 cor0
----
-30

query I rowsort
SELECT DISTINCT + + col2 + - col1 * col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2853
SELECT ALL - CAST( - 46 AS SIGNED ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
138
2944
3680

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL - CAST ( - 46 AS INTEGER ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT DISTINCT + 66 * - 5 * + col1 FROM tab1 AS cor0
----
-3300
-4290
-8580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT DISTINCT - col1 + + col2 * 9 DIV - col1 FROM tab2 AS cor0
----
-37
-38
-62

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT - col1 + + col2 * 9 / - col1 FROM tab2 AS cor0
----
-37
-38
-62

query I rowsort
SELECT ALL + 31 * col0 + col0 * cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
1540
160602
239607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 + + col1 * + cor0.col1 col1 FROM tab1 AS cor0
----
109
40
616

onlyif mysql # use DIV operator for integer division
query I rowsort label-2858
SELECT ALL + col2 DIV cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL + col2 / cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * col1 + + col0 AS col1 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - - col0 * col2 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + ( col0 ) + tab0.col1 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2863
SELECT ( 48 ) + - col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT ( 48 ) + - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - 15 * + 83 FROM tab1 AS cor0
----
-1149
-1188
-1191

query I rowsort
SELECT ALL + - col0 + - ( col1 ) FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT + - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col2 * 55 AS col2 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT ALL - col2 * - 12 * col2 AS col0 FROM tab2 AS cor0
----
17328
8112
8748

query I rowsort
SELECT - cor0.col1 * col1 - col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT ALL - + col0 * - cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT - col0 * + col2 + - col2 * cor0.col1 DIV - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif mysql # not compatible
query I rowsort label-2871
SELECT - col0 * + col2 + - col2 * cor0.col1 / - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL + col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2873
SELECT - cor0.col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT - cor0.col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - cor0.col1 * - 74 AS col2 FROM tab2 AS cor0
----
-1258
-2294
-4366

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab1, tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 AS cor0, tab0 cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749

query I rowsort
SELECT - col0 * + col2 - - col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2878
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 66 AS col0 FROM tab1
----
66
66
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2880
SELECT CAST( NULL AS DECIMAL ) + - tab2.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2880
SELECT CAST ( NULL AS REAL ) + - tab2.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + col1 * col0 + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ( col0 ) + + col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2883
SELECT - CAST( NULL AS SIGNED ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2883
SELECT - CAST ( NULL AS INTEGER ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 49 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1138
50
6773

query I rowsort
SELECT - - col0 + + cor0.col0 * - col0 + col2 * col0 FROM tab1 AS cor0
----
-384
1360
156

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2886
SELECT ALL + + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 8 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2072
-3403
-8107

onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT - cor0.col0 + col1 DIV + col1 + - 30 AS col2 FROM tab1 AS cor0
----
-109
-32
-93

skipif mysql # not compatible
query I rowsort label-2888
SELECT - cor0.col0 + col1 / + col1 + - 30 AS col2 FROM tab1 AS cor0
----
-109
-32
-93

query I rowsort
SELECT - 43 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT col1 + + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2890
SELECT col1 + + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 23 * col0 + tab1.col2 col1 FROM tab1
----
14777
1848
24016

query I rowsort
SELECT ALL - tab2.col2 * col2 + - 59 * + col0 FROM tab2
----
-1142
-5278
-6105

query I rowsort
SELECT tab0.col1 + - ( - 76 ) + col1 AS col0 FROM tab0
----
248
258
270

query I rowsort
SELECT + 55 * - tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 884eec218bd133f49da554b3a6bd45e6

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
87

query I rowsort
SELECT DISTINCT + tab1.col0 + + 9 FROM tab1
----
12
73
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 4 + - col0 col1 FROM tab0
----
-156
-39
-417

onlyif mysql # use DIV operator for integer division
query I rowsort label-2898
SELECT DISTINCT col2 DIV + col1 + - col1 + - col1 col0 FROM tab1
----
-15
-19
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT col2 / + col1 + - col1 + - col1 col0 FROM tab1
----
-15
-19
-50

query I rowsort
SELECT col2 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + + col0 * - 37 FROM tab1 AS cor0
----
-111
-2368
-2960

query I rowsort
SELECT ALL - + 99 AS col1 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT - 64 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-7362
-856
-99

query I rowsort
SELECT DISTINCT - 93 FROM tab2 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - 8 * + col2 AS col0 FROM tab1 cor0
----
-432
-456
-768

query I rowsort
SELECT DISTINCT 68 * - col2 * col1 + 73 + cor0.col2 * - col1 AS col1 FROM tab0 cor0
----
-195749
-514805
-6620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - cor0.col1 * 14 + cor0.col0 FROM tab0 AS cor0
----
-1180
-1185
-1323

query I rowsort
SELECT ALL - + 93 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT - 58 + + col0 * - col2 FROM tab2 AS cor0
----
-2086
-247
-3060

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 AS col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT + col2 * col2 * col1 + col0 FROM tab0
----
132
611973
93678

query I rowsort
SELECT DISTINCT - ( + col1 * + ( 69 ) ) FROM tab1
----
-1794
-690
-897

query I rowsort
SELECT DISTINCT + 33 AS col0 FROM tab0
----
33

query I rowsort
SELECT + 94 + cor0.col2 FROM tab2 AS cor0
----
120
121
132

query I rowsort
SELECT DISTINCT - 88 * + col2 AS col1 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT DISTINCT + 91 + col1 FROM tab2 AS cor0
----
108
122
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 col1 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + col1 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT col0 - - col2 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - col0 * col0 + + col0 AS col2 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT - + cor0.col1 * + col0 - - 37 FROM tab0 AS cor0
----
-2027
-3358
-8062

query I rowsort
SELECT ALL - - cor0.col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - + cor0.col2 * + cor0.col0 - 99 * + col0 AS col0 FROM tab0 AS cor0
----
-16109
-3168
-3500

query I rowsort
SELECT DISTINCT + col0 + 13 + + col0 * + col0 * tab1.col2 FROM tab1
----
233549
502
614493

query I rowsort
SELECT - col0 + - col0 * 37 FROM tab2 AS cor0
----
-266
-2964
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT ALL - col1 DIV + col2 + - 52 * - col2 FROM tab1 cor0
----
2808
2964
4992

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - col1 / + col2 + - 52 * - col2 FROM tab1 cor0
----
2808
2964
4992

query I rowsort
SELECT ALL col1 - + col0 * col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + col0 + ( + col2 * - col0 + + col1 ) FROM tab2 AS cor0
----
-151
-1891
-2906

query I rowsort
SELECT DISTINCT col2 * 91 + col2 FROM tab1 AS cor0
----
4968
5244
8832

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col1 AS REAL ) * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 64 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL - - 29 AS col1 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2935
SELECT + col2 + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-2935
SELECT + col2 + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + col1 + col0 * col0 AS col0 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT ALL tab1.col2 * tab1.col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT tab2.col2 * - 80 AS col2 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 9ec9a4a68bd78ef95e6b1639efbd16fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT + - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT + - col2 / col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL - col1 * ( - 6 ) AS col0 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT ALL cor0.col2 * ( col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 20 + 34 * col2 FROM tab1 AS cor0
----
1856
1958
3284

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2944
SELECT + CAST( - 33 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-2944
SELECT + CAST ( - 33 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + 48 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2946
SELECT 68 DIV + 76 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2946
SELECT 68 / + 76 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2948
SELECT CAST( + col2 AS SIGNED ) * - col2 + CAST( + col1 AS SIGNED ) * + col1 col2 FROM tab0 AS cor0
----
1557
6307
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2948
SELECT CAST ( + col2 AS INTEGER ) * - col2 + CAST ( + col1 AS INTEGER ) * + col1 col2 FROM tab0 AS cor0
----
1557
6307
9408

query I rowsort
SELECT + + 85 + + col0 AS col2 FROM tab0 AS cor0
----
109
120
174

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab0
----
89
89
89

query I rowsort
SELECT DISTINCT - 36 * col2 * + col0 FROM tab0
----
-1260
-262728
-28512

query I rowsort
SELECT cor0.col0 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + - col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + 50 + col1 FROM tab1 cor0
----
60
63
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2956
SELECT + CAST( + col0 AS SIGNED ) * + col0 AS col2 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-2956
SELECT + CAST ( + col0 AS INTEGER ) * + col0 AS col2 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * col2 col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - 97 * col1 AS col2 FROM tab1
----
-1261
-2522
-970

query I rowsort
SELECT 44 * + col0 * - col2 AS col2 FROM tab0
----
-1540
-321112
-34848

query I rowsort
SELECT DISTINCT tab2.col2 * - tab2.col0 * + col0 AS col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT cor0.col2 + + 9 FROM tab0, tab2 AS cor0
----
9 values hashing to 34fd81085212653715dfaa4adbfa6276

query I rowsort
SELECT - col1 + - 65 FROM tab0 AS cor0
----
-151
-156
-162

query I rowsort
SELECT - - col2 * + 83 + + col1 FROM tab2 AS cor0
----
2217
2272
3171

onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT - col2 DIV - 62 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2964
SELECT - col2 / - 62 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + cor0.col2 + cor0.col0 - 93 FROM tab2 AS cor0
----
-59
11
24

query I rowsort
SELECT + 55 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL + 49 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT - cor0.col0 + 22 FROM tab1, tab0 AS cor0
----
9 values hashing to 5f8769a2618295b01ab300c6efb29e58

query I rowsort
SELECT DISTINCT + tab2.col2 * + ( + col2 * - col1 ) AS col1 FROM tab2
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( col1 ) * col2 col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT + col1 + col2 * + 63 * - col2 FROM tab1 cor0
----
-183682
-204677
-580595

query I rowsort
SELECT + col0 + 7 + col0 FROM tab0 cor0
----
185
55
77

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1, tab2 AS cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

onlyif mysql # use DIV operator for integer division
query I rowsort label-2975
SELECT + col1 DIV ( - col0 ) FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2975
SELECT + col1 / ( - col0 ) FROM tab1
----
-8
0
0

query I rowsort
SELECT col2 + cor0.col0 * col2 * + col0 FROM tab1 AS cor0
----
233529
540
614496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT col1 + + tab0.col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL tab0.col2 * col2 + 63 AS col1 FROM tab0
----
1152
64
6787

onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT ( col0 ) + + col1 * tab1.col1 DIV col1 + + ( col0 ) * col1 AS col1 FROM tab1
----
107
1133
714

skipif mysql # not compatible
query I rowsort label-2980
SELECT ( col0 ) + + col1 * tab1.col1 / col1 + + ( col0 ) * col1 AS col1 FROM tab1
----
107
1133
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - tab0.col2 * + col0 col1 FROM tab0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-2982
SELECT - col2 + col0 DIV + 26 FROM tab1
----
-54
-55
-93

skipif mysql # not compatible
query I rowsort label-2982
SELECT - col2 + col0 / + 26 FROM tab1
----
-54
-55
-93

query I rowsort
SELECT 36 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-1289
-858
-965

query I rowsort
SELECT - - cor0.col0 * - col2 * cor0.col0 - col2 * col0 FROM tab0 AS cor0
----
-1260
-19800
-656820

query I rowsort
SELECT DISTINCT - col1 * col0 - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col2 FROM tab2
----
118
34
62

query I rowsort
SELECT + col2 + - col1 + + 89 AS col2 FROM tab0
----
-7
36
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT col1 DIV + col0 + + col2 AS col2 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-2988
SELECT col1 / + col0 + + col2 AS col2 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT col1 + + col2 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + + col0 * 86 + 38 AS col0 FROM tab2 AS cor0
----
640
6746
6832

query I rowsort
SELECT ALL + cor0.col0 * 98 - + cor0.col0 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT ALL + col2 * 64 * - 60 AS col2 FROM tab2 AS cor0
----
-103680
-145920
-99840

query I rowsort
SELECT ALL - cor0.col1 - + col1 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT + + col0 * + col1 + - col0 FROM tab2 cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-2995
SELECT DISTINCT col1 DIV + 34 AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT col1 / + 34 AS col0 FROM tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT col2 + col1 * col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT + - col1 * 0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col0 + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2999
SELECT ALL + + col2 * - CAST( col0 AS SIGNED ) + + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + + col2 * - CAST ( col0 AS INTEGER ) + + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3000
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT + + col1 * col0 + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
2064
3430
8100

skipif mysql # not compatible
query I rowsort label-3001
SELECT + + col1 * col0 + col0 / col2 AS col2 FROM tab0 AS cor0
----
2064
3430
8100

query I rowsort
SELECT DISTINCT + cor0.col2 + 48 AS col0 FROM tab2 AS cor0
----
74
75
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3003
SELECT DISTINCT - cor0.col2 DIV + col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT - cor0.col2 / + col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT DISTINCT 7 * + col0 AS col1 FROM tab1
----
21
448
560

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 58 + col0 * + 50 * - 21 FROM tab0
----
-25142
-36692
-93392

query I rowsort
SELECT + ( + col1 ) * + tab1.col2 - col1 * + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 + 37 * - ( - cor0.col2 * - col0 ) FROM tab2 AS cor0
----
-111036
-6966
-75010

query I rowsort
SELECT + col0 * 24 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT ALL - - col1 + 11 FROM tab2 AS cor0
----
28
42
70

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT ALL + - cor0.col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + 49 * - 95 FROM tab1 AS cor0
----
-4655
-4655
-4655

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3014
SELECT + CAST( + col1 AS SIGNED ) + cor0.col0 * + col0 col0 FROM tab1 AS cor0
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3014
SELECT + CAST ( + col1 AS INTEGER ) + cor0.col0 * + col0 col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT col1 + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL 76 * - col2 AS col1 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT DISTINCT + col0 + - ( + col1 ) FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL + - col1 + + col1 * - col2 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3019
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + CAST ( NULL AS REAL ) * + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 3 * + col0 + col2 FROM tab2 AS cor0
----
-199
-208
6

query I rowsort
SELECT ALL 44 AS col1 FROM tab1 cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - ( + col2 ) + col1 * - CAST ( ( col1 ) AS REAL ) * - col2 AS col2 FROM tab1 AS cor0
----
16320
36558
5757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3023
SELECT DISTINCT - CAST( + cor0.col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3023
SELECT DISTINCT - CAST ( + cor0.col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 + + col2 col2 FROM tab1 AS cor0
----
134
137
176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3025
SELECT + - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3025
SELECT + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col1 * + col1 - + ( 73 ) FROM tab1 AS cor0
----
27
603
96

query I rowsort
SELECT DISTINCT 55 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT - 37 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT + ( col0 ) * + col0 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT DISTINCT + - 29 DIV - col1 - + col0 * col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-114075
-5103
-52728

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT + - 29 / - col1 - + col0 * col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-114075
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT col2 - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-3031
SELECT col2 - col0 / col2 AS col2 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT + col0 * - col0 - - 82 FROM tab2 AS cor0
----
-6002
-6159
33

query I rowsort
SELECT + ( + cor0.col1 ) * - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5

query I rowsort
SELECT col0 + - col0 + tab2.col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ( - col1 ) * col1 AS col1 FROM tab1
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3036
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3036
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3037
SELECT - CAST( NULL AS SIGNED ) * col2 - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT - CAST ( NULL AS INTEGER ) * col2 - - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 52 * col2 AS col1 FROM tab0 AS cor0
----
1716
4264
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT + + 98 + + col2 * cor0.col2 DIV + ( col2 ) AS col1 FROM tab1 AS cor0
----
152
155
194

skipif mysql # not compatible
query I rowsort label-3039
SELECT + + 98 + + col2 * cor0.col2 / + ( col2 ) AS col1 FROM tab1 AS cor0
----
152
155
194

query I rowsort
SELECT ALL - cor0.col0 + col1 + + ( 45 ) AS col1 FROM tab1 AS cor0
----
-22
-9
68

query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT + cor0.col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT - 16 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
1024
1280
48

query I rowsort
SELECT DISTINCT + - 1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + cor0.col1 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL - ( col2 ) * col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col0 * + col1 * - col2 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + - 28 * + col1 * cor0.col1 FROM tab0 AS cor0
----
-207088
-231868
-263452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 28 col2 FROM tab2
----
54
55
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col0 ) * col2 col0 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT + - col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab0, tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT 2 FROM tab0, tab0 AS cor0
----
2

query I rowsort
SELECT ALL + ( col0 ) * col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - cor0.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT + + ( col2 ) + - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 17 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3059
SELECT DISTINCT CAST( col2 AS SIGNED ) DIV - col2 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT CAST ( col2 AS INTEGER ) / - col2 AS col2 FROM tab1
----
-1

query I rowsort
SELECT 17 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + 8 FROM tab0 AS cor0
----
8

query I rowsort
SELECT ALL + - 45 * col0 AS col0 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT ALL - col1 * col0 + + col0 * col2 + 7 * cor0.col0 * 71 AS col0 FROM tab1 AS cor0
----
1575
34816
46400

query I rowsort
SELECT DISTINCT cor0.col1 * col0 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - + col1 * 86 FROM tab0 AS cor0
----
-7396
-7826
-8342

query I rowsort
SELECT ALL + 24 + col1 AS col0 FROM tab2 AS cor0
----
41
55
83

query I rowsort
SELECT ALL + col2 * 29 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
1043
126
2469

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + col1 + col0 ) IN ( + col1 )
----

query I rowsort
SELECT ALL col0 * col1 * col0 AS col1 FROM tab1
----
234
40960
83200

query III rowsort
SELECT * FROM tab2 WHERE ( col1 + col1 ) IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - col1 + - col1 * col2 * col1 AS col1 FROM tab0
----
-244154
-679133
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col1 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT col0 DIV - tab2.col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3073
SELECT col0 / - tab2.col1 AS col1 FROM tab2
----
-1
-4
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= ( - col1 )
----

query I rowsort
SELECT + tab2.col2 * col1 * col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT tab2.col0 * tab2.col1 - col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL tab2.col0 + - col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT col2 + - col2 * col2 * tab2.col2 AS col1 FROM tab2
----
-17550
-19656
-54834

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1 WHERE NULL NOT BETWEEN - col2 * - col0 AND col2 * + col0
----

query I rowsort
SELECT ALL col1 * - col1 + + tab0.col0 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT col2 + + col0 * - col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - col0 + col0 / col0 FROM tab2 WHERE NULL = + col0 * col1
----

query I rowsort
SELECT - col0 + col0 * col1 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT ALL + col0 + col2 - + tab0.col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3087
SELECT + col0 * tab0.col0 DIV col0 + + col0 * col0 + col1 AS col2 FROM tab0
----
1357
686
8101

skipif mysql # not compatible
query I rowsort label-3087
SELECT + col0 * tab0.col0 / col0 + + col0 * col0 + col1 AS col2 FROM tab0
----
1357
686
8101

query I rowsort
SELECT col0 + col2 - tab1.col0 * + col2 FROM tab1
----
-105
-3527
-7504

query I rowsort
SELECT DISTINCT tab0.col1 - col2 AS col2 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3090
SELECT tab2.col0 DIV col1 AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3090
SELECT tab2.col0 / col1 AS col2 FROM tab2
----
0
1
4

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col0 AS col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL - col0 - - col0 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 / + col1 = - col0 + - col2 / + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * col0 FROM tab0 WHERE NOT ( col1 ) > NULL
----

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL col0 * col1 - + col2 * - col1 AS col0 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT + col0 * - col0 * col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT cor0.col1 * col1 - - col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - cor0.col2 * - col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - tab1.col0 + + col1 * col0 * + col2 FROM tab1
----
36416
4209
99760

query I rowsort
SELECT - col1 * col2 * + col1 + col1 FROM tab0 AS cor0
----
-243982
-678951
-9312

query I rowsort
SELECT - col1 - col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL + ( - 54 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT - col0 + - tab1.col0 * + col0 - - col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + col0 * + col2 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - + col1 * ( col1 * col1 ) AS col0 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT 75 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
243 values hashing to 5418e29983129f6ba0e1aa0e11342822

query I rowsort
SELECT + col1 * - 84 - + col1 * + col2 FROM tab0 AS cor0
----
-10062
-15106
-8245

onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT - col1 DIV 75 + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3111
SELECT - col1 / 75 + + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + 65 + col1 FROM tab2 AS cor0
----
124
82
96

query I rowsort
SELECT ALL + 51 * + col2 + col1 + 82 * + col2 * - col2 FROM tab0 AS cor0
----
-547095
-87529
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT col2 DIV - col0 + - col2 + - 32 AS col0 FROM tab1 AS cor0
----
-104
-129
-89

skipif mysql # not compatible
query I rowsort label-3114
SELECT col2 / - col0 + - col2 + - 32 AS col0 FROM tab1 AS cor0
----
-104
-129
-89

query I rowsort
SELECT - col2 + - cor0.col2 + + col1 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT ALL + ( + cor0.col2 ) + col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT 32 FROM tab1, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + - 93 - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4109f6e3b47ad5e1555387f1e2223bd4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3119
SELECT DISTINCT - 58 * - col2 + + col2 * - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT DISTINCT - 58 * - col2 + + col2 * - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab0 AS cor0
----
8

query I rowsort
SELECT + 6 AS col2 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT + + cor0.col2 * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 84 AS col1 FROM tab2
----
-84

query I rowsort
SELECT + 45 - - tab2.col1 AS col1 FROM tab2
----
104
62
76

query I rowsort
SELECT + 82 + col2 FROM tab2 AS cor0
----
108
109
120

query I rowsort
SELECT ALL + + ( col1 ) + 53 * + col2 FROM tab2 AS cor0
----
1437
1462
2031

query I rowsort
SELECT ALL + col1 - + col2 * 84 FROM tab2 AS cor0
----
-2125
-2237
-3175

query I rowsort
SELECT ALL col0 + col2 * cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL ( - col2 + col1 ) FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT 64 FROM tab1, tab2 AS cor0, tab2 cor1
----
64

query I rowsort
SELECT + 32 + + col1 * + col0 - - col1 FROM tab2 AS cor0
----
1392
280
4693

query I rowsort
SELECT DISTINCT 52 * - 5 FROM tab1 AS cor0
----
-260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - 69 + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 0c0121f6c73417e3f64d91be61ee9350

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3135
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 * + col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 * + col1 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3136
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 * col1 col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 * col1 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 - col0 * col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + - 33 * + 75 FROM tab2 AS cor0
----
-2475
-2475
-2475

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT + col1 + col1 DIV - col0 AS col1 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-3139
SELECT + col1 + col1 / - col0 AS col1 FROM tab1
----
10
13
18

query I rowsort
SELECT + col0 + ( col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT - ( + col0 ) + col2 * - tab2.col2 + - col0 FROM tab2
----
-1602
-743
-832

query I rowsort
SELECT + 87 + 11 FROM tab1
----
98
98
98

query I rowsort
SELECT col0 * + 10 FROM tab2
----
70
780
790

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

query I rowsort
SELECT ALL col2 + col2 + + col2 AS col0 FROM tab0
----
246
3
99

query I rowsort
SELECT DISTINCT ( + 49 ) + col2 AS col2 FROM tab2
----
75
76
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( col2 ) * - tab1.col2 ) + - col1 col0 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 + + col0 + col2 FROM tab1 AS cor0
----
-2859
-3128
-9040

query I rowsort
SELECT ALL + cor0.col2 * col2 + + col1 * col2 FROM tab2 AS cor0
----
1566
2090
2210

onlyif mysql # use DIV operator for integer division
query I rowsort label-3150
SELECT + CAST( col0 AS SIGNED ) DIV - col0 - + cor0.col1 DIV col1 col0 FROM tab2 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3150
SELECT + CAST ( col0 AS INTEGER ) / - col0 - + cor0.col1 / col1 col0 FROM tab2 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col1 FROM tab1
----
97
97
97

query I rowsort
SELECT col2 + 54 FROM tab0
----
136
55
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT 40 + + col2 DIV col2 FROM tab0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-3153
SELECT 40 + + col2 / col2 FROM tab0
----
41
41
41

query I rowsort
SELECT + col0 * col2 + 43 AS col1 FROM tab1
----
205
3691
7723

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3156
SELECT - + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3156
SELECT - + col1 / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT DISTINCT + - col0 + + CAST( 74 AS SIGNED ) DIV col0 col1 FROM tab2 AS cor0
----
-78
-79
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + - col0 + + CAST ( 74 AS INTEGER ) / col0 col1 FROM tab2 AS cor0
----
-78
-79
3

query I rowsort
SELECT DISTINCT + col1 * col0 - 24 AS col0 FROM tab0 AS cor0
----
2040
3371
8075

onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT ALL + cor0.col2 * - col0 + - 7 + + col1 DIV + col0 FROM tab1 AS cor0
----
-161
-3655
-7687

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + cor0.col2 * - col0 + - 7 + + col1 / + col0 FROM tab1 AS cor0
----
-161
-3655
-7687

query I rowsort
SELECT ALL + col1 + col0 + 15 FROM tab2 AS cor0
----
111
152
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT DISTINCT - col2 DIV + col0 - + col0 * + col1 FROM tab0 AS cor0
----
-2065
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT - col2 / + col0 - + col0 * + col1 FROM tab0 AS cor0
----
-2065
-3395
-8099

query I rowsort
SELECT DISTINCT - cor0.col2 + 13 AS col0 FROM tab1 AS cor0
----
-41
-44
-83

query I rowsort
SELECT cor0.col2 + + 87 AS col0 FROM tab1 AS cor0
----
141
144
183

query I rowsort
SELECT ALL - - col0 + 0 AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT cor0.col0 * 44 AS col0 FROM tab1 AS cor0
----
132
2816
3520

onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT ALL - col2 DIV col2 + + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL - col2 / col2 + + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col1 - col2 * col0 AND NULL AND NOT NULL IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col0 * cor0.col2 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1260
1368
15219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 + col1 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + 14 * col1 FROM tab0 cor0
----
1204
1274
1358

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - 30 * - col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
2366
237
2408

query I rowsort
SELECT ALL - - col0 * + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT + 9 + col2 AS col1 FROM tab1 AS cor0
----
105
63
66

query I rowsort
SELECT ALL + col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL ( col1 ) - cor0.col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col1 * + 77 + col2 AS col2 FROM tab0
----
6655
7089
7470

query I rowsort
SELECT + + ( - col2 ) + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL - - col0 + - cor0.col2 * - cor0.col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3182
SELECT + 40 + col0 DIV cor0.col0 AS col0 FROM tab0 cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-3182
SELECT + 40 + col0 / cor0.col0 AS col0 FROM tab0 cor0
----
41
41
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3183
SELECT DISTINCT + col2 + + col2 DIV col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-3183
SELECT DISTINCT + col2 + + col2 / col1 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT + cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3185
SELECT + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3185
SELECT + col2 / col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NOT NULL NOT IN ( - tab0.col1 ) ) AND NOT ( NULL ) > ( col0 * col0 + col2 )
----

query I rowsort
SELECT ALL + 37 * col1 AS col2 FROM tab0
----
3182
3367
3589

query I rowsort
SELECT - col2 * - cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + + col1 * - cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - 30 + cor0.col2 FROM tab2 AS cor0
----
-3
-4
8

query I rowsort
SELECT + 21 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT - 99 - - col1 * + col2 FROM tab2 AS cor0
----
1435
547
738

query I rowsort
SELECT DISTINCT - col2 * + col1 - cor0.col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT cor0.col0 + + col2 - + ( - col0 * - col1 ) AS col0 FROM tab1 AS cor0
----
-21
-519
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3196
SELECT + + col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT + + col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT + 7 * col0 DIV + 58 AS col1 FROM tab2 AS cor0
----
0
9
9

skipif mysql # not compatible
query I rowsort label-3197
SELECT + 7 * col0 / + 58 AS col1 FROM tab2 AS cor0
----
0
9
9

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + - col0 + - 42 FROM tab0 AS cor0
----
-131
-66
-77

query I rowsort
SELECT DISTINCT 42 FROM tab2, tab1 AS cor0
----
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3202
SELECT + 33 * col0 DIV col1 AS col1 FROM tab1 cor0
----
203
211
3

skipif mysql # not compatible
query I rowsort label-3202
SELECT + 33 * col0 / col1 AS col1 FROM tab1 cor0
----
203
211
3

query I rowsort
SELECT cor1.col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT - col1 DIV - ( - col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3204
SELECT - col1 / - ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 70 FROM tab2, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3206
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3207
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0, tab0 cor0
----
NULL

query I rowsort
SELECT tab2.col1 + + col2 AS col0 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3209
SELECT CAST( col2 * col0 AS SIGNED ) AS col0 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-3209
SELECT CAST ( col2 * col0 AS INTEGER ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + 31 + col0 * cor0.col1 FROM tab1 AS cor0
----
1071
109
671

query I rowsort
SELECT DISTINCT col0 * ( - col1 ) AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 78 + col1 * col2 AS col2 FROM tab1 cor0
----
1326
1482
648

query I rowsort
SELECT ALL + + col1 * 91 FROM tab0 cor0
----
7826
8281
8827

query I rowsort
SELECT ALL + + 94 * col2 AS col1 FROM tab2 cor0
----
2444
2538
3572

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3215
SELECT ALL CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 39 * - cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40c54fdfbe91a400b0adfb4daf0199e7

query I rowsort
SELECT ( + 15 ) * cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 260b4f8a220ff2817550bd2426156b7e

query I rowsort
SELECT DISTINCT - 90 * + col0 + - 65 * col2 FROM tab0 AS cor0
----
-13340
-3215
-4305

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1, tab0 AS cor1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 35 + col0 - col1 AS col2 FROM tab0
----
-37
-97
-97

query I rowsort
SELECT + 38 + 30 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60

query I rowsort
SELECT DISTINCT col1 + + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT ( + col0 ) + - cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 63 + col0 AS col0 FROM tab0 AS cor0
----
152
87
98

query I rowsort
SELECT ALL + cor0.col2 + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT CAST( + 50 AS SIGNED ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3227
SELECT CAST ( + 50 AS INTEGER ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT + col1 * - col1 * - col0 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT 45 AS col0 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT 53 + - 18 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT - + col1 * col0 + - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - cor0.col0 - - col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3234
SELECT ALL + CAST( 95 AS SIGNED ) + col0 - col1 FROM tab2 AS cor0
----
114
157
71

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL + CAST ( 95 AS INTEGER ) + col0 - col1 FROM tab2 AS cor0
----
114
157
71

query I rowsort
SELECT DISTINCT 59 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
59

query I rowsort
SELECT DISTINCT - col2 * - 21 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT DISTINCT col1 * - ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - cor0.col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - col2 + 0 * + cor0.col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3240
SELECT + - col2 * CAST( cor0.col2 AS SIGNED ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

skipif mysql # not compatible
query I rowsort label-3240
SELECT + - col2 * CAST ( cor0.col2 AS INTEGER ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL col0 * 1 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col2 ) + + col0 - + ( col0 ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - col0 * - col1 + + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3244
SELECT - col2 DIV + 24 - + col2 * col0 FROM tab2
----
-190
-2029
-3003

skipif mysql # not compatible
query I rowsort label-3244
SELECT - col2 / + 24 - + col2 * col0 FROM tab2
----
-190
-2029
-3003

query I rowsort
SELECT - col0 * col0 + ( col0 ) FROM tab1
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT + + col1 DIV CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3246
SELECT + + col1 / CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3247
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 cor0
----
NULL

query I rowsort
SELECT + col1 * + col0 + - col0 * + col1 * 95 AS col1 FROM tab2
----
-126242
-20398
-432588

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

query I rowsort
SELECT ALL tab1.col0 * 66 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 744309e3bf906a4a48a461dcdd0a8fe5

query I rowsort
SELECT ALL - 3 FROM tab1 cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + 60 + + col1 col1 FROM tab0 AS cor0
----
-7250
-8130
-9252

query I rowsort
SELECT ALL + 76 + + col2 AS col1 FROM tab1 AS cor0
----
130
133
172

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3254
SELECT DISTINCT + + col0 + col0 * - CAST( - 96 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
679
7566
7663

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + + col0 + col0 * - CAST ( - 96 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
679
7566
7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3255
SELECT 29 / col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3255
SELECT 29 / col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 + col2 + col1 * col2 FROM tab2
----
1638
763
871

query I rowsort
SELECT 22 FROM tab2, tab1, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to c6f049334398e3533dd6996714479a2f

query I rowsort
SELECT col0 + tab0.col2 + tab0.col1 FROM tab0
----
133
143
262

query I rowsort
SELECT 49 * - col2 FROM tab0
----
-1617
-4018
-49

query I rowsort
SELECT DISTINCT - col1 + + col0 * - col0 AS col2 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab2, tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - ( tab1.col0 ) AS col0 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3265
SELECT ALL - + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL - + col2 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + 33 * - cor0.col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2752
-2912
-3104

onlyif mysql # use DIV operator for integer division
query I rowsort label-3267
SELECT DISTINCT - - col2 DIV col2 + - col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT - - col2 / col2 + - col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT + - 73 + - col2 * 60 FROM tab0 AS cor0
----
-133
-2053
-4993

query I rowsort
SELECT - - col0 * col0 + col0 + col1 * - col2 AS col2 FROM tab1 cor0
----
-1392
3590
5232

query I rowsort
SELECT + 91 * + col0 + cor0.col2 FROM tab1 AS cor0
----
327
5881
7376

query I rowsort
SELECT 79 + - col0 FROM tab0
----
-10
44
55

query I rowsort
SELECT ALL + 90 FROM tab0
----
90
90
90

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT - + col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3274
SELECT - + col1 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 - col1 col2 FROM tab0 AS cor0
----
-2
-8
3

query I rowsort
SELECT + + 41 + col0 AS col1 FROM tab0 AS cor0
----
130
65
76

query I rowsort
SELECT ALL + + 61 AS col0 FROM tab0 AS cor0
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3278
SELECT col1 DIV 2 FROM tab2 cor0
----
15
29
8

skipif mysql # not compatible
query I rowsort label-3278
SELECT col1 / 2 FROM tab2 cor0
----
15
29
8

query I rowsort
SELECT ALL col1 + ( - col0 + col0 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col1 * + ( col2 ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3281
SELECT ALL + col1 DIV col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL + col1 / col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - col2 * col0 + col1 AS col0 FROM tab1 cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 5 * col0 + + col0 col0 FROM tab0 AS cor0
----
-10296
-16940
-40406

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col0 * ( col1 ) + + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT col1 + 42 AS col0 FROM tab2 AS cor0
----
101
59
73

query I rowsort
SELECT - - 95 + - 31 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT ALL col0 * - col0 * col1 + 67 - - 28 * col1 AS col2 FROM tab2 AS cor0
----
-105554
-357237
-584

query I rowsort
SELECT + col2 * + 94 + col1 FROM tab0 AS cor0
----
191
3188
7799

query I rowsort
SELECT ALL + 94 + col2 FROM tab0
----
127
176
95

query I rowsort
SELECT + - col2 + col1 - col2 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT + col2 * + col1 - - col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + 63 * ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT DISTINCT + 8 FROM tab0 cor0
----
8

query I rowsort
SELECT 16 + col1 * col2 * col1 - ( cor0.col0 ) * + ( col1 ) AS col2 FROM tab0 AS cor0
----
242020
6030
670959

query I rowsort
SELECT - + 18 AS col2 FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT + ( - col1 ) - col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - col2 * - 5 + - col2 FROM tab0 AS cor0
----
132
328
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3299
SELECT DISTINCT - + cor0.col1 + col1 DIV col0 col0 FROM tab0 AS cor0
----
-83
-90
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT - + cor0.col1 + col1 / col0 col0 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT ALL + - cor0.col2 * + 12 FROM tab0 AS cor0
----
-12
-396
-984

query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab0 cor0
----
52

query I rowsort
SELECT ALL + + col0 + col0 AS col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + - 16 * - cor0.col1 FROM tab2 AS cor0
----
272
496
944

query I rowsort
SELECT ALL 38 FROM tab0, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3306
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1 FROM tab2, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1 FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT - 43 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT - col2 DIV + 78 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3308
SELECT - col2 / + 78 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - ( 44 ) * col1 AS col0 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT + col1 * - 78 - - col2 AS col1 FROM tab2 AS cor0
----
-1288
-2391
-4576

query I rowsort
SELECT - col1 + - 7 + col0 AS col1 FROM tab0 AS cor0
----
-69
-69
-9

query I rowsort
SELECT - col0 + col2 + col1 FROM tab0 cor0
----
63
84
95

query I rowsort
SELECT ALL + col0 * - col2 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-3314
SELECT DISTINCT + 57 + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + 57 + col1 / + col1 AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3315
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 93 - col1 * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 93 - col1 * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT cor0.col2 + + ( + col1 ) * + ( - col1 ) FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - col2 + 16 FROM tab1 AS cor0
----
-38
-41
-80

query I rowsort
SELECT ALL + 20 + col2 AS col1 FROM tab1 AS cor0
----
116
74
77

query I rowsort
SELECT - 62 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT - 23 + - col1 AS col1 FROM tab1 AS cor0
----
-33
-36
-49

query I rowsort
SELECT - 83 + col2 FROM tab2 AS cor0
----
-45
-56
-57

query I rowsort
SELECT ( - col1 ) * - ( + 98 ) AS col1 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL col1 * col1 + 50 - + col0 * 82 * + col1 AS col0 FROM tab2 AS cor0
----
-109787
-16783
-373833

query I rowsort
SELECT + - col2 * cor0.col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + - col1 * ( + 22 ) FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT + + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col2 + - 12 AS col0 FROM tab0 AS cor0
----
-11
21
70

query I rowsort
SELECT + + col2 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col1 * + 81 AS col1 FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 * - col1 * 33 AS col1 FROM tab0
----
-244068
-273273
-310497

query I rowsort
SELECT - - col1 * 38 + ( col2 ) * col0 + + col2 FROM tab2 AS cor0
----
1394
3686
4296

query I rowsort
SELECT + col0 + + ( col0 ) * col2 FROM tab2
----
196
2106
3081

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT DISTINCT + col1 * - col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - ( + ( col1 ) ) - 58 AS col0 FROM tab1 AS cor0
----
-68
-71
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT col0 + + 34 * tab2.col0 DIV - col0 AS col2 FROM tab2
----
-27
44
45

skipif mysql # not compatible
query I rowsort label-3339
SELECT col0 + + 34 * tab2.col0 / - col0 AS col2 FROM tab2
----
-27
44
45

query I rowsort
SELECT ALL + + col0 * col2 * 24 AS col2 FROM tab1 AS cor0
----
184320
3888
87552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 72 col2 FROM tab2 cor0
----
-72

query I rowsort
SELECT DISTINCT + col0 - col2 * col2 * col0 AS col1 FROM tab1
----
-207872
-737200
-8745

query I rowsort
SELECT 10 - + col2 FROM tab0
----
-23
-72
9

query I rowsort
SELECT - + col2 * - col0 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3345
SELECT DISTINCT - col2 + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - col2 + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + col0 * + col1 + cor0.col1 FROM tab1 AS cor0
----
101
586
973

query I rowsort
SELECT ALL + col0 + 77 FROM tab1 AS cor0
----
141
157
80

query I rowsort
SELECT ALL + + col1 * col1 + col2 * - 11 FROM tab0 AS cor0
----
7033
7379
9398

onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT DISTINCT - col0 - - 9 DIV col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3349
SELECT DISTINCT - col0 - - 9 / col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 52 * col2 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT - 16 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-13
48
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 26 col1 FROM tab1 AS cor0
----
-36
-39
-52

query I rowsort
SELECT + 66 + col0 AS col2 FROM tab0 cor0
----
101
155
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT ALL - 55 DIV col0 AS col2 FROM tab1 AS cor0
----
-18
0
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - 55 / col0 AS col2 FROM tab1 AS cor0
----
-18
0
0

query I rowsort
SELECT - col0 * - 22 * col0 + + 15 AS col0 FROM tab0 AS cor0
----
12687
174277
26965

query I rowsort
SELECT ALL col2 * col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col1 * col1 col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT + col0 * col2 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT ( + 66 ) + - col1 FROM tab1 AS cor0
----
40
53
56

query I rowsort
SELECT 31 FROM tab0 cor0
----
31
31
31

query I rowsort
SELECT - 85 * - col0 AS col0 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT ALL + - 31 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
-2690
-2910
-3042

query I rowsort
SELECT ALL + ( col2 ) - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - cor0.col1 * - ( - col1 ) + + col1 * + 78 AS col2 FROM tab1 AS cor0
----
1352
680
845

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

query I rowsort
SELECT ALL + 75 AS col1 FROM tab1 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - cor0.col0 * col2 + col2 AS col0 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - + 45 + col2 + + 26 * + 72 FROM tab2 AS cor0
----
1853
1854
1865

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col0 * - col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + - 51 + + col0 FROM tab2 AS cor0
----
-44
27
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3372
SELECT col0 * - 49 * + col0 - cor0.col0 * CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT col0 * - 49 * + col0 - cor0.col0 * CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3373
SELECT DISTINCT + - cor0.col0 - + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT + - cor0.col0 - + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + 44 FROM tab0 AS cor0
----
1056
1540
3916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + ( col2 * - col2 ) col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT 94 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT col2 + - col1 * col1 * + col1 AS col0 FROM tab2
----
-205353
-29764
-4875

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3378
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 28 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - col1 * ( - 61 ) + col2 * col2 AS col2 FROM tab1 AS cor0
----
10009
3859
4502

query I rowsort
SELECT - - col2 + 91 - - col2 FROM tab0 AS cor0
----
157
255
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT - col1 * col2 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - - ( - col2 ) + + col2 * + ( - col1 + col1 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - col1 * ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL tab1.col2 * - col1 + col1 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL + col0 * 4 AS col2 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT DISTINCT + + ( 89 ) * - col0 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT 43 + + col2 AS col1 FROM tab0 AS cor0
----
125
44
76

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

query I rowsort
SELECT - 57 AS col0 FROM tab2, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 1b1b58f936aab250d5d6d3f1065ea6dd

query I rowsort
SELECT DISTINCT col1 * ( - 54 ) + col1 AS col0 FROM tab1
----
-1378
-530
-689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * 50 + col0 col0 FROM tab2
----
326
3919
4012

query I rowsort
SELECT - col2 * + 4 FROM tab1 AS cor0
----
-216
-228
-384

query I rowsort
SELECT DISTINCT + + 50 + + col2 AS col0 FROM tab2 AS cor0
----
76
77
88

query I rowsort
SELECT - 93 * + cor0.col2 FROM tab0 AS cor0
----
-3069
-7626
-93

query I rowsort
SELECT ALL - - 78 FROM tab0 AS cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 - col2 col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - tab0.col2 + col1 * col0 AS col2 FROM tab0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3400
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3400
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * + col0 col0 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT - ( - col1 ) * - cor0.col1 + - 88 FROM tab0 AS cor0
----
-7484
-8369
-9497

query I rowsort
SELECT DISTINCT ( + 1 ) + + col0 * + col2 + - col0 AS col1 FROM tab1
----
160
3585
7601

query I rowsort
SELECT 1 * col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - tab2.col0 + + tab2.col2 * - col1 * 18 AS col0 FROM tab2
----
-11707
-15073
-27690

query I rowsort
SELECT ALL + 86 AS col0 FROM tab2
----
86
86
86

query I rowsort
SELECT DISTINCT + ( - 0 + + col1 ) FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT 8 * 90 FROM tab0 AS cor0
----
720

query I rowsort
SELECT ALL ( col0 ) * 69 FROM tab2
----
483
5382
5451

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3410
SELECT col0 * col2 / + CAST( NULL AS SIGNED ) + + col0 * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT col0 * col2 / + CAST ( NULL AS INTEGER ) + + col0 * - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + - 22 * col2 * + 2 col2 FROM tab1 AS cor0
----
-10624
-2385
-6604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3412
SELECT ALL - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab2, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col1 + 80 * - ( col0 ) FROM tab2 AS cor0
----
-529
-6181
-6303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 41 + + 59 col2 FROM tab2 AS cor0
----
1330
2478
756

query I rowsort
SELECT - col0 * - 98 AS col2 FROM tab2 AS cor0
----
686
7644
7742

query I rowsort
SELECT - col0 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + + col0 + 38 * - 74 FROM tab2 cor0
----
-2733
-2734
-2805

query I rowsort
SELECT ALL + col0 * col1 + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col2 * col2 * + col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + col0 * - ( col0 ) AS col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + - ( col1 ) * 65 FROM tab1 AS cor0
----
-1690
-650
-845

query I rowsort
SELECT - 64 * + 26 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 123612b4c081393fd69ec4692c260706

query I rowsort
SELECT 15 * cor0.col1 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT - cor0.col2 + + col1 * 86 FROM tab1 AS cor0
----
1022
2182
803

query I rowsort
SELECT + + cor0.col2 * col2 + - ( 80 ) AS col0 FROM tab1 AS cor0
----
2836
3169
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 31 col2 FROM tab2
----
1829
527
961

query I rowsort
SELECT ALL cor0.col2 * + col0 + - 66 FROM tab1 AS cor0
----
3582
7614
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3430
SELECT col0 + - CAST( NULL AS SIGNED ) * col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3430
SELECT col0 + - CAST ( NULL AS INTEGER ) * col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3431
SELECT + col1 DIV col1 - col0 FROM tab0 cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3431
SELECT + col1 / col1 - col0 FROM tab0 cor0
----
-23
-34
-88

query I rowsort
SELECT - col1 * + cor0.col2 + - 46 FROM tab0 cor0
----
-143
-2884
-7508

onlyif mysql # use DIV operator for integer division
query I rowsort label-3433
SELECT + col2 * 53 DIV ( + col1 * ( col1 ) ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3433
SELECT + col2 * 53 / ( + col1 * ( col1 ) ) AS col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3434
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3435
SELECT DISTINCT - col1 DIV - col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT - col1 / - col1 FROM tab1 cor0
----
1

query I rowsort
SELECT ALL - - col1 + ( - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3437
SELECT DISTINCT cor0.col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT cor0.col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT 74 AS col0 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT ALL - ( - 54 ) DIV cor0.col1 FROM tab1 cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL - ( - 54 ) / cor0.col1 FROM tab1 cor0
----
2
4
5

query I rowsort
SELECT ALL + ( - col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 95 + + col0 FROM tab1 cor0
----
159
175
98

query I rowsort
SELECT - cor0.col2 * 36 FROM tab1, tab2 AS cor0
----
9 values hashing to de5cdc6ee0be92ea33d4167656eb2de6

query I rowsort
SELECT 80 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT - ( cor0.col1 ) * col0 FROM tab1 cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * + col1 + 38 * - col1 col1 FROM tab0 AS cor0
----
-3589
-430
4004

query I rowsort
SELECT + + 3 * + cor0.col1 + col2 * 40 FROM tab2 AS cor0
----
1173
1217
1571

query I rowsort
SELECT DISTINCT - col2 * + col0 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL + 47 * col1 AS col0 FROM tab2 cor0
----
1457
2773
799

query I rowsort
SELECT col1 * col0 + col0 * cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
479154
494382
560

query I rowsort
SELECT DISTINCT + col2 * - 83 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT ALL + + ( - 26 ) * col0 AS col0 FROM tab2 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT + col0 * cor0.col2 - + col1 * col1 AS col2 FROM tab0 cor0
----
-6604
-9374
-983

query I rowsort
SELECT + 3 * + col2 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT ALL + 43 * + col0 FROM tab1 AS cor0
----
129
2752
3440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3455
SELECT DISTINCT - ( - cor0.col1 ) * CAST( NULL AS SIGNED ) + 97 + - col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT - ( - cor0.col1 ) * CAST ( NULL AS INTEGER ) + 97 + - col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - 78 AS col2 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3457
SELECT ALL - - 77 + + col0 + 50 DIV col1 FROM tab0 AS cor0
----
101
112
166

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL - - 77 + + col0 + 50 / col1 FROM tab0 AS cor0
----
101
112
166

query I rowsort
SELECT - ( - col1 * tab1.col0 ) AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT col1 - - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-3460
SELECT col1 - - col0 / col2 AS col2 FROM tab0 AS cor0
----
132
86
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3461
SELECT col2 * - CAST( NULL AS SIGNED ) * 8 - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3461
SELECT col2 * - CAST ( NULL AS INTEGER ) * 8 - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 + + col0 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
22869
271544
6754

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT ALL 67 DIV + 6 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL 67 / + 6 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT ( 21 ) FROM tab0 AS cor0
----
21

query I rowsort
SELECT ALL 78 * - col0 * col1 FROM tab0 AS cor0
----
-160992
-264810
-631722

query I rowsort
SELECT ALL + ( - 98 ) + col2 AS col0 FROM tab0 AS cor0
----
-16
-65
-97

query I rowsort
SELECT DISTINCT + col0 * + 69 AS col0 FROM tab0 AS cor0
----
1656
2415
6141

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT + tab0.col2 DIV - ( 36 ) col1 FROM tab0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3468
SELECT + tab0.col2 / - ( 36 ) col1 FROM tab0
----
-2
0
0

query I rowsort
SELECT ALL + col2 * + 92 - - col2 AS col2 FROM tab2
----
2418
2511
3534

onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT + cor0.col2 + col1 DIV cor0.col1 - cor0.col1 FROM tab2 AS cor0
----
-3
-32
22

skipif mysql # not compatible
query I rowsort label-3470
SELECT + cor0.col2 + col1 / cor0.col1 - cor0.col1 FROM tab2 AS cor0
----
-3
-32
22

query I rowsort
SELECT - col1 * - 16 FROM tab1
----
160
208
416

query I rowsort
SELECT ALL col0 + col2 - + col1 AS col0 FROM tab0
----
-29
-61
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3473
SELECT DISTINCT + col1 DIV - col0 + 59 AS col0 FROM tab1
----
51
59

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + col1 / - col0 + 59 AS col0 FROM tab1
----
51
59

query I rowsort
SELECT DISTINCT - 88 * - 27 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
2376

query I rowsort
SELECT + col1 - - col0 AS col1 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT DISTINCT - + 68 DIV + cor0.col2 + + cor0.col2 FROM tab0 AS cor0
----
-67
31
82

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - + 68 / + cor0.col2 + + cor0.col2 FROM tab0 AS cor0
----
-67
31
82

query I rowsort
SELECT ALL - + col0 * - col0 - + 36 * + col1 FROM tab2 AS cor0
----
-1067
3960
5629

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3478
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3478
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT ALL + col0 + + 77 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
57
75

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + col0 + + 77 / - col1 AS col2 FROM tab1 AS cor0
----
1
57
75

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - 87 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT ALL + 41 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - col2 * ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + 99 FROM tab1, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT + col1 * - ( col2 ) + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3486
SELECT - - col2 DIV 47 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3486
SELECT - - col2 / 47 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 * 39 FROM tab1 AS cor0
----
-117
-2496
-3120

query I rowsort
SELECT + 36 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a

query I rowsort
SELECT ALL + ( - 68 * + tab0.col1 ) FROM tab0
----
-5848
-6188
-6596

onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT - CAST( 7 AS SIGNED ) + + col0 DIV - col1 AS col2 FROM tab0
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-3491
SELECT - CAST ( 7 AS INTEGER ) + + col0 / - col1 AS col2 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT 69 - - col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1109
147
709

query I rowsort
SELECT - - 99 + - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-2739
-7363
2

query I rowsort
SELECT ALL - 51 * + col1 AS col0 FROM tab0 AS cor0
----
-4386
-4641
-4947

query I rowsort
SELECT DISTINCT + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col1 FROM tab1, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 63949b5362442f48bd29195397a57dad

query I rowsort
SELECT DISTINCT ( + 42 ) * - col1 + col1 * - col1 FROM tab0 AS cor0
----
-11008
-12103
-13483

query I rowsort
SELECT 39 * + col1 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT ALL + 47 + + 96 FROM tab1 cor0
----
143
143
143

query I rowsort
SELECT ALL - + col1 + + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - + 97 * cor0.col1 FROM tab1 AS cor0
----
-1261
-2522
-970

onlyif mysql # use DIV operator for integer division
query I rowsort label-3502
SELECT - ( + col1 ) DIV + 11 + - 67 * + col2 AS col1 FROM tab1 AS cor0
----
-3620
-3819
-6433

skipif mysql # not compatible
query I rowsort label-3502
SELECT - ( + col1 ) / + 11 + - 67 * + col2 AS col1 FROM tab1 AS cor0
----
-3620
-3819
-6433

onlyif mysql # use DIV operator for integer division
query I rowsort label-3503
SELECT ALL - cor0.col1 DIV col2 + 89 * col1 + col2 FROM tab1 AS cor0
----
1253
2368
947

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - cor0.col1 / col2 + 89 * col1 + col2 FROM tab1 AS cor0
----
1253
2368
947

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + + ( col0 ) FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT col1 + - col1 * col0 FROM tab0 cor0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3507
SELECT ALL + col0 / - col0 + + CAST( NULL AS SIGNED ) + 4 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL + col0 / - col0 + + CAST ( NULL AS INTEGER ) + 4 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + cor0.col2 + col2 FROM tab0 AS cor0
----
253
37
90

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

query I rowsort
SELECT DISTINCT - 41 * - col0 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT ALL col1 + col2 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - ( - col2 ) + 92 FROM tab1 AS cor0
----
146
149
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 63 + - cor0.col1 * - col1 col2 FROM tab0 AS cor0
----
7459
8344
9472

query I rowsort
SELECT ALL - - col2 + + col2 * - col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - col1 * col0 - ( col2 ) * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-3926
101
512

onlyif mysql # use DIV operator for integer division
query I rowsort label-3516
SELECT DISTINCT - 16 DIV - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-12
-26
-9

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT - 16 / - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-12
-26
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT ALL col0 - - col1 DIV + col0 AS col2 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL col0 - - col1 / + col0 AS col2 FROM tab2
----
11
78
79

query I rowsort
SELECT DISTINCT col0 - + col0 FROM tab2
----
0

query I rowsort
SELECT - 14 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

query I rowsort
SELECT DISTINCT - - col0 * col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT col1 * + col2 + + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL 26 - - col2 AS col0 FROM tab0 AS cor0
----
108
27
59

query I rowsort
SELECT DISTINCT + - col0 + - col1 * - col1 + - col2 FROM tab2 AS cor0
----
172
3377
927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + cor0.col1 col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT + 55 + col1 DIV + tab0.col1 + + ( + tab0.col1 * col0 ) FROM tab0
----
2120
3451
8155

skipif mysql # not compatible
query I rowsort label-3525
SELECT + 55 + col1 / + tab0.col1 + + ( + tab0.col1 * col0 ) FROM tab0
----
2120
3451
8155

query I rowsort
SELECT ALL + ( - col0 ) + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 + + tab1.col0 * 0 * 50 AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT cor0.col0 * cor0.col1 - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + + cor0.col2 + - 77 FROM tab1 AS cor0
----
-20
-23
19

query I rowsort
SELECT DISTINCT 79 + - tab1.col1 FROM tab1
----
53
66
69

query I rowsort
SELECT DISTINCT 23 + + tab1.col2 AS col2 FROM tab1
----
119
77
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT DISTINCT 82 + col2 FROM tab2
----
108
109
120

query I rowsort
SELECT + + col2 * - 0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 32 FROM tab0 cor0
----
32
32
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3536
SELECT ALL + col1 * + col1 * col2 + - CAST( NULL AS SIGNED ) * 57 + - col2 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-3536
SELECT ALL + col1 * + col1 * col2 + - CAST ( NULL AS INTEGER ) * 57 + - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * - 72 FROM tab2 cor0
----
-504
-5616
-5688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 + ( + cor0.col2 ) col2 FROM tab1 AS cor0
----
-28
-31
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3539
SELECT ALL + - CAST( ( col2 ) AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + - CAST ( ( col2 ) AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 65 FROM tab2, tab0 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT DISTINCT col1 DIV + ( - tab2.col0 ) + col0 AS col2 FROM tab2
----
3
78
79

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT col1 / + ( - tab2.col0 ) + col0 AS col2 FROM tab2
----
3
78
79

query I rowsort
SELECT DISTINCT + col1 + 30 + 15 AS col2 FROM tab0
----
131
136
142

query I rowsort
SELECT + col2 * ( col2 + col1 ) * + col1 FROM tab2
----
130390
35530
48546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + tab0.col1 col0 FROM tab0
----
124
129
135

query I rowsort
SELECT DISTINCT - col2 * + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab2 AS cor0
----
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3547
SELECT ALL + 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-3547
SELECT ALL + CAST ( NULL AS INTEGER ) * - ( col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 63 AS col2 FROM tab2
----
63
63
63

query I rowsort
SELECT DISTINCT + - 41 * col1 + - col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-11830
-5590
-7372

query I rowsort
SELECT - + cor0.col2 * - col2 + + col1 * ( + col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
25440
39420
8949

query I rowsort
SELECT cor1.col0 * 99 * 90 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 66c6d98672d68c58f046afa76c0a5f12

query I rowsort
SELECT 66 * + col1 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT ALL 68 FROM tab2, tab2 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - cor1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - col1 * 2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - + col0 * + 76 FROM tab0 AS cor0
----
-1824
-2660
-6764

query I rowsort
SELECT + 13 * - ( col1 ) FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT + 64 * tab1.col2 AS col2 FROM tab1
----
3456
3648
6144

query I rowsort
SELECT DISTINCT + - 20 * - 94 FROM tab1, tab0, tab0 AS cor0
----
1880

query I rowsort
SELECT ALL 62 + col2 FROM tab1 cor0
----
116
119
158

query I rowsort
SELECT - - 0 * col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + cor0.col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT DISTINCT - - 41 DIV col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3563
SELECT DISTINCT - - 41 / col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 + cor0.col1 * col2 AS col0 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT 57 + + col1 FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT - col2 * tab1.col2 - - col1 AS col0 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT - 45 + col1 * col2 FROM tab1
----
1203
1359
525

query I rowsort
SELECT tab2.col1 + 26 * + 65 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 550bd28a544c689d15c4d54dbb86b4ca

query I rowsort
SELECT + col1 * col0 * 32 FROM tab2 AS cor0
----
147264
42976
6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT col1 DIV col2 - col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-3570
SELECT col1 / col2 - col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3571
SELECT + col0 DIV - 67 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3571
SELECT + col0 / - 67 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col2 FROM tab2
----
21
21
21

query I rowsort
SELECT col0 * 94 FROM tab0
----
2256
3290
8366

query I rowsort
SELECT DISTINCT - col0 * - 68 AS col2 FROM tab1
----
204
4352
5440

query I rowsort
SELECT col1 + 62 - - 85 AS col2 FROM tab0 AS cor0
----
233
238
244

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT - col1 * - CAST( col2 * col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
244068
679042
9409

skipif mysql # not compatible
query I rowsort label-3576
SELECT - col1 * - CAST ( col2 * col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + tab1.col2 - - col0 * col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT + + 53 * + col0 + + col2 FROM tab2 AS cor0
----
398
4160
4225

query I rowsort
SELECT 27 AS col1 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT ALL - + col2 * 74 AS col1 FROM tab2 AS cor0
----
-1924
-1998
-2812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col0 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL - col0 - col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT ALL tab2.col2 + ( tab2.col2 ) - col1 AS col2 FROM tab2
----
-7
23
59

query I rowsort
SELECT DISTINCT + - ( 39 ) * col0 FROM tab1 AS cor0
----
-117
-2496
-3120

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3587
SELECT ALL - + CAST( col1 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL - + CAST ( col1 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + 19 * - cor0.col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-520
-572
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-3589
SELECT 38 DIV - col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT 38 / - col0 FROM tab0 AS cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3590
SELECT DISTINCT CAST( cor0.col2 AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT CAST ( cor0.col2 AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col0 - col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + 88 * - 43 FROM tab1 AS cor0
----
-3784
-3784
-3784

query I rowsort
SELECT ALL col1 * + col0 + + col1 * cor0.col0 FROM tab0 AS cor0
----
16198
4128
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-3594
SELECT + 79 DIV 30 AS col2 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3594
SELECT + 79 / 30 AS col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT ( + 8 ) * + cor0.col2 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT DISTINCT - + 4 AS col2 FROM tab1 cor0
----
-4

query I rowsort
SELECT DISTINCT + ( - 40 ) * - col0 AS col1 FROM tab2 AS cor0
----
280
3120
3160

query I rowsort
SELECT ( - col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3600
SELECT + col0 + - col0 DIV - ( - 12 ) AS col0 FROM tab1
----
3
59
74

skipif mysql # not compatible
query I rowsort label-3600
SELECT + col0 + - col0 / - ( - 12 ) AS col0 FROM tab1
----
3
59
74

query I rowsort
SELECT - col2 - - col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT col2 * col1 - - cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - 44 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-308
-3432
-3476

query I rowsort
SELECT 1 + cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT ALL col1 * col0 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col1 * col1 + col2 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT col2 * - 83 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT DISTINCT + col1 * ( cor0.col2 ) + + col2 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + 10 col0 FROM tab1 AS cor0
----
-54
-70
7

query I rowsort
SELECT ALL col0 + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 22 + col1 + - col2 FROM tab2 AS cor0
----
1
26
55

query I rowsort
SELECT ALL - 47 * cor0.col1 - 42 FROM tab0 AS cor0
----
-4084
-4319
-4601

query I rowsort
SELECT cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col1 col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - - 86 FROM tab1 cor0
----
86
86
86

query I rowsort
SELECT - ( - col0 ) + + 23 * col2 AS col2 FROM tab0 AS cor0
----
1975
58
783

query I rowsort
SELECT ALL + col0 + col1 * 19 FROM tab1 AS cor0
----
254
327
497

query I rowsort
SELECT - ( - cor0.col2 ) + - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + + col2 - + col0 * + col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-3621
SELECT - + col2 + + col0 * - 0 DIV col1 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3621
SELECT - + col2 + + col0 * - 0 / col1 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT 84 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + + col2 - + 58 col1 FROM tab2 AS cor0
----
18
6052
6221

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT DISTINCT + cor0.col2 DIV - 94 col1 FROM tab1, tab1 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT + cor0.col2 / - 94 col1 FROM tab1, tab1 AS cor0
----
-1
0

query I rowsort
SELECT 32 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - ( + 13 ) FROM tab1, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT ALL + col1 * - ( col1 * col1 ) + 20 FROM tab0 cor0
----
-636036
-753551
-912653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 26 ) col0 FROM tab2 AS cor0
----
-26
-26
-26

query I rowsort
SELECT 46 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT DISTINCT 60 FROM tab2, tab1 cor0, tab1 cor1
----
60

query I rowsort
SELECT ALL - tab1.col0 * + 22 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 051693d44d79f5fd90b03b9db8372e8b

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL 45 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + - col2 + + col2 * + col2 FROM tab2 AS cor0
----
1406
650
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 col1 FROM tab1 AS cor0
----
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT - - 60 + + 89 DIV - col1 FROM tab2 AS cor0
----
55
58
59

skipif mysql # not compatible
query I rowsort label-3637
SELECT - - 60 + + 89 / - col1 FROM tab2 AS cor0
----
55
58
59

query I rowsort
SELECT + 72 * col0 AS col1 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT DISTINCT + 88 * + 59 FROM tab0 AS cor0
----
5192

query I rowsort
SELECT DISTINCT - + 55 AS col2 FROM tab2 cor0
----
-55

query I rowsort
SELECT + cor0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL ( + 16 ) * + col1 AS col0 FROM tab2 AS cor0
----
272
496
944

query I rowsort
SELECT - + cor1.col0 * cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT DISTINCT 53 + - col2 FROM tab2 AS cor0
----
15
26
27

query I rowsort
SELECT ALL ( col2 ) * - col0 * + 76 FROM tab2 AS cor0
----
-14364
-154128
-228152

query I rowsort
SELECT + ( col1 ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - 1 + col0 + cor0.col0 FROM tab2 AS cor0
----
13
155
157

query I rowsort
SELECT DISTINCT - + col1 * col2 + col0 * col0 AS col1 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT ( 9 ) AS col1 FROM tab0
----
9
9
9

query I rowsort
SELECT ALL - 68 AS col1 FROM tab2
----
-68
-68
-68

query I rowsort
SELECT - + 0 * cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col2 * 32 col2 FROM tab2 cor0
----
-1137
-754
-857

query I rowsort
SELECT - + col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - col1 + 42 FROM tab2 AS cor0
----
-17
11
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT ALL + col2 + CAST( col2 + col1 AS SIGNED ) DIV col0 col2 FROM tab1 AS cor0
----
58
80
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL + col2 + CAST ( col2 + col1 AS INTEGER ) / col0 col2 FROM tab1 AS cor0
----
58
80
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT ALL col1 * col1 DIV col2 AS col2 FROM tab0 AS cor0
----
100
224
9409

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL col1 * col1 / col2 AS col2 FROM tab0 AS cor0
----
100
224
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3660
SELECT ALL + CAST( NULL AS SIGNED ) + - 80 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3660
SELECT ALL + CAST ( NULL AS INTEGER ) + - 80 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3661
SELECT col2 - + CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3661
SELECT col2 - + CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT ALL cor0.col1 * 70 DIV - col2 - - col0 FROM tab0 AS cor0
----
-158
-6755
12

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL cor0.col1 * 70 / - col2 - - col0 FROM tab0 AS cor0
----
-158
-6755
12

query I rowsort
SELECT - 44 FROM tab2 cor0
----
-44
-44
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3664
SELECT + CAST( NULL AS SIGNED ) * ( col2 ) / - 67 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3664
SELECT + CAST ( NULL AS INTEGER ) * ( col2 ) / - 67 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3665
SELECT CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 55 AS col0 FROM tab1 AS cor0
----
-1430
-550
-715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3667
SELECT - - CAST( NULL AS SIGNED ) + + 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT - - CAST ( NULL AS INTEGER ) + + 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 + 11 col2 FROM tab0
----
121
143
191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3669
SELECT - col0 - col0 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT - col0 - col0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3670
SELECT 90 + + col1 DIV ( + cor0.col1 * col2 ) - ( ( col0 ) ) AS col1 FROM tab0 cor0
----
1
56
66

skipif mysql # not compatible
query I rowsort label-3670
SELECT 90 + + col1 / ( + cor0.col1 * col2 ) - ( ( col0 ) ) AS col1 FROM tab0 cor0
----
1
56
66

query I rowsort
SELECT - cor0.col1 - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - col2 * 8 + ( + col1 + col1 ) * + 0 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT ALL + - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - col2 + - col2 * - col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + + cor0.col2 + - col0 * + 75 * col2 FROM tab1 cor0
----
-12096
-273543
-575904

query I rowsort
SELECT ALL col2 + 1 * - 87 + + col1 AS col1 FROM tab2 AS cor0
----
-2
-29
-32

query I rowsort
SELECT col0 + + col1 * 40 FROM tab1 AS cor0
----
1043
464
600

query I rowsort
SELECT - col2 * ( + 95 ) FROM tab2 cor0
----
-2470
-2565
-3610

query I rowsort
SELECT col2 * ( 9 ) + + col0 + + col2 AS col0 FROM tab2 AS cor0
----
277
338
459

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT DISTINCT col2 DIV + ( 43 ) + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-94

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT col2 / + ( 43 ) + - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT col2 - + 84 DIV - col1 col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3682
SELECT col2 - + 84 / - col1 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - 47 * col1 FROM tab0 AS cor0
----
-4042
-4277
-4559

onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT + ( 78 ) DIV col2 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3684
SELECT + ( 78 ) / col2 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - + 88 AS col2 FROM tab1 AS cor0
----
-88
-88
-88

query I rowsort
SELECT + + col1 + 23 FROM tab2 AS cor0
----
40
54
82

query I rowsort
SELECT ALL + 79 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT DISTINCT - - 45 * + col1 AS col2 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT ALL - - ( - col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col1 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-3691
SELECT - 42 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-3691
SELECT - 42 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
14

query I rowsort
SELECT - - col1 * col1 * + 54 FROM tab2 AS cor0
----
15606
187974
51894

query I rowsort
SELECT DISTINCT - - 35 + col1 AS col0 FROM tab0 AS cor0
----
121
126
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col1 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT 15 * - tab2.col0 * - col1 - - col1 DIV + tab2.col0 col0 FROM tab2
----
20145
3259
69030

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3695
SELECT 15 * - tab2.col0 * - col1 - - col1 / + tab2.col0 col0 FROM tab2
----
20145
3259
69030

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 + 80 col2 FROM tab2
----
80
80
80

query I rowsort
SELECT tab2.col1 - + col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT col0 * + col2 * 5 FROM tab0 AS cor0
----
175
36490
3960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3700
SELECT + cor0.col1 DIV + col2 AS col1 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3700
SELECT + cor0.col1 / + col2 AS col1 FROM tab0 cor0
----
1
2
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3702
SELECT + + 55 DIV - col0 FROM tab1 AS cor0
----
-18
0
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT + + 55 / - col0 FROM tab1 AS cor0
----
-18
0
0

query I rowsort
SELECT col1 * col0 + + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab0, tab0 AS cor0
----
91

query I rowsort
SELECT ALL 33 * col0 AS col0 FROM tab1
----
2112
2640
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col2 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT + ( ( col2 ) ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - 83 + + col1 AS col1 FROM tab2 AS cor0
----
-24
-52
-66

query I rowsort
SELECT DISTINCT - + col1 + 98 AS col0 FROM tab0 cor0
----
1
12
7

query I rowsort
SELECT DISTINCT - + 2 + + cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
160
3646
7678

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT - col1 DIV 35 col1 FROM tab0 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3712
SELECT - col1 / 35 col1 FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT DISTINCT col0 + + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3713
SELECT DISTINCT col0 + + col2 / col2 AS col2 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3714
SELECT ALL - col1 DIV 34 - - col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL - col1 / 34 - - col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - - col1 * + ( cor0.col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT DISTINCT - col0 DIV + 38 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - col0 / + 38 FROM tab1 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + ( ( + cor0.col2 ) ) col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3718
SELECT DISTINCT + col0 - + CAST( col2 + col0 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT + col0 - + CAST ( col2 + col0 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - + col0 + 84 FROM tab1 AS cor0
----
20
4
81

query I rowsort
SELECT ALL col2 + 37 FROM tab1 AS cor0
----
133
91
94

query I rowsort
SELECT DISTINCT + col2 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + 24 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL - 89 * col0 - + col2 FROM tab2 AS cor0
----
-650
-6968
-7069

query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + 74 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL 16 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT + ( - col2 ) + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - + col0 + cor0.col0 * + cor0.col0 FROM tab2 cor0
----
42
6006
6162

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

query I rowsort
SELECT ALL - - ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col0 * col2 + - col0 + + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL ( col1 + + col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT col2 + col2 * - col1 AS col1 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT col0 * + tab0.col2 + col0 * + col1 * - col2 AS col2 FROM tab0
----
-3360
-656820
-67320

query I rowsort
SELECT DISTINCT - 99 * - tab2.col1 AS col2 FROM tab2
----
1683
3069
5841

query I rowsort
SELECT - col1 * + col0 + ( - col2 ) FROM tab0
----
-2097
-3396
-8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3737
SELECT ALL - ( col0 ) * + CAST( 11 AS SIGNED ) AS col0 FROM tab2
----
-77
-858
-869

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - ( col0 ) * + CAST ( 11 AS INTEGER ) AS col0 FROM tab2
----
-77
-858
-869

query I rowsort
SELECT 30 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT + 76 * - col2 AS col2 FROM tab2
----
-1976
-2052
-2888

query I rowsort
SELECT col2 * 33 AS col1 FROM tab0
----
1089
2706
33

query I rowsort
SELECT tab2.col1 AS col2 FROM tab2, tab0, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + cor0.col0 + CAST ( + 97 AS REAL ) AS col2 FROM tab1 AS cor0
----
100
161
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab1.col1 ) + + col0 * col1 * + 17 col2 FROM tab1
----
10890
1352
17693

query I rowsort
SELECT ( + cor0.col1 ) + - tab2.col0 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to fa53d3cef19f6403267cd954cbfdc4a3

query I rowsort
SELECT 49 + - ( - col1 ) + 88 FROM tab2
----
154
168
196

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3746
SELECT - CAST( NULL AS SIGNED ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT - CAST ( NULL AS INTEGER ) * + tab1.col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3747
SELECT ALL 29 * col1 DIV - col1 + col1 AS col1 FROM tab0
----
57
62
68

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL 29 * col1 / - col1 + col1 AS col1 FROM tab0
----
57
62
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3748
SELECT CAST( NULL AS SIGNED ) + - 29 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT CAST ( NULL AS INTEGER ) + - 29 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + tab2.col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col1 * tab2.col0 * col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT ( + 1 ) + - col0 AS col2 FROM tab2 AS cor0
----
-6
-77
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3752
SELECT cor0.col1 * - cor0.col2 - col2 DIV 95 FROM tab1 AS cor0
----
-1249
-1404
-570

skipif mysql # not compatible
query I rowsort label-3752
SELECT cor0.col1 * - cor0.col2 - col2 / 95 FROM tab1 AS cor0
----
-1249
-1404
-570

query I rowsort
SELECT DISTINCT + 49 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-3079
-3824
-93

query I rowsort
SELECT DISTINCT + col1 * col2 + + col2 AS col1 FROM tab1 cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT + col0 DIV 72 + col2 AS col2 FROM tab2 cor0
----
27
27
39

skipif mysql # not compatible
query I rowsort label-3755
SELECT + col0 / 72 + col2 AS col2 FROM tab2 cor0
----
27
27
39

query I rowsort
SELECT ALL 49 FROM tab0, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT - 32 * + col0 * 5 AS col1 FROM tab2 AS cor0
----
-1120
-12480
-12640

query I rowsort
SELECT DISTINCT col0 + - col1 * 27 AS col0 FROM tab2 cor0
----
-1515
-380
-830

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 * - col2 AS col2 FROM tab2 cor0
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3760
SELECT - - cor0.col0 * col1 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT - - cor0.col0 * col1 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT ( col1 ) + - 41 + - col0 DIV col2 FROM tab1 AS cor0
----
-15
-28
-32

skipif mysql # not compatible
query I rowsort label-3762
SELECT ( col1 ) + - 41 + - col0 / col2 FROM tab1 AS cor0
----
-15
-28
-32

query I rowsort
SELECT DISTINCT col0 - + col1 * cor0.col2 * ( - col1 ) FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT ALL - ( col0 ) + - ( col2 ) FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3765
SELECT col1 DIV - col1 + + ( 76 ) FROM tab2 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-3765
SELECT col1 / - col1 + + ( 76 ) FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT 68 * cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 486094d42a797c9117c6c23c5eb65146

query I rowsort
SELECT - col0 + - col1 * - col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT - col2 * - cor0.col0 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT + ( + cor0.col1 ) DIV col0 AS col1 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3769
SELECT + ( + cor0.col1 ) / col0 AS col1 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3770
SELECT ALL + 53 DIV + col1 + - col2 DIV 72 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3770
SELECT ALL + 53 / + col1 + - col2 / 72 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT ALL ( + col1 ) - - col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ( - col0 ) + + tab0.col1 + - col2 FROM tab0
----
-80
29
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) + - col0 col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT + col0 + col1 - col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3775
SELECT ALL + ( ( col2 ) ) + - 72 DIV col1 - col0 DIV col1 FROM tab1
----
44
52
85

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + ( ( col2 ) ) + - 72 / col1 - col0 / col1 FROM tab1
----
44
52
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT ALL + 98 DIV - 10 + col0 * - col1 * + 77 - + col0 FROM tab0
----
-158961
-261459
-623721

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + 98 / - 10 + col0 * - col1 * + 77 - + col0 FROM tab0
----
-158961
-261459
-623721

query I rowsort
SELECT ALL 63 AS col0 FROM tab2 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 13 ) col0 FROM tab1 AS cor0
----
13

query I rowsort
SELECT + - col0 * + col2 * - col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - + col2 * - 97 AS col0 FROM tab1 AS cor0
----
5238
5529
9312

query I rowsort
SELECT + 41 * col1 AS col1 FROM tab0
----
3526
3731
3977

query I rowsort
SELECT DISTINCT + tab1.col0 * + col0 + col0 AS col2 FROM tab1
----
12
4160
6480

query I rowsort
SELECT + ( col1 ) * + 55 AS col2 FROM tab2
----
1705
3245
935

query I rowsort
SELECT + - 72 * - col1 FROM tab2 AS cor0
----
1224
2232
4248

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3786
SELECT - 89 DIV + cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-3786
SELECT - 89 / + cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT ALL + - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col2 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL col1 * col0 + + col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT + - col2 + col0 DIV + 24 AS col1 FROM tab2 AS cor0
----
-23
-27
-35

skipif mysql # not compatible
query I rowsort label-3790
SELECT + - col2 + col0 / + 24 AS col1 FROM tab2 AS cor0
----
-23
-27
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 col2 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL - col0 * 10 FROM tab1 AS cor0
----
-30
-640
-800

query I rowsort
SELECT ALL - - cor0.col2 + 50 + - cor0.col1 * col2 FROM tab0 cor0
----
-2755
-46
-7330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + - col2 col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
17

query I rowsort
SELECT col1 * 42 FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT DISTINCT ( + 34 ) AS col1 FROM tab0 AS cor0
----
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3800
SELECT + 49 + col2 DIV - col0 AS col2 FROM tab2 cor0
----
46
49
49

skipif mysql # not compatible
query I rowsort label-3800
SELECT + 49 + col2 / - col0 AS col2 FROM tab2 cor0
----
46
49
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-3801
SELECT + col0 DIV + cor0.col2 col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3801
SELECT + col0 / + cor0.col2 col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col0 + - ( + col2 ) * + col2 * - col1 FROM tab0 cor0
----
132
611973
93678

query I rowsort
SELECT DISTINCT - col2 + col2 * col2 + col0 * - col1 * + cor0.col0 FROM tab0 AS cor0
----
-118825
-48480
-714169

query I rowsort
SELECT DISTINCT + col0 + 76 + col1 FROM tab0 AS cor0
----
186
208
256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 44 * + col2 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT - 9 + - col0 FROM tab0 AS cor0
----
-33
-44
-98

query I rowsort
SELECT DISTINCT - ( - col2 ) + - col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col0 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - 57 - cor0.col1 * - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-36537
-4269
-99897

query I rowsort
SELECT + cor0.col0 * - tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to bd3a01f5788d5b65679da995dbe27636

query I rowsort
SELECT + col2 + + col2 * col2 FROM tab2
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 * col1 col0 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT + - 19 - - col1 FROM tab0 cor0
----
67
72
78

query I rowsort
SELECT DISTINCT - col0 * + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL - 2 * col0 - + col2 AS col1 FROM tab2 AS cor0
----
-182
-196
-41

query I rowsort
SELECT DISTINCT + - col2 + - col2 * + col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - col1 + col1 * - 98 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-101933
-62730
-7670

query I rowsort
SELECT col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + ( + col0 ) * - col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3821
SELECT + + 11 + col1 DIV - 11 AS col0 FROM tab1 cor0
----
10
11
9

skipif mysql # not compatible
query I rowsort label-3821
SELECT + + 11 + col1 / - 11 AS col0 FROM tab1 cor0
----
10
11
9

query I rowsort
SELECT ALL + col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - 95 + col1 FROM tab1 AS cor0
----
-69
-82
-85

query I rowsort
SELECT DISTINCT + 13 + - col2 * + 12 FROM tab0 AS cor0
----
-383
-971
1

query I rowsort
SELECT - col1 - - tab1.col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 - - col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT col2 + cor0.col2 * - 91 AS col1 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT + 62 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
24
35
36

query I rowsort
SELECT ALL 27 * - col1 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT ALL + - 18 * - col0 FROM tab2 AS cor0
----
126
1404
1422

query I rowsort
SELECT - col0 + col2 + ( col2 ) * + col1 FROM tab2
----
1482
605
857

query I rowsort
SELECT + tab2.col0 * col2 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3833
SELECT col0 DIV + col1 col1 FROM tab1
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3833
SELECT col0 / + col1 col1 FROM tab1
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT + + cor0.col1 + + col2 DIV col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3834
SELECT + + cor0.col1 + + col2 / col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT + 12 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL ( col0 ) + col0 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + 26 + col0 FROM tab1
----
106
29
90

query I rowsort
SELECT + col2 * + 34 * + col0 + + 24 FROM tab0
----
1214
248156
26952

query I rowsort
SELECT - ( col0 ) + col0 * + col1 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT - 84 * - col0 + + col2 FROM tab0
----
2049
2941
7558

onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT DISTINCT 68 DIV - col0 + col0 AS col2 FROM tab0 AS cor0
----
22
34
89

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT 68 / - col0 + col0 AS col2 FROM tab0 AS cor0
----
22
34
89

query I rowsort
SELECT ALL 49 AS col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to e587c122dea39a2488ff88b884cea462

query I rowsort
SELECT ALL - + 69 + col0 AS col1 FROM tab0 AS cor0
----
-34
-45
20

query I rowsort
SELECT ALL + 41 * col1 FROM tab2 AS cor0
----
1271
2419
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 * + col1 col1 FROM tab2 AS cor0
----
1173
2139
4071

query I rowsort
SELECT - + col0 * col0 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT + 0 * + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 39 * - col2 AS col2 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + ( col1 ) * - col1 col0 FROM tab1 AS cor0
----
-667
3996
6231

query I rowsort
SELECT + col1 * + 88 FROM tab2 cor0
----
1496
2728
5192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3853
SELECT ALL cor0.col0 * CAST( NULL AS SIGNED ) + col0 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL cor0.col0 * CAST ( NULL AS INTEGER ) + col0 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - 97 FROM tab2 AS cor0
----
-104
-175
-176

query I rowsort
SELECT DISTINCT - col2 * 24 FROM tab1 cor0
----
-1296
-1368
-2304

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - cor0.col2 + 11 FROM tab2 AS cor0
----
-15
-16
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3858
SELECT + col0 DIV - col0 - + 20 * col2 AS col1 FROM tab2 cor0
----
-521
-541
-761

skipif mysql # not compatible
query I rowsort label-3858
SELECT + col0 / - col0 - + 20 * col2 AS col1 FROM tab2 cor0
----
-521
-541
-761

query I rowsort
SELECT DISTINCT - - col2 + + 41 + col1 * + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
22667
24627
39951

query I rowsort
SELECT + cor0.col1 + - ( + col0 * cor0.col0 ) FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL - - col0 * + cor0.col2 - + col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - col0 * + col1 + - 16 * + col2 FROM tab2 AS cor0
----
-1951
-5018
-649

query I rowsort
SELECT ALL - col1 - - 1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT DISTINCT col0 * - 35 * + col2 AS col0 FROM tab0 AS cor0
----
-1225
-255430
-27720

query I rowsort
SELECT ALL + - col2 * 64 + + 42 FROM tab1 AS cor0
----
-3414
-3606
-6102

query I rowsort
SELECT - col2 + - 23 AS col0 FROM tab2 AS cor0
----
-49
-50
-61

query I rowsort
SELECT + - col1 + - ( 51 ) FROM tab0 AS cor0
----
-137
-142
-148

query I rowsort
SELECT DISTINCT - col2 * col0 + 15 FROM tab2 AS cor0
----
-174
-2013
-2987

onlyif mysql # use DIV operator for integer division
query I rowsort label-3869
SELECT ALL + - col1 + cor0.col2 DIV + cor0.col1 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

skipif mysql # not compatible
query I rowsort label-3869
SELECT ALL + - col1 + cor0.col2 / + cor0.col1 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT col0 + - ( + ( cor0.col2 ) * 53 ) FROM tab1 cor0
----
-2859
-2957
-5008

query I rowsort
SELECT ALL cor0.col2 + col0 * 92 * col2 AS col0 FROM tab2 AS cor0
----
17415
186602
276222

query I rowsort
SELECT DISTINCT - col2 * - 50 + col2 AS col0 FROM tab2 AS cor0
----
1326
1377
1938

query I rowsort
SELECT DISTINCT ( + col0 ) + col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3874
SELECT ALL + + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3874
SELECT ALL + + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - ( 8 ) FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT 5 * + col2 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT + + 41 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3878
SELECT DISTINCT + ( col1 ) * col0 - CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT + ( col1 ) * col0 - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to c8e4a9d810c83d17322e338b2adc95b6

query I rowsort
SELECT - 73 * + 76 + col2 AS col2 FROM tab0 AS cor0
----
-5466
-5515
-5547

query I rowsort
SELECT - tab0.col0 * + col2 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL 8 FROM tab0, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT + - col2 + ( - col0 ) FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ( col2 + col2 ) * col0 * - 54 AS col1 FROM tab2
----
-20412
-219024
-324216

query I rowsort
SELECT 76 * - col2 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
-1863
114
52

query I rowsort
SELECT + cor0.col2 * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + col0 + ( col2 ) FROM tab0
----
171
36
57

query I rowsort
SELECT - - ( 22 ) AS col2 FROM tab2 cor0
----
22
22
22

query I rowsort
SELECT - - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + + 94 * col2 AS col1 FROM tab1 cor0
----
5076
5358
9024

query I rowsort
SELECT + cor0.col1 * cor0.col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - + 27 FROM tab2 AS cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab0.col0 col0 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) FROM tab2
----
7
78
79

query I rowsort
SELECT 45 + - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 94645ff099a3221e4347f06edcf9d578

query I rowsort
SELECT col1 * + ( col1 ) FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT col0 + tab1.col0 * col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT + 13 * - col1 + + col2 AS col0 FROM tab1
----
-284
-73
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3899
SELECT col1 DIV 81 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3899
SELECT col1 / 81 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * 41 * col1 + col1 * + 96 FROM tab0
----
311492
348257
395081

query I rowsort
SELECT 33 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT col1 + + col1 * - 62 AS col2 FROM tab2
----
-1037
-1891
-3599

query I rowsort
SELECT - + col0 * - cor0.col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col2 * 66 * - ( - col0 ) FROM tab1 AS cor0
----
10692
240768
506880

query I rowsort
SELECT DISTINCT + - col2 + 80 AS col0 FROM tab1 AS cor0
----
-16
23
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3906
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3906
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 * + 86 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT ALL + 97 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT DISTINCT col1 * + col2 + col1 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
17472
37908
6270

query I rowsort
SELECT col1 * col1 * + col0 FROM tab0
----
177504
329315
737009

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 / col0 + col1 NOT IN ( col0 / col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3912
SELECT + col1 DIV + col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3912
SELECT + col1 / + col1 AS col2 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3913
SELECT - col2 DIV col2 col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3913
SELECT - col2 / col2 col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 * col2 + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT + col1 + col2 * col0 * + cor0.col0 FROM tab1 AS cor0 WHERE NOT NULL <= + col2
----

query I rowsort
SELECT col0 * col2 FROM tab1 WHERE NULL < col1 + col0 / - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * - col1 <= NULL
----

query I rowsort
SELECT DISTINCT tab1.col2 / + col0 AS col2 FROM tab1 WHERE - col0 = col0 * + col2 + - col1 + + col2
----

query I rowsort
SELECT tab0.col1 + + tab0.col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL col0 * tab2.col0 * - col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col1 * col1 + col1 + cor0.col2 FROM tab2 AS cor0
----
1019
344
3566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL col1 * - col0 * - col2 FROM tab0
----
3395
664118
68112

query III rowsort
SELECT * FROM tab2 WHERE - col2 + - col1 * col0 > ( + col0 * - col1 ) AND NOT col1 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3926
SELECT ALL - col1 * col2 DIV + col1 AS col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL - col1 * col2 / + col1 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - col1 * + col1 * col0 - col2 FROM tab0
----
-177537
-329316
-737091

onlyif mysql # use DIV operator for integer division
query I rowsort label-3928
SELECT ALL col0 + - col2 DIV + col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL col0 + - col2 / + col2 FROM tab1
----
2
63
79

query I rowsort
SELECT col0 + col1 * + cor0.col2 FROM tab2 cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT - col1 * + col2 + col0 DIV + col0 + + col0 DIV col1 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-3930
SELECT - col1 * + col2 + col0 / + col0 + + col0 / col1 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT - col0 * col2 * + col0 AS col0 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT + col2 * col0 + col1 + + col0 AS col1 FROM tab0 AS cor0
----
167
7478
902

query I rowsort
SELECT - + col1 * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col1 * col0 + + cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
-21
-519
-864

query I rowsort
SELECT - + col2 + + col1 + - cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
2117
3491
8108

query I rowsort
SELECT 35 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT + ( col1 ) + col0 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT - 16 * - 48 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 81365e84ac235542a95fdc88aa6f1e1b

query I rowsort
SELECT - - cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col1 + col0 * cor0.col2 + - 63 FROM tab0 AS cor0
----
69
7326
815

query I rowsort
SELECT DISTINCT + 35 + + col0 AS col0 FROM tab0
----
124
59
70

query I rowsort
SELECT - tab2.col0 + - col1 + 16 FROM tab2
----
-121
-22
-80

query I rowsort
SELECT + + 47 * + col1 - col0 * col0 FROM tab2 AS cor0
----
-3311
-5442
1408

query I rowsort
SELECT + - col2 * col0 + 4 * + col1 AS col2 FROM tab0 AS cor0
----
-448
-6934
353

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3945
SELECT col2 + - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3945
SELECT col2 + - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3946
SELECT ALL col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL col2 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3947
SELECT col2 DIV + 39 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT col2 / + 39 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - + cor0.col1 + - ( ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL - + col0 * - col2 + col0 * + col0 FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT - - cor0.col2 AS col1 FROM tab2 cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3953
SELECT DISTINCT + col2 * CAST( NULL AS DECIMAL ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT + col2 * CAST ( NULL AS REAL ) / + col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * ( cor0.col0 * + cor0.col0 ) + col0 FROM tab2 AS cor0
----
-336
-474474
-492960

query I rowsort
SELECT DISTINCT + + col0 - ( - col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 * - col0 AS col0 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT DISTINCT - + col2 * - 2 + + cor0.col0 * col0 FROM tab2 AS cor0
----
103
6136
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT ALL 48 + col2 DIV CAST( + col0 AS SIGNED ) AS col2 FROM tab0
----
48
48
49

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL 48 + col2 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab0
----
48
48
49

query I rowsort
SELECT ALL - col2 * col2 * cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-17654
-19690
-54951

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3960
SELECT - col0 * + CAST( NULL AS DECIMAL ) * + 26 + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3960
SELECT - col0 * + CAST ( NULL AS REAL ) * + 26 + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - tab1.col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + tab1.col2 * + col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT col0 + col0 + + col0 * tab0.col0 AS col1 FROM tab0 WHERE + col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col1 - + col2 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT col0 * + col2 DIV tab1.col2 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3965
SELECT col0 * + col2 / tab1.col2 AS col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3966
SELECT DISTINCT + col2 + tab1.col2 DIV - col2 - - col0 FROM tab1
----
120
175
56

skipif mysql # not compatible
query I rowsort label-3966
SELECT DISTINCT + col2 + tab1.col2 / - col2 - - col0 FROM tab1
----
120
175
56

query I rowsort
SELECT col2 + col1 * - col1 FROM tab0
----
-7363
-8199
-9408

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT BETWEEN ( col0 ) AND ( NULL )
----

query I rowsort
SELECT tab2.col0 + col1 * - tab2.col1 FROM tab2
----
-210
-3403
-954

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + tab1.col0 ) NOT BETWEEN NULL AND ( + col0 * - col2 + - col0 )
----

query I rowsort
SELECT col1 + + col2 * + col1 AS col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT - col2 + col1 * - col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT 55 + - col2 * + col2 * col1 AS col1 FROM tab1 AS cor0
----
-119753
-32435
-75761

query I rowsort
SELECT col1 * tab0.col0 + col0 AS col2 FROM tab0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 + - col1 col1 FROM tab1 AS cor0
----
-58
-61
-74

query I rowsort
SELECT DISTINCT 53 * + cor0.col1 FROM tab1 AS cor0
----
1378
530
689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 * - col0 col2 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3978
SELECT + col0 DIV - col2 + + tab0.col0 * + col2 AS col1 FROM tab0
----
0
7297
792

skipif mysql # not compatible
query I rowsort label-3978
SELECT + col0 / - col2 + + tab0.col0 * + col2 AS col1 FROM tab0
----
0
7297
792

query I rowsort
SELECT + col0 + + col0 - + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col1 * - col0 * + col1 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT col2 DIV col0 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3981
SELECT col2 / col0 AS col1 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3982
SELECT ALL col2 DIV col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL col2 / col0 AS col2 FROM tab1
----
0
1
18

query I rowsort
SELECT ALL col0 * col1 + col2 * col2 + col0 AS col2 FROM tab1
----
10336
2997
3953

onlyif mysql # use DIV operator for integer division
query I rowsort label-3984
SELECT DISTINCT - tab0.col2 DIV + col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT - tab0.col2 / + col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT + - col2 - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL tab1.col0 + col1 * tab1.col1 * col0 AS col2 FROM tab1
----
13600
2031
6464

query I rowsort
SELECT ALL + tab0.col1 * - tab0.col1 + col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - - ( cor0.col0 ) AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + 71 * tab2.col0 FROM tab2
----
497
5538
5609

query I rowsort
SELECT ALL + col2 + tab0.col0 * - col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + col1 * col0 * + col2 + tab2.col1 * col1 * + col0 AS col1 FROM tab2
----
12586
391170
73865

query I rowsort
SELECT DISTINCT + col2 * col2 + col2 + + col0 FROM tab2
----
1561
763
780

query I rowsort
SELECT col0 * - ( ( col0 ) ) * col0 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL - + 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT - + col1 * 78 FROM tab2 AS cor0
----
-1326
-2418
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3996
SELECT col1 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-3996
SELECT col1 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT ALL - cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL - cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3998
SELECT - col0 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3998
SELECT - col0 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT - col1 DIV - col2 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3999
SELECT - col1 / - col2 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - + col1 * 58 FROM tab0 AS cor0
----
-4988
-5278
-5626

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4001
SELECT col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4001
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + cor0.col2 * + 9 AS col2 FROM tab1 AS cor0
----
11232
12636
5130

query I rowsort
SELECT + tab2.col2 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 79 col0 FROM tab1
----
-237
-5056
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 80 + - col2 col0 FROM tab0 AS cor0
----
-113
-162
-81

query I rowsort
SELECT + - col2 + - 34 FROM tab2 cor0
----
-60
-61
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col0 ) + col0 col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4008
SELECT + + CAST( + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4008
SELECT + + CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col2 * 67 AS col1 FROM tab2
----
-1742
-1809
-2546

query I rowsort
SELECT ALL tab0.col1 * - 84 FROM tab0
----
-7224
-7644
-8148

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4011
SELECT col1 * + col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4011
SELECT col1 * + col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT + 90 * col1 - cor0.col2 DIV + col2 FROM tab0 cor0
----
7739
8189
8729

skipif mysql # not compatible
query I rowsort label-4013
SELECT + 90 * col1 - cor0.col2 / + col2 FROM tab0 cor0
----
7739
8189
8729

query I rowsort
SELECT DISTINCT - col1 * col0 + ( + 31 ) FROM tab1 AS cor0
----
-1009
-47
-609

query I rowsort
SELECT + - col1 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT + 99 - ( col0 ) FROM tab0
----
10
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + + ( col2 ) - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4019
SELECT ALL + + col1 DIV col0 + 23 AS col1 FROM tab0 AS cor0
----
24
25
26

skipif mysql # not compatible
query I rowsort label-4019
SELECT ALL + + col1 / col0 + 23 AS col1 FROM tab0 AS cor0
----
24
25
26

query I rowsort
SELECT - 23 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT ALL + cor0.col0 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT col2 + + cor0.col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT cor0.col2 + col0 * + cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - - col1 + col1 * col0 * col2 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT + col2 + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + - 74 * col0 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT col1 * col0 - - col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - + cor0.col1 - - col1 * col2 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL 1 * 31 FROM tab0 cor0
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4033
SELECT + CAST( + col0 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4033
SELECT + CAST ( + col0 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - 25 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT DISTINCT + - 71 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT ALL - col1 * 74 + - col2 FROM tab1
----
-1058
-1978
-797

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4037
SELECT - CAST( NULL AS SIGNED ) + col1 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-4037
SELECT - CAST ( NULL AS INTEGER ) + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4038
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 63 FROM tab2, tab2 AS cor0
----
-63

query I rowsort
SELECT - 7 * - col1 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT tab0.col2 * col0 + col1 AS col2 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-4042
SELECT + 22 DIV cor0.col1 + col0 * ( ( + col1 ) + - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1272
3360
801

skipif mysql # not compatible
query I rowsort label-4042
SELECT + 22 / cor0.col1 + col0 * ( ( + col1 ) + - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT 47 FROM tab0, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col2 AS REAL ) + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col0 + ( + cor0.col2 ) AS col2 FROM tab0 cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 89 * + cor0.col0 col2 FROM tab0 AS cor0
----
-2050
-3018
-7830

query I rowsort
SELECT + 87 * + col1 + - col2 AS col0 FROM tab2 AS cor0
----
1441
2670
5107

query I rowsort
SELECT DISTINCT + col0 + 5 + + col1 FROM tab0 AS cor0
----
115
137
185

query I rowsort
SELECT - col0 + - 73 AS col1 FROM tab2 AS cor0
----
-151
-152
-80

query I rowsort
SELECT DISTINCT col0 + + col0 * cor0.col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + 9 - + 60 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT col1 + col1 DIV col2 col0 FROM tab0 cor0
----
194
88
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4052
SELECT col1 + col1 / col2 col0 FROM tab0 cor0
----
194
88
92

query I rowsort
SELECT - ( - ( - col0 ) ) FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - col1 + 33 FROM tab0 AS cor0
----
-53
-58
-64

query I rowsort
SELECT DISTINCT 82 + cor0.col0 FROM tab1 AS cor0
----
146
162
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT DISTINCT + 92 + col1 DIV - 18 FROM tab1 AS cor0
----
91
92

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + 92 + col1 / - 18 FROM tab1 AS cor0
----
91
92

query I rowsort
SELECT col2 + - col2 * col0 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 col0 FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT ALL - - col0 + - col2 AS col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + 24 AS col1 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT 81 FROM tab2, tab2 AS cor0
----
81

query I rowsort
SELECT col1 * + 80 FROM tab0
----
6880
7280
7760

query I rowsort
SELECT + + 56 + col2 AS col0 FROM tab0 AS cor0
----
138
57
89

query I rowsort
SELECT ALL 58 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT col1 - - 83 FROM tab2 AS cor0
----
100
114
142

onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT + col0 + + col1 - + col1 DIV cor0.col1 FROM tab1 AS cor0
----
28
73
92

skipif mysql # not compatible
query I rowsort label-4066
SELECT + col0 + + col1 - + col1 / cor0.col1 FROM tab1 AS cor0
----
28
73
92

query I rowsort
SELECT ALL + + col2 * - 55 - col0 FROM tab0 AS cor0
----
-1839
-4599
-90

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-67

query I rowsort
SELECT tab0.col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT col1 + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 8 + + cor0.col2 col2 FROM tab1 AS cor0
----
569
736
78

query I rowsort
SELECT DISTINCT cor0.col2 - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - 44 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT DISTINCT - 11 + cor0.col0 FROM tab0 AS cor0
----
13
24
78

query I rowsort
SELECT ALL + - col2 * ( col0 ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + tab1.col2 * - 24 AS col1 FROM tab1
----
-1296
-1368
-2304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 16 col1 FROM tab2
----
10
11
22

query I rowsort
SELECT DISTINCT - col0 - 44 * + col0 FROM tab1
----
-135
-2880
-3600

query I rowsort
SELECT DISTINCT col1 * 61 * col1 - - col2 FROM tab0
----
451189
505223
573950

query I rowsort
SELECT - + col2 * + col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL - tab0.col2 - - 51 AS col2 FROM tab0
----
-31
18
50

query I rowsort
SELECT DISTINCT 7 FROM tab2, tab1 cor0
----
7

query I rowsort
SELECT - col0 * - col1 + + col1 - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 10 * - cor0.col2 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT tab2.col0 + + col0 * - col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ( + col1 ) * + col1 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col0 + + tab2.col1 * col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL 79 + col0 AS col0 FROM tab1 AS cor0
----
143
159
82

query I rowsort
SELECT - col0 * + col2 - - col1 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT DISTINCT + - 14 DIV 34 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT + - 14 / 34 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 72 + + col0 * col2 FROM tab0
----
107
7370
864

query I rowsort
SELECT ALL - ( cor0.col0 ) - - col2 * - 87 FROM tab1 AS cor0
----
-4701
-5023
-8432

query I rowsort
SELECT + - col0 - ( col2 ) FROM tab1 cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT ALL + 71 + + col1 DIV - col1 col2 FROM tab2 AS cor0
----
70
70
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + 71 + + col1 / - col1 col2 FROM tab2 AS cor0
----
70
70
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4097
SELECT - - 95 * - tab1.col0 + CAST( NULL AS SIGNED ) FROM tab1, tab0, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4097
SELECT - - 95 * - tab1.col0 + CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - 24 FROM tab2, tab0, tab1 cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col2 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * + col2 col2 FROM tab1 cor0
----
3186
3363
5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
17

query I rowsort
SELECT + ( - col1 * col0 ) + + col1 AS col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab0
----
23

query I rowsort
SELECT 4 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * col0 col0 FROM tab0
----
1068
288
420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4107
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4107
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL cor0.col0 + - col2 AS col1 FROM tab1 cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 14 col2 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT ALL + col2 + + 88 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT ALL + col2 + - col1 * - col1 * col2 + col1 FROM tab2 cor0
----
11037
26005
90591

query I rowsort
SELECT DISTINCT col2 * - 0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * - 63 AS col0 FROM tab0 AS cor0
----
-2079
-5166
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT DISTINCT + col2 + + 88 DIV - 51 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + col2 + + 88 / - 51 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL + col2 + ( - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col0 + col0 * - 37 AS col0 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT + col2 - col1 * - ( col0 ) * col1 AS col2 FROM tab0 AS cor0
----
177537
329316
737091

query I rowsort
SELECT + + ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col0 FROM tab0
----
65
65
65

query I rowsort
SELECT ALL + col0 + + cor0.col1 * col2 + col2 AS col1 FROM tab0 AS cor0
----
133
2895
7633

query I rowsort
SELECT + col1 * - ( - ( - col1 ) ) - + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT - 75 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT DISTINCT cor0.col0 + - 35 AS col0 FROM tab1, tab2 AS cor0
----
-28
43
44

query I rowsort
SELECT ALL - col0 + col2 * ( col0 * col0 + + ( col0 ) ) AS col2 FROM tab0
----
1225
19776
656731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + 64 col0 FROM tab1 AS cor0
----
-74
-77
-90

query I rowsort
SELECT col1 * col1 + 77 * col1 AS col1 FROM tab2 AS cor0
----
1598
3348
8024

query I rowsort
SELECT ALL 0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT DISTINCT tab1.col0 + col2 DIV - col2 + - col1 AS col1 FROM tab1
----
-24
53
66

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT tab1.col0 + col2 / - col2 + - col1 AS col1 FROM tab1
----
-24
53
66

query I rowsort
SELECT - 5 + col1 AS col0 FROM tab0
----
81
86
92

query I rowsort
SELECT ALL col0 + + col1 * ( col1 ) AS col1 FROM tab1
----
164
249
679

query I rowsort
SELECT - 67 * 45 AS col2 FROM tab2 AS cor0
----
-3015
-3015
-3015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 40 col0 FROM tab1 AS cor0
----
40

query I rowsort
SELECT - ( 33 ) * col2 FROM tab0 AS cor0
----
-1089
-2706
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT DISTINCT cor0.col1 DIV col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT cor0.col1 / col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 * 32 FROM tab0
----
-2752
-2912
-3104

query I rowsort
SELECT - tab2.col2 + + 30 FROM tab2
----
-8
3
4

query I rowsort
SELECT + 21 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + cor0.col1 * + col2 + - col2 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - tab2.col0 * 2 AS col1 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT col1 + + col2 * col0 AS col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT tab2.col2 - ( - col2 ) * - tab2.col2 AS col1 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - + 92 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7304
8189
9317

query I rowsort
SELECT + col2 + - 13 FROM tab0 cor0
----
-12
20
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT DISTINCT ( 5 ) DIV col0 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT ( 5 ) / col0 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT cor0.col1 * 25 + col0 FROM tab2 cor0
----
1553
504
782

query I rowsort
SELECT - + 28 * 28 AS col0 FROM tab0 AS cor0
----
-784
-784
-784

query I rowsort
SELECT ALL + cor0.col2 + - 62 FROM tab0 AS cor0
----
-29
-61
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-4150
SELECT ALL - col2 DIV - col0 col2 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - col2 / - col0 col2 FROM tab2
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4151
SELECT ALL + CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4152
SELECT - - 18 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4152
SELECT - - 18 / + col1 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + col2 + col0 * - col0 * col1 FROM tab2 AS cor0
----
-106059
-1492
-358930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 59 col0 FROM tab2 AS cor0
----
-59
-59
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4155
SELECT col0 DIV col2 AS col0 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4155
SELECT col0 / col2 AS col0 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - + col1 * - col1 + - 47 AS col0 FROM tab2 AS cor0
----
242
3434
914

query I rowsort
SELECT ALL col2 * ( col0 ) AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - 31 AS col1 FROM tab2
----
-31
-31
-31

query I rowsort
SELECT ALL - 41 AS col2 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT - ( col0 ) + 48 FROM tab1 cor0
----
-16
-32
45

query I rowsort
SELECT ( cor0.col1 ) * 41 AS col0 FROM tab1 cor0
----
1066
410
533

query I rowsort
SELECT + col2 * - 0 * + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab1, tab2 AS cor0
----
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4164
SELECT DISTINCT + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4164
SELECT DISTINCT + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + - cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col1 * cor0.col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - - cor0.col1 * + cor0.col0 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col1 + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + cor0.col1 * + col2 + + col0 + cor0.col1 * + col0 FROM tab2 AS cor0
----
1061
2068
6214

query I rowsort
SELECT ALL - - col2 * + col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4171
SELECT + col0 * - ( 28 ) + - col1 + - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-136
-1812
-2266

skipif mysql # not compatible
query I rowsort label-4171
SELECT + col0 * - ( 28 ) + - col1 + - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-136
-1812
-2266

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4172
SELECT - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4172
SELECT - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT + + ( col0 ) DIV - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4174
SELECT + + ( col0 ) / - col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 96 FROM tab2, tab1 cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT 96 + - ( col0 ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT 96 + - ( col0 ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
26
27
38

query I rowsort
SELECT 81 * col0 AS col2 FROM tab0
----
1944
2835
7209

query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab2
----
71

query I rowsort
SELECT + + col1 + - col2 * + col0 AS col2 FROM tab1 cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT col0 * - col0 + - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1260
-600
-8010

skipif mysql # not compatible
query I rowsort label-4181
SELECT col0 * - col0 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1260
-600
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 col0 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT - col2 + col2 + - col0 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT 76 * col1 + - cor0.col1 FROM tab0 AS cor0
----
6450
6825
7275

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4185
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4185
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT tab0.col0 + tab0.col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL tab2.col2 + 55 + + ( col1 + 79 ) AS col0 FROM tab2
----
189
192
219

query I rowsort
SELECT ALL - 57 + + cor0.col0 * 63 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8e45e667fc3b7f23ad88644c23a40238

onlyif mysql # use DIV operator for integer division
query I rowsort label-4189
SELECT col0 + + col0 DIV + col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-4189
SELECT col0 + + col0 / + col1 FROM tab1 AS cor0
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT col2 DIV - 66 + - col1 AS col0 FROM tab1 cor0
----
-10
-14
-26

skipif mysql # not compatible
query I rowsort label-4190
SELECT col2 / - 66 + - col1 AS col0 FROM tab1 cor0
----
-10
-14
-26

query I rowsort
SELECT ALL 26 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT ALL - - col2 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( + 37 AS REAL ) * + col0 + col0 / - col0 - col0 / + ( col1 + - col2 ) FROM tab1 AS cor0
----
110
2368
2959

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 40e4acd618698dd2305f1f7b8b547f7a

query I rowsort
SELECT DISTINCT col0 + ( + col2 ) - ( + col1 ) FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT - col1 * 43 AS col0 FROM tab1 cor0
----
-1118
-430
-559

query I rowsort
SELECT col2 + col1 * - col1 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - - col0 - - col1 AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT DISTINCT - - col1 DIV - cor0.col1 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT - - col1 / - cor0.col1 + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT ALL - col1 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - cor0.col2 * + col1 + - ( - 4 + + col1 ) FROM tab1 AS cor0
----
-1257
-1426
-576

query I rowsort
SELECT ( 37 * - col2 ) FROM tab0
----
-1221
-3034
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 9 ) col0 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col0 FROM tab2, tab0 AS cor0
----
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4206
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4206
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 74 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4208
SELECT ALL 77 + col1 DIV 83 col1 FROM tab2 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4208
SELECT ALL 77 + col1 / 83 col1 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT - 46 * - col1 AS col1 FROM tab2 AS cor0
----
1426
2714
782

query I rowsort
SELECT ALL ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL 31 + cor0.col0 FROM tab2 AS cor0
----
109
110
38

query I rowsort
SELECT ALL - - col2 * cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL 75 * + ( col0 ) FROM tab2
----
525
5850
5925

query I rowsort
SELECT ALL col0 + - col1 AS col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - 76 - + col0 FROM tab1 AS cor0
----
-140
-156
-79

query I rowsort
SELECT ALL - 51 * - col2 + - col1 FROM tab2 AS cor0
----
1267
1346
1921

query I rowsort
SELECT DISTINCT + col2 - col0 * 95 FROM tab2 AS cor0
----
-638
-7384
-7467

query I rowsort
SELECT ALL + ( - col2 ) * col1 * - 98 AS col1 FROM tab1 AS cor0
----
122304
137592
55860

query I rowsort
SELECT DISTINCT - col0 + col2 AS col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL + col1 - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 - 78 * col1 * + col0 col2 FROM tab1
----
-49820
-5408
-80951

onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT ALL + tab1.col0 + tab1.col2 DIV CAST( col0 AS SIGNED ) - tab1.col0 col1 FROM tab1
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL + tab1.col0 + tab1.col2 / CAST ( col0 AS INTEGER ) - tab1.col0 col1 FROM tab1
----
0
1
18

query I rowsort
SELECT ALL + tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT - 32 + col0 * + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
31
4121
6464

query I rowsort
SELECT DISTINCT + + col1 + 83 * cor0.col0 + - 46 FROM tab0 AS cor0
----
2032
2956
7432

onlyif mysql # use DIV operator for integer division
query I rowsort label-4228
SELECT ALL - cor0.col0 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL - cor0.col0 / col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4229
SELECT col2 + col2 DIV col0 + col1 AS col1 FROM tab1 AS cor0
----
110
67
98

skipif mysql # not compatible
query I rowsort label-4229
SELECT col2 + col2 / col0 + col1 AS col1 FROM tab1 AS cor0
----
110
67
98

query I rowsort
SELECT DISTINCT - col0 * 99 + + col0 + col0 * tab1.col2 FROM tab1
----
-132
-160
-2624

query I rowsort
SELECT DISTINCT col2 + + 35 * - 18 + + col2 FROM tab2
----
-554
-576
-578

query I rowsort
SELECT - tab0.col1 * 96 AS col0 FROM tab0
----
-8256
-8736
-9312

query I rowsort
SELECT tab2.col1 + - tab2.col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL - col1 + - col0 AS col1 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - col0 + tab2.col0 + + tab2.col0 AS col1 FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT DISTINCT + col1 + tab1.col1 + - col1 DIV - col1 FROM tab1
----
21
27
53

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + col1 + tab1.col1 + - col1 / - col1 FROM tab1
----
21
27
53

query I rowsort
SELECT + 43 AS col2 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT + - col1 + - cor0.col2 * + col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT + - ( - 87 ) FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT ALL + + col0 * + 90 * col1 FROM tab2 cor0
----
120870
19530
414180

query I rowsort
SELECT - + col2 + + 72 AS col0 FROM tab1 AS cor0
----
-24
15
18

query I rowsort
SELECT ALL col1 * - 39 AS col1 FROM tab1 AS cor0
----
-1014
-390
-507

onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT - ( col1 ) + + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4243
SELECT - ( col1 ) + + col0 / col0 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4244
SELECT DISTINCT - 69 * + ( col0 * CAST( NULL AS SIGNED ) + col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4244
SELECT DISTINCT - 69 * + ( col0 * CAST ( NULL AS INTEGER ) + col1 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT ALL + + ( ( cor0.col2 ) ) DIV - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + + ( ( cor0.col2 ) ) / - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL - 1 FROM tab0, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT 87 * + tab2.col2 FROM tab2, tab0 AS cor0
----
2262
2349
3306

query I rowsort
SELECT ALL - - col1 + 68 AS col2 FROM tab0 AS cor0
----
154
159
165

query I rowsort
SELECT DISTINCT col2 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + 40 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4251
SELECT ALL + cor0.col0 + 64 DIV col0 + + col2 FROM tab1 AS cor0
----
122
176
78

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL + cor0.col0 + 64 / col0 + + col2 FROM tab1 AS cor0
----
122
176
78

query I rowsort
SELECT - + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + cor0.col2 * col1 + 5 AS col1 FROM tab0 AS cor0
----
102
2843
7467

query I rowsort
SELECT ALL 10 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT + - 2 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
33
7296
790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4256
SELECT - CAST( cor0.col1 AS SIGNED ) * col1 * col1 AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

skipif mysql # not compatible
query I rowsort label-4256
SELECT - CAST ( cor0.col1 AS INTEGER ) * col1 * col1 AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4257
SELECT ALL - + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col2 + cor0.col0 col1 FROM tab0 AS cor0
----
-42
-75
33

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL + + ( col0 ) * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 99 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT - ( cor0.col2 ) * + col1 * ( col0 * col2 ) AS col0 FROM tab0 AS cor0
----
-2247696
-3395
-54457676

query I rowsort
SELECT + 27 + col1 * + col1 FROM tab1 AS cor0
----
127
196
703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - col0 + col0 col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT DISTINCT - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - col0 / - col0 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL - 20 + col2 FROM tab2 cor0
----
18
6
7

query I rowsort
SELECT ALL + - col0 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + ( col2 ) + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - 29 FROM tab2 cor0
----
-29
-29
-29

query I rowsort
SELECT - col1 * - col2 + - cor0.col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + cor0.col1 + - col1 + 39 AS col2 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT + - 93 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT + - cor0.col1 - + col2 * 32 AS col2 FROM tab2 cor0
----
-1233
-891
-895

onlyif mysql # use DIV operator for integer division
query I rowsort label-4275
SELECT ALL + 77 DIV + cor0.col2 FROM tab0 AS cor0
----
0
2
77

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL + 77 / + cor0.col2 FROM tab0 AS cor0
----
0
2
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4276
SELECT ALL 77 * + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL 77 * + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 8 * cor0.col0 - 24 * cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
-23120
-7568
-84168

query I rowsort
SELECT + col2 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + - 32 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT - col2 + - col0 * col2 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab1
----
65

query I rowsort
SELECT DISTINCT ( - col0 * col0 ) FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col0 + - col0 + col2 col1 FROM tab1 AS cor0
----
-111
-3655
-7664

query I rowsort
SELECT col2 * + col2 + + col0 FROM tab2 AS cor0
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 + + 32 col2 FROM tab2 AS cor0
----
117
87
90

query I rowsort
SELECT + col2 + col1 + col2 * col2 FROM tab2 AS cor0
----
1499
761
787

query I rowsort
SELECT DISTINCT - 41 * col0 FROM tab1
----
-123
-2624
-3280

query I rowsort
SELECT 30 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4289
SELECT ALL CAST( NULL AS SIGNED ) + col0 * col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL CAST ( NULL AS INTEGER ) + col0 * col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 31 * - col1 AS col2 FROM tab1 AS cor0
----
-310
-403
-806

query I rowsort
SELECT ALL ( col0 ) + - col2 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL col1 * - col1 AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab1, tab2 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 + cor0.col2 * + col1 col0 FROM tab0 AS cor0
----
1
2742
7366

query I rowsort
SELECT ALL col1 * col1 * col0 AS col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT + 82 * col0 AS col1 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT - + col2 + col2 * col0 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT + col0 * col2 - col0 * col2 * col1 AS col1 FROM tab2 AS cor0
----
-117624
-48032
-5670

query I rowsort
SELECT ALL - cor0.col1 + col2 * cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-132
-26222
-598527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - cor0.col0 col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT col0 * col1 * - col0 + col2 AS col1 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT DISTINCT + col1 * + tab1.col0 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT col0 * - col0 - tab2.col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT + col0 + + col2 * col1 AS col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT + col2 * col2 - + tab2.col2 AS col1 FROM tab2
----
1406
650
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + col0 * + tab0.col2 + - tab0.col0 col2 FROM tab0
----
-1296
-3395
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 - col2 col1 FROM tab0
----
0
1056
6642

query I rowsort
SELECT + - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - col0 * - cor0.col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 * col1 AS col0 FROM tab2 cor0
----
289
3481
961

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 DISTINCT + col2 * - col2 * + cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
-26050
-598345
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4313
SELECT ALL - + col1 * col0 - - col1 * + col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - + col1 * col0 - - col1 * + col1 / + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT col2 * + col2 * tab2.col2 FROM tab2
----
17576
19683
54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-4315
SELECT ALL col1 DIV + col0 + + tab1.col0 DIV tab1.col1 FROM tab1
----
6
6
8

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL col1 / + col0 + + tab1.col0 / tab1.col1 FROM tab1
----
6
6
8

query I rowsort
SELECT ALL - col0 - col0 * col1 FROM tab0 WHERE ( NULL NOT BETWEEN ( NULL ) AND col1 ) AND col2 NOT BETWEEN ( + col0 ) AND col2 * col2
----

query I rowsort
SELECT + - col1 * + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT - - col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 - col0 col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL + col1 - col2 * col2 * col2 FROM tab1
----
-157438
-185183
-884723

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col1 / col2 )
----

query I rowsort
SELECT col0 - - tab0.col2 AS col1 FROM tab0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL col1 * col1 - col1 * col2 FROM tab0
----
4558
819
9312

query I rowsort
SELECT + tab1.col0 + + col0 * - col1 AS col2 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT - col2 * - col1 + - col1 * col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE col2 NOT IN ( + col0 )
----
-86
-91
-97

query I rowsort
SELECT - col2 * col2 + + col0 AS col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT ALL - - col0 + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL 29 * - col0 FROM tab1 AS cor0
----
-1856
-2320
-87

query I rowsort
SELECT DISTINCT + col2 * + col0 + + col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT + + col0 DIV col1 AS col2 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4331
SELECT + + col0 / col1 AS col2 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT DISTINCT + ( col2 ) + ( - col1 ) * + col1 * - col1 AS col0 FROM tab2 AS cor0
----
205405
29818
4951

onlyif mysql # use DIV operator for integer division
query I rowsort label-4333
SELECT + col2 DIV - cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4333
SELECT + col2 / - cor0.col1 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4334
SELECT + cor0.col2 DIV col1 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4334
SELECT + cor0.col2 / col1 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT DISTINCT 7 * + col1 * col0 FROM tab1 AS cor0
----
4480
546
7280

onlyif mysql # use DIV operator for integer division
query I rowsort label-4336
SELECT - col2 DIV col0 AS col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4336
SELECT - col2 / col0 AS col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT 92 * + col0 AS col2 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT - + ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col0 + - cor0.col2 - col1 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT - col0 * col0 - - col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT col1 * - col0 - - col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT tab2.col1 * - col0 * + col0 AS col1 FROM tab2 WHERE NOT ( - col0 + - col0 * col1 ) = NULL
----

query I rowsort
SELECT ALL - col2 * - tab0.col2 * col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL col2 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( col1 * + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT col1 + cor0.col1 + col1 AS col1 FROM tab0 cor0
----
258
273
291

query I rowsort
SELECT col0 * + col1 + - col1 + - col0 FROM tab1
----
49
566
947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 col2 FROM tab0 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT ALL + col0 * col2 * col2 + - col0 - col1 AS col1 FROM tab2
----
113980
5065
52591

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( NULL )
----

query I rowsort
SELECT col0 * + col2 + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab2 WHERE NOT ( + col2 * + col0 + + col2 ) IN ( - col0 )
----
-1343
-217
-4602

query I rowsort
SELECT col0 * + col1 + - tab1.col0 FROM tab1 WHERE NOT ( NULL ) IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT ALL col1 * tab2.col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT 48 * + tab1.col2 AS col0 FROM tab1
----
2592
2736
4608

query I rowsort
SELECT col2 * 57 * col0 FROM tab2
----
10773
115596
171114

query I rowsort
SELECT ALL 48 * - 42 * - col1 AS col1 FROM tab2
----
118944
34272
62496

query I rowsort
SELECT - col1 * - 13 AS col0 FROM tab1
----
130
169
338

query I rowsort
SELECT DISTINCT - col1 + 86 FROM tab2
----
27
55
69

query I rowsort
SELECT ALL col0 + + ( 56 ) AS col0 FROM tab2
----
134
135
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4362
SELECT + col2 * + CAST( - 98 + col0 AS SIGNED ) AS col2 FROM tab1
----
-1728
-1938
-5130

skipif mysql # not compatible
query I rowsort label-4362
SELECT + col2 * + CAST ( - 98 + col0 AS INTEGER ) AS col2 FROM tab1
----
-1728
-1938
-5130

query I rowsort
SELECT col0 * 52 FROM tab1
----
156
3328
4160

query I rowsort
SELECT ALL - - col2 + cor0.col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - col1 * - ( col2 * + col1 + col2 ) FROM tab2
----
11628
26784
92040

query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT cor0.col0 - + col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT col1 * 93 FROM tab0
----
7998
8463
9021

query I rowsort
SELECT ALL + 65 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT - - col0 + - col0 * - ( + col0 + + 2 * 93 ) FROM tab2 AS cor0
----
1358
20670
21014

query I rowsort
SELECT + + col2 + - 63 FROM tab1 AS cor0
----
-6
-9
33

query I rowsort
SELECT DISTINCT + 52 + - 48 AS col2 FROM tab2 cor0
----
4

query I rowsort
SELECT + ( - cor0.col2 ) * cor0.col0 + - ( col0 ) + + cor0.col1 FROM tab0 AS cor0
----
-7296
-730
27

query I rowsort
SELECT + 45 + - col2 FROM tab1 AS cor0
----
-12
-51
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 90 col0 FROM tab0 AS cor0
----
2160
3150
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4376
SELECT CAST( col2 AS SIGNED ) * col1 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-4376
SELECT CAST ( col2 AS INTEGER ) * col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT DISTINCT 89 DIV col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT 89 / col0 FROM tab0
----
1
2
3

query I rowsort
SELECT ALL - 47 * + col2 AS col0 FROM tab2 AS cor0
----
-1222
-1269
-1786

query I rowsort
SELECT - col0 * + cor0.col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT - 10 * ( col0 ) + col2 * + col2 + col2 * col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-96
672
763

skipif mysql # not compatible
query I rowsort label-4381
SELECT - 10 * ( col0 ) + col2 * + col2 + col2 * col2 / col0 AS col1 FROM tab2 AS cor0
----
-96
672
763

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4382
SELECT - - ( ( cor0.col0 ) ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT - - ( ( cor0.col0 ) ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - col1 + - col0 FROM tab2
----
-113
-196
-69

query I rowsort
SELECT + 97 * col2 + + cor0.col2 AS col2 FROM tab0 cor0
----
3234
8036
98

query I rowsort
SELECT - col2 + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT ( + 66 ) * col2 + 58 FROM tab0 AS cor0
----
124
2236
5470

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 42 AS REAL ) * col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
1295
2400
635

query I rowsort
SELECT - ( - col1 * + col1 ) AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT - + col1 * col2 - + col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT - - 59 * - col0 - + col0 * + col2 FROM tab1 AS cor0
----
-12400
-339
-7424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 * col0 + + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - + 59 * col1 + + cor0.col1 * - cor0.col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
116171
4030
50031

query I rowsort
SELECT + 43 + col0 FROM tab1 AS cor0
----
107
123
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col1 col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - 12 * - col0 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT ALL ( col0 ) * col1 * - col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT + ( - 63 ) AS col2 FROM tab0
----
-63

query I rowsort
SELECT - - 38 + col2 * col1 * col1 + - col1 AS col0 FROM tab1 cor0
----
16249
36516
5728

query I rowsort
SELECT - ( + col2 ) * col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + col0 * col1 - - col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + + col1 * + cor0.col0 col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab1 AS cor0
----
17

query I rowsort
SELECT ALL + col2 * col2 * - col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT - col2 * 88 AS col1 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT - 50 AS col2 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT + cor2.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT DISTINCT 67 * 50 FROM tab1, tab1 AS cor0
----
3350

query I rowsort
SELECT DISTINCT - + col2 * + col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4411
SELECT ALL - cor0.col0 + + col1 DIV + col2 col0 FROM tab0 AS cor0
----
-22
-88
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL - cor0.col0 + + col1 / + col2 col0 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT col1 * + 53 FROM tab1 AS cor0
----
1378
530
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-4413
SELECT DISTINCT col2 + 77 + 70 DIV col0 FROM tab0 AS cor0
----
112
159
80

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT col2 + 77 + 70 / col0 FROM tab0 AS cor0
----
112
159
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4414
SELECT + col0 * + CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-4414
SELECT + col0 * + CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - + cor0.col0 * + ( + col2 ) * col0 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4416
SELECT DISTINCT + col0 * - col2 * - col1 + + col2 DIV + 34 FROM tab0 AS cor0
----
3395
664120
68112

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT + col0 * - col2 * - col1 + + col2 / + 34 FROM tab0 AS cor0
----
3395
664120
68112

query I rowsort
SELECT DISTINCT - cor0.col1 * + ( + cor0.col1 ) * + col0 + - ( + col2 ) * + col2 FROM tab2 AS cor0
----
-24275
-272194
-7456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + - 65 col2 FROM tab2 AS cor0
----
-27
-38
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4419
SELECT DISTINCT col2 * CAST( - col1 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT col2 * CAST ( - col1 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL cor0.col1 * - 28 - + col2 AS col0 FROM tab0 AS cor0
----
-2441
-2630
-2717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4421
SELECT DISTINCT cor0.col2 + CAST( NULL AS SIGNED ) * 85 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT DISTINCT - col1 DIV - col0 + col2 AS col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - col1 / - col0 + col2 AS col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT + 58 AS col1 FROM tab0 cor0
----
58
58
58

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

query I rowsort
SELECT DISTINCT 73 FROM tab0 AS cor0
----
73

query I rowsort
SELECT col0 + + col0 * col2 + - col1 FROM tab2 AS cor0
----
165
2047
3064

query I rowsort
SELECT ALL - + col1 + col1 * col1 AS col0 FROM tab2 cor0
----
272
3422
930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4428
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + CAST ( NULL AS REAL ) * col1 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 * + 95 FROM tab1
----
285
6080
7600

query I rowsort
SELECT - ( - col0 ) * - col2 * ( + col1 * col2 ) FROM tab1
----
-2079360
-227448
-9584640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4431
SELECT CAST( 92 AS SIGNED ) * - tab1.col0 FROM tab1
----
-276
-5888
-7360

skipif mysql # not compatible
query I rowsort label-4431
SELECT CAST ( 92 AS INTEGER ) * - tab1.col0 FROM tab1
----
-276
-5888
-7360

query I rowsort
SELECT + 51 AS col2 FROM tab2
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 - col2 * col0 col1 FROM tab0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT DISTINCT col0 * + col2 + col2 DIV col0 FROM tab0
----
35
7298
793

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT col0 * + col2 + col2 / col0 FROM tab0
----
35
7298
793

query I rowsort
SELECT - col1 - col2 * col2 AS col0 FROM tab2
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT tab0.col1 + + col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT - 14 * col0 FROM tab2 AS cor0
----
-1092
-1106
-98

query I rowsort
SELECT col2 * col0 + - col0 AS col1 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - cor0.col2 - cor0.col1 FROM tab2, tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT col1 * + col0 + + col1 - col0 AS col0 FROM tab1
----
101
586
973

query I rowsort
SELECT 38 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT ALL + 0 + col0 * 35 DIV + 54 + + col1 FROM tab1
----
27
51
64

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL + 0 + col0 * 35 / + 54 + + col1 FROM tab1
----
27
51
64

query I rowsort
SELECT ALL + - col0 * + col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - 38 * col1 AS col1 FROM tab0 AS cor0
----
-3268
-3458
-3686

query I rowsort
SELECT - 51 * + col0 FROM tab1 AS cor0
----
-153
-3264
-4080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4446
SELECT + col2 * + ( col2 ) + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4446
SELECT + col2 * + ( col2 ) + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4447
SELECT DISTINCT col1 DIV - 35 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT col1 / - 35 FROM tab0
----
-2

query I rowsort
SELECT 85 FROM tab1, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL ( + 71 * col2 ) FROM tab0
----
2343
5822
71

query I rowsort
SELECT - col2 - - tab1.col0 FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4452
SELECT ALL - col1 DIV col0 + cor0.col2 col0 FROM tab2 AS cor0
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - col1 / col0 + cor0.col2 col0 FROM tab2 AS cor0
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL col2 * col1 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + + col1 + + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - 10 + + ( - cor0.col1 + col0 ) FROM tab2 AS cor0
----
-34
52
9

query I rowsort
SELECT DISTINCT - 0 * - cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + col2 * col1 + 83 AS col1 FROM tab1 AS cor0
----
1331
1487
653

query I rowsort
SELECT col1 * cor0.col1 + - col0 AS col1 FROM tab1 AS cor0
----
36
673
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col0 + + 52 col2 FROM tab1 AS cor0
----
-110
-3596
-7628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT + col0 DIV - col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4463
SELECT + col0 / - col1 + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + 55 * - col1 - - ( 29 ) AS col2 FROM tab0 AS cor0
----
-4701
-4976
-5306

query I rowsort
SELECT ALL + - col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT cor0.col0 * + col0 + 46 AS col1 FROM tab0 AS cor0
----
1271
622
7967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT DISTINCT col1 + col1 DIV + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-4469
SELECT DISTINCT col1 + col1 / + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT + ( col2 ) * + ( + cor0.col2 * - col1 ) - 79 * cor0.col1 FROM tab1 AS cor0
----
-120835
-33280
-77870

query I rowsort
SELECT DISTINCT - - col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

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

query I rowsort
SELECT ALL 97 * col1 FROM tab1 cor0
----
1261
2522
970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT ALL + ( + tab1.col2 ) + col0 - CAST( + ( + col1 ) + - 74 AS SIGNED ) FROM tab1
----
105
185
237

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL + ( + tab1.col2 ) + col0 - CAST ( + ( + col1 ) + - 74 AS INTEGER ) FROM tab1
----
105
185
237

query I rowsort
SELECT ALL + 9 * cor0.col0 FROM tab2 cor0
----
63
702
711

query I rowsort
SELECT - - col0 - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4478
SELECT + + 1 + col0 * + col0 DIV - col0 + col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4478
SELECT + + 1 + col0 * + col0 / - col0 + col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4480
SELECT + - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT + - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT ALL - cor0.col0 + + 3 DIV - 92 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - cor0.col0 + + 3 / - 92 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - ( cor0.col1 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 85 * col0 FROM tab1 cor0
----
255
5440
6800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4484
SELECT ALL col1 + - CAST( - ( + col2 ) AS SIGNED ) * + col0 AS col0 FROM tab2
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-4484
SELECT ALL col1 + - CAST ( - ( + col2 ) AS INTEGER ) * + col0 AS col0 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - ( - col2 ) + + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + 25 FROM tab1, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT + + col1 * 69 - col2 FROM tab2 AS cor0
----
1135
2112
4045

query I rowsort
SELECT + 76 * col0 + col0 * + col0 FROM tab0 AS cor0
----
14685
2400
3885

query I rowsort
SELECT + 17 * - col0 * + col0 - 22 FROM tab2 AS cor0
----
-103450
-106119
-855

query I rowsort
SELECT DISTINCT - 82 - ( + col1 ) * - 59 AS col0 FROM tab0 AS cor0
----
4992
5287
5641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col0 col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - 84 FROM tab0
----
-84
-84
-84

query I rowsort
SELECT ALL + 80 * col1 FROM tab1
----
1040
2080
800

query I rowsort
SELECT tab0.col1 + tab0.col2 * + 56 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to a6379d30d50ba9834c442c4ac95b588a

query I rowsort
SELECT - col2 * col0 * - ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + col1 * 56 AS col2 FROM tab2 AS cor0
----
1736
3304
952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4497
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + tab1.col2 col2 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL cor0.col1 * + col2 - cor0.col0 * col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT col2 + - 83 FROM tab2 AS cor0
----
-45
-56
-57

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * 57 AS col2 FROM tab2 AS cor0
----
430
4505
4520

query I rowsort
SELECT ALL + + cor0.col0 + + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - - col2 - ( col2 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 - 18 * + col0 AS col2 FROM tab2 AS cor0
----
-133
-1482
-1501

onlyif mysql # use DIV operator for integer division
query I rowsort label-4505
SELECT DISTINCT tab2.col2 DIV - 91 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT tab2.col2 / - 91 AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 27 FROM tab2, tab1 cor0
----
27

query I rowsort
SELECT + tab0.col2 * 15 - + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to eba81a1a757692a3e9382f150671346e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4508
SELECT ALL col2 * 64 DIV - col1 FROM tab0
----
-24
-57
0

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL col2 * 64 / - col1 FROM tab0
----
-24
-57
0

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - + ( col1 ) + + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - ( + 53 ) FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT - col1 + col0 - + tab2.col1 FROM tab2
----
-40
-55
45

query I rowsort
SELECT ALL col2 + tab2.col2 - - col0 FROM tab2
----
130
155
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4515
SELECT - ( col0 ) + col1 DIV ( col1 ) col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4515
SELECT - ( col0 ) + col1 / ( col1 ) col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL col2 * col1 * col0 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4517
SELECT ALL CAST( + col2 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL CAST ( + col2 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT cor0.col0 + col2 * col2 - + col1 * col0 AS col1 FROM tab0 AS cor0
----
-1286
-3359
-951

onlyif mysql # use DIV operator for integer division
query I rowsort label-4519
SELECT - 80 + col2 * col0 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
-46
-74
96

skipif mysql # not compatible
query I rowsort label-4519
SELECT - 80 + col2 * col0 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
-46
-74
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 74 ) * col2 + 47 col1 FROM tab2 AS cor0
----
1971
2045
2859

query I rowsort
SELECT + 11 * - col0 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( cor0.col2 ) + 44 col0 FROM tab0 cor0
----
126
45
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4524
SELECT - col1 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4524
SELECT - col1 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 72 + col1 + tab2.col1 AS col0 FROM tab2
----
106
134
190

query I rowsort
SELECT + col0 * - tab1.col2 + col0 + tab1.col1 FROM tab1
----
-133
-3574
-7587

query I rowsort
SELECT 81 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT col1 + - col0 + + col1 AS col2 FROM tab1
----
-44
-54
49

query I rowsort
SELECT DISTINCT + 48 FROM tab2, tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT col0 * col1 + col2 + - ( 58 * - col0 ) FROM tab1
----
306
4409
5776

query I rowsort
SELECT DISTINCT - col2 + 14 AS col1 FROM tab0
----
-19
-68
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT - ( + ( col0 ) ) * CAST( NULL AS DECIMAL ) * - tab1.col2 + col0 * - 56 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT - ( + ( col0 ) ) * CAST ( NULL AS REAL ) * - tab1.col2 + col0 * - 56 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 48 * + cor0.col1 * + col1 FROM tab2 AS cor0
----
13872
167088
46128

query I rowsort
SELECT tab0.col0 + ( - col0 ) + ( + col0 ) AS col2 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4535
SELECT DISTINCT - ( + col1 ) DIV + col1 + - col1 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT - ( + col1 ) / + col1 + - col1 FROM tab2
----
-18
-32
-60

query I rowsort
SELECT DISTINCT - col1 + 63 * col1 + - col1 AS col0 FROM tab0
----
5246
5551
5917

query I rowsort
SELECT - col2 + - col2 + + col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + 83 * + col0 * + col1 FROM tab0 cor0
----
171312
281785
672217

onlyif mysql # use DIV operator for integer division
query I rowsort label-4539
SELECT 92 + col1 DIV col1 + col0 * col0 * + cor0.col0 AS col1 FROM tab2 cor0
----
436
474645
493132

skipif mysql # not compatible
query I rowsort label-4539
SELECT 92 + col1 / col1 + col0 * col0 * + cor0.col0 AS col1 FROM tab2 cor0
----
436
474645
493132

query I rowsort
SELECT ALL - col2 * + col2 + - ( col1 ) FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - col1 * - col2 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * col1 + + 96 * + col2 AS col2 FROM tab2 AS cor0
----
3460
4089
4311

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - - 49 FROM tab2 AS cor0
----
49

query I rowsort
SELECT + col2 * + col1 + - ( col0 ) * + col1 + 28 AS col2 FROM tab2 AS cor0
----
-3040
-669
648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4546
SELECT - 85 + col1 * CAST( + col0 * + col1 AS SIGNED ) FROM tab0 AS cor0
----
177419
329230
736924

skipif mysql # not compatible
query I rowsort label-4546
SELECT - 85 + col1 * CAST ( + col0 * + col1 AS INTEGER ) FROM tab0 AS cor0
----
177419
329230
736924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4547
SELECT - 32 + - col0 * CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
157
1996
2970

skipif mysql # not compatible
query I rowsort label-4547
SELECT - 32 + - col0 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
157
1996
2970

query I rowsort
SELECT ALL col1 * col2 * - ( + col0 * col2 ) FROM tab0 AS cor0
----
-2247696
-3395
-54457676

query I rowsort
SELECT + ( + col1 ) * col2 - - 47 FROM tab2
----
1581
693
884

query I rowsort
SELECT ALL col2 + + cor0.col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - cor0.col1 * + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT col1 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( 68 AS REAL ) + col0 FROM tab1 AS cor0
----
207
4416
5520

query I rowsort
SELECT col1 * - col0 - + ( col1 ) AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - col0 + - 47 FROM tab2 AS cor0
----
-125
-126
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( ( col2 ) * col0 ) col2 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT col2 + 33 + - ( col2 * col0 ) AS col0 FROM tab2
----
-129
-1969
-2931

query I rowsort
SELECT - col1 * ( 73 ) - - col2 AS col2 FROM tab0 AS cor0
----
-6245
-6561
-7080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4560
SELECT + col1 * - CAST( 36 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1116
-2124
-612

skipif mysql # not compatible
query I rowsort label-4560
SELECT + col1 * - CAST ( 36 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT DISTINCT + + col1 * ( - col0 ) + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL col1 * ( cor0.col1 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4563
SELECT ALL + col1 DIV col1 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-4563
SELECT ALL + col1 / col1 col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 + + ( - col1 + cor0.col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - ( - 75 ) + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-3
-565
-965

query I rowsort
SELECT ALL + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ( - ( col2 ) ) * cor0.col2 - col2 FROM tab2 AS cor0
----
-1482
-702
-756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4569
SELECT - col1 + + CAST( NULL AS SIGNED ) + col1 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT - col1 + + CAST ( NULL AS INTEGER ) + col1 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT + 7 DIV cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-4570
SELECT + 7 / cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT - col0 - + col0 * + col2 * + CAST( + ( col2 ) AS SIGNED ) col0 FROM tab1 AS cor0
----
-208000
-737360
-8751

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4572
SELECT - col0 - + col0 * + col2 * + CAST ( + ( col2 ) AS INTEGER ) col0 FROM tab1 AS cor0
----
-208000
-737360
-8751

query I rowsort
SELECT ALL - + 74 + 79 + + col0 * col0 AS col1 FROM tab0 cor0
----
1230
581
7926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 - col0 col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT - 49 - cor0.col0 FROM tab0 AS cor0
----
-138
-73
-84

query I rowsort
SELECT ALL + ( col2 ) * + col1 + col0 + col0 AS col2 FROM tab1 AS cor0
----
1408
1410
698

query I rowsort
SELECT DISTINCT + col2 * 45 + + col0 - 85 * col2 * col1 FROM tab2 AS cor0
----
-129142
-53121
-69923

query I rowsort
SELECT + + 39 - col1 * - col0 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
13559
2067
6439

query I rowsort
SELECT DISTINCT - + col1 + ( col1 ) * cor0.col0 * col1 + + col1 * - ( - col0 ) AS col0 FROM tab1 AS cor0
----
14547
2080
7030

query I rowsort
SELECT DISTINCT ( + 45 ) * col0 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT ALL 87 * + col1 + + col2 AS col1 FROM tab0 AS cor0
----
7515
7999
8440

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + ( col1 ) + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + ( 98 ) + - cor0.col0 AS col1 FROM tab0 AS cor0
----
63
74
9

query I rowsort
SELECT - 35 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT col2 - tab0.col2 * col1 * + tab0.col1 AS col0 FROM tab0
----
-244035
-678960
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + cor0.col0 col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT col1 - + col0 * col2 AS col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + col2 * col2 * + col1 + ( 64 ) FROM tab0
----
161
611948
93718

query I rowsort
SELECT + tab2.col2 + col1 + - tab2.col2 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT ( col1 ) * col0 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4592
SELECT ALL CAST( NULL AS SIGNED ) + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL CAST ( NULL AS INTEGER ) + 12 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 73 + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e123436bca42d185acc57f27881052f4

query I rowsort
SELECT ALL - 58 AS col1 FROM tab2
----
-58
-58
-58

query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + + col2 AS col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - - col0 - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + cor0.col0 + - col0 * col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT DISTINCT + col2 DIV cor0.col0 + - col0 * col1 FROM tab1 cor0
----
-1039
-60
-640

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT + col2 / cor0.col0 + - col0 * col1 FROM tab1 cor0
----
-1039
-60
-640

query I rowsort
SELECT ALL - col1 - ( - 41 ) FROM tab2 AS cor0
----
-18
10
24

query I rowsort
SELECT ALL - col1 + - col0 * - 0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * - col1 col0 FROM tab0 AS cor0
----
-8256
-8736
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4604
SELECT cor0.col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4604
SELECT cor0.col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT - col0 * col1 DIV - cor0.col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4605
SELECT - col0 * col1 / - cor0.col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col1 - - 94 AS col0 FROM tab0 AS cor0
----
180
185
191

query I rowsort
SELECT + - col2 * - col0 + + col0 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 + col1 col0 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT 41 + + cor1.col0 * 45 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
1121
1616
4046

query I rowsort
SELECT DISTINCT + cor0.col0 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 27 + col1 AS col1 FROM tab0
----
113
118
124

query I rowsort
SELECT DISTINCT + + col0 * 21 + col2 FROM tab1 cor0
----
117
1401
1776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4613
SELECT CAST( col0 AS SIGNED ) + col1 * col1 FROM tab2 AS cor0
----
3559
368
968

skipif mysql # not compatible
query I rowsort label-4613
SELECT CAST ( col0 AS INTEGER ) + col1 * col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab0 cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 7 ) col1 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT ALL 61 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT - ( - col2 ) DIV + CAST( - 7 * + col0 AS SIGNED ) col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4617
SELECT - ( - col2 ) / + CAST ( - 7 * + col0 AS INTEGER ) col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT ALL col0 + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL col0 + col0 / col2 AS col1 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT DISTINCT + + cor1.col2 * + 4 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
132
328
4

query I rowsort
SELECT - 13 * col1 AS col1 FROM tab1
----
-130
-169
-338

query I rowsort
SELECT - tab1.col2 * col1 - ( col2 ) FROM tab1
----
-1344
-1458
-627

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc

query I rowsort
SELECT + - 73 AS col2 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL 18 * + tab0.col1 FROM tab0
----
1548
1638
1746

query I rowsort
SELECT 86 * + col1 + col1 AS col1 FROM tab1
----
1131
2262
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 col0 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT ( col1 + 96 ) AS col0 FROM tab2
----
113
127
155

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4629
SELECT DISTINCT + col2 * + CAST( NULL AS DECIMAL ) * col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT + col2 * + CAST ( NULL AS REAL ) * col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + - 50 FROM tab1 AS cor0
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - ( - col1 ) + ( - col2 ) col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT + col0 * - ( + tab0.col2 ) * col0 AS col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT + 81 FROM tab2, tab2 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT tab0.col2 * 84 FROM tab0
----
2772
6888
84

query I rowsort
SELECT + 87 FROM tab0, tab0 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * - col0 col2 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - col1 ) ) col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + - col2 + + 35 + - cor0.col0 * - 39 * 87 AS col1 FROM tab1 cor0
----
10160
217130
271379

query I rowsort
SELECT ( - col1 ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4640
SELECT ALL - 31 DIV col0 AS col2 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - 31 / col0 AS col2 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 29 + col1 FROM tab0 AS cor0
----
57
62
68

query I rowsort
SELECT + 28 AS col0 FROM tab1 cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col0 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT 33 + col0 AS col1 FROM tab0 AS cor0
----
122
57
68

query I rowsort
SELECT - col2 + col0 + col1 AS col1 FROM tab0
----
131
77
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT ALL + - col0 DIV 52 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + - col0 / 52 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - + col1 * + col0 - + col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT - + cor0.col2 * - ( + col0 + + col1 ) AS col2 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT - cor0.col0 * col1 + col2 * + col0 FROM tab0 AS cor0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT DISTINCT ( tab1.col0 ) DIV ( - ( col1 ) ) - + col0 FROM tab1
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT ( tab1.col0 ) / ( - ( col1 ) ) - + col0 FROM tab1
----
-3
-70
-86

query I rowsort
SELECT - col2 + - col2 * col0 + - col2 AS col0 FROM tab1
----
-270
-3762
-7872

query I rowsort
SELECT + col0 * 47 AS col1 FROM tab2 AS cor0
----
329
3666
3713

query I rowsort
SELECT DISTINCT + cor0.col0 + + col1 * - 67 FROM tab1 AS cor0
----
-1739
-606
-791

query I rowsort
SELECT - - col2 * + ( 51 ) - + col2 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT + cor0.col0 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col1 * + ( - col2 ) AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT cor0.col0 + col2 * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + cor0.col0 * 3 * col1 + + col0 FROM tab2 AS cor0
----
13884
4108
658

query I rowsort
SELECT - + col2 + 14 * ( cor0.col2 + + col1 ) AS col0 FROM tab2 AS cor0
----
1164
732
785

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - CAST ( + col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - col2 + - ( - col0 * - col1 ) FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT + col0 + col2 * + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL + 47 AS col1 FROM tab0
----
47
47
47

query I rowsort
SELECT - - 62 + ( - col0 ) * col1 FROM tab0 cor0
----
-2002
-3333
-8037

query I rowsort
SELECT + col1 * + 76 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT DISTINCT - cor0.col0 + - 67 AS col2 FROM tab1 cor0
----
-131
-147
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT - + CAST( - 79 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-12
-18
-7

skipif mysql # not compatible
query I rowsort label-4669
SELECT - + CAST ( - 79 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-12
-18
-7

query I rowsort
SELECT - - ( 68 ) * + col0 FROM tab0 AS cor0
----
1632
2380
6052

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4671
SELECT ( col0 ) * - col2 * - CAST( ( col2 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-4671
SELECT ( col0 ) * - col2 * - CAST ( ( col2 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4672
SELECT + 97 + + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT + 97 + + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4673
SELECT ALL cor0.col1 DIV - cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL cor0.col1 / - cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
21
33
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT ALL + col2 DIV col1 + 12 + - 21 AS col0 FROM tab2 AS cor0
----
-7
-9
-9

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL + col2 / col1 + 12 + - 21 AS col0 FROM tab2 AS cor0
----
-7
-9
-9

query I rowsort
SELECT 7 * + col2 AS col1 FROM tab2 cor0
----
182
189
266

query I rowsort
SELECT DISTINCT + col2 + col2 * - ( - 53 + col2 * 96 ) FROM tab2 AS cor0
----
-136572
-63492
-68526

query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 * col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT 3 + + col2 + 21 FROM tab1 cor0
----
120
78
81

query I rowsort
SELECT ALL 86 - - col0 FROM tab1 AS cor0
----
150
166
89

query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - + 56 FROM tab1 cor0
----
-56
-56
-56

query I rowsort
SELECT ALL - col1 * - col2 - - col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + 78 + - cor0.col2 AS col2 FROM tab2 cor0
----
40
51
52

query I rowsort
SELECT ALL + - cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 32 AS col0 FROM tab1 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + 2 AS col2 FROM tab1 AS cor0
----
2

query I rowsort
SELECT 47 + + col2 AS col1 FROM tab0
----
129
48
80

query I rowsort
SELECT col1 - - col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT 83 FROM tab2, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT 43 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT + + 29 * 4 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b203c14e07bd085fccb96893918131a

query I rowsort
SELECT + 39 + 86 * - col0 FROM tab2 AS cor0
----
-563
-6669
-6755

query I rowsort
SELECT - ( + col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - 94 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT + col2 * - col2 * cor0.col2 + col2 * 24 * col0 AS col1 FROM tab1 AS cor0
----
-153576
-700416
-97641

query I rowsort
SELECT ALL - ( col0 ) + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4700
SELECT ALL - CAST( - cor0.col1 AS SIGNED ) + - col0 * + 3 AS col0 FROM tab1 AS cor0
----
-182
-227
17

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - CAST ( - cor0.col1 AS INTEGER ) + - col0 * + 3 AS col0 FROM tab1 AS cor0
----
-182
-227
17

query I rowsort
SELECT DISTINCT tab1.col2 + + 88 FROM tab1
----
142
145
184

query I rowsort
SELECT - tab0.col0 * 94 AS col1 FROM tab0
----
-2256
-3290
-8366

query I rowsort
SELECT 60 * col1 - col0 FROM tab1
----
1557
536
700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * - col2 + - tab0.col0 col1 FROM tab0
----
2055
28
5077

query I rowsort
SELECT tab0.col1 * col2 + - col1 AS col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT - 59 - col1 AS col1 FROM tab0
----
-145
-150
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col0 FROM tab0
----
7
7
7

query I rowsort
SELECT 22 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT - + cor0.col2 + + ( ( cor0.col1 ) ) FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + col2 * - col1 + - 56 AS col1 FROM tab2 cor0
----
-1590
-702
-893

query I rowsort
SELECT ALL - + col1 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4712
SELECT + col0 DIV 14 AS col2 FROM tab2 AS cor0
----
0
5
5

skipif mysql # not compatible
query I rowsort label-4712
SELECT + col0 / 14 AS col2 FROM tab2 AS cor0
----
0
5
5

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4714
SELECT + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4714
SELECT + col1 / + col1 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4715
SELECT - CAST( NULL AS SIGNED ) * + col0 * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT - CAST ( NULL AS INTEGER ) * + col0 * - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4716
SELECT CAST( NULL AS SIGNED ) + cor0.col1 / col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT CAST ( NULL AS INTEGER ) + cor0.col1 / col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4717
SELECT + - col1 * col2 DIV 20 + col0 AS col1 FROM tab1 AS cor0
----
-67
18
36

skipif mysql # not compatible
query I rowsort label-4717
SELECT + - col1 * col2 / 20 + col0 AS col1 FROM tab1 AS cor0
----
-67
18
36

query I rowsort
SELECT DISTINCT col2 * + col0 + col2 AS col1 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT ALL + ( + col0 + col0 * col2 ) FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT + - col1 DIV col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT + - col1 / col0 FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT - col1 DIV col0 + + col0 AS col2 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-4721
SELECT - col1 / col0 + + col0 AS col2 FROM tab0 AS cor0
----
21
33
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT - col2 * col2 + 96 DIV - col0 FROM tab2 AS cor0
----
-1445
-677
-742

skipif mysql # not compatible
query I rowsort label-4722
SELECT - col2 * col2 + 96 / - col0 FROM tab2 AS cor0
----
-1445
-677
-742

query I rowsort
SELECT + + col2 + 96 * - col1 FROM tab2 AS cor0
----
-1594
-2949
-5638

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4724
SELECT DISTINCT tab1.col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT tab1.col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT + 84 * col1 AS col0 FROM tab0
----
7224
7644
8148

query I rowsort
SELECT ( tab2.col0 + col0 ) AS col2 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + + col2 * - cor0.col1 * - col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + col1 * - col1 + tab2.col2 * + col1 FROM tab2
----
-124
-1947
357

onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT DISTINCT - - col0 DIV + 56 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT - - col0 / + 56 FROM tab2 AS cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4731
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor0.col0 * col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( ( col1 ) AS REAL ) col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col0 + - col0 * - col0 * - cor0.col2 + - cor0.col1 FROM tab0 AS cor0
----
-1287
-19070
-649524

query I rowsort
SELECT DISTINCT + col1 * - 8 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT DISTINCT + - col1 * col2 + col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT col1 * 58 FROM tab2 cor0
----
1798
3422
986

query I rowsort
SELECT ALL + 81 AS col1 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + col2 * - col0 + + col2 * 75 FROM tab0 AS cor0
----
-1148
1683
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * col0 col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4741
SELECT DISTINCT - 73 DIV - col0 AS col0 FROM tab0 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT - 73 / - col0 AS col0 FROM tab0 cor0
----
0
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT - col0 DIV col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4742
SELECT - col0 / col1 AS col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT + ( - 39 ) FROM tab0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab1
----
51

query I rowsort
SELECT - 70 + + col2 + + col2 AS col2 FROM tab2
----
-16
-18
6

query I rowsort
SELECT DISTINCT ( - col1 ) + col1 AS col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL - 47 + tab0.col1 AS col1 FROM tab0
----
39
44
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4749
SELECT DISTINCT ( ( - col0 ) * - CAST( NULL AS SIGNED ) + col1 * + tab2.col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT ( ( - col0 ) * - CAST ( NULL AS INTEGER ) + col1 * + tab2.col0 ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT cor0.col1 - col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 76 - + col1 FROM tab1 AS cor0
----
50
63
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT ALL + col2 + cor0.col2 DIV ( col2 ) col0 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + col2 + cor0.col2 / ( col2 ) col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL + 64 + col2 * + cor0.col0 FROM tab2 AS cor0
----
2092
253
3066

query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 + - 21 * 3 * col1 AS col0 FROM tab1 AS cor0
----
-1647
-4726
-7219

query I rowsort
SELECT ALL + - ( + col0 ) + - col2 * + 65 FROM tab2 cor0
----
-1762
-1768
-2549

onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT ALL - 39 + col2 DIV ( col0 ) AS col0 FROM tab1 cor0
----
-21
-38
-39

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL - 39 + col2 / ( col0 ) AS col0 FROM tab1 cor0
----
-21
-38
-39

query I rowsort
SELECT ALL - col2 + + col0 * col1 * - col2 - col1 AS col1 FROM tab2 cor0
----
-119737
-51089
-5917

onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT DISTINCT cor0.col1 DIV - col0 - col0 col0 FROM tab1 AS cor0
----
-11
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4759
SELECT DISTINCT cor0.col1 / - col0 - col0 col0 FROM tab1 AS cor0
----
-11
-64
-80

query I rowsort
SELECT DISTINCT col0 * - col0 - ( + col0 ) AS col0 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT + col2 + - ( col1 ) * col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col2 - 90 FROM tab1 AS cor0
----
-33
-36
6

query I rowsort
SELECT DISTINCT + 23 * col0 FROM tab0
----
2047
552
805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4764
SELECT + - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4764
SELECT + - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL tab2.col2 * + tab2.col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT 85 * cor0.col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT ALL + - cor0.col1 + - col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - col2 * col1 - + col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT 42 + col2 + - col2 FROM tab0 AS cor0
----
42

query I rowsort
SELECT ALL + - col1 + 55 * - col0 FROM tab1 AS cor0
----
-191
-3530
-4413

query I rowsort
SELECT DISTINCT 8 * + col0 - col0 * + cor0.col0 FROM tab1 AS cor0
----
-3584
-5760
15

query I rowsort
SELECT ALL - ( 30 ) FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT tab1.col1 - - ( - col2 ) FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( - 64 ) col0 FROM tab1
----
128
144
67

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( col2 AS REAL ) + tab2.col0 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT + tab1.col1 DIV 99 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-4776
SELECT + tab1.col1 / 99 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col2 FROM tab1 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL + - col1 - col1 * - col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + ( 35 ) FROM tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col2 * 67 + cor0.col1 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
3590
3772
6349

query I rowsort
SELECT DISTINCT + - col1 * + 90 AS col2 FROM tab1 AS cor0
----
-1170
-2340
-900

query I rowsort
SELECT DISTINCT - - col0 + + col1 FROM tab2 AS cor0
----
137
38
96

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 ALL 20 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4787
SELECT ALL CAST( - 3 AS SIGNED ) * col0 AS col0 FROM tab2
----
-21
-234
-237

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL CAST ( - 3 AS INTEGER ) * col0 AS col0 FROM tab2
----
-21
-234
-237

query I rowsort
SELECT - 40 * - col1 * + col0 AS col1 FROM tab1
----
25600
3120
41600

query I rowsort
SELECT col0 * + 73 + + tab2.col2 FROM tab2
----
538
5720
5805

query I rowsort
SELECT ALL - + cor0.col0 AS col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 1713adaf687595322d888d4eeefdbbc8

query I rowsort
SELECT 29 FROM tab0, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL 41 * tab2.col1 AS col2 FROM tab2
----
1271
2419
697

query I rowsort
SELECT cor0.col1 * col1 * - 20 FROM tab0 AS cor0
----
-147920
-165620
-188180

query I rowsort
SELECT 81 * + col1 FROM tab1 cor0
----
1053
2106
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4796
SELECT - CAST( 74 AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

skipif mysql # not compatible
query I rowsort label-4796
SELECT - CAST ( 74 AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL + + col0 + - col2 * - col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 47 ) col2 FROM tab1, tab2 cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT ALL - 27 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT ALL - col2 * col1 + - 20 + + col1 AS col0 FROM tab2
----
-1495
-649
-826

query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775

query I rowsort
SELECT - 99 * - 77 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to cc2ab8f3b2253041047c86fef4dfe8c6

query I rowsort
SELECT col0 + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
175
215
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4804
SELECT ALL col0 * - CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL col0 * - CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT DISTINCT - + col1 + - 69 DIV col1 FROM tab1 AS cor0
----
-16
-18
-28

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT - + col1 + - 69 / col1 FROM tab1 AS cor0
----
-16
-18
-28

query I rowsort
SELECT col0 * 82 FROM tab2 cor0
----
574
6396
6478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 47 col2 FROM tab2 AS cor0
----
20
21
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT col2 + - col1 + col0 * cor0.col0 DIV col0 AS col0 FROM tab2 AS cor0
----
100
3
45

skipif mysql # not compatible
query I rowsort label-4808
SELECT col2 + - col1 + col0 * cor0.col0 / col0 AS col0 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT DISTINCT col0 DIV 2 + + col0 AS col0 FROM tab0 AS cor0
----
133
36
52

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT col0 / 2 + + col0 AS col0 FROM tab0 AS cor0
----
133
36
52

query I rowsort
SELECT ALL - col0 + + cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col0 + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( + col2 ) col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col1 * - 60 AS col1 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT - cor0.col2 * col2 - - col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - ( ( - cor0.col1 ) ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - 56 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
158928
417872
5432

query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab2, tab1 AS cor0
----
-6

query I rowsort
SELECT col1 * - col0 * 71 FROM tab0
----
-146544
-241045
-575029

query I rowsort
SELECT - col2 * + tab0.col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - - ( + 54 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1782
-4428
-54

query I rowsort
SELECT + + 70 FROM tab2 cor0
----
70
70
70

query I rowsort
SELECT - col1 * - 99 + - col1 AS col2 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT + 83 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * cor1.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5bb85ac8dc21877ff66a0789ba6bef8e

query I rowsort
SELECT - 18 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT DISTINCT + col0 + col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + cor0.col1 + 23 FROM tab1 AS cor0
----
33
36
49

query I rowsort
SELECT cor0.col0 * cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2, tab2 cor3
----
243 values hashing to 987bb44fba92bad2d37a687fed383d42

query I rowsort
SELECT - col1 * - col0 * + col1 AS col2 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT ALL - col2 - col2 * + col0 AS col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT ALL col1 + col1 FROM tab0 WHERE col0 + col0 + + col0 * col0 * - tab0.col2 BETWEEN col2 * - col0 AND ( NULL )
----

query I rowsort
SELECT + col1 * col1 + col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT 73 * + cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
1895
666
869

onlyif mysql # use DIV operator for integer division
query I rowsort label-4836
SELECT + col0 DIV col0 - col2 AS col0 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-4836
SELECT + col0 / col0 - col2 AS col0 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT col1 * col1 * + col0 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4838
SELECT col2 DIV col1 + col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-4838
SELECT col2 / col1 + col2 FROM tab1
----
103
56
62

query I rowsort
SELECT tab2.col2 * col1 + col2 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT - tab0.col2 + tab0.col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - + ( + col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 61 * - col2 FROM tab2
----
-1586
-1647
-2318

query I rowsort
SELECT + ( - col1 * + col1 ) AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab0
----
6

query I rowsort
SELECT + cor0.col1 * + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947

query I rowsort
SELECT - 65 + + col0 AS col2 FROM tab1 AS cor0
----
-1
-62
15

query I rowsort
SELECT + 85 * col1 - col0 AS col1 FROM tab1 AS cor0
----
1025
2207
786

query I rowsort
SELECT - col2 + col2 * 28 AS col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT + col2 + col0 * 23 FROM tab0 AS cor0
----
2129
585
806

query I rowsort
SELECT + col2 * col0 * 5 AS col2 FROM tab1 AS cor0
----
18240
38400
810

query I rowsort
SELECT + col2 + + col2 * - ( tab0.col0 * + col1 ) + col1 AS col0 FROM tab0
----
-3297
-663945
-67993

onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT col1 DIV col2 + + 56 - - col0 AS col2 FROM tab0
----
146
188
82

skipif mysql # not compatible
query I rowsort label-4852
SELECT col1 / col2 + + 56 - - col0 AS col2 FROM tab0
----
146
188
82

query I rowsort
SELECT + ( - col0 ) * + 77 AS col0 FROM tab0 AS cor0
----
-1848
-2695
-6853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4854
SELECT col2 * + CAST( cor0.col1 + col2 * 88 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
258012
286482
812256

skipif mysql # not compatible
query I rowsort label-4854
SELECT col2 * + CAST ( cor0.col1 + col2 * 88 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
258012
286482
812256

query I rowsort
SELECT + cor0.col1 + 28 FROM tab0 AS cor0
----
114
119
125

onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT + ( cor0.col2 ) DIV - 38 + - cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 30518cf5a1723048b93f8b3b73d43714

skipif mysql # not compatible
query I rowsort label-4856
SELECT + ( cor0.col2 ) / - 38 + - cor0.col2 FROM tab2, tab1 cor0
----
9 values hashing to 30518cf5a1723048b93f8b3b73d43714

query I rowsort
SELECT - 96 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT DISTINCT + cor0.col0 DIV 79 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT + cor0.col0 / 79 AS col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - col2 + ( - col0 ) * + col1 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT cor0.col2 DIV col2 - + col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4861
SELECT cor0.col2 / col2 - + col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT - + col1 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT - col1 + col0 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL - col2 * - 26 AS col1 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT + + col1 * + cor0.col0 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col0 * 11 FROM tab2
----
-77
-858
-869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + - col0 * + col2 * 24 col1 FROM tab2 AS cor0
----
-4529
-48594
-71969

query I rowsort
SELECT ALL - col0 + - 52 FROM tab1 AS cor0
----
-116
-132
-55

query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4870
SELECT - col2 + - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-4870
SELECT - col2 + - col1 / + col1 AS col0 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT + - 45 * - ( col0 ) FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT ALL cor2.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + 91 * col1 * - col2 + - col1 * - col2 * col0 AS col2 FROM tab0 AS cor0
----
-14924
-190146
-5432

query I rowsort
SELECT ALL - col2 * - col2 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
13448
2
2178

onlyif mysql # use DIV operator for integer division
query I rowsort label-4876
SELECT - + tab0.col1 * 20 DIV + tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

skipif mysql # not compatible
query I rowsort label-4876
SELECT - + tab0.col1 * 20 / + tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT DISTINCT 99 + col2 AS col0 FROM tab1 AS cor0
----
153
156
195

query I rowsort
SELECT ALL + + 61 * col0 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT - cor0.col2 * + col1 - 4 FROM tab0 AS cor0
----
-101
-2842
-7466

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4881
SELECT - 96 * col0 + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-641
-7429
-7567

skipif mysql # not compatible
query I rowsort label-4881
SELECT - 96 * col0 + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-641
-7429
-7567

query I rowsort
SELECT - 39 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT DISTINCT col2 * - 20 AS col0 FROM tab0 AS cor0
----
-1640
-20
-660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4884
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * ( col0 ) * - col0 AS col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT - col0 * 43 + col2 FROM tab0
----
-1504
-3745
-999

query I rowsort
SELECT ALL ( 58 ) FROM tab2, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c9ee6ec1bc8c6eb5f95042f98a50bd57

query I rowsort
SELECT 75 * + col0 AS col0 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT + + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + ( - 93 ) + col0 FROM tab2 AS cor0
----
-14
-15
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4892
SELECT ALL cor0.col2 * col0 + col1 DIV 42 AS col0 FROM tab0 AS cor0
----
37
7300
794

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL cor0.col2 * col0 + col1 / 42 AS col0 FROM tab0 AS cor0
----
37
7300
794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 50 col2 FROM tab2 cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - + 88 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT ALL 77 AS col0 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT + - col0 * + 79 FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT + 75 * 40 * col0 AS col0 FROM tab0 AS cor0
----
105000
267000
72000

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 + tab1.col0 - 81 AS col1 FROM tab1
----
-1
-17
-78

query I rowsort
SELECT + col0 - 75 FROM tab2
----
-68
3
4

query I rowsort
SELECT ALL cor0.col1 + + col2 - col1 * 6 AS col0 FROM tab1 AS cor0
----
-76
31
7

query I rowsort
SELECT DISTINCT + - col0 - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT + col0 - + col0 * - 41 AS col0 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT ALL - + ( - col1 ) + - cor0.col2 * + cor0.col1 AS col2 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT + + cor0.col0 * - cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT DISTINCT + + col1 DIV col0 - 89 AS col1 FROM tab1 AS cor0
----
-81
-89

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT + + col1 / col0 - 89 AS col1 FROM tab1 AS cor0
----
-81
-89

query I rowsort
SELECT - col1 + + col1 * + 26 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT - col1 + - col0 * 46 FROM tab2 AS cor0
----
-353
-3647
-3651

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + tab2.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col1 + ( col1 ) - + 0 AS col1 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 - - 47 col1 FROM tab0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col1 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT 5 * + col2 AS col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT 18 + col0 AS col1 FROM tab1 AS cor0
----
21
82
98

query I rowsort
SELECT + - 31 + - col1 AS col2 FROM tab1 AS cor0
----
-41
-44
-57

query I rowsort
SELECT ALL col2 * col2 + 54 FROM tab2 AS cor0
----
1498
730
783

query I rowsort
SELECT DISTINCT 55 * + col1 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT - ( 35 * col0 ) FROM tab0
----
-1225
-3115
-840

query I rowsort
SELECT - col1 * 25 AS col2 FROM tab1
----
-250
-325
-650

query I rowsort
SELECT col1 + - tab1.col1 * col0 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - 39 + col2 FROM tab0
----
-38
-6
43

query I rowsort
SELECT + - 23 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT + + col0 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col0 FROM tab1
----
-88
-88
-88

query I rowsort
SELECT + 97 - + col1 FROM tab0
----
0
11
6

query I rowsort
SELECT - + cor0.col1 * - col1 + col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT - col0 * + col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + + col1 + ( cor0.col1 * col1 + + 20 * - col0 ) FROM tab0 AS cor0
----
6592
7002
8806

query I rowsort
SELECT DISTINCT 68 + + col2 * col1 AS col0 FROM tab1
----
1316
1472
638

query I rowsort
SELECT DISTINCT + col1 * + tab2.col0 + - col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
7
78
79

query I rowsort
SELECT ALL - ( - cor0.col1 ) + 49 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ca39a2df60f5559cd03c4dc4a8b9eeb7

query I rowsort
SELECT - 25 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT - - cor0.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 + col1 + - col2 col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4937
SELECT ALL + col2 * + col2 + - col1 + col0 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
14732
3067
3299

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + col2 * + col2 + - col1 + col0 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
14732
3067
3299

query I rowsort
SELECT DISTINCT col2 * col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 - + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT ALL col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - + col0 + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT DISTINCT - + cor0.col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT - + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4943
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col2 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - ( + tab0.col1 ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + + cor0.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - + col2 * - col1 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - 2 * - 62 FROM tab1 AS cor0
----
124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 * col2 col1 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT DISTINCT + + 93 FROM tab2, tab0 cor0 CROSS JOIN tab0 cor1
----
93

query I rowsort
SELECT - 73 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4953
SELECT ALL col0 + + col0 * + CAST( + 17 AS SIGNED ) FROM tab0 cor0
----
1602
432
630

skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL col0 + + col0 * + CAST ( + 17 AS INTEGER ) FROM tab0 cor0
----
1602
432
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT 60 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4954
SELECT 60 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col2 * + col0 + + 52 - - col2 * + col2 FROM tab0 AS cor0
----
-522
18
349

onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT - col0 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT - col0 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 72 * - cor0.col1 FROM tab1 AS cor0
----
-1872
-720
-936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT + + 56 * + col0 + col0 * + CAST( 49 + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
12792
952
9638

skipif mysql # not compatible
query I rowsort label-4958
SELECT + + 56 * + col0 + col0 * + CAST ( 49 + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
12792
952
9638

query I rowsort
SELECT + - 78 * - col2 + + col2 FROM tab0 AS cor0
----
2607
6478
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 - + 44 col1 FROM tab1 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 58 AS REAL ) * col1 AS col0 FROM tab1
----
1508
580
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 * + ( col1 ) col0 FROM tab0
----
-1290
-1365
-1455

query I rowsort
SELECT + - col2 - col2 * + col0 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT col0 + ( + cor0.col1 + CAST( + ( + col0 ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
134
167
269

skipif mysql # not compatible
query I rowsort label-4964
SELECT col0 + ( + cor0.col1 + CAST ( + ( + col0 ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT DISTINCT col0 + ( + col0 ) AS col1 FROM tab2
----
14
156
158

query I rowsort
SELECT - + ( col1 ) + col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4967
SELECT CAST( - col2 AS SIGNED ) + cor0.col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT CAST ( - col2 AS INTEGER ) + cor0.col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT ALL col1 * + col1 DIV + col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL col1 * + col1 / + col1 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * - col1 col0 FROM tab1
----
-1534
-590
-767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( - cor0.col2 ) ) col2 FROM tab1, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 7786718bd8042022537378d40ec87475

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 cor1, tab2, tab0 cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262

query I rowsort
SELECT 91 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT DISTINCT - ( - 37 ) * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1295
3293
888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col0 FROM tab1
----
10
13
26

query I rowsort
SELECT - col2 * col2 * + col2 AS col0 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT ALL + col2 + col2 * + col0 AS col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT 28 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT ALL 36 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col1 FROM tab0, tab1 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT + col0 DIV CAST( 49 * col0 AS SIGNED ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4980
SELECT + col0 / CAST ( 49 * col0 AS INTEGER ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - - col1 * 63 - - col1 FROM tab1 AS cor0
----
1664
640
832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4982
SELECT CAST( - 72 AS SIGNED ) col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4982
SELECT CAST ( - 72 AS INTEGER ) col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

query I rowsort
SELECT DISTINCT col2 * col2 - col0 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col2 + - col1 + + col1 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - ( - 50 ) - col1 AS col0 FROM tab0 AS cor0
----
-36
-41
-47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT + + CAST( + 26 AS SIGNED ) * + col0 - cor0.col0 FROM tab1 AS cor0
----
1600
2000
75

skipif mysql # not compatible
query I rowsort label-4987
SELECT + + CAST ( + 26 AS INTEGER ) * + col0 - cor0.col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT DISTINCT + - col1 + + 0 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - + 50 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL + 31 + col2 FROM tab0 AS cor0
----
113
32
64

query I rowsort
SELECT + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4992
SELECT DISTINCT 24 DIV - col1 + col0 - col1 FROM tab0 AS cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT 24 / - col1 + col0 - col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + ( col1 ) + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col0 + col2 * col0 - + col1 AS col0 FROM tab1 cor0
----
139
3702
7747

query I rowsort
SELECT cor0.col0 - - col1 FROM tab0 cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - tab2.col0 col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL 12 * col0 * + col1 + - col0 FROM tab1
----
12400
7616
933

query I rowsort
SELECT col1 + col2 + col0 * col2 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT ALL - + 3 + - tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c0146cf100333a452be38db9998c4129

query I rowsort
SELECT + col2 * 88 + + 31 AS col2 FROM tab0 AS cor0
----
119
2935
7247

query I rowsort
SELECT + - cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - + col2 * - 90 AS col0 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT - col1 * + col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col2 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + col1 * + col0 * 85 FROM tab2 AS cor0
----
-114155
-18445
-391170

query I rowsort
SELECT DISTINCT - col1 + ( - 12 ) FROM tab0 AS cor0
----
-103
-109
-98

query I rowsort
SELECT - 11 * col2 + col1 FROM tab1 AS cor0
----
-1043
-568
-617

query I rowsort
SELECT - - cor0.col2 * cor0.col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e1120e7b687b32270ef70393236e7341

query I rowsort
SELECT DISTINCT 66 * - col1 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1719
-724
-938

query I rowsort
SELECT - 25 + cor0.col0 FROM tab1 cor0
----
-22
39
55

query I rowsort
SELECT + 94 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT - col2 + + col0 * col2 FROM tab1
----
108
3591
7584

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT NULL NOT IN ( cor0.col1 )
----

query I rowsort
SELECT DISTINCT + 4 + col2 AS col0 FROM tab2 AS cor0
----
30
31
42

query I rowsort
SELECT DISTINCT - - 82 * col0 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT ALL 15 * cor0.col2 FROM tab2 AS cor0
----
390
405
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT ALL - col0 + + 12 DIV col2 + - col2 * 89 * + tab0.col0 AS col1 FROM tab0
----
-3138
-649611
-70512

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - col0 + + 12 / col2 + - col2 * 89 * + tab0.col0 AS col1 FROM tab0
----
-3138
-649611
-70512

onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT + tab2.col1 + + col0 DIV col0 + col2 AS col1 FROM tab2
----
56
59
86

skipif mysql # not compatible
query I rowsort label-5018
SELECT + tab2.col1 + + col0 / col0 + col2 AS col1 FROM tab2
----
56
59
86

query I rowsort
SELECT ALL tab1.col2 + ( col0 ) * col2 AS col1 FROM tab1
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5020
SELECT - col2 * CAST( NULL AS SIGNED ) + col1 + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT - col2 * CAST ( NULL AS INTEGER ) + col1 + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - + col2 * ( col2 ) AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + cor0.col0 * ( col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT ALL + + col2 + 11 * 86 DIV + col0 AS col1 FROM tab0 AS cor0
----
28
72
92

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL + + col2 + 11 * 86 / + col0 AS col1 FROM tab0 AS cor0
----
28
72
92

query I rowsort
SELECT 11 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL ( 53 ) AS col2 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5027
SELECT 54 * - cor0.col1 + - col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT 54 * - cor0.col1 + - col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + 37 * col0 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT + + 75 + col0 * - col1 FROM tab0 AS cor0
----
-1989
-3320
-8024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5030
SELECT + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5030
SELECT + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5032
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 10 * col0 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT ALL col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + + 85 * col2 + col2 * - col0 FROM tab1 AS cor0
----
1197
4428
480

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL + cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5039
SELECT + CAST( - 49 AS SIGNED ) - col2 AS col2 FROM tab0 AS cor0
----
-131
-50
-82

skipif mysql # not compatible
query I rowsort label-5039
SELECT + CAST ( - 49 AS INTEGER ) - col2 AS col2 FROM tab0 AS cor0
----
-131
-50
-82

query I rowsort
SELECT col1 + 16 FROM tab1 AS cor0
----
26
29
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-5041
SELECT ALL + ( ( + col2 ) ) DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL + ( ( + col2 ) ) / + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5042
SELECT + col2 DIV + col0 AS col1 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5042
SELECT + col2 / + col0 AS col1 FROM tab1 cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - 14 * - 12 * - col2 AS col2 FROM tab1 AS cor0
----
-16128
-9072
-9576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5045
SELECT - col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col2 * + tab2.col0 + col2 - col1 FROM tab2
----
-193
-2061
-2981

query I rowsort
SELECT - col2 * - 41 + - col0 AS col0 FROM tab1 AS cor0
----
2211
2273
3856

query I rowsort
SELECT - 17 * + 88 - col2 * + col2 FROM tab0 cor0
----
-1497
-2585
-8220

query I rowsort
SELECT ALL + + 81 * - cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT - + col2 + + 4 AS col0 FROM tab1 AS cor0
----
-50
-53
-92

query I rowsort
SELECT + col0 * + 2 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL tab0.col2 * - ( + 22 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4da59a8cf3465a7a259c0f757d7a4b8

query I rowsort
SELECT col1 + ( col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - - col1 + col1 + + 6 * - col0 * - col1 FROM tab1 AS cor0
----
3860
520
6266

onlyif mysql # use DIV operator for integer division
query I rowsort label-5056
SELECT 44 DIV - col2 + + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
7298
791

skipif mysql # not compatible
query I rowsort label-5056
SELECT 44 / - col2 + + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
7298
791

query I rowsort
SELECT ALL + 13 + ( + col0 ) FROM tab1
----
16
77
93

query I rowsort
SELECT + col1 + col1 * 62 + col1 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT + col2 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 77 * + col0 ) + - col0 * + tab0.col1 col0 FROM tab0
----
-14952
-3912
-6090

onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT - 92 DIV - 21 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5061
SELECT - 92 / - 21 FROM tab2
----
4
4
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5062
SELECT CAST( + 79 * col1 AS SIGNED ) AS col2 FROM tab0
----
6794
7189
7663

skipif mysql # not compatible
query I rowsort label-5062
SELECT CAST ( + 79 * col1 AS INTEGER ) AS col2 FROM tab0
----
6794
7189
7663

query I rowsort
SELECT col2 * + col2 * col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT + 69 * 44 AS col1 FROM tab1
----
3036
3036
3036

query I rowsort
SELECT DISTINCT 44 + - col1 FROM tab0
----
-42
-47
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT - col1 DIV + col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5066
SELECT - col1 / + col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * - col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT - ( col0 + 23 ) * col1 AS col0 FROM tab0
----
-10192
-4042
-5626

query I rowsort
SELECT + col1 * + tab2.col1 + 7 * tab2.col1 * col0 FROM tab2
----
2480
35695
9690

query I rowsort
SELECT ALL - col0 * + 41 * 77 + col0 AS col1 FROM tab0 AS cor0
----
-110460
-280884
-75744

query I rowsort
SELECT - col1 * 49 AS col2 FROM tab2 AS cor0
----
-1519
-2891
-833

query I rowsort
SELECT ALL - col2 * + col2 + 75 FROM tab0 AS cor0
----
-1014
-6649
74

query I rowsort
SELECT + - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col2 + col1 * col0 AS col0 FROM tab2 cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab1
----
92
92
92

query I rowsort
SELECT DISTINCT + col1 * col2 * - tab1.col0 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5077
SELECT ALL - col2 * - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - col2 * - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5078
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col0 FROM tab2
----
11
11
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-5080
SELECT DISTINCT - col2 * - tab0.col2 DIV + tab0.col2 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - col2 * - tab0.col2 / + tab0.col2 AS col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 36 col1 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT + + col1 * - col2 - - col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + col0 - tab0.col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT col0 * 55 AS col2 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT cor0.col0 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( 42 ) col1 FROM tab1 AS cor0
----
106
122
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col0 * + 37 col0 FROM tab1 AS cor0
----
-151552
-236800
-333

query I rowsort
SELECT + - col1 * + col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + col0 + + col1 - col2 AS col0 FROM tab1 cor0
----
-25
-3
17

query I rowsort
SELECT + col0 * - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - cor0.col0 + - ( + col2 ) - col1 AS col1 FROM tab1 AS cor0
----
-131
-189
-83

query I rowsort
SELECT + + col0 * - 93 AS col1 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT 54 + 80 AS col0 FROM tab1 AS cor0
----
134
134
134

query I rowsort
SELECT + col2 * - col2 * col2 + + col0 * - 16 * col0 FROM tab1 AS cor0
----
-157608
-250729
-987136

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to e7ea8a30caeb35409d15d2ce0abbd5a6

query I rowsort
SELECT ( + cor0.col0 ) + + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT 7 * + col2 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT ALL + 64 + - col2 * + 75 FROM tab2 AS cor0
----
-1886
-1961
-2786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 92 + - col2 FROM tab0 AS cor0
----
10
59
91

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2 cor0
----
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT DISTINCT + 84 * col1 + cor0.col1 DIV col0 FROM tab0 AS cor0
----
7227
7645
8150

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT + 84 * col1 + cor0.col1 / col0 FROM tab0 AS cor0
----
7227
7645
8150

query I rowsort
SELECT ALL + col1 * + col0 + - col0 + col0 AS col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5104
SELECT - col0 * col2 DIV ( 25 ) AS col2 FROM tab0 AS cor0
----
-1
-291
-31

skipif mysql # not compatible
query I rowsort label-5104
SELECT - col0 * col2 / ( 25 ) AS col2 FROM tab0 AS cor0
----
-1
-291
-31

query I rowsort
SELECT - 49 AS col2 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 * ( + 82 ) + + col1 AS col2 FROM tab0 AS cor0
----
-551277
-89212
15

query I rowsort
SELECT ALL - ( + col1 ) + - col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + 87 * 48 AS col0 FROM tab2
----
4176

query I rowsort
SELECT DISTINCT - 64 FROM tab2, tab1 AS cor0
----
-64

query I rowsort
SELECT ALL + col1 * + cor0.col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - ( + col1 ) + cor0.col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + col2 * cor0.col2 * + ( + col1 ) + col1 AS col2 FROM tab1 AS cor0
----
119821
32500
75842

query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT DISTINCT ( - col2 ) DIV + col1 + col1 col1 FROM tab1 cor0
----
24
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT ( - col2 ) / + col1 + col1 col1 FROM tab1 cor0
----
24
5
6

query I rowsort
SELECT DISTINCT - col1 * col0 - + 23 FROM tab2 AS cor0
----
-1366
-240
-4625

query I rowsort
SELECT - - col2 + + col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT DISTINCT + col0 + ( 96 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT + col0 + ( 96 ) / - col2 AS col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT - col2 + + ( col1 ) * + col0 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5119
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 * + cor0.col1 + col1 col2 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT - col2 + - 44 FROM tab2 AS cor0
----
-70
-71
-82

query I rowsort
SELECT DISTINCT col2 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + 28 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL 93 * 64 FROM tab2 AS cor0
----
5952
5952
5952

query I rowsort
SELECT DISTINCT + tab1.col2 * col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) * + tab0.col1 * + 47 + 6 AS col1 FROM tab0
----
-133380
-350708
-4553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5127
SELECT ( - 10 ) * col0 DIV - 91 + col2 FROM tab0
----
35
4
91

skipif mysql # not compatible
query I rowsort label-5127
SELECT ( - 10 ) * col0 / - 91 + col2 FROM tab0
----
35
4
91

query I rowsort
SELECT + col2 * + 15 + col2 * col0 FROM tab2
----
2418
3572
594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 * + col0 col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT + col2 + - col1 * - col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT 7 FROM tab1, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT 42 + - 11 * col2 AS col2 FROM tab2 AS cor0
----
-244
-255
-376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col1 * + col1 + - col2 AS col1 FROM tab2
----
251
3455
934

query I rowsort
SELECT - - cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT col2 - + col2 * + col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - - col1 - - col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col2 col1 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 + - col1 - + col2 * - col0 col1 FROM tab1
----
165
3667
7696

query I rowsort
SELECT DISTINCT - col2 * - col1 - col2 AS col1 FROM tab0
----
2805
7380
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * col2 col0 FROM tab1
----
2160
2280
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT col2 DIV col2 + - col0 DIV + col2 AS col1 FROM tab0
----
-34
0
1

skipif mysql # not compatible
query I rowsort label-5142
SELECT col2 / col2 + - col0 / + col2 AS col1 FROM tab0
----
-34
0
1

query I rowsort
SELECT ( col2 ) + + col1 * col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - tab1.col2 + tab1.col1 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col0 + col0 * col2 * tab2.col2 FROM tab2
----
114155
5110
52806

query I rowsort
SELECT col0 + - col2 + tab2.col1 FROM tab2
----
11
111
58

query I rowsort
SELECT DISTINCT - tab0.col0 + - col1 * col1 AS col0 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL + col0 * + col1 + tab2.col0 * - col1 * col0 FROM tab2
----
-104754
-1302
-354354

query I rowsort
SELECT + cor0.col2 + col1 * cor0.col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 + + col2 * col2 FROM tab0 AS cor0
----
-1197
-1224
513

query I rowsort
SELECT DISTINCT col0 + - col2 + col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT DISTINCT col0 DIV - tab1.col0 + col1 DIV + tab1.col0 AS col1 FROM tab1
----
-1
7

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT col0 / - tab1.col0 + col1 / + tab1.col0 AS col1 FROM tab1
----
-1
7

query I rowsort
SELECT + ( - col2 ) - col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab0
----
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5156
SELECT + CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5156
SELECT + CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL 1 FROM tab1
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5159
SELECT + CAST( - col0 AS SIGNED ) + col0 * - col1 AS col2 FROM tab0
----
-2088
-3430
-8188

skipif mysql # not compatible
query I rowsort label-5159
SELECT + CAST ( - col0 AS INTEGER ) + col0 * - col1 AS col2 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT col0 + 33 * col0 FROM tab1
----
102
2176
2720

query I rowsort
SELECT + col2 + - 21 * col0 AS col0 FROM tab0
----
-1787
-471
-734

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5162
SELECT CAST( col1 AS SIGNED ) * + col0 + + col1 FROM tab1
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-5162
SELECT CAST ( col1 AS INTEGER ) * + col0 + + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL + ( - col0 + + tab0.col0 ) * - col2 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT ALL - 51 DIV + col2 FROM tab0
----
-1
-51
0

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL - 51 / + col2 FROM tab0
----
-1
-51
0

query I rowsort
SELECT ALL - - cor0.col1 + col1 * cor0.col2 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ALL + 30 * + col2 FROM tab2 cor0
----
1140
780
810

query I rowsort
SELECT - 2 AS col0 FROM tab1 cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - - 73 FROM tab1 AS cor0
----
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5169
SELECT ALL - col1 + + col0 DIV + col1 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL - col1 + + col0 / + col1 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT - 48 + - col1 AS col2 FROM tab1 AS cor0
----
-58
-61
-74

query I rowsort
SELECT - col1 * col1 * col0 + + col1 FROM tab2
----
-22814
-271459
-6696

query I rowsort
SELECT DISTINCT + - col0 - col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + col0 + col2 + - col0 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - + cor0.col1 - col1 * col0 FROM tab1 AS cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * cor0.col1 col2 FROM tab2 cor0
----
1445
2635
5015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col2 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5178
SELECT DISTINCT + col1 * col1 DIV col0 AS col0 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + col1 * col1 / col0 AS col0 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab1 AS cor0
----
31

query I rowsort
SELECT ALL - col2 + col0 * col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT + col2 + + col1 DIV col0 col0 FROM tab0 AS cor0
----
3
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5181
SELECT + col2 + + col1 / col0 col0 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT ALL col1 - col2 AS col2 FROM tab1 WHERE NOT tab1.col1 * - col0 NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5183
SELECT ALL col1 DIV - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL col1 / - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL cor0.col1 + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - cor0.col0 * + col2 * + col1 )
----

query I rowsort
SELECT ALL tab0.col1 - - col0 FROM tab0
----
110
132
180

query I rowsort
SELECT - col1 + col2 - - col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT col2 * + col0 + tab2.col2 - - col1 * + col1 * - col0 FROM tab2 WHERE NOT ( NULL ) IN ( - col2 )
----

query I rowsort
SELECT col0 + + col0 * + col1 AS col0 FROM tab2
----
1422
224
4680

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col1 * - col2 + tab2.col0 * col0 * col0 + col2 AS col0 FROM tab2
----
-467
473044
492431

query I rowsort
SELECT ALL col1 + - tab2.col2 AS col1 FROM tab2
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 + + tab0.col1 col0 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL - col2 * col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT + + col2 + - cor0.col1 * col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT col0 * - col1 + + col2 FROM tab2 cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT ALL col2 DIV - cor0.col1 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL col2 / - cor0.col1 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + col1 + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT ALL - - col2 + + cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + col2 + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - + col2 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < + col2 - col1 * col0 OR NOT - col2 * col1 NOT IN ( + col1 * cor0.col1 - cor0.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5206
SELECT - col0 + + col2 DIV + col1 + col0 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5206
SELECT - col0 + + col2 / + col1 + col0 AS col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL col1 * - col2 + - col0 AS col1 FROM tab0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-5208
SELECT ALL - - col2 DIV col0 col0 FROM tab2 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL - - col2 / col0 col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + + cor0.col0 * + col2 + col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT col2 * - col2 + cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT cor0.col1 - col1 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 + col0 )
----

query I rowsort
SELECT - 87 AS col0 FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - col2 - col1 * - cor0.col1 FROM tab2 cor0
----
251
3455
934

query I rowsort
SELECT - - col1 * + col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - col1 + + 29 AS col2 FROM tab1 AS cor0
----
16
19
3

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * - col1 - cor0.col2 FROM tab1 AS cor0
----
-1264
-1455
-563

query I rowsort
SELECT ALL + 37 * cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 68ba457b77cc64448db2b42155d4a0ec

query I rowsort
SELECT - cor0.col2 * + 90 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT - + col2 * col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + - cor0.col1 + - col2 * + col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT + cor0.col0 * cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1225
2136
3115
576
7921
840

query I rowsort
SELECT ALL - 82 * col2 * 25 FROM tab0
----
-168100
-2050
-67650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col2 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + cor0.col0 * + col1 col2 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT - col2 * col0 + col1 * - col2 * - col2 FROM tab2 AS cor0
----
21546
22410
37856

query I rowsort
SELECT + 91 + + cor0.col1 * + ( + cor0.col2 + col0 ) FROM tab1 AS cor0
----
1301
1573
2379

query I rowsort
SELECT - + col0 * ( + 83 ) AS col1 FROM tab0 AS cor0
----
-1992
-2905
-7387

query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) + - col2 AS col0 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT col0 + - ( col1 + - col0 ) FROM tab0
----
-27
-38
87

query I rowsort
SELECT - col0 * + ( 25 ) + - cor0.col0 FROM tab1 cor0
----
-1664
-2080
-78

query I rowsort
SELECT + + col2 * ( + ( - col0 ) ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT ALL 37 DIV + cor2.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to fa3d5b69e444df969b60da5e4c5c3507

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL 37 / + cor2.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to fa3d5b69e444df969b60da5e4c5c3507

query I rowsort
SELECT + cor0.col1 * 68 FROM tab1 AS cor0
----
1768
680
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT ALL + col2 DIV 1 + + col0 * + col1 AS col0 FROM tab0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + col2 / 1 + + col0 * + col1 AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT col1 + + col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
113
196
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5238
SELECT DISTINCT col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * - col2 + - col1 * + col1 * - col0 col2 FROM tab0 AS cor0
----
178593
329316
743733

onlyif mysql # use DIV operator for integer division
query I rowsort label-5240
SELECT + col0 DIV 87 + + col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
172
36
57

skipif mysql # not compatible
query I rowsort label-5240
SELECT + col0 / 87 + + col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
172
36
57

query I rowsort
SELECT ALL - - col2 * + col2 AS col1 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - col0 * 88 + 96 + + cor0.col2 FROM tab2 AS cor0
----
-493
-6742
-6818

query I rowsort
SELECT + + col1 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - col0 + ( col2 ) + col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5245
SELECT ALL cor0.col1 DIV + CAST( + col1 AS SIGNED ) + cor0.col1 + col0 col2 FROM tab0 AS cor0
----
111
133
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL cor0.col1 / + CAST ( + col1 AS INTEGER ) + cor0.col1 + col0 col2 FROM tab0 AS cor0
----
111
133
181

query I rowsort
SELECT ALL + col1 + - 39 FROM tab1 AS cor0
----
-13
-26
-29

query I rowsort
SELECT ALL - 3 + + 51 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1578
3006
864

query I rowsort
SELECT ALL + + 80 FROM tab0 AS cor0
----
80
80
80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5250
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 + - cor0.col1 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + - cor0.col1 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col2 * + 50 AS col1 FROM tab1
----
2700
2850
4800

query I rowsort
SELECT DISTINCT + col1 + 29 * + col2 + col2 AS col2 FROM tab2
----
1157
839
841

onlyif mysql # use DIV operator for integer division
query I rowsort label-5254
SELECT DISTINCT + tab0.col0 DIV ( 26 * tab0.col0 ) + tab0.col2 + col1 * + col0 AS col1 FROM tab0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT + tab0.col0 / ( 26 * tab0.col0 ) + tab0.col2 + col1 * + col0 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1
----
3
64
80

query I rowsort
SELECT cor0.col0 - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL ( col2 ) - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * col1 - col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL - - 41 - col0 AS col0 FROM tab1 AS cor0
----
-23
-39
38

query I rowsort
SELECT ALL col0 - - cor0.col2 * - ( 92 + col2 ) FROM tab2 AS cor0
----
-2990
-3206
-4861

query I rowsort
SELECT ALL col1 * + 9 AS col2 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT col0 * + ( col2 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT ALL - col1 * cor0.col2 + + col0 DIV - col0 + cor0.col1 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
-180343
-329413
-744472

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL - col1 * cor0.col2 + + col0 / - col0 + cor0.col1 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
-180343
-329413
-744472

query I rowsort
SELECT ALL + 77 AS col1 FROM tab1
----
77
77
77

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1, tab0, tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5266
SELECT ALL 83 + - col0 - CAST( 7 AS SIGNED ) FROM tab0
----
-13
41
52

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL 83 + - col0 - CAST ( 7 AS INTEGER ) FROM tab0
----
-13
41
52

query I rowsort
SELECT DISTINCT - - 87 + + tab2.col0 * tab2.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
136
6171
6328

query I rowsort
SELECT ALL 72 - col2 FROM tab2
----
34
45
46

query I rowsort
SELECT ALL + col2 - col1 * - tab0.col2 AS col2 FROM tab0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col0 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL - cor0.col1 * - col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + 96 * col1 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT - 75 * col1 FROM tab1 cor0
----
-1950
-750
-975

query I rowsort
SELECT ALL + 71 + cor0.col0 AS col1 FROM tab1 AS cor0
----
135
151
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5275
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 col0 FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL + 72 * + cor0.col0 AS col2 FROM tab1 cor0
----
216
4608
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 6 + col0 col0 FROM tab2 AS cor0
----
13
84
85

query I rowsort
SELECT DISTINCT - 58 * col2 + col2 * + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-121160
-53238
-7425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 37 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5282
SELECT + + col1 DIV ( + col1 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5282
SELECT + + col1 / ( + col1 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 - col2 * - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - col2 - - 27 FROM tab1 AS cor0
----
-27
-30
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - ( ( - col0 ) ) col0 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5286
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 * - 51 AS col1 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT tab2.col2 + col0 + + col2 AS col2 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL cor0.col1 * - cor0.col2 * + col2 + cor0.col1 + col0 * - col0 FROM tab0 AS cor0
----
-1225
-619714
-94144

query I rowsort
SELECT ALL ( ( col1 ) ) * 39 * col1 AS col0 FROM tab1
----
26364
3900
6591

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5291
SELECT DISTINCT CAST( NULL AS SIGNED ) + + cor0.col0 * + col1 + 9 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + cor0.col0 * + col1 + 9 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 95 + 64 FROM tab1 AS cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 * 2 col1 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT CAST( NULL AS SIGNED ) + + ( col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT CAST ( NULL AS INTEGER ) + + ( col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 76 AS col2 FROM tab1
----
76
76
76

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 7ccb6e2515d95809a8c30b73a5cf5f46

query I rowsort
SELECT DISTINCT + 93 FROM tab2, tab0, tab2 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) col1 FROM tab0
----
86
91
97

query I rowsort
SELECT + + tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT tab2.col1 * + cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2dce99ccc9ab3f12533423eaad01995c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col0 FROM tab2
----
47

query I rowsort
SELECT ALL 10 AS col1 FROM tab2
----
10
10
10

query I rowsort
SELECT DISTINCT - tab2.col2 * - 75 AS col2 FROM tab2
----
1950
2025
2850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col2 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * col1 col1 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * tab1.col1 col1 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT - col0 + col0 DIV - col0 AS col0 FROM tab2 cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-5307
SELECT - col0 + col0 / - col0 AS col0 FROM tab2 cor0
----
-79
-8
-80

query I rowsort
SELECT col0 * 1 + col0 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-27
-38
87

query I rowsort
SELECT ALL col2 * col1 + 92 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
1474
7835
8632

query I rowsort
SELECT DISTINCT col0 * col2 - col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-5311
SELECT col0 DIV col1 AS col0 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5311
SELECT col0 / col1 AS col0 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL - 3 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5314
SELECT DISTINCT + - CAST( + ( - col0 ) AS SIGNED ) + 8 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1128
712
89

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT + - CAST ( + ( - col0 ) AS INTEGER ) + 8 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1128
712
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + col0 col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ( ( col2 ) ) * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + 88 AS col2 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT + + 59 * - col0 + col1 FROM tab1 AS cor0
----
-151
-3766
-4707

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5319
SELECT DISTINCT 28 * + 45 + + col1 + - CAST( + 42 AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
1991
2593
3797

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT 28 * + 45 + + col1 + - CAST ( + 42 AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
1991
2593
3797

query I rowsort
SELECT col1 * 90 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col0 AS col1 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT - col2 + - col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5323
SELECT ALL + col2 / 17 + col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL + col2 / 17 + col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col1 + ( - col0 ) FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + + 68 * col0 AS col0 FROM tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT col2 - 85 FROM tab0 AS cor0
----
-3
-52
-84

query I rowsort
SELECT - ( - col0 ) * cor0.col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT + + col0 DIV - 35 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5328
SELECT + + col0 / - 35 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL - tab1.col2 + 64 * + tab1.col2 FROM tab1
----
3402
3591
6048

onlyif mysql # use DIV operator for integer division
query I rowsort label-5330
SELECT + col2 + 74 DIV col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5330
SELECT + col2 + 74 / col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - col0 * + 9 AS col1 FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT - - col0 * - 7 FROM tab0 cor0
----
-168
-245
-623

query I rowsort
SELECT ALL + cor0.col2 * ( + col1 + col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-269952
-4698
-714240

onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT - + col2 + - col2 * - col0 DIV - col0 FROM tab1 AS cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-5334
SELECT - + col2 + - col2 * - col0 / - col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - col2 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + - 63 + - col0 AS col1 FROM tab1 AS cor0
----
-127
-143
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col2 FROM tab0 AS cor0
----
-19
-19
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-5338
SELECT ALL col1 DIV 28 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5338
SELECT ALL col1 / 28 FROM tab1
----
0
0
0

query I rowsort
SELECT ( col0 ) * col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5340
SELECT + + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5340
SELECT + + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + - ( - 65 ) * col2 FROM tab1 cor0
----
3510
3705
6240

query I rowsort
SELECT + col1 * - 56 * col1 AS col2 FROM tab0 cor0
----
-414176
-463736
-526904

query I rowsort
SELECT ALL - + cor0.col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - 59 AS col0 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + 63 * col2 AS col2 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT DISTINCT col0 + - ( col2 ) * + col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL col0 + - 62 FROM tab1
----
-59
18
2

query I rowsort
SELECT DISTINCT + col1 + 11 FROM tab0
----
102
108
97

query I rowsort
SELECT ALL - tab0.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL + + col0 + + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + cor0.col1 - - cor0.col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL col0 * col0 + + col2 * 39 + + col0 FROM tab2 AS cor0
----
1109
7176
7802

query I rowsort
SELECT DISTINCT + - 50 * - cor0.col1 + - ( 57 ) FROM tab2 AS cor0
----
1493
2893
793

query I rowsort
SELECT DISTINCT col0 * + col1 - 89 FROM tab0 AS cor0
----
1975
3306
8010

query I rowsort
SELECT - - 86 * col1 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-130
290
832

query I rowsort
SELECT + - cor0.col1 + - col0 * + ( col1 ) FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + - 70 + col2 AS col0 FROM tab0 cor0
----
-37
-69
12

query I rowsort
SELECT - 82 FROM tab2, tab2 cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab1
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5360
SELECT DISTINCT 19 * tab1.col0 - CAST( NULL AS DECIMAL ) * col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT 19 * tab1.col0 - CAST ( NULL AS REAL ) * col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 + col1 col1 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * col2 col1 FROM tab1
----
-5346
-5643
-9504

query I rowsort
SELECT DISTINCT 91 - col0 FROM tab1
----
11
27
88

query I rowsort
SELECT DISTINCT + tab0.col1 - + tab0.col1 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5365
SELECT - - col1 * + CAST( + 2 AS SIGNED ) + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-620
-7116
159

skipif mysql # not compatible
query I rowsort label-5365
SELECT - - col1 * + CAST ( + 2 AS INTEGER ) + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-620
-7116
159

query I rowsort
SELECT + col1 - + 85 AS col1 FROM tab1 AS cor0
----
-59
-72
-75

query I rowsort
SELECT cor0.col1 + 25 FROM tab2 AS cor0
----
42
56
84

query I rowsort
SELECT ALL + col1 * - 30 - + col1 FROM tab0 AS cor0
----
-2666
-2821
-3007

query I rowsort
SELECT ALL + col0 + cor0.col1 * col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT 99 * tab0.col0 FROM tab0
----
2376
3465
8811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5371
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + 72 FROM tab2 AS cor0
----
34
45
46

query I rowsort
SELECT col1 + col0 + - tab0.col2 FROM tab0
----
131
77
98

query I rowsort
SELECT ALL col0 * ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col1 + 92 * 39 AS col1 FROM tab0 AS cor0
----
3491
3497
3502

query I rowsort
SELECT ALL col2 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + cor0.col0 + + 91 FROM tab0 cor0
----
115
126
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT DISTINCT - - col0 * CAST( 11 AS SIGNED ) - col1 FROM tab0 cor0
----
178
288
888

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT - - col0 * CAST ( 11 AS INTEGER ) - col1 FROM tab0 cor0
----
178
288
888

query I rowsort
SELECT + cor0.col2 + + 66 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT ALL - - col2 * + ( col0 ) * col0 + + cor0.col1 FROM tab0 AS cor0
----
1322
19094
649613

query I rowsort
SELECT - col1 + - ( cor0.col1 * - col1 ) AS col2 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5383
SELECT ALL + CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL - col1 * col1 * + col0 + cor0.col2 * + col0 FROM tab1 AS cor0
----
-1866
-2752
-5840

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * + col0 col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL + - 99 AS col0 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - + col1 + + col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col0 * + 95 * col0 FROM tab2 AS cor0
----
4655
577980
592895

query I rowsort
SELECT - col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5392
SELECT ALL ( col2 ) DIV CAST( - col2 AS SIGNED ) 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-5392
SELECT ALL ( col2 ) / CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT - col0 - + col0 DIV - 38 FROM tab2 AS cor0
----
-7
-76
-77

skipif mysql # not compatible
query I rowsort label-5393
SELECT - col0 - + col0 / - 38 FROM tab2 AS cor0
----
-7
-76
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * col2 + cor0.col1 col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - 10 + cor0.col2 AS col1 FROM tab1 cor0
----
44
47
86

query I rowsort
SELECT - - 53 * + col1 AS col2 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab1, tab0 cor0
----
-91

query I rowsort
SELECT ALL - - col0 + col1 * + col1 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT ALL - col2 + cor0.col0 * - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - col2 + - 41 FROM tab2 cor0
----
-67
-68
-79

query I rowsort
SELECT ALL - cor0.col0 * 52 AS col0 FROM tab0 AS cor0
----
-1248
-1820
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( + ( col1 ) ) col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT 44 FROM tab0, tab1 cor0
----
44

query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5406
SELECT - CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT - CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab2 AS cor0
----
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5409
SELECT ALL - CAST( NULL AS SIGNED ) + cor0.col1 * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col1 * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 71 AS col1 FROM tab1 AS cor0
----
-3834
-4047
-6816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5411
SELECT ALL col2 * + CAST( + col1 AS SIGNED ) FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL col2 * + CAST ( + col1 AS INTEGER ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT + + col0 * col2 - col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + + 42 + + col2 FROM tab1 cor0
----
138
96
99

query I rowsort
SELECT DISTINCT 6 * col0 + - col2 AS col0 FROM tab2
----
15
436
442

query I rowsort
SELECT DISTINCT 8 FROM tab1 cor0
----
8

query I rowsort
SELECT DISTINCT - 96 + + col1 + col2 * 26 AS col2 FROM tab0 AS cor0
----
2127
27
848

query I rowsort
SELECT DISTINCT - col1 * col0 + - col0 + 12 FROM tab1 AS cor0
----
-1108
-69
-692

query I rowsort
SELECT ALL - - 49 AS col1 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT 83 FROM tab2, tab0 AS cor0
----
83

query I rowsort
SELECT - col2 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col0 * + col0 + col0 FROM tab0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5422
SELECT DISTINCT + col0 + col2 DIV + col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + col0 + col2 / + col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL + + cor0.col1 * - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col2 * col1 + col1 + - col0 AS col2 FROM tab2 AS cor0
----
1515
584
861

query I rowsort
SELECT + col2 * - ( + col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col0 * ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT col1 + - col1 * + col2 AS col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT tab1.col0 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL + col0 * tab2.col1 + 30 + - 58 FROM tab2
----
1315
189
4574

query I rowsort
SELECT + 31 FROM tab2, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL + 31 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT 94 * + tab0.col2 + + col1 FROM tab0
----
191
3188
7799

query I rowsort
SELECT - col0 * + col1 + 86 FROM tab0
----
-1978
-3309
-8013

query I rowsort
SELECT 69 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT col2 * - 39 FROM tab0
----
-1287
-3198
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT + + col1 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5438
SELECT + + col1 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 12 * ( - cor0.col2 ) FROM tab1 cor0
----
1152
648
684

query I rowsort
SELECT col2 * + tab0.col2 AS col2 FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5441
SELECT ALL col0 DIV col0 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL col0 / col0 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab2, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + 4 FROM tab0, tab0 cor0
----
4

query I rowsort
SELECT 67 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 * 99 col2 FROM tab2
----
-6831
-6831
-6831

query I rowsort
SELECT - 12 + col1 AS col1 FROM tab0 cor0
----
74
79
85

query I rowsort
SELECT + + col2 - col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * col2 + - ( col0 * + col2 ) col2 FROM tab2 AS cor0
----
-156
-266
1755

query I rowsort
SELECT ALL - - ( col2 ) + cor0.col0 + 79 FROM tab1 AS cor0
----
136
200
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 - 96 col0 FROM tab0 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 - col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT 22 + - col2 DIV - col1 AS col1 FROM tab0 cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-5452
SELECT 22 + - col2 / - col1 AS col1 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT - - cor0.col1 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + - col0 * - col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL - 93 AS col0 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT + + col0 + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col0 + - col1 * col2 - + ( + col0 + col1 * col0 ) AS col2 FROM tab2
----
-1054
-1989
-6136

query I rowsort
SELECT - 59 * ( col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
-1508
-580
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5459
SELECT ALL cor0.col1 + + 97 DIV + 10 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8fd3904064045c50b480b92450be9101

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL cor0.col1 + + 97 / + 10 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8fd3904064045c50b480b92450be9101

query I rowsort
SELECT - + col0 + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 18 * - col0 col2 FROM tab0 cor0
----
-10368
-142578
-22050

query I rowsort
SELECT - col0 * + col0 - - col2 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - - 29 * + col1 AS col2 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-5465
SELECT ALL - cor0.col0 DIV - col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL - cor0.col0 / - col2 FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT + 97 * col0 FROM tab2 AS cor0
----
679
7566
7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5467
SELECT + col1 * + col0 + - CAST( - 52 AS SIGNED ) AS col0 FROM tab1 cor0
----
1092
130
692

skipif mysql # not compatible
query I rowsort label-5467
SELECT + col1 * + col0 + - CAST ( - 52 AS INTEGER ) AS col0 FROM tab1 cor0
----
1092
130
692

query I rowsort
SELECT + 31 FROM tab2, tab0, tab1 cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT DISTINCT - 0 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + + col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 2 * col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + ( - col1 ) col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + - col2 * + 23 AS col0 FROM tab2 AS cor0
----
-598
-621
-874

onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT + + col2 DIV col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5475
SELECT + + col2 / col1 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5476
SELECT col2 / + col0 AS col1 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5477
SELECT ALL - col2 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL - col2 / tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - + col0 + col1 * col0 - - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 92 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

onlyif mysql # use DIV operator for integer division
query I rowsort label-5481
SELECT ALL - + 38 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL - + 38 / - col1 AS col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT col2 * col0 * col1 - + col2 FROM tab1 AS cor0
----
36423
4158
99744

query I rowsort
SELECT ALL - cor1.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - cor0.col1 * + 65 FROM tab0, tab1 AS cor0
----
9 values hashing to fcdd7bd6c615b8f7833808ce12ae2077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * col0 col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL - 65 FROM tab2, tab2 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL - + 44 * 20 FROM tab2 AS cor0
----
-880
-880
-880

query I rowsort
SELECT ALL + col2 + 29 FROM tab2 cor0
----
55
56
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5489
SELECT DISTINCT col2 DIV + 5 + + col1 AS col1 FROM tab0 AS cor0
----
107
92
97

skipif mysql # not compatible
query I rowsort label-5489
SELECT DISTINCT col2 / + 5 + + col1 AS col1 FROM tab0 AS cor0
----
107
92
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5490
SELECT DISTINCT + cor0.col1 * ( cor0.col2 ) - col0 * col0 DIV + col2 FROM tab0 AS cor0
----
-1128
2821
7366

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT + cor0.col1 * ( cor0.col2 ) - col0 * col0 / + col2 FROM tab0 AS cor0
----
-1128
2821
7366

query I rowsort
SELECT DISTINCT + 90 * + ( cor0.col2 ) + col0 * 40 FROM tab2 AS cor0
----
2710
5460
6580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5492
SELECT - - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5492
SELECT - - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 * - col0 + + col0 FROM tab2 cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5494
SELECT DISTINCT 55 DIV 94 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT 55 / 94 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - - col0 * ( + col0 ) + cor0.col0 * + 21 * col0 AS col0 FROM tab0 AS cor0
----
12672
174262
26950

query I rowsort
SELECT col0 - ( col1 ) FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - 88 + - tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1ace452e13a631a389dd732b950da417

query I rowsort
SELECT DISTINCT + col1 - col0 * + col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT ALL + col0 * col1 - col1 FROM tab1
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT - col1 DIV 10 - + col2 * + col2 FROM tab0 cor0
----
-10
-1097
-6733

skipif mysql # not compatible
query I rowsort label-5500
SELECT - col1 / 10 - + col2 * + col2 FROM tab0 cor0
----
-10
-1097
-6733

query I rowsort
SELECT DISTINCT + col0 - - 75 AS col1 FROM tab2 AS cor0
----
153
154
82

query I rowsort
SELECT ALL - 20 + + col2 * col1 FROM tab1 AS cor0
----
1228
1384
550

onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT - - col1 + col2 * col1 DIV + ( col2 + - col1 ) AS col2 FROM tab0 AS cor0
----
-738
33
96

skipif mysql # not compatible
query I rowsort label-5503
SELECT - - col1 + col2 * col1 / + ( col2 + - col1 ) AS col2 FROM tab0 AS cor0
----
-738
33
96

query I rowsort
SELECT ALL - 23 + - col2 AS col0 FROM tab0 AS cor0
----
-105
-24
-56

query I rowsort
SELECT DISTINCT + - cor0.col1 + 35 * + col2 FROM tab0 AS cor0
----
-62
1069
2779

query I rowsort
SELECT 4 * - col1 AS col1 FROM tab2
----
-124
-236
-68

query I rowsort
SELECT ALL - cor0.col1 + 25 FROM tab2 cor0
----
-34
-6
8

query I rowsort
SELECT + 97 * col0 AS col1 FROM tab2
----
679
7566
7663

query I rowsort
SELECT DISTINCT + - col0 - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5510
SELECT - tab2.col1 + + col2 DIV 52 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5510
SELECT - tab2.col1 + + col2 / 52 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT col1 + ( + tab2.col2 ) * col2 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT - tab2.col1 * col0 - - col2 AS col2 FROM tab2
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5513
SELECT ALL - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 + 62 FROM tab1 AS cor0
----
72
75
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 90 col2 FROM tab1 AS cor0
----
-90
-90
-90

query I rowsort
SELECT + col2 + - col1 * + col1 * cor0.col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + tab2.col2 * - col2 AS col1 FROM tab2
----
-1444
-676
-729

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

query I rowsort
SELECT ALL - 49 + + col2 AS col1 FROM tab1
----
47
5
8

query I rowsort
SELECT DISTINCT - 76 + + col0 FROM tab1
----
-12
-73
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5522
SELECT ALL + ( + col2 ) DIV - col1 AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL + ( + col2 ) / - col1 AS col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + - 34 * col2 + - col0 FROM tab0 AS cor0
----
-1146
-2877
-69

query I rowsort
SELECT ALL col1 + col1 * - col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5525
SELECT ALL + col1 DIV col1 - - col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL + col1 / col1 - - col1 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + 46 + + col2 * col2 FROM tab1 AS cor0
----
2962
3295
9262

query I rowsort
SELECT DISTINCT + - col0 * - col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 * + col1 col1 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT DISTINCT + col0 + + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT ALL 9 DIV col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL 9 / col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 - col2 * col1 FROM tab1
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5533
SELECT - - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT - - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col0 + col0 * - col1 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL col2 + + ( col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - col1 + ( + col0 ) FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5538
SELECT ALL + + col0 * CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL + + col0 * CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + - col1 + col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT + + 41 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL + ( + col0 ) * col1 + col0 * col0 + col1 AS col2 FROM tab1 AS cor0
----
113
4746
7453

query I rowsort
SELECT DISTINCT - ( 84 ) * col2 - col2 FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT 76 - + col2 AS col2 FROM tab2 cor0
----
38
49
50

query I rowsort
SELECT DISTINCT + col1 - - col1 * col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 * col0 col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5547
SELECT 48 * col0 DIV - tab1.col2 FROM tab1
----
-2
-40
-53

skipif mysql # not compatible
query I rowsort label-5547
SELECT 48 * col0 / - tab1.col2 FROM tab1
----
-2
-40
-53

query I rowsort
SELECT + ( - col1 + col2 ) * col0 AS col1 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT + - ( + 46 ) FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5550
SELECT DISTINCT + - 85 + col1 DIV - col1 - col1 FROM tab0 AS cor0
----
-172
-177
-183

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT + - 85 + col1 / - col1 - col1 FROM tab0 AS cor0
----
-172
-177
-183

query I rowsort
SELECT ALL + 85 AS col0 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT + - col1 - 95 FROM tab2 cor0
----
-112
-126
-154

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT col2 * + 58 - col1 AS col2 FROM tab2 AS cor0
----
1449
1535
2187

query I rowsort
SELECT ALL - cor0.col0 + + cor0.col0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE + col1 IN ( col1 * col1 )
----

query I rowsort
SELECT ALL - tab0.col0 AS col0 FROM tab0 WHERE col1 * col0 IN ( col1 / + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5558
SELECT cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5558
SELECT cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 + col0 * col1 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT - col1 * + col2 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - col0 * col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE cor0.col1 < ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + + tab1.col0 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT col2 - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + col0 * col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT - + cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col0 + col0 * - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT - col1 * - col1 + col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT - col1 * col0 * col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT + col1 * col2 * - col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - col2 * + cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - + cor0.col0 * - cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - cor0.col1 - + col1 * col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT ALL col1 * + ( 74 ) + col0 FROM tab1
----
1042
1927
804

query I rowsort
SELECT - - col0 - - ( col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT 40 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + col2 + col2 * 57 FROM tab1
----
3132
3306
5568

query I rowsort
SELECT DISTINCT + col0 + - 0 - col0 FROM tab0
----
0

query I rowsort
SELECT ( 82 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL + col2 * ( col1 ) - + col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + - cor0.col2 * + 96 - + 80 FROM tab0 AS cor0
----
-176
-3248
-7952

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-5584
SELECT DISTINCT - col1 DIV - col2 - col0 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT - col1 / - col2 - col0 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT DISTINCT - - cor0.col2 DIV + col1 - - 77 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1848
2695
6853

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT - - cor0.col2 / + col1 - - 77 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT + col1 * 29 + - col2 FROM tab1 AS cor0
----
233
281
700

query I rowsort
SELECT ALL - 93 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT col1 * col2 + - col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT DISTINCT col1 * - col0 * col0 AS col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT 93 * cor0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 174e488b266c1bc5e6841c6be5f90976

onlyif mysql # use DIV operator for integer division
query I rowsort label-5591
SELECT + - 37 DIV + 96 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5591
SELECT + - 37 / + 96 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 48 AS col0 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5593
SELECT - CAST( ( col0 ) AS SIGNED ) * 49 - + col1 * col0 FROM tab1
----
-225
-3776
-4960

skipif mysql # not compatible
query I rowsort label-5593
SELECT - CAST ( ( col0 ) AS INTEGER ) * 49 - + col1 * col0 FROM tab1
----
-225
-3776
-4960

query I rowsort
SELECT + - col0 * col2 * + ( col2 ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - 66 FROM tab1, tab0 cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT - ( col0 * col2 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 90 + col2 AS col0 FROM tab0 AS cor0
----
123
172
91

query I rowsort
SELECT ALL - - ( - col2 ) - 98 * + col0 FROM tab0 cor0
----
-2385
-3431
-8804

query I rowsort
SELECT - - col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 + col1 * - ( col2 * col1 + col2 ) AS col0 FROM tab0
----
-246873
-686422
-9505

query I rowsort
SELECT + cor0.col2 * + 33 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4aad1e5373f6ff4d870a474627c727d2

query I rowsort
SELECT 72 * col2 AS col0 FROM tab2 AS cor0
----
1872
1944
2736

onlyif mysql # use DIV operator for integer division
query I rowsort label-5605
SELECT ALL - ( col1 ) * 34 + + col2 DIV + col1 FROM tab0 cor0
----
-2924
-3094
-3298

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL - ( col1 ) * 34 + + col2 / + col1 FROM tab0 cor0
----
-2924
-3094
-3298

query I rowsort
SELECT ALL - + col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5607
SELECT - - ( + col2 ) DIV col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5607
SELECT - - ( + col2 ) / col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col2 col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - col0 * ( 75 ) * col1 FROM tab2 AS cor0
----
-100725
-16275
-345150

query I rowsort
SELECT + col0 * + 69 AS col2 FROM tab2 AS cor0
----
483
5382
5451

query I rowsort
SELECT ALL - col2 + 94 * + col1 FROM tab0 AS cor0
----
8051
8472
9117

query I rowsort
SELECT ALL + col0 - - 43 AS col1 FROM tab0 AS cor0
----
132
67
78

query I rowsort
SELECT DISTINCT - - col1 * ( 88 + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
11931
16107
9632

query I rowsort
SELECT DISTINCT + col1 * + col0 + - cor0.col2 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1153
1428
2192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT col1 DIV + col0 - - col2 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-5615
SELECT col1 / + col0 - - col2 FROM tab0
----
3
36
83

query I rowsort
SELECT DISTINCT cor0.col0 + - 9 * + 99 AS col2 FROM tab0, tab2 cor0
----
-812
-813
-884

query I rowsort
SELECT - 3 * col0 - - col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + col2 * + 34 + col1 + col0 FROM tab0 AS cor0
----
1232
166
2968

query I rowsort
SELECT - 49 + + cor0.col2 + - col0 FROM tab1 AS cor0
----
-33
-56
2

query I rowsort
SELECT DISTINCT - col0 * - col0 + + col1 AS col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT + 32 + col1 FROM tab0 AS cor0
----
118
123
129

query I rowsort
SELECT ALL + - 97 FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5623
SELECT + ( col0 ) DIV col1 AS col0 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5623
SELECT + ( col0 ) / col1 AS col0 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT ALL - ( - col2 ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col0 * ( tab1.col1 + col2 ) FROM tab1
----
240
4288
8720

query I rowsort
SELECT ALL tab0.col0 - + 43 * col1 FROM tab0
----
-3674
-3824
-4136

query I rowsort
SELECT - col1 * + 24 + col1 FROM tab0
----
-1978
-2093
-2231

query I rowsort
SELECT ALL col1 - col2 * + ( col1 ) FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT 84 * + col0 + col2 FROM tab2 AS cor0
----
615
6578
6674

query I rowsort
SELECT DISTINCT - 56 + 16 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-14
-27
-30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5631
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * cor0.col0 + - col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * cor0.col0 + - col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + tab1.col1 * + 25 * + 85 FROM tab1
----
21250
27625
55250

query I rowsort
SELECT DISTINCT + ( + 6 ) + col0 * col1 + + 98 AS col2 FROM tab1
----
1144
182
744

query I rowsort
SELECT 38 * + col1 FROM tab0 cor0
----
3268
3458
3686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5635
SELECT CAST( NULL AS DECIMAL ) * - 9 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT CAST ( NULL AS REAL ) * - 9 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5636
SELECT + ( - 32 ) - col0 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5636
SELECT + ( - 32 ) - col0 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - 20 AS col2 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 16 * - col0 + col0 * col0 AS col0 FROM tab1 AS cor0
----
5120
57
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5640
SELECT ALL - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5641
SELECT cor0.col0 DIV 7 - - cor0.col0 FROM tab0 cor0
----
101
27
40

skipif mysql # not compatible
query I rowsort label-5641
SELECT cor0.col0 / 7 - - cor0.col0 FROM tab0 cor0
----
101
27
40

query I rowsort
SELECT 20 * + col1 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT DISTINCT - 29 * ( col1 ) AS col0 FROM tab1 AS cor0
----
-290
-377
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT + - 99 DIV - col0 - col1 AS col1 FROM tab1 AS cor0
----
-12
-9
7

skipif mysql # not compatible
query I rowsort label-5644
SELECT + - 99 / - col0 - col1 AS col1 FROM tab1 AS cor0
----
-12
-9
7

query I rowsort
SELECT ALL + - ( col2 ) * + col0 * 24 AS col1 FROM tab0 AS cor0
----
-175152
-19008
-840

query I rowsort
SELECT DISTINCT - + 20 + 80 * col1 AS col2 FROM tab1 AS cor0
----
1020
2060
780

query I rowsort
SELECT ALL + + cor0.col0 * 59 AS col1 FROM tab1 cor0
----
177
3776
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT tab1.col2 DIV tab1.col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5648
SELECT tab1.col2 / tab1.col2 FROM tab1
----
1
1
1

query I rowsort
SELECT - 64 * ( col0 ) FROM tab1 AS cor0
----
-192
-4096
-5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT col0 DIV col1 + + cor0.col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-5650
SELECT col0 / col1 + + cor0.col2 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT - ( col2 ) * col0 + col1 AS col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT + - cor0.col1 + - col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT col0 * + col1 * col1 + + col2 FROM tab1
----
13616
2082
6457

query I rowsort
SELECT ALL - 69 FROM tab0, tab1 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT ALL + 27 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL + 27 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 83 * 75 - cor0.col1 FROM tab2 AS cor0
----
6166
6194
6208

query I rowsort
SELECT ALL - 50 AS col1 FROM tab2
----
-50
-50
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT DISTINCT - col2 DIV + col1 + + cor0.col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT - col2 / + col1 + + cor0.col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col2 * col1 + + col2 * + col0 * - 99 FROM tab2 cor0
----
-19548
-202306
-297844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 6 col1 FROM tab0 AS cor0
----
-80
-85
-91

query I rowsort
SELECT - + 13 FROM tab1, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT - 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT ( ( + cor0.col0 ) ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 cor0, tab1 cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT + tab1.col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + + col0 + - 32 * 33 FROM tab0 AS cor0
----
-1021
-1032
-967

query I rowsort
SELECT DISTINCT - + col0 - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL col0 + - 93 FROM tab1 AS cor0
----
-13
-29
-90

query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab2 AS cor0
----
-57

query I rowsort
SELECT ALL + col1 + - 29 * 90 FROM tab0 cor0
----
-2513
-2519
-2524

onlyif mysql # use DIV operator for integer division
query I rowsort label-5671
SELECT + - col1 * col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5671
SELECT + - col1 * col1 / col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23

query I rowsort
SELECT ( - col2 + col2 ) * 24 AS col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5675
SELECT CAST( NULL AS SIGNED ) * 26 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT CAST ( NULL AS INTEGER ) * 26 FROM tab0 cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 cor1, tab0 cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5678
SELECT DISTINCT + cor0.col2 + - col0 * col2 DIV col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + cor0.col2 + - col0 * col2 / col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 71 + - col0 * + ( col1 ) FROM tab2 AS cor0
----
-1272
-146
-4531

query I rowsort
SELECT col0 * col2 * 91 AS col1 FROM tab1
----
14742
331968
698880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 * + col2 + col0 + col2 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT + + col1 + + col1 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL tab1.col1 * col0 - - col0 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT 85 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT DISTINCT col0 * col0 * col0 AS col2 FROM tab0 WHERE ( col2 ) BETWEEN + col1 AND ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT DISTINCT - col1 DIV col0 + + col1 col0 FROM tab1
----
10
13
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT - col1 / col0 + + col1 col0 FROM tab1
----
10
13
18

query I rowsort
SELECT - ( - cor0.col0 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 65 * + col1 - col0 * - tab0.col1 FROM tab0
----
14014
7654
9700

query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - tab0.col0 + col2 FROM tab0 WHERE NOT + col0 IN ( - tab0.col2 * - col2 )
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT + col0 + tab1.col1 DIV col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5693
SELECT + col0 + tab1.col1 / col1 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 AS col1 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL col2 * + col2 + col2 + col2 FROM tab0
----
1155
3
6888

onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT DISTINCT + col1 DIV - col1 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT + col1 / - col1 AS col0 FROM tab2
----
-1

query I rowsort
SELECT tab2.col2 + col1 - col0 AS col2 FROM tab2
----
-24
51
7

query I rowsort
SELECT ALL col0 * - col0 + col1 AS col0 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT col1 * - col0 - col0 AS col0 FROM tab1
----
-1120
-704
-81

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT ALL - tab1.col2 + - col2 DIV col2 AS col1 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL - tab1.col2 + - col2 / col2 AS col1 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT col2 * - col1 FROM tab2 WHERE col2 + + col0 > + col2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + tab1.col0 * - col2 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col0 * col2 * - col0 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT + col0 + col0 DIV col1 AS col0 FROM tab2
----
7
79
83

skipif mysql # not compatible
query I rowsort label-5706
SELECT + col0 + col0 / col1 AS col0 FROM tab2
----
7
79
83

query I rowsort
SELECT ALL col0 + col0 / + col1 FROM tab0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT - 12 FROM tab2, tab1, tab1 AS cor0, tab0
----
-12

query I rowsort
SELECT ALL - 90 * col2 * - col1 + col0 AS col1 FROM tab2
----
138138
58219
75337

query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 AS col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL + 85 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT 69 AS col1 FROM tab2, tab1, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9

query I rowsort
SELECT + ( + col1 ) * - col0 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + 29 * col2 FROM tab1 AS cor0
----
1566
1653
2784

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + ( + col2 ) AS REAL ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col1 * - col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - 25 + - col2 AS col0 FROM tab0
----
-107
-26
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 * + tab0.col2 + tab0.col0 col1 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT col2 + - ( - col1 ) * 79 FROM tab2
----
1381
2476
4687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + ( col1 ) * cor0.col1 FROM tab2 AS cor0
----
1690
1733
4157

query I rowsort
SELECT ALL + - col1 - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - - col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 83 + col1 AS col2 FROM tab0 AS cor0
----
169
174
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5726
SELECT ALL + col0 DIV - col1 + + col1 FROM tab2 cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL + col0 / - col1 + + col1 FROM tab2 cor0
----
13
31
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5727
SELECT DISTINCT - 90 - + col2 * - CAST( - 99 AS SIGNED ) FROM tab2 AS cor0
----
-2664
-2763
-3852

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - 90 - + col2 * - CAST ( - 99 AS INTEGER ) FROM tab2 AS cor0
----
-2664
-2763
-3852

query I rowsort
SELECT DISTINCT ( + col1 ) * + 0 + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT + - col0 DIV + cor0.col0 + col0 * col2 FROM tab2 AS cor0
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-5729
SELECT + - col0 / + cor0.col0 + col0 * col2 FROM tab2 AS cor0
----
188
2027
3001

query I rowsort
SELECT + + 21 * col2 * + col0 + + col2 + col1 FROM tab0 AS cor0
----
153431
16751
833

query I rowsort
SELECT ALL + 55 AS col1 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT ALL tab2.col0 + - 47 FROM tab2
----
-40
31
32

query I rowsort
SELECT 41 + + col0 FROM tab2 cor0
----
119
120
48

query I rowsort
SELECT ALL - 5 * col2 AS col1 FROM tab1 AS cor0
----
-270
-285
-480

query I rowsort
SELECT DISTINCT + 11 + - col2 AS col0 FROM tab0 AS cor0
----
-22
-71
10

query I rowsort
SELECT 61 * col1 + col1 FROM tab2 cor0
----
1054
1922
3658

query I rowsort
SELECT + + cor0.col2 * 42 + 90 FROM tab2 cor0
----
1182
1224
1686

query I rowsort
SELECT + col0 - 72 AS col1 FROM tab2 AS cor0
----
-65
6
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5739
SELECT + col1 DIV + 30 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5739
SELECT + col1 / + 30 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5740
SELECT + + col0 + CAST( col1 AS SIGNED ) * cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
36544
4215
99920

skipif mysql # not compatible
query I rowsort label-5740
SELECT + + col0 + CAST ( col1 AS INTEGER ) * cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT + col1 + + col1 + col1 FROM tab2
----
177
51
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5742
SELECT + + col1 * - CAST( 67 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1139
-2077
-3953

skipif mysql # not compatible
query I rowsort label-5742
SELECT + + col1 * - CAST ( 67 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * 44 FROM tab2 AS cor0
----
-277
-3373
-3459

query I rowsort
SELECT DISTINCT col1 + - 16 FROM tab0 cor0
----
70
75
81

query I rowsort
SELECT ALL - col2 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col0 * - col1 + - 82 FROM tab2 AS cor0
----
1261
135
4520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5747
SELECT DISTINCT + col1 + + CAST( 85 AS SIGNED ) FROM tab0 AS cor0
----
171
176
182

skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT + col1 + + CAST ( 85 AS INTEGER ) FROM tab0 AS cor0
----
171
176
182

onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT - + col0 DIV - 69 AS col0 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5748
SELECT - + col0 / - 69 AS col0 FROM tab2 cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 + cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
3349
3592
9385

query I rowsort
SELECT - col1 * 33 * col0 AS col2 FROM tab2 AS cor0
----
-151866
-44319
-7161

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5751
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + - col1 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + - col1 * col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5752
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 3 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT ALL + CAST( NULL AS SIGNED ) * 59 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL + CAST ( NULL AS INTEGER ) * 59 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - ( col2 + col2 ) AS col0 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT tab0.col0 * 23 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 186c753fdad69884a4a90118a83bed6a

query I rowsort
SELECT - 10 * col1 AS col1 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT ALL 68 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 * + col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT - cor0.col2 + - col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT - col2 - - 57 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
1740
3337
931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - + col0 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col0 * - cor0.col1 + - col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT - - col2 + 60 FROM tab0 AS cor0
----
142
61
93

query I rowsort
SELECT col1 + + 48 * + 62 AS col0 FROM tab1 AS cor0
----
2986
2989
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col0 + col2 col0 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * col2 col1 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT 94 * 38 FROM tab2 AS cor0
----
3572
3572
3572

query I rowsort
SELECT DISTINCT - col2 + col0 * cor0.col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT 83 * + col2 + cor0.col1 * col1 DIV - col0 FROM tab0 AS cor0
----
-185
2431
6713

skipif mysql # not compatible
query I rowsort label-5771
SELECT 83 * + col2 + cor0.col1 * col1 / - col0 FROM tab0 AS cor0
----
-185
2431
6713

query I rowsort
SELECT DISTINCT - - 49 * col1 AS col2 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT + 11 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col0 ) col2 FROM tab2, tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 28 AS REAL ) * col1 FROM tab2 AS cor0
----
-1652
-476
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5776
SELECT ALL + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + 16 * + col0 col2 FROM tab2 AS cor0
----
1274
1302
139

query I rowsort
SELECT ( + col1 ) + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL - col1 * cor0.col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5781
SELECT - CAST( NULL AS SIGNED ) + cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5781
SELECT - CAST ( NULL AS INTEGER ) + cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 29 * col0 + + col0 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT - cor0.col2 + - col0 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT + col0 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + 13 * - col2 AS col1 FROM tab2 cor0
----
-338
-351
-494

onlyif mysql # use DIV operator for integer division
query I rowsort label-5786
SELECT - - col1 DIV - col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT - - col1 / - col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT col2 * - 98 FROM tab1
----
-5292
-5586
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5788
SELECT ALL + + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL + + col1 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + 74 + - col0 FROM tab1 cor0
----
-6
10
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5790
SELECT DISTINCT + col0 * col0 + - CAST( NULL AS SIGNED ) * ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT DISTINCT + col0 * col0 + - CAST ( NULL AS INTEGER ) * ( - col0 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( 45 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # use DIV operator for integer division
query I rowsort label-5792
SELECT ALL col0 * col1 + + col0 DIV col0 col0 FROM tab2 cor0
----
1344
218
4603

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL col0 * col1 + + col0 / col0 col0 FROM tab2 cor0
----
1344
218
4603

query I rowsort
SELECT DISTINCT - col1 * ( + 6 ) + col1 * col1 FROM tab2 AS cor0
----
187
3127
775

query I rowsort
SELECT - col0 + + 16 FROM tab1
----
-48
-64
13

query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - - 77 * col0 AS col1 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT ALL + + 74 * 53 AS col1 FROM tab0, tab2 cor0, tab1, tab2 AS cor1
----
81 values hashing to bf002c208648fe075289eef53f2e6422

query I rowsort
SELECT - col0 * + 23 * - col2 AS col0 FROM tab1
----
176640
3726
83904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col2 FROM tab1
----
10
13
26

query I rowsort
SELECT 66 + - col0 AS col0 FROM tab2 AS cor0
----
-12
-13
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT - cor0.col2 * + col2 + col1 DIV - 54 FROM tab0 AS cor0
----
-1090
-2
-6725

skipif mysql # not compatible
query I rowsort label-5801
SELECT - cor0.col2 * + col2 + col1 / - 54 FROM tab0 AS cor0
----
-1090
-2
-6725

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5802
SELECT - CAST( ( - col2 ) AS SIGNED ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5802
SELECT - CAST ( ( - col2 ) AS INTEGER ) FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT col0 + + ( ( col1 ) ) DIV col1 AS col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5803
SELECT col0 + + ( ( col1 ) ) / col1 AS col1 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL + ( tab2.col0 ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5805
SELECT + col0 + + 31 + ( + col0 * + CAST( col2 AS SIGNED ) ) FROM tab0 cor0
----
101
7418
847

skipif mysql # not compatible
query I rowsort label-5805
SELECT + col0 + + 31 + ( + col0 * + CAST ( col2 AS INTEGER ) ) FROM tab0 cor0
----
101
7418
847

query I rowsort
SELECT ALL - + col2 + - 10 * col2 AS col2 FROM tab2 cor0
----
-286
-297
-418

query I rowsort
SELECT - - col0 + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + col0 / col0 + 69 * - col0 * - CAST ( col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
3380
419795
430628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5809
SELECT ALL + col0 + CAST( 42 AS SIGNED ) DIV - col1 FROM tab1 AS cor0
----
2
60
77

skipif mysql # not compatible
query I rowsort label-5809
SELECT ALL + col0 + CAST ( 42 AS INTEGER ) / - col1 FROM tab1 AS cor0
----
2
60
77

query I rowsort
SELECT DISTINCT + col0 * - 63 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1545
-2206
-5689

query I rowsort
SELECT ALL + col1 * + 38 + + col2 FROM tab0 cor0
----
3301
3540
3687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5812
SELECT ALL - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5812
SELECT ALL - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 13 + col2 * - col0 FROM tab0 AS cor0
----
-22
-7285
-779

query I rowsort
SELECT ALL - + 70 + + cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
1178
1334
500

query I rowsort
SELECT DISTINCT - 4 * - 69 + col1 FROM tab1 AS cor0
----
286
289
302

onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT DISTINCT + col2 + - 75 DIV + col2 - col1 * - col1 FROM tab0 AS cor0
----
7427
8363
9335

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT + col2 + - 75 / + col2 - col1 * - col1 FROM tab0 AS cor0
----
7427
8363
9335

query I rowsort
SELECT DISTINCT + ( + col0 ) + cor0.col1 * - ( - 93 + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
453
5661
5958

query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT - 53 * - col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT ALL + cor0.col2 + 2 AS col1 FROM tab2 AS cor0
----
28
29
40

query I rowsort
SELECT col0 - tab0.col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5822
SELECT DISTINCT col0 * - CAST( col2 * col2 AS SIGNED ) + + col2 + - tab0.col1 * - col1 AS col1 FROM tab0
----
-18707
-590073
9375

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT col0 * - CAST ( col2 * col2 AS INTEGER ) + + col2 + - tab0.col1 * - col1 AS col1 FROM tab0
----
-18707
-590073
9375

query I rowsort
SELECT DISTINCT 28 FROM tab0, tab1 AS cor0
----
28

query I rowsort
SELECT ALL - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col2 * 10 FROM tab2
----
260
270
380

query I rowsort
SELECT ALL - col0 * col1 * 83 AS col2 FROM tab0 AS cor0
----
-171312
-281785
-672217

query I rowsort
SELECT DISTINCT 0 FROM tab0, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
0

query I rowsort
SELECT col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col0 * col1 * + col1 AS col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT 75 + + cor0.col2 * 58 FROM tab1 AS cor0
----
3207
3381
5643

onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT + + 78 DIV + cor0.col0 FROM tab2 AS cor0
----
0
1
11

skipif mysql # not compatible
query I rowsort label-5831
SELECT + + 78 / + cor0.col0 FROM tab2 AS cor0
----
0
1
11

query I rowsort
SELECT DISTINCT + col1 + - col0 * col1 FROM tab0 cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT DISTINCT cor0.col2 * - col0 + 38 DIV 74 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT cor0.col2 * - col0 + 38 / 74 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 77 - + cor1.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-14
-20
-9

query I rowsort
SELECT + 90 * col2 AS col1 FROM tab2
----
2340
2430
3420

query I rowsort
SELECT DISTINCT + - 40 * cor0.col1 AS col2 FROM tab2, tab0, tab1 AS cor0
----
-1040
-400
-520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5837
SELECT + col2 * + CAST( NULL AS SIGNED ) + col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5837
SELECT + col2 * + CAST ( NULL AS INTEGER ) + col0 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT DISTINCT + col2 + - ( cor0.col0 ) * col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 + + col0 * - 50 FROM tab0 AS cor0
----
-1750
-432
2759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5841
SELECT + - col2 DIV - col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-5841
SELECT + - col2 / - col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT ALL + col0 + col1 * 7 * - col2 FROM tab0 AS cor0
----
-19842
-52145
-644

query I rowsort
SELECT cor0.col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL col1 + col1 + col2 FROM tab0
----
195
205
264

query I rowsort
SELECT ALL + 25 + col1 FROM tab1
----
35
38
51

query I rowsort
SELECT ALL + 92 * + col2 + - ( + 84 ) + + col1 FROM tab2
----
2367
2431
3429

query I rowsort
SELECT ALL + 39 * + cor0.col2 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e3817d239cca5e1b42deeeb21dd9ce92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT DISTINCT + col1 - col2 * col0 DIV 37 col0 FROM tab2
----
-64
26
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT + col1 - col2 * col0 / 37 col0 FROM tab2
----
-64
26
5

query I rowsort
SELECT - + 25 FROM tab0, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT + col1 * ( 92 ) FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT - col2 * - col1 - + col0 * + col0 FROM tab0 AS cor0
----
-1128
-459
2262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5852
SELECT + + cor0.col0 * CAST( + col0 AS SIGNED ) - col1 * + col1 * - ( - col2 + + 38 ) FROM tab2 AS cor0
----
10620
47856
6241

skipif mysql # not compatible
query I rowsort label-5852
SELECT + + cor0.col0 * CAST ( + col0 AS INTEGER ) - col1 * + col1 * - ( - col2 + + 38 ) FROM tab2 AS cor0
----
10620
47856
6241

query I rowsort
SELECT - 81 FROM tab0, tab2 cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5854
SELECT DISTINCT col1 - col1 * CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT col1 - col1 * CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL

query I rowsort
SELECT - - 86 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + ( col2 * + col1 ) + + 88 + col0 FROM tab1
----
1416
1495
722

query I rowsort
SELECT DISTINCT - tab1.col0 * + 21 + + 45 AS col1 FROM tab1
----
-1299
-1635
-18

query I rowsort
SELECT col1 + ( + tab1.col0 ) FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT DISTINCT col0 * col0 + + col1 + tab2.col1 DIV tab2.col1 FROM tab2
----
6144
6259
81

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT col0 * col0 + + col1 + tab2.col1 / tab2.col1 FROM tab2
----
6144
6259
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 59 + col2 * + col0 col2 FROM tab2
----
2018
4005
5509

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT ALL col0 DIV 61 + col2 FROM tab0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-5861
SELECT ALL col0 / 61 + col2 FROM tab0
----
1
33
83

query I rowsort
SELECT ALL - - col2 * cor0.col0 + + 52 * col1 * - col2 FROM tab2 AS cor0
----
-30590
-43335
-77740

onlyif mysql # use DIV operator for integer division
query I rowsort label-5863
SELECT ALL cor0.col2 * cor0.col0 + - col2 + + col2 DIV + col1 FROM tab1 AS cor0
----
110
3596
7591

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL cor0.col2 * cor0.col0 + - col2 + + col2 / + col1 FROM tab1 AS cor0
----
110
3596
7591

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5864
SELECT - cor0.col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT - cor0.col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * col2 + cor0.col2 + col1 FROM tab2 AS cor0
----
1499
761
787

query I rowsort
SELECT DISTINCT - col1 * ( + col1 ) AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT col2 * + col1 + tab0.col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - ( ( - col2 ) * 13 ) - - tab0.col1 * col2 AS col2 FROM tab0
----
110
3267
8528

query I rowsort
SELECT ALL - ( col0 ) * - 71 FROM tab2 AS cor0
----
497
5538
5609

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5870
SELECT DISTINCT + CAST( NULL AS SIGNED ) * tab2.col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * tab2.col1 FROM tab2
----
NULL

query I rowsort
SELECT col1 + 69 FROM tab0
----
155
160
166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5872
SELECT + CAST( + col2 AS SIGNED ) col1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5872
SELECT + CAST ( + col2 AS INTEGER ) col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - 1 FROM tab2, tab0 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5874
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 24 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT CAST ( NULL AS REAL ) * 24 FROM tab2
----
NULL

query I rowsort
SELECT ALL 30 * 82 FROM tab0
----
2460
2460
2460

query I rowsort
SELECT DISTINCT - col0 * + col0 * 20 + col2 AS col1 FROM tab1 AS cor0
----
-126
-127904
-81863

query I rowsort
SELECT DISTINCT - + ( - col2 ) + col1 * + col1 FROM tab2 cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT DISTINCT - col1 DIV + col1 - cor0.col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT - col1 / + col1 - cor0.col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT ALL - - col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - - col1 - col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - cor0.col1 - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - 95 * col1 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT DISTINCT col0 * col2 + - cor0.col1 AS col2 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT ALL + + 44 - + col1 AS col0 FROM tab2 AS cor0
----
-15
13
27

query I rowsort
SELECT - col1 + ( ( col0 ) + + 64 ) FROM tab0
----
2
2
62

query I rowsort
SELECT - col1 * + tab0.col2 + col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ALL col2 * col1 * 21 FROM tab0
----
156702
2037
59598

onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT DISTINCT - tab1.col1 DIV 71 AS col2 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT - tab1.col1 / 71 AS col2 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 * 46 * - 26 FROM tab0
----
-106444
-28704
-41860

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 cor0, tab2 AS cor1
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5893
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 * + 3 + - col1 FROM tab0 AS cor0
----
-14
176
8

query I rowsort
SELECT ALL - - col0 - 5 AS col1 FROM tab0 cor0
----
19
30
84

query I rowsort
SELECT ALL col2 * + col1 * + col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5897
SELECT - CAST( - col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5897
SELECT - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - ( + tab2.col2 ) AS col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT - col0 + col0 * + col2 FROM tab1 AS cor0
----
159
3584
7600

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 71 * + ( + col1 ) FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * - col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ( - col1 ) * + ( - col0 ) - - col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + cor0.col2 + - col0 AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL 0 * col2 + + 30 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-5908
SELECT + + col1 + col0 * ( + 10 ) * - col1 + col2 DIV - 8 AS col0 FROM tab2 AS cor0
----
-13417
-2142
-45964

skipif mysql # not compatible
query I rowsort label-5908
SELECT + + col1 + col0 * ( + 10 ) * - col1 + col2 / - 8 AS col0 FROM tab2 AS cor0
----
-13417
-2142
-45964

query I rowsort
SELECT DISTINCT - 79 * col0 FROM tab0 cor0
----
-1896
-2765
-7031

query I rowsort
SELECT DISTINCT - + 4 * - col0 * 56 FROM tab2 AS cor0
----
1568
17472
17696

query I rowsort
SELECT ( + col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL col2 + + col0 * ( 2 ) FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT - - col0 - cor0.col1 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT 42 + + cor0.col0 * - ( col0 + col0 ) AS col1 FROM tab0 AS cor0
----
-1110
-15800
-2408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5915
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5915
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * - col1 + - col2 * + cor0.col2 + col0 FROM tab1 AS cor0
----
-1509
-2615
-7888

query I rowsort
SELECT col0 * + cor0.col0 + - ( col2 ) + + 7 * col2 AS col0 FROM tab2 cor0
----
211
6240
6469

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT + col0 + ( + col0 ) DIV + col1 + + col1 * cor0.col2 FROM tab1 AS cor0
----
1334
1407
640

skipif mysql # not compatible
query I rowsort label-5918
SELECT + col0 + ( + col0 ) / + col1 + + col1 * cor0.col2 FROM tab1 AS cor0
----
1334
1407
640

query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT col2 * - col1 * + col2 AS col1 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col0 + 9 + col1 FROM tab1 AS cor0
----
-45
-58
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5922
SELECT ( col0 ) DIV - col1 + 70 FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-5922
SELECT ( col0 ) / - col1 + 70 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab2 AS cor0
----
89

query I rowsort
SELECT col1 * + 1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col1 * - col1 * ( col2 ) AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col1 * ( 78 ) AS col2 FROM tab2
----
1326
2418
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT - col0 DIV + tab1.col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5927
SELECT - col0 / + tab1.col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col2 * + col1 + - col2 AS col1 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT ALL tab2.col0 * + col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT 90 + col0 * - col2 FROM tab2 AS cor0
----
-1938
-2912
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT 95 DIV + cor0.col1 - + 74 FROM tab1 cor0
----
-65
-67
-71

skipif mysql # not compatible
query I rowsort label-5931
SELECT 95 / + cor0.col1 - + 74 FROM tab1 cor0
----
-65
-67
-71

query I rowsort
SELECT + 66 - + col0 * cor0.col2 FROM tab0 AS cor0
----
-7232
-726
31

query I rowsort
SELECT DISTINCT - col0 - + col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL - 58 - col0 * col2 AS col0 FROM tab0
----
-7356
-850
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5935
SELECT ( - col1 ) * - col1 + + CAST( - 8 AS SIGNED ) AS col1 FROM tab1 cor0
----
161
668
92

skipif mysql # not compatible
query I rowsort label-5935
SELECT ( - col1 ) * - col1 + + CAST ( - 8 AS INTEGER ) AS col1 FROM tab1 cor0
----
161
668
92

query I rowsort
SELECT col1 - + 45 AS col2 FROM tab1 AS cor0
----
-19
-32
-35

query I rowsort
SELECT - 31 AS col2 FROM tab0 cor0
----
-31
-31
-31

query I rowsort
SELECT - 61 + + col0 FROM tab0 AS cor0
----
-26
-37
28

query I rowsort
SELECT - cor0.col0 * - col2 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * col2 + - 0 col0 FROM tab1 AS cor0
----
-2376
-2508
-4224

query I rowsort
SELECT 15 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT DISTINCT col2 + + tab1.col2 * 20 AS col2 FROM tab1
----
1134
1197
2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * - tab1.col1 col0 FROM tab1
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5946
SELECT ALL + col0 DIV - tab1.col1 + tab1.col1 AS col2 FROM tab1
----
26
4
7

skipif mysql # not compatible
query I rowsort label-5946
SELECT ALL + col0 / - tab1.col1 + tab1.col1 AS col2 FROM tab1
----
26
4
7

query I rowsort
SELECT col2 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - 32 + col1 FROM tab0 AS cor0
----
54
59
65

query I rowsort
SELECT ALL + col1 + - col1 * col1 FROM tab1 AS cor0
----
-156
-650
-90

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-5951
SELECT ALL + 95 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-31

skipif mysql # not compatible
query I rowsort label-5951
SELECT ALL + 95 / - col0 FROM tab1 AS cor0
----
-1
-1
-31

query I rowsort
SELECT ALL + + 56 + + col0 * 39 * + col1 FROM tab0 cor0
----
132461
315917
80552

query I rowsort
SELECT - col0 + 76 * + col0 AS col1 FROM tab0 AS cor0
----
1800
2625
6675

query I rowsort
SELECT tab2.col1 - ( + col2 ) * - col1 * col1 AS col0 FROM tab2
----
10999
25978
90565

query I rowsort
SELECT ALL 14 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL + col2 * cor0.col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT DISTINCT - + cor0.col1 DIV - col1 + + col2 AS col2 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT - + cor0.col1 / - col1 + + col2 AS col2 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT - ( cor0.col0 ) + cor0.col1 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( col2 AS REAL ) + + col2 * col0 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ( col1 ) * + col2 + ( - col0 ) FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL col2 * 82 FROM tab0 AS cor0
----
2706
6724
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5963
SELECT + 45 + col2 DIV col1 AS col1 FROM tab0 cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-5963
SELECT + 45 + col2 / col1 AS col1 FROM tab0 cor0
----
45
45
45

query I rowsort
SELECT - col0 + - 41 AS col2 FROM tab0 AS cor0
----
-130
-65
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5965
SELECT DISTINCT + - ( - col0 ) DIV col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-5965
SELECT DISTINCT + - ( - col0 ) / col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL + col2 * 60 + - col1 - - 99 FROM tab2 AS cor0
----
1600
1688
2362

query I rowsort
SELECT + cor0.col0 * + ( - col0 ) + ( - col0 + cor0.col0 ) * col2 FROM tab0 AS cor0
----
-1225
-576
-7921

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 DISTINCT - cor0.col1 + - cor0.col0 * - col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5970
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5970
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + + ( tab2.col0 ) AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + col0 * 29 FROM tab0
----
1015
2581
696

query I rowsort
SELECT - - ( ( col2 ) ) + 9 * + cor0.col0 FROM tab2 cor0
----
728
749
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 86 ) * - col2 col0 FROM tab0 cor0
----
-2838
-7052
-86

query I rowsort
SELECT ALL - col0 * col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL - 57 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * - col0 * - col2 col1 FROM tab1 AS cor0
----
-207360
-4374
-98496

query I rowsort
SELECT DISTINCT + - col0 * 51 AS col1 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT + - cor0.col1 * col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT ( - 77 ) AS col1 FROM tab1 AS cor0
----
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT ALL - col2 * col0 + - col2 * 12 DIV col0 FROM tab1 AS cor0
----
-3658
-378
-7694

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - col2 * col0 + - col2 * 12 / col0 FROM tab1 AS cor0
----
-3658
-378
-7694

query I rowsort
SELECT DISTINCT - + 71 + col0 FROM tab2 AS cor0
----
-64
7
8

query I rowsort
SELECT - col0 * tab0.col2 + + col0 AS col2 FROM tab0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + tab2.col0 * col1 col0 FROM tab2
----
1364
213
4569

query I rowsort
SELECT - 34 FROM tab1, tab2 cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT DISTINCT col2 DIV col2 - + col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5986
SELECT DISTINCT col2 / col2 - + col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT - 71 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT + - 33 + col1 AS col0 FROM tab1 cor0
----
-20
-23
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5989
SELECT - - cor0.col0 + col1 DIV - col2 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-5989
SELECT - - cor0.col0 + col1 / - col2 FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT + 37 * col0 - - col2 FROM tab1 AS cor0
----
165
2425
3056

query I rowsort
SELECT ALL + 5 * + 86 FROM tab2
----
430
430
430

query I rowsort
SELECT 86 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT DISTINCT 93 FROM tab2, tab1 AS cor0
----
93

query I rowsort
SELECT DISTINCT + 98 FROM tab0, tab0 AS cor0
----
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5995
SELECT DISTINCT col2 + - col1 + col2 DIV - ( + col0 ) AS col2 FROM tab1
----
10
47
82

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT col2 + - col1 + col2 / - ( + col0 ) AS col2 FROM tab1
----
10
47
82

query I rowsort
SELECT DISTINCT - col1 * col1 * - col1 FROM tab1 AS cor0
----
1000
17576
2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col0 + + ( - 32 ) FROM tab1 AS cor0
----
-112
-35
-96

query I rowsort
SELECT ALL - col2 * - cor0.col0 + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - col1 * - col1 + 28 FROM tab1 AS cor0
----
128
197
704

query I rowsort
SELECT ALL + - col2 - 64 * col1 FROM tab1 AS cor0
----
-1718
-697
-928

query I rowsort
SELECT + + col1 * col1 + col2 * - col1 FROM tab0 AS cor0
----
4558
819
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6003
SELECT - + col2 DIV - ( - col0 + - col0 ) AS col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6003
SELECT - + col2 / - ( - col0 + - col0 ) AS col0 FROM tab2 cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6004
SELECT DISTINCT + col0 + + ( - ( + col1 ) + CAST( NULL AS SIGNED ) ) * col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT + col0 + + ( - ( + col1 ) + CAST ( NULL AS INTEGER ) ) * col1 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6005
SELECT 61 DIV col0 - - col0 AS col2 FROM tab1
----
23
64
80

skipif mysql # not compatible
query I rowsort label-6005
SELECT 61 / col0 - - col0 AS col2 FROM tab1
----
23
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6006
SELECT ALL tab2.col1 * + col1 * - CAST( - col2 AS SIGNED ) + + col2 AS col2 FROM tab2
----
11020
25974
90532

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL tab2.col1 * + col1 * - CAST ( - col2 AS INTEGER ) + + col2 AS col2 FROM tab2
----
11020
25974
90532

query I rowsort
SELECT DISTINCT 10 + col2 AS col1 FROM tab2
----
36
37
48

query I rowsort
SELECT ALL - 42 + col0 FROM tab1
----
-39
22
38

query I rowsort
SELECT ALL 21 + col1 AS col0 FROM tab1
----
31
34
47

query I rowsort
SELECT DISTINCT col2 - - cor0.col2 * + 87 FROM tab2 cor0
----
2288
2376
3344

query I rowsort
SELECT ALL col1 + - 6 AS col1 FROM tab1 AS cor0
----
20
4
7

query I rowsort
SELECT DISTINCT + - cor0.col1 + + 69 * col0 AS col2 FROM tab1 AS cor0
----
181
4406
5507

query I rowsort
SELECT - cor0.col2 * + col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6014
SELECT DISTINCT col2 * 21 * - 83 + col1 DIV + col2 + 73 col1 FROM tab1 AS cor0
----
-167255
-94049
-99278

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT col2 * 21 * - 83 + col1 / + col2 + 73 col1 FROM tab1 AS cor0
----
-167255
-94049
-99278

query I rowsort
SELECT + col0 + - ( ( - col2 ) ) * + 86 AS col1 FROM tab0 AS cor0
----
121
2862
7141

query I rowsort
SELECT ALL cor0.col2 * ( col1 ) + cor0.col2 * + 27 + - col2 AS col0 FROM tab1 AS cor0
----
2052
2808
3744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT DISTINCT + col1 * + col0 DIV col0 + col0 + col1 FROM tab1
----
106
55
84

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + col1 * + col0 / col0 + col0 + col1 FROM tab1
----
106
55
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6018
SELECT + - cor0.col0 * - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-6018
SELECT + - cor0.col0 * - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL cor0.col1 + + 42 * - 27 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 1fab319bcc55164a3f5025c6df6f6ed0

query I rowsort
SELECT cor0.col2 * 48 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d2826b1a60dd9b862a6514bf69a0f44e

query I rowsort
SELECT DISTINCT col0 * + ( col1 * - tab2.col0 ) AS col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT col1 * - 62 + - col2 + + col1 FROM tab1 AS cor0
----
-1640
-667
-889

query I rowsort
SELECT + + ( - 25 ) * cor0.col0 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT col2 * + 52 FROM tab0
----
1716
4264
52

query I rowsort
SELECT ALL ( cor0.col0 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT 32 + - tab2.col0 AS col0 FROM tab2
----
-46
-47
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT DISTINCT 54 DIV col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT 54 / col2 FROM tab1
----
0
1

query I rowsort
SELECT ( - col1 ) + + col0 AS col2 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + cor0.col0 + col1 * + ( + 78 ) * col1 AS col1 FROM tab2 AS cor0
----
22621
271596
74965

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6031
SELECT + 67 + + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT + 67 + + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab0
----
-50

query I rowsort
SELECT DISTINCT + + 52 FROM tab0, tab1, tab0 AS cor0
----
52

query I rowsort
SELECT + + 46 + + col0 + col2 AS col0 FROM tab0 cor0
----
103
217
82

query I rowsort
SELECT cor0.col0 * + col0 - - 58 AS col2 FROM tab0 AS cor0
----
1283
634
7979

query I rowsort
SELECT DISTINCT cor0.col0 + - col1 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL + col0 * col0 + - col2 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT + 1 * cor0.col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col1 * - col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 80 - 70 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 33a2bf548fec79d4b8e6dea93edc77dd

query I rowsort
SELECT + ( - tab1.col1 ) AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - col2 * + col0 * - 13 FROM tab2 AS cor0
----
2457
26364
39026

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6043
SELECT tab2.col1 * + col2 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT tab2.col1 * + col2 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 23 FROM tab1 AS cor0
----
-20
41
57

query I rowsort
SELECT - + col1 - col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT - col1 * col2 - col1 AS col2 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6048
SELECT + col0 * - CAST( NULL AS DECIMAL ) * - cor0.col0 - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT + col0 * - CAST ( NULL AS REAL ) * - cor0.col0 - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * ( col1 ) + cor0.col0 - 59 FROM tab2 AS cor0
----
-1515
-626
-889

query I rowsort
SELECT - col1 * - ( + 96 ) + + col0 AS col1 FROM tab1 AS cor0
----
1024
1328
2499

query I rowsort
SELECT ALL + cor0.col1 * col1 + + 1 AS col0 FROM tab1 AS cor0
----
101
170
677

query I rowsort
SELECT ALL + col1 - - col1 * + cor0.col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * col0 + - cor0.col0 col2 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT - col1 * 55 - 53 FROM tab2 AS cor0
----
-1758
-3298
-988

query I rowsort
SELECT - col1 + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6056
SELECT - col0 + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT - col0 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col2 + 83 FROM tab1 AS cor0
----
-1165
-1321
-487

query I rowsort
SELECT DISTINCT - + cor0.col0 + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-19
-62
24

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6060
SELECT - col1 * + ( - col2 ) + + cor0.col2 DIV 17 FROM tab0 AS cor0
----
2839
7466
97

skipif mysql # not compatible
query I rowsort label-6060
SELECT - col1 * + ( - col2 ) + + cor0.col2 / 17 FROM tab0 AS cor0
----
2839
7466
97

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) / cor0.col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 2 col1 FROM tab2 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 26 col2 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT - - 18 FROM tab1 AS cor0
----
18
18
18

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f

query I rowsort
SELECT DISTINCT tab2.col0 * col0 FROM tab2 WHERE NOT ( - col2 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 BETWEEN col1 * col2 + + col1 + - col1 AND NULL
----

query I rowsort
SELECT col1 + + col1 + + col2 AS col0 FROM tab1
----
106
122
77

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT col0 - col0 IN ( col1 )
----
17
31
59

query I rowsort
SELECT + col1 * col0 * + col0 AS col2 FROM tab2
----
106097
1519
358956

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 * - col2 + + col0 ) <= ( NULL )
----

query I rowsort
SELECT col2 * col1 + + tab1.col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col2 * - col0 + tab2.col0 * tab2.col0 + col0 * tab2.col0 FROM tab2 WHERE NOT col1 + col2 <> NULL
----

query I rowsort
SELECT ALL + col0 * - col2 * col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col1 * tab1.col1 + tab1.col0 * col1 * + col1 FROM tab1
----
13689
2704
6500

onlyif mysql # use DIV operator for integer division
query I rowsort label-6076
SELECT + col1 DIV - col0 - tab0.col0 FROM tab0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-6076
SELECT + col1 / - col0 - tab0.col0 FROM tab0
----
-27
-37
-90

query I rowsort
SELECT tab2.col0 + col1 + col1 FROM tab2
----
113
196
69

query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 * - tab1.col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT col0 + + col0 * col2 * - tab1.col1 AS col1 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT ALL + col0 * col1 * col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT ALL - col2 - - col1 * + col2 AS col1 FROM tab2 WHERE NOT + col1 + col0 IN ( - tab2.col0 * - tab2.col0 + col1 )
----
1508
608
810

query I rowsort
SELECT ALL + col1 * - col2 * + tab1.col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col1 * col2 + col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL col0 + + col0 - - col1 FROM tab2
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT + col1 + col2 DIV col0 AS col2 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6086
SELECT + col1 + col2 / col0 AS col2 FROM tab2
----
17
34
59

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL cor0.col1 - cor0.col2 * col0 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - col0 * - col2 AS col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT - + col1 + + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6090
SELECT - + col1 + + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-85
-90
-96

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1 WHERE cor0.col1 NOT BETWEEN tab2.col0 AND ( NULL )
----
162 values hashing to ce440063ed214584fe891f8444687210

query I rowsort
SELECT tab1.col1 * + col1 AS col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL col1 * - col1 * + col0 + - tab1.col1 * + col2 FROM tab1
----
-14768
-3432
-6970

query I rowsort
SELECT col1 + col2 + col2 FROM tab2
----
111
85
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + tab1.col0 )
----

query I rowsort
SELECT - col2 + col2 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col1 + col2 * col2 AS col1 FROM tab0 AS cor0
----
14186
3927
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + + col1 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL col0 * + col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + - col1 + ( - col0 ) + - col0 FROM tab1 AS cor0
----
-138
-173
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + + 16 * col2 + + col0 col2 FROM tab0 AS cor0
----
-2286
-46
-6061

query I rowsort
SELECT DISTINCT cor0.col0 * col2 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL cor0.col0 - 92 AS col2 FROM tab1 AS cor0
----
-12
-28
-89

query I rowsort
SELECT DISTINCT + col0 + + ( 71 ) FROM tab2 AS cor0
----
149
150
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6105
SELECT DISTINCT - - 85 + + ( col1 + CAST( 49 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
220
225
231

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT - - 85 + + ( col1 + CAST ( 49 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
220
225
231

query I rowsort
SELECT DISTINCT + col2 * col1 + + col0 * - col0 FROM tab0 AS cor0
----
-1128
-459
2262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6107
SELECT ALL - CAST( - col0 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-6107
SELECT ALL - CAST ( - col0 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - + ( col2 ) + + col2 * - col0 * col1 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT - ( ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT DISTINCT + col1 + + 20 DIV col2 AS col0 FROM tab0 AS cor0
----
117
86
91

skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT + col1 + + 20 / col2 AS col0 FROM tab0 AS cor0
----
117
86
91

query I rowsort
SELECT ALL + 43 AS col2 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL 94 AS col1 FROM tab2 cor0
----
94
94
94

query I rowsort
SELECT 22 + + cor0.col2 * cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e133982aa5a52df845a263137809305d

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + + 26 AS col0 FROM tab0 AS cor0
----
-1199
-550
-7895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 - + col1 col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + 18 * - col2 FROM tab0 cor0
----
-1476
-18
-594

query I rowsort
SELECT ALL + ( + col0 ) * + col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + cor0.col2 - + col2 * 81 * - col0 FROM tab1 AS cor0
----
13176
295545
622176

query I rowsort
SELECT - + 83 * col0 AS col1 FROM tab0 cor0
----
-1992
-2905
-7387

query I rowsort
SELECT - + col2 * - ( col2 ) + col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col0 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + tab0.col0 + col2 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT - - col0 + - cor0.col1 * - 83 FROM tab0 cor0
----
7162
7642
8086

query I rowsort
SELECT ALL col2 * + col1 + 60 * - col1 AS col2 FROM tab0
----
-2322
-5723
2002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT ALL col0 * - col2 * + 55 + col0 DIV col2 FROM tab1
----
-200639
-422400
-8910

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL col0 * - col2 * + 55 + col0 / col2 FROM tab1
----
-200639
-422400
-8910

query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6127
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 * col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6128
SELECT ALL + - CAST( NULL AS SIGNED ) + - 31 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 31 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 40 FROM tab1
----
120
2560
3200

query I rowsort
SELECT ( - 87 ) FROM tab2
----
-87
-87
-87

query I rowsort
SELECT 99 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 col0 FROM tab2
----
59

query I rowsort
SELECT 4 * tab0.col1 FROM tab0
----
344
364
388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6134
SELECT DISTINCT CAST( - col0 AS SIGNED ) * - col1 AS col2 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * - col1 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT - - 12 DIV - col0 - col2 DIV + cor0.col0 col2 FROM tab2 cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6135
SELECT - - 12 / - col0 - col2 / + cor0.col0 col2 FROM tab2 cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 * + 95 col1 FROM tab0 cor0
----
1710
1710
1710

query I rowsort
SELECT + col2 * - col1 * + cor0.col0 - 57 FROM tab2 AS cor0
----
-119709
-51091
-5916

query I rowsort
SELECT cor0.col0 * + col1 + col0 * col0 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT - 48 * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-480
-624

onlyif mysql # use DIV operator for integer division
query I rowsort label-6140
SELECT - 47 + cor0.col1 DIV ( - ( cor0.col2 ) ) FROM tab1 cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-6140
SELECT - 47 + cor0.col1 / ( - ( cor0.col2 ) ) FROM tab1 cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - col2 * + 12 FROM tab2
----
-312
-324
-456

query I rowsort
SELECT ( - col1 * col0 ) FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT ALL + 38 DIV col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL + 38 / col0 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL 98 * tab1.col1 + col0 AS col1 FROM tab1
----
1044
1354
2551

query I rowsort
SELECT - col2 * 11 * col0 FROM tab2 AS cor0
----
-2079
-22308
-33022

query I rowsort
SELECT ALL + col0 + - ( - col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col1 * + col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6148
SELECT ALL cor0.col2 * CAST( col0 * col2 AS SIGNED ) + CAST( NULL AS SIGNED ) * + cor0.col1 + col1 * + col2 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-6148
SELECT ALL cor0.col2 * CAST ( col0 * col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) * + cor0.col1 + col1 * + col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + + 97 * + 51 AS col1 FROM tab1 AS cor0
----
4921
4934
4937

query I rowsort
SELECT + 47 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT col1 + 47 + 58 * - col2 AS col2 FROM tab0 AS cor0
----
-1781
-4618
86

query I rowsort
SELECT ALL col2 * - 88 + + col1 AS col1 FROM tab2 AS cor0
----
-2229
-2345
-3327

query I rowsort
SELECT DISTINCT - + col1 + + ( cor0.col2 + - col1 ) FROM tab0 AS cor0
----
-100
-139
-193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6154
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - - 57 AS col0 FROM tab2 AS cor0
----
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6156
SELECT - CAST( NULL AS DECIMAL ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT - CAST ( NULL AS REAL ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 80 ) AS col1 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT col2 + 75 * + col2 AS col1 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6160
SELECT ALL - CAST( 20 AS SIGNED ) + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-29
-4116
-6420

skipif mysql # not compatible
query I rowsort label-6160
SELECT ALL - CAST ( 20 AS INTEGER ) + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-29
-4116
-6420

query I rowsort
SELECT 44 * - tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6417af374ff403fda9c8f49bb0b3529f

query I rowsort
SELECT 63 * 47 FROM tab0, tab2 AS cor0
----
9 values hashing to 50cd68c43cb7eb74c003841ef2dccb3a

query I rowsort
SELECT + ( - col1 ) * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 88 * - col0 + + col0 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT col2 + ( col0 ) AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + 29 FROM tab1 cor0
----
29
29
29

query I rowsort
SELECT + 51 * - cor0.col2 + col1 FROM tab2 AS cor0
----
-1267
-1346
-1921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - col0 + - col1 col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL tab1.col2 * - col1 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - col0 + + col2 + col0 * + col1 FROM tab2 AS cor0
----
1302
237
4550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6171
SELECT - col1 + + col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT - col1 + + col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 27 + - col1 AS col0 FROM tab0 AS cor0
----
-59
-64
-70

query I rowsort
SELECT ALL ( 77 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL ( + col1 ) + + ( - col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - + 25 AS col2 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - col1 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 57 + - 48 * - cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
1305
1353
1881

query I rowsort
SELECT ALL 71 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT - 7 + 8 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT 53 + 59 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 5c4ae8b46ba4e16a3d91639b0f9e6a91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6182
SELECT - col2 * col1 * CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6182
SELECT - col2 * col1 * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 77 + col2 * + col2 * + 64 FROM tab2 AS cor0
----
43341
46733
92493

query I rowsort
SELECT - cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 13 AS col0 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + + 86 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT ALL - + col2 + col1 * + 92 AS col0 FROM tab0 AS cor0
----
7879
8290
8923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT - ( col0 ) * cor0.col1 DIV - 75 AS col0 FROM tab2 AS cor0
----
17
2
61

skipif mysql # not compatible
query I rowsort label-6191
SELECT - ( col0 ) * cor0.col1 / - 75 AS col0 FROM tab2 AS cor0
----
17
2
61

query I rowsort
SELECT ALL + 48 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT cor0.col2 - - cor0.col1 * 69 FROM tab1, tab0 AS cor0
----
9 values hashing to 73c451159a074186b2b9d14361afbb78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6194
SELECT ALL + cor0.col0 * - col0 * - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
13824
42875
704969

skipif mysql # not compatible
query I rowsort label-6194
SELECT ALL + cor0.col0 * - col0 * - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT DISTINCT - 84 AS col2 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT ALL + col0 - col1 * 18 AS col1 FROM tab1 AS cor0
----
-116
-154
-465

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * - cor0.col0 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT ALL + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL + col0 / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT cor0.col1 + 60 AS col2 FROM tab2 cor0
----
119
77
91

query I rowsort
SELECT 7 + - 44 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT DISTINCT - + 19 * col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-16
-42
-8

skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT - + 19 * col2 / col1 AS col1 FROM tab2 AS cor0
----
-16
-42
-8

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6203
SELECT ALL + col1 + 43 * col1 * - CAST( - 46 AS SIGNED ) FROM tab2 cor0
----
116761
33643
61349

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL + col1 + 43 * col1 * - CAST ( - 46 AS INTEGER ) FROM tab2 cor0
----
116761
33643
61349

query I rowsort
SELECT + - 54 AS col0 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT - + 38 * col0 AS col1 FROM tab2 cor0
----
-266
-2964
-3002

query I rowsort
SELECT + + 63 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT col1 + 53 FROM tab0
----
139
144
150

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6208
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 8 + + col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 8 + + col0 FROM tab0
----
NULL

query I rowsort
SELECT + 0 - + tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL + col0 + col2 * tab2.col2 * col1 AS col0 FROM tab2
----
22606
24627
39962

query I rowsort
SELECT DISTINCT - ( 17 ) * - col1 FROM tab1 AS cor0
----
170
221
442

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT ALL - 95 DIV col2 + col1 DIV - col0 AS col2 FROM tab0
----
-2
-5
-97

skipif mysql # not compatible
query I rowsort label-6212
SELECT ALL - 95 / col2 + col1 / - col0 AS col2 FROM tab0
----
-2
-5
-97

query I rowsort
SELECT - 60 * col1 AS col2 FROM tab1
----
-1560
-600
-780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6214
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - tab1.col2 col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - tab1.col2 col2 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6215
SELECT CAST( NULL AS SIGNED ) + 51 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT CAST ( NULL AS INTEGER ) + 51 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col2 * + 96 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6219
SELECT DISTINCT - col2 DIV - col0 + 10 FROM tab2 AS cor0
----
10
13

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT - col2 / - col0 + 10 FROM tab2 AS cor0
----
10
13

query I rowsort
SELECT cor0.col0 + - 92 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e9d7b18e4a18777c0ecf5399f1256cbc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * + col2 col2 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + col1 + - 23 FROM tab0
----
63
68
74

query I rowsort
SELECT - 58 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

query I rowsort
SELECT tab2.col1 + ( 84 + - col2 * 51 ) FROM tab2
----
-1183
-1262
-1837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6226
SELECT ALL - + cor0.col1 DIV - 68 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL - + cor0.col1 / - 68 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6227
SELECT + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6227
SELECT + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 * - ( cor0.col2 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 * + cor0.col1 - - col1 FROM tab1 cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6230
SELECT - col1 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-6230
SELECT - col1 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col1 * ( + col0 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col0 * + 61 AS col2 FROM tab1 AS cor0
----
183
3904
4880

onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT DISTINCT - + col1 * col0 DIV col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6233
SELECT DISTINCT - + col1 * col0 / col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT col0 * 62 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT ALL - + col1 * col2 + - col0 * + 57 FROM tab1 AS cor0
----
-1575
-4218
-5808

query I rowsort
SELECT col0 + - 86 * + col1 * + ( col0 ) FROM tab0 AS cor0
----
-177480
-291935
-696425

query I rowsort
SELECT ALL - col0 + + col1 * - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT + col1 - + 45 FROM tab0 AS cor0
----
41
46
52

query I rowsort
SELECT col0 * + 75 - col0 AS col1 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT ALL ( + 57 ) AS col1 FROM tab1 cor0
----
57
57
57

query I rowsort
SELECT - - 51 * - 97 FROM tab0 AS cor0
----
-4947
-4947
-4947

query I rowsort
SELECT + ( col0 ) - - col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL 99 + ( + col2 ) FROM tab0 AS cor0
----
100
132
181

query I rowsort
SELECT DISTINCT + col2 * - 94 FROM tab2 cor0
----
-2444
-2538
-3572

query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab2 AS cor0
----
31

query I rowsort
SELECT DISTINCT col2 - col1 * 80 * col2 FROM tab2
----
-122694
-51642
-66933

query I rowsort
SELECT - col0 - tab1.col2 AS col0 FROM tab1
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6248
SELECT DISTINCT col1 + - CAST( NULL AS DECIMAL ) - + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT col1 + - CAST ( NULL AS REAL ) - + col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 95 + + 74 FROM tab1 AS cor0
----
169
169
169

query I rowsort
SELECT DISTINCT + + ( 83 ) - + cor0.col2 AS col1 FROM tab0 cor0
----
1
50
82

query I rowsort
SELECT ALL - 0 * + cor0.col2 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col1 * + 37 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT - + 22 - - col2 * col0 FROM tab2 AS cor0
----
167
2006
2980

query I rowsort
SELECT DISTINCT - col0 - 13 AS col0 FROM tab0
----
-102
-37
-48

query I rowsort
SELECT + col0 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - 69 * col1 AS col0 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT col0 + cor0.col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - col1 - - col1 AS col0 FROM tab2
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6259
SELECT col0 * CAST( + col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-6259
SELECT col0 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + 22 FROM tab2, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT tab0.col2 DIV + tab0.col0 - + 2 * - col0 FROM tab0
----
178
49
70

skipif mysql # not compatible
query I rowsort label-6261
SELECT tab0.col2 / + tab0.col0 - + 2 * - col0 FROM tab0
----
178
49
70

query I rowsort
SELECT + - col1 + + col2 * + 11 AS col0 FROM tab0 AS cor0
----
-86
277
811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6263
SELECT ALL + 26 - col0 * col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + 26 - col0 * col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 10 * col1 * - col2 AS col2 FROM tab1
----
12480
14040
5700

query I rowsort
SELECT - - ( + 6 ) FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT - 45 * col0 AS col2 FROM tab2 cor0
----
-315
-3510
-3555

onlyif mysql # use DIV operator for integer division
query I rowsort label-6267
SELECT - 97 DIV + 27 + col0 * 39 FROM tab2
----
270
3039
3078

skipif mysql # not compatible
query I rowsort label-6267
SELECT - 97 / + 27 + col0 * 39 FROM tab2
----
270
3039
3078

query I rowsort
SELECT DISTINCT - col1 * 3 FROM tab0
----
-258
-273
-291

query I rowsort
SELECT 87 + - col1 AS col1 FROM tab1
----
61
74
77

query I rowsort
SELECT ALL - ( - col0 ) + col2 * - col0 * - col1 + ( col0 ) AS col2 FROM tab2
----
119808
51192
5873

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 31 * - col0 + cor0.col2 FROM tab1 AS cor0
----
147
2041
2576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT - col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6274
SELECT - col2 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + + cor0.col0 * col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL cor0.col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col1 * ( cor0.col1 ) + + col2 AS col0 FROM tab2 cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-6278
SELECT ALL - - col1 DIV - 84 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL - - col1 / - 84 AS col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT ALL col2 DIV - col2 + col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL col2 / - col2 + col2 FROM tab1
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT DISTINCT 61 * col2 + - ( + col1 ) DIV col1 AS col0 FROM tab2
----
1585
1646
2317

skipif mysql # not compatible
query I rowsort label-6281
SELECT DISTINCT 61 * col2 + - ( + col1 ) / col1 AS col0 FROM tab2
----
1585
1646
2317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + col2 col0 FROM tab1
----
131
89
92

query I rowsort
SELECT 51 AS col0 FROM tab2
----
51
51
51

query I rowsort
SELECT ( - col1 ) * + cor0.col0 - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - ( col0 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

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

query I rowsort
SELECT DISTINCT 50 + - col1 AS col1 FROM tab1 cor0
----
24
37
40

query I rowsort
SELECT - 57 * ( + col1 ) + - col0 + + col1 FROM tab0 cor0
----
-4840
-5185
-5467

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col2 FROM tab2 AS cor0
----
-56
-56
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT + ( 37 ) DIV col2 + - col1 * col1 FROM tab0 AS cor0
----
-7395
-8281
-9372

skipif mysql # not compatible
query I rowsort label-6290
SELECT + ( 37 ) / col2 + - col1 * col1 FROM tab0 AS cor0
----
-7395
-8281
-9372

query I rowsort
SELECT 71 + + col0 FROM tab2 AS cor0
----
149
150
78

query I rowsort
SELECT DISTINCT - tab0.col0 + tab0.col1 FROM tab0, tab1, tab0 AS cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT + col1 DIV - ( - 24 ) FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6293
SELECT + col1 / - ( - 24 ) FROM tab2
----
0
1
2

query I rowsort
SELECT tab1.col1 * + 83 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 21ef298eb031fd9f51dd01b458df836a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6296
SELECT cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6296
SELECT cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * + col2 col1 FROM tab0 AS cor0
----
2574
6396
78

query I rowsort
SELECT + 38 - + cor0.col0 * - col2 FROM tab0 AS cor0
----
73
7336
830

query I rowsort
SELECT + - 63 - 81 FROM tab1 AS cor0
----
-144
-144
-144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6300
SELECT DISTINCT + ( - col1 ) * col1 * ( + 65 * - col2 ) + CAST( col1 AS SIGNED ) + + col0 FROM tab2
----
1686593
5883027
713926

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + ( - col1 ) * col1 * ( + 65 * - col2 ) + CAST ( col1 AS INTEGER ) + + col0 FROM tab2
----
1686593
5883027
713926

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab1, tab2 AS cor1
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8

query I rowsort
SELECT 25 AS col1 FROM tab2, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT col2 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL col1 + 27 AS col1 FROM tab0
----
113
118
124

query I rowsort
SELECT ALL col2 * + col1 + - col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT col1 + + 34 FROM tab1
----
44
47
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT col0 DIV + col1 + col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-6307
SELECT col0 / + col1 + col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT DISTINCT col1 * + ( - cor0.col1 ) - + col0 AS col1 FROM tab2 cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL + col2 - - col1 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 * + col0 * - 14 AS col0 FROM tab1 AS cor0
----
-107520
-2268
-51072

query I rowsort
SELECT - col2 * + 82 + col0 AS col1 FROM tab0
----
-2682
-47
-6635

query I rowsort
SELECT ALL + col0 * - 23 FROM tab0 AS cor0
----
-2047
-552
-805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6313
SELECT ALL + + CAST( 69 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-10
-9
62

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL + + CAST ( 69 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-10
-9
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6314
SELECT CAST( - col1 AS SIGNED ) * + cor0.col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6314
SELECT CAST ( - col1 AS INTEGER ) * + cor0.col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col0 + + 28 AS col1 FROM tab0 AS cor0
----
-61
-7
4

query I rowsort
SELECT + - 34 AS col1 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL 88 * - col0 AS col0 FROM tab1 AS cor0
----
-264
-5632
-7040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6318
SELECT ALL CAST( - col1 + - col2 AS SIGNED ) AS col0 FROM tab2
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL CAST ( - col1 + - col2 AS INTEGER ) AS col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + ( col1 ) * cor0.col0 - col0 * + col2 FROM tab0 cor0
----
1272
3360
801

query I rowsort
SELECT DISTINCT + + col0 - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - - 63 * - cor0.col2 AS col0 FROM tab0 cor0
----
-2079
-5166
-63

query I rowsort
SELECT col0 * + 42 AS col0 FROM tab2 AS cor0
----
294
3276
3318

query I rowsort
SELECT DISTINCT - col2 * - 89 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT + ( col2 ) + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + col0 + 30 * + col2 FROM tab2 cor0
----
1219
817
858

query I rowsort
SELECT 52 AS col0 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT ALL 70 * - 42 + col1 AS col0 FROM tab0 AS cor0
----
-2843
-2849
-2854

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 86 AS REAL ) FROM tab1 AS cor0
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6330
SELECT ALL cor0.col1 + col1 * col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL cor0.col1 + col1 * col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT + col0 DIV + col2 + cor0.col2 DIV cor0.col0 - + col2 FROM tab1 AS cor0
----
-36
-56
-95

skipif mysql # not compatible
query I rowsort label-6331
SELECT + col0 / + col2 + cor0.col2 / cor0.col0 - + col2 FROM tab1 AS cor0
----
-36
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col1 * col1 - col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT - + col1 * col1 * - cor0.col0 - - cor0.col0 FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT - col1 - + col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT ALL 95 DIV col1 col0 FROM tab2 AS cor0
----
1
3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL 95 / col1 col0 FROM tab2 AS cor0
----
1
3
5

query I rowsort
SELECT - + 64 * col1 AS col2 FROM tab2 cor0
----
-1088
-1984
-3776

query I rowsort
SELECT ALL 64 + - col1 FROM tab2 AS cor0
----
33
47
5

query I rowsort
SELECT - 85 * - cor0.col0 - + 35 FROM tab2 AS cor0
----
560
6595
6680

query I rowsort
SELECT DISTINCT 1 AS col0 FROM tab1 cor0
----
1

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-6342
SELECT ALL cor0.col2 DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL cor0.col2 / - col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - col2 * col0 * col0 + + col1 FROM tab1 AS cor0
----
233482
512
614413

onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT DISTINCT + col1 DIV + col0 FROM tab2 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT + col1 / + col0 FROM tab2 cor0
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + 9 col2 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT ALL + cor0.col2 * ( - col1 + col2 ) FROM tab2 AS cor0
----
-108
-858
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT DISTINCT + - col2 DIV + cor0.col1 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + - col2 / + cor0.col1 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor0.col0 + - 36 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1289
-858
-965

query I rowsort
SELECT - col0 * ( + col0 + + col1 ) FROM tab0 AS cor0
----
-16020
-2640
-4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * col0 * - col0 col0 FROM tab2 AS cor0
----
-336
-474474
-492960

query I rowsort
SELECT - 33 * + tab2.col2 - - ( col1 ) FROM tab2
----
-1237
-799
-860

query I rowsort
SELECT + col2 - - 23 AS col1 FROM tab1 AS cor0
----
119
77
80

query I rowsort
SELECT ALL - - col1 + col2 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + col1 + + col1 * - col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-143
-624
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6356
SELECT + cor0.col1 * - col2 + - col1 DIV col0 FROM tab0 cor0
----
-2841
-7463
-99

skipif mysql # not compatible
query I rowsort label-6356
SELECT + cor0.col1 * - col2 + - col1 / col0 FROM tab0 cor0
----
-2841
-7463
-99

query I rowsort
SELECT ALL + + col0 * 88 AS col2 FROM tab1 AS cor0
----
264
5632
7040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6358
SELECT + col1 + + col1 * - cor0.col2 * col2 + + CAST( - 27 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-119822
-32507
-75817

skipif mysql # not compatible
query I rowsort label-6358
SELECT + col1 + + col1 * - cor0.col2 * col2 + + CAST ( - 27 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-119822
-32507
-75817

query I rowsort
SELECT ALL col2 + tab2.col1 + - 78 * - col0 * - col2 AS col1 FROM tab2
----
-14684
-158099
-234101

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab2, tab0, tab2 AS cor0
----
42

query I rowsort
SELECT col0 * col2 * + cor0.col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - tab0.col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + col2 + + 64 + + col0 * + ( cor0.col0 ) FROM tab2 AS cor0
----
140
6174
6343

query I rowsort
SELECT + 52 * col0 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT - col2 + 16 * col2 + + col1 AS col0 FROM tab1 AS cor0
----
1453
836
865

query I rowsort
SELECT ALL col0 * col0 + + 21 AS col2 FROM tab2
----
6105
6262
70

query I rowsort
SELECT col1 + + col0 * col1 * + col0 FROM tab1
----
260
40970
83213

query I rowsort
SELECT ALL - 41 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT - col1 * + 69 AS col2 FROM tab1
----
-1794
-690
-897

query I rowsort
SELECT - + 33 AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col0 * col0 col2 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL + tab1.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT ( col2 ) + + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + 5 + + col2 AS col2 FROM tab0 AS cor0
----
38
6
87

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab2
----
23

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab1, tab1 AS cor0
----
58

query I rowsort
SELECT ALL ( + col2 * - 2 ) + 58 AS col2 FROM tab0
----
-106
-8
56

query I rowsort
SELECT ALL - 14 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

query I rowsort
SELECT + col2 * col2 * 66 AS col1 FROM tab0 AS cor0
----
443784
66
71874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 1 * cor0.col2 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - - col0 * - col2 + - col0 + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

query I rowsort
SELECT ALL - tab0.col0 * + col0 AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT tab1.col1 * + cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to caacfddf5ee462b9acbfc3086a7ab4e5

query I rowsort
SELECT ALL + col1 * + col2 * + tab0.col0 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT 83 * 86 FROM tab1 AS cor0
----
7138
7138
7138

onlyif mysql # use DIV operator for integer division
query I rowsort label-6390
SELECT ALL - col0 DIV ( + col2 ) AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL - col0 / ( + col2 ) AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT + tab2.col0 + - col1 * + ( - col2 ) * col0 + col2 FROM tab2
----
119756
51151
5893

onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT - ( + col1 ) DIV 19 + + col0 FROM tab1
----
2
64
80

skipif mysql # not compatible
query I rowsort label-6392
SELECT - ( + col1 ) / 19 + + col0 FROM tab1
----
2
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT ALL col1 + col1 DIV 73 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL col1 + col1 / 73 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT col1 + + col1 DIV ( + 13 ) + + col2 * col0 DIV - col0 FROM tab1
----
-26
-47
-82

skipif mysql # not compatible
query I rowsort label-6394
SELECT col1 + + col1 / ( + 13 ) + + col2 * col0 / - col0 FROM tab1
----
-26
-47
-82

query I rowsort
SELECT DISTINCT + + col2 * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - col0 - + col2 AS col0 FROM tab1 cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * - col0 * col0 + 6 * cor0.col0 col0 FROM tab2 AS cor0
----
2394
292500
300042

query I rowsort
SELECT ALL + 69 - col0 FROM tab2 AS cor0
----
-10
-9
62

query I rowsort
SELECT ALL - 69 * + col1 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT ALL + + 90 * - col2 AS col0 FROM tab1 cor0
----
-4860
-5130
-8640

query I rowsort
SELECT DISTINCT + - 51 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2754
-2907
-4896

query I rowsort
SELECT ( - tab2.col1 ) AS col0 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * - col0 col1 FROM tab1
----
-1984
-2480
-93

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT - col2 + - ( 43 + col0 * col2 ) AS col2 FROM tab0 cor0
----
-7423
-79
-868

query I rowsort
SELECT DISTINCT - col0 * + 54 FROM tab0
----
-1296
-1890
-4806

query I rowsort
SELECT ALL col2 * + cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT - col0 * + ( - col2 ) - + col0 AS col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT - col2 * + col2 + cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
-14186
-3927
-98

query I rowsort
SELECT + col0 + 96 AS col2 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT col0 * + ( ( - col0 ) ) + col1 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL tab1.col1 * tab1.col1 + col0 FROM tab1
----
164
249
679

query I rowsort
SELECT ALL col0 - col1 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - col1 + col2 * - col2 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT + col1 - + col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col0 + + col1 + + col0 FROM tab1 AS cor0
----
138
173
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <= NULL OR NULL >= NULL
----

query I rowsort
SELECT DISTINCT col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - - col0 + - col0 * col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + - col0 * + col2 + col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT col1 + + col0 * - cor0.col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + - col0 + - col0 * - col2 * col0 AS col0 FROM tab2 AS cor0
----
1316
158106
237079

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + col2 + + col1 + + col1 FROM tab1 AS cor0
----
-2
-37
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col0 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6427
SELECT DISTINCT - col0 + + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT - col0 + + col0 / - col2 AS col2 FROM tab0 AS cor0
----
-24
-70
-90

query I rowsort
SELECT + + ( - cor0.col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col2 * ( col0 ) * - tab2.col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL ( + col0 + tab0.col1 ) AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT ( col2 + + tab0.col1 ) * + col1 AS col0 FROM tab0
----
10234
15743
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT - cor0.col2 * cor0.col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6432
SELECT - cor0.col2 * cor0.col0 / - col2 AS col2 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6433
SELECT - - 44 + - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-6433
SELECT - - 44 + - col0 / - col0 AS col0 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT 32 * - col2 FROM tab1
----
-1728
-1824
-3072

onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT - + col0 DIV - cor0.col0 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT ALL + cor0.col0 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - col2 + col1 * - col1 * col2 FROM tab0 AS cor0
----
-244101
-679124
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-6438
SELECT DISTINCT - + col0 + col1 DIV col2 AS col2 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT - + col0 + col1 / col2 AS col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT 73 + col2 FROM tab2
----
100
111
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + tab0.col1 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 16 * col1 + col1 - 22 AS col1 FROM tab2
----
267
505
981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col1 col1 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT ALL + ( col1 ) DIV tab2.col1 + + tab2.col0 - + col2 AS col2 FROM tab2
----
-19
42
53

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + ( col1 ) / tab2.col1 + + tab2.col0 - + col2 AS col2 FROM tab2
----
-19
42
53

query I rowsort
SELECT - tab2.col2 - + tab2.col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT 10 + 98 * + col0 AS col2 FROM tab0
----
2362
3440
8732

query I rowsort
SELECT DISTINCT col1 * - col2 - col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + ( + col1 ) + 65 FROM tab1 AS cor0
----
75
78
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6448
SELECT ALL + - 3 DIV col1 + cor0.col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + - 3 / col1 + cor0.col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + col0 + col2 * + 66 * + 86 FROM tab0 AS cor0
----
187332
465521
5711

skipif mysql # not compatible
query I rowsort
SELECT - 79 * - cor0.col0 + CAST ( col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
291
5113
6416

query I rowsort
SELECT DISTINCT + col2 + + col2 - col1 AS col1 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT 31 * + 52 AS col1 FROM tab2
----
1612
1612
1612

query I rowsort
SELECT ALL + col1 + - 39 FROM tab0
----
47
52
58

query I rowsort
SELECT ALL + 90 + col1 AS col1 FROM tab1
----
100
103
116

query I rowsort
SELECT - 16 AS col0 FROM tab2
----
-16
-16
-16

query I rowsort
SELECT ALL + 87 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT 92 + 53 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184dd874efc91366378cfe8644e8c122

query I rowsort
SELECT - col1 + col2 + col2 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT ALL + 82 * col0 AS col0 FROM tab2 AS cor0
----
574
6396
6478

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6460
SELECT DISTINCT + cor0.col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + cor0.col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT 82 + + col1 + ( ( + col1 ) ) * - col2 * ( - col0 ) FROM tab1
----
36572
4320
99935

query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT + 15 * + col2 + - col2 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT + 86 * col2 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT ALL 73 * col0 + 68 AS col1 FROM tab1 cor0
----
287
4740
5908

query I rowsort
SELECT ALL + - col2 + + col0 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6467
SELECT ALL col1 + cor0.col2 DIV ( cor0.col1 * + col1 ) + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL col1 + cor0.col2 / ( cor0.col1 * + col1 ) + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col1 col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6470
SELECT 34 * + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT 34 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col1 col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - + col0 + col0 * col0 FROM tab0 AS cor0
----
1190
552
7832

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 85ee76cb25486c31b8f0abeb3f8683dc

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455

query I rowsort
SELECT + col2 * 86 AS col1 FROM tab2 cor0
----
2236
2322
3268

query I rowsort
SELECT - - col2 + - 76 * col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT ALL col1 * ( - 72 ) AS col2 FROM tab1 AS cor0
----
-1872
-720
-936

query I rowsort
SELECT - - col1 * - col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6480
SELECT col2 + + CAST( - 22 AS SIGNED ) * + cor0.col0 FROM tab1 AS cor0
----
-12
-1351
-1664

skipif mysql # not compatible
query I rowsort label-6480
SELECT col2 + + CAST ( - 22 AS INTEGER ) * + cor0.col0 FROM tab1 AS cor0
----
-12
-1351
-1664

onlyif mysql # use DIV operator for integer division
query I rowsort label-6481
SELECT + ( - col2 ) DIV col0 + col2 AS col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-6481
SELECT + ( - col2 ) / col0 + col2 AS col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT + ( - 57 ) FROM tab0 cor0
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 col2 FROM tab2 cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 - col0 col2 FROM tab0 AS cor0
----
-105
-116
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( ( col1 ) ) * col1 + + col0 col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT - 35 * - col2 - col0 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-13
-3692
728

query I rowsort
SELECT DISTINCT col0 + - 16 + col1 FROM tab1 AS cor0
----
13
58
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6488
SELECT ALL CAST( NULL AS SIGNED ) * 10 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL CAST ( NULL AS INTEGER ) * 10 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + + 38 - + col2 AS col0 FROM tab2 AS cor0
----
0
11
12

query I rowsort
SELECT ALL + + col2 * ( col2 * + col1 ) - - 65 * col2 FROM tab2 AS cor0
----
24354
27018
41574

query I rowsort
SELECT DISTINCT - - 73 FROM tab0 AS cor0
----
73

query I rowsort
SELECT ALL 58 + + cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
110
78
84

query I rowsort
SELECT + ( col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 22 + - 10 AS col2 FROM tab1 AS cor0
----
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6495
SELECT ALL - - CAST( col2 AS SIGNED ) * cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL - - CAST ( col2 AS INTEGER ) * cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - ( + ( col0 ) ) AS col2 FROM tab0 cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 51 - cor0.col2 col2 FROM tab2 cor0
----
1554
2983
829

query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 57 + + 30 * + col1 AS col2 FROM tab1 AS cor0
----
243
333
723

query I rowsort
SELECT col2 * - col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + 93 * + 40 FROM tab1 AS cor0
----
3720
3720
3720

query I rowsort
SELECT - 19 * - col2 AS col2 FROM tab0 AS cor0
----
1558
19
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT DISTINCT + + cor0.col2 DIV 31 AS col2 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT + + cor0.col2 / 31 AS col2 FROM tab2 cor0
----
0
1

query I rowsort
SELECT DISTINCT - 7 FROM tab1 cor0
----
-7

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT 38 - - col0 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT - - col2 + col1 * 11 - + 45 FROM tab2 AS cor0
----
180
323
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab2, tab1 cor0
----
-7

query I rowsort
SELECT DISTINCT + col0 + - ( - 11 * col1 ) AS col0 FROM tab0 AS cor0
----
1090
1102
970

query I rowsort
SELECT ALL + col1 * 17 * ( + col1 + + col0 ) FROM tab0 AS cor0
----
160820
217668
278460

onlyif mysql # use DIV operator for integer division
query I rowsort label-6512
SELECT + cor0.col2 + - col2 DIV col2 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6512
SELECT + cor0.col2 + - col2 / col2 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
-59

query I rowsort
SELECT DISTINCT - col0 * - col1 + col0 + + col0 AS col0 FROM tab2
----
1501
231
4758

query I rowsort
SELECT - ( col0 ) * - ( 33 ) + col0 AS col1 FROM tab0
----
1190
3026
816

query I rowsort
SELECT tab1.col0 + col1 * - 67 FROM tab1
----
-1739
-606
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( tab0.col0 ) col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT col2 * + col0 + col2 * + col0 * col0 FROM tab1
----
237120
622080
648

query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2, tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6520
SELECT ALL - tab1.col1 DIV col0 col1 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6520
SELECT ALL - tab1.col1 / col0 col1 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 54 * - cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9bb502b390a3139ffa386a8ab8da760c

query I rowsort
SELECT DISTINCT 84 FROM tab2, tab2 cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * 9 col0 FROM tab0, tab2, tab1 cor0
----
27 values hashing to c240ee08416b762e52567de85493e969

query I rowsort
SELECT - cor0.col2 + + ( + col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * 5 + - 75 FROM tab2 AS cor0
----
10
220
80

query I rowsort
SELECT - col0 + + 52 AS col1 FROM tab2 AS cor0
----
-26
-27
45

query I rowsort
SELECT ALL - - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - col0 * - ( + cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col1 * ( col1 ) - col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT col0 * - cor0.col0 * + col0 - - col2 FROM tab2 AS cor0
----
-316
-474526
-493001

query I rowsort
SELECT ALL - cor0.col0 + 88 AS col2 FROM tab2 AS cor0
----
10
81
9

query I rowsort
SELECT cor0.col0 + - cor0.col2 * - 56 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c22cf6492ebf8eb2501f97ba810f46de

query I rowsort
SELECT ALL + + col0 + - 82 AS col2 FROM tab0 AS cor0
----
-47
-58
7

query I rowsort
SELECT DISTINCT - 20 AS col2 FROM tab1, tab1 AS cor0
----
-20

query I rowsort
SELECT DISTINCT - 57 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-4902
-5187
-5529

query I rowsort
SELECT - + 6 * 79 AS col2 FROM tab1 cor0
----
-474
-474
-474

query I rowsort
SELECT ALL + 51 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + col2 col0 FROM tab0
----
1518
3772
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT + col1 DIV - col1 col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6541
SELECT + col1 / - col1 col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT 56 * col2 FROM tab1
----
3024
3192
5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - tab1.col1 * + col2 col2 FROM tab1
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6544
SELECT ALL 20 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-6544
SELECT ALL 20 / col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 73 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT 73 + + col0 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT - col0 * + col2 - col0 * cor0.col2 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT + + col0 * + cor0.col0 + 42 FROM tab0 AS cor0
----
1267
618
7963

onlyif mysql # use DIV operator for integer division
query I rowsort label-6549
SELECT - col1 DIV col1 col2 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6549
SELECT - col1 / col1 col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - + col0 + 93 * + col0 FROM tab1 AS cor0
----
276
5888
7360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 49 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT col0 * 19 + 81 * - tab1.col0 AS col0 FROM tab1
----
-186
-3968
-4960

query I rowsort
SELECT col2 + + tab2.col0 * col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL + ( + 10 ) * + tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to bd64178446955b7a7e2185b2e9f87b8e

query I rowsort
SELECT DISTINCT col1 + 64 FROM tab2
----
123
81
95

query I rowsort
SELECT DISTINCT + col1 * col1 + 98 AS col2 FROM tab2 AS cor0
----
1059
3579
387

onlyif mysql # use DIV operator for integer division
query I rowsort label-6557
SELECT - col0 DIV 54 - col1 * col2 FROM tab1 AS cor0
----
-1249
-1404
-571

skipif mysql # not compatible
query I rowsort label-6557
SELECT - col0 / 54 - col1 * col2 FROM tab1 AS cor0
----
-1249
-1404
-571

query I rowsort
SELECT DISTINCT - + col0 * + ( - col2 * col0 ) + col0 AS col0 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT - - col2 * + 15 - + col0 * - col1 FROM tab1 AS cor0
----
1495
2480
888

query I rowsort
SELECT - col2 + col1 + - col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL ( 25 ) + - col2 FROM tab0
----
-57
-8
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6562
SELECT ALL 82 DIV cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL 82 / cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3294894d5691618c467f11d859a940f4

query I rowsort
SELECT + 2 FROM tab2, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT col2 + - cor0.col2 * + col1 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - - col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6566
SELECT ALL - - cor0.col2 * + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - - cor0.col2 * + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6567
SELECT ALL - 34 * col0 * + CAST( 7 AS SIGNED ) FROM tab1 AS cor0
----
-15232
-19040
-714

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL - 34 * col0 * + CAST ( 7 AS INTEGER ) FROM tab1 AS cor0
----
-15232
-19040
-714

onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT DISTINCT - + 57 + - col2 * 32 DIV col2 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-6568
SELECT DISTINCT - + 57 + - col2 * 32 / col2 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab1, tab0, tab2 AS cor0
----
21

query I rowsort
SELECT ALL + col0 + col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL 91 * + cor0.col1 + 11 FROM tab2 AS cor0
----
1558
2832
5380

query I rowsort
SELECT DISTINCT - + 30 * col1 FROM tab1 AS cor0
----
-300
-390
-780

query I rowsort
SELECT DISTINCT col1 * col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT 21 * col0 FROM tab2 cor0
----
147
1638
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT DISTINCT + - cor0.col0 * cor0.col0 DIV col1 col2 FROM tab2 AS cor0
----
-1
-103
-367

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT + - cor0.col0 * cor0.col0 / col1 col2 FROM tab2 AS cor0
----
-1
-103
-367

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6576
SELECT CAST( NULL AS DECIMAL ) / 55 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT CAST ( NULL AS REAL ) / 55 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + 84 + col0 * - col0 FROM tab2 cor0
----
-6000
-6157
35

query I rowsort
SELECT - col1 + + col2 * - col0 * 29 FROM tab1 AS cor0
----
-105802
-222733
-4724

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( ( + col1 ) AS REAL ) * - 48 col0 FROM tab1 cor0
----
-1248
-480
-624

query I rowsort
SELECT ALL + 95 + - col0 AS col1 FROM tab2 AS cor0
----
16
17
88

query I rowsort
SELECT - col1 * + cor0.col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - col0 + 10 * col2 AS col1 FROM tab1 AS cor0
----
506
537
880

query I rowsort
SELECT col2 + col0 * col1 + col2 * ( - col2 ) AS col2 FROM tab0
----
1008
1457
3395

query I rowsort
SELECT DISTINCT + tab0.col2 + + col2 - - tab0.col1 * + ( + tab0.col1 ) * + col0 FROM tab0
----
177570
329317
737173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6587
SELECT + + ( + col1 ) * CAST( + cor0.col2 * col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
119808
32490
75816

skipif mysql # not compatible
query I rowsort label-6587
SELECT + + ( + col1 ) * CAST ( + cor0.col2 * col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - col1 + col2 - ( + col0 * cor0.col0 ) FROM tab2 AS cor0
----
-53
-6117
-6220

query I rowsort
SELECT DISTINCT - 53 * - col2 + col2 FROM tab1
----
2916
3078
5184

query I rowsort
SELECT ALL - col0 + + 50 * + col1 FROM tab2
----
1543
2872
771

query I rowsort
SELECT ALL + ( 55 ) + + tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to d73260ae17bcc4d521f922a107203c50

query I rowsort
SELECT ALL - + tab2.col0 * 64 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to fb5ca59b6a02817b88190797e2fe22e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6593
SELECT DISTINCT - col2 * - CAST( + 50 AS SIGNED ) + - col2 col2 FROM tab1 AS cor0
----
2646
2793
4704

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT - col2 * - CAST ( + 50 AS INTEGER ) + - col2 col2 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT + - col2 * - 21 + col0 * col2 AS col0 FROM tab1 cor0
----
1296
4845
9696

query I rowsort
SELECT DISTINCT + col0 * col2 + 50 FROM tab2 AS cor0
----
2078
239
3052

query I rowsort
SELECT + col2 + - 85 FROM tab2 cor0
----
-47
-58
-59

query I rowsort
SELECT ALL + col1 * 33 AS col2 FROM tab1 AS cor0
----
330
429
858

query I rowsort
SELECT DISTINCT - cor0.col1 + - 3 * col1 AS col0 FROM tab1 AS cor0
----
-104
-40
-52

query I rowsort
SELECT ALL col2 + ( + col2 ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + col0 * 32 AS col1 FROM tab0 cor0
----
1120
2848
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6601
SELECT ALL + col1 * CAST( NULL AS SIGNED ) 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-6601
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 88 FROM tab1 cor0
----
101
114
98

query I rowsort
SELECT - + col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT ALL - col1 + - col2 DIV - 56 + col1 DIV + col0 AS col1 FROM tab0
----
-83
-89
-95

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL - col1 + - col2 / - 56 + col1 / + col0 AS col1 FROM tab0
----
-83
-89
-95

query I rowsort
SELECT + col1 * col1 * + col2 + - col2 AS col1 FROM tab0
----
244035
678960
9408

query I rowsort
SELECT ALL - col2 * + 67 FROM tab0
----
-2211
-5494
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT + + col1 DIV CAST( cor0.col2 + col0 AS SIGNED ) FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6607
SELECT + + col1 / CAST ( cor0.col2 + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT + col2 + col1 * - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT ALL - col2 * 21 + + col2 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT DISTINCT - col0 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT col2 * 58 DIV + 34 AS col0 FROM tab0 AS cor0
----
1
139
56

skipif mysql # not compatible
query I rowsort label-6611
SELECT col2 * 58 / + 34 AS col0 FROM tab0 AS cor0
----
1
139
56

query I rowsort
SELECT ALL - col0 * 36 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT col1 + - 88 FROM tab0
----
-2
3
9

query I rowsort
SELECT col1 + 58 FROM tab0
----
144
149
155

query I rowsort
SELECT ALL - - col2 + 66 * + ( + col1 ) AS col0 FROM tab1 AS cor0
----
1770
717
954

query I rowsort
SELECT + ( 17 ) FROM tab2
----
17
17
17

query I rowsort
SELECT DISTINCT 25 + col1 FROM tab1 AS cor0
----
35
38
51

query I rowsort
SELECT + 75 * col0 FROM tab2 AS cor0
----
525
5850
5925

onlyif mysql # use DIV operator for integer division
query I rowsort label-6619
SELECT + 16 DIV 42 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6619
SELECT + 16 / 42 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - 38 FROM tab0 cor0
----
-1254
-3116
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT - 84 DIV - col0 AS col0 FROM tab2
----
1
1
12

skipif mysql # not compatible
query I rowsort label-6621
SELECT - 84 / - col0 AS col0 FROM tab2
----
1
1
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT DISTINCT - 97 DIV - 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT - 97 / - 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 + - cor0.col0 col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * 62 AS col0 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT col0 + + col0 * - tab2.col1 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-6626
SELECT DISTINCT + col1 * - col0 - - col1 DIV col0 FROM tab2 AS cor0
----
-1343
-213
-4602

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT + col1 * - col0 - - col1 / col0 FROM tab2 AS cor0
----
-1343
-213
-4602

query I rowsort
SELECT col2 + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + col2 - + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - ( col0 ) * col1 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col0 + + cor0.col1 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL + - col1 * col2 + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + 82 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2834
-3167
-9134

query I rowsort
SELECT ALL - 94 FROM tab0 cor0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * col1 col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + - col0 + 40 * col0 * col0 FROM tab2 cor0
----
1953
243282
249561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * - tab0.col1 col2 FROM tab0
----
-1204
-1274
-1358

query I rowsort
SELECT DISTINCT - 13 + + tab2.col0 FROM tab2
----
-6
65
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6638
SELECT + 41 * + col2 DIV + col2 AS col0 FROM tab0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-6638
SELECT + 41 * + col2 / + col2 AS col0 FROM tab0
----
41
41
41

query I rowsort
SELECT + 9 * + tab0.col1 AS col2 FROM tab0
----
774
819
873

query I rowsort
SELECT ALL ( - col2 ) * - col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - + 80 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-158
-159
-87

query I rowsort
SELECT 19 + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1362
236
4621

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6643
SELECT col0 / col0 - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6643
SELECT col0 / col0 - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 27 - cor0.col0 FROM tab0 AS cor0
----
-116
-51
-62

query I rowsort
SELECT + col1 * - 83 FROM tab2
----
-1411
-2573
-4897

onlyif mysql # use DIV operator for integer division
query I rowsort label-6646
SELECT - col0 DIV - 77 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6646
SELECT - col0 / - 77 AS col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - col0 * ( col0 ) FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT col2 * col0 + + 85 FROM tab1
----
247
3733
7765

onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT ALL tab0.col2 DIV + 49 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL tab0.col2 / + 49 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT 3 * - col2 * - col2 AS col1 FROM tab1 AS cor0
----
27648
8748
9747

query I rowsort
SELECT ALL - col0 * + 74 FROM tab1
----
-222
-4736
-5920

query I rowsort
SELECT ALL + 57 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT + cor0.col1 + 42 * - col1 + 44 * col2 AS col1 FROM tab1 AS cor0
----
1310
2098
3691

query I rowsort
SELECT DISTINCT col2 + 50 AS col0 FROM tab1 AS cor0
----
104
107
146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6655
SELECT ALL - + CAST( - col0 AS SIGNED ) * col1 AS col2 FROM tab1 cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - + CAST ( - col0 AS INTEGER ) * col1 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + 38 FROM tab0, tab2 AS cor0
----
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6658
SELECT ALL - ( cor0.col2 ) DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL - ( cor0.col2 ) / col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6659
SELECT ALL - tab1.col0 DIV + col1 AS col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL - tab1.col0 / + col1 AS col1 FROM tab1
----
-6
-6
0

query I rowsort
SELECT ( + 43 ) - + tab0.col2 FROM tab0
----
-39
10
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT DISTINCT 85 * col2 DIV col2 AS col0 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT 85 * col2 / col2 AS col0 FROM tab0
----
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT CAST( NULL AS SIGNED ) - tab0.col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6662
SELECT CAST ( NULL AS INTEGER ) - tab0.col0 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - col1 * - col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - 91 AS col1 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT ALL 50 DIV col0 FROM tab1
----
0
0
16

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL 50 / col0 FROM tab1
----
0
0
16

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab2
----
11

query I rowsort
SELECT ALL col0 * - ( col0 + 0 ) AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + 12 + - cor0.col1 * col0 FROM tab1 AS cor0
----
-1028
-628
-66

query I rowsort
SELECT + col2 + tab0.col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - cor0.col0 + 79 FROM tab0 cor0
----
-10
44
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 * 93 + - col0 col2 FROM tab2 AS cor0
----
-142740
-60157
-77848

query I rowsort
SELECT DISTINCT - + col2 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT ALL - + col0 + ( - col1 ) * cor0.col2 DIV - 69 AS col2 FROM tab1 AS cor0
----
-56
-62
17

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - + col0 + ( - col1 ) * cor0.col2 / - 69 AS col2 FROM tab1 AS cor0
----
-56
-62
17

query I rowsort
SELECT - - col2 + 54 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT - tab0.col2 * col1 AS col2 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 - - ( - col0 ) * - col0 col2 FROM tab1
----
32
4042
6333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - tab1.col1 * + 98 * 57 col0 FROM tab1
----
-145262
-55870
-72631

query I rowsort
SELECT + col2 * 45 + col2 AS col2 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT col0 * ( - col0 * - col2 ) AS col1 FROM tab1 AS cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + + tab2.col2 col2 FROM tab2
----
102
103
114

query I rowsort
SELECT ALL + 4 AS col0 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT ALL 15 * col1 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT + ( tab2.col2 + + tab2.col1 ) FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT DISTINCT + col2 DIV col1 + col0 FROM tab1 cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT + col2 / col1 + col0 FROM tab1 cor0
----
5
69
87

query I rowsort
SELECT ALL col1 + - col0 AS col1 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6687
SELECT DISTINCT + col2 * col2 DIV - col1 FROM tab0 AS cor0
----
-12
-73
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT + col2 * col2 / - col1 FROM tab0 AS cor0
----
-12
-73
0

query I rowsort
SELECT ALL col1 * + 10 FROM tab2 AS cor0
----
170
310
590

skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col0 + + CAST ( - col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - - col0 * 52 AS col1 FROM tab1 AS cor0
----
156
3328
4160

onlyif mysql # use DIV operator for integer division
query I rowsort label-6691
SELECT DISTINCT + + col2 DIV col1 - - cor0.col0 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
-106095
-1519
-358956

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT + + col2 / col1 - - cor0.col0 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
-106095
-1519
-358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6692
SELECT DISTINCT + cor0.col2 * CAST( + col2 AS SIGNED ) - col2 * ( ( + col0 ) ) FROM tab0 AS cor0
----
-34
-574
297

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT + cor0.col2 * CAST ( + col2 AS INTEGER ) - col2 * ( ( + col0 ) ) FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT - col1 * ( 84 * col1 ) AS col1 FROM tab2 AS cor0
----
-24276
-292404
-80724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6694
SELECT ALL - col1 * + CAST( + 20 AS SIGNED ) + + col2 AS col2 FROM tab0 cor0
----
-1687
-1738
-1939

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL - col1 * + CAST ( + 20 AS INTEGER ) + + col2 AS col2 FROM tab0 cor0
----
-1687
-1738
-1939

query I rowsort
SELECT ALL col1 * - col2 * 27 FROM tab0
----
-201474
-2619
-76626

query I rowsort
SELECT - 90 + col0 * col0 * + ( col1 ) FROM tab1
----
144
40870
83110

query I rowsort
SELECT DISTINCT - - cor0.col1 FROM tab2, tab1, tab0 cor0, tab0
----
86
91
97

query I rowsort
SELECT ALL 46 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT DISTINCT cor0.col0 + - col1 * - col0 * 10 FROM tab1 AS cor0
----
10480
6464
783

query I rowsort
SELECT DISTINCT col2 * + 78 FROM tab1 AS cor0
----
4212
4446
7488

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6701
SELECT + CAST( col0 AS SIGNED ) * + col0 + - 87 FROM tab1 AS cor0
----
-78
4009
6313

skipif mysql # not compatible
query I rowsort label-6701
SELECT + CAST ( col0 AS INTEGER ) * + col0 + - 87 FROM tab1 AS cor0
----
-78
4009
6313

query I rowsort
SELECT DISTINCT + 21 * col0 AS col2 FROM tab2 AS cor0
----
147
1638
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT DISTINCT col1 * ( col2 ) DIV - ( col1 ) col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT col1 * ( col2 ) / - ( col1 ) col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6704
SELECT + 93 + - 7 DIV col0 + 83 FROM tab1 AS cor0
----
174
176
176

skipif mysql # not compatible
query I rowsort label-6704
SELECT + 93 + - 7 / col0 + 83 FROM tab1 AS cor0
----
174
176
176

query I rowsort
SELECT + - ( - cor0.col2 ) + col1 * + ( cor0.col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
2183
3493
8272

query I rowsort
SELECT DISTINCT - + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + col1 + + col1 + col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT + cor0.col1 * - ( - col1 ) FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT tab1.col1 * col1 - + 13 * - col0 FROM tab1
----
1209
715
932

query I rowsort
SELECT DISTINCT col0 + + tab2.col0 * col2 - - col2 * - col1 FROM tab2
----
-641
2435
572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 - + col0 * tab2.col0 col2 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT + col2 + cor0.col2 * + col0 + col0 FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT DISTINCT ( col0 ) + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - + 41 * + col2 + cor0.col1 FROM tab2 AS cor0
----
-1007
-1076
-1541

query I rowsort
SELECT DISTINCT + - 43 AS col2 FROM tab1 cor0
----
-43

query I rowsort
SELECT DISTINCT - + 72 * + col1 AS col0 FROM tab0 AS cor0
----
-6192
-6552
-6984

onlyif mysql # use DIV operator for integer division
query I rowsort label-6717
SELECT ALL + + ( col1 ) DIV + col0 col2 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL + + ( col1 ) / + col0 col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - col2 + 52 * col2 FROM tab2
----
1326
1377
1938

onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT DISTINCT + tab0.col0 + + col0 DIV - col2 + + ( col0 * col0 ) FROM tab0
----
1225
600
8009

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT + tab0.col0 + + col0 / - col2 + + ( col0 * col0 ) FROM tab0
----
1225
600
8009

query I rowsort
SELECT - col1 * col1 - col0 * - col1 FROM tab2
----
-744
1054
1121

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - ( - col2 ) AS REAL ) / ( - col2 ) + + col1 + 94 FROM tab0 AS cor0
----
179
184
190

query I rowsort
SELECT ALL 74 * + col2 * tab1.col1 + - col2 + + tab1.col1 AS col0 FROM tab1
----
103868
42133
92269

onlyif mysql # use DIV operator for integer division
query I rowsort label-6723
SELECT col1 DIV + col0 + + cor0.col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-6723
SELECT col1 / + col0 + + cor0.col0 FROM tab0 AS cor0
----
27
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6725
SELECT - 21 * col1 + + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT - 21 * col1 + + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6726
SELECT CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6726
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT ALL - col0 DIV tab1.col2 + col0 AS col0 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL - col0 / tab1.col2 + col0 AS col0 FROM tab1
----
3
63
80

query I rowsort
SELECT DISTINCT ( - 49 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT - col2 DIV col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6730
SELECT - col2 / col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col1 + col0 + + 45 FROM tab0 AS cor0
----
155
177
225

query I rowsort
SELECT - + col0 * cor0.col2 + col2 + col1 * col2 AS col1 FROM tab0 AS cor0
----
2079
246
63

skipif mysql # not compatible
query I rowsort
SELECT + - ( + col0 ) + CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - + 85 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT col0 + - 96 * - col0 FROM tab2
----
679
7566
7663

query I rowsort
SELECT ALL cor0.col0 + 38 * 50 FROM tab2 AS cor0
----
1907
1978
1979

query I rowsort
SELECT ALL - col2 * 28 - col2 FROM tab2 AS cor0
----
-1102
-754
-783

query I rowsort
SELECT ALL - - col2 + + 39 AS col2 FROM tab0 cor0
----
121
40
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6740
SELECT DISTINCT - + col2 + CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT - + col2 + CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col2 + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + col0 * col0 col0 FROM tab0 AS cor0
----
1197
548
7893

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-6745
SELECT ALL 0 * + col0 + col1 - + CAST( col1 AS SIGNED ) DIV - col2 AS col2 FROM tab0 cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL 0 * + col0 + col1 - + CAST ( col1 AS INTEGER ) / - col2 AS col2 FROM tab0 cor0
----
194
88
92

query I rowsort
SELECT + col0 - - ( cor0.col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT ( col1 ) * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT - ( 7 ) FROM tab2
----
-7

query I rowsort
SELECT - ( - 36 ) * col0 FROM tab1
----
108
2304
2880

query I rowsort
SELECT + 74 * 64 AS col1 FROM tab1
----
4736
4736
4736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6751
SELECT ALL + - CAST( NULL AS SIGNED ) + + 4 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 4 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 + + 27 * col1 FROM tab0 AS cor0
----
2236
2366
2522

onlyif mysql # use DIV operator for integer division
query I rowsort label-6753
SELECT 11 + cor0.col0 DIV col1 - - col1 FROM tab1 AS cor0
----
27
30
37

skipif mysql # not compatible
query I rowsort label-6753
SELECT 11 + cor0.col0 / col1 - - col1 FROM tab1 AS cor0
----
27
30
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 63 + + col0 col1 FROM tab0 AS cor0
----
-28
-39
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + ( col1 ) + + col0 col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT - cor0.col0 * - 37 * + col1 FROM tab2 AS cor0
----
170274
49691
8029

query I rowsort
SELECT ALL - col1 + 46 * 55 * col2 + - col2 AS col1 FROM tab2 cor0
----
65695
68252
96085

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL + col2 * + col2 * col0 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - - col2 * 94 AS col2 FROM tab0 AS cor0
----
3102
7708
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + - col2 col1 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT ALL col0 * col0 DIV - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-66
-71
0

skipif mysql # not compatible
query I rowsort label-6762
SELECT ALL col0 * col0 / - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-66
-71
0

query I rowsort
SELECT DISTINCT + ( col0 ) * 32 FROM tab1
----
2048
2560
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6764
SELECT ALL tab1.col1 DIV col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL tab1.col1 / col1 AS col1 FROM tab1
----
1
1
1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0, tab0 cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf

query I rowsort
SELECT + - col2 * ( - col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 * + ( - col2 * - col1 ) AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + col1 * 93 AS col2 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT 40 * col2 FROM tab0
----
1320
3280
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-6771
SELECT - - ( + 77 ) DIV - col1 + - cor0.col2 AS col0 FROM tab1 cor0
----
-101
-56
-64

skipif mysql # not compatible
query I rowsort label-6771
SELECT - - ( + 77 ) / - col1 + - cor0.col2 AS col0 FROM tab1 cor0
----
-101
-56
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT + 54 + - 9 DIV col0 FROM tab0 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-6772
SELECT + 54 + - 9 / col0 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT + ( 48 ) + - col2 FROM tab0 AS cor0
----
-34
15
47

query I rowsort
SELECT ( col1 ) * - col1 + ( - col1 ) * + col1 FROM tab0
----
-14792
-16562
-18818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) * col1 + - ( col2 ) col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT - + col0 + col0 DIV cor0.col1 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-6776
SELECT - + col0 + col0 / cor0.col1 FROM tab2 AS cor0
----
-7
-75
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6777
SELECT - 15 DIV - col1 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6777
SELECT - 15 / - col1 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT - col2 + col1 DIV - tab0.col1 AS col2 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-6778
SELECT - col2 + col1 / - tab0.col1 AS col2 FROM tab0
----
-2
-34
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT col2 DIV - col2 + - col0 AS col1 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6779
SELECT col2 / - col2 + - col0 AS col1 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
54
57
96

query I rowsort
SELECT DISTINCT - col1 * + col0 + - col0 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL cor0.col2 + + col1 + - cor0.col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - + cor0.col0 * + col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col2 + + col1 * - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL cor0.col2 * - col2 * col1 - - col0 AS col1 FROM tab0 AS cor0
----
-611795
-62
-93630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6786
SELECT - col1 * col1 DIV col1 + + cor0.col0 * col2 * + cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-6786
SELECT - col1 * col1 / col1 + + cor0.col0 * col2 * + cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT ALL cor0.col0 DIV + col2 + col1 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-6788
SELECT ALL cor0.col0 / + col2 + col1 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT DISTINCT + + 7 FROM tab0 cor0
----
7

query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT ALL col0 * col1 + col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6792
SELECT DISTINCT + col2 DIV - col2 + col0 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-10
33
6

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT + col2 / - col2 + col0 - cor0.col2 AS col0 FROM tab0 AS cor0
----
-10
33
6

query I rowsort
SELECT DISTINCT - - col2 * + col0 AS col0 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6794
SELECT DISTINCT - col1 * + col1 + - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-101
-170
-677

skipif mysql # not compatible
query I rowsort label-6794
SELECT DISTINCT - col1 * + col1 + - col1 / col1 AS col1 FROM tab1 AS cor0
----
-101
-170
-677

query I rowsort
SELECT ALL col0 + tab1.col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL col0 * + col0 + - col1 * col1 + + col2 FROM tab1 AS cor0
----
-613
4053
6327

onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT + ( + col0 ) DIV col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6797
SELECT + ( + col0 ) / col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6798
SELECT - CAST( NULL AS SIGNED ) + + col2 - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6798
SELECT - CAST ( NULL AS INTEGER ) + + col2 - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6799
SELECT ALL - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 25 * col2 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT ALL + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 80 ) + cor0.col0 * - col2 * col2 col0 FROM tab2 AS cor0
----
-114156
-5183
-52808

query I rowsort
SELECT col0 * 56 - + col0 * col1 FROM tab2 AS cor0
----
-234
175
3081

query I rowsort
SELECT DISTINCT - col1 * 21 AS col1 FROM tab0 AS cor0
----
-1806
-1911
-2037

query I rowsort
SELECT DISTINCT - 14 AS col2 FROM tab1
----
-14

query I rowsort
SELECT + - 75 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT ALL + 0 * 65 + col0 + tab1.col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL col1 + col2 * - col2 * col1 FROM tab2
----
-22568
-24531
-39825

query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab1, tab0 cor0
----
34

query I rowsort
SELECT DISTINCT + 84 * + 45 + col1 - col2 AS col2 FROM tab2
----
3759
3784
3813

query I rowsort
SELECT - col2 - - tab2.col0 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * - col0 col0 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * + col1 * tab0.col0 col2 FROM tab0
----
118860
49560
720900

query I rowsort
SELECT - col2 * 33 AS col0 FROM tab2
----
-1254
-858
-891

query I rowsort
SELECT ( - col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - 82 * - 23 FROM tab2
----
1886

query I rowsort
SELECT DISTINCT - 30 * 23 AS col2 FROM tab0
----
-690

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + col0 + col2 * col2 FROM tab1 cor0
----
2919
3313
9296

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT col0 + + ( col1 ) * 23 FROM tab2 AS cor0
----
1435
470
720

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab1 AS cor0
----
-15

query I rowsort
SELECT ALL col1 * + tab0.col2 + - col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + tab2.col0 + + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - 46 + - col1 * - col1 * col2 AS col0 FROM tab0
----
244022
678996
9363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 + tab1.col0 col2 FROM tab1
----
-20
118
147

query I rowsort
SELECT 93 * - col1 FROM tab0
----
-7998
-8463
-9021

query I rowsort
SELECT ALL - col1 + + col0 * + ( col1 ) AS col2 FROM tab0 cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT DISTINCT col1 DIV col0 - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT col1 / col0 - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT ALL + col2 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6831
SELECT ALL cor0.col1 * cor0.col1 + 83 + 28 DIV col2 FROM tab0 AS cor0
----
7479
8364
9520

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL cor0.col1 * cor0.col1 + 83 + 28 / col2 FROM tab0 AS cor0
----
7479
8364
9520

query I rowsort
SELECT ALL - col2 + col1 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col0 + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - col1 * ( 53 * col2 ) + ( + col2 ) - col0 * + col0 FROM tab2 AS cor0
----
-40441
-44383
-87360

query I rowsort
SELECT col2 * ( 35 ) + - col0 AS col0 FROM tab1 cor0
----
1887
1931
3280

query I rowsort
SELECT + col0 * ( - 57 ) + - col0 FROM tab0 cor0
----
-1392
-2030
-5162

query I rowsort
SELECT DISTINCT cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - cor0.col0 - + cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL col2 * col1 + col0 * col1 * col1 FROM tab2 AS cor0
----
23477
273052
7564

onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT DISTINCT + col1 * col2 + col2 DIV col1 col2 FROM tab2 AS cor0
----
1534
648
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT + col1 * col2 + col2 / col1 col2 FROM tab2 AS cor0
----
1534
648
837

query I rowsort
SELECT col0 + col2 * + 46 AS col2 FROM tab0 AS cor0
----
1542
3861
81

query I rowsort
SELECT ALL - + col1 * + col0 + - 91 AS col0 FROM tab1 AS cor0
----
-1131
-169
-731

query I rowsort
SELECT + col1 + - 62 FROM tab1 AS cor0
----
-36
-49
-52

query I rowsort
SELECT DISTINCT col0 * + col1 - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6847
SELECT + + col0 + CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-6847
SELECT + + col0 + CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col1 - + col1 AS col1 FROM tab1
----
0

query I rowsort
SELECT col2 - tab1.col0 * + tab1.col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT tab0.col2 * + col0 + col2 * tab0.col1 + col0 * - 42 AS col1 FROM tab0
----
-1338
11022
2622

query I rowsort
SELECT DISTINCT + col1 + col2 * cor0.col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6852
SELECT DISTINCT cor0.col0 + col2 DIV - 83 + + col2 * - col1 FROM tab1 AS cor0
----
-1169
-1401
-506

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT cor0.col0 + col2 / - 83 + + col2 * - col1 FROM tab1 AS cor0
----
-1169
-1401
-506

query I rowsort
SELECT col0 * - 66 + + col1 + - col2 FROM tab1 AS cor0
----
-226
-4271
-5363

query I rowsort
SELECT - cor0.col2 + col0 * ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT col0 * - ( - col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - + cor0.col2 - col0 * col1 * col0 FROM tab0 cor0
----
-118826
-49569
-720893

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6857
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT + CAST ( NULL AS REAL ) + cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT + col1 * ( + col0 ) * + col2 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT tab0.col0 * + 82 FROM tab0
----
1968
2870
7298

query I rowsort
SELECT - - col0 * - col0 - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT - + cor0.col1 * 7 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1325
263
512

query I rowsort
SELECT - - col0 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6863
SELECT + ( col1 ) + col1 DIV - 7 AS col2 FROM tab0 AS cor0
----
74
78
84

skipif mysql # not compatible
query I rowsort label-6863
SELECT + ( col1 ) + col1 / - 7 AS col2 FROM tab0 AS cor0
----
74
78
84

query I rowsort
SELECT ( col2 ) * + col2 - ( 41 * + col1 ) AS col1 FROM tab1 AS cor0
----
1850
2839
8683

query I rowsort
SELECT - + col1 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - - col0 * - cor0.col2 + col1 * + 41 AS col1 FROM tab0 AS cor0
----
-3567
2734
3942

query I rowsort
SELECT DISTINCT - + 95 * - col0 AS col2 FROM tab0 AS cor0
----
2280
3325
8455

onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT ALL - cor0.col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL - cor0.col0 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * - col2 col2 FROM tab2 AS cor0
----
-1664
-1728
-2432

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab1 AS cor0
----
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT ( 44 ) + - col0 DIV + tab2.col0 AS col0 FROM tab2
----
43
43
43

skipif mysql # not compatible
query I rowsort label-6871
SELECT ( 44 ) + - col0 / + tab2.col0 AS col0 FROM tab2
----
43
43
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6872
SELECT + CAST( - col2 + col2 * + 72 AS SIGNED ) FROM tab2
----
1846
1917
2698

skipif mysql # not compatible
query I rowsort label-6872
SELECT + CAST ( - col2 + col2 * + 72 AS INTEGER ) FROM tab2
----
1846
1917
2698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 + col2 col1 FROM tab1
----
123
126
165

query I rowsort
SELECT 76 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT + 48 + col2 FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT - - 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT + 62 * + col0 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT + + col0 * + col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col1 + ( + col2 ) col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col0 * col2 + 34 AS col1 FROM tab1 AS cor0
----
196
3682
7714

query I rowsort
SELECT ALL - + ( - col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + col0 + + col2 * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - cor0.col2 * tab2.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
9 values hashing to a3b44b1349b97a64e1970dbe00e8d983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - 2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6887
SELECT CAST( + col0 + - col2 AS SIGNED ) * + 97 AS col1 FROM tab1
----
-1552
-4947
679

skipif mysql # not compatible
query I rowsort label-6887
SELECT CAST ( + col0 + - col2 AS INTEGER ) * + 97 AS col1 FROM tab1
----
-1552
-4947
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-6888
SELECT DISTINCT col0 DIV + col0 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6888
SELECT DISTINCT col0 / + col0 AS col1 FROM tab1
----
1

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 DISTINCT 30 - tab2.col0 FROM tab2, tab0 AS cor0
----
-48
-49
23

query I rowsort
SELECT 26 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT ALL - ( col1 ) * - col0 * + ( - col1 ) - col0 AS col1 FROM tab0
----
-177528
-329350
-737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 col2 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT ALL - 33 * + col0 * col1 AS col1 FROM tab0 AS cor0
----
-112035
-267267
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT DISTINCT - col1 DIV + col1 AS col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT - col1 / + col1 AS col1 FROM tab1 cor0
----
-1

query I rowsort
SELECT col1 + - col1 * 35 AS col2 FROM tab0
----
-2924
-3094
-3298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6897
SELECT col1 * - tab0.col2 + CAST( NULL AS SIGNED ) / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT col1 * - tab0.col2 + CAST ( NULL AS INTEGER ) / col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - + 11 + + cor0.col0 * 85 AS col0 FROM tab1 AS cor0
----
244
5429
6789

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT ALL - 8 + + col1 * col2 FROM tab1 cor0
----
1240
1396
562

query I rowsort
SELECT col2 * + col1 + 49 FROM tab1 AS cor0
----
1297
1453
619

query I rowsort
SELECT col2 * + 7 FROM tab2 AS cor0
----
182
189
266

onlyif mysql # use DIV operator for integer division
query I rowsort label-6904
SELECT - - col0 + cor0.col2 DIV col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6904
SELECT - - col0 + cor0.col2 / col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT col2 + 88 * col0 FROM tab0 AS cor0
----
2145
3081
7914

query I rowsort
SELECT DISTINCT + ( + col1 ) + col0 * - 21 AS col1 FROM tab0 AS cor0
----
-1778
-418
-638

query I rowsort
SELECT + + 28 * col0 - col1 FROM tab2 AS cor0
----
165
2125
2195

query I rowsort
SELECT ALL ( 17 ) + + col0 AS col1 FROM tab0 cor0
----
106
41
52

query I rowsort
SELECT DISTINCT + 54 - + col2 AS col0 FROM tab1 AS cor0
----
-3
-42
0

query I rowsort
SELECT + + 5 - col2 AS col0 FROM tab0 AS cor0
----
-28
-77
4

query I rowsort
SELECT ALL - 55 + col2 AS col0 FROM tab2 AS cor0
----
-17
-28
-29

query I rowsort
SELECT - - 8 + 42 AS col1 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT - col1 * col1 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6914
SELECT ALL CAST( NULL AS SIGNED ) + 30 / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL CAST ( NULL AS INTEGER ) + 30 / col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 + + 49 * col0 - + cor0.col2 FROM tab0 AS cor0
----
1176
1715
4361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + 11 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab1, tab2 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT DISTINCT - - col2 DIV - col2 + + cor0.col2 FROM tab0 cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - - col2 / - col2 + + cor0.col2 FROM tab0 cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT ALL tab1.col0 DIV + col2 - col0 FROM tab1
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-6919
SELECT ALL tab1.col0 / + col2 - col0 FROM tab1
----
-3
-63
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT ALL + cor0.col2 * col1 DIV cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL + cor0.col2 * col1 / cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( tab1.col1 * col0 )
----

query I rowsort
SELECT - col1 * col0 + + col2 + tab0.col2 * col0 FROM tab0
----
-1239
-3359
-719

query I rowsort
SELECT col1 * col0 * + tab0.col1 FROM tab0
----
177504
329315
737009

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col2 / + col0 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 - col1 col0 FROM tab0
----
-194
-2924
-7553

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 + + col1 + - col2 NOT BETWEEN col1 - col2 AND NULL
----

query I rowsort
SELECT + col2 + col1 * - tab0.col0 + - col1 AS col0 FROM tab0
----
-2117
-3491
-8108

query I rowsort
SELECT DISTINCT + col1 * col0 * col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE NULL NOT IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT + col1 * col1 + col1 * + col0 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT cor0.col1 * - col2 - + col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 * col1 ) IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - col2 col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col2 * col1 + col1 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col1 + col2 + col0 * col2 FROM tab1 AS cor0
----
242
3715
7789

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( NULL ) AND NOT + col0 NOT IN ( + col2 )
----

query I rowsort
SELECT + col0 * + col0 + + col1 * - col0 FROM tab0
----
-1488
-178
-2170

onlyif mysql # use DIV operator for integer division
query I rowsort label-6940
SELECT DISTINCT - - cor0.col1 DIV col1 AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT - - cor0.col1 / col1 AS col1 FROM tab2 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 + + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - cor0.col1 + col1 col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - + col1 * - col0 + - col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 - + col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - col2 * - cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= ( col1 )
----

query I rowsort
SELECT DISTINCT col2 + - col0 * col0 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT col2 * - col1 * col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT - col0 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT DISTINCT col2 + + col1 * + cor0.col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT + + col2 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
1
1
1

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

query I rowsort
SELECT DISTINCT col2 + - col0 + col1 AS col1 FROM tab0 cor0
----
63
84
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6954
SELECT DISTINCT - + col2 + + col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT - + col2 + + col2 / - col0 AS col2 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT ALL col1 * col0 + + ( + col1 ) FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab2
----
67

query I rowsort
SELECT - col0 + 82 AS col1 FROM tab0 AS cor0
----
-7
47
58

query I rowsort
SELECT - col0 * col1 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 9 * - ( + col0 ) col1 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT DISTINCT - cor0.col2 + col2 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - cor0.col2 * - 89 - 25 * col0 AS col0 FROM tab1 cor0
----
-10544
-4881
-6673

onlyif mysql # use DIV operator for integer division
query I rowsort label-6963
SELECT ( 11 ) DIV cor0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35ad941cb1878fb87082ac21ea8241

skipif mysql # not compatible
query I rowsort label-6963
SELECT ( 11 ) / cor0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35ad941cb1878fb87082ac21ea8241

query I rowsort
SELECT + col2 + cor0.col1 + 51 * - cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
-148636
-165632
-469907

query I rowsort
SELECT + col1 - + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT tab2.col1 - col1 * col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ALL + col1 - + col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 - col2 * - col2 * + tab1.col2 AS col0 FROM tab1
----
157467
185257
884816

query I rowsort
SELECT ALL + tab1.col2 * + col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - col1 + + col0 + + col0 AS col0 FROM tab2
----
-17
141
97

query I rowsort
SELECT + tab2.col2 * + col1 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6972
SELECT col0 + + col0 + col1 DIV col1 FROM tab2
----
15
157
159

skipif mysql # not compatible
query I rowsort label-6972
SELECT col0 + + col0 + col1 / col1 FROM tab2
----
15
157
159

query I rowsort
SELECT ALL + col0 * - col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 * - tab1.col1 * col0 AS col1 FROM tab1
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE col2 * col1 + - col0 * col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT ALL col1 + + col0 DIV tab1.col0 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL col1 + + col0 / tab1.col0 AS col2 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL + col0 - col0 * col2 AS col0 FROM tab0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col2 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - col2 + - col0 * col2 FROM tab0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col1 col1 FROM tab1
----
20
26
52

query I rowsort
SELECT + tab2.col1 + col1 AS col1 FROM tab2
----
118
34
62

query III rowsort
SELECT * FROM tab2 WHERE - col2 >= - col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * + col1 + + col2 col2 FROM tab2 WHERE NULL BETWEEN col0 + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 37 col2 FROM tab2
----
1406
962
999

onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT + col1 DIV + 95 + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6988
SELECT + col1 / + 95 + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + + CAST ( 54 AS REAL ) AS col0 FROM tab0
----
140
145
151

query I rowsort
SELECT ALL - col1 * 41 * col2 + col0 - 1 * col0 FROM tab1 AS cor0
----
-23370
-51168
-57564

query I rowsort
SELECT - col0 - + col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
33

query I rowsort
SELECT + ( col2 ) + col2 * - 15 FROM tab1 AS cor0
----
-1344
-756
-798

query I rowsort
SELECT DISTINCT + 54 * + col2 + col0 AS col1 FROM tab2 AS cor0
----
1465
1482
2131

query I rowsort
SELECT DISTINCT - ( + 63 ) + cor0.col0 + - 66 FROM tab1 cor0
----
-126
-49
-65

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) - - col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + ( col0 ) + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT col2 * - 67 AS col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6999
SELECT - CAST( - col0 AS SIGNED ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-6999
SELECT - CAST ( - col0 AS INTEGER ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 * col2 col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT ALL - col0 DIV - col1 + col2 * ( ( - col1 ) ) col1 FROM tab1 AS cor0
----
-1242
-1404
-564

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL - col0 / - col1 + col2 * ( ( - col1 ) ) col1 FROM tab1 AS cor0
----
-1242
-1404
-564

query I rowsort
SELECT DISTINCT + col0 + 31 FROM tab2 AS cor0
----
109
110
38

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col1 AS REAL ) - - col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + ( ( - col2 ) ) * 47 * + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-137049
-152639
-433072

query I rowsort
SELECT ( + 49 ) * - col0 AS col1 FROM tab0 cor0
----
-1176
-1715
-4361

query I rowsort
SELECT ALL - ( + col2 ) * col2 - 87 FROM tab0 AS cor0
----
-1176
-6811
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT DISTINCT col1 DIV + col2 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT col1 / + col2 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7008
SELECT - ( col0 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7008
SELECT - ( col0 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7009
SELECT - 26 + - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT - 26 + - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col1 * - col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - + col1 + - cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT - + 12 + col2 FROM tab0 AS cor0
----
-11
21
70

query I rowsort
SELECT DISTINCT + col1 * - col1 + col0 AS col2 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL 87 * + col1 FROM tab0
----
7482
7917
8439

query I rowsort
SELECT - col1 + cor0.col0 * ( + 74 ) AS col0 FROM tab2 AS cor0
----
487
5713
5829

query I rowsort
SELECT ALL col1 * - col2 - ( + col2 ) * col0 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT + col2 * 76 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT 86 + - tab2.col0 + col0 FROM tab2
----
86
86
86

query I rowsort
SELECT - col2 + - col0 - ( col0 ) AS col0 FROM tab0 AS cor0
----
-260
-71
-81

query I rowsort
SELECT DISTINCT + + cor0.col2 + + 26 + ( + col1 * col1 + 60 ) AS col2 FROM tab0 AS cor0
----
7515
8449
9496

onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT DISTINCT + + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT + + col1 / - col1 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + - col2 * - ( col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - cor0.col0 * col1 + - 31 FROM tab2 cor0
----
-1374
-248
-4633

onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT ALL col1 + cor0.col0 DIV 37 FROM tab1 AS cor0
----
11
15
26

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL col1 + cor0.col0 / 37 FROM tab1 AS cor0
----
11
15
26

query I rowsort
SELECT col2 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + col1 * + 41 AS col1 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT - 81 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT ALL 89 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab0.col2 * 27 + + tab0.col1 col2 FROM tab0
----
1001
159
2394

onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT ALL + + col2 + 21 DIV + 46 col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL + + col2 + 21 / + 46 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col0 - 56 AS col0 FROM tab0 AS cor0
----
-145
-80
-91

query I rowsort
SELECT - col1 * col1 + + 64 FROM tab0 AS cor0
----
-7332
-8217
-9345

query I rowsort
SELECT ALL - + cor0.col0 * 54 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT col1 * 69 FROM tab2
----
1173
2139
4071

query I rowsort
SELECT DISTINCT tab2.col2 + 60 AS col1 FROM tab2
----
86
87
98

query I rowsort
SELECT ALL - 59 * + col1 AS col0 FROM tab1 AS cor0
----
-1534
-590
-767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col2 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT + col2 * col2 AS col0 FROM tab1
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + - col2 col1 FROM tab2
----
20
21
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT - col0 + - col2 DIV col1 col2 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7041
SELECT - col0 + - col2 / col1 col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col1 * - col2 - 18 AS col2 FROM tab2
----
-1552
-664
-855

query I rowsort
SELECT DISTINCT + tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
3
64
80

query I rowsort
SELECT - ( col0 ) * + 80 * col2 FROM tab2 AS cor0
----
-15120
-162240
-240160

query I rowsort
SELECT DISTINCT col1 * - col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - ( cor0.col1 ) * col2 * + ( + col0 * - col1 ) AS col0 FROM tab0 cor0
----
329315
5857632
60434738

query I rowsort
SELECT + 62 * col0 AS col2 FROM tab0 cor0
----
1488
2170
5518

onlyif mysql # use DIV operator for integer division
query I rowsort label-7048
SELECT DISTINCT - 43 DIV - col0 AS col1 FROM tab2 cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT - 43 / - col0 AS col1 FROM tab2 cor0
----
0
6

query I rowsort
SELECT ( + cor0.col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7051
SELECT DISTINCT CAST( - col1 AS SIGNED ) - cor0.col0 * col0 AS col0 FROM tab1 cor0
----
-35
-4106
-6413

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT CAST ( - col1 AS INTEGER ) - cor0.col0 * col0 AS col0 FROM tab1 cor0
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 27 ) * + col0 col2 FROM tab2 AS cor0
----
189
2106
2133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 col2 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ALL - ( + col0 ) + + col1 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col0 FROM tab0, tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - + 43 * col0 AS col0 FROM tab1 cor0
----
-129
-2752
-3440

query I rowsort
SELECT DISTINCT - 34 * col1 AS col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT DISTINCT - 87 * - col1 AS col0 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT ALL + 87 + col2 AS col1 FROM tab2 AS cor0
----
113
114
125

query I rowsort
SELECT - 33 + cor0.col2 FROM tab1 AS cor0
----
21
24
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7062
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 81 * cor0.col2 - col1 * ( col0 ) AS col2 FROM tab1 cor0
----
3977
4296
6736

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab0 cor1
----
24
35
89

query I rowsort
SELECT DISTINCT + 9 AS col2 FROM tab2, tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * ( - 42 ) col2 FROM tab1 AS cor0
----
-1092
-420
-546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7068
SELECT DISTINCT col2 * CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT col2 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 19 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT - 36 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT + col1 + - col1 * - col2 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ALL - col2 * + 97 FROM tab2
----
-2522
-2619
-3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 col1 FROM tab2, tab0 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL 22 FROM tab1, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL 28 * + col1 FROM tab2
----
1652
476
868

query I rowsort
SELECT - 10 * col0 AS col0 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT ALL + col1 * - tab2.col0 * - col2 AS col2 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - cor0.col2 + 53 FROM tab0, tab0 AS cor0
----
9 values hashing to d8b4ddb0a9839d166900d7eef1eae070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT cor0.col1 + 89 AS col2 FROM tab2, tab1 AS cor0
----
102
115
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 * - col0 * col1 + + 24 col0 FROM tab0
----
-156146
-372530
-94920

query I rowsort
SELECT ALL col2 * - col0 * col0 + col2 FROM tab1 AS cor0
----
-233415
-432
-614304

query I rowsort
SELECT DISTINCT - - 48 * - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
-1222
-1269
-1786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 + + col2 * cor0.col1 col1 FROM tab1 AS cor0
----
1260
1416
582

query I rowsort
SELECT ALL col2 + + col0 + + col2 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7088
SELECT DISTINCT 34 DIV - col0 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT 34 / - col0 AS col0 FROM tab0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT + - col0 * ( col0 ) + + col2 * 29 DIV + 42 AS col2 FROM tab0 AS cor0
----
-1225
-554
-7865

skipif mysql # not compatible
query I rowsort label-7089
SELECT + - col0 * ( col0 ) + + col2 * 29 / + 42 AS col2 FROM tab0 AS cor0
----
-1225
-554
-7865

onlyif mysql # use DIV operator for integer division
query I rowsort label-7090
SELECT - + col0 DIV ( 32 ) + - col0 col1 FROM tab2 AS cor0
----
-7
-80
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7090
SELECT - + col0 / ( 32 ) + - col0 col1 FROM tab2 AS cor0
----
-7
-80
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7091
SELECT + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 18 AS col2 FROM tab2
----
18
18
18

query I rowsort
SELECT DISTINCT + ( - 80 ) FROM tab0
----
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7094
SELECT - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7094
SELECT - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col0 FROM tab1
----
56
56
56

query I rowsort
SELECT + col0 * - 47 * col2 FROM tab1
----
-171456
-360960
-7614

onlyif mysql # use DIV operator for integer division
query I rowsort label-7097
SELECT - 56 + 80 DIV + col0 AS col0 FROM tab0
----
-53
-54
-56

skipif mysql # not compatible
query I rowsort label-7097
SELECT - 56 + 80 / + col0 AS col0 FROM tab0
----
-53
-54
-56

query I rowsort
SELECT + - col2 * col0 + col1 * col2 * cor0.col1 FROM tab1 AS cor0
----
2052
36342
8544

query I rowsort
SELECT + 37 AS col2 FROM tab1 cor0
----
37
37
37

query I rowsort
SELECT - col0 * + col0 + - 88 * col0 AS col2 FROM tab1 AS cor0
----
-13440
-273
-9728

query I rowsort
SELECT ALL - 83 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT DISTINCT + + col1 * col2 * ( - 72 ) + + cor0.col2 FROM tab2 cor0
----
-110422
-46474
-60237

query I rowsort
SELECT - ( col2 ) * ( col0 ) * cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - col2 * col1 + - col1 + + 86 AS col0 FROM tab1 AS cor0
----
-1175
-1344
-494

query I rowsort
SELECT - ( col1 ) + + col2 * - col1 + + cor0.col2 FROM tab2 AS cor0
----
-1567
-625
-841

query I rowsort
SELECT ALL - - 66 * + col0 FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT + - 91 + col1 * 79 * - 70 AS col1 FROM tab1 AS cor0
----
-143871
-55391
-71981

query I rowsort
SELECT ALL - - col0 + + col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT - cor0.col2 * 11 FROM tab2 AS cor0
----
-286
-297
-418

query I rowsort
SELECT - 67 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + cor0.col1 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - - col1 * - 26 FROM tab2 AS cor0
----
-1534
-442
-806

query I rowsort
SELECT - + col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - 41 FROM tab2, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 007857b49fbf51962923f3da53f42f2b

query I rowsort
SELECT ALL col1 * col0 - cor0.col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL ( - col2 ) + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 26 * col2 AS col2 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT ALL - + col2 * + col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT cor0.col1 * 66 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 * + cor0.col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT 46 * - 90 FROM tab2 AS cor0
----
-4140

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7124
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - - ( ( - cor0.col1 ) ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col0 * 64 AS col2 FROM tab0
----
1536
2240
5696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT - CAST( NULL AS DECIMAL ) * - ( cor0.col1 ) 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-7127
SELECT - CAST ( NULL AS REAL ) * - ( cor0.col1 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT - cor0.col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7128
SELECT - cor0.col0 / - col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT - col0 + 98 * - col2 FROM tab1 AS cor0
----
-5295
-5650
-9488

query I rowsort
SELECT DISTINCT + 82 + col0 AS col1 FROM tab1 AS cor0
----
146
162
85

query I rowsort
SELECT + 50 * col1 AS col2 FROM tab0 AS cor0
----
4300
4550
4850

query I rowsort
SELECT DISTINCT 36 + col1 AS col2 FROM tab0 AS cor0
----
122
127
133

query I rowsort
SELECT + - col2 * 51 FROM tab2 AS cor0
----
-1326
-1377
-1938

query I rowsort
SELECT DISTINCT + 26 - - col0 AS col0 FROM tab2 AS cor0
----
104
105
33

query I rowsort
SELECT DISTINCT + 31 - - col2 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
193
3679
7711

query I rowsort
SELECT DISTINCT 13 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
13

query I rowsort
SELECT DISTINCT + 71 FROM tab2, tab1 AS cor0
----
71

query I rowsort
SELECT + col2 + + col2 * - ( col2 + col0 ) AS col0 FROM tab1 cor0
----
-16800
-3024
-6840

query I rowsort
SELECT DISTINCT col1 * 77 FROM tab2 cor0
----
1309
2387
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7140
SELECT DISTINCT cor0.col2 * - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT cor0.col2 * - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7142
SELECT DISTINCT + CAST( + cor0.col2 AS SIGNED ) FROM tab1, tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT + CAST ( + cor0.col2 AS INTEGER ) FROM tab1, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - 86 * 37 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1048252ffaf86b04099338a3d81db50c

query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - - col0 * 17 AS col2 FROM tab0 AS cor0
----
1513
408
595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7146
SELECT ALL CAST( + cor0.col1 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL CAST ( + cor0.col1 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL 79 * + tab1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bf65f2429a3d31067327be1ebab25f23

onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT 33 DIV 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-7148
SELECT 33 / 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT 71 + col2 AS col0 FROM tab2
----
109
97
98

query I rowsort
SELECT ALL - + col2 + - col0 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 * + cor0.col1 AS col0 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col1 * - col0 + ( + col0 + col0 ) FROM tab1 AS cor0
----
-512
-72
-880

query I rowsort
SELECT DISTINCT + col0 * - col2 + + 51 * 94 * col1 AS col2 FROM tab1 AS cor0
----
124482
44292
54642

query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 * cor0.col0 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL col0 * + col2 + + 89 FROM tab1 AS cor0
----
251
3737
7769

query I rowsort
SELECT ALL - + col0 * + ( - cor0.col0 ) + col1 * - col0 FROM tab2 AS cor0
----
-168
1482
4898

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 + - 6 + + col0 FROM tab2 AS cor0
----
1606
719
838

onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT ALL col0 DIV + ( + ( - col1 ) * - ( - 72 ) ) + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL col0 / + ( + ( - col1 ) * - ( - 72 ) ) + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7161
SELECT + cor0.col1 DIV col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7161
SELECT + cor0.col1 / col0 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT - col1 + col2 * + col0 AS col2 FROM tab1 cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-7163
SELECT + col1 + col2 DIV - col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-7163
SELECT + col1 + col2 / - col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT DISTINCT - col0 * - ( + col0 ) AS col1 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 71 col2 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT + 14 AS col1 FROM tab2
----
14
14
14

query I rowsort
SELECT ALL + col1 + 72 FROM tab2 AS cor0
----
103
131
89

query I rowsort
SELECT ALL ( col0 ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT ALL + CAST( - col1 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + CAST ( - col1 AS INTEGER ) / col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 91 * + col1 * col2 col1 FROM tab0 AS cor0
----
258172
678951
8730

query I rowsort
SELECT ALL + + 51 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT col1 * - col2 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT col1 * col2 + + 36 * - ( - col1 + col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - col1 - - col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL ( 80 ) * - col1 + col0 AS col0 FROM tab0
----
-6856
-7191
-7725

query I rowsort
SELECT ALL col2 + + col0 * + tab0.col2 AS col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL - 60 + + col0 FROM tab1
----
-57
20
4

query I rowsort
SELECT + + col2 * col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - 28 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT col1 * 51 + + col0 * 81 + + col1 FROM tab2
----
2179
7283
9386

query I rowsort
SELECT - ( col0 ) * - tab0.col2 * col1 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT 44 * cor0.col0 - 34 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 7cafe4b8f59820780a98ce56ea517748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col0 FROM tab2
----
57

query I rowsort
SELECT ALL 8 AS col0 FROM tab0
----
8
8
8

query I rowsort
SELECT 61 * col1 + + col2 * - 12 FROM tab0
----
4567
4850
5905

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 + - ( + col1 ) ) col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * col0 + + col2 * - col2 * - col0 AS col1 FROM tab0 AS cor0
----
26928
605734
70

query I rowsort
SELECT cor0.col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 31 FROM tab0, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-7192
SELECT - col1 DIV 67 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7192
SELECT - col1 / 67 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT col1 * - col1 * col2 + + 96 + col2 * - col0 FROM tab1 AS cor0
----
-23808
-36570
-9252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 + col0 col1 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7195
SELECT col1 + + cor0.col1 DIV cor0.col2 col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7195
SELECT col1 + + cor0.col1 / cor0.col2 col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - - cor0.col0 * + col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL + col0 * + 99 AS col0 FROM tab1
----
297
6336
7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7198
SELECT ALL col2 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL col2 * CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7199
SELECT ALL + 16 DIV tab2.col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7199
SELECT ALL + 16 / tab2.col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - cor0.col1 * 76 * - cor0.col2 - col2 FROM tab2 AS cor0
----
116558
49058
63585

query I rowsort
SELECT - ( 20 ) * + col0 - + col1 FROM tab2 AS cor0
----
-1597
-1619
-171

query I rowsort
SELECT DISTINCT - - 18 FROM tab0 AS cor0
----
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-7203
SELECT DISTINCT - + col0 * col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT - + col0 * col2 / col1 AS col1 FROM tab1 AS cor0
----
-364
-590
-6

query I rowsort
SELECT DISTINCT - + ( col1 ) + - col2 * 18 AS col0 FROM tab2 AS cor0
----
-517
-527
-701

query I rowsort
SELECT + 63 * - ( - col2 ) * + 26 - col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
126854
1541
51216

query I rowsort
SELECT + + col0 + + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL + 27 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL - col1 + - 1 * - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 78 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
243 values hashing to e44420c71dc86eef7656f23a5a358247

query I rowsort
SELECT col2 + ( - 8 ) FROM tab1
----
46
49
88

query I rowsort
SELECT cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab1 AS cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea

query I rowsort
SELECT DISTINCT 57 * + col2 AS col1 FROM tab1
----
3078
3249
5472

query I rowsort
SELECT DISTINCT - tab2.col2 * - 26 FROM tab2
----
676
702
988

onlyif mysql # support for MySQL specific system types and syntax
quer