sqllogictest
Artifact Content
Not logged in

Artifact 4f2d65b754c5b65a0f1f58da8f66a5cb175e74a1:


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 - ( - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + + 52 * ( - col0 ) + ( 71 ) AS col2 FROM tab2 AS cor0
----
-293
-3985
-4037

query I rowsort
SELECT - 32 + - col2 AS col2 FROM tab1 AS cor0
----
-128
-86
-89

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT + col2 + col0 * col1 DIV cor0.col0 FROM tab1 cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-4
SELECT + col2 + col0 * col1 / cor0.col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col0 + 81 AS col2 FROM tab2 cor0
----
2
3
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6
SELECT ALL col0 + 64 DIV col1 AS col2 FROM tab1 AS cor0
----
5
70
84

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL col0 + 64 / col1 AS col2 FROM tab1 AS cor0
----
5
70
84

query I rowsort
SELECT ALL col1 - 77 * + col1 AS col2 FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT ALL col0 * - 24 + - col2 * col0 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1401
-876
-9516

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * - col0 * + col2 + - col1 col1 FROM tab1 AS cor0
----
-36490
-4238
-99853

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

query I rowsort
SELECT ALL + col2 * 82 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT DISTINCT col2 + 28 * - 19 AS col2 FROM tab1 AS cor0
----
-436
-475
-478

query I rowsort
SELECT + col2 + - 19 * 70 AS col0 FROM tab2 AS cor0
----
-1292
-1303
-1304

query I rowsort
SELECT ALL - col2 * col1 * + col1 + 64 * col2 FROM tab0
----
-241956
-673794
-9345

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

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

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col2 * + col1 * - cor0.col0 - col0 FROM tab2 AS cor0
----
-121758
-54115
-6055

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 45 + col0 col0 FROM tab0 AS cor0
----
-10
-21
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( col1 * 33 ) - col1 col2 FROM tab1 cor0
----
-21130
-2600
-34333

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 + + col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + ( col1 ) - col1 * cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT ALL + ( - 78 ) * - col1 FROM tab1 AS cor0
----
1014
2028
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-23
SELECT + + 40 DIV + col2 + + col1 FROM tab0 AS cor0
----
137
87
91

skipif mysql # not compatible
query I rowsort label-23
SELECT + + 40 / + col2 + + col1 FROM tab0 AS cor0
----
137
87
91

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

query I rowsort
SELECT ALL - - col2 + col2 + + col1 AS col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col0 + - col1 AS col0 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT ALL + - 92 FROM tab0 cor0
----
-92
-92
-92

query I rowsort
SELECT - - ( - col2 ) * + col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

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

query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab0, tab1 AS cor0
----
30

query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) + 96 FROM tab0, tab1 cor0
----
150
153
192

query I rowsort
SELECT DISTINCT + ( 61 ) FROM tab0, tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-34
SELECT - col2 + col1 DIV - 6 FROM tab0
----
-17
-47
-97

skipif mysql # not compatible
query I rowsort label-34
SELECT - col2 + col1 / - 6 FROM tab0
----
-17
-47
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT + col1 + + 74 * col2 + + tab2.col1 * - col0 * col2 FROM tab2
----
-117669
-3830
-48205

query I rowsort
SELECT DISTINCT - col1 + ( col2 ) * col2 FROM tab2
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-38
SELECT + col2 DIV - col1 col2 FROM tab2 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-38
SELECT + col2 / - col1 col2 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT cor0.col1 + 60 + + col0 FROM tab0 AS cor0
----
170
192
240

onlyif mysql # use DIV operator for integer division
query I rowsort label-40
SELECT DISTINCT cor0.col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT cor0.col1 / + col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col2 + col1 * col0 - col0 * + col0 AS col1 FROM tab0 cor0
----
1521
2171
260

onlyif mysql # use DIV operator for integer division
query I rowsort label-42
SELECT ALL + ( - 53 ) DIV + cor0.col2 FROM tab0 AS cor0
----
-1
-53
0

skipif mysql # not compatible
query I rowsort label-42
SELECT ALL + ( - 53 ) / + cor0.col2 FROM tab0 AS cor0
----
-1
-53
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-43
SELECT - col1 + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-43
SELECT - col1 + col0 / col1 AS col1 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT DISTINCT - - 97 AS col0 FROM tab0 cor0
----
97

query I rowsort
SELECT 32 + + col1 FROM tab1 cor0
----
42
45
58

query I rowsort
SELECT - 51 * 42 + - col1 AS col2 FROM tab0 AS cor0
----
-2228
-2233
-2239

query I rowsort
SELECT ALL + cor0.col2 * - 52 AS col2 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT + col2 + + col1 + ( col2 ) AS col1 FROM tab0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT ALL + 6 DIV + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL + 6 / + cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL - tab2.col1 * col1 + + 77 - col0 AS col0 FROM tab2
----
-291
-3482
-891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-51
SELECT + ( + tab2.col0 ) * - CAST( NULL AS SIGNED ) + ( + cor1.col1 ) FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-51
SELECT + ( + tab2.col0 ) * - CAST ( NULL AS INTEGER ) + ( + cor1.col1 ) FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col0 * col2 * + col0 - + col1 FROM tab2 cor0
----
1292
158125
237141

query I rowsort
SELECT ALL col1 * 48 FROM tab2
----
1488
2832
816

query I rowsort
SELECT DISTINCT col2 + col2 + col2 FROM tab1
----
162
171
288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-55
SELECT ALL - CAST( col1 * + col2 AS SIGNED ) + - col2 FROM tab2
----
-1560
-684
-864

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL - CAST ( col1 * + col2 AS INTEGER ) + - col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT - 84 + col0 FROM tab1
----
-20
-4
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 - - col0 col0 FROM tab0 AS cor0
----
105
116
170

query I rowsort
SELECT ALL col1 * 59 AS col2 FROM tab0
----
5074
5369
5723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-59
SELECT ALL CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab2, tab1, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - cor0.col1 + - 7 FROM tab2 AS cor0
----
-24
-38
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-62
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-62
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

query I rowsort
SELECT DISTINCT + col2 * col1 - + col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + col0 + 69 AS col1 FROM tab2 AS cor0
----
147
148
76

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

query I rowsort
SELECT cor1.col2 * + 54 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 9ae5d63ee8e14ae0188eb37b5aff8b4f

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

query I rowsort
SELECT + col1 - - ( - col1 ) * - col1 FROM tab2 AS cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 0 * - col2 - + cor0.col2 col0 FROM tab1 AS cor0
----
-16
-51
7

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

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

query I rowsort
SELECT - col0 + col2 + - 74 AS col1 FROM tab1 AS cor0
----
-23
-58
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col1 col0 FROM tab1 AS cor0
----
1040
640
78

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

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

query I rowsort
SELECT - - cor0.col2 + + 41 * col0 AS col1 FROM tab0 cor0
----
1017
1436
3731

query I rowsort
SELECT col0 * 15 FROM tab2 AS cor0
----
105
1170
1185

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

query I rowsort
SELECT - col0 * + 90 AS col2 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT ALL + - 58 + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1283
-634
-7979

query I rowsort
SELECT - + 27 * + col1 AS col0 FROM tab2 AS cor0
----
-1593
-459
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-81
SELECT + CAST( + 70 AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
134
150
73

skipif mysql # not compatible
query I rowsort label-81
SELECT + CAST ( + 70 AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT - ( + 26 ) FROM tab0 AS cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 98 + col1 col2 FROM tab1 AS cor0
----
108
111
124

query I rowsort
SELECT DISTINCT - + 64 * col2 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT col0 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

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

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-88
SELECT ALL col1 + - cor0.col2 DIV + 85 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-88
SELECT ALL col1 + - cor0.col2 / + 85 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL + - 43 * col1 AS col2 FROM tab0 AS cor0
----
-3698
-3913
-4171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 + col0 col1 FROM tab1 AS cor0
----
2919
3313
9296

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

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

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

query I rowsort
SELECT DISTINCT + 45 + + col2 AS col0 FROM tab2 AS cor0
----
71
72
83

query I rowsort
SELECT DISTINCT col0 * - col1 + - col1 * - tab1.col1 FROM tab1
----
-540
-871
598

query I rowsort
SELECT ( col0 ) - col1 FROM tab0
----
-2
-62
-62

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col1 - col2 col0 FROM tab1 AS cor0
----
-157
-265
-730

onlyif mysql # use DIV operator for integer division
query I rowsort label-98
SELECT 36 DIV + col0 + + 41 * ( col1 ) AS col2 FROM tab0
----
3527
3731
3978

skipif mysql # not compatible
query I rowsort label-98
SELECT 36 / + col0 + + 41 * ( col1 ) AS col2 FROM tab0
----
3527
3731
3978

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

query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab1
----
89

query I rowsort
SELECT ALL + ( - 46 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT ALL + - 36 DIV col0 + + col0 FROM tab1 AS cor0
----
-9
64
80

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + - 36 / col0 + + col0 FROM tab1 AS cor0
----
-9
64
80

query I rowsort
SELECT ALL + tab2.col2 + 53 * 65 FROM tab2
----
3471
3472
3483

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

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

query I rowsort
SELECT DISTINCT 28 + - ( - col1 ) * - 85 FROM tab1
----
-1077
-2182
-822

query I rowsort
SELECT DISTINCT col0 * - 4 + - col0 AS col0 FROM tab0
----
-120
-175
-445

query I rowsort
SELECT 56 + + col0 AS col2 FROM tab2
----
134
135
63

query I rowsort
SELECT ALL - + col1 + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT col0 * col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT 28 + col2 AS col2 FROM tab1 AS cor0
----
124
82
85

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

query I rowsort
SELECT + 40 + 10 AS col2 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT - - col0 - - 70 AS col1 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT - col0 - - 53 FROM tab1 AS cor0
----
-11
-27
50

query I rowsort
SELECT DISTINCT + col2 * + ( - 74 ) + tab0.col0 AS col2 FROM tab0
----
-2418
-39
-5979

query I rowsort
SELECT + - cor0.col2 + 9 FROM tab2 AS cor0
----
-17
-18
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-122
SELECT + col0 DIV - col0 col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-122
SELECT + col0 / - col0 col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL col0 + 7 * col2 FROM tab1
----
381
463
752

onlyif mysql # use DIV operator for integer division
query I rowsort label-124
SELECT ALL + col1 + + col0 + - tab0.col1 DIV - ( + col1 ) FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-124
SELECT ALL + col1 + + col0 + - tab0.col1 / - ( + col1 ) FROM tab0
----
111
133
181

query I rowsort
SELECT + + col0 * + col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL - ( ( col2 ) ) * ( - 45 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
1509
3779
80

query I rowsort
SELECT ALL - - ( 7 ) * + col0 AS col0 FROM tab0 AS cor0
----
168
245
623

query I rowsort
SELECT DISTINCT - 73 + col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-15
-18
12

query I rowsort
SELECT + 25 + - col2 AS col1 FROM tab1 AS cor0
----
-29
-32
-71

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

query I rowsort
SELECT ALL col0 * col0 + + col0 * - col1 AS col1 FROM tab2 cor0
----
-168
1482
4898

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 + - 86 FROM tab0, tab1, tab0 AS cor0
----
-172
-177
-183

query I rowsort
SELECT ALL cor0.col1 + - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c99cbeca6e6fdb3507b2e08470c1cda6

query I rowsort
SELECT cor0.col0 FROM tab2, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT ALL - - col0 + + ( - col0 + col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 3ef3d333138b2b558b77004bad9bdabc

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

query I rowsort
SELECT + col1 * ( - 92 ) FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT col0 + + 47 FROM tab1 AS cor0
----
111
127
50

query I rowsort
SELECT + 84 * col0 + + tab1.col0 + col1 FROM tab1
----
281
5450
6813

query I rowsort
SELECT ALL - col1 - + col2 AS col0 FROM tab1
----
-109
-67
-80

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-145
SELECT + CAST( col2 AS SIGNED ) + - col0 * 93 FROM tab1 AS cor0
----
-225
-5895
-7344

skipif mysql # not compatible
query I rowsort label-145
SELECT + CAST ( col2 AS INTEGER ) + - col0 * 93 FROM tab1 AS cor0
----
-225
-5895
-7344

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

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

query I rowsort
SELECT 41 * col1 AS col0 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT + - 8 * + cor0.col1 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT ALL + 15 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT - ( - col1 ) * - ( 17 * - col2 ) AS col1 FROM tab1 AS cor0
----
21216
23868
9690

query I rowsort
SELECT DISTINCT - 45 FROM tab1, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 91 col0 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT ALL 90 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-157
SELECT ( tab1.col1 ) * + CAST( - col2 + col0 AS SIGNED ) FROM tab1
----
-1326
-208
70

skipif mysql # not compatible
query I rowsort label-157
SELECT ( tab1.col1 ) * + CAST ( - col2 + col0 AS INTEGER ) FROM tab1
----
-1326
-208
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-158
SELECT ALL - ( tab2.col2 ) DIV col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - ( tab2.col2 ) / col1 FROM tab2
----
-2
0
0

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

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) * - cor0.col0 + + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + - col1 * - col0 + + ( 58 ) FROM tab0 AS cor0
----
2122
3453
8157

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

query I rowsort
SELECT - 1 * col0 * + 40 AS col0 FROM tab0 AS cor0
----
-1400
-3560
-960

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-166
SELECT ALL - CAST( - ( + col1 ) AS SIGNED ) FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - CAST ( - ( + col1 ) AS INTEGER ) FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-167
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

query I rowsort
SELECT ALL + col0 * col2 + + 83 AS col0 FROM tab1 AS cor0
----
245
3731
7763

query I rowsort
SELECT - tab1.col1 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT col2 + ( ( col1 ) ) AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - 56 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

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

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

query I rowsort
SELECT + 28 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT - 68 * + col1 FROM tab2 AS cor0
----
-1156
-2108
-4012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-177
SELECT + + ( ( + col0 ) ) * + CAST( col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-177
SELECT + + ( ( + col0 ) ) * + CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-178
SELECT ALL col0 * ( + col0 ) - - CAST( 89 AS SIGNED ) AS col1 FROM tab0 cor0
----
1314
665
8010

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL col0 * ( + col0 ) - - CAST ( 89 AS INTEGER ) AS col1 FROM tab0 cor0
----
1314
665
8010

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-179
SELECT + CAST ( - col1 AS INTEGER ) * cor0.col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + ( + 50 ) + col2 FROM tab1 cor0
----
104
107
146

onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT DISTINCT - col0 + - cor0.col2 DIV col0 col0 FROM tab2 AS cor0
----
-10
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - col0 + - cor0.col2 / col0 col0 FROM tab2 AS cor0
----
-10
-78
-79

query I rowsort
SELECT ALL + - col0 * col0 * cor0.col1 AS col1 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT cor0.col0 * 60 + + col1 AS col0 FROM tab0 cor0
----
1526
2197
5431

query I rowsort
SELECT DISTINCT col1 * - 54 + col1 FROM tab1 AS cor0
----
-1378
-530
-689

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

query I rowsort
SELECT + 65 * - col0 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
-2178
1278
1677

query I rowsort
SELECT ALL + ( + col0 + col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT ALL 83 AS col1 FROM tab1
----
83
83
83

query I rowsort
SELECT + tab0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + ( col0 * tab2.col2 ) + tab2.col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT 3 + col0 FROM tab1
----
6
67
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT - ( + col0 ) DIV - col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-192
SELECT - ( + col0 ) / - col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT - + 40 + cor0.col0 AS col1 FROM tab0 cor0
----
-16
-5
49

query I rowsort
SELECT DISTINCT - + ( - col0 ) * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 93 + + 34 * col2 * + col2 col1 FROM tab2 AS cor0
----
23077
24879
49189

query I rowsort
SELECT col1 * - cor0.col2 * col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL ( 78 ) + - col0 * - col2 AS col1 FROM tab2 AS cor0
----
2106
267
3080

query I rowsort
SELECT ALL - 3 AS col0 FROM tab1 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 11 + + col1 col2 FROM tab2 AS cor0
----
28
42
70

query I rowsort
SELECT DISTINCT + + ( - col2 ) + 35 * col1 FROM tab2 AS cor0
----
1058
2039
557

query I rowsort
SELECT + col2 + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 13 * cor0.col1 + col2 col1 FROM tab0 AS cor0
----
-1085
-1101
-1260

query I rowsort
SELECT ALL - cor0.col0 * + col2 * 8 AS col0 FROM tab2 AS cor0
----
-1512
-16224
-24016

query I rowsort
SELECT DISTINCT - + col1 * - col2 + 11 AS col2 FROM tab2 AS cor0
----
1545
657
848

query I rowsort
SELECT DISTINCT cor0.col2 + + col2 + col0 FROM tab0 AS cor0
----
253
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + col0 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT 63 FROM tab0, tab0 AS cor0
----
63

query I rowsort
SELECT tab2.col0 - - col0 * - col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT col2 * col2 + col1 * col0 AS col1 FROM tab2
----
2787
5278
946

query I rowsort
SELECT ALL - col2 * cor0.col0 + col1 + 5 FROM tab2 AS cor0
----
-153
-1964
-2980

query I rowsort
SELECT col1 * ( - col0 * + col0 ) + 24 - col0 AS col1 FROM tab1 AS cor0
----
-213
-41000
-83256

query I rowsort
SELECT DISTINCT - col1 * ( + col2 + + col0 ) * ( 72 ) FROM tab1 AS cor0
----
-106704
-164736
-87120

query I rowsort
SELECT cor0.col0 * col2 + 49 AS col2 FROM tab0 AS cor0
----
7347
84
841

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

query I rowsort
SELECT + - tab2.col0 - - tab2.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e97278a6bb7007ec367f7fc7917bd1c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-217
SELECT DISTINCT - col2 DIV + col0 + + 99 + col2 FROM tab0 AS cor0
----
100
131
181

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - col2 / + col0 + + 99 + col2 FROM tab0 AS cor0
----
100
131
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-218
SELECT col0 + - cor0.col2 * + col0 - - col2 * + col0 DIV + col0 FROM tab1 AS cor0
----
-105
-3527
-7504

skipif mysql # not compatible
query I rowsort label-218
SELECT col0 + - cor0.col2 * + col0 - - col2 * + col0 / + col0 FROM tab1 AS cor0
----
-105
-3527
-7504

onlyif mysql # use DIV operator for integer division
query I rowsort label-219
SELECT DISTINCT + col0 DIV + ( + 10 ) + cor0.col0 col2 FROM tab0 AS cor0
----
26
38
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT + col0 / + ( + 10 ) + cor0.col0 col2 FROM tab0 AS cor0
----
26
38
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-220
SELECT - col2 * + CAST( + col0 * col2 AS SIGNED ) AS col1 FROM tab1
----
-207936
-737280
-8748

skipif mysql # not compatible
query I rowsort label-220
SELECT - col2 * + CAST ( + col0 * col2 AS INTEGER ) AS col1 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - tab1.col0 * 24 + col0 - col0 * ( - 96 * + col0 + + ( + col1 ) * + col1 ) FROM tab1
----
-1233
385344
599040

query I rowsort
SELECT ALL - 47 * 49 + - col2 AS col0 FROM tab1 AS cor0
----
-2357
-2360
-2399

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

query I rowsort
SELECT ALL ( + cor0.col2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT 67 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 - - ( + tab0.col0 ) col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + cor0.col0 + - col1 * - 64 FROM tab0 AS cor0
----
5528
5913
6243

query I rowsort
SELECT + 51 * cor0.col1 FROM tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT ALL + 53 * col1 FROM tab1 AS cor0
----
1378
530
689

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

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

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab2 cor0
----
-90

query I rowsort
SELECT - - 55 + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 6d9ecdaa0fc65f4e1e5d0a12a9281d51

query I rowsort
SELECT - col2 + col2 * col2 * col1 FROM tab0 cor0
----
611802
93621
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT + - 89 DIV col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-58
-83
-97

skipif mysql # not compatible
query I rowsort label-235
SELECT + - 89 / col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-58
-83
-97

query I rowsort
SELECT ALL - - col1 * + ( + col2 ) + 28 * - col2 FROM tab0 AS cor0
----
1914
5166
69

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

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL col2 / tab0.col1 + + col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL tab2.col1 * col0 * - tab2.col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + ( 69 ) AS col0 FROM tab0
----
69
69
69

query I rowsort
SELECT ALL + - 10 * tab2.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 5ae8e98d7d3d0f395d49c20bd6e7d5f1

query I rowsort
SELECT ALL col1 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

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

query I rowsort
SELECT DISTINCT + - 39 * - col2 AS col0 FROM tab2 AS cor0
----
1014
1053
1482

query I rowsort
SELECT DISTINCT + - ( col2 ) * + col2 * cor0.col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT - + ( 79 ) AS col1 FROM tab0 AS cor0
----
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-246
SELECT ALL CAST( + col2 + + col2 AS SIGNED ) FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-246
SELECT ALL CAST ( + col2 + + col2 AS INTEGER ) FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT - - col2 + col1 * col2 * col0 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT DISTINCT 62 + + tab0.col2 FROM tab0, tab0 AS cor0
----
144
63
95

query I rowsort
SELECT + ( col2 + - col1 ) FROM tab2
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 + - col2 * col0 col0 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT - + 50 + col1 * + col0 FROM tab1 cor0
----
28
590
990

query I rowsort
SELECT ALL + tab1.col0 * 13 * col2 AS col2 FROM tab1
----
2106
47424
99840

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

query I rowsort
SELECT - col0 * 53 AS col1 FROM tab0 AS cor0
----
-1272
-1855
-4717

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

query I rowsort
SELECT ALL col1 * 66 AS col2 FROM tab1
----
1716
660
858

query I rowsort
SELECT ALL col2 * - 8 * col0 AS col0 FROM tab1
----
-1296
-29184
-61440

query I rowsort
SELECT ALL - - cor0.col2 * ( col2 * + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
119808
32490
75816

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-260
SELECT + - 47 + + 20 DIV - col2 AS col2 FROM tab1 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-260
SELECT + - 47 + + 20 / - col2 AS col2 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT ( ( col1 ) ) + + 70 AS col1 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT ALL - + cor0.col1 AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT - col2 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-264
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) * + 67 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + - 23 + col2 AS col0 FROM tab1
----
-30
-7
28

query I rowsort
SELECT DISTINCT + col2 * col2 + + 50 AS col2 FROM tab0
----
1139
51
6774

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-267
SELECT - CAST( - 58 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
122
138
61

skipif mysql # not compatible
query I rowsort label-267
SELECT - CAST ( - 58 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
122
138
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - cor0.col0 col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - - col1 + 13 + col1 AS col2 FROM tab0 AS cor0
----
185
195
207

query I rowsort
SELECT col2 * 22 FROM tab0 AS cor0
----
1804
22
726

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

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

query I rowsort
SELECT DISTINCT col1 + 38 AS col0 FROM tab0 AS cor0
----
124
129
135

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

query I rowsort
SELECT ALL - + col1 * 79 + col2 * - col2 FROM tab2 AS cor0
----
-2787
-3178
-5337

query I rowsort
SELECT DISTINCT col0 * 20 + 92 AS col2 FROM tab0 AS cor0
----
1872
572
792

query I rowsort
SELECT 1 * 93 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

query I rowsort
SELECT DISTINCT - 27 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-27

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

query I rowsort
SELECT ALL + col2 + + 55 AS col1 FROM tab2 AS cor0
----
81
82
93

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

query I rowsort
SELECT - + cor0.col2 * + 54 FROM tab1 AS cor0
----
-2916
-3078
-5184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-283
SELECT - col0 * CAST( + tab0.col2 AS SIGNED ) - + tab0.col0 FROM tab0
----
-70
-7387
-816

skipif mysql # not compatible
query I rowsort label-283
SELECT - col0 * CAST ( + tab0.col2 AS INTEGER ) - + tab0.col0 FROM tab0
----
-70
-7387
-816

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

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab2, tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col0 + col2 + col2 FROM tab1
----
111
178
272

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

query I rowsort
SELECT + col2 * col0 * 70 + ( col1 ) FROM tab1 cor0
----
11366
255370
537613

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

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

query I rowsort
SELECT DISTINCT 62 + col0 FROM tab2 cor0
----
140
141
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT col2 DIV + col0 - ( 81 ) AS col0 FROM tab1 AS cor0
----
-63
-80
-81

skipif mysql # not compatible
query I rowsort label-291
SELECT col2 / + col0 - ( 81 ) AS col0 FROM tab1 AS cor0
----
-63
-80
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-292
SELECT + - col1 DIV + col2 - CAST( col1 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-292
SELECT + - col1 / + col2 - CAST ( col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT + - col2 + col0 * - col2 AS col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL + col2 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT - + cor0.col2 * cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f

onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT + - cor1.col2 DIV 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-296
SELECT + - cor1.col2 / 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

query I rowsort
SELECT - col2 - + col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT 41 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT tab2.col0 - col0 * - tab2.col1 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-301
SELECT DISTINCT + 45 + tab0.col2 DIV + ( + col0 ) FROM tab0
----
45
46

skipif mysql # not compatible
query I rowsort label-301
SELECT DISTINCT + 45 + tab0.col2 / + ( + col0 ) FROM tab0
----
45
46

query I rowsort
SELECT + col0 * + tab2.col0 + + col1 * col2 FROM tab2
----
6887
7618
886

query I rowsort
SELECT - col1 + - col1 * ( col2 ) AS col0 FROM tab2
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col2 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT ( + col2 ) + ( col1 ) AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - col2 + col0 * 14 + col2 FROM tab0
----
1246
336
490

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

query I rowsort
SELECT ALL + + col2 + col1 * ( + col1 ) FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT ALL + col1 + + 7 FROM tab1 AS cor0
----
17
20
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-310
SELECT DISTINCT + col2 + + CAST( NULL AS DECIMAL ) * - 28 - - cor0.col0 * - CAST( - 50 + col1 AS SIGNED ) * 0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) * - 28 - - cor0.col0 * - CAST ( - 50 + col1 AS INTEGER ) * 0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col1 * + col2 + ( col1 ) FROM tab1 AS cor0
----
1261
1430
580

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + col2 * col0 * - 12 AS col2 FROM tab1 cor0
----
-1944
-43776
-92160

onlyif mysql # use DIV operator for integer division
query I rowsort label-316
SELECT ALL + + cor0.col2 + + col2 * 86 DIV col2 AS col2 FROM tab0 AS cor0
----
119
168
87

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL + + cor0.col2 + + col2 * 86 / col2 AS col2 FROM tab0 AS cor0
----
119
168
87

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-319
SELECT ALL cor0.col1 * col0 DIV + col2 - - col2 AS col2 FROM tab1 AS cor0
----
106
55
68

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL cor0.col1 * col0 / + col2 - - col2 AS col2 FROM tab1 AS cor0
----
106
55
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-320
SELECT DISTINCT col2 * col2 + + cor0.col2 DIV + col0 col0 FROM tab2 AS cor0
----
1444
676
732

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT col2 * col2 + + cor0.col2 / + col0 col0 FROM tab2 AS cor0
----
1444
676
732

query I rowsort
SELECT DISTINCT - - col2 + col1 * 76 FROM tab0 AS cor0
----
6569
6998
7373

query I rowsort
SELECT ALL cor0.col1 * cor0.col0 + col0 - + col2 FROM tab1 AS cor0
----
1024
27
647

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

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

query I rowsort
SELECT - ( 42 ) * col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * - col0 col0 FROM tab1 AS cor0
----
-270
-5760
-7200

query I rowsort
SELECT ALL - 85 + - col2 FROM tab2 AS cor0
----
-111
-112
-123

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

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - CAST ( - col1 AS INTEGER ) * - col2 + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + - 66 * col1 FROM tab1 AS cor0
----
-1716
-660
-858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 col0 FROM tab1 AS cor0
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-331
SELECT - - ( - 42 ) DIV - col0 FROM tab1 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-331
SELECT - - ( - 42 ) / - col0 FROM tab1 AS cor0
----
0
0
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * col0 col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-333
SELECT + ( 14 ) DIV col1 col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-333
SELECT + ( 14 ) / col1 col0 FROM tab2 cor0
----
0
0
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - col2 * col0 col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-337
SELECT ALL - 60 DIV col1 - - cor0.col2 col1 FROM tab2 AS cor0
----
25
26
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-337
SELECT ALL - 60 / col1 - - cor0.col2 col1 FROM tab2 AS cor0
----
25
26
35

query I rowsort
SELECT DISTINCT + col2 * + col1 - + ( - ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
1344
1458
627

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

query I rowsort
SELECT ALL + 89 * col2 AS col1 FROM tab0 AS cor0
----
2937
7298
89

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

query I rowsort
SELECT ALL - 59 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

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

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

query I rowsort
SELECT ALL + cor0.col0 * 2 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - col2 + + 55 * ( col2 ) AS col1 FROM tab2 cor0
----
1404
1458
2052

query I rowsort
SELECT + + col0 * + 57 * - col1 FROM tab1 AS cor0
----
-36480
-4446
-59280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * col1 col0 FROM tab2 cor0
----
-10982
-25947
-90506

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

query I rowsort
SELECT + ( 8 ) AS col0 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT + 80 * - col2 FROM tab2 cor0
----
-2080
-2160
-3040

query I rowsort
SELECT 19 * - col2 AS col2 FROM tab0 AS cor0
----
-1558
-19
-627

query I rowsort
SELECT ( + 99 ) FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT + ( 23 ) * col1 * + ( - col1 ) FROM tab0 AS cor0
----
-170108
-190463
-216407

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

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

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

query I rowsort
SELECT ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col2 * - cor0.col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

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

query I rowsort
SELECT ALL 90 + + cor0.col1 FROM tab1 AS cor0
----
100
103
116

query I rowsort
SELECT DISTINCT + col1 * col1 * ( + 24 ) FROM tab0 AS cor0
----
177504
198744
225816

onlyif mysql # use DIV operator for integer division
query I rowsort label-362
SELECT DISTINCT - - col1 DIV + col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT - - col1 / + col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - - 86 + + 81 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col1 FROM tab2
----
72
72
72

query I rowsort
SELECT 47 + col1 FROM tab2 AS cor0
----
106
64
78

query I rowsort
SELECT - 16 + col2 FROM tab2 AS cor0
----
10
11
22

query I rowsort
SELECT + 5 - + col1 FROM tab1 AS cor0
----
-21
-5
-8

query I rowsort
SELECT ALL - + 48 * col1 FROM tab1 AS cor0
----
-1248
-480
-624

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

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

query I rowsort
SELECT - 40 + 96 FROM tab0, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT - - cor0.col1 DIV CAST( + 12 AS SIGNED ) + col2 FROM tab2 AS cor0
----
29
30
39

skipif mysql # not compatible
query I rowsort label-372
SELECT - - cor0.col1 / CAST ( + 12 AS INTEGER ) + col2 FROM tab2 AS cor0
----
29
30
39

query I rowsort
SELECT ALL - ( col0 + - col0 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-374
SELECT - cor0.col0 * - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-374
SELECT - cor0.col0 * - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + + col0 * 39 + cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
146
2570
3213

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT - + col1 DIV + col2 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-377
SELECT - + col1 / + col2 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + col2 + - 35 FROM tab2 AS cor0
----
-8
-9
3

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

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

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

query I rowsort
SELECT + + col2 + ( - 96 ) * - col2 AS col1 FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT ALL + col1 + + 71 * - 85 FROM tab1 cor0
----
-6009
-6022
-6025

query I rowsort
SELECT 44 * + col0 FROM tab1
----
132
2816
3520

onlyif mysql # use DIV operator for integer division
query I rowsort label-384
SELECT + col0 DIV 31 col2 FROM tab1 AS cor0
----
0
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-384
SELECT + col0 / 31 col2 FROM tab1 AS cor0
----
0
2
2

query I rowsort
SELECT + cor0.col0 * - ( col2 * cor0.col1 + col0 ) FROM tab1 AS cor0
----
-106240
-40576
-4221

query I rowsort
SELECT + + col1 * + 38 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT - - col0 * - col0 - 10 FROM tab1 AS cor0
----
-19
-4106
-6410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 47 col1 FROM tab2
----
-1222
-1269
-1786

query I rowsort
SELECT ALL 17 + - 87 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + col0 - 25 * + cor0.col1 FROM tab0 AS cor0
----
-2126
-2186
-2390

query I rowsort
SELECT 37 + - col2 FROM tab2 AS cor0
----
-1
10
11

query I rowsort
SELECT DISTINCT + 48 FROM tab1, tab1 cor0
----
48

query I rowsort
SELECT DISTINCT 41 + col1 - - col1 FROM tab1 cor0
----
61
67
93

query I rowsort
SELECT DISTINCT + - col2 * - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT tab1.col0 * ( 46 + - col0 ) AS col2 FROM tab1
----
-1152
-2720
129

query I rowsort
SELECT + - 88 + col2 FROM tab1 AS cor0
----
-31
-34
8

query I rowsort
SELECT col2 * + col1 + col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL ( + 31 ) AS col1 FROM tab2
----
31
31
31

query I rowsort
SELECT ALL + 37 * - col1 FROM tab1
----
-370
-481
-962

query I rowsort
SELECT - - cor0.col2 - col2 * 49 AS col0 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT ALL - col0 * col2 + col1 * 58 AS col2 FROM tab0
----
-2020
4196
5591

query I rowsort
SELECT ALL ( - 91 ) AS col2 FROM tab2 AS cor0
----
-91
-91
-91

query I rowsort
SELECT + - 46 * col1 + cor0.col0 FROM tab0 AS cor0
----
-3932
-4097
-4427

query I rowsort
SELECT ALL - + col2 * col2 * - col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT + col0 * - col0 * + col2 + - col0 * + col0 - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-18792
-2415
-650145

query I rowsort
SELECT DISTINCT + - 89 * - cor0.col1 FROM tab2 AS cor0
----
1513
2759
5251

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

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

query I rowsort
SELECT - + 21 + cor0.col1 FROM tab2 cor0
----
-4
10
38

query I rowsort
SELECT ALL cor0.col2 + col2 * - 42 AS col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT ALL + + 60 DIV - col0 + 43 AS col1 FROM tab0 AS cor0
----
41
42
43

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + + 60 / - col0 + 43 AS col1 FROM tab0 AS cor0
----
41
42
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-412
SELECT DISTINCT + CAST( - col2 + - col2 AS SIGNED ) * 71 FROM tab1
----
-13632
-7668
-8094

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT + CAST ( - col2 + - col2 AS INTEGER ) * 71 FROM tab1
----
-13632
-7668
-8094

query I rowsort
SELECT + ( col0 ) + + col2 + + col0 FROM tab0
----
260
71
81

query I rowsort
SELECT DISTINCT - + col2 * + col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT 35 * + col1 - + col0 * cor0.col0 FROM tab2 AS cor0
----
-4019
-5646
1036

query I rowsort
SELECT ALL col0 + + col1 - col2 * col1 FROM tab0 cor0
----
-2728
-7282
35

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

query I rowsort
SELECT DISTINCT + + ( + col0 ) + - col0 * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col2 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - - col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * - CAST ( - col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
49
6084
6241

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

query I rowsort
SELECT - - col2 + 28 * col1 AS col1 FROM tab1 AS cor0
----
337
460
782

query I rowsort
SELECT DISTINCT col2 + + 53 * + col0 FROM tab2 AS cor0
----
398
4160
4225

query I rowsort
SELECT DISTINCT - col0 * col2 - - col0 AS col2 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL ( + col0 ) + - col1 + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * ( col2 ) col1 FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-428
SELECT ALL + + cor0.col2 DIV + col2 + - cor0.col0 + col2 FROM tab0 AS cor0
----
-33
-6
10

skipif mysql # not compatible
query I rowsort label-428
SELECT ALL + + cor0.col2 / + col2 + - cor0.col0 + col2 FROM tab0 AS cor0
----
-33
-6
10

query I rowsort
SELECT + + cor0.col0 + 76 FROM tab2 AS cor0
----
154
155
83

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

query I rowsort
SELECT ALL - ( col2 ) - + col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-432
SELECT DISTINCT - ( + col0 ) + col1 * - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT - ( + col0 ) + col1 * - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-433
SELECT ALL col2 DIV CAST( + col0 AS SIGNED ) AS col2 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL col2 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab2
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-434
SELECT - CAST( 31 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

skipif mysql # not compatible
query I rowsort label-434
SELECT - CAST ( 31 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT 27 * + col2 FROM tab1 AS cor0
----
1458
1539
2592

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-437
SELECT DISTINCT + col1 DIV col1 + + col0 col0 FROM tab2 AS cor0
----
79
8
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT + col1 / col1 + + col0 col0 FROM tab2 AS cor0
----
79
8
80

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

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

query I rowsort
SELECT + cor0.col1 * - 39 FROM tab0 cor0
----
-3354
-3549
-3783

query I rowsort
SELECT ALL 56 * col0 AS col1 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT DISTINCT + 10 + - col1 FROM tab1 cor0
----
-16
-3
0

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col1 * + ( col1 ) - col1 FROM tab1
----
156
650
90

query I rowsort
SELECT - col0 + - col0 * col2 AS col0 FROM tab2
----
-196
-2106
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-446
SELECT DISTINCT CAST( NULL AS SIGNED ) + 83 + col2 col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 83 + col2 col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) + - col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT - - 70 * cor0.col0 + 79 FROM tab2 AS cor0
----
5539
5609
569

query I rowsort
SELECT - 57 AS col0 FROM tab1
----
-57
-57
-57

query I rowsort
SELECT ALL 41 + - 50 + - col2 AS col0 FROM tab1 AS cor0
----
-105
-63
-66

query I rowsort
SELECT - 41 + + col2 + + col2 FROM tab0
----
-39
123
25

query I rowsort
SELECT 94 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT - 29 + - col2 + - col1 * + ( - col1 ) * col0 FROM tab0
----
177442
329285
736898

onlyif mysql # use DIV operator for integer division
query I rowsort label-455
SELECT DISTINCT 71 DIV + ( col0 ) + + tab2.col2 * col0 * col1 + col1 FROM tab2
----
119711
51051
5900

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT 71 / + ( col0 ) + + tab2.col2 * col0 * col1 + col1 FROM tab2
----
119711
51051
5900

query I rowsort
SELECT DISTINCT 13 + - tab1.col2 FROM tab1
----
-41
-44
-83

query I rowsort
SELECT 48 * + col2 + tab0.col1 * col2 FROM tab0
----
11398
145
4422

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-458
SELECT DISTINCT - + col2 + CAST( ( col0 ) AS SIGNED ) * - CAST( col2 + + col2 AS SIGNED ) FROM tab1 AS cor0
----
-15456
-378
-7353

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT - + col2 + CAST ( ( col0 ) AS INTEGER ) * - CAST ( col2 + + col2 AS INTEGER ) FROM tab1 AS cor0
----
-15456
-378
-7353

query I rowsort
SELECT + col1 * col1 - - 80 AS col1 FROM tab0
----
7476
8361
9489

query I rowsort
SELECT ALL col1 + col2 + + 37 FROM tab1
----
104
117
146

query I rowsort
SELECT ALL + 54 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT 88 - - col1 DIV - col1 FROM tab0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-462
SELECT 88 - - col1 / - col1 FROM tab0
----
87
87
87

query I rowsort
SELECT ALL + col1 * col1 + + ( col2 ) FROM tab2
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT DISTINCT - tab2.col1 DIV col1 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT - tab2.col1 / col1 AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL + + col0 * + 74 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT DISTINCT col2 * - col1 * + col1 FROM tab0
----
-244068
-679042
-9409

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-468
SELECT DISTINCT col1 DIV 69 + - ( col2 + col0 ) col1 FROM tab0 AS cor0
----
-170
-35
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT col1 / 69 + - ( col2 + col0 ) col1 FROM tab0 AS cor0
----
-170
-35
-56

query I rowsort
SELECT ALL + - col2 * col1 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( 24 ) + + col1 col0 FROM tab2 AS cor0
----
1475
425
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - col0 * + cor0.col0 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT ALL + + cor0.col1 + 0 * col1 * col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL col0 * - 15 - + 69 FROM tab2 AS cor0
----
-1239
-1254
-174

query I rowsort
SELECT DISTINCT col1 + - col1 * - 10 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT DISTINCT + col2 * col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 3 col2 FROM tab2 AS cor0
----
-114
-78
-81

query I rowsort
SELECT - col1 * - 81 FROM tab1 AS cor0
----
1053
2106
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 32 col2 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT - ( col2 ) + tab0.col1 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-481
SELECT DISTINCT tab1.col2 DIV col2 + col1 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT tab1.col2 / col2 + col1 AS col2 FROM tab1
----
11
14
27

query I rowsort
SELECT tab2.col2 - + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 527fa7f8c75c69da0f3170b987178ec5

query I rowsort
SELECT + + col0 * - cor0.col2 + ( col1 ) AS col0 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT + 12 + - 65 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-485
SELECT DISTINCT - - cor0.col0 DIV 49 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7297
-792

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT - - cor0.col0 / 49 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7297
-792

query I rowsort
SELECT ALL - col1 * - 37 FROM tab0 AS cor0
----
3182
3367
3589

query I rowsort
SELECT - 8 + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 19e9dd53675ff8d391dc129cbee6be46

onlyif mysql # use DIV operator for integer division
query I rowsort label-488
SELECT + col2 * col1 * + cor0.col2 + - col1 DIV col1 FROM tab0 AS cor0
----
611883
93653
96

skipif mysql # not compatible
query I rowsort label-488
SELECT + col2 * col1 * + cor0.col2 + - col1 / col1 FROM tab0 AS cor0
----
611883
93653
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-489
SELECT ALL + col1 * + 41 + + 3 * - col1 DIV col1 + - col2 AS col0 FROM tab1 AS cor0
----
1009
350
434

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL + col1 * + 41 + + 3 * - col1 / col1 + - col2 AS col0 FROM tab1 AS cor0
----
1009
350
434

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-490
SELECT ALL + col2 / 22 col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + + col1 + - cor0.col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + col0 col2 FROM tab1
----
164
249
679

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-495
SELECT col0 + tab0.col2 * col2 DIV + tab0.col0 AS col2 FROM tab0
----
164
35
69

skipif mysql # not compatible
query I rowsort label-495
SELECT col0 + tab0.col2 * col2 / + tab0.col0 AS col2 FROM tab0
----
164
35
69

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

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

query I rowsort
SELECT DISTINCT - 10 * + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
-260
-270
-380

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

query I rowsort
SELECT DISTINCT - - 6 + + col0 FROM tab1 AS cor0
----
70
86
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT DISTINCT col2 DIV + tab2.col0 AS col1 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT col2 / + tab2.col0 AS col1 FROM tab2
----
0
3

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT 43 DIV col1 + col2 * - col0 * + col1 FROM tab2 AS cor0
----
-119652
-51032
-5858

skipif mysql # not compatible
query I rowsort label-503
SELECT 43 / col1 + col2 * - col0 * + col1 FROM tab2 AS cor0
----
-119652
-51032
-5858

query I rowsort
SELECT - + 47 + col0 AS col2 FROM tab0 AS cor0
----
-12
-23
42

query I rowsort
SELECT 56 - - col0 FROM tab1 AS cor0
----
120
136
59

query I rowsort
SELECT - - 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * col0 col0 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT 12 * + cor0.col2 - + 68 AS col2 FROM tab2 AS cor0
----
244
256
388

onlyif mysql # use DIV operator for integer division
query I rowsort label-509
SELECT + cor0.col0 * col0 DIV 58 AS col0 FROM tab1 AS cor0
----
0
110
70

skipif mysql # not compatible
query I rowsort label-509
SELECT + cor0.col0 * col0 / 58 AS col0 FROM tab1 AS cor0
----
0
110
70

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-513
SELECT DISTINCT + 40 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT + 40 / col2 FROM tab1
----
0

query I rowsort
SELECT + 81 * + col1 FROM tab1 AS cor0
----
1053
2106
810

query I rowsort
SELECT - - 82 * - ( col1 ) AS col0 FROM tab0 cor0
----
-7052
-7462
-7954

query I rowsort
SELECT DISTINCT + 81 * 18 FROM tab2
----
1458

query I rowsort
SELECT - ( - col1 + + col1 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 62 + 26 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT - tab1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab0, tab2 cor0
----
-68

query I rowsort
SELECT ALL - col2 * 54 FROM tab0
----
-1782
-4428
-54

query I rowsort
SELECT tab0.col2 + - tab0.col1 * - col2 * - col1 FROM tab0
----
-244035
-678960
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-523
SELECT DISTINCT - col2 DIV cor0.col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT - col2 / cor0.col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ( col2 ) - + col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col0 * - tab0.col2 + tab0.col1 + + col1 FROM tab0
----
-620
-7116
159

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-527
SELECT col1 DIV - col0 + col0 * + tab0.col1 - + col0 AS col0 FROM tab0
----
2037
3358
8009

skipif mysql # not compatible
query I rowsort label-527
SELECT col1 / - col0 + col0 * + tab0.col1 - + col0 AS col0 FROM tab0
----
2037
3358
8009

onlyif mysql # use DIV operator for integer division
query I rowsort label-528
SELECT + col2 DIV col0 + col1 AS col2 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-528
SELECT + col2 / col0 + col1 AS col2 FROM tab0
----
87
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-529
SELECT ALL - tab2.col0 DIV + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cf654df9b8cf2aa4fd493f3586e15c63

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL - tab2.col0 / + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cf654df9b8cf2aa4fd493f3586e15c63

onlyif mysql # use DIV operator for integer division
query I rowsort label-530
SELECT ALL + col1 * col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL + col1 * col2 / - col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ( + ( - col0 ) ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + 77 AS col1 FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT 58 FROM tab1, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + + col0 + col0 + + col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT DISTINCT - - 1 * cor0.col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL - 70 + - cor0.col2 FROM tab2 AS cor0
----
-108
-96
-97

query I rowsort
SELECT DISTINCT - 70 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-108
-96
-97

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

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT col2 * - col2 + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT DISTINCT ( - col1 + col0 ) * - tab0.col0 FROM tab0
----
1488
178
2170

query I rowsort
SELECT ALL - col0 * col0 + cor0.col2 - - col0 AS col2 FROM tab0 AS cor0
----
-1189
-519
-7750

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

query I rowsort
SELECT ALL 94 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT ( + col1 ) * - tab1.col1 AS col0 FROM tab1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 * - col1 col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

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

query I rowsort
SELECT col1 * col0 + + cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT col1 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
104
1053
650

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 * - cor0.col0 FROM tab2 AS cor0
----
-343
-474552
-493039

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

query I rowsort
SELECT col0 + col1 + col0 * - col2 AS col1 FROM tab0
----
-682
-7118
97

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

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

query I rowsort
SELECT col1 - - col0 * col2 * col1 AS col1 FROM tab0
----
3492
664209
68198

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 = col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT col1 + col0 * - col1 FROM tab0
----
-1978
-3298
-8008

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

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

query I rowsort
SELECT - - col1 + + col2 + col1 * cor0.col2 FROM tab0 AS cor0
----
195
2957
7635

query I rowsort
SELECT ALL + col0 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL - col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 * col0 + cor0.col2 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + - tab1.col1 * col1 col1 FROM tab1
----
0

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

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

skipif mysql # not compatible
query I rowsort label-569
SELECT tab0.col2 + col0 / tab0.col0 FROM tab0
----
2
34
83

query I rowsort
SELECT - col0 + - col1 + + col0 AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col0 + + col0 * col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL + col2 - - tab0.col1 * - col1 AS col1 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL col1 + + col1 * tab1.col0 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL - col1 + + col0 * col0 AS col2 FROM tab2
----
18
6025
6224

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col1 col2 FROM tab0 cor0
----
110
132
180

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT DISTINCT + col2 DIV col2 + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-578
SELECT DISTINCT + col2 / col2 + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT - + col0 + - col2 + - col2 FROM tab1 AS cor0
----
-111
-178
-272

query I rowsort
SELECT - col0 + + col0 * cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
-118860
-49560
-720900

query I rowsort
SELECT ALL col1 + - col0 * col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - 73 * + ( + col0 * - col0 ) FROM tab0 AS cor0
----
42048
578233
89425

query I rowsort
SELECT DISTINCT + 6 + + col2 * - col1 + col2 FROM tab0 AS cor0
----
-2799
-7374
-90

query I rowsort
SELECT col2 + + 58 - + col0 AS col2 FROM tab2 AS cor0
----
17
6
78

query I rowsort
SELECT DISTINCT col2 * 15 FROM tab2
----
390
405
570

query I rowsort
SELECT ( col1 ) - - col2 FROM tab2 AS cor0
----
55
58
85

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab0, tab2, tab2 AS cor0, tab2 cor1
----
81 values hashing to 660751b3166f5cb8964b7ef659605795

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

query I rowsort
SELECT DISTINCT - col0 * ( - col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT cor0.col2 + tab2.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4a01ecc2037eb425b02feee67266c705

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

query I rowsort
SELECT + cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL col2 * 29 FROM tab2
----
1102
754
783

query I rowsort
SELECT DISTINCT + col0 * - 90 AS col2 FROM tab1
----
-270
-5760
-7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-596
SELECT + 50 DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-596
SELECT + 50 / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * 44 AS col0 FROM tab2 AS cor0
----
-1364
-2596
-748

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

query I rowsort
SELECT col1 * - 34 FROM tab1 AS cor0
----
-340
-442
-884

onlyif mysql # use DIV operator for integer division
query I rowsort label-600
SELECT ALL - ( col1 ) DIV col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-600
SELECT ALL - ( col1 ) / col0 FROM tab1
----
-8
0
0

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

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

query I rowsort
SELECT DISTINCT + - col2 + col1 * col0 * col2 AS col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT col2 * ( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * + 3 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

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

query I rowsort
SELECT ALL col2 * + col0 + + col0 - + col1 AS col0 FROM tab0 cor0
----
-27
7296
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 68 * cor0.col1 + - col0 col1 FROM tab2 AS cor0
----
-1235
-2115
-4090

onlyif mysql # use DIV operator for integer division
query I rowsort label-608
SELECT - 98 + col1 DIV + col1 FROM tab1 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-608
SELECT - 98 + col1 / + col1 FROM tab1 AS cor0
----
-97
-97
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-609
SELECT + 11 DIV 81 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-609
SELECT + 11 / 81 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-610
SELECT col1 DIV - 2 FROM tab1
----
-13
-5
-6

skipif mysql # not compatible
query I rowsort label-610
SELECT col1 / - 2 FROM tab1
----
-13
-5
-6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-611
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - tab0.col2 / col1 col2 FROM tab0
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0 cor2
----
3645 values hashing to 38dccc9c32724260ec175f754830d863

query I rowsort
SELECT ALL + col1 + col2 * + col1 + - 87 * + col1 * + col0 FROM tab1 AS cor0
----
-5356
-55100
-89219

query I rowsort
SELECT DISTINCT col0 + col0 * col0 * ( 12 ) FROM tab2 AS cor0
----
595
73086
74971

query I rowsort
SELECT ALL - - ( cor0.col0 ) * - col0 + col2 AS col0 FROM tab0 cor0
----
-1224
-543
-7839

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

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

query I rowsort
SELECT ALL - ( 52 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT - - col1 DIV - cor0.col0 + 38 * - col2 FROM tab0 AS cor0
----
-1257
-3117
-40

skipif mysql # not compatible
query I rowsort label-618
SELECT - - col1 / - cor0.col0 + 38 * - col2 FROM tab0 AS cor0
----
-1257
-3117
-40

query I rowsort
SELECT + - ( + col0 ) + + 89 FROM tab2 cor0
----
10
11
82

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-623
SELECT - col1 DIV - col0 + col2 * + cor0.col2 FROM tab0 AS cor0
----
1092
3
6725

skipif mysql # not compatible
query I rowsort label-623
SELECT - col1 / - col0 + col2 * + cor0.col2 FROM tab0 AS cor0
----
1092
3
6725

query I rowsort
SELECT - - cor0.col0 + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + 8 * col0 FROM tab2 AS cor0
----
56
624
632

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

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

query I rowsort
SELECT ALL - - 16 * - col1 AS col1 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - + col0 * col1 * 72 + col0 AS col2 FROM tab2 AS cor0
----
-15617
-331266
-96617

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col0 * - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-114155
-5110
-52806

query I rowsort
SELECT ALL 77 * - col1 AS col0 FROM tab0
----
-6622
-7007
-7469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-634
SELECT - CAST( + col0 AS SIGNED ) * + col1 + tab2.col0 FROM tab2
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort label-634
SELECT - CAST ( + col0 AS INTEGER ) * + col1 + tab2.col0 FROM tab2
----
-1264
-210
-4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-635
SELECT + + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-635
SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + - 29 FROM tab2 cor0
----
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT - 89 + + cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
-71
-88
-89

skipif mysql # not compatible
query I rowsort label-637
SELECT - 89 + + cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
-71
-88
-89

query I rowsort
SELECT ALL 69 * col2 AS col1 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT + 98 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col0 FROM tab0
----
-74
-74
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-641
SELECT ALL 41 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL 41 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 42 + col0 AS col2 FROM tab2 AS cor0
----
120
121
49

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

query I rowsort
SELECT ALL + ( + 25 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-645
SELECT DISTINCT + col2 DIV + ( 57 + col0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT + col2 / + ( 57 + col0 ) AS col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT ALL col0 + - 53 DIV - col1 AS col0 FROM tab1 AS cor0
----
5
69
84

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL col0 + - 53 / - col1 AS col0 FROM tab1 AS cor0
----
5
69
84

query I rowsort
SELECT DISTINCT - col0 + - 34 + col2 FROM tab0 cor0
----
-25
-41
-68

query I rowsort
SELECT DISTINCT - - ( 78 ) + col0 - - col2 AS col2 FROM tab2 cor0
----
112
182
195

query I rowsort
SELECT + 92 * col2 + col0 FROM tab1 AS cor0
----
4971
5308
8912

query I rowsort
SELECT - 58 * + col2 + - col2 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT DISTINCT cor0.col1 * 64 FROM tab0 cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
5504
5824
6208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-652
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + col0 col0 FROM tab0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + col0 col0 FROM tab0
----
-2
-62

query I rowsort
SELECT ALL - col0 + col1 + col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT DISTINCT - + col2 + + col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT 61 * 10 + col2 AS col2 FROM tab1 AS cor0
----
664
667
706

query I rowsort
SELECT DISTINCT - col2 * - 69 + col0 FROM tab0 AS cor0
----
104
2301
5747

query I rowsort
SELECT ALL - ( 96 ) * - col0 AS col1 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT - 19 AS col1 FROM tab0
----
-19
-19
-19

query I rowsort
SELECT ALL - + ( col1 ) * + col1 + + col1 * + 56 AS col1 FROM tab0 AS cor0
----
-2580
-3185
-3977

query I rowsort
SELECT ALL + 11 * + col0 + + col0 - col0 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT + col1 * - col2 * col0 - - col1 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT ALL - ( + col0 ) * + col2 + - 27 AS col2 FROM tab1 AS cor0
----
-189
-3675
-7707

query I rowsort
SELECT DISTINCT + col0 + - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-24
19
62

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

query I rowsort
SELECT ALL cor0.col1 * cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT + cor0.col0 + - cor0.col2 + 48 FROM tab2, tab1 cor0
----
9 values hashing to 31a12124fabc7506b71971541f8db8da

query I rowsort
SELECT + + 48 + + col0 * - 3 * col2 FROM tab2 AS cor0
----
-519
-6036
-8958

query I rowsort
SELECT ALL cor0.col0 + - col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

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

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

query I rowsort
SELECT DISTINCT tab1.col2 + ( + col1 ) + + col0 FROM tab1
----
131
189
83

query I rowsort
SELECT ALL tab0.col1 * + tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9708a433b981d9b5fd095bfe2ea45aea

query I rowsort
SELECT ALL + cor0.col0 * 49 FROM tab0 AS cor0
----
1176
1715
4361

query I rowsort
SELECT ALL col0 + col0 * col0 AS col0 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT ALL + col0 + - col2 * col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - 65 + col2 + + col1 * col1 FROM tab0 AS cor0
----
7364
8298
9345

query I rowsort
SELECT - col1 + + ( + col0 + + col2 ) * - ( - col2 ) * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-1276093
-161852
-3589

query I rowsort
SELECT + - 97 + col2 FROM tab0 AS cor0
----
-15
-64
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-679
SELECT DISTINCT ( cor0.col2 ) DIV col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT ( cor0.col2 ) / col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT ALL + - 75 * col1 FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT 69 + col0 FROM tab0 AS cor0
----
104
158
93

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

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

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

query I rowsort
SELECT col2 * col2 + col1 + + col1 FROM tab2
----
1478
791
794

query I rowsort
SELECT ALL - 16 + - tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8699ac74e27fc08b84fbde63f12657ae

query I rowsort
SELECT - ( 9 ) + col1 AS col1 FROM tab0 AS cor0
----
77
82
88

query I rowsort
SELECT - cor1.col2 + + 88 FROM tab1, tab0, tab2 cor0, tab0 AS cor1
----
81 values hashing to e6754c6365a858290d4d9f1dd0baf9e9

query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT ( col1 ) * 46 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT - 67 * col0 AS col0 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT - col2 * ( col1 ) - col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + + col0 * - col2 * 16 + - col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-122947
-2569
-58422

query I rowsort
SELECT + col2 * 28 + - col1 AS col2 FROM tab1 AS cor0
----
1486
1586
2675

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

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

query I rowsort
SELECT + - col1 * col1 FROM tab2 cor0
----
-289
-3481
-961

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

query I rowsort
SELECT 69 + + 35 * - col2 + col2 * col1 FROM tab2 cor0
----
-39
-615
693

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

query I rowsort
SELECT ALL 82 * - col2 FROM tab0 cor0
----
-2706
-6724
-82

query I rowsort
SELECT DISTINCT ( + col0 ) * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

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

query I rowsort
SELECT ( 60 ) * col1 + ( cor0.col2 * + cor0.col0 ) + - col1 AS col2 FROM tab2 cor0
----
2018
4005
5509

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-703
SELECT DISTINCT tab0.col2 + + CAST( NULL AS SIGNED ) + 46 / col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT tab0.col2 + + CAST ( NULL AS INTEGER ) + 46 / col1 AS col2 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT DISTINCT col2 + 13 * col2 DIV col0 FROM tab0
----
1
50
93

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT col2 + 13 * col2 / col0 FROM tab0
----
1
50
93

query I rowsort
SELECT DISTINCT + col1 + 27 AS col1 FROM tab1
----
37
40
53

query I rowsort
SELECT col1 + - 85 AS col0 FROM tab1
----
-59
-72
-75

query I rowsort
SELECT - col0 + + 71 AS col2 FROM tab2
----
-7
-8
64

query I rowsort
SELECT - tab1.col1 * 41 + 8 FROM tab1
----
-1058
-402
-525

query I rowsort
SELECT - col1 * - 79 FROM tab1 AS cor0
----
1027
2054
790

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

query I rowsort
SELECT ALL ( + col2 ) * - col2 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT + - 50 DIV col0 AS col1 FROM tab1 AS cor0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-712
SELECT + - 50 / col0 AS col1 FROM tab1 AS cor0
----
-16
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-713
SELECT - col0 + col2 DIV - ( col1 ) + col2 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-713
SELECT - col0 + col2 / - ( col1 ) + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col1 + - col0 * - col2 * - col0 AS col2 FROM tab1 cor0
----
-233462
-460
-614387

query I rowsort
SELECT DISTINCT col1 * col1 + col0 + + 46 AS col1 FROM tab2 AS cor0
----
1014
3605
414

query I rowsort
SELECT + + 55 * + col1 AS col1 FROM tab1 AS cor0
----
1430
550
715

onlyif mysql # use DIV operator for integer division
query I rowsort label-717
SELECT col1 DIV + col2 + ( - cor0.col1 ) * col1 + - ( + 7 + col2 ) FROM tab1 AS cor0
----
-164
-272
-737

skipif mysql # not compatible
query I rowsort label-717
SELECT col1 / + col2 + ( - cor0.col1 ) * col1 + - ( + 7 + col2 ) FROM tab1 AS cor0
----
-164
-272
-737

query I rowsort
SELECT DISTINCT + 6 * - col0 FROM tab0 AS cor0
----
-144
-210
-534

onlyif mysql # use DIV operator for integer division
query I rowsort label-719
SELECT - 22 DIV - col1 + col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-719
SELECT - 22 / - col1 + col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 6 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL - 10 * - 89 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f6335b24b061e391f6611f669f73d0b

query I rowsort
SELECT ALL 89 * col1 AS col2 FROM tab2
----
1513
2759
5251

query I rowsort
SELECT + ( col0 ) * - col1 + 71 FROM tab1 cor0
----
-569
-7
-969

query I rowsort
SELECT col1 * + ( - col2 ) * - col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-725
SELECT col2 DIV 29 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-725
SELECT col2 / 29 AS col0 FROM tab2
----
0
0
1

query I rowsort
SELECT - ( col2 ) * col0 + - col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - col2 * - col0 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL ( 97 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + col0 + tab0.col0 + 9 FROM tab0
----
187
57
79

query I rowsort
SELECT - 72 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 95a1a68628dd064d94b4fe1543a3419f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 91 + 8 col1 FROM tab1 AS cor0
----
4922
5195
8744

query I rowsort
SELECT - + col1 * + 87 - col2 AS col0 FROM tab0 AS cor0
----
-7515
-7999
-8440

query I rowsort
SELECT ALL ( + 38 * col2 ) FROM tab2
----
1026
1444
988

query I rowsort
SELECT DISTINCT ( + col0 ) + col2 FROM tab2
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-735
SELECT DISTINCT CAST( 85 AS SIGNED ) + col0 * + ( ( col0 ) ) + ( col0 ) AS col2 FROM tab0
----
1345
685
8095

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT CAST ( 85 AS INTEGER ) + col0 * + ( ( col0 ) ) + ( col0 ) AS col2 FROM tab0
----
1345
685
8095

query I rowsort
SELECT col1 * - col1 * - col1 - - col0 FROM tab0
----
636080
753660
912708

query I rowsort
SELECT 94 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL + - ( + 8 ) * - col2 * col2 + - 0 FROM tab0 AS cor0
----
53792
8
8712

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

skipif mysql # not compatible
query I rowsort label-739
SELECT col1 + + ( + 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-740
SELECT - col0 * CAST( col2 AS SIGNED ) FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-740
SELECT - col0 * CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col2 * + col2 col0 FROM tab1 AS cor0
----
157464
185193
884736

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

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

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

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

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

query I rowsort
SELECT + cor0.col0 + + 42 AS col1 FROM tab2 AS cor0
----
120
121
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-746
SELECT ALL - - col2 DIV - 78 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-746
SELECT ALL - - col2 / - 78 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + col1 + + cor0.col0 * 70 FROM tab0 AS cor0
----
1766
2547
6321

query I rowsort
SELECT DISTINCT - col1 * 30 + + col0 AS col0 FROM tab2 AS cor0
----
-1692
-431
-923

onlyif mysql # use DIV operator for integer division
query I rowsort label-749
SELECT - - col2 + - col0 DIV 55 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-749
SELECT - - col2 + - col0 / 55 FROM tab0 AS cor0
----
1
33
81

query I rowsort
SELECT col0 + 93 * + cor0.col1 FROM tab2 AS cor0
----
1660
2890
5565

query I rowsort
SELECT ALL + col0 + + 33 * cor0.col0 FROM tab0 AS cor0
----
1190
3026
816

query I rowsort
SELECT cor0.col2 * 52 * - col2 AS col2 FROM tab2 cor0
----
-35152
-37908
-75088

query I rowsort
SELECT DISTINCT - + col2 + - 91 * - 88 FROM tab1 AS cor0
----
7912
7951
7954

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

query I rowsort
SELECT + cor0.col1 + - 4 FROM tab2 AS cor0
----
13
27
55

query I rowsort
SELECT col2 + + ( col0 ) FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-757
SELECT DISTINCT + + col1 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT + + col1 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + 33 + - col0 * col1 + + cor0.col0 FROM tab0 cor0
----
-2007
-3327
-7977

query I rowsort
SELECT ALL 81 + col2 FROM tab1 AS cor0
----
135
138
177

query I rowsort
SELECT - 45 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL + cor0.col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - - col1 - - 60 * + col1 FROM tab2 AS cor0
----
1037
1891
3599

skipif mysql # not compatible
query I rowsort
SELECT col2 - CAST ( ( col0 ) AS REAL ) * col2 * - 2 AS col1 FROM tab0
----
14678
1617
71

query I rowsort
SELECT ALL - col2 + - col1 * + 48 FROM tab2 AS cor0
----
-1515
-2858
-854

onlyif mysql # use DIV operator for integer division
query I rowsort label-765
SELECT DISTINCT col1 + col2 DIV - cor0.col1 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-765
SELECT DISTINCT col1 + col2 / - cor0.col1 FROM tab1 AS cor0
----
24
5
6

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

query I rowsort
SELECT ALL + 64 + 86 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab0 cor2
----
243 values hashing to b147f0e64aea81a44204e12b6b7aa11d

query I rowsort
SELECT DISTINCT col2 * - 53 AS col0 FROM tab2
----
-1378
-1431
-2014

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

query I rowsort
SELECT + 7 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT - col1 - col0 * 6 FROM tab1
----
-394
-44
-493

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

query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT 84 * - col1 - 9 FROM tab1 cor0
----
-1101
-2193
-849

onlyif mysql # use DIV operator for integer division
query I rowsort label-775
SELECT + 99 DIV - col1 AS col2 FROM tab2
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-775
SELECT + 99 / - col1 AS col2 FROM tab2
----
-1
-3
-5

query I rowsort
SELECT 59 * - col1 FROM tab1
----
-1534
-590
-767

query I rowsort
SELECT DISTINCT - ( + col1 ) + col0 AS col1 FROM tab0
----
-2
-62

query I rowsort
SELECT ALL col1 + - col1 * 63 + col0 * + col2 * + 3 FROM tab0
----
-2956
-5909
16252

onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT col2 * 18 + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
115
1477
596

skipif mysql # not compatible
query I rowsort label-779
SELECT col2 * 18 + col1 / col2 AS col0 FROM tab0 AS cor0
----
115
1477
596

onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT DISTINCT col2 DIV col1 + col2 - col2 * tab0.col1 AS col0 FROM tab0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT col2 / col1 + col2 - col2 * tab0.col1 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - 59 + - tab2.col1 FROM tab2
----
-118
-76
-90

query I rowsort
SELECT cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-783
SELECT DISTINCT col2 + - CAST( col1 AS SIGNED ) FROM tab2
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-783
SELECT DISTINCT col2 + - CAST ( col1 AS INTEGER ) FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT cor0.col1 * - 60 + col0 DIV col2 FROM tab1 AS cor0
----
-1560
-599
-780

skipif mysql # not compatible
query I rowsort label-784
SELECT cor0.col1 * - 60 + col0 / col2 FROM tab1 AS cor0
----
-1560
-599
-780

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

query I rowsort
SELECT - ( - col2 ) + tab1.col1 FROM tab1
----
109
67
80

query I rowsort
SELECT - - col0 * 17 * cor0.col0 AS col0 FROM tab0 AS cor0
----
134657
20825
9792

query I rowsort
SELECT DISTINCT + cor0.col1 * 86 AS col0 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT DISTINCT - col1 * ( + col0 + col2 ) AS col1 FROM tab0 AS cor0
----
-15561
-3492
-4902

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

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

query I rowsort
SELECT ALL 5 * cor0.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to a0d2da42273e1f78a87d706655416d58

query I rowsort
SELECT ALL ( - cor0.col0 + 95 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 7b4d04229c2c3f4c8263d635924e499f

query I rowsort
SELECT DISTINCT + col2 * col0 + + 47 AS col2 FROM tab2 AS cor0
----
2075
236
3049

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT - col0 / - col0 + ( + col1 ) col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT + + 71 + - col1 * col1 * - 83 FROM tab2 AS cor0
----
24058
288994
79834

query I rowsort
SELECT - 81 * col2 + col2 - 52 FROM tab1 AS cor0
----
-4372
-4612
-7732

query I rowsort
SELECT - - col1 + col2 * 12 AS col1 FROM tab0 AS cor0
----
1075
109
482

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

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

query I rowsort
SELECT ALL + 95 * + col0 + - col0 * + col2 * col1 AS col2 FROM tab1 cor0
----
-30400
-3927
-92240

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

query I rowsort
SELECT ALL - - 84 + cor0.col1 FROM tab2 AS cor0
----
101
115
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + col2 - cor0.col0 col0 FROM tab0 cor0
----
-15
-69
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT DISTINCT col2 DIV + col1 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT col2 / + col1 col2 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT - col1 * col1 FROM tab1 WHERE ( col2 * col0 ) <= ( - col2 + col1 )
----

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

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

query I rowsort
SELECT col0 * col2 + - 12 AS col1 FROM tab0 AS cor0
----
23
7286
780

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

query I rowsort
SELECT - col2 - + col0 AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL + tab1.col1 AS col0 FROM tab1 WHERE NOT NULL = + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab1.col2 + col0 col1 FROM tab1
----
-2913
-3185
-9136

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 > col0
----

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

query I rowsort
SELECT col0 * + col1 FROM tab2 WHERE NOT - col0 BETWEEN + col0 * col0 AND ( + col2 )
----
1343
217
4602

query I rowsort
SELECT + tab0.col1 * - tab0.col0 - col0 AS col0 FROM tab0
----
-2088
-3430
-8188

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col1 + col1 )
----

query I rowsort
SELECT ALL col2 * - col2 * tab1.col2 + col1 * + col1 FROM tab1
----
-156788
-185093
-884567

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( - col1 )
----

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

skipif mysql # not compatible
query I rowsort label-823
SELECT - col0 + col2 / tab0.col0 AS col2 FROM tab0
----
-23
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-824
SELECT ALL tab1.col1 + + col2 * + col0 DIV - col0 - + col2 * col1 * + col2 FROM tab1
----
-119891
-32537
-75844

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL tab1.col1 + + col2 * + col0 / - col0 - + col2 * col1 * + col2 FROM tab1
----
-119891
-32537
-75844

query I rowsort
SELECT - tab1.col2 * - col0 + col1 + + tab1.col2 * - col0 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col2 * + tab2.col0 * col1 AS col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL tab1.col0 * - tab1.col1 + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT col2 * col1 * - col2 + col0 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT ALL + col0 * col0 + tab0.col1 * col2 * col0 AS col0 FROM tab0 WHERE NOT ( col2 ) < - tab0.col0 + + col0
----
4620
672039
68688

onlyif mysql # use DIV operator for integer division
query I rowsort label-830
SELECT DISTINCT col1 * + col1 + col2 DIV - tab1.col0 AS col2 FROM tab1
----
100
168
658

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT col1 * + col1 + col2 / - tab1.col0 AS col2 FROM tab1
----
100
168
658

query I rowsort
SELECT - col1 + col1 + - col1 AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ( + 12 ) + - col0 + ( + 76 + + col0 ) * tab0.col2 FROM tab0
----
13453
3288
88

query I rowsort
SELECT 41 + col1 * col1 AS col2 FROM tab1 cor0
----
141
210
717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-834
SELECT CAST( ( col1 ) AS SIGNED ) + 29 AS col1 FROM tab0
----
115
120
126

skipif mysql # not compatible
query I rowsort label-834
SELECT CAST ( ( col1 ) AS INTEGER ) + 29 AS col1 FROM tab0
----
115
120
126

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

query I rowsort
SELECT ALL - + 95 + ( - cor0.col1 ) FROM tab0 AS cor0
----
-181
-186
-192

query I rowsort
SELECT ALL - - 92 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
127
3060
7633

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

query I rowsort
SELECT - 87 + col0 AS col2 FROM tab1 AS cor0
----
-23
-7
-84

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

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

query I rowsort
SELECT ALL + col2 * col2 * col2 - + col1 FROM tab1 AS cor0
----
157438
185183
884723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-843
SELECT 27 + col0 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-135
-3621
-7653

skipif mysql # not compatible
query I rowsort label-843
SELECT 27 + col0 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-135
-3621
-7653

query I rowsort
SELECT DISTINCT + - 46 AS col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT 38 + col2 AS col1 FROM tab0 cor0
----
120
39
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-846
SELECT DISTINCT - + col2 + + col1 DIV + col2 col1 FROM tab0 AS cor0
----
-31
-81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-846
SELECT DISTINCT - + col2 + + col1 / + col2 col1 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT ALL 57 * + col0 FROM tab1 AS cor0
----
171
3648
4560

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

query I rowsort
SELECT ALL 38 + col0 AS col0 FROM tab1
----
102
118
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-850
SELECT DISTINCT - ( - col2 ) + col0 * CAST( col2 + - col1 AS SIGNED ) AS col1 FROM tab2
----
-1
-2548
1697

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT - ( - col2 ) + col0 * CAST ( col2 + - col1 AS INTEGER ) AS col1 FROM tab2
----
-1
-2548
1697

query I rowsort
SELECT ALL + 1 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT - - cor0.col1 * + 42 * - col0 AS col0 FROM tab2 AS cor0
----
-193284
-56406
-9114

onlyif mysql # use DIV operator for integer division
query I rowsort label-853
SELECT col2 DIV + 77 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-853
SELECT col2 / + 77 AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-854
SELECT DISTINCT 21 DIV + col0 col0 FROM tab1
----
0
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT 21 / + col0 col0 FROM tab1
----
0
7

query I rowsort
SELECT ALL + col0 + 34 * - cor0.col0 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + - col0 * + col2 AS col1 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT + 18 AS col2 FROM tab2
----
18
18
18

query I rowsort
SELECT ALL 25 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT ALL - col0 * + 79 * col2 FROM tab1
----
-12798
-288192
-606720

query I rowsort
SELECT ALL col2 * col0 * col1 AS col1 FROM tab0
----
3395
664118
68112

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 90e25bbdedfdeba1119139dab203aeea

query I rowsort
SELECT col1 + col1 + - ( - tab0.col1 ) AS col2 FROM tab0
----
258
273
291

query I rowsort
SELECT 92 * + col0 FROM tab1
----
276
5888
7360

query I rowsort
SELECT ALL col0 - ( - col2 ) FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col2 * col2 + - tab2.col0 AS col1 FROM tab2
----
1365
598
722

query I rowsort
SELECT ALL - 27 + col2 FROM tab2
----
-1
0
11

query I rowsort
SELECT col2 * tab2.col0 * col1 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + - col0 * col2 - - col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

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

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT - + CAST ( NULL AS REAL ) - + ( + col0 + - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT cor0.col2 - - 53 FROM tab1 AS cor0
----
107
110
149

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

query I rowsort
SELECT col1 * 16 + + col0 AS col0 FROM tab0
----
1400
1545
1587

query I rowsort
SELECT DISTINCT - ( col2 ) * col1 + - col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + 34 + col2 * col2 FROM tab1
----
2950
3283
9250

onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT - col1 * + cor0.col2 + + col2 + - col2 DIV cor0.col1 AS col0 FROM tab1 cor0
----
-1159
-1352
-518

skipif mysql # not compatible
query I rowsort label-875
SELECT - col1 * + cor0.col2 + + col2 + - col2 / cor0.col1 AS col0 FROM tab1 cor0
----
-1159
-1352
-518

onlyif mysql # use DIV operator for integer division
query I rowsort label-876
SELECT + col2 + + col1 DIV + col1 + - col0 FROM tab2 AS cor0
----
-40
-51
21

skipif mysql # not compatible
query I rowsort label-876
SELECT + col2 + + col1 / + col1 + - col0 FROM tab2 AS cor0
----
-40
-51
21

query I rowsort
SELECT + col1 + + cor0.col0 + - col2 AS col0 FROM tab1 cor0
----
-25
-3
17

query I rowsort
SELECT ALL + 82 * col0 AS col2 FROM tab2 cor0
----
574
6396
6478

query I rowsort
SELECT DISTINCT + 83 * - col2 FROM tab2 cor0
----
-2158
-2241
-3154

query I rowsort
SELECT - col0 * + cor0.col0 + - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT col2 * col1 + + col1 * col2 AS col0 FROM tab0 cor0
----
14924
194
5676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 col1 FROM tab0 AS cor0
----
35
7298
792

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

query I rowsort
SELECT ALL + col2 * - cor0.col1 + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * col0 + + col2 + col2 col0 FROM tab1 cor0
----
-21
-2638
-3248

query I rowsort
SELECT DISTINCT - 79 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-179
-248
-755

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col0 * - col1 + 37 FROM tab1 cor0
----
1077
115
677

query I rowsort
SELECT + + cor0.col2 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT ALL + col1 DIV 2 AS col0 FROM tab1 AS cor0
----
13
5
6

skipif mysql # not compatible
query I rowsort label-890
SELECT ALL + col1 / 2 AS col0 FROM tab1 AS cor0
----
13
5
6

query I rowsort
SELECT ALL + + col2 + - ( - 61 ) AS col0 FROM tab2 cor0
----
87
88
99

query I rowsort
SELECT ALL cor0.col2 * col2 * + col1 + col1 FROM tab2 cor0
----
22630
24565
39943

query I rowsort
SELECT DISTINCT + col2 + 84 - + col2 AS col0 FROM tab0 AS cor0
----
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + col0 * col0 * col2 col0 FROM tab2 cor0
----
1408
158269
237243

onlyif mysql # use DIV operator for integer division
query I rowsort label-896
SELECT DISTINCT col2 + + 12 DIV + col0 AS col2 FROM tab1 AS cor0
----
57
58
96

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT col2 + + 12 / + col0 AS col2 FROM tab1 AS cor0
----
57
58
96

query I rowsort
SELECT ALL 99 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL - + 48 AS col1 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT 33 * + col0 * col1 FROM tab2 AS cor0
----
151866
44319
7161

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 - + ( - col1 ) col0 FROM tab1 AS cor0
----
-57
-70
-73

query I rowsort
SELECT - col2 + + 33 FROM tab1 AS cor0
----
-21
-24
-63

query I rowsort
SELECT col0 - ( 45 ) FROM tab1
----
-42
19
35

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

query I rowsort
SELECT DISTINCT - col1 * col0 - col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT col1 + - cor0.col0 * + col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
24
35
89

query I rowsort
SELECT - col0 + col0 * - col2 FROM tab1 AS cor0
----
-165
-3712
-7760

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT col1 + col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
196
229
271

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-915
SELECT ALL col0 * + col2 + col2 DIV + col0 col0 FROM tab0
----
35
7298
793

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-915
SELECT ALL col0 * + col2 + col2 / + col0 col0 FROM tab0
----
35
7298
793

onlyif mysql # use DIV operator for integer division
query I rowsort label-916
SELECT ALL col0 DIV - col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-916
SELECT ALL col0 / - col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

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

query I rowsort
SELECT col1 + cor0.col0 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * col1 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-921
SELECT DISTINCT - col1 + col0 DIV + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT - col1 + col0 / + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 * - cor0.col1 col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT + + col0 + col2 + col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT - col1 + + col2 + + col0 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT ( + tab2.col0 ) FROM tab2, tab0 cor0
----
7
78
79

query I rowsort
SELECT col2 * + col1 * col1 + col2 + 78 * - col0 FROM tab1 cor0
----
10080
36324
765

onlyif mysql # use DIV operator for integer division
query I rowsort label-927
SELECT DISTINCT + col1 + - ( + 13 ) DIV + col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT + col1 + - ( + 13 ) / + col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT col1 + - tab0.col0 * + col2 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col2 * + col2 + - tab0.col0 FROM tab0
----
-1113
-36
-6813

query I rowsort
SELECT ALL - 80 + - col2 + col2 FROM tab2
----
-80
-80
-80

query I rowsort
SELECT + 32 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT ( 35 ) AS col0 FROM tab1
----
35

query I rowsort
SELECT DISTINCT cor0.col2 + - 39 * col2 FROM tab1 AS cor0
----
-2052
-2166
-3648

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

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL CAST ( - col1 AS INTEGER ) * col0 - + col2 AS col2 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL col0 + col1 * cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
118860
49560
720900

onlyif mysql # use DIV operator for integer division
query I rowsort label-937
SELECT - col1 DIV col2 + - col0 + 78 FROM tab0 AS cor0
----
-12
-54
52

skipif mysql # not compatible
query I rowsort label-937
SELECT - col1 / col2 + - col0 + 78 FROM tab0 AS cor0
----
-12
-54
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 + 81 * + ( - col0 + + 98 ) * 61 col0 FROM tab2 AS cor0
----
103422
449848
95222

query I rowsort
SELECT + col2 * col2 - col1 * col1 FROM tab2 AS cor0
----
-232
-2805
1155

skipif mysql # not compatible
query I rowsort
SELECT + - col2 * cor0.col0 - - CAST ( col2 AS REAL ) * col2 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT 59 * tab0.col2 * 77 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 3578a8034027071cf0dbfb734834a0f6

query I rowsort
SELECT - + 41 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT + + col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT - col2 * + col1 - - col0 * - col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-946
SELECT + col1 + + ( - col1 ) DIV - col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-946
SELECT + col1 + + ( - col1 ) / - col0 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT ALL col1 * - 31 * 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-948
SELECT ALL - col0 * CAST( + col0 * - col1 AS SIGNED ) + - 45 AS col0 FROM tab0 cor0
----
118780
49491
720766

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL - col0 * CAST ( + col0 * - col1 AS INTEGER ) + - 45 AS col0 FROM tab0 cor0
----
118780
49491
720766

query I rowsort
SELECT - + col2 * + 92 + ( + col1 ) FROM tab1 AS cor0
----
-4942
-5234
-8819

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

query I rowsort
SELECT - col2 * cor0.col2 + 73 FROM tab2 AS cor0
----
-1371
-603
-656

query I rowsort
SELECT ALL + col2 * - col2 - + 67 AS col1 FROM tab1 AS cor0
----
-2983
-3316
-9283

query I rowsort
SELECT ALL ( cor0.col1 ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 36 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT ALL + cor0.col1 - ( + col0 ) * col0 FROM tab1 AS cor0
----
-4086
-6387
17

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

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL + + col2 / + col2 + col2 AS col2 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT DISTINCT - col1 + ( + col2 ) * - cor0.col2 * - ( + col0 ) FROM tab0 AS cor0
----
-62
26050
598345

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

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

query I rowsort
SELECT + ( - col0 ) + col0 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

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

query I rowsort
SELECT - 16 * + col0 AS col2 FROM tab2 AS cor0
----
-112
-1248
-1264

onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT DISTINCT col2 + col2 DIV ( 94 ) - col1 FROM tab1 AS cor0
----
28
47
84

skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT col2 + col2 / ( 94 ) - col1 FROM tab1 AS cor0
----
28
47
84

query I rowsort
SELECT ALL - 10 * cor0.col2 * col0 FROM tab0 AS cor0
----
-350
-72980
-7920

query I rowsort
SELECT ALL col2 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT - col0 * 18 FROM tab1
----
-1152
-1440
-54

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 94 AS REAL ) * col2 AS col1 FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT ALL col2 * ( cor0.col1 ) * + cor0.col0 + col2 * col1 AS col2 FROM tab2 cor0
----
121186
51680
6696

query I rowsort
SELECT DISTINCT - 19 + ( - col0 ) * col1 * col1 AS col1 FROM tab2 AS cor0
----
-22850
-271537
-6746

query I rowsort
SELECT ALL - col0 * + col2 + col1 * col0 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT DISTINCT + col1 * 37 AS col2 FROM tab1 AS cor0
----
370
481
962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-972
SELECT ALL + + CAST( col0 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL + + CAST ( col0 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
110
132
180

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-974
SELECT ALL col0 * 34 DIV + col1 FROM tab1
----
209
217
3

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL col0 * 34 / + col1 FROM tab1
----
209
217
3

query I rowsort
SELECT col2 * ( 65 ) - - col1 * 98 FROM tab2
----
4136
4793
7472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 12 + col1 col0 FROM tab1
----
130
169
338

query I rowsort
SELECT ALL - 9 * 92 FROM tab1 AS cor0
----
-828
-828
-828

query I rowsort
SELECT ALL + col2 + 71 * col2 FROM tab2 AS cor0
----
1872
1944
2736

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

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

query I rowsort
SELECT + ( + col1 ) * + col1 * ( col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
17522
2101
943

query I rowsort
SELECT ALL col1 * + cor0.col0 + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
1024
27
647

query I rowsort
SELECT - - 66 + + col0 FROM tab2 AS cor0
----
144
145
73

query I rowsort
SELECT ALL - col2 + - col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627

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

skipif mysql # not compatible
query I rowsort label-985
SELECT + CAST ( + 41 AS REAL ) / col1 + + CAST ( NULL AS INTEGER ) - col1 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 * + 17 + col0 AS col1 FROM tab1 AS cor0
----
-1552
-905
-915

query I rowsort
SELECT ALL + tab2.col1 + - 44 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d4f011437267154aaf608d952cd30a17

query I rowsort
SELECT 30 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT + col1 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL + cor0.col1 + col1 * - col0 + - col1 * ( col1 + col0 ) FROM tab0 AS cor0
----
-11438
-16102
-24388

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

query I rowsort
SELECT + - col0 * 45 AS col1 FROM tab1 cor0
----
-135
-2880
-3600

query I rowsort
SELECT ALL - 50 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487

query I rowsort
SELECT DISTINCT col0 * 53 - 35 FROM tab2 AS cor0
----
336
4099
4152

query I rowsort
SELECT ALL + + col0 * cor0.col2 - + col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 + + 97 + - col1 FROM tab2 cor0
----
2066
255
3082

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

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab2, tab0 AS cor0
----
-46

query I rowsort
SELECT ALL - - col2 * 7 + + col2 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT ALL - col2 * + 20 - col2 FROM tab1 AS cor0
----
-1134
-1197
-2016

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

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

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

query I rowsort
SELECT + + col2 + + cor0.col2 * col1 FROM tab1 cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT DISTINCT - col2 + - col1 DIV col0 - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-65

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT - col2 + - col1 / col0 - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-65

query I rowsort
SELECT - col2 * + col0 + 95 * col1 AS col1 FROM tab1 AS cor0
----
-2698
-6445
2308

query I rowsort
SELECT DISTINCT 52 + - cor0.col2 FROM tab1, tab1 AS cor0
----
-2
-44
-5

query I rowsort
SELECT ALL - col2 * 26 + col1 - 51 * + col2 * - col0 FROM tab1 AS cor0
----
184576
389197
6884

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

query I rowsort
SELECT - col1 * 36 * col2 AS col2 FROM tab1 AS cor0
----
-20520
-44928
-50544

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + ( - col1 ) AS REAL ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - ( ( - cor0.col0 ) ) * 71 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9ba0073b29b2011dfaebe56df3667c42

query I rowsort
SELECT + col0 + - col2 * ( col0 + col1 ) FROM tab0 AS cor0
----
-14671
-3606
-97

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col1 + - 52 FROM tab0, tab0 AS cor0
----
2012
3343
8047

query I rowsort
SELECT DISTINCT - col0 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT + - 48 * col2 AS col1 FROM tab1 cor0
----
-2592
-2736
-4608

query I rowsort
SELECT ALL - col1 + col2 * - col2 * cor0.col1 FROM tab2 AS cor0
----
-22630
-24565
-39943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + - ( col1 ) col2 FROM tab0 AS cor0
----
-7482
-8372
-9506

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

query I rowsort
SELECT - 85 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT ALL + col0 + + tab1.col1 * col0 DIV + col0 + + col1 FROM tab1
----
106
55
84

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + col0 + + tab1.col1 * col0 / + col0 + + col1 FROM tab1
----
106
55
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1024
SELECT + - col0 * + col1 * CAST( col0 * col0 AS SIGNED ) + - ( 28 * cor0.col2 ) FROM tab2 AS cor0
----
-11389
-27999296
-8382727

skipif mysql # not compatible
query I rowsort label-1024
SELECT + - col0 * + col1 * CAST ( col0 * col0 AS INTEGER ) + - ( 28 * cor0.col2 ) FROM tab2 AS cor0
----
-11389
-27999296
-8382727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 + col0 col1 FROM tab1
----
151
167
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT DISTINCT - col1 * - col1 + 34 DIV - 64 AS col1 FROM tab2
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT - col1 * - col1 + 34 / - 64 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT + + col0 * col1 * - ( col0 ) FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT 72 + col2 FROM tab2
----
110
98
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + ( + col1 * cor0.col1 ) col1 FROM tab0 cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-1030
SELECT ALL 76 DIV col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL 76 / col0 FROM tab0
----
0
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT + col1 * - col0 + col2 DIV + 14 AS col0 FROM tab0 AS cor0
----
-2062
-3395
-8094

skipif mysql # not compatible
query I rowsort label-1031
SELECT + col1 * - col0 + col2 / + 14 AS col0 FROM tab0 AS cor0
----
-2062
-3395
-8094

query I rowsort
SELECT - 67 - + 27 * - col2 AS col2 FROM tab2 AS cor0
----
635
662
959

query I rowsort
SELECT - + col0 * col1 * col0 + - col0 * col0 * + col1 AS col0 FROM tab0 AS cor0
----
-1441622
-237650
-99072

query I rowsort
SELECT col2 - 32 FROM tab1
----
22
25
64

query I rowsort
SELECT - + 78 * 39 FROM tab1 AS cor0
----
-3042
-3042
-3042

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

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

query I rowsort
SELECT + 3 + col0 FROM tab1 AS cor0
----
6
67
83

query I rowsort
SELECT DISTINCT - + 53 * + col2 FROM tab0 AS cor0
----
-1749
-4346
-53

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

query I rowsort
SELECT DISTINCT - - col1 + col1 + - col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col0 * + 85 * col2 FROM tab1
----
-13770
-310080
-652800

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT + col1 DIV - 83 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1043
SELECT + col1 / - 83 AS col1 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

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

query I rowsort
SELECT DISTINCT - cor0.col1 + + 81 FROM tab1, tab0 AS cor0
----
-10
-16
-5

query I rowsort
SELECT DISTINCT + col0 * + ( col2 ) AS col1 FROM tab0
----
35
7298
792

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

skipif mysql # not compatible
query I rowsort label-1048
SELECT DISTINCT - - CAST ( NULL AS REAL ) * col0 + - col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL 97 + - 33 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f

query I rowsort
SELECT + + col2 * 64 AS col0 FROM tab0 AS cor0
----
2112
5248
64

query I rowsort
SELECT DISTINCT 18 * col1 * col2 + 33 AS col1 FROM tab2 AS cor0
----
11661
15099
27645

query I rowsort
SELECT DISTINCT - + col0 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT - - 94 AS col0 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT ALL col1 * + col1 * + col0 FROM tab2 AS cor0
----
22831
271518
6727

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

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 36 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL 43 AS col1 FROM tab1
----
43
43
43

query I rowsort
SELECT ALL - - cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 + col0 * col0 col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab0 cor1, tab2, tab2 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2

query I rowsort
SELECT col1 * + 86 FROM tab1 AS cor0
----
1118
2236
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 23 * - col0 col0 FROM tab0 AS cor0
----
-186277
-47472
-78085

onlyif mysql # use DIV operator for integer division
query I rowsort label-1063
SELECT - col0 + tab2.col2 - - 68 DIV + 3 FROM tab2
----
-19
-30
42

skipif mysql # not compatible
query I rowsort label-1063
SELECT - col0 + tab2.col2 - - 68 / + 3 FROM tab2
----
-19
-30
42

query I rowsort
SELECT ( col0 * 79 ) AS col1 FROM tab2
----
553
6162
6241

query I rowsort
SELECT + + tab2.col0 AS col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

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

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT 18 * col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1067
SELECT - tab2.col0 DIV tab2.col0 + + col2 - - col1 AS col1 FROM tab2
----
54
57
84

skipif mysql # not compatible
query I rowsort label-1067
SELECT - tab2.col0 / tab2.col0 + + col2 - - col1 AS col1 FROM tab2
----
54
57
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + - 77 col0 FROM tab1
----
-3
-48
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( cor0.col0 * col1 ) col0 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT + cor1.col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

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

query I rowsort
SELECT DISTINCT + + cor0.col0 + col1 + - cor0.col2 FROM tab0 AS cor0
----
131
77
98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1075
SELECT ALL + + col0 DIV + col2 + + col2 AS col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL + + col0 / + col2 + + col2 AS col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT ALL - - col0 * + col1 * col0 + - col0 FROM tab2 AS cor0
----
106018
1512
358878

query I rowsort
SELECT ALL + cor0.col2 * col2 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT + col1 * col2 + col2 * col1 + 80 FROM tab2 AS cor0
----
1372
1754
3148

query I rowsort
SELECT ALL + + col1 + - 15 + - cor0.col0 * col2 * cor0.col2 FROM tab2 AS cor0
----
-114074
-5087
-52684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 * ( - col2 ) col2 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT ALL col2 DIV col1 + - 15 + col1 AS col2 FROM tab0 AS cor0
----
71
76
82

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL col2 / col1 + - 15 + col1 AS col2 FROM tab0 AS cor0
----
71
76
82

query I rowsort
SELECT ( - 2 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT ALL - cor0.col2 * - col1 - - col2 AS col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT col2 * - col2 + 72 AS col0 FROM tab1 AS cor0
----
-2844
-3177
-9144

query I rowsort
SELECT ALL + col1 - + col2 * - ( col1 ) FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + + 93 FROM tab1 cor0
----
93

query I rowsort
SELECT DISTINCT col0 + - col2 - + ( col2 + + col0 * col0 ) FROM tab1 cor0
----
-114
-4146
-6512

query I rowsort
SELECT cor0.col1 * - ( 3 ) FROM tab1 AS cor0
----
-30
-39
-78

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

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

query I rowsort
SELECT DISTINCT - col0 - cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158

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

query I rowsort
SELECT + col0 + - 95 FROM tab1 AS cor0
----
-15
-31
-92

query I rowsort
SELECT ALL + ( - col2 ) + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + col0 * + col2 * cor0.col0 + + 81 FROM tab1 cor0
----
233553
567
614481

query I rowsort
SELECT DISTINCT + col0 * 70 + - col2 FROM tab1 AS cor0
----
156
4423
5504

query I rowsort
SELECT ALL + 19 * col1 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT - + 23 * col2 AS col0 FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT - ( - col0 ) + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - 82 + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
207
3399
879

query I rowsort
SELECT DISTINCT + col2 * 64 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT - col2 + + 64 + + col2 FROM tab0
----
64
64
64

query I rowsort
SELECT + col1 + col1 + - 75 FROM tab0
----
107
119
97

query I rowsort
SELECT + 5 * col0 AS col0 FROM tab1 AS cor0
----
15
320
400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1104
SELECT ALL + CAST( - 63 AS SIGNED ) + col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-62
1026
6661

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL + CAST ( - 63 AS INTEGER ) + col2 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-62
1026
6661

query I rowsort
SELECT ALL - col0 * col1 + + 97 * col2 FROM tab1
----
4889
5160
8272

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab1
----
18

query I rowsort
SELECT DISTINCT - 1 * cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 0 * + col0 + + col2 + + ( 56 ) AS col2 FROM tab2 AS cor0
----
82
83
94

query I rowsort
SELECT ALL + 0 * - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - - 53 + 74 AS col0 FROM tab1 AS cor0
----
127
127
127

query I rowsort
SELECT DISTINCT - 4 * col1 FROM tab0 AS cor0
----
-344
-364
-388

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + + 73 col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d04d054941c860441df9bac8db21cb97

query I rowsort
SELECT - ( - col2 ) * + tab2.col2 * ( - col1 ) FROM tab2
----
-22599
-24548
-39884

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

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

query I rowsort
SELECT ALL + ( tab2.col1 * col1 + + col0 ) FROM tab2
----
3559
368
968

query I rowsort
SELECT ALL - 64 + - tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to c5d980a94574162d74f4eb7d3e4ca660

query I rowsort
SELECT col2 + - col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 45 * - cor0.col2 * 44 + 86 + + col0 * - ( + col0 ) FROM tab0 AS cor0
----
-170195
-3119
-65830

query I rowsort
SELECT - 4 + - col2 AS col1 FROM tab2 AS cor0
----
-30
-31
-42

query I rowsort
SELECT ALL - - 52 + - col2 AS col1 FROM tab0 AS cor0
----
-30
19
51

query I rowsort
SELECT col0 + col2 + + 84 * 8 AS col0 FROM tab1 AS cor0
----
729
793
848

query I rowsort
SELECT ALL - col2 + 23 * - col1 FROM tab1
----
-287
-395
-652

query I rowsort
SELECT ALL col1 * - col2 * - col0 + + cor0.col1 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT + + cor0.col2 + + 80 * - col1 AS col1 FROM tab0 AS cor0
----
-6847
-7198
-7759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 * ( - col1 ) col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col0 + 59 - col2 FROM tab2 cor0
----
100
111
39

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

query I rowsort
SELECT ALL - col0 * - 9 + + cor0.col0 * + col1 FROM tab2 AS cor0
----
2054
280
5304

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL 82 * 67 + + col1 FROM tab2 AS cor0
----
5511
5525
5553

query I rowsort
SELECT DISTINCT - + col0 * col0 * col2 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT 45 + cor0.col0 FROM tab2 AS cor0
----
123
124
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1135
SELECT - col1 + col1 DIV col0 + + col0 FROM tab0
----
-1
-59
-60

skipif mysql # not compatible
query I rowsort label-1135
SELECT - col1 + col1 / col0 + + col0 FROM tab0
----
-1
-59
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1136
SELECT + ( 6 ) + + col2 + cor0.col2 DIV + col1 col2 FROM tab0 AS cor0
----
39
7
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1136
SELECT + ( 6 ) + + col2 + cor0.col2 / + col1 col2 FROM tab0 AS cor0
----
39
7
88

query I rowsort
SELECT ALL - 39 AS col2 FROM tab2
----
-39
-39
-39

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

skipif mysql # not compatible
query I rowsort label-1138
SELECT + col0 - CAST ( 0 * - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col1 - col1 * ( - col0 ) FROM tab2
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 - 6 * + col2 col1 FROM tab2
----
3325
61
799

query I rowsort
SELECT - col1 + + col2 + + col0 FROM tab1
----
111
163
31

query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT 94 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1144
SELECT col0 + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-1144
SELECT col0 + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL cor1.col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - - cor0.col1 + col2 * col2 * + ( - col1 + col2 * 89 ) AS col0 FROM tab1 AS cor0
----
13938506
16449697
78621709

query I rowsort
SELECT + - 20 * col2 FROM tab1 AS cor0
----
-1080
-1140
-1920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1148
SELECT ALL + CAST( tab0.col1 AS SIGNED ) AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + CAST ( tab0.col1 AS INTEGER ) AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - + col1 + col1 * + col0 - 51 * col1 AS col1 FROM tab0 AS cor0
----
-1649
-2408
3367

onlyif mysql # use DIV operator for integer division
query I rowsort label-1150
SELECT ALL + - col0 DIV col1 + + ( - col0 ) * col2 FROM tab1 cor0
----
-162
-3654
-7686

skipif mysql # not compatible
query I rowsort label-1150
SELECT ALL + - col0 / col1 + + ( - col0 ) * col2 FROM tab1 cor0
----
-162
-3654
-7686

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

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

query I rowsort
SELECT - cor0.col1 * col2 * + 15 FROM tab1 AS cor0
----
-18720
-21060
-8550

query I rowsort
SELECT col1 * 12 AS col0 FROM tab1
----
120
156
312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + cor0.col0 * + 41 col0 FROM tab0 AS cor0
----
1070
1532
3740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - ( col2 ) * - col2 col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

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

query I rowsort
SELECT + col1 * col1 + - tab0.col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT + + col0 * 82 AS col1 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT - col1 + ( col2 ) + 23 AS col0 FROM tab1 cor0
----
106
51
70

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 77 col0 FROM tab0
----
-2541
-6314
-77

query I rowsort
SELECT tab0.col0 * + 62 FROM tab0
----
1488
2170
5518

onlyif mysql # use DIV operator for integer division
query I rowsort label-1163
SELECT DISTINCT col1 + col2 * cor0.col1 DIV + ( + cor0.col1 ) FROM tab2 cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT col1 + col2 * cor0.col1 / + ( + cor0.col1 ) FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - - col0 * 42 FROM tab2 AS cor0
----
294
3276
3318

query I rowsort
SELECT ALL col0 + + 85 AS col0 FROM tab0 AS cor0
----
109
120
174

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 33 col0 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT + col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + + col2 + - col1 * col1 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - - col1 * - col0 + + col0 * col2 AS col1 FROM tab1 cor0
----
3008
6640
84

query I rowsort
SELECT DISTINCT col1 * - 75 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT DISTINCT col0 * 85 AS col0 FROM tab2
----
595
6630
6715

query I rowsort
SELECT col0 * ( col2 ) AS col0 FROM tab0
----
35
7298
792

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

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

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

query I rowsort
SELECT DISTINCT - ( - col1 ) + + tab2.col1 FROM tab2
----
118
34
62

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

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

query I rowsort
SELECT + 3 * cor0.col0 + + col2 * col1 FROM tab0 AS cor0
----
202
2910
7729

query I rowsort
SELECT - + col2 + - 47 AS col0 FROM tab2 AS cor0
----
-73
-74
-85

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

query I rowsort
SELECT + + col1 * 48 - col0 FROM tab2 AS cor0
----
1481
2754
737

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

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

query I rowsort
SELECT cor0.col2 + col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + col1 + + 54 FROM tab1 cor0
----
64
67
80

query I rowsort
SELECT cor0.col2 + ( + col0 * col0 ) AS col1 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-1188
SELECT DISTINCT col0 + + col1 DIV - 37 AS col2 FROM tab2 AS cor0
----
7
77
79

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT col0 + + col1 / - 37 AS col2 FROM tab2 AS cor0
----
7
77
79

query I rowsort
SELECT + col2 * - 90 AS col1 FROM tab1 AS cor0
----
-4860
-5130
-8640

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1191
SELECT ALL + col1 DIV + CAST( + 82 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL ( - 28 ) * + cor0.col2 FROM tab2 AS cor0
----
-1064
-728
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-1194
SELECT ALL - + 96 + cor0.col2 + col2 * 78 DIV 93 FROM tab2 AS cor0
----
-27
-47
-49

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - + 96 + cor0.col2 + col2 * 78 / 93 FROM tab2 AS cor0
----
-27
-47
-49

query I rowsort
SELECT DISTINCT + + cor0.col1 * 92 FROM tab2 cor0
----
1564
2852
5428

query I rowsort
SELECT DISTINCT + col0 + + 44 FROM tab2 AS cor0
----
122
123
51

query I rowsort
SELECT DISTINCT - - 66 + + col0 FROM tab1 AS cor0
----
130
146
69

query I rowsort
SELECT ALL + 31 + - col0 + + col2 * 36 FROM tab1 cor0
----
1972
2019
3407

query I rowsort
SELECT ALL + ( - col2 ) + col2 * col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT col2 * 72 AS col1 FROM tab0 AS cor0
----
2376
5904
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1201
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) - col0 * - ( col0 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
106114
1550
359015

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) - col0 * - ( col0 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
106114
1550
359015

query I rowsort
SELECT DISTINCT + 53 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
398
4160
4225

query I rowsort
SELECT - ( - 64 ) * col0 AS col1 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT ALL - ( + 29 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT + col2 * 55 - - 83 * - col0 AS col1 FROM tab1
----
-1360
-2177
2721

query I rowsort
SELECT - tab2.col1 * + col0 * col1 - + col2 * - 55 FROM tab2
----
-20741
-270088
-5242

query I rowsort
SELECT + + 52 FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT col0 + - ( + col1 * col2 ) AS col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT - col2 + col0 * - col2 FROM tab1
----
-216
-3705
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * - col2 col0 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT DISTINCT + 8 * + col0 - 83 AS col2 FROM tab1 AS cor0
----
-59
429
557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + + col0 col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) + + 25 * + col1 FROM tab0 AS cor0
----
2174
2364
2460

query I rowsort
SELECT ALL 85 * col2 FROM tab1 cor0
----
4590
4845
8160

query I rowsort
SELECT col2 + col0 * + ( - ( cor0.col1 ) ) - 60 FROM tab0 AS cor0
----
-2091
-3454
-8077

query I rowsort
SELECT - + col0 + - col1 + + ( col1 ) * col0 * + 65 FROM tab1 AS cor0
----
41526
5041
67507

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

query I rowsort
SELECT - + cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1219
SELECT 82 DIV - 86 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1219
SELECT 82 / - 86 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 19 * col1 * col0 AS col0 FROM tab0
----
-153881
-39216
-64505

query I rowsort
SELECT - col2 + tab1.col1 + col0 FROM tab1
----
-25
-3
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1222
SELECT - - col1 - col0 DIV col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1222
SELECT - - col1 - col0 / col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 + + col1 - - ( - col2 * + col2 + cor0.col0 ) FROM tab1 AS cor0
----
-2833
-3118
-9027

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

query I rowsort
SELECT ALL 22 * col1 FROM tab1 cor0
----
220
286
572

query I rowsort
SELECT - 90 * + col1 FROM tab2
----
-1530
-2790
-5310

query I rowsort
SELECT + col1 + col1 + + 91 AS col2 FROM tab2
----
125
153
209

query I rowsort
SELECT tab1.col2 + col0 - - col0 * - 25 FROM tab1
----
-1479
-18
-1824

query I rowsort
SELECT + + col1 + 38 AS col2 FROM tab1 AS cor0
----
48
51
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT DISTINCT ( col2 ) + 45 DIV 55 AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT ( col2 ) + 45 / 55 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT - - col1 + - 90 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-244
-5750
-7187

query I rowsort
SELECT col1 + col0 * + 40 AS col2 FROM tab0 cor0
----
1046
1497
3651

onlyif mysql # use DIV operator for integer division
query I rowsort label-1233
SELECT + cor0.col2 DIV - 9 AS col0 FROM tab1 AS cor0
----
-10
-6
-6

skipif mysql # not compatible
query I rowsort label-1233
SELECT + cor0.col2 / - 9 AS col0 FROM tab1 AS cor0
----
-10
-6
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1234
SELECT + - col1 + - 68 - 64 DIV - col2 FROM tab0 cor0
----
-101
-153
-159

skipif mysql # not compatible
query I rowsort label-1234
SELECT + - col1 + - 68 - 64 / - col2 FROM tab0 cor0
----
-101
-153
-159

query I rowsort
SELECT - col2 + + col0 + col1 FROM tab2
----
11
111
58

query I rowsort
SELECT - col0 * - col2 - - col2 FROM tab0 cor0
----
36
7380
825

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1238
SELECT - col2 / 36 + - col1 col2 FROM tab2 AS cor0
----
-18
-31
-59

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

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

skipif mysql # not compatible
query I rowsort label-1240
SELECT cor0.col0 + CAST ( NULL AS REAL ) / 51 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 38 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

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

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

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

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

query I rowsort
SELECT + - 78 FROM tab0 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL 44 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL - + col2 + + ( col0 * 16 + + col0 ) FROM tab2 AS cor0
----
1300
1305
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1248
SELECT DISTINCT 29 * col0 DIV col2 AS col1 FROM tab1
----
1
24
32

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT 29 * col0 / col2 AS col1 FROM tab1
----
1
24
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col2 FROM tab2
----
45
45
45

query I rowsort
SELECT - 2 AS col1 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - 78 * col2 * + col1 AS col2 FROM tab1 AS cor0
----
-109512
-44460
-97344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * col0 * col1 + col0 col2 FROM tab0
----
-118790
-49512
-720722

query I rowsort
SELECT 13 * - col2 AS col1 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT ALL - 84 AS col2 FROM tab2 cor0
----
-84
-84
-84

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1256
SELECT + col1 DIV col2 + - col0 * col2 + cor0.col2 * + ( + col0 ) * + cor0.col0 FROM tab1 cor0
----
229824
324
606720

skipif mysql # not compatible
query I rowsort label-1256
SELECT + col1 / col2 + - col0 * col2 + cor0.col2 * + ( + col0 ) * + cor0.col0 FROM tab1 cor0
----
229824
324
606720

query I rowsort
SELECT + - 62 FROM tab1 AS cor0
----
-62
-62
-62

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

query I rowsort
SELECT - col2 + col1 * 57 AS col0 FROM tab1 AS cor0
----
1428
513
645

query I rowsort
SELECT + 3 * + col2 * + col2 FROM tab0
----
20172
3
3267

query I rowsort
SELECT ALL col0 * 19 * col0 AS col1 FROM tab1
----
121600
171
77824

query I rowsort
SELECT ALL 79 * col0 FROM tab0
----
1896
2765
7031

query I rowsort
SELECT - + col2 + - col1 * + col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + - cor0.col0 * + 50 FROM tab1 AS cor0
----
-141
2400
896

query I rowsort
SELECT cor2.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT - col2 - + col1 * + col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-1267
SELECT DISTINCT col2 DIV 82 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT col2 / 82 FROM tab1
----
0
1

query I rowsort
SELECT ( tab1.col2 ) * + tab1.col2 * + col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT DISTINCT col0 * col1 + - col2 * col2 + 52 AS col0 FROM tab1
----
-2557
-2786
-8124

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

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

query I rowsort
SELECT - + col0 * col0 + - col1 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT + 52 + + col2 * + col2 FROM tab0 AS cor0
----
1141
53
6776

query I rowsort
SELECT - + cor0.col2 + - col0 * col1 * + col2 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT + - col1 * - 17 FROM tab1 AS cor0
----
170
221
442

onlyif mysql # use DIV operator for integer division
query I rowsort label-1275
SELECT DISTINCT 88 + tab2.col1 * col2 DIV - col0 FROM tab2
----
-31
69
80

skipif mysql # not compatible
query I rowsort label-1275
SELECT DISTINCT 88 + tab2.col1 * col2 / - col0 FROM tab2
----
-31
69
80

query I rowsort
SELECT ALL + col1 + ( col2 ) * 85 FROM tab0
----
182
2891
7061

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT ( - col2 ) + tab1.col0 DIV + col1 - col2 AS col0 FROM tab1
----
-108
-108
-186

skipif mysql # not compatible
query I rowsort label-1278
SELECT ( - col2 ) + tab1.col0 / + col1 - col2 AS col0 FROM tab1
----
-108
-108
-186

query I rowsort
SELECT ALL + 47 + + col1 * col0 FROM tab2
----
1390
264
4649

query I rowsort
SELECT + cor0.col0 + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT col2 * 52 - col2 * col0 FROM tab1 cor0
----
-2688
-684
2646

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

query I rowsort
SELECT ALL 12 * col1 + - col0 * ( - col0 ) FROM tab0 AS cor0
----
1608
2389
9013

query I rowsort
SELECT + ( + col1 ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
2
62
62

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

query I rowsort
SELECT DISTINCT 78 * 91 + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
7774
7827
8542

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1288
SELECT + - CAST ( cor0.col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - 84 * 60 * col0 + 32 FROM tab0 AS cor0
----
-120928
-176368
-448528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + - cor0.col0 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 + - col1 FROM tab0 AS cor0
----
-177590
-329412
-737100

query I rowsort
SELECT ALL - 81 + col0 AS col2 FROM tab2 AS cor0
----
-2
-3
-74

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 38 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT ALL - 23 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT - 33 * + col1 AS col1 FROM tab2 cor0
----
-1023
-1947
-561

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
0

query I rowsort
SELECT ALL - col1 * + ( - col1 ) * col0 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT ALL - col2 * - ( 92 * - col1 ) FROM tab2
----
-141128
-59432
-77004

query I rowsort
SELECT - col2 * + col2 * col1 + col1 AS col1 FROM tab1
----
-119795
-32480
-75790

onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT ALL + cor0.col0 + 8 DIV + cor0.col0 FROM tab2 AS cor0
----
78
79
8

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + cor0.col0 + 8 / + cor0.col0 FROM tab2 AS cor0
----
78
79
8

query I rowsort
SELECT - 74 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

query I rowsort
SELECT DISTINCT + + col1 * + 57 AS col2 FROM tab1 AS cor0
----
1482
570
741

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

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

query I rowsort
SELECT - col1 + + 86 AS col1 FROM tab2 cor0
----
27
55
69

query I rowsort
SELECT ALL - + col1 * - 63 + cor0.col0 * col1 + + ( - col2 ) * - col2 * + col2 AS col1 FROM tab0 AS cor0
----
43419
565200
9507

query I rowsort
SELECT DISTINCT 47 - + col2 FROM tab1 cor0
----
-10
-49
-7

query I rowsort
SELECT DISTINCT 57 + tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
139
58
90

query I rowsort
SELECT ALL - col1 - ( 91 ) AS col1 FROM tab2
----
-108
-122
-150

onlyif mysql # use DIV operator for integer division
query I rowsort label-1315
SELECT + col2 DIV + col0 AS col0 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1315
SELECT + col2 / + col0 AS col0 FROM tab1 cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-1316
SELECT - 77 + col2 + + col1 DIV 53 FROM tab1
----
-20
-23
19

skipif mysql # not compatible
query I rowsort label-1316
SELECT - 77 + col2 + + col1 / 53 FROM tab1
----
-20
-23
19

query I rowsort
SELECT col2 * - 50 AS col2 FROM tab1
----
-2700
-2850
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 33 ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT - col2 * 53 AS col1 FROM tab1
----
-2862
-3021
-5088

query I rowsort
SELECT ALL + + col1 * 33 FROM tab2 AS cor0
----
1023
1947
561

query I rowsort
SELECT - col2 + 22 * 34 FROM tab0 AS cor0
----
666
715
747

query I rowsort
SELECT + col2 * ( 25 ) FROM tab1 AS cor0
----
1350
1425
2400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1323
SELECT ALL + col1 + + col0 DIV col0 col1 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL + col1 + + col0 / col0 col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT ( 7 ) * col0 * + cor0.col2 + - col0 + col0 FROM tab1 AS cor0
----
1134
25536
53760

query I rowsort
SELECT DISTINCT + col1 * - 81 + col0 AS col0 FROM tab0 AS cor0
----
-6942
-7282
-7822

query I rowsort
SELECT DISTINCT + ( 68 ) * col0 AS col1 FROM tab2 AS cor0
----
476
5304
5372

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

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

query I rowsort
SELECT ALL 2 AS col1 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT ALL + 37 + col2 AS col1 FROM tab1 AS cor0
----
133
91
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-1330
SELECT DISTINCT - 64 * col2 DIV - col1 FROM tab1
----
132
364
472

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT - 64 * col2 / - col1 FROM tab1
----
132
364
472

query I rowsort
SELECT ALL - 40 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1332
SELECT - + col2 * + col0 - col0 DIV + col0 FROM tab1 cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-1332
SELECT - + col2 * + col0 - col0 / + col0 FROM tab1 cor0
----
-163
-3649
-7681

query I rowsort
SELECT DISTINCT + + 1 + + col1 AS col0 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + col1 * col2 + + col2 + col2 FROM tab1 AS cor0
----
1440
1512
684

query I rowsort
SELECT DISTINCT col0 * col0 + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT + + col1 + col1 * + col2 + 38 FROM tab0 cor0
----
232
2962
7591

onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT 12 DIV col0 col0 FROM tab1 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1337
SELECT 12 / col0 col0 FROM tab1 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT - - 78 FROM tab1 cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - 37 * cor0.col1 FROM tab0 AS cor0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL + 47 * - col2 FROM tab2
----
-1222
-1269
-1786

query I rowsort
SELECT - 74 * cor0.col1 FROM tab2 AS cor0
----
-1258
-2294
-4366

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

query I rowsort
SELECT + col1 + + 88 FROM tab1 cor0
----
101
114
98

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 79 FROM tab2 AS cor0
----
2054
2133
3002

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

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

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

query I rowsort
SELECT ALL + 32 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f

query I rowsort
SELECT + - 33 + 90 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT tab2.col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-1354
SELECT - col0 * + col2 + + 21 DIV col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-1354
SELECT - col0 * + col2 + + 21 / col1 FROM tab0 AS cor0
----
-35
-7298
-792

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

query I rowsort
SELECT - col2 + - cor0.col1 * 97 FROM tab1 AS cor0
----
-1027
-1357
-2576

query I rowsort
SELECT + + col0 * - 25 + - col0 FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT ALL - 34 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT col1 + + col2 * - 59 AS col0 FROM tab1 AS cor0
----
-3160
-3353
-5651

query I rowsort
SELECT col1 * 80 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT ALL col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + cor0.col1 + + 36 * - 83 FROM tab2 AS cor0
----
-2929
-2957
-2971

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT ALL + cor0.col0 DIV 52 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + cor0.col0 / 52 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col1 - + col2 * + col0 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + 8 AS col1 FROM tab2 AS cor0
----
8
8
8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1368
SELECT ALL - ( col2 ) DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - ( col2 ) / col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + 45 FROM tab0, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1370
SELECT + CAST( col1 AS SIGNED ) col1 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1370
SELECT + CAST ( col1 AS INTEGER ) col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab0
----
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1372
SELECT ALL - ( + col1 + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL - ( + col1 + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL col2 - - col2 * + col2 AS col1 FROM tab1
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-1374
SELECT - cor0.col1 + col0 * + 15 - col2 DIV + col1 AS col1 FROM tab0 cor0
----
1244
274
428

skipif mysql # not compatible
query I rowsort label-1374
SELECT - cor0.col1 + col0 * + 15 - col2 / + col1 AS col1 FROM tab0 cor0
----
1244
274
428

query I rowsort
SELECT DISTINCT col0 + + ( - cor0.col0 ) * + col2 FROM tab1 AS cor0
----
-159
-3584
-7600

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

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

query I rowsort
SELECT - 99 + - col2 * col2 FROM tab0
----
-100
-1188
-6823

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1378
SELECT col2 + - CAST( col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-1378
SELECT col2 + - CAST ( col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT 94 + 33 AS col0 FROM tab0, tab0 AS cor0
----
127

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

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

query I rowsort
SELECT DISTINCT tab1.col0 + ( col1 ) * + col1 AS col0 FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT ALL cor0.col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL cor0.col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - 79 * ( col2 ) + + col0 * col2 FROM tab0 AS cor0
----
2800
583840
63360

onlyif mysql # use DIV operator for integer division
query I rowsort label-1385
SELECT DISTINCT - col1 DIV 35 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT - col1 / 35 AS col1 FROM tab1 cor0
----
0

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * CAST ( col1 AS REAL ) AS col2 FROM tab1 cor0
----
1040
640
78

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab2
----
21
21
21

query I rowsort
SELECT col2 - 19 * - tab2.col0 AS col0 FROM tab2
----
1508
1539
160

query I rowsort
SELECT ( - col2 + col2 ) AS col1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1392
SELECT ALL CAST( NULL AS DECIMAL ) * - 9 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL CAST ( NULL AS REAL ) * - 9 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col0 * 53 - col0 AS col1 FROM tab0
----
-1296
-1890
-4806

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

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

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

query I rowsort
SELECT ALL + 32 - - 82 FROM tab1 AS cor0
----
114
114
114

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1398
SELECT DISTINCT + + col0 * - col2 + 87 DIV 24 - col2 * 58 AS col1 FROM tab2 AS cor0
----
-1752
-3533
-5203

skipif mysql # not compatible
query I rowsort label-1398
SELECT DISTINCT + + col0 * - col2 + 87 / 24 - col2 * 58 AS col1 FROM tab2 AS cor0
----
-1752
-3533
-5203

onlyif mysql # use DIV operator for integer division
query I rowsort label-1399
SELECT ALL col0 + - col2 DIV - 97 + col0 * - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL col0 + - col2 / - 97 + col0 * - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT - 4 * col2 AS col1 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT + + 35 AS col1 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT ALL - + col2 * + col0 + 67 FROM tab0 cor0
----
-7231
-725
32

query I rowsort
SELECT DISTINCT - - 39 AS col2 FROM tab2 AS cor0
----
39

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

query I rowsort
SELECT DISTINCT - ( 20 * + col0 ) FROM tab1
----
-1280
-1600
-60

query I rowsort
SELECT ALL + 35 + col2 AS col1 FROM tab0 AS cor0
----
117
36
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 * col2 col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + col0 + + 43 FROM tab0 cor0
----
132
67
78

query I rowsort
SELECT ALL - 24 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col0 ) col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - 43 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 46 col2 FROM tab1
----
110
126
49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col0 + 79 * tab2.col2 * ( col1 ) FROM tab2
----
121264
51113
66130

query I rowsort
SELECT ALL - col2 + - col1 + - col2 * col2 FROM tab0
----
-1208
-6897
-99

query I rowsort
SELECT ALL - 4 + col1 AS col2 FROM tab2
----
13
27
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-1418
SELECT + col0 DIV + 53 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1418
SELECT + col0 / + 53 FROM tab1
----
0
1
1

query I rowsort
SELECT ( tab2.col2 + + col1 ) * + col2 AS col1 FROM tab2
----
1566
2090
2210

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

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

query I rowsort
SELECT ALL + 5 * col1 AS col0 FROM tab2 AS cor0
----
155
295
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1422
SELECT - 83 * col2 DIV - tab1.col2 FROM tab1
----
83
83
83

skipif mysql # not compatible
query I rowsort label-1422
SELECT - 83 * col2 / - tab1.col2 FROM tab1
----
83
83
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT col2 - + col1 DIV + col2 AS col1 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-1423
SELECT col2 - + col1 / + col2 AS col1 FROM tab0
----
-96
31
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 + 3 * col1 col2 FROM tab2
----
2205
282
3053

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

query I rowsort
SELECT DISTINCT - 66 * - col2 AS col2 FROM tab2
----
1716
1782
2508

onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT ALL + col1 DIV - 78 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL + col1 / - 78 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT 1 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT ALL 94 DIV - col2 FROM tab0
----
-1
-2
-94

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL 94 / - col2 FROM tab0
----
-1
-2
-94

query I rowsort
SELECT 17 * - col2 * - col0 + col0 AS col1 FROM tab0
----
124155
13488
630

query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + ( + col2 ) - - ( - col1 ) * col0 AS col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT 93 * col1 + - tab1.col1 FROM tab1
----
1196
2392
920

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT tab1.col2 + - 58 FROM tab1
----
-1
-4
38

query I rowsort
SELECT col0 * + 59 FROM tab1 AS cor0
----
177
3776
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-1438
SELECT ALL + cor0.col1 DIV col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL + cor0.col1 / col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + col0 * ( - col0 ) * col2 + 68 FROM tab1
----
-233404
-418
-614332

query I rowsort
SELECT + ( + 80 ) FROM tab2, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

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

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

query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

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

query I rowsort
SELECT - - col0 * - ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + cor0.col1 + 46 * 89 AS col0 FROM tab0 AS cor0
----
4180
4185
4191

query I rowsort
SELECT - col1 + col2 * - 15 FROM tab2 AS cor0
----
-436
-449
-587

query I rowsort
SELECT ALL col1 * ( + col1 ) AS col2 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1449
SELECT DISTINCT - + col0 + - CAST( + col0 + - col0 AS SIGNED ) DIV 34 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - + col0 + - CAST ( + col0 + - col0 AS INTEGER ) / 34 FROM tab0 AS cor0
----
-24
-35
-89

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

query I rowsort
SELECT ALL - cor0.col0 * col0 * col0 + col1 FROM tab2 AS cor0
----
-312
-474493
-493022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

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

query I rowsort
SELECT ( - 78 ) * col2 FROM tab1 cor0
----
-4212
-4446
-7488

query I rowsort
SELECT DISTINCT + + 91 AS col2 FROM tab0 cor0
----
91

query I rowsort
SELECT - col0 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

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

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

query I rowsort
SELECT - col1 * + cor0.col2 + 59 FROM tab0 AS cor0
----
-2779
-38
-7403

query I rowsort
SELECT ALL 63 + + col2 FROM tab0 AS cor0
----
145
64
96

query I rowsort
SELECT - col2 * - col1 + - col0 * ( + col1 * col0 ) FROM tab1 AS cor0
----
-40390
-81952
1170

query I rowsort
SELECT + 61 * col1 * + 40 AS col0 FROM tab2
----
143960
41480
75640

query I rowsort
SELECT - 57 * col1 - col0 * col1 FROM tab2 cor0
----
-1984
-2312
-7965

query I rowsort
SELECT - 58 + - col1 * - col0 * col1 FROM tab2 AS cor0
----
22773
271460
6669

query I rowsort
SELECT DISTINCT - col2 * col1 + - col0 * col0 AS col1 FROM tab2 cor0
----
-6887
-7618
-886

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

query I rowsort
SELECT + col2 + 89 FROM tab2 AS cor0
----
115
116
127

onlyif mysql # use DIV operator for integer division
query I rowsort label-1467
SELECT - col0 DIV col2 + 20 * - col1 col0 FROM tab0 AS cor0
----
-1720
-1821
-1975

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1467
SELECT - col0 / col2 + 20 * - col1 col0 FROM tab0 AS cor0
----
-1720
-1821
-1975

query I rowsort
SELECT + tab1.col0 * 6 FROM tab1, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 4a5f81c55c9fcf61f1e86f8ae6ea1488

onlyif mysql # use DIV operator for integer division
query I rowsort label-1469
SELECT DISTINCT cor1.col0 DIV 53 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-1469
SELECT DISTINCT cor1.col0 / 53 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0
1

query I rowsort
SELECT ALL ( 8 ) - + col1 FROM tab0
----
-78
-83
-89

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1472
SELECT + ( col0 ) DIV + col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1472
SELECT + ( col0 ) / + col1 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL - col0 * ( - col2 ) - ( - col2 + - col2 ) AS col2 FROM tab1
----
270
3762
7872

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

query I rowsort
SELECT cor0.col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + col0 * + col0 - - col2 AS col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ( + 4 ) * col2 + 93 - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-319
-563
231

query I rowsort
SELECT - cor0.col0 * + col2 * - col2 - - cor0.col0 FROM tab1 AS cor0
----
208000
737360
8751

query I rowsort
SELECT ALL + 68 * + col2 FROM tab1 AS cor0
----
3672
3876
6528

onlyif mysql # use DIV operator for integer division
query I rowsort label-1480
SELECT - 86 DIV col2 col0 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1480
SELECT - 86 / col2 col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - + col1 + col1 * ( - col0 ) * cor0.col0 FROM tab1 AS cor0
----
-260
-40970
-83213

query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL + 93 AS col0 FROM tab0
----
93
93
93

query I rowsort
SELECT - col1 * col2 * + col1 + col0 * col1 AS col0 FROM tab0 AS cor0
----
-242004
-6014
-670943

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1486
SELECT DISTINCT ( + col2 ) DIV 30 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT ( + col2 ) / 30 FROM tab1 AS cor0
----
1
3

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

query I rowsort
SELECT - col1 * - cor0.col1 * 41 FROM tab0 cor0
----
303236
339521
385769

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

query I rowsort
SELECT col2 + + ( cor0.col0 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

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

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

query I rowsort
SELECT DISTINCT + + col0 * - col2 + + 57 FROM tab2 AS cor0
----
-132
-1971
-2945

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

query I rowsort
SELECT + + col2 * ( - col1 + col1 ) FROM tab1 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT col1 + ( + 34 ) * col0 AS col2 FROM tab0 AS cor0
----
1287
3117
902

query I rowsort
SELECT - col2 + 33 FROM tab0 cor0
----
-49
0
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1499
SELECT DISTINCT - col2 DIV + col1 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT DISTINCT - col2 / + col1 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT 12 * ( - col2 * + ( 89 ) ) FROM tab2 AS cor0
----
-27768
-28836
-40584

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

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

query I rowsort
SELECT - 71 * - 81 FROM tab2 AS cor0
----
5751
5751
5751

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT + - col0 + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-1504
SELECT + - col0 + col1 / - col1 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT ALL - - 39 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT DISTINCT 76 * cor0.col1 FROM tab0 AS cor0
----
6536
6916
7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-1507
SELECT ALL - col0 * col1 DIV + col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL - col0 * col1 / + col1 FROM tab1 AS cor0
----
-3
-64
-80

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

query I rowsort
SELECT + - col1 * - 8 AS col1 FROM tab1 cor0
----
104
208
80

query I rowsort
SELECT DISTINCT + col2 * + ( + 73 + + col2 * - col2 ) FROM tab0
----
-33528
-545382
72

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 90 col0 FROM tab2
----
107
121
149

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

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL - CAST ( NULL AS REAL ) * col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1514
SELECT DISTINCT - col2 * + 96 * col0 + CAST( col1 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-16956
-350778
-738528

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT - col2 * + 96 * col0 + CAST ( col1 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-16956
-350778
-738528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1515
SELECT ALL + + CAST( - col0 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-1515
SELECT ALL + + CAST ( - col0 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT col2 - + col1 AS col1 FROM tab0 cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - 92 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8f790c8f996d9a1193109f1ed68b9b0d

query I rowsort
SELECT tab0.col0 * + 13 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to af0c07af46984362607f0e435ad33406

query I rowsort
SELECT ALL col0 * - 12 AS col1 FROM tab2 cor0
----
-84
-936
-948

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

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - 63 + col1 FROM tab1
----
-37
-50
-53

query I rowsort
SELECT 99 + col1 FROM tab2
----
116
130
158

query I rowsort
SELECT + col1 * + 35 AS col2 FROM tab1
----
350
455
910

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

query I rowsort
SELECT - col0 * - cor0.col2 + + col2 + col0 FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT + + col2 + col0 * 66 AS col2 FROM tab0 AS cor0
----
1617
2311
5956

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col1 * - col1 + col1 col0 FROM tab2 AS cor0
----
-205320
-29760
-4896

query I rowsort
SELECT DISTINCT - - col2 * col1 + 3 AS col1 FROM tab2 AS cor0
----
1537
649
840

query I rowsort
SELECT + 2 * - col2 FROM tab0 AS cor0
----
-164
-2
-66

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

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

query I rowsort
SELECT - ( cor0.col1 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1537
SELECT ALL + + cor0.col0 DIV col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + + cor0.col0 / col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + 67 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( 74 AS REAL ) * + col1 + 37 * ( col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
280016
313131
355311

query I rowsort
SELECT DISTINCT + + ( + cor0.col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col0 + + ( + col2 ) * + 48 FROM tab0 AS cor0
----
1608
4025
83

query I rowsort
SELECT ALL - - 73 * - col2 + col2 AS col0 FROM tab2 cor0
----
-1872
-1944
-2736

query I rowsort
SELECT - col0 * ( - tab1.col2 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col2 * 84 * 78 FROM tab2
----
170352
176904
248976

onlyif mysql # use DIV operator for integer division
query I rowsort label-1545
SELECT + ( col0 ) + col1 DIV + ( col2 + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
25
37
89

skipif mysql # not compatible
query I rowsort label-1545
SELECT + ( col0 ) + col1 / + ( col2 + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
25
37
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1546
SELECT + CAST( + col0 AS SIGNED ) * col0 + + ( 63 ) DIV - col1 FROM tab1
----
4090
6396
7

skipif mysql # not compatible
query I rowsort label-1546
SELECT + CAST ( + col0 AS INTEGER ) * col0 + + ( 63 ) / - col1 FROM tab1
----
4090
6396
7

query I rowsort
SELECT ALL + tab0.col2 * - tab0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662

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

query I rowsort
SELECT + ( - col2 ) + + col1 + + tab2.col0 AS col1 FROM tab2
----
11
111
58

query I rowsort
SELECT ALL - 90 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT col1 + col2 * col2 * cor0.col0 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT - + 51 + cor0.col1 * + col2 FROM tab0 AS cor0
----
2787
46
7411

query I rowsort
SELECT DISTINCT - ( col1 + + col1 ) FROM tab1
----
-20
-26
-52

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

query I rowsort
SELECT DISTINCT - tab2.col0 * col1 + + 52 AS col2 FROM tab2
----
-1291
-165
-4550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1556
SELECT - - col1 * + cor0.col1 + - CAST( 89 AS SIGNED ) FROM tab2 AS cor0
----
200
3392
872

skipif mysql # not compatible
query I rowsort label-1556
SELECT - - col1 * + cor0.col1 + - CAST ( 89 AS INTEGER ) FROM tab2 AS cor0
----
200
3392
872

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

query I rowsort
SELECT ( + 25 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT 63 * tab2.col2 AS col1 FROM tab2
----
1638
1701
2394

query I rowsort
SELECT - col0 + tab1.col1 * tab1.col2 AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL + col0 + col2 * ( - 54 ) FROM tab2
----
-1326
-1451
-1973

query I rowsort
SELECT DISTINCT + col1 + col0 * - 66 FROM tab2
----
-431
-5089
-5197

onlyif mysql # use DIV operator for integer division
query I rowsort label-1563
SELECT - ( cor0.col0 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1563
SELECT - ( cor0.col0 ) / - col1 AS col2 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL col0 + - 25 * col2 + - col0 AS col1 FROM tab2
----
-650
-675
-950

query I rowsort
SELECT DISTINCT - col1 + - 5 * + tab0.col2 + col0 * tab0.col2 AS col1 FROM tab0
----
-67
541
6797

query I rowsort
SELECT ALL + col0 * col1 + col0 * tab1.col0 * + col1 + + col1 * + col2 FROM tab1
----
1716
42170
85488

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

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

query I rowsort
SELECT ALL - col0 * + 53 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT - 31 * 58 * - tab0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 0a81457eecb052139299b44dea5aae8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT ALL - 83 DIV + col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL - 83 / + col0 FROM tab0 AS cor0
----
-2
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col1 FROM tab0, tab1 cor0
----
44

query I rowsort
SELECT + + col1 + 14 AS col2 FROM tab0 AS cor0
----
100
105
111

query I rowsort
SELECT col1 + col2 * cor0.col1 FROM tab1 AS cor0
----
1261
1430
580

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1575
SELECT + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1575
SELECT + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
17
31
59

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

query I rowsort
SELECT - col1 * + col2 + col1 AS col2 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col1 - - 81 FROM tab0 AS cor0
----
167
172
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-1579
SELECT - CAST( col1 AS SIGNED ) + col2 DIV + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-1579
SELECT - CAST ( col1 AS INTEGER ) + col2 / + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-15
-20
-28

query I rowsort
SELECT - col1 + + col2 * col0 AS col0 FROM tab2
----
158
1969
2985

query I rowsort
SELECT col0 * col1 FROM tab1 WHERE NULL <= - col2
----

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

query I rowsort
SELECT col0 - col2 * col2 FROM tab2
----
-1365
-598
-722

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

query I rowsort
SELECT tab1.col2 + col0 * col2 FROM tab1
----
216
3705
7776

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

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1588
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-1588
SELECT DISTINCT col1 / - col0 col2 FROM tab1
----
-8
0

query I rowsort
SELECT ALL tab1.col1 + col1 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 * col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + col0 col2 FROM tab0
----
260
71
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 * + col2 - + tab0.col2 col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT DISTINCT col0 * col1 DIV + col1 AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT col0 * col1 / + col1 AS col1 FROM tab2
----
7
78
79

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

query III rowsort
SELECT * FROM tab0 WHERE col0 = NULL
----

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

query I rowsort
SELECT ALL + col2 * col1 AS col1 FROM tab1 WHERE NOT - col2 * col1 NOT IN ( col0 + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 / + col1 NOT BETWEEN ( col0 ) AND - col1
----

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + tab2.col2 ) <> ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

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

query I rowsort
SELECT ALL - col0 * 1 AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col0 + ( col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - - col0 * cor0.col1 * - cor0.col1 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - col0 * col2 + + 79 AS col2 FROM tab1 cor0
----
-3569
-7601
-83

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1606
SELECT DISTINCT - - col1 * ( col0 + col2 ) * CAST( col2 * col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2872116
4147936
768366

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - - col1 * ( col0 + col2 ) * CAST ( col2 * col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2872116
4147936
768366

query I rowsort
SELECT - col1 * - 51 FROM tab2 cor0
----
1581
3009
867

query I rowsort
SELECT ALL col2 - + 53 AS col1 FROM tab0 AS cor0
----
-20
-52
29

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT - col0 DIV col0 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1610
SELECT - col0 / col0 + col2 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1611
SELECT ALL - col2 DIV + ( + col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-1611
SELECT ALL - col2 / + ( + col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT col2 + - 19 * ( + cor0.col1 ) * ( 14 ) AS col2 FROM tab2 AS cor0
----
-15668
-4484
-8219

query I rowsort
SELECT ALL - + col0 * - 68 * - col0 AS col1 FROM tab0 AS cor0
----
-39168
-538628
-83300

query I rowsort
SELECT col1 + 27 * col1 AS col0 FROM tab2 AS cor0
----
1652
476
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-1616
SELECT DISTINCT - - col0 * col0 * col1 + col0 DIV - 26 FROM tab1 cor0
----
234
40958
83197

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT - - col0 * col0 * col1 + col0 / - 26 FROM tab1 cor0
----
234
40958
83197

query I rowsort
SELECT col2 * col2 + 81 AS col1 FROM tab0 AS cor0
----
1170
6805
82

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

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

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

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

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

query I rowsort
SELECT ALL + 27 + - col0 * + col1 + - col1 AS col1 FROM tab0 cor0
----
-2123
-3465
-8163

onlyif mysql # use DIV operator for integer division
query I rowsort label-1622
SELECT DISTINCT + + ( - col0 ) - - col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT + + ( - col0 ) - - col1 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

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

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

query I rowsort
SELECT ALL - 32 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col2 - - col2 * - col0 * + ( - col0 * col0 + 53 ) col2 FROM tab1 AS cor0
----
-6966
14752512
48752640

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

query I rowsort
SELECT + col0 * cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-1629
SELECT tab2.col2 + col0 DIV tab2.col0 + col0 FROM tab2
----
105
118
35

skipif mysql # not compatible
query I rowsort label-1629
SELECT tab2.col2 + col0 / tab2.col0 + col0 FROM tab2
----
105
118
35

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT + col2 + + col0 + - CAST( 31 + col1 AS SIGNED ) DIV ( + ( tab1.col0 ) ) FROM tab1
----
121
176
38

skipif mysql # not compatible
query I rowsort label-1631
SELECT + col2 + + col0 + - CAST ( 31 + col1 AS INTEGER ) / ( + ( tab1.col0 ) ) FROM tab1
----
121
176
38

query I rowsort
SELECT ALL - 43 + col0 * + col1 AS col0 FROM tab2
----
1300
174
4559

query I rowsort
SELECT DISTINCT 42 * - col0 + 92 AS col1 FROM tab1
----
-2596
-3268
-34

query I rowsort
SELECT ALL - col2 * - col0 + col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT + + col2 + - 17 AS col0 FROM tab1 AS cor0
----
37
40
79

query I rowsort
SELECT + col1 * - col2 + ( col0 ) FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col0 + ( cor0.col0 ) * col0 FROM tab0 AS cor0
----
1260
600
8010

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

query I rowsort
SELECT DISTINCT - col2 * col1 + 9 + - col2 FROM tab1 AS cor0
----
-1335
-1449
-618

query I rowsort
SELECT col2 + - 45 AS col0 FROM tab0 AS cor0
----
-12
-44
37

query I rowsort
SELECT ALL + col0 * - ( + 6 ) + col2 AS col2 FROM tab1 AS cor0
----
-327
-384
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-1642
SELECT ALL - CAST( - col0 AS SIGNED ) + col2 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL - CAST ( - col0 AS INTEGER ) + col2 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT ALL ( - 9 + + col1 ) * col0 FROM tab1
----
320
51
64

query I rowsort
SELECT + col1 + + 19 * - col1 + - col0 AS col1 FROM tab1 cor0
----
-244
-314
-471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor0.col0 ) + col2 * + col1 col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT 5 * + col2 + - col1 FROM tab0
----
-92
319
79

query I rowsort
SELECT - col0 * - tab0.col2 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT + - 39 AS col1 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL 20 * col2 AS col0 FROM tab2 cor0
----
520
540
760

query I rowsort
SELECT + ( + col2 ) + + col0 FROM tab0
----
171
36
57

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

query I rowsort
SELECT - col0 + tab1.col0 + ( col1 ) FROM tab1
----
10
13
26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 * col0 col2 FROM tab0 cor0
----
120
175
445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * - col0 col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 + cor0.col1 col2 FROM tab2 AS cor0
----
22
36
64

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

query I rowsort
SELECT ALL + + 21 * cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-76
1631
607

onlyif mysql # use DIV operator for integer division
query I rowsort label-1659
SELECT DISTINCT - 98 + + col1 DIV + cor0.col2 FROM tab0 cor0
----
-1
-96
-97

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT - 98 + + col1 / + cor0.col2 FROM tab0 cor0
----
-1
-96
-97

query I rowsort
SELECT + 10 AS col1 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT DISTINCT col0 * ( - 75 ) FROM tab0 cor0
----
-1800
-2625
-6675

query I rowsort
SELECT DISTINCT - - col2 * ( col0 * + col1 ) + + col0 FROM tab0 AS cor0
----
3430
664207
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * 38 + + col2 col1 FROM tab2 AS cor0
----
1014
1053
1482

onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT - + col2 * 29 * 40 + col0 * col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
-1160
-38289
-95200

skipif mysql # not compatible
query I rowsort label-1664
SELECT - + col2 * 29 * 40 + col0 * col2 / - col1 AS col2 FROM tab0 AS cor0
----
-1160
-38289
-95200

query I rowsort
SELECT DISTINCT - col1 + + 75 * + col1 AS col1 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT + col1 + 85 FROM tab1 AS cor0
----
111
95
98

query I rowsort
SELECT + 11 * col0 + 32 + - col2 * - col2 * col0 FROM tab0
----
26432
452
599447

query I rowsort
SELECT + tab0.col1 + col2 * - col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT 15 * col2 + 19 * 47 AS col2 FROM tab1
----
1703
1748
2333

query I rowsort
SELECT ALL 81 + - col2 AS col0 FROM tab1
----
-15
24
27

query I rowsort
SELECT DISTINCT - 40 * - col0 * - col0 + col0 AS col2 FROM tab2
----
-1953
-243282
-249561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 * col2 + - cor0.col0 col2 FROM tab2 AS cor0
----
1316
158106
237079

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

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

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

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

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

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col1 * + col1 ) AND NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1677
SELECT - cor0.col2 DIV - col2 + + col1 * col2 AS col0 FROM tab1 cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-1677
SELECT - cor0.col2 / - col2 + + col1 * col2 AS col0 FROM tab1 cor0
----
1249
1405
571

onlyif mysql # use DIV operator for integer division
query I rowsort label-1678
SELECT + col2 + - col1 DIV + col1 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-1678
SELECT + col2 + - col1 / + col1 FROM tab1 AS cor0
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 col2 FROM tab1 cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col2 col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT 96 FROM tab2, tab1 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL + tab2.col1 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 + + col0 col1 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT - - col1 + - cor0.col2 * - col0 * 25 FROM tab0 AS cor0
----
182541
19886
972

query I rowsort
SELECT cor0.col2 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL - ( - col2 ) * col1 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

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

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
13122 values hashing to 6ff3b788954694e2ae4ea34fe4f2894d

query I rowsort
SELECT - 39 + col1 FROM tab2 AS cor0
----
-22
-8
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-1691
SELECT - tab0.col2 DIV - col2 + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1691
SELECT - tab0.col2 / - col2 + col2 FROM tab0
----
2
34
83

query I rowsort
SELECT + col0 + 58 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1416
2065
5251

query I rowsort
SELECT DISTINCT - col1 * + 46 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT DISTINCT + col2 * + col0 - + ( col0 + - 55 ) FROM tab1 AS cor0
----
214
3639
7655

query I rowsort
SELECT - 34 * + tab1.col2 - 69 AS col2 FROM tab1
----
-1905
-2007
-3333

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1696
SELECT + col0 + col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-1696
SELECT + col0 + col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT 64 + - col0 FROM tab1
----
-16
0
61

query I rowsort
SELECT DISTINCT + - 26 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-442
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + col1 col1 FROM tab0 cor0
----
2150
3492
8190

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

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

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

query I rowsort
SELECT DISTINCT + + col0 + col2 * + col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-35913
-551279
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT DISTINCT - col1 + + col2 * cor0.col0 DIV - ( + col2 ) col2 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - col1 + + col2 * cor0.col0 / - ( + col2 ) col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( + col2 * col0 ) - col0 col0 FROM tab1
----
36416
4209
99760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( + 54 ) col2 FROM tab2
----
378
4212
4266

onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT col0 DIV 58 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1708
SELECT col0 / 58 FROM tab2
----
0
1
1

query I rowsort
SELECT 34 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1710
SELECT ALL + CAST( NULL AS DECIMAL ) - + tab2.col2 AS col0 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + CAST ( NULL AS REAL ) - + tab2.col2 AS col0 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1711
SELECT ALL + ( col0 ) DIV - col0 + 79 AS col2 FROM tab2
----
78
78
78

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL + ( col0 ) / - col0 + 79 AS col2 FROM tab2
----
78
78
78

query I rowsort
SELECT ALL + ( 17 ) FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT ALL - + 89 * col0 FROM tab0 AS cor0
----
-2136
-3115
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-1714
SELECT - ( 3 ) + col2 * 61 DIV - 40 AS col0 FROM tab0 cor0
----
-128
-4
-53

skipif mysql # not compatible
query I rowsort label-1714
SELECT - ( 3 ) + col2 * 61 / - 40 AS col0 FROM tab0 cor0
----
-128
-4
-53

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

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

query I rowsort
SELECT - col0 + col1 * - col1 - ( - col0 ) FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1717
SELECT ALL - 85 DIV + col1 + + col1 AS col2 FROM tab2
----
12
29
58

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - 85 / + col1 + + col1 AS col2 FROM tab2
----
12
29
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1718
SELECT - col1 + col1 DIV + 59 + 52 * col2 FROM tab0 cor0
----
-44
1631
4174

skipif mysql # not compatible
query I rowsort label-1718
SELECT - col1 + col1 / + 59 + 52 * col2 FROM tab0 cor0
----
-44
1631
4174

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

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

query I rowsort
SELECT ALL - 27 + col2 * - col0 FROM tab1 AS cor0
----
-189
-3675
-7707

query I rowsort
SELECT ALL + - col2 * 96 AS col0 FROM tab1 AS cor0
----
-5184
-5472
-9216

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

query I rowsort
SELECT + 16 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - col2 * + 90 + col1 FROM tab1
----
-4834
-5120
-8627

query I rowsort
SELECT + col2 + 17 FROM tab2
----
43
44
55

query I rowsort
SELECT - tab1.col0 * 36 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d8942faeec1e1c2595065f20aca1bcfb

query I rowsort
SELECT DISTINCT 18 * + cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
1026
1728
972

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

query I rowsort
SELECT + - 20 + + col0 FROM tab2 AS cor0
----
-13
58
59

query I rowsort
SELECT DISTINCT + 70 + - cor0.col1 FROM tab0 AS cor0
----
-16
-21
-27

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 + ( + col1 ) FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + 40 + + col0 AS col2 FROM tab1 AS cor0
----
104
120
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT DISTINCT + + col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT + + col2 / + col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + col1 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

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

query I rowsort
SELECT - col2 * + col1 * ( - col0 ) + + col1 + + col0 AS col0 FROM tab2 AS cor0
----
119789
51130
5897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + cor0.col1 + + col2 * + ( + col1 + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1597
2107
2269

onlyif mysql # use DIV operator for integer division
query I rowsort label-1740
SELECT - col0 DIV - col1 + col0 + - col1 * + col2 * - col1 AS col1 FROM tab2 AS cor0
----
11065
25954
90585

skipif mysql # not compatible
query I rowsort label-1740
SELECT - col0 / - col1 + col0 + - col1 * + col2 * - col1 AS col1 FROM tab2 AS cor0
----
11065
25954
90585

query I rowsort
SELECT + col0 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col2 + 62 AS col2 FROM tab2 AS cor0
----
-127
-1966
-2940

query I rowsort
SELECT DISTINCT - - col2 * - col0 + 46 AS col0 FROM tab2 AS cor0
----
-143
-1982
-2956

query I rowsort
SELECT ALL 21 * col2 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 FROM tab2 cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + + 14 * col0 + 91 FROM tab1 AS cor0
----
1087
1380
809

query I rowsort
SELECT DISTINCT col1 * - col2 + 9 FROM tab2 AS cor0
----
-1525
-637
-828

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col1 - + 21 AS col1 FROM tab0 AS cor0
----
2817
7441
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1750
SELECT DISTINCT + + col1 + - 55 DIV col2 AS col1 FROM tab1 AS cor0
----
10
13
25

skipif mysql # not compatible
query I rowsort label-1750
SELECT DISTINCT + + col1 + - 55 / col2 AS col1 FROM tab1 AS cor0
----
10
13
25

query I rowsort
SELECT ALL - col0 + + col0 - - 36 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT ALL + - cor0.col0 + - 90 AS col0 FROM tab2 AS cor0
----
-168
-169
-97

query I rowsort
SELECT DISTINCT - + col1 + 18 * 43 AS col2 FROM tab0 AS cor0
----
677
683
688

onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT DISTINCT col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1754
SELECT DISTINCT col1 / - cor0.col1 FROM tab1 AS cor0
----
-1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1756
SELECT ALL + + col2 * + cor0.col2 * - col1 + + ( + col0 ) DIV + col2 AS col2 FROM tab1 cor0
----
-119808
-32489
-75816

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL + + col2 * + cor0.col2 * - col1 + + ( + col0 ) / + col2 AS col2 FROM tab1 cor0
----
-119808
-32489
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT + + col1 + 21 * col0 DIV + col0 FROM tab2 AS cor0
----
38
52
80

skipif mysql # not compatible
query I rowsort label-1757
SELECT + + col1 + 21 * col0 / + col0 FROM tab2 AS cor0
----
38
52
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 + + 5 col0 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT - 44 * col0 * - col0 FROM tab2 AS cor0
----
2156
267696
274604

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2, tab0 AS cor3
----
3645 values hashing to be7848c91584d04f21fd5bbb0d239aca

onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT - col0 DIV - col0 + + col2 * - CAST( ( col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-1762
SELECT - col0 / - col0 + + col2 * - CAST ( ( col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1533
-645
-836

onlyif mysql # use DIV operator for integer division
query I rowsort label-1763
SELECT + + col0 * - ( + col0 ) + col2 DIV - 78 AS col0 FROM tab0 cor0
----
-1225
-576
-7922

skipif mysql # not compatible
query I rowsort label-1763
SELECT + + col0 * - ( + col0 ) + col2 / - 78 AS col0 FROM tab0 cor0
----
-1225
-576
-7922

query I rowsort
SELECT + col0 + - ( + col1 ) AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT col1 * 15 - col2 AS col1 FROM tab1 AS cor0
----
336
93
99

query I rowsort
SELECT ALL + ( tab1.col1 ) + col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT 32 * col0 + 44 FROM tab2
----
2540
2572
268

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

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

query I rowsort
SELECT ALL 99 FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to c841a8d826151b422ecdb71db0250739

query I rowsort
SELECT ALL - 43 FROM tab0, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

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

query I rowsort
SELECT - + col1 + - ( 17 ) FROM tab2 AS cor0
----
-34
-48
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1773
SELECT ALL + + col1 DIV 10 + col1 col2 FROM tab1 AS cor0
----
11
14
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL + + col1 / 10 + col1 col2 FROM tab1 AS cor0
----
11
14
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( + 49 ) - - col0 * col0 col1 FROM tab2 cor0
----
1568
7074
8975

query I rowsort
SELECT DISTINCT - col0 * 30 FROM tab1
----
-1920
-2400
-90

query I rowsort
SELECT - 99 * + col0 FROM tab2 AS cor0
----
-693
-7722
-7821

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

query I rowsort
SELECT ALL + 23 AS col0 FROM tab2 AS cor0
----
23
23
23

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 cor0, tab2 cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

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

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

query I rowsort
SELECT + 45 * tab2.col1 FROM tab2
----
1395
2655
765

query I rowsort
SELECT ALL - + 57 * col0 FROM tab0 AS cor0
----
-1368
-1995
-5073

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1784
SELECT ALL + 5 * - cor0.col0 * + CAST( - col2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
10166
15048
972

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL + 5 * - cor0.col0 * + CAST ( - col2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
10166
15048
972

onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT - + col2 + + cor0.col2 DIV cor0.col2 AS col2 FROM tab0 cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-1785
SELECT - + col2 + + cor0.col2 / cor0.col2 AS col2 FROM tab0 cor0
----
-32
-81
0

query I rowsort
SELECT - col0 + col2 * + col0 - col1 * - col2 FROM tab2 AS cor0
----
1019
3484
3569

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1788
SELECT - + col1 / col0 col1 FROM tab2 AS cor0
----
-4
0
0

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

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

query I rowsort
SELECT + cor0.col0 * - 27 AS col2 FROM tab0 AS cor0
----
-2403
-648
-945

query I rowsort
SELECT + 63 * cor0.col0 * col0 + + col0 FROM tab1 AS cor0
----
258112
403280
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + - 12 col2 FROM tab1 AS cor0
----
1236
1392
558

query I rowsort
SELECT DISTINCT - - col2 * col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - ( - col1 ) + + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 8 + cor0.col0 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT + 86 FROM tab1 cor0
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT DISTINCT - tab0.col1 + + CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT - tab0.col1 + + CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL

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

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

query I rowsort
SELECT - ( 42 + col2 ) FROM tab1
----
-138
-96
-99

query I rowsort
SELECT DISTINCT + col1 * 15 + 66 AS col2 FROM tab1
----
216
261
456

query I rowsort
SELECT col1 * col0 * 79 + tab1.col1 AS col1 FROM tab1
----
50570
6188
82173

query I rowsort
SELECT col0 + ( ( - col0 ) * + 51 + col1 ) FROM tab0
----
-1114
-1653
-4359

query I rowsort
SELECT ALL col2 + + col0 * col0 AS col1 FROM tab2
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL + col1 + + 72 * + col1 AS col0 FROM tab2 AS cor0
----
1241
2263
4307

query I rowsort
SELECT ALL col2 + - 30 * 95 FROM tab0 AS cor0
----
-2768
-2817
-2849

query I rowsort
SELECT - col1 * 9 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-807
-874
-901

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

query I rowsort
SELECT + col1 + + 54 AS col1 FROM tab1 cor0
----
64
67
80

query I rowsort
SELECT DISTINCT + ( col0 ) + - col1 FROM tab1 AS cor0
----
-23
54
67

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

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

query I rowsort
SELECT + - cor0.col0 + - 55 FROM tab1 AS cor0
----
-119
-135
-58

query I rowsort
SELECT ALL + + 17 * - col1 AS col0 FROM tab0 AS cor0
----
-1462
-1547
-1649

query I rowsort
SELECT DISTINCT - 43 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
35
597
997

query I rowsort
SELECT - + 93 * - col2 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT ALL - 44 - col0 AS col2 FROM tab1 cor0
----
-108
-124
-47

query I rowsort
SELECT DISTINCT - - cor0.col0 * + 78 AS col1 FROM tab1 AS cor0
----
234
4992
6240

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

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-1822
SELECT DISTINCT - - col2 + 14 DIV col0 FROM tab1 AS cor0
----
57
58
96

skipif mysql # not compatible
query I rowsort label-1822
SELECT DISTINCT - - col2 + 14 / col0 FROM tab1 AS cor0
----
57
58
96

query I rowsort
SELECT ALL - - col0 * + col0 + - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT + 87 * col1 + col0 * + ( 13 ) FROM tab0 AS cor0
----
7794
8894
9074

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

query I rowsort
SELECT - 97 * tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8f7e2733aed043d21bbb8bab0f35e60f

query I rowsort
SELECT ALL 72 + col1 AS col2 FROM tab0 AS cor0
----
158
163
169

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

query I rowsort
SELECT + - col0 + + col2 * ( + 71 ) AS col2 FROM tab1 AS cor0
----
3831
3983
6736

query I rowsort
SELECT + 21 + col1 FROM tab0 cor0
----
107
112
118

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL + 7 / + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 33 * - col0 AS col0 FROM tab1 AS cor0
----
-2112
-2640
-99

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

query I rowsort
SELECT DISTINCT + col2 + + ( - 34 ) * + col2 FROM tab0 cor0
----
-1089
-2706
-33

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

query I rowsort
SELECT + - col0 * + col1 - 18 FROM tab2 AS cor0
----
-1361
-235
-4620

query I rowsort
SELECT - col0 - + col0 * col1 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

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

skipif mysql # not compatible
query I rowsort label-1841
SELECT + col2 + col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1842
SELECT - col2 DIV 20 + + ( col0 ) - + col1 FROM tab0 cor0
----
-6
-62
-63

skipif mysql # not compatible
query I rowsort label-1842
SELECT - col2 / 20 + + ( col0 ) - + col1 FROM tab0 cor0
----
-6
-62
-63

query I rowsort
SELECT + + col2 * 96 FROM tab2 AS cor0
----
2496
2592
3648

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * ( - col0 ) col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col1 * - col1 + col0 * - cor0.col2 * - col0 - col2 * + col1 FROM tab2 AS cor0
----
1447
160131
236801

query I rowsort
SELECT ALL 59 FROM tab0, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

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

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

query I rowsort
SELECT DISTINCT + col1 * 24 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
1705
4897
697

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

query I rowsort
SELECT + - col0 + + 81 AS col2 FROM tab2 AS cor0
----
2
3
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-1853
SELECT ALL - cor0.col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - cor0.col0 / col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT + - cor0.col2 * 18 - + col2 FROM tab2 AS cor0
----
-494
-513
-722

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

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

query I rowsort
SELECT - - col2 * 61 + + 80 AS col2 FROM tab2 AS cor0
----
1666
1727
2398

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

skipif mysql # not compatible
query I rowsort label-1857
SELECT + 17 + - col1 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
13
17
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1858
SELECT ALL + + 48 + - col0 DIV col2 AS col1 FROM tab1 AS cor0
----
47
48
48

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + + 48 + - col0 / col2 AS col1 FROM tab1 AS cor0
----
47
48
48

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

query I rowsort
SELECT ALL - col2 + + 90 AS col2 FROM tab2 AS cor0
----
52
63
64

query I rowsort
SELECT + - col0 * 0 + - col2 + 98 FROM tab0 AS cor0
----
16
65
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT - col2 + col0 DIV 86 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-1862
SELECT - col2 + col0 / 86 FROM tab0 AS cor0
----
-1
-33
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 * - 98 col0 FROM tab1 AS cor0
----
348
6329
7936

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

query I rowsort
SELECT DISTINCT - 16 AS col0 FROM tab0
----
-16

query I rowsort
SELECT - col1 * + col2 * - col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL - + 80 + col0 FROM tab1 AS cor0
----
-16
-77
0

query I rowsort
SELECT ALL + col0 + col1 - col1 AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1869
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) + col0 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + cor0.col1 * + col0 - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + + 66 * + 23 FROM tab1 AS cor0
----
1518
1518
1518

query I rowsort
SELECT DISTINCT - ( 6 ) + + col2 FROM tab1 AS cor0
----
48
51
90

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

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

query I rowsort
SELECT ALL ( cor0.col1 ) - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1876
SELECT CAST( NULL AS SIGNED ) * - tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1876
SELECT CAST ( NULL AS INTEGER ) * - tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col2 * ( ( col1 ) ) * - col0 + + tab1.col2 AS col0 FROM tab1
----
-36423
-4158
-99744

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

query I rowsort
SELECT + 60 * - col1 + col0 FROM tab1 cor0
----
-1557
-536
-700

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

query I rowsort
SELECT - col1 + col2 + ( - col2 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col1 + col2 + 92 * + col0 FROM tab1 AS cor0
----
304
5935
7443

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

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab1, tab1 cor0
----
25

query I rowsort
SELECT cor0.col2 * + 8 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 54ec89328635d9c6e7e8221ce1a109a5

query I rowsort
SELECT DISTINCT - 88 FROM tab1, tab1 cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 * + 37 col1 FROM tab2
----
-111074
-6993
-75036

query I rowsort
SELECT - col1 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - col0 * 33 + - 30 FROM tab0 AS cor0
----
-1185
-2967
-822

query I rowsort
SELECT DISTINCT col0 - ( col2 ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + - col0 * 9 FROM tab0 cor0
----
-216
-315
-801

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

query I rowsort
SELECT DISTINCT - 95 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-95

query I rowsort
SELECT ALL 45 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1895
SELECT CAST( tab0.col2 * col1 AS SIGNED ) AS col2 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-1895
SELECT CAST ( tab0.col2 * col1 AS INTEGER ) AS col2 FROM tab0
----
2838
7462
97

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1900
SELECT ALL + col1 * tab1.col1 DIV col2 FROM tab1
----
1
1
12

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL + col1 * tab1.col1 / col2 FROM tab1
----
1
1
12

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

skipif mysql # not compatible
query I rowsort label-1901
SELECT ( tab2.col1 ) * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 87 + col0 FROM tab1
----
151
167
90

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

query I rowsort
SELECT ALL + ( tab1.col2 ) FROM tab1
----
54
57
96

query I rowsort
SELECT - col1 + col1 + 79 FROM tab1 cor0
----
79
79
79

query I rowsort
SELECT + + col0 + + cor0.col1 + + col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT + + col0 * 81 FROM tab1 AS cor0
----
243
5184
6480

query I rowsort
SELECT + 83 * col0 + - col2 + - tab2.col1 AS col1 FROM tab2
----
523
6389
6502

query I rowsort
SELECT col0 * + 88 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-412
5532
6871

query I rowsort
SELECT + - col2 + - 52 * - col0 AS col0 FROM tab1 cor0
----
102
3271
4064

query I rowsort
SELECT - col2 + col2 - col0 * col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col0 * + col1 + tab2.col2 * + tab2.col0 - + tab2.col1 * tab2.col2 AS col0 FROM tab2
----
-431
3699
5096

query I rowsort
SELECT ALL + col1 * - col1 * - tab0.col0 AS col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT col0 * col2 * - col2 AS col1 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT + tab2.col0 * + col0 + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT col1 + col1 + + col0 FROM tab2
----
113
196
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT DISTINCT col0 DIV - col2 - col1 AS col2 FROM tab0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-1917
SELECT DISTINCT col0 / - col2 - col1 AS col2 FROM tab0
----
-132
-86
-92

query I rowsort
SELECT ALL + col0 + col2 * tab0.col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + col1 * col1 + + col0 AS col0 FROM tab1
----
164
249
679

query I rowsort
SELECT ALL col0 * + col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009

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

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

query I rowsort
SELECT col2 + - col1 * col2 * tab1.col0 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT - col0 + - col1 * + col2 * col0 FROM tab0
----
-3430
-664207
-68136

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT col1 + col1 DIV - col0 col2 FROM tab0 AS cor0
----
83
90
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1926
SELECT col1 + col1 / - col0 col2 FROM tab0 AS cor0
----
83
90
95

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

query I rowsort
SELECT ALL - col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col1 * + cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col2 * col1 * tab1.col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 AS col2 FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1932
SELECT ALL col2 DIV cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL col2 / cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 * 16 col0 FROM tab1 cor0
----
-1014
-1267
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab2, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad

query I rowsort
SELECT DISTINCT - col0 + - col1 - col1 * - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-16317
-36533
-5774

query I rowsort
SELECT DISTINCT + - col0 * - col0 + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
103
6136
6317

query I rowsort
SELECT ALL + - ( + col2 ) * - col2 - + 72 AS col2 FROM tab0 AS cor0
----
-71
1017
6652

query I rowsort
SELECT ALL + 13 - col0 AS col0 FROM tab1 AS cor0
----
-51
-67
10

query I rowsort
SELECT ALL + 11 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1942
SELECT col1 + col2 * - CAST( - 14 * col1 AS SIGNED ) AS col1 FROM tab0
----
104559
1455
39818

skipif mysql # not compatible
query I rowsort label-1942
SELECT col1 + col2 * - CAST ( - 14 * col1 AS INTEGER ) AS col1 FROM tab0
----
104559
1455
39818

query I rowsort
SELECT DISTINCT + col2 + col0 * tab2.col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT - col1 * col2 + col1 * - col2 FROM tab0
----
-14924
-194
-5676

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

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

query I rowsort
SELECT - col1 * col2 * col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT col1 * - tab1.col2 + col2 + + col1 AS col2 FROM tab1
----
-1139
-1324
-503

query I rowsort
SELECT + tab0.col1 FROM tab0 WHERE NOT NULL BETWEEN ( tab0.col1 + col1 * col0 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1950
SELECT col0 + - col0 - col2 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT col0 + - col0 - col2 / - col1 AS col2 FROM tab0
----
0
0
0

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

query I rowsort
SELECT DISTINCT col0 + - col1 - - col2 FROM tab1
----
111
163
31

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

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

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

query I rowsort
SELECT DISTINCT - col0 * tab2.col1 + col0 AS col1 FROM tab2
----
-1264
-210
-4524

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1958
SELECT ALL tab0.col0 * tab0.col2 + col2 DIV + col0 FROM tab0
----
35
7298
793

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL tab0.col0 * tab0.col2 + col2 / + col0 FROM tab0
----
35
7298
793

query I rowsort
SELECT ALL col0 + col0 / col0 FROM tab1 WHERE NULL IN ( col2 * col2 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1961
SELECT ALL 14 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL 14 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * + col0 + ( col0 + col2 ) AS col1 FROM tab1
----
219
3769
7856

query I rowsort
SELECT 1 AS col2 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT ALL 73 DIV - col0 AS col1 FROM tab2
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL 73 / - col0 AS col1 FROM tab2
----
-10
0
0

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

query I rowsort
SELECT DISTINCT + tab0.col2 * - 65 AS col0 FROM tab0, tab2 AS cor0
----
-2145
-5330
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1967
SELECT cor0.col1 DIV - 49 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1967
SELECT cor0.col1 / - 49 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 + col1 * 73 FROM tab1 AS cor0
----
1029
1901
794

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

skipif mysql # not compatible
query I rowsort label-1969
SELECT - + col1 / ( - 83 * - col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * 81 AS col1 FROM tab2 cor0
----
1377
2511
4779

query I rowsort
SELECT col2 + ( 20 ) * - col2 FROM tab1 AS cor0
----
-1026
-1083
-1824

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

query I rowsort
SELECT ALL + col1 + - col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT ALL + col1 + 33 AS col2 FROM tab2 AS cor0
----
50
64
92

query I rowsort
SELECT - + col2 + - 70 AS col0 FROM tab2 cor0
----
-108
-96
-97

query I rowsort
SELECT ALL ( - col2 ) * + cor0.col1 + - 11 + 89 AS col2 FROM tab0 AS cor0
----
-19
-2760
-7384

query I rowsort
SELECT ( col0 ) - col1 AS col2 FROM tab0 cor0
----
-2
-62
-62

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

query I rowsort
SELECT - ( 78 ) + col0 AS col0 FROM tab0 AS cor0
----
-43
-54
11

query I rowsort
SELECT DISTINCT col0 - 48 FROM tab2 AS cor0
----
-41
30
31

query I rowsort
SELECT + 16 * col0 - - col2 AS col2 FROM tab1 AS cor0
----
102
1081
1376

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

query I rowsort
SELECT + 79 * col2 + col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT + col0 + 39 FROM tab2
----
117
118
46

query I rowsort
SELECT 15 + - col0 AS col1 FROM tab2 AS cor0
----
-63
-64
8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1987
SELECT + + col1 * + col1 + + col0 DIV col1 FROM tab1 AS cor0
----
106
175
676

skipif mysql # not compatible
query I rowsort label-1987
SELECT + + col1 * + col1 + + col0 / col1 FROM tab1 AS cor0
----
106
175
676

query I rowsort
SELECT + - col1 + + col1 * col1 FROM tab0 cor0
----
7310
8190
9312

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

query I rowsort
SELECT - col0 * col2 * + col0 + col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

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

query I rowsort
SELECT - + col0 * + col1 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL - + tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

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

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

query I rowsort
SELECT - 34 * + 42 FROM tab1
----
-1428
-1428
-1428

query I rowsort
SELECT - col0 * + 20 * col1 FROM tab2
----
-26860
-4340
-92040

query I rowsort
SELECT 87 * col1 AS col0 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT + + 92 AS col1 FROM tab1 AS cor0
----
92
92
92

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

query I rowsort
SELECT DISTINCT + 59 * - col2 + col0 * + col1 FROM tab0
----
117
3261
3336

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

query I rowsort
SELECT DISTINCT - + 17 * 14 + + col2 FROM tab0 AS cor0
----
-156
-205
-237

query I rowsort
SELECT DISTINCT 77 * - 16 AS col0 FROM tab1 cor0
----
-1232

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2005
SELECT DISTINCT - CAST( col0 AS SIGNED ) * col2 * + col2 FROM tab2
----
-114076
-5103
-52728

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * col2 * + col2 FROM tab2
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2006
SELECT - CAST( + col2 AS SIGNED ) DIV col1 AS col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2006
SELECT - CAST ( + col2 AS INTEGER ) / col1 AS col1 FROM tab2
----
-2
0
0

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

query I rowsort
SELECT ALL col1 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1322
662
8012

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT DISTINCT 77 DIV + 89 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT 77 / + 89 FROM tab1 cor0
----
0

query I rowsort
SELECT 13 * col1 AS col1 FROM tab0 AS cor0
----
1118
1183
1261

onlyif mysql # use DIV operator for integer division
query I rowsort label-2013
SELECT CAST( - 56 AS SIGNED ) DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2013
SELECT CAST ( - 56 AS INTEGER ) / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 60 * - col0 FROM tab0 cor0
----
-1440
-2100
-5340

query I rowsort
SELECT DISTINCT ( - col0 ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - 70 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT 33 - + col2 FROM tab2
----
-5
6
7

query I rowsort
SELECT col0 + tab1.col2 + + tab1.col2 FROM tab1
----
111
178
272

query I rowsort
SELECT ALL - col1 * + col2 - col1 AS col1 FROM tab0
----
-194
-2924
-7553

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * + ( col0 ) - - ( col2 ) col0 FROM tab0 AS cor0
----
1366
3553
969

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1

query I rowsort
SELECT DISTINCT - 59 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
30

query I rowsort
SELECT 19 * - cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 6788de30c6b1325c8c6865b0b570e012

query I rowsort
SELECT + ( + tab0.col2 + col0 ) FROM tab0
----
171
36
57

query I rowsort
SELECT + - col1 * - cor0.col2 + - col0 + - col0 AS col0 FROM tab1 AS cor0
----
1088
1398
442

onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT DISTINCT col1 * col2 DIV 96 FROM tab2
----
15
6
8

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT col1 * col2 / 96 FROM tab2
----
15
6
8

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

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT ALL - col1 * col1 * ( + col2 ) FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT - - col1 * cor0.col0 + 2 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
242
4290
8722

query I rowsort
SELECT ALL + tab0.col2 + + col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT + 33 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT ALL - 7 AS col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

onlyif mysql # use DIV operator for integer division
query I rowsort label-2035
SELECT + col0 + col2 DIV + ( col0 ) FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-2035
SELECT + col0 + col2 / + ( col0 ) FROM tab1
----
21
64
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2036
SELECT + col1 DIV + CAST( 5 AS SIGNED ) col0 FROM tab0 cor0
----
17
18
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2036
SELECT + col1 / + CAST ( 5 AS INTEGER ) col0 FROM tab0 cor0
----
17
18
19

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

query I rowsort
SELECT DISTINCT - col0 * ( - col0 + col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 * col0 * col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

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

query I rowsort
SELECT - col2 + col1 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2117
3491
8108

onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT DISTINCT + - col2 DIV - 42 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT + - col2 / - 42 AS col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - + col1 + + col0 * + cor0.col1 + col2 * col0 * + col1 AS col0 FROM tab2 AS cor0
----
124195
52360
6045

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

skipif mysql # not compatible
query I rowsort label-2044
SELECT col0 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2045
SELECT ALL - cor0.col2 * CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - cor0.col2 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2046
SELECT col0 DIV col1 AS col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2046
SELECT col0 / col1 AS col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT DISTINCT col0 + col1 * 32 + - cor0.col1 FROM tab0 cor0
----
2690
2910
3042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 93 col1 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + col0 + 36 * col1 FROM tab2
----
1123
2202
691

onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT ALL - col2 + 85 DIV + ( + cor0.col2 + + 33 ) FROM tab0 AS cor0
----
-32
-82
1

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL - col2 + 85 / + ( + cor0.col2 + + 33 ) FROM tab0 AS cor0
----
-32
-82
1

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 + CAST ( + ( + col0 ) AS REAL ) AS col1 FROM tab0 AS cor0
----
110
132
180

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

query I rowsort
SELECT - + 10 FROM tab1 cor0
----
-10
-10
-10

query I rowsort
SELECT ALL col0 + + 51 * + col2 FROM tab2 AS cor0
----
1384
1404
2017

query I rowsort
SELECT DISTINCT - col2 + + col0 * col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT ALL 73 + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
2101
262
3075

onlyif mysql # use DIV operator for integer division
query I rowsort label-2058
SELECT DISTINCT - - col0 + col1 DIV - col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT - - col0 + col1 / - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 42 + - col1 AS col2 FROM tab2 AS cor0
----
-17
11
25

query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34

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

query I rowsort
SELECT + + tab0.col0 * cor0.col1 + 43 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to eeee3f3049634feb5467aa823dafe9b5

query I rowsort
SELECT + + 79 * - 84 * + col0 FROM tab2 AS cor0
----
-46452
-517608
-524244

query I rowsort
SELECT ALL - 71 * + cor0.col2 - - col1 * 88 AS col1 FROM tab1 cor0
----
-1546
-3167
-5672

query I rowsort
SELECT ALL + - col0 * col1 - - col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - 72 AS col0 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + - cor0.col2 + cor0.col0 * + 40 - + col2 AS col2 FROM tab1 cor0
----
12
2446
3008

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2069
SELECT + col0 + col2 DIV + ( + col2 ) col1 FROM tab1 AS cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2069
SELECT + col0 + col2 / + ( + col2 ) col1 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2070
SELECT + col1 * col0 + 12 DIV col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2070
SELECT + col1 * col0 + 12 / col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col1 * - col0 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL ( col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT 53 * tab2.col2 AS col0 FROM tab2
----
1378
1431
2014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - cor0.col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - cor0.col1 * col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679

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

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

query I rowsort
SELECT DISTINCT - col1 * ( col2 * + col0 ) + + col1 AS col0 FROM tab1 cor0
----
-36470
-4186
-99827

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

query I rowsort
SELECT DISTINCT col0 * + col1 + + 27 FROM tab2
----
1370
244
4629

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

query I rowsort
SELECT + col0 * - 41 FROM tab0
----
-1435
-3649
-984

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 + col1 * + 75 col1 FROM tab0 AS cor0
----
6441
6816
7266

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 * + 89 col1 FROM tab0
----
1424
1424
1424

query I rowsort
SELECT + 8 * - 91 AS col0 FROM tab0
----
-728
-728
-728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT 53 DIV cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2087
SELECT 53 / cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2088
SELECT DISTINCT - CAST( - col0 AS SIGNED ) * col0 AS col0 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) * col0 AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT + 67 * col0 FROM tab1
----
201
4288
5360

query I rowsort
SELECT col0 * col2 + col1 * col2 + + col2 FROM tab0 AS cor0
----
133
14842
3663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 * + col2 col1 FROM tab0 cor0
----
1023
2542
31

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

query I rowsort
SELECT - 38 + + col2 FROM tab1 AS cor0
----
16
19
58

query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT - col2 DIV - ( tab2.col1 + + tab2.col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT - col2 / - ( tab2.col1 + + tab2.col0 ) FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2096
SELECT - + col1 - col2 DIV col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-2096
SELECT - + col1 - col2 / col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT + col2 * cor0.col1 + - col1 * col1 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT ALL - col1 + - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-2099
SELECT + cor0.col1 + 85 DIV + col2 FROM tab1 AS cor0
----
11
13
27

skipif mysql # not compatible
query I rowsort label-2099
SELECT + cor0.col1 + 85 / + col2 FROM tab1 AS cor0
----
11
13
27

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * col0 FROM tab1 AS cor0
----
-598
540
871

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

skipif mysql # not compatible
query I rowsort label-2101
SELECT col2 + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-41
-52
20

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 85 * col2 col0 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT - 1 + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1224
575
7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT DISTINCT + col2 DIV 92 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT + col2 / 92 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 + col2 * cor0.col1 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT + col0 + - 37 + 14 AS col2 FROM tab0
----
1
12
66

query I rowsort
SELECT + - 68 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-101
-150
-69

query I rowsort
SELECT - col1 * + 55 AS col2 FROM tab2
----
-1705
-3245
-935

query I rowsort
SELECT 46 * col1 FROM tab0 AS cor0
----
3956
4186
4462

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

query I rowsort
SELECT - - col2 * col2 * col0 + + 90 FROM tab0 AS cor0
----
125
26226
598526

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2114
SELECT ALL + - col0 * - col0 + + 35 DIV - ( + cor0.col2 ) FROM tab1 cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL + - col0 * - col0 + + 35 / - ( + cor0.col2 ) FROM tab1 cor0
----
4096
6400
9

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 10 * col2 + 32 + col0 col1 FROM tab2 AS cor0
----
309
370
491

query I rowsort
SELECT ALL + ( col2 ) + col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - col1 * 27 AS col1 FROM tab0 cor0
----
-2322
-2457
-2619

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 63 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 + col0 * col0 * + 84 col1 FROM tab1 AS cor0
----
343971
537507
663

query I rowsort
SELECT ALL + col1 + col1 * - col2 * + col1 FROM tab1 AS cor0
----
-16211
-36478
-5690

query I rowsort
SELECT tab0.col1 + tab0.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 30d7054d1d16cc0cd2af7741ad06735e

query I rowsort
SELECT col0 * - 71 + col1 * - tab1.col2 AS col0 FROM tab1
----
-1617
-5114
-6928

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

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 * + 27 + col0 AS col1 FROM tab2 AS cor0
----
124332
36340
5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-2132
SELECT DISTINCT - - col0 DIV col2 col0 FROM tab0 cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT - - col0 / col2 col0 FROM tab0 cor0
----
0
1
35

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

query I rowsort
SELECT ( + col2 ) + + 50 AS col2 FROM tab2 cor0
----
76
77
88

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

query I rowsort
SELECT - cor0.col0 * + 26 AS col2 FROM tab2, tab1 AS cor0, tab1, tab1 cor1
----
81 values hashing to d538fc010929faacbd5af6790df74121

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

query I rowsort
SELECT + col1 * col1 + 8 * col1 AS col2 FROM tab2 AS cor0
----
1209
3953
425

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

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

query I rowsort
SELECT ALL + 44 * - col2 * + col2 + col0 FROM tab2 AS cor0
----
-29666
-32069
-63457

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 69 col1 FROM tab2 cor0
----
69
69
69

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

query I rowsort
SELECT + - ( col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 56 * + col2 + cor0.col1 col1 FROM tab2 AS cor0
----
1515
1543
2145

query I rowsort
SELECT DISTINCT - 71 AS col2 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT ALL + - ( col1 ) * 1 + + 7 AS col2 FROM tab0 AS cor0
----
-79
-84
-90

query I rowsort
SELECT ALL + col2 * col2 - 24 FROM tab1 AS cor0
----
2892
3225
9192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2149
SELECT - 20 * - col2 + CAST( 47 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
1665
1788
5823

skipif mysql # not compatible
query I rowsort label-2149
SELECT - 20 * - col2 + CAST ( 47 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
1665
1788
5823

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

query I rowsort
SELECT + col2 + - 20 FROM tab2 AS cor0
----
18
6
7

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

query I rowsort
SELECT DISTINCT - ( 8 ) * col1 + + 1 FROM tab0 AS cor0
----
-687
-727
-775

query I rowsort
SELECT - col0 * - col2 + - col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2155
SELECT DISTINCT + + CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2155
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

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

query I rowsort
SELECT - + 16 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-19
-80
-96

query I rowsort
SELECT ALL 8 + cor0.col0 AS col1 FROM tab1 AS cor0
----
11
72
88

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

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

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

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

query I rowsort
SELECT ALL 20 * + col2 AS col2 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT ALL - 90 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL + cor0.col0 * col0 * - 62 + 12 AS col2 FROM tab0 cor0
----
-35700
-491090
-75938

query I rowsort
SELECT DISTINCT cor0.col2 + - 11 AS col2 FROM tab1, tab2 AS cor0
----
15
16
27

query I rowsort
SELECT ( 66 ) + tab2.col0 FROM tab2
----
144
145
73

query I rowsort
SELECT ALL + col1 * col1 + - col0 AS col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT DISTINCT + 31 + + col0 FROM tab1
----
111
34
95

query I rowsort
SELECT - ( - col0 ) * ( 56 ) + col2 AS col0 FROM tab2 AS cor0
----
419
4394
4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-2171
SELECT 3 DIV - 1 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2171
SELECT 3 / - 1 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT - + 92 * col2 + + col1 * col2 FROM tab1 AS cor0
----
-3564
-4674
-7584

query I rowsort
SELECT + 18 AS col1 FROM tab2
----
18
18
18

query I rowsort
SELECT + col2 * - col2 * - 26 FROM tab1 AS cor0
----
239616
75816
84474

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

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

query I rowsort
SELECT + col2 + - col2 * - 78 AS col2 FROM tab1
----
4266
4503
7584

query I rowsort
SELECT col2 * ( + col1 ) * tab1.col0 + + col2 * 9 AS col2 FROM tab1
----
100704
36993
4698

query I rowsort
SELECT DISTINCT + - col2 * + ( - col0 ) + - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT cor0.col0 * 34 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 74d5d97c3e957ab3da5e0a80d49b43b6

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

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL col0 / 68 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT + col2 + - ( col0 ) FROM tab2
----
-41
-52
20

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2183
SELECT - 70 - - 60 DIV col0 AS col0 FROM tab0 AS cor0
----
-68
-69
-70

skipif mysql # not compatible
query I rowsort label-2183
SELECT - 70 - - 60 / col0 AS col0 FROM tab0 AS cor0
----
-68
-69
-70

query I rowsort
SELECT + col1 * - col1 + - col1 - col2 FROM tab1 AS cor0
----
-167
-278
-756

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

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT - 35 / - col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL - - 85 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT - col0 * ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - + 98 FROM tab0 cor0
----
-98
-98
-98

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

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

query I rowsort
SELECT DISTINCT - ( + 26 ) AS col2 FROM tab1 AS cor0
----
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2193
SELECT + CAST( - 47 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559

skipif mysql # not compatible
query I rowsort label-2193
SELECT + CAST ( - 47 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
-4042
-4277
-4559

onlyif mysql # use DIV operator for integer division
query I rowsort label-2194
SELECT - - cor0.col2 DIV ( cor0.col0 ) FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2194
SELECT - - cor0.col2 / ( cor0.col0 ) FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT + + cor0.col0 * 11 + cor0.col2 DIV col2 AS col2 FROM tab1 AS cor0
----
34
705
881

skipif mysql # not compatible
query I rowsort label-2195
SELECT + + cor0.col0 * 11 + cor0.col2 / col2 AS col2 FROM tab1 AS cor0
----
34
705
881

query I rowsort
SELECT ALL tab2.col2 * col2 - - ( - col2 ) FROM tab2
----
1406
650
702

query I rowsort
SELECT + col2 * col0 + - col1 * + col2 * + col1 AS col1 FROM tab0 AS cor0
----
-243276
-671744
-9374

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

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

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

query I rowsort
SELECT 65 + cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1160
-511
-7856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2201
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
28
47
83

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

skipif mysql # not compatible
query I rowsort label-2202
SELECT col2 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 60 + + 90 FROM tab2, tab1 AS cor0
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 + col1 col1 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT - - 62 * + col0 * col1 FROM tab0 AS cor0
----
127968
210490
502138

skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( - cor0.col1 AS REAL ) + col1 * 91 AS col0 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT + col2 * + col0 * col1 + col2 + col1 AS col1 FROM tab0 AS cor0
----
3493
664291
68231

query I rowsort
SELECT col1 * ( + 33 ) FROM tab2
----
1023
1947
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 col2 FROM tab1, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - 73 * 75 AS col1 FROM tab2, tab2 cor0
----
-5475

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

query I rowsort
SELECT 78 * + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a106d8f054a02f1e78fedfafd8e2cbbe

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

query I rowsort
SELECT - col0 + col0 * + 43 AS col0 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT - 9 AS col0 FROM tab2 cor0
----
-9
-9
-9

query I rowsort
SELECT - col1 * - col1 + + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + 53 + + col2 * col2 FROM tab1 AS cor0
----
2969
3302
9269

query I rowsort
SELECT ALL - 7 * col2 FROM tab1
----
-378
-399
-672

query I rowsort
SELECT ALL cor0.col2 * cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * col0 * col1 col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT - ( + col2 ) * + 90 AS col2 FROM tab2
----
-2340
-2430
-3420

query I rowsort
SELECT 48 * col2 AS col2 FROM tab2
----
1248
1296
1824

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

query I rowsort
SELECT + - 86 + col2 AS col0 FROM tab0 AS cor0
----
-4
-53
-85

query I rowsort
SELECT ALL 73 * - cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
-46720
-5694
-75920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col2 FROM tab2
----
-29
-29
-29

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

query I rowsort
SELECT DISTINCT + col2 + - 94 * col2 AS col1 FROM tab1 AS cor0
----
-5022
-5301
-8928

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

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

query I rowsort
SELECT col1 - col1 * col2 AS col2 FROM tab1
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2231
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2231
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL 21 * tab1.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 07226bc55bbbc2a3ced27e8d7ae1db9c

query I rowsort
SELECT - col1 + col2 * col0 * col0 FROM tab1
----
233462
460
614387

query I rowsort
SELECT ALL col1 * + ( col1 * + col1 ) FROM tab0 cor0
----
636056
753571
912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT - + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2235
SELECT - + col1 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2236
SELECT ALL cor0.col0 + - CAST( - col2 AS SIGNED ) + - cor0.col1 FROM tab1 AS cor0
----
111
163
31

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL cor0.col0 + - CAST ( - col2 AS INTEGER ) + - cor0.col1 FROM tab1 AS cor0
----
111
163
31

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

query I rowsort
SELECT + col0 * 43 + + 70 AS col2 FROM tab2 AS cor0
----
3424
3467
371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 46 ) col2 FROM tab1
----
-46

query I rowsort
SELECT - + ( 25 ) + col1 FROM tab1 AS cor0
----
-12
-15
1

query I rowsort
SELECT 98 * + col0 AS col2 FROM tab0 AS cor0
----
2352
3430
8722

query I rowsort
SELECT ALL - - cor0.col1 * col1 + col2 * 44 AS col0 FROM tab1 AS cor0
----
2608
3052
4393

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab1, tab2 AS cor0
----
42

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT DISTINCT - cor0.col1 * col0 + + col1 DIV 27 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT - cor0.col1 * col0 + + col1 / 27 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT - 71 DIV + col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2246
SELECT - 71 / + col1 FROM tab2 AS cor0
----
-1
-2
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2247
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - - 75 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
75

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

query I rowsort
SELECT ALL col0 + - 12 AS col0 FROM tab2
----
-5
66
67

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808

query I rowsort
SELECT DISTINCT + col1 + col0 * - cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT + cor0.col2 DIV col0 + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
57
76

skipif mysql # not compatible
query I rowsort label-2253
SELECT + cor0.col2 / col0 + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
57
76

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

query I rowsort
SELECT - + col0 * col0 - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

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

query I rowsort
SELECT ALL + - col2 * + 83 - - col0 AS col1 FROM tab0 AS cor0
----
-2715
-48
-6717

query I rowsort
SELECT col2 + 57 FROM tab2 cor0
----
83
84
95

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

query I rowsort
SELECT ALL - 36 * col2 AS col1 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT - - ( col2 ) * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + 27 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT col0 * + col1 * + col2 AS col1 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + + 31 + col1 AS col2 FROM tab0 AS cor0
----
117
122
128

query I rowsort
SELECT + col2 + + col2 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-6032
-6165
5

query I rowsort
SELECT DISTINCT col1 * + col0 + col0 + + cor0.col1 FROM tab2 AS cor0
----
1439
255
4739

query I rowsort
SELECT ALL + - 71 * + col1 + col0 FROM tab0 cor0
----
-6082
-6372
-6852

onlyif mysql # use DIV operator for integer division
query I rowsort label-2268
SELECT - ( 80 ) * + col2 + 98 DIV col1 FROM tab2 AS cor0
----
-2079
-2157
-3035

skipif mysql # not compatible
query I rowsort label-2268
SELECT - ( 80 ) * + col2 + 98 / col1 FROM tab2 AS cor0
----
-2079
-2157
-3035

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

query I rowsort
SELECT DISTINCT - col1 * + 14 AS col0 FROM tab0 AS cor0
----
-1204
-1274
-1358

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

query I rowsort
SELECT ALL + ( - col0 ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2273
SELECT ALL + col1 DIV + col0 - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + col1 / + col0 - col0 AS col1 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL - col2 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 + col2 * col1 col2 FROM tab2 AS cor0
----
-2356
-494
648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 col1 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT col2 * col2 * - ( 10 ) AS col0 FROM tab2
----
-14440
-6760
-7290

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2281
SELECT DISTINCT + - col0 DIV col0 col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT + - col0 / col0 col2 FROM tab2 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2282
SELECT ALL col2 * col2 + col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
1088
6723

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL col2 * col2 + col0 / - col0 AS col0 FROM tab0 AS cor0
----
0
1088
6723

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2284
SELECT ALL - col1 - - tab1.col1 * CAST( col2 AS SIGNED ) col2 FROM tab1
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL - col1 - - tab1.col1 * CAST ( col2 AS INTEGER ) col2 FROM tab1
----
1235
1378
560

query I rowsort
SELECT DISTINCT col1 + - col0 - + col0 FROM tab1
----
-118
-147
20

query I rowsort
SELECT 26 - col1 * - col0 FROM tab0
----
2090
3421
8125

query I rowsort
SELECT DISTINCT + 18 * col0 - tab1.col0 AS col0 FROM tab1
----
1088
1360
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2288
SELECT DISTINCT col1 * col1 - CAST( col1 AS SIGNED ) FROM tab2
----
272
3422
930

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT col1 * col1 - CAST ( col1 AS INTEGER ) FROM tab2
----
272
3422
930

query I rowsort
SELECT - col0 + col1 * 94 * + col0 FROM tab0
----
193992
319095
761217

query I rowsort
SELECT ALL - cor0.col2 - + col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT col0 - 78 AS col1 FROM tab2 AS cor0
----
-71
0
1

query I rowsort
SELECT ALL col2 * col0 * + 16 FROM tab1 AS cor0
----
122880
2592
58368

query I rowsort
SELECT 69 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT + - 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT 9 * + 75 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
675

query I rowsort
SELECT cor1.col1 * + cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7ccaf24f2c8d9f29787f37bd29e709d9

query I rowsort
SELECT ALL - col1 + 35 AS col0 FROM tab1
----
22
25
9

query I rowsort
SELECT DISTINCT + col0 + + 93 FROM tab1 AS cor0
----
157
173
96

query I rowsort
SELECT DISTINCT cor0.col1 + - 14 * col2 AS col2 FROM tab2 AS cor0
----
-305
-347
-515

query I rowsort
SELECT - col1 * + col1 - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT + + tab2.col1 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT + col1 * 60 * + col0 AS col2 FROM tab1
----
38400
4680
62400

query I rowsort
SELECT ALL + col1 * 71 FROM tab2
----
1207
2201
4189

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

query I rowsort
SELECT 28 * + col1 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT ALL ( col2 ) * tab0.col1 FROM tab0
----
2838
7462
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2307
SELECT ( - col0 ) / + col1 + ( + col0 ) col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT ( - col1 ) * + 13 FROM tab0 AS cor0
----
-1118
-1183
-1261

query I rowsort
SELECT ALL col1 * - col0 + + col1 * 69 AS col1 FROM tab0 AS cor0
----
-1820
3298
3870

query I rowsort
SELECT DISTINCT + col2 * - col0 - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col0 + - col0 - 88 FROM tab1 AS cor0
----
-253
-3800
-7848

query I rowsort
SELECT - - 58 * col1 + + col1 * cor0.col0 AS col0 FROM tab0 cor0
----
13377
7052
9021

skipif mysql # not compatible
query I rowsort
SELECT + - cor0.col0 + col0 * CAST ( - 58 AS REAL ) AS col0 FROM tab0 AS cor0
----
-1416
-2065
-5251

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

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

query I rowsort
SELECT ALL 41 AS col1 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + + 18 AS col2 FROM tab0 cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97

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

query I rowsort
SELECT 30 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL ( 30 ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 51 AS REAL ) col2 FROM tab1
----
51

query I rowsort
SELECT 75 * - col1 + col2 - col1 FROM tab1 AS cor0
----
-1922
-703
-892

query I rowsort
SELECT col1 * + col0 + + 84 - + col1 AS col0 FROM tab1 AS cor0
----
1111
136
714

onlyif mysql # use DIV operator for integer division
query I rowsort label-2324
SELECT + 38 DIV + col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2324
SELECT + 38 / + col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ( - col1 ) + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-118
-34
-62

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

query I rowsort
SELECT ALL - col0 + 96 * + tab0.col2 FROM tab0
----
3144
61
7783

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

query I rowsort
SELECT ALL + col0 * cor0.col0 + 8 AS col1 FROM tab2 AS cor0
----
57
6092
6249

query I rowsort
SELECT - ( col1 ) * + col0 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

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

query I rowsort
SELECT col0 * ( 68 ) FROM tab1 AS cor0
----
204
4352
5440

query I rowsort
SELECT DISTINCT - + col2 * - col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + col1 * 11 + - col1 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT ALL - cor0.col2 + 37 FROM tab2 AS cor0
----
-1
10
11

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

query I rowsort
SELECT col2 * + col0 + - col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT tab2.col0 * - col1 * col1 + tab2.col2 AS col0 FROM tab2
----
-22793
-271492
-6700

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

query I rowsort
SELECT + + col0 + 70 AS col0 FROM tab1 AS cor0
----
134
150
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 * + col0 - 18 col0 FROM tab0 AS cor0
----
1207
18990
649504

query I rowsort
SELECT ALL - + cor0.col0 * - col1 + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
406
4345
6630

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

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

query I rowsort
SELECT ALL 38 * - col2 FROM tab1 AS cor0
----
-2052
-2166
-3648

query I rowsort
SELECT DISTINCT + + 72 + - 36 FROM tab2 AS cor0
----
36

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

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT + ( col1 ) + - col2 / col0 FROM tab1 AS cor0
----
10
12
8

query I rowsort
SELECT ALL ( - col2 ) * - col0 + + col2 * col1 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT - col0 + - ( col0 ) FROM tab0 cor0
----
-178
-48
-70

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2350
SELECT + + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2350
SELECT + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT 7 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT - 11 + col2 FROM tab0 AS cor0
----
-10
22
71

query I rowsort
SELECT 47 AS col2 FROM tab2 cor0
----
47
47
47

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

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

query I rowsort
SELECT col1 + col1 * 57 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT col1 * - col1 - - col0 * - col2 FROM tab1
----
-3748
-7849
-838

query I rowsort
SELECT + col0 * 4 AS col2 FROM tab0
----
140
356
96

query I rowsort
SELECT + cor0.col2 * cor0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT col1 * + ( + col2 * col0 ) + + 52 FROM tab1 AS cor0
----
36532
4264
99892

query I rowsort
SELECT DISTINCT - col1 * + col0 + 44 FROM tab1 AS cor0
----
-34
-596
-996

onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT col1 * 36 DIV - col2 + cor0.col1 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
105
61
63

skipif mysql # not compatible
query I rowsort label-2361
SELECT col1 * 36 / - col2 + cor0.col1 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
105
61
63

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

query I rowsort
SELECT 80 FROM tab0, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # use DIV operator for integer division
query I rowsort label-2364
SELECT col0 DIV - col0 col2 FROM tab1 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2364
SELECT col0 / - col0 col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT 60 AS col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * + col1 col1 FROM tab2
----
-1302
-2478
-714

query I rowsort
SELECT - col2 * + col2 + + col2 - 81 AS col0 FROM tab2
----
-1487
-731
-783

onlyif mysql # use DIV operator for integer division
query I rowsort label-2368
SELECT ALL cor0.col1 * col0 + 25 DIV - col0 AS col0 FROM tab2 AS cor0
----
1343
214
4602

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL cor0.col1 * col0 + 25 / - col0 AS col0 FROM tab2 AS cor0
----
1343
214
4602

query I rowsort
SELECT DISTINCT + + col2 + + ( col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col2 + col1 + - col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col1 * 91 - 16 FROM tab0 AS cor0
----
7810
8265
8811

query I rowsort
SELECT ALL - col2 * - col2 + - 56 AS col2 FROM tab2 AS cor0
----
1388
620
673

query I rowsort
SELECT DISTINCT + col1 + + ( - 59 ) AS col0 FROM tab2 AS cor0
----
-28
-42
0

query I rowsort
SELECT DISTINCT - 35 * - 84 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
2940

query I rowsort
SELECT ALL ( cor1.col0 + tab1.col0 ) AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 9291d35e95708b6c1cfa77b59e2fdeeb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 * - tab2.col2 col1 FROM tab2
----
-234
-243
-342

query I rowsort
SELECT col2 * + col2 + - ( + 96 ) * - col0 AS col2 FROM tab0
----
15268
3361
3393

query I rowsort
SELECT 37 + + col1 * - col2 FROM tab2
----
-1497
-609
-800

query I rowsort
SELECT 25 + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b68e2c5d2df05b0723a28ad588a1167

query I rowsort
SELECT - col0 * 12 + + col2 + col1 FROM tab0
----
-169
-322
-895

query I rowsort
SELECT + + cor0.col0 * + col2 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col0 + + 5 FROM tab0 AS cor0
----
29
40
94

query I rowsort
SELECT col0 * col0 + - col2 - + col0 FROM tab1 AS cor0
----
-48
3975
6224

query I rowsort
SELECT DISTINCT - col0 + - ( - col1 ) * col2 FROM tab2 cor0
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 * + col0 + col1 - - ( col2 ) * - cor0.col2 col2 FROM tab0 AS cor0
----
-3299
-670751
-69115

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

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL + CAST ( NULL AS INTEGER ) * - 57 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 10977325261681ddca962e0a5d2b348b

query I rowsort
SELECT ALL 80 + + 88 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0, tab1 AS cor1
----
243 values hashing to 2a7ce5e280fb5bc0bada224094a40ebb

query I rowsort
SELECT ALL - + 18 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - + ( 29 ) + - col0 AS col2 FROM tab1 AS cor0
----
-109
-32
-93

query I rowsort
SELECT - + col0 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + ( col0 ) + - col1 * + 97 AS col2 FROM tab2 AS cor0
----
-1570
-3000
-5645

query I rowsort
SELECT ALL - - 72 * - tab2.col0 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to ad30d3bffbba124c463c3e04d89c6999

query I rowsort
SELECT ALL + col0 * + col2 * 70 FROM tab2 AS cor0
----
13230
141960
210140

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

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

query I rowsort
SELECT + 54 * - col2 AS col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

query I rowsort
SELECT ALL - 30 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT - 1 + - col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-97

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

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

query I rowsort
SELECT DISTINCT - col1 * col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT ALL - 5 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL - 5 / col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + - 58 * - col1 + 66 AS col0 FROM tab1 AS cor0
----
1574
646
820

query I rowsort
SELECT ALL - col1 * + ( 37 ) * + col1 AS col2 FROM tab1 AS cor0
----
-25012
-3700
-6253

query I rowsort
SELECT cor2.col2 FROM tab1, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT + tab2.col1 AS col1 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT 19 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT DISTINCT + col1 + 88 FROM tab2 AS cor0
----
105
119
147

query I rowsort
SELECT DISTINCT - col2 * 47 + col2 AS col1 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT DISTINCT - cor0.col2 + + 13 AS col2 FROM tab0 cor0
----
-20
-69
12

query I rowsort
SELECT - col0 * ( cor0.col2 ) + + 77 AS col1 FROM tab2 AS cor0
----
-112
-1951
-2925

query I rowsort
SELECT ALL col2 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + col2 + - 11 AS col2 FROM tab0 AS cor0
----
-10
22
71

query I rowsort
SELECT DISTINCT 82 * + col0 FROM tab2 cor0
----
574
6396
6478

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

query I rowsort
SELECT ALL cor0.col1 + + 95 AS col2 FROM tab2 AS cor0
----
112
126
154

query I rowsort
SELECT + col1 * col0 * col2 + - ( + 26 ) * + col1 FROM tab1 AS cor0
----
3536
36220
99502

query I rowsort
SELECT DISTINCT col0 * - 14 + col1 * col0 FROM tab2
----
119
237
3510

onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT col0 + cor0.col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2420
SELECT col0 + cor0.col1 / + col1 AS col1 FROM tab2 AS cor0
----
79
8
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) col2 FROM tab1
----
54
57
96

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

query I rowsort
SELECT - col0 * tab1.col0 * tab1.col1 + + col1 AS col1 FROM tab1
----
-208
-40950
-83187

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab1, tab0 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT col2 + + col2 DIV col0 AS col1 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-2425
SELECT col2 + + col2 / col0 AS col1 FROM tab0
----
1
34
82

query I rowsort
SELECT ALL - 91 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT + col1 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2428
SELECT ALL - - col2 + + 78 - + col2 * CAST( + 17 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-338
-354
-530

skipif mysql # not compatible
query I rowsort label-2428
SELECT ALL - - col2 + + 78 - + col2 * CAST ( + 17 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-338
-354
-530

query I rowsort
SELECT DISTINCT + 13 + col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1053
653
91

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

query I rowsort
SELECT DISTINCT + col2 * ( + 92 ) FROM tab1
----
4968
5244
8832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT tab0.col2 DIV + 10 - col1 * - ( col2 * - col1 ) FROM tab0
----
-244065
-679034
-9409

skipif mysql # not compatible
query I rowsort label-2432
SELECT tab0.col2 / + 10 - col1 * - ( col2 * - col1 ) FROM tab0
----
-244065
-679034
-9409

query I rowsort
SELECT ( col1 ) * tab2.col1 - + col1 AS col1 FROM tab2
----
272
3422
930

query I rowsort
SELECT + + 97 + + col1 AS col0 FROM tab2 AS cor0
----
114
128
156

query I rowsort
SELECT - 92 * + col1 FROM tab1
----
-1196
-2392
-920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 + 64 col1 FROM tab1 AS cor0
----
-4032
-6336
55

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col0 * 35 * col0 AS col0 FROM tab0 AS cor0
----
20160
277235
42875

query I rowsort
SELECT - col0 * 76 + - col1 AS col1 FROM tab2 AS cor0
----
-563
-5987
-6021

query I rowsort
SELECT DISTINCT - col2 + 46 * 3 FROM tab0
----
105
137
56

query I rowsort
SELECT ALL col2 * 18 AS col2 FROM tab2 AS cor0
----
468
486
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 * + col1 col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT - 9 DIV tab2.col0 + + tab2.col1 FROM tab2
----
17
30
59

skipif mysql # not compatible
query I rowsort label-2443
SELECT - 9 / tab2.col0 + + tab2.col1 FROM tab2
----
17
30
59

query I rowsort
SELECT - tab1.col1 + col0 * - ( + tab1.col2 ) AS col0 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT col1 + ( + cor0.col2 + col2 ) * 14 FROM tab2 AS cor0
----
1081
787
787

query I rowsort
SELECT - cor0.col2 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - + col2 * + 37 + col2 + cor0.col0 FROM tab2 AS cor0
----
-1289
-858
-965

query I rowsort
SELECT DISTINCT col0 + + 98 * - tab2.col1 * - col0 AS col0 FROM tab2
----
131693
21273
451074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 48 col2 FROM tab1
----
112
128
51

query I rowsort
SELECT + cor0.col0 * col2 * col1 + + col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT + - col2 + + ( 94 + col2 * + col1 ) AS col1 FROM tab2 AS cor0
----
1602
702
904

query I rowsort
SELECT DISTINCT col2 * 26 + ( col2 ) * + col0 FROM tab0 AS cor0
----
1650
61
9430

query I rowsort
SELECT col1 + + col2 + 75 FROM tab1 cor0
----
142
155
184

query I rowsort
SELECT ALL - 28 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT + col1 + col1 * + col2 FROM tab0 cor0
----
194
2924
7553

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

query I rowsort
SELECT ALL - col0 * + 28 AS col2 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT - col1 * 34 AS col1 FROM tab1 cor0
----
-340
-442
-884

query I rowsort
SELECT ALL cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

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

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

query I rowsort
SELECT - + col0 * + col1 + - col2 + + ( col2 * col1 ) FROM tab2 AS cor0
----
-3094
-735
593

query I rowsort
SELECT ALL + ( + 43 ) * - col0 AS col2 FROM tab1 AS cor0
----
-129
-2752
-3440

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

skipif mysql # not compatible
query I rowsort label-2463
SELECT ALL CAST ( NULL AS REAL ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT + - ( col1 ) * - col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + - col0 + 17 FROM tab1 AS cor0
----
-47
-63
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( col1 ) ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col0 * - col2 * tab1.col1 + + col0 AS col2 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT DISTINCT + + cor0.col0 + 78 AS col1 FROM tab1 AS cor0
----
142
158
81

query I rowsort
SELECT - 35 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-18
-4
24

query I rowsort
SELECT ALL + + col0 + col0 * + 80 * col0 AS col0 FROM tab1 AS cor0
----
327744
512080
723

query I rowsort
SELECT ALL - + col1 * - col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2474
SELECT DISTINCT + + col1 - col1 * - CAST( + col2 + col2 AS SIGNED ) * - 13 FROM tab0 AS cor0
----
-193921
-2425
-73702

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT + + col1 - col1 * - CAST ( + col2 + col2 AS INTEGER ) * - 13 FROM tab0 AS cor0
----
-193921
-2425
-73702

query I rowsort
SELECT ALL - - 91 * col1 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT ALL - 51 * col1 + 31 FROM tab0 AS cor0
----
-4355
-4610
-4916

query I rowsort
SELECT + - 91 - cor0.col2 FROM tab0 AS cor0
----
-124
-173
-92

query I rowsort
SELECT - col2 * + col2 * col1 + + ( col1 * - 73 ) + - ( cor0.col2 ) FROM tab0 AS cor0
----
-618609
-7179
-99965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + - col2 col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + - 97 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-194
-2935
-7559

query I rowsort
SELECT ALL - ( col1 + + tab2.col1 ) AS col2 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + col0 * + col2 + + col2 * col1 AS col1 FROM tab2 cor0
----
1026
3562
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-2483
SELECT ALL + col1 DIV col1 + 58 AS col1 FROM tab0 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL + col1 / col1 + 58 AS col1 FROM tab0 AS cor0
----
59
59
59

query I rowsort
SELECT ALL 35 - - col2 * col1 FROM tab1
----
1283
1439
605

onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT DISTINCT + col0 DIV + ( - cor0.col0 + col2 ) AS col2 FROM tab1 AS cor0
----
-9
0
5

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT + col0 / + ( - cor0.col0 + col2 ) AS col2 FROM tab1 AS cor0
----
-9
0
5

query I rowsort
SELECT DISTINCT + 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2

query I rowsort
SELECT ALL - + ( 9 ) * col1 + col2 * 7 * col1 FROM tab2 AS cor0
----
10207
4369
5580

query I rowsort
SELECT ALL + col0 * - col2 + + col1 * col1 + col0 AS col2 FROM tab2 AS cor0
----
-2634
1531
779

query I rowsort
SELECT DISTINCT ( + 57 ) FROM tab0 AS cor0
----
57

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

query I rowsort
SELECT + 85 * col0 AS col1 FROM tab0 AS cor0
----
2040
2975
7565

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

query I rowsort
SELECT ALL - col1 + - 53 * col1 + 75 * - col0 AS col1 FROM tab0 AS cor0
----
-11589
-6444
-7863

query I rowsort
SELECT DISTINCT 29 * + 69 FROM tab2 AS cor0
----
2001

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

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

query I rowsort
SELECT tab2.col0 + 49 * col2 AS col0 FROM tab2
----
1330
1352
1941

query I rowsort
SELECT ALL + 65 * col0 + + col0 FROM tab0 cor0
----
1584
2310
5874

query I rowsort
SELECT - - 23 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2047
552
805

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2501
SELECT 67 DIV - cor0.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 2871ad621abbeb29d665df965d559d35

skipif mysql # not compatible
query I rowsort label-2501
SELECT 67 / - cor0.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 2871ad621abbeb29d665df965d559d35

query I rowsort
SELECT ALL ( - 46 ) FROM tab1
----
-46
-46
-46

query I rowsort
SELECT ALL 89 + - 92 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT DISTINCT 62 DIV - col0 AS col0 FROM tab1
----
-20
0

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT 62 / - col0 AS col0 FROM tab1
----
-20
0

query I rowsort
SELECT + tab2.col2 + 86 FROM tab2
----
112
113
124

query I rowsort
SELECT DISTINCT - col0 - col1 * cor0.col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + col2 + + col0 * + col1 * 70 AS col0 FROM tab1
----
44857
5514
72896

query I rowsort
SELECT ALL col0 - + 12 * col2 FROM tab2 AS cor0
----
-234
-317
-377

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + - CAST ( 12 AS REAL ) * + col1 + cor0.col0 col1 FROM tab1 cor0
----
-120
-156
-312

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

query I rowsort
SELECT DISTINCT col2 + cor0.col2 * + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-119626
-50996
-5832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2512
SELECT col0 * CAST( 16 AS SIGNED ) col1 FROM tab2
----
112
1248
1264

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2512
SELECT col0 * CAST ( 16 AS INTEGER ) col1 FROM tab2
----
112
1248
1264

query I rowsort
SELECT col1 * 58 + col1 FROM tab2
----
1003
1829
3481

query I rowsort
SELECT + col1 + 91 AS col0 FROM tab2
----
108
122
150

query I rowsort
SELECT - col2 + + 6 FROM tab1
----
-48
-51
-90

query I rowsort
SELECT col0 * + 6 + col2 FROM tab2 cor0
----
494
512
69

query I rowsort
SELECT - col1 * - 1 AS col2 FROM tab0 AS cor0
----
86
91
97

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

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

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

query I rowsort
SELECT - - col1 * cor0.col0 + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT col1 + col0 * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
107
1133
714

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT DISTINCT + cor0.col0 DIV ( col1 * - col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2524
SELECT DISTINCT + cor0.col0 / ( col1 * - col2 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 75 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 32 col1 FROM tab2
----
-1888
-544
-992

query I rowsort
SELECT DISTINCT 67 FROM tab2, tab0 cor0
----
67

query I rowsort
SELECT ALL - ( 21 ) AS col1 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab0
----
40

query I rowsort
SELECT 99 * + col2 FROM tab1 AS cor0
----
5346
5643
9504

onlyif mysql # use DIV operator for integer division
query I rowsort label-2531
SELECT DISTINCT - col2 DIV + col1 col1 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - col2 / + col1 col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + col2 * col0 * 77 FROM tab0 cor0
----
2695
561946
60984

query I rowsort
SELECT + ( + col1 + col1 ) * col1 FROM tab2
----
1922
578
6962

query I rowsort
SELECT ( + col1 ) + col1 + - 22 * + col0 FROM tab0
----
-1776
-356
-576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT - 74 * - col0 + - col1 DIV col1 FROM tab1 AS cor0
----
221
4735
5919

skipif mysql # not compatible
query I rowsort label-2536
SELECT - 74 * - col0 + - col1 / col1 FROM tab1 AS cor0
----
221
4735
5919

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

query I rowsort
SELECT ALL - - col1 * col2 * + col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT + + col1 * 3 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT - - cor0.col2 + + col0 * 30 FROM tab1 AS cor0
----
144
1977
2496

query I rowsort
SELECT + col0 * + ( col2 * col2 ) FROM tab2 AS cor0
----
114076
5103
52728

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col0 ) * col0 + col0 col0 FROM tab1 AS cor0
----
15
4224
6560

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + cor0.col0 * + CAST ( 62 * col2 AS REAL ) FROM tab0 AS cor0
----
2170
452476
49104

query I rowsort
SELECT - + col0 + ( + col1 ) * col1 FROM tab2 AS cor0
----
210
3403
954

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

query I rowsort
SELECT DISTINCT col0 + col1 * ( - col0 ) FROM tab1
----
-576
-75
-960

query I rowsort
SELECT - 56 * + col0 + - 96 FROM tab0
----
-1440
-2056
-5080

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

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL 6 / + col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 * - 49 col0 FROM tab0
----
-1531
-3927
48

query I rowsort
SELECT - col2 * + col0 * ( + 77 ) + col2 AS col1 FROM tab0 AS cor0
----
-2694
-561864
-60951

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2553
SELECT ALL - col2 * col2 + CAST( 16 AS SIGNED ) FROM tab2
----
-1428
-660
-713

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL - col2 * col2 + CAST ( 16 AS INTEGER ) FROM tab2
----
-1428
-660
-713

query I rowsort
SELECT - - 64 - + col0 AS col2 FROM tab0 AS cor0
----
-25
29
40

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

query I rowsort
SELECT ALL col1 * - tab2.col1 + + ( col2 * - col0 ) FROM tab2
----
-1150
-3291
-5509

onlyif mysql # use DIV operator for integer division
query I rowsort label-2557
SELECT DISTINCT + col1 + + col2 * cor0.col0 + - cor0.col2 DIV + 88 AS col1 FROM tab1 cor0
----
188
3658
7692

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT + col1 + + col2 * cor0.col0 + - cor0.col2 / + 88 AS col1 FROM tab1 cor0
----
188
3658
7692

query I rowsort
SELECT col0 * 25 FROM tab1
----
1600
2000
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT + - col1 DIV - ( col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2559
SELECT + - col1 / - ( col1 ) + + col0 AS col0 FROM tab2 AS cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2560
SELECT ALL - 8 DIV - cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2560
SELECT ALL - 8 / - cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

query I rowsort
SELECT ( 96 ) AS col0 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT - cor0.col0 * + 44 FROM tab1 AS cor0
----
-132
-2816
-3520

query I rowsort
SELECT ALL 39 - - col2 FROM tab0
----
121
40
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT tab0.col2 DIV + 98 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT tab0.col2 / + 98 FROM tab0
----
0
0
0

query I rowsort
SELECT - 99 * - col1 FROM tab1
----
1287
2574
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col2 - 53 FROM tab0
----
-20
-52
29

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT ALL col2 - + col2 DIV + tab0.col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL col2 - + col2 / + tab0.col2 FROM tab0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * - col1 col0 FROM tab1 AS cor0
----
1248
1404
570

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2574
SELECT ALL col2 + col0 DIV + 2 FROM tab1 AS cor0
----
136
55
89

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL col2 + col0 / + 2 FROM tab1 AS cor0
----
136
55
89

query I rowsort
SELECT 78 + - col2 * - 19 * col2 FROM tab1 cor0
----
175182
55482
61809

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

skipif mysql # not compatible
query I rowsort label-2576
SELECT + col2 + col2 / - col0 AS col1 FROM tab0 AS cor0
----
1
32
82

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2578
SELECT col2 DIV cor0.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-2578
SELECT col2 / cor0.col1 col1 FROM tab1 AS cor0
----
2
5
7

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

query I rowsort
SELECT + 66 + cor0.col1 * 67 - 41 FROM tab1 AS cor0
----
1767
695
896

query I rowsort
SELECT + 35 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col2 + col0 * - CAST ( + 46 AS REAL ) col2 FROM tab0 AS cor0
----
-1071
-1609
-4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT 80 + + col1 DIV ( + col2 + col1 * + 72 ) FROM tab0 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2583
SELECT 80 + + col1 / ( + col2 + col1 * + 72 ) FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT ALL + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 15 FROM tab0, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL - + cor0.col1 * 48 + + col1 FROM tab1 AS cor0
----
-1222
-470
-611

onlyif mysql # use DIV operator for integer division
query I rowsort label-2587
SELECT ALL - col0 DIV col0 + col1 AS col2 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL - col0 / col0 + col1 AS col2 FROM tab2 AS cor0
----
16
30
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + col2 col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT cor0.col0 - ( 74 ) * cor0.col1 * col2 FROM tab0 AS cor0
----
-209988
-552099
-7143

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

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

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

query I rowsort
SELECT DISTINCT - cor1.col0 * + cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-49
-6084
-6241

query I rowsort
SELECT ALL - 49 FROM tab0 cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT + ( 84 ) AS col1 FROM tab1 AS cor0
----
84

query I rowsort
SELECT 10 * - tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c8903fc410b37020598a40d280b7ca8a

query I rowsort
SELECT - 55 AS col0 FROM tab1
----
-55
-55
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + - col0 col1 FROM tab2
----
-163
-164
-92

query I rowsort
SELECT DISTINCT - - 40 + col1 FROM tab1 cor0
----
50
53
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2600
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( + col0 ) * 20 + + col1 AS col2 FROM tab0 AS cor0
----
1871
566
797

query I rowsort
SELECT col2 * col0 + + cor0.col0 + 92 FROM tab0 cor0
----
162
7479
908

query I rowsort
SELECT DISTINCT cor0.col2 * + ( col0 + - col1 ) AS col1 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT ALL + cor0.col1 + - 48 FROM tab2 AS cor0
----
-17
-31
11

query I rowsort
SELECT col0 + + 46 * - col2 AS col2 FROM tab1 AS cor0
----
-2481
-2558
-4336

query I rowsort
SELECT ALL + - col1 * col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - col0 * 95 AS col0 FROM tab2 AS cor0
----
-665
-7410
-7505

onlyif mysql # use DIV operator for integer division
query I rowsort label-2608
SELECT col2 DIV 62 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2608
SELECT col2 / 62 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 * - cor0.col2 + + col2 FROM tab0 AS cor0
----
-35904
-551286
0

query I rowsort
SELECT ALL + col2 * + col2 + col0 - col1 FROM tab1 AS cor0
----
2893
3303
9283

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

query I rowsort
SELECT - - cor0.col0 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + col1 + + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1593
663
868

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

query I rowsort
SELECT - + 2 * col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - col2 * 63 + - col0 FROM tab2 AS cor0
----
-1708
-1716
-2473

query I rowsort
SELECT + col0 * + ( + col0 ) * - col2 + col1 + col2 FROM tab1 AS cor0
----
-233405
-406
-614291

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2619
SELECT ALL ( + col0 ) * col2 DIV 45 AS col2 FROM tab0 AS cor0
----
0
162
17

skipif mysql # not compatible
query I rowsort label-2619
SELECT ALL ( + col0 ) * col2 / 45 AS col2 FROM tab0 AS cor0
----
0
162
17

query I rowsort
SELECT ALL + col2 * + 93 + cor0.col0 * 41 FROM tab2 AS cor0
----
2798
5616
6773

query I rowsort
SELECT DISTINCT - 59 * - col2 AS col0 FROM tab0 cor0
----
1947
4838
59

query I rowsort
SELECT ALL + + 30 * - col0 AS col1 FROM tab1 AS cor0
----
-1920
-2400
-90

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

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

query I rowsort
SELECT ALL col0 + - 88 AS col2 FROM tab0 AS cor0
----
-53
-64
1

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

query I rowsort
SELECT ALL + + ( + cor0.col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT tab1.col1 * - 35 - - col2 FROM tab1
----
-293
-359
-856

query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) + col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - + 24 + + 46 FROM tab0 AS cor0
----
22
22
22

query I rowsort
SELECT - 70 + + 12 AS col1 FROM tab0 cor0
----
-58
-58
-58

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

query I rowsort
SELECT ALL + 48 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT - - col1 * + cor0.col0 - + col1 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * col2 + col2 col0 FROM tab0 AS cor0
----
2739
6806
83

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

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

query I rowsort
SELECT - col0 - col1 * - col1 FROM tab2 AS cor0
----
210
3403
954

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

query I rowsort
SELECT - col2 * - 25 + - cor0.col2 FROM tab0 AS cor0
----
1968
24
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2639
SELECT DISTINCT - col1 DIV - 18 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT - col1 / - 18 FROM tab2 AS cor0
----
0
1
3

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

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

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

query I rowsort
SELECT ALL + + col1 * - col0 * col2 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - - col2 * + col1 + - 30 AS col1 FROM tab1 AS cor0
----
1218
1374
540

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT col2 + - 8 DIV col0 FROM tab1
----
52
57
96

skipif mysql # not compatible
query I rowsort label-2645
SELECT col2 + - 8 / col0 FROM tab1
----
52
57
96

query I rowsort
SELECT 58 + tab2.col2 * col0 + ( col2 ) FROM tab2
----
2112
274
3098

query I rowsort
SELECT + 32 * col1 + + col0 * col1 * col1 FROM tab1 AS cor0
----
13936
2860
6720

query I rowsort
SELECT cor0.col1 + + col0 + + ( + col1 * col0 ) FROM tab1 AS cor0
----
107
1133
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 + col0 * + col2 col0 FROM tab1 AS cor0
----
127
3613
7645

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2650
SELECT - CAST( col0 + - col0 AS SIGNED ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2650
SELECT - CAST ( col0 + - col0 AS INTEGER ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - - 99 + - col0 AS col0 FROM tab2 AS cor0
----
20
21
92

query I rowsort
SELECT ALL - col0 + - tab0.col0 AS col2 FROM tab0
----
-178
-48
-70

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

query I rowsort
SELECT DISTINCT - 73 * - col1 + + col1 - 20 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-400
-958
844

skipif mysql # not compatible
query I rowsort
SELECT + col1 * col1 + ( col0 + cor0.col0 ) * - CAST ( - col1 AS REAL ) FROM tab0 AS cor0
----
11524
16199
24479

query I rowsort
SELECT cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2657
SELECT DISTINCT - tab1.col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

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

query I rowsort
SELECT 11 FROM tab1, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

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

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

query I rowsort
SELECT DISTINCT - 10 AS col1 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT - col1 + col1 * col2 FROM tab2
----
1475
629
806

query I rowsort
SELECT + ( ( - col2 ) ) * 93 + col1 AS col2 FROM tab2 AS cor0
----
-2359
-2480
-3517

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT + cor0.col2 DIV 56 - - col2 col1 FROM tab0 AS cor0
----
1
33
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2665
SELECT + cor0.col2 / 56 - - col2 col1 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT - - col1 + + 81 - - col0 AS col2 FROM tab1 AS cor0
----
110
155
174

query I rowsort
SELECT + + col0 + 5 AS col0 FROM tab2 AS cor0
----
12
83
84

query I rowsort
SELECT col1 + 21 AS col1 FROM tab1 AS cor0
----
31
34
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2669
SELECT - col2 + col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-2669
SELECT - col2 + col0 / - col0 AS col0 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT ALL - ( - 64 ) * col1 FROM tab0 AS cor0
----
5504
5824
6208

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

query I rowsort
SELECT col1 + + ( - cor0.col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2673
SELECT ALL 86 DIV + 10 FROM tab0 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL 86 / + 10 FROM tab0 AS cor0
----
8
8
8

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

skipif mysql # not compatible
query I rowsort label-2674
SELECT - CAST ( + col0 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

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

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

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

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

query I rowsort
SELECT ALL - - cor1.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

query I rowsort
SELECT ALL 72 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

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

query I rowsort
SELECT ALL - + col1 * - ( + col0 ) + col0 * 73 AS col1 FROM tab2 AS cor0
----
10296
7110
728

query I rowsort
SELECT + cor0.col1 * + col2 + 96 * + col0 FROM tab1 AS cor0
----
1692
6714
8928

query I rowsort
SELECT DISTINCT + col1 + + ( 96 ) FROM tab1 AS cor0
----
106
109
122

query I rowsort
SELECT + 68 + - tab1.col1 FROM tab1
----
42
55
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col0 col2 FROM tab1
----
-7
16
51

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

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab0, tab0 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 58 * - col0 col2 FROM tab0 cor0
----
33408
459418
71050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col2 + 75 col1 FROM tab1 AS cor0
----
142
155
184

query I rowsort
SELECT + 79 FROM tab0, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT - col2 DIV - col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2692
SELECT - col2 / - col2 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL col0 - tab0.col1 * col0 * col0 FROM tab0
----
-118790
-49512
-720722

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

query I rowsort
SELECT - col2 + + ( - col0 ) AS col2 FROM tab0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2696
SELECT - col1 DIV - col1 + 82 FROM tab1
----
83
83
83

skipif mysql # not compatible
query I rowsort label-2696
SELECT - col1 / - col1 + 82 FROM tab1
----
83
83
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2697
SELECT DISTINCT col0 - - CAST( col0 AS SIGNED ) FROM tab2
----
14
156
158

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT col0 - - CAST ( col0 AS INTEGER ) FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2698
SELECT + col2 * col0 + col1 - col1 * 57 DIV + tab0.col2 FROM tab0
----
-5397
730
7326

skipif mysql # not compatible
query I rowsort label-2698
SELECT + col2 * col0 + col1 - col1 * 57 / + tab0.col2 FROM tab0
----
-5397
730
7326

query I rowsort
SELECT + 18 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to 162ac04886543cfd80f55de959076e4e

query I rowsort
SELECT ALL - col2 * col0 - + col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT ALL - col2 - + col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT ALL - col0 DIV - col1 + - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - col0 / - col1 + - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + 36 * col0 AS col1 FROM tab0 AS cor0
----
1260
3204
864

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

query I rowsort
SELECT ALL - 94 * tab2.col1 + col0 AS col0 FROM tab2
----
-1519
-2907
-5468

query I rowsort
SELECT - col0 + col2 * col0 AS col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT 69 + + col0 * - col0 FROM tab1 AS cor0
----
-4027
-6331
60

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

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( + tab0.col2 ) + + 29 * col2 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 * col2 + - col2 * + tab0.col1 AS col0 FROM tab0
----
0
0
0

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2714
SELECT - col2 * col0 + + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif mysql # not compatible
query I rowsort label-2714
SELECT - col2 * col0 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + + 83 * + col0 AS col1 FROM tab0 AS cor0
----
1992
2905
7387

query I rowsort
SELECT ALL - 34 + + col0 FROM tab2 AS cor0
----
-27
44
45

query I rowsort
SELECT + 21 + cor0.col0 * + col1 FROM tab2 AS cor0
----
1364
238
4623

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * - col2 col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + 92 * - col2 * 76 AS col2 FROM tab2 AS cor0
----
-181792
-188784
-265696

onlyif mysql # use DIV operator for integer division
query I rowsort label-2721
SELECT ALL col1 DIV + col0 + col0 col2 FROM tab2
----
11
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL col1 / + col0 + col0 col2 FROM tab2
----
11
78
79

query I rowsort
SELECT ALL + col1 + + col0 * + tab1.col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL + col0 * + col1 + col1 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT ALL col0 + + col2 DIV col1 AS col0 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL col0 + + col2 / col1 AS col0 FROM tab2
----
7
78
81

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

query I rowsort
SELECT ALL - col1 * col0 + + col1 * - col0 AS col1 FROM tab2
----
-2686
-434
-9204

query I rowsort
SELECT DISTINCT tab0.col2 + - col1 + + tab0.col2 AS col0 FROM tab0
----
-20
-95
73

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

query I rowsort
SELECT + - cor0.col1 * col2 * + col2 + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806

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

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

query I rowsort
SELECT DISTINCT + - col2 * col1 + cor0.col2 AS col2 FROM tab2 cor0
----
-1508
-608
-810

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

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

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

query I rowsort
SELECT + col2 + + col1 * + col1 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT ALL + - col2 * col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

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

query I rowsort
SELECT - col0 * cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT - col0 + + col2 * - tab2.col0 AS col0 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT - ( - col0 ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col1 * col0 * tab2.col1 AS col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT col0 + col2 * - col0 FROM tab0
----
-7209
-768
0

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

query I rowsort
SELECT DISTINCT + - 52 + - col2 FROM tab1 AS cor0
----
-106
-109
-148

query I rowsort
SELECT DISTINCT 86 * col2 + col0 + - col0 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT ALL - - col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680

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

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

query I rowsort
SELECT ALL - - col2 * col2 * cor0.col1 + col2 FROM tab2 cor0
----
22626
24586
39910

query I rowsort
SELECT ALL ( - cor0.col1 ) + col2 + col2 AS col2 FROM tab1 AS cor0
----
104
179
82

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

query I rowsort
SELECT + col1 * cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT col2 DIV col2 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2755
SELECT col2 / col2 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98

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

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + cor0.col1 / col2 AS col0 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT + col1 * - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + col2 * + col2 + - tab2.col0 + + col2 AS col1 FROM tab2
----
1403
624
749

query I rowsort
SELECT col2 * col0 + - col0 FROM tab1 WHERE ( - col2 ) < ( NULL )
----

query I rowsort
SELECT + tab2.col2 FROM tab2 WHERE NOT col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * col1 + - col0 * col0 FROM tab2
----
-1482
-4898
168

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT col2 + - col0 * + col2 - - col1 FROM tab2
----
-131
-1943
-2947

onlyif mysql # use DIV operator for integer division
query I rowsort label-2765
SELECT col2 DIV col0 + col0 + col1 DIV - col1 FROM tab1
----
20
63
80

skipif mysql # not compatible
query I rowsort label-2765
SELECT col2 / col0 + col0 + col1 / - col1 FROM tab1
----
20
63
80

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT - col0 <= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + col1 col0 FROM tab1 AS cor0
----
18
2
5

query I rowsort
SELECT - cor0.col0 + - col1 * + 62 * ( col1 * + ( col1 ) ) FROM tab0 AS cor0
----
-39435496
-46721491
-56585761

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2770
SELECT - col2 DIV + tab1.col0 + - col1 * col1 AS col0 FROM tab1
----
-100
-170
-694

skipif mysql # not compatible
query I rowsort label-2770
SELECT - col2 / + tab1.col0 + - col1 * col1 AS col0 FROM tab1
----
-100
-170
-694

query I rowsort
SELECT DISTINCT + col1 + + col1 - - col1 FROM tab0 WHERE NULL < + col2 / col1 + - col2
----

query I rowsort
SELECT + col0 * - col1 + tab0.col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + tab0.col0 * tab0.col1 AS col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT - col2 DIV - tab2.col0 + - col1 * - col0 FROM tab2
----
1343
220
4602

skipif mysql # not compatible
query I rowsort label-2774
SELECT - col2 / - tab2.col0 + - col1 * - col0 FROM tab2
----
1343
220
4602

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + col0 ) NOT IN ( - col0 )
----

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

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

query I rowsort
SELECT DISTINCT + col1 - + tab0.col2 AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT + cor0.col1 + + col1 * + col2 * + col2 FROM tab0 AS cor0
----
194
611975
93740

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN ( NULL ) AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-2781
SELECT col1 / col1 + cor0.col2 AS col0 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT ALL col1 + - cor0.col0 + col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - tab2.col1 col2 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT col1 * tab1.col2 * - col2 FROM tab1 WHERE NOT + col1 > col1
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT ALL col0 * col2 DIV + tab0.col0 - - tab0.col2 AS col2 FROM tab0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL col0 * col2 / + tab0.col0 - - tab0.col2 AS col2 FROM tab0
----
164
2
66

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT ALL cor0.col2 DIV cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to dd2a1e9fc863524e3326dbd164233e1f

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL cor0.col2 / cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to dd2a1e9fc863524e3326dbd164233e1f

query I rowsort
SELECT ALL + col0 * - col1 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

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

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

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - tab1.col0 * - col0 * col0 FROM tab1
----
262144
27
512000

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

skipif mysql # not compatible
query I rowsort label-2794
SELECT col2 / + ( + cor0.col2 * col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + col1 - 74 AS col0 FROM tab1
----
-7
35
6

query I rowsort
SELECT ALL + col0 * - col0 - - ( tab1.col1 * col2 ) FROM tab1
----
-3526
-5152
1395

query I rowsort
SELECT + 51 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

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

query I rowsort
SELECT - 54 + - col1 AS col0 FROM tab2 AS cor0
----
-113
-71
-85

query I rowsort
SELECT + + 67 FROM tab1, tab0 cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to d502cfec04c7f71d688175ee0de49a52

query I rowsort
SELECT - col0 * - ( col1 * - col2 ) FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL 93 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT - col2 * col0 * - col0 - col0 FROM tab0
----
1190
18984
649433

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2804
SELECT - - col0 * CAST ( NULL AS INTEGER ) + col2 * col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * + 1 + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 90 * 53 FROM tab0, tab2 AS cor0
----
4770

query I rowsort
SELECT col1 + 11 AS col1 FROM tab0 AS cor0
----
102
108
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * 9 * - cor0.col1 col2 FROM tab1 cor0
----
-2880
-3744
-7488

query I rowsort
SELECT DISTINCT - + 0 * + col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - 63 AS col1 FROM tab1 AS cor0
----
-63
-63
-63

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

skipif mysql # not compatible
query I rowsort label-2811
SELECT - - 22 + + col2 / - col1 AS col0 FROM tab2 AS cor0
----
20
22
22

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2813
SELECT DISTINCT - cor0.col0 DIV - ( col2 ) FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT - cor0.col0 / - ( col2 ) FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ( + 62 * + cor0.col2 ) FROM tab0, tab2 cor0
----
9 values hashing to ffa0ba6bc2f00462c4fcc51270184e8c

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col2 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + + 4 + ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-82
-87
-93

query I rowsort
SELECT + - col0 * - cor0.col0 + - col2 * + col1 * - col1 AS col1 FROM tab0 AS cor0
----
10634
244644
686963

query I rowsort
SELECT DISTINCT 82 + 25 FROM tab1 AS cor0
----
107

query I rowsort
SELECT ALL + - 45 + 67 AS col1 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT ALL - ( - 52 ) * - cor0.col1 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
15045
181071
50003

query I rowsort
SELECT DISTINCT + - col0 - - 73 FROM tab1 AS cor0
----
-7
70
9

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

query I rowsort
SELECT ALL 52 * tab2.col2 * + col1 FROM tab2
----
33592
43524
79768

query I rowsort
SELECT DISTINCT - + 96 * - col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
61440
7488
99840

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

query I rowsort
SELECT 80 + - col1 * col1 FROM tab0
----
-7316
-8201
-9329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + ( + col1 ) * col2 col2 FROM tab0
----
113
2854
7478

query I rowsort
SELECT 87 + ( col2 ) AS col0 FROM tab1
----
141
144
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 73 + tab0.col0 col1 FROM tab0
----
1776
2590
6586

query I rowsort
SELECT tab0.col2 + 26 AS col1 FROM tab0
----
108
27
59

query I rowsort
SELECT col0 - 49 FROM tab0
----
-14
-25
40

query I rowsort
SELECT 73 * + col0 * col1 + col2 AS col2 FROM tab1
----
46777
5748
76016

query I rowsort
SELECT ( + col2 * tab1.col0 ) AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - - cor0.col0 * + ( - 1 ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT col2 * col1 + - 17 AS col2 FROM tab0 AS cor0
----
2821
7445
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col1 * + 14 col1 FROM tab0 cor0
----
-1180
-1185
-1323

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col1 * 70 + cor0.col0 - col0 * + col0 FROM tab2 AS cor0
----
-100172
-15232
-328146

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2841
SELECT DISTINCT col1 + CAST( 58 AS SIGNED ) * col1 * col1 AS col0 FROM tab0 AS cor0
----
429054
480389
545819

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT col1 + CAST ( 58 AS INTEGER ) * col1 * col1 AS col0 FROM tab0 AS cor0
----
429054
480389
545819

onlyif mysql # use DIV operator for integer division
query I rowsort label-2842
SELECT DISTINCT col0 DIV + col1 - tab0.col2 * col1 DIV col0 FROM tab0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT col0 / + col1 - tab0.col2 * col1 / col0 FROM tab0
----
-118
-2
-83

query I rowsort
SELECT ALL 84 - col0 * col2 AS col0 FROM tab1
----
-3564
-7596
-78

query I rowsort
SELECT + 12 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

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

query I rowsort
SELECT DISTINCT col0 * col0 + col1 FROM tab1
----
35
4106
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-2847
SELECT - col2 DIV col2 + ( + col1 ) * + col2 * col1 AS col1 FROM tab0 AS cor0
----
244067
679041
9408

skipif mysql # not compatible
query I rowsort label-2847
SELECT - col2 / col2 + ( + col1 ) * + col2 * col1 AS col1 FROM tab0 AS cor0
----
244067
679041
9408

query I rowsort
SELECT - col0 + 55 * - col0 AS col2 FROM tab2 AS cor0
----
-392
-4368
-4424

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

skipif mysql # not compatible
query I rowsort label-2849
SELECT DISTINCT - + col1 + CAST ( col2 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT + col0 DIV - CAST( - 25 AS SIGNED ) FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2850
SELECT + col0 / - CAST ( - 25 AS INTEGER ) FROM tab0 AS cor0
----
0
1
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT DISTINCT + col0 DIV + 46 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT + col0 / + 46 FROM tab1 AS cor0
----
0
1

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

query I rowsort
SELECT DISTINCT cor0.col2 * 17 AS col2 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT DISTINCT - col0 * - col1 * col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL col2 * + ( - col0 + cor0.col2 ) FROM tab2 AS cor0
----
-1352
-1558
540

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

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

query I rowsort
SELECT 60 FROM tab1, tab0 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL + tab1.col1 + 45 + + col1 FROM tab1
----
65
71
97

query I rowsort
SELECT DISTINCT col2 * tab2.col1 + - 39 AS col1 FROM tab2
----
1495
607
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 73 AS REAL ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

query I rowsort
SELECT + + 63 * col1 - - col2 FROM tab0 AS cor0
----
5451
5815
6112

query I rowsort
SELECT ( - 86 ) * + col2 - col1 FROM tab0 AS cor0
----
-183
-2924
-7143

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT col0 DIV + 5 FROM tab2
----
1
15
15

skipif mysql # not compatible
query I rowsort label-2864
SELECT col0 / + 5 FROM tab2
----
1
15
15

query I rowsort
SELECT ALL + - col2 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2866
SELECT col0 * CAST ( NULL AS INTEGER ) * 37 + col2 + - ( - col0 ) * + col0 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col0 * tab1.col2 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2868
SELECT col1 DIV + tab1.col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2868
SELECT col1 / + tab1.col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + col0 * 92 AS col2 FROM tab2
----
644
7176
7268

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

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

query I rowsort
SELECT + + 93 * - col0 AS col1 FROM tab0 AS cor0
----
-2232
-3255
-8277

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

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

skipif mysql # not compatible
query I rowsort label-2873
SELECT + col1 + - col1 * CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 17 * tab1.col0 col0 FROM tab1
----
1088
1360
51

query I rowsort
SELECT 41 * - col0 + - col0 AS col1 FROM tab1
----
-126
-2688
-3360

query I rowsort
SELECT + ( 64 ) + + tab0.col0 FROM tab0
----
153
88
99

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 DISTINCT + col2 + - col0 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2880
SELECT ALL cor0.col2 / - col2 - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL cor0.col2 / - col2 - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 - cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 83 * - cor0.col1 + col0 FROM tab1 AS cor0
----
-2155
-766
-999

onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT DISTINCT - 21 + col0 DIV + col2 FROM tab0 AS cor0
----
-20
-21
14

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT - 21 + col0 / + col2 FROM tab0 AS cor0
----
-20
-21
14

query I rowsort
SELECT - 87 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-249
-3735
-7767

query I rowsort
SELECT ALL - col2 * + col2 + - col1 - + col2 AS col0 FROM tab1 AS cor0
----
-2996
-3316
-9325

query I rowsort
SELECT DISTINCT - 56 * - cor0.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT col0 * - 25 + col2 AS col0 FROM tab1 AS cor0
----
-1543
-1904
-21

query I rowsort
SELECT ALL - col2 * ( - col0 + - col1 ) FROM tab1
----
1566
4218
8928

query I rowsort
SELECT + + col2 * + 54 AS col1 FROM tab0 AS cor0
----
1782
4428
54

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - ( col0 * col1 ) col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + ( cor0.col1 ) * - col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + 61 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
139
140
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT - ( 39 ) + - col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-39
-40
-57

skipif mysql # not compatible
query I rowsort label-2894
SELECT - ( 39 ) + - col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-39
-40
-57

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

skipif mysql # not compatible
query I rowsort label-2895
SELECT - ( - cor0.col0 ) * CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 * - col2 + + ( 74 ) col1 FROM tab1 AS cor0
----
-3564
-62
-7593

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

query I rowsort
SELECT DISTINCT + - ( col1 ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - col1 + - 82 * - col0 + + ( col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
142
4598
5507

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

query I rowsort
SELECT ALL - 79 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

query I rowsort
SELECT col1 * col0 + - col1 + col0 AS col0 FROM tab2 AS cor0
----
1405
193
4621

query I rowsort
SELECT - + col0 * - col2 + 36 AS col1 FROM tab2 AS cor0
----
2064
225
3038

query I rowsort
SELECT ALL col1 + - col1 + - col2 FROM tab1 cor0
----
-54
-57
-96

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

query I rowsort
SELECT - 47 * - col0 + col0 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT DISTINCT ( 35 ) + - col2 AS col0 FROM tab1 cor0
----
-19
-22
-61

query I rowsort
SELECT - 55 AS col2 FROM tab2 cor0
----
-55
-55
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2909
SELECT + CAST( 46 AS SIGNED ) * - col0 + - 40 AS col2 FROM tab1 AS cor0
----
-178
-2984
-3720

skipif mysql # not compatible
query I rowsort label-2909
SELECT + CAST ( 46 AS INTEGER ) * - col0 + - 40 AS col2 FROM tab1 AS cor0
----
-178
-2984
-3720

query I rowsort
SELECT ALL + 59 * - 51 FROM tab1 AS cor0
----
-3009
-3009
-3009

query I rowsort
SELECT DISTINCT + + 17 + - 25 + col1 FROM tab1 AS cor0
----
18
2
5

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

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL + col1 / - col0 - col1 / col1 FROM tab1 AS cor0
----
-1
-1
-9

query I rowsort
SELECT DISTINCT + ( + 58 ) * + cor0.col1 AS col2 FROM tab0 AS cor0
----
4988
5278
5626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + cor0.col2 col0 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab1, tab0 AS cor0
----
88

query I rowsort
SELECT col2 * + 77 + col0 AS col2 FROM tab2
----
2080
2086
3005

query I rowsort
SELECT 62 AS col0 FROM tab1, tab0 cor0, tab2, tab0 AS cor1
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

query I rowsort
SELECT DISTINCT col1 * + 97 FROM tab1 AS cor0
----
1261
2522
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-2920
SELECT - - col1 + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2920
SELECT - - col1 + col2 / - col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 93 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
10
13
26

query I rowsort
SELECT + 6 - col0 FROM tab2 AS cor0
----
-1
-72
-73

query I rowsort
SELECT DISTINCT + 19 - - col2 * - col2 FROM tab1
----
-2897
-3230
-9197

query I rowsort
SELECT - tab1.col2 - + col2 * + 86 FROM tab1
----
-4698
-4959
-8352

query I rowsort
SELECT DISTINCT col1 + 48 FROM tab1
----
58
61
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2927
SELECT col1 + CAST( ( col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-2927
SELECT col1 + CAST ( ( col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - col0 * col1 + col1 * - col2 AS col0 FROM tab1
----
-1210
-1482
-2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT - - col0 + - col1 DIV + col0 AS col2 FROM tab1 cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-2930
SELECT - - col0 + - col1 / + col0 AS col2 FROM tab1 cor0
----
-5
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT col2 + + col0 DIV - cor0.col1 FROM tab1 cor0
----
51
54
90

skipif mysql # not compatible
query I rowsort label-2931
SELECT col2 + + col0 / - cor0.col1 FROM tab1 cor0
----
51
54
90

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d

query I rowsort
SELECT DISTINCT col2 * col1 + + col0 + col2 AS col2 FROM tab1
----
1424
1461
691

query I rowsort
SELECT col1 * 75 AS col2 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT DISTINCT + + col0 * 85 + col1 * col2 AS col1 FROM tab1 cor0
----
1659
6010
8048

query I rowsort
SELECT ALL + - col0 * 27 FROM tab2 AS cor0
----
-189
-2106
-2133

query I rowsort
SELECT + col2 * 90 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT ALL col1 + 61 * col0 AS col0 FROM tab2
----
458
4817
4836

onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT - col1 DIV - cor0.col2 + 26 FROM tab1 AS cor0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-2939
SELECT - col1 / - cor0.col2 + 26 FROM tab1 AS cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 * - col2 + - col2 * col1 + 16 col2 FROM tab1 AS cor0
----
-5741
-6302
-9968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT - CAST( - col1 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-2941
SELECT - CAST ( - col1 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT 90 * - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2412f50893840271effaac76335fcb57

query I rowsort
SELECT DISTINCT - 50 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2114
-3445
-8149

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT ALL - + col2 DIV + cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL - + col2 / + cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - 15 * - 38 FROM tab1 AS cor0
----
570
570
570

query I rowsort
SELECT ALL - 19 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT DISTINCT - + 95 DIV col1 + col0 FROM tab1 AS cor0
----
0
55
73

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - + 95 / col1 + col0 FROM tab1 AS cor0
----
0
55
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2948
SELECT + CAST( 76 AS SIGNED ) DIV col0 + ( - 11 ) + - col1 AS col0 FROM tab1 AS cor0
----
-12
-20
-24

skipif mysql # not compatible
query I rowsort label-2948
SELECT + CAST ( 76 AS INTEGER ) / col0 + ( - 11 ) + - col1 AS col0 FROM tab1 AS cor0
----
-12
-20
-24

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2950
SELECT - cor0.col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2950
SELECT - cor0.col2 / col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + cor0.col0 + + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188

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

query I rowsort
SELECT DISTINCT + + col1 * - 12 FROM tab0 AS cor0
----
-1032
-1092
-1164

onlyif mysql # use DIV operator for integer division
query I rowsort label-2956
SELECT col2 DIV - 25 + col2 AS col1 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-2956
SELECT col2 / - 25 + col2 AS col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT DISTINCT col2 * ( col0 * col2 ) AS col2 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col2 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 * - ( - col1 ) * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT col1 + col1 * 2 FROM tab2 cor0
----
177
51
93

query I rowsort
SELECT DISTINCT col2 * - ( 74 ) AS col1 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT DISTINCT col0 - col2 * - ( col2 * + col0 ) FROM tab1
----
208000
737360
8751

query I rowsort
SELECT + 23 + col1 * - tab0.col2 - col0 * + col1 * + col1 FROM tab0
----
-180319
-329389
-744448

onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT col0 DIV - col0 + col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2964
SELECT col0 / - col0 + col1 FROM tab2
----
16
30
58

query I rowsort
SELECT + col0 + + col2 + - tab0.col1 * - col0 AS col0 FROM tab0
----
2121
3431
8270

query I rowsort
SELECT DISTINCT - 68 * - col0 + col0 - - col2 AS col0 FROM tab0
----
1689
2416
6223

query I rowsort
SELECT ( + col0 ) * + ( + col1 ) FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2968
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-17
-31
-59

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2970
SELECT - col1 DIV - 13 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2970
SELECT - col1 / - 13 FROM tab2 AS cor0
----
1
2
4

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

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

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

query I rowsort
SELECT ALL + - ( 23 ) + - col0 FROM tab1 cor0
----
-103
-26
-87

query I rowsort
SELECT ALL - + col2 + + 95 FROM tab1 cor0
----
-1
38
41

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col0 * + col2 col2 FROM tab2
----
-2054
-216
-3040

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

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

query I rowsort
SELECT DISTINCT + 71 FROM tab1
----
71

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - 98 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2981
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 3 FROM tab0, tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 3 FROM tab0, tab2, tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 + + 99 AS col2 FROM tab0 AS cor0
----
196
2937
7561

query I rowsort
SELECT + col0 * col2 + 16 FROM tab1 AS cor0
----
178
3664
7696

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

query I rowsort
SELECT + col1 + - 85 AS col0 FROM tab0 cor0
----
1
12
6

query I rowsort
SELECT ALL + + col1 * col2 - 26 FROM tab1 cor0
----
1222
1378
544

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

query I rowsort
SELECT + - col1 + + 83 * 66 FROM tab1 AS cor0
----
5452
5465
5468

query I rowsort
SELECT DISTINCT + col1 * ( - 4 ) + + col0 + col0 AS col0 FROM tab0 AS cor0
----
-186
-296
-318

query I rowsort
SELECT DISTINCT + - col0 - + col1 * - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + + cor0.col2 * ( + ( col2 ) + + cor0.col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
-130390
-35530
-48546

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT + + col2 * 30 DIV col1 AS col2 FROM tab1 AS cor0
----
171
221
62

skipif mysql # not compatible
query I rowsort label-2994
SELECT + + col2 * 30 / col1 AS col2 FROM tab1 AS cor0
----
171
221
62

query I rowsort
SELECT DISTINCT col2 * col1 + - col0 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT ALL + col1 + - col0 * 34 FROM tab0 AS cor0
----
-1093
-2935
-730

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

query I rowsort
SELECT ALL 98 + - tab0.col0 FROM tab0
----
63
74
9

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - col0 + col2 * 29 FROM tab1 AS cor0
----
1563
1589
2704

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

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

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

query I rowsort
SELECT ALL + + col2 + 33 AS col2 FROM tab0 AS cor0
----
115
34
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3004
SELECT DISTINCT - col1 DIV ( - ( + cor0.col1 ) ) - - 69 AS col1 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - col1 / ( - ( + cor0.col1 ) ) - - 69 AS col1 FROM tab0 AS cor0
----
70

query I rowsort
SELECT + 74 + - ( col2 + ( + col2 ) ) FROM tab0 AS cor0
----
-90
72
8

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

query I rowsort
SELECT - 2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT - 87 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1161
1317
483

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3010
SELECT DISTINCT + CAST( tab1.col0 AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT + CAST ( tab1.col0 AS INTEGER ) FROM tab1
----
3
64
80

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

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

query I rowsort
SELECT DISTINCT 18 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT DISTINCT + tab0.col0 + col2 * col0 + 11 AS col1 FROM tab0
----
7398
81
827

query I rowsort
SELECT + 46 * + col2 AS col2 FROM tab2
----
1196
1242
1748

query I rowsort
SELECT ALL + col2 * cor0.col0 * - 25 FROM tab0 AS cor0
----
-182450
-19800
-875

query I rowsort
SELECT ALL + 71 AS col1 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT - + 12 + col0 - + ( col1 ) * - col0 AS col0 FROM tab2 cor0
----
1410
212
4668

query I rowsort
SELECT ALL + col1 * - col1 + + 67 FROM tab2 AS cor0
----
-222
-3414
-894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT col1 + col1 * + cor0.col2 AS col0 FROM tab0 cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col1 col1 FROM tab0 cor0
----
2064
3395
8099

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3023
SELECT + ( + col1 ) + CAST( + 91 + + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
111
117
143

skipif mysql # not compatible
query I rowsort label-3023
SELECT + ( + col1 ) + CAST ( + 91 + + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
111
117
143

query I rowsort
SELECT - + col1 * + col2 + 97 * + 32 FROM tab1 AS cor0
----
1700
1856
2534

query I rowsort
SELECT - cor0.col2 + - col1 * 58 AS col1 FROM tab1 AS cor0
----
-1562
-637
-850

query I rowsort
SELECT - 19 + col1 FROM tab1 AS cor0
----
-6
-9
7

query I rowsort
SELECT DISTINCT - 8 * + col2 + col0 FROM tab1 AS cor0
----
-392
-429
-688

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

query I rowsort
SELECT + col1 * cor0.col2 * + 58 + + col0 AS col2 FROM tab2 cor0
----
37547
48553
89050

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

query I rowsort
SELECT DISTINCT - 52 + col0 AS col1 FROM tab0 AS cor0
----
-17
-28
37

query I rowsort
SELECT col0 + col1 * col1 AS col1 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT ALL col2 * - col2 + 89 AS col2 FROM tab1 AS cor0
----
-2827
-3160
-9127

onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT DISTINCT - col2 + - col0 DIV - col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-51
-58
-84

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT - col2 + - col0 / - col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-51
-58
-84

query I rowsort
SELECT 28 + + col1 FROM tab1 AS cor0
----
38
41
54

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

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

skipif mysql # not compatible
query I rowsort label-3037
SELECT + col1 * - CAST ( - col0 * + col0 AS INTEGER ) FROM tab2 AS cor0
----
106097
1519
358956

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT DISTINCT col2 + col1 DIV + 33 FROM tab0
----
3
35
84

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT col2 + col1 / + 33 FROM tab0
----
3
35
84

query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT cor0.col1 * col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580

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

query I rowsort
SELECT col0 * 60 * - cor0.col2 + - col0 FROM tab1 AS cor0
----
-218944
-460880
-9723

onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT + col1 DIV + 99 + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-3044
SELECT + col1 / + 99 + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - col0 + - ( ( - col0 ) + col0 ) col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

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

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 87 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col0 - ( - col1 ) AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL 20 * + 37 - - col1 AS col0 FROM tab0
----
826
831
837

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3050
SELECT CAST( + col2 AS SIGNED ) + col0 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-3050
SELECT CAST ( + col2 AS INTEGER ) + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL ( - 79 ) - - col2 AS col0 FROM tab0
----
-46
-78
3

query I rowsort
SELECT DISTINCT - 12 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
-12

query I rowsort
SELECT DISTINCT - + 62 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 + - col1 col2 FROM tab1 AS cor0
----
-65
-68
-81

query I rowsort
SELECT + - 87 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT 24 FROM tab2 cor0
----
24

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 16 col0 FROM tab0
----
17
49
98

query I rowsort
SELECT - col0 - + ( col2 ) FROM tab1
----
-121
-176
-57

query I rowsort
SELECT col1 - - col2 * - col0 AS col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT col0 + 55 AS col2 FROM tab0
----
144
79
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3064
SELECT DISTINCT - col2 * col1 + - 3 DIV col0 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT - col2 * col1 + - 3 / col0 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col0 * + 19 AS col1 FROM tab1 AS cor0
----
1216
1520
57

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

query I rowsort
SELECT DISTINCT + 0 * 2 * + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + col0 - + col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 45 + + 1 * - cor0.col0 FROM tab0 AS cor0
----
-44
10
21

query I rowsort
SELECT ALL col2 + 69 * + col2 AS col2 FROM tab2 cor0
----
1820
1890
2660

query I rowsort
SELECT col1 * 38 AS col1 FROM tab2 AS cor0
----
1178
2242
646

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

query I rowsort
SELECT + ( + ( + cor0.col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col0 + 7 AS col0 FROM tab2 AS cor0
----
-1336
-210
-4595

query I rowsort
SELECT DISTINCT - col2 - + col1 * + col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL + col0 - 69 * col0 FROM tab0 AS cor0
----
-1632
-2380
-6052

onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT col1 DIV 74 + col1 * + col2 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3077
SELECT col1 / 74 + col1 * + col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - 94 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-127
-176
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 * - col2 col2 FROM tab1 AS cor0
----
5130
5415
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 68 ) + cor0.col1 col1 FROM tab0 AS cor0
----
154
159
165

query I rowsort
SELECT + 33 * 76 FROM tab0 AS cor0
----
2508
2508
2508

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 71 col1 FROM tab0 cor0
----
71
71
71

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

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

query I rowsort
SELECT col1 * col2 + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3087
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3087
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT 22 + + col1 + + col0 * + col1 * col2 FROM tab1
----
36512
4260
99875

query I rowsort
SELECT ALL tab1.col1 * 58 + col0 + + col2 AS col1 FROM tab1
----
1565
701
930

query I rowsort
SELECT ( 52 ) FROM tab2
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT - ( + col2 + - tab0.col0 ) DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT - ( + col2 + - tab0.col0 ) / - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + - 38 AS col2 FROM tab0 AS cor0
----
-38
-38
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3093
SELECT 31 DIV col1 FROM tab1 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3093
SELECT 31 / col1 FROM tab1 cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * cor0.col1 + + cor0.col2 col2 FROM tab2 AS cor0
----
-210
-30
-97

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-3097
SELECT - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - 53 + ( cor0.col1 ) FROM tab0 AS cor0
----
33
38
44

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3101
SELECT - col2 + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-3101
SELECT - col2 + col1 / col0 AS col1 FROM tab2 AS cor0
----
-23
-26
-38

query I rowsort
SELECT - 93 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-11
-60
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * - col2 col0 FROM tab0 AS cor0
----
-2814
-62
-7373

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

query I rowsort
SELECT + col0 + - col1 * - col1 AS col1 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT ALL - col2 * col1 * - col2 + - col2 AS col0 FROM tab1
----
119712
32433
75762

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

query I rowsort
SELECT DISTINCT col2 + + col2 + tab1.col2 FROM tab1
----
162
171
288

query I rowsort
SELECT ALL + cor0.col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) = - col0 / + col2
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 + col2 col1 FROM tab2 AS cor0
----
1560
684
864

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 - cor0.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col1 + + cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT col0 + col0 * tab2.col2 * - col2 FROM tab2
----
-113997
-5096
-52650

query I rowsort
SELECT col1 + tab2.col1 * tab2.col1 AS col1 FROM tab2
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3117
SELECT - col0 + - col1 * col0 DIV - col2 col1 FROM tab1
----
-2
-53
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3117
SELECT - col0 + - col1 * col0 / - col2 col1 FROM tab1
----
-2
-53
-70

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

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + col2 NOT IN ( + tab0.col1 )
----

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

query I rowsort
SELECT col2 * tab0.col1 + + tab0.col1 AS col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT cor0.col2 FROM tab2, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 7786718bd8042022537378d40ec87475

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT + col2 + col1 DIV tab0.col2 + + col1 FROM tab0
----
121
174
195

skipif mysql # not compatible
query I rowsort label-3124
SELECT + col2 + col1 / tab0.col2 + + col1 FROM tab0
----
121
174
195

onlyif mysql # use DIV operator for integer division
query I rowsort label-3125
SELECT col1 DIV - 44 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT col1 / - 44 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * + tab0.col0 + 27 * - col2 AS col1 FROM tab0
----
-315
1198
5707

query I rowsort
SELECT + 98 * cor0.col1 + cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
16216
9220
9541

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

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

query I rowsort
SELECT ALL - col1 + 66 AS col0 FROM tab2 AS cor0
----
35
49
7

query I rowsort
SELECT + 81 * - col0 + col0 FROM tab1 AS cor0
----
-240
-5120
-6400

query I rowsort
SELECT ALL + 76 * cor0.col1 FROM tab2 AS cor0
----
1292
2356
4484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + + col2 * + col0 col2 FROM tab0 AS cor0
----
-42
715
7221

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT + col0 DIV - 77 + - col2 AS col1 FROM tab2 AS cor0
----
-27
-27
-39

skipif mysql # not compatible
query I rowsort label-3134
SELECT + col0 / - 77 + - col2 AS col1 FROM tab2 AS cor0
----
-27
-27
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3135
SELECT DISTINCT + 80 + + ( + col1 ) DIV ( col1 ) FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + 80 + + ( + col1 ) / ( col1 ) FROM tab1 AS cor0
----
81

query I rowsort
SELECT - col0 * - col1 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + + ( + col1 ) * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + + 92 * 2 - - col2 FROM tab2 AS cor0
----
210
211
222

query I rowsort
SELECT DISTINCT + + ( ( - cor0.col1 ) ) * + 32 FROM tab1 AS cor0
----
-320
-416
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col2 FROM tab2 AS cor0
----
68
68
68

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

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

query I rowsort
SELECT col1 * - 30 AS col2 FROM tab1 cor0
----
-300
-390
-780

query I rowsort
SELECT ALL - col1 + + col0 * col2 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-97
682
7118

query I rowsort
SELECT DISTINCT + + 24 * - ( col1 ) + - cor0.col2 * cor0.col2 * col1 FROM tab1 AS cor0
----
-120120
-32730
-76440

query I rowsort
SELECT + ( 41 ) FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT ALL + + 52 * - 28 - col2 FROM tab0 AS cor0
----
-1457
-1489
-1538

query I rowsort
SELECT ALL 27 * + col1 FROM tab0 AS cor0
----
2322
2457
2619

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

query I rowsort
SELECT ALL - ( cor0.col1 ) * 20 AS col2 FROM tab2 AS cor0
----
-1180
-340
-620

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - - col2 * + 39 FROM tab0 AS cor0
----
1287
3198
39

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT col2 + - ( + col1 ) DIV col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-3157
SELECT col2 + - ( + col1 ) / col2 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT DISTINCT col0 * + 38 AS col0 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT ALL + col2 * 81 FROM tab0 cor0
----
2673
6642
81

query I rowsort
SELECT DISTINCT + col1 + 62 + - col1 AS col0 FROM tab2 AS cor0
----
62

query I rowsort
SELECT DISTINCT + col1 + + ( + col0 + col2 ) FROM tab2 AS cor0
----
134
163
65

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

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

query I rowsort
SELECT DISTINCT + cor0.col0 + ( col1 + cor0.col1 ) FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL + col1 * + ( + 33 ) + + col1 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab0, tab2, tab2 AS cor0
----
-70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 69 * - col2 col1 FROM tab2 AS cor0
----
46644
50301
99636

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3170
SELECT ALL tab0.col2 - CAST( col2 AS SIGNED ) * col0 * col2 AS col0 FROM tab0
----
-26103
-34
-598354

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL tab0.col2 - CAST ( col2 AS INTEGER ) * col0 * col2 AS col0 FROM tab0
----
-26103
-34
-598354

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

query I rowsort
SELECT - tab0.col1 + 34 * col2 AS col1 FROM tab0
----
-63
1036
2697

query I rowsort
SELECT col0 * col2 + col1 * - col0 FROM tab2 AS cor0
----
-2574
-28
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT DISTINCT - tab0.col1 DIV col2 col0 FROM tab0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT - tab0.col1 / col2 col0 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT 3 FROM tab2, tab0 cor0
----
3

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

query I rowsort
SELECT DISTINCT 4 * - col2 + tab2.col0 FROM tab2
----
-101
-26
-73

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

query I rowsort
SELECT cor0.col0 FROM tab0, tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - cor0.col1 * + cor0.col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col0 * - 99 * - col2 + + col1 AS col1 FROM tab1
----
16064
361162
760333

query I rowsort
SELECT 7 + + 65 AS col1 FROM tab1
----
72
72
72

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 + + ( + col1 ) AS col2 FROM tab2
----
306
3540
992

query I rowsort
SELECT 30 * col0 * + col2 + col2 FROM tab1
----
109497
230496
4914

query I rowsort
SELECT - col1 + - col2 * 44 AS col1 FROM tab2
----
-1203
-1219
-1689

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

query I rowsort
SELECT 13 + - tab1.col2 * - col1 AS col2 FROM tab1
----
1261
1417
583

query I rowsort
SELECT ALL + ( + cor0.col1 ) + - col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( - col1 ) + 12 FROM tab2 AS cor0
----
-19
-47
-5

query I rowsort
SELECT - 41 + col1 * + 41 AS col2 FROM tab2
----
1230
2378
656

query I rowsort
SELECT + - 75 * + col2 + + cor0.col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

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

query I rowsort
SELECT ALL + ( col2 ) * + col0 * - ( col0 ) + - col0 FROM tab1 AS cor0
----
-233536
-489
-614480

query I rowsort
SELECT + + 50 + - col0 FROM tab1 AS cor0
----
-14
-30
47

query I rowsort
SELECT - - 23 * - col2 + - cor0.col1 FROM tab0 cor0
----
-120
-1977
-845

onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT col1 * - 69 + col0 DIV col1 + - tab1.col2 AS col2 FROM tab1
----
-1848
-741
-987

skipif mysql # not compatible
query I rowsort label-3196
SELECT col1 * - 69 + col0 / col1 + - tab1.col2 AS col2 FROM tab1
----
-1848
-741
-987

query I rowsort
SELECT - 81 * col1 + 43 FROM tab1 AS cor0
----
-1010
-2063
-767

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

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col2 * - col0 * - 86 FROM tab1
----
13256
313628
660311

onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT ALL + tab0.col1 * 85 + - col0 DIV 19 FROM tab0
----
7309
7731
8244

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + tab0.col1 * 85 + - col0 / 19 FROM tab0
----
7309
7731
8244

query I rowsort
SELECT - 25 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

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

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

query I rowsort
SELECT ALL - - col2 * + col1 + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT + 82 + 89 FROM tab2, tab0 cor0
----
9 values hashing to 4614b86556cf7855e8bae5fd04fe40a9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3205
SELECT ALL col0 * CAST( - col0 AS SIGNED ) FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL col0 * CAST ( - col0 AS INTEGER ) FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + 58 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3207
SELECT ALL - col0 DIV 17 AS col1 FROM tab0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-3207
SELECT ALL - col0 / 17 AS col1 FROM tab0
----
-1
-2
-5

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-3209
SELECT ALL + tab0.col2 DIV + 20 AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL + tab0.col2 / + 20 AS col2 FROM tab0
----
0
1
4

query I rowsort
SELECT - 20 * 94 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1621d6ffe9079c3ddc6a03d4a0bce2d2

query I rowsort
SELECT + col2 + - 44 FROM tab0 AS cor0
----
-11
-43
38

query I rowsort
SELECT DISTINCT cor0.col1 + ( - 24 ) AS col1 FROM tab1 AS cor0
----
-11
-14
2

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

query I rowsort
SELECT DISTINCT + ( 91 ) + col2 + + col1 * - 77 AS col1 FROM tab0 AS cor0
----
-6498
-6834
-7377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 col2 FROM tab1 AS cor0
----
3
64
80

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

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + col1 FROM tab1 cor0
----
0

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

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

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

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

query I rowsort
SELECT ALL col2 * col0 - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT 89 AS col1 FROM tab2 cor0
----
89
89
89

query I rowsort
SELECT - 76 + - col2 AS col0 FROM tab1 AS cor0
----
-130
-133
-172

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT + col0 DIV 74 + col1 - + ( col2 ) AS col1 FROM tab0 AS cor0
----
10
53
96

skipif mysql # not compatible
query I rowsort label-3222
SELECT + col0 / 74 + col1 - + ( col2 ) AS col1 FROM tab0 AS cor0
----
10
53
96

query I rowsort
SELECT - - col2 * 0 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - col0 * - col1 + col2 + - cor0.col0 FROM tab2 AS cor0
----
1302
237
4550

query I rowsort
SELECT ALL + - 38 * ( + col0 ) + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-270
-2981
-2997

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3226
SELECT DISTINCT - - CAST( 45 AS SIGNED ) + - col2 AS col0 FROM tab0 AS cor0
----
-37
12
44

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT - - CAST ( 45 AS INTEGER ) + - col2 AS col0 FROM tab0 AS cor0
----
-37
12
44

query I rowsort
SELECT + - 52 AS col2 FROM tab2 cor0
----
-52
-52
-52

query I rowsort
SELECT 50 * col2 - col1 FROM tab0 AS cor0
----
-47
1564
4009

query I rowsort
SELECT 97 - col2 AS col1 FROM tab2
----
59
70
71

query I rowsort
SELECT - - 22 AS col2 FROM tab2 cor0
----
22
22
22

query I rowsort
SELECT - - col1 + - col1 * 11 AS col2 FROM tab1 AS cor0
----
-100
-130
-260

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

query I rowsort
SELECT - + col2 - - col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT - + 96 + + cor0.col2 - col0 * 9 * col1 FROM tab0 AS cor0
----
-18639
-30650
-72905

onlyif mysql # use DIV operator for integer division
query I rowsort label-3235
SELECT - col0 DIV - col2 + CAST( 27 AS SIGNED ) FROM tab1 AS cor0
----
27
27
28

skipif mysql # not compatible
query I rowsort label-3235
SELECT - col0 / - col2 + CAST ( 27 AS INTEGER ) FROM tab1 AS cor0
----
27
27
28

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

query I rowsort
SELECT - 36 * col1 AS col1 FROM tab0
----
-3096
-3276
-3492

query I rowsort
SELECT ALL + cor0.col1 * col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT ALL - + ( + col2 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL - + ( + col2 ) / - col1 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL 73 + - col0 * - col1 AS col0 FROM tab2 AS cor0
----
1416
290
4675

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT col2 * col1 DIV + cor0.col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3241
SELECT col2 * col1 / + cor0.col2 FROM tab1 AS cor0
----
10
13
26

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

query I rowsort
SELECT ALL + col1 * - 55 FROM tab2 AS cor0
----
-1705
-3245
-935

onlyif mysql # use DIV operator for integer division
query I rowsort label-3244
SELECT DISTINCT + - cor0.col2 DIV + ( col0 ) AS col1 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT + - cor0.col2 / + ( col0 ) AS col1 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT - + col0 * 14 * + 93 + col2 AS col2 FROM tab2 cor0
----
-101530
-102820
-9087

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3246
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + ( 70 ) + col2 * + col2 FROM tab1 AS cor0
----
2986
3319
9286

query I rowsort
SELECT ALL 64 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT DISTINCT 36 * - col2 AS col2 FROM tab2
----
-1368
-936
-972

query I rowsort
SELECT DISTINCT 28 * col0 AS col1 FROM tab2
----
196
2184
2212

query I rowsort
SELECT - tab1.col1 * col2 * col2 + + col2 AS col1 FROM tab1
----
-119712
-32433
-75762

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

skipif mysql # not compatible
query I rowsort label-3252
SELECT col2 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + ( col2 ) + - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL col2 * 73 - - col1 FROM tab0 cor0
----
170
2495
6077

query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 * 99 FROM tab1 AS cor0
----
1191
2520
933

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3256
SELECT ALL + - col0 * + CAST( + col2 AS SIGNED ) - - col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL + - col0 * + CAST ( + col2 AS INTEGER ) - - col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 + - col2 FROM tab2 AS cor0
----
-100
-3
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 71 - col2 col0 FROM tab2 cor0
----
1169
2174
4163

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

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

query I rowsort
SELECT ALL col2 * cor0.col0 + col0 * col2 + + 78 AS col0 FROM tab1 AS cor0
----
15438
402
7374

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

query I rowsort
SELECT col0 + col1 + col0 FROM tab1
----
138
173
32

query I rowsort
SELECT DISTINCT tab0.col1 + - col1 * + tab0.col1 AS col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT + tab2.col1 * - tab2.col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 + + col0 + col1 AS col2 FROM tab0
----
196
229
271

query I rowsort
SELECT ALL tab1.col2 - - col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL + col0 * col1 * tab2.col1 FROM tab2
----
22831
271518
6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + tab2.col2 * col2 col2 FROM tab2
----
-1365
-598
-722

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + tab1.col2 NOT BETWEEN ( col0 * col0 ) AND NULL
----
64
10
57
80
13
96

query I rowsort
SELECT - - col0 * + col2 + 96 FROM tab2 AS cor0
----
2124
285
3098

query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 * + 14 FROM tab1 AS cor0
----
1400
2366
9464

query I rowsort
SELECT - col1 * - tab2.col1 + col0 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT DISTINCT 95 * - cor0.col1 - ( - 35 + + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-8159
-8699
-9215

query I rowsort
SELECT ALL + cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - ( col1 ) * + 67 AS col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT DISTINCT + - col0 * - col0 + + col2 FROM tab2 AS cor0
----
6110
6279
76

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT DISTINCT + + 17 * + cor0.col1 + - CAST( 12 AS SIGNED ) * col1 FROM tab1 AS cor0
----
130
50
65

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + + 17 * + cor0.col1 + - CAST ( 12 AS INTEGER ) * col1 FROM tab1 AS cor0
----
130
50
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-3284
SELECT + cor0.col2 + col2 + - 93 DIV + col0 FROM tab2 AS cor0
----
41
51
75

skipif mysql # not compatible
query I rowsort label-3284
SELECT + cor0.col2 + col2 + - 93 / + col0 FROM tab2 AS cor0
----
41
51
75

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

query I rowsort
SELECT DISTINCT - 54 * col0 FROM tab2 AS cor0
----
-378
-4212
-4266

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

query I rowsort
SELECT cor0.col0 * - col1 * col2 + - col2 + - col2 * - 7 FROM tab2 AS cor0
----
-119496
-50806
-5697

query I rowsort
SELECT ALL col0 * 61 AS col1 FROM tab0 AS cor0
----
1464
2135
5429

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

skipif mysql # not compatible
query I rowsort label-3290
SELECT - col2 * + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

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

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

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

skipif mysql # not compatible
query I rowsort label-3293
SELECT - col1 / - 57 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 23 * - col0 FROM tab0
----
2047
552
805

query I rowsort
SELECT DISTINCT - 92 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 85 + cor1.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 498d143e3da32634429de14c48e202ba

query I rowsort
SELECT DISTINCT cor2.col2 * 3 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
246
3
99

query I rowsort
SELECT ALL - - col2 * ( - col1 ) * - 89 AS col1 FROM tab1 cor0
----
111072
124956
50730

query I rowsort
SELECT + 35 * col1 * - col0 FROM tab2 cor0
----
-161070
-47005
-7595

query I rowsort
SELECT DISTINCT - col0 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL cor0.col1 * - col0 * col0 + - ( - col2 ) + - col0 AS col2 FROM tab2 AS cor0
----
-106138
-1499
-359008

query I rowsort
SELECT DISTINCT + ( + 30 ) * col2 AS col0 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + + col1 * + col0 + col1 * col0 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT ALL - col2 + - col0 * - col1 * 24 FROM tab2 AS cor0
----
110422
32194
5181

query I rowsort
SELECT ALL + tab2.col1 - 67 * col0 FROM tab2
----
-438
-5167
-5276

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3307
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3307
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + 63 + + col2 * col2 * 70 FROM tab1
----
204183
227493
645183

query I rowsort
SELECT ALL col1 + 85 AS col2 FROM tab2
----
102
116
144

query I rowsort
SELECT - col1 + - col1 * cor0.col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + col1 * col0 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3312
SELECT DISTINCT - ( + col1 ) * + tab0.col1 + CAST( + col2 AS SIGNED ) + + tab0.col0 FROM tab0
----
-7339
-8110
-9373

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - ( + col1 ) * + tab0.col1 + CAST ( + col2 AS INTEGER ) + + tab0.col0 FROM tab0
----
-7339
-8110
-9373

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

query I rowsort
SELECT - col0 + 7 FROM tab1 AS cor0
----
-57
-73
4

query I rowsort
SELECT DISTINCT + - cor0.col1 + - 21 AS col0 FROM tab0 AS cor0
----
-107
-112
-118

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3316
SELECT ALL - col0 + ( col0 ) + col2 * cor0.col1 / col1 col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + col2 * ( + col1 * col1 ) FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT - 87 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
-7
-84

query I rowsort
SELECT + 72 + - 94 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - - 26 + col1 AS col1 FROM tab0 AS cor0
----
112
117
123

query I rowsort
SELECT + 57 + - 61 AS col0 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT + col2 + 10 AS col2 FROM tab0 cor0
----
11
43
92

query I rowsort
SELECT ALL + col0 * tab0.col1 * 43 FROM tab0
----
145985
348257
88752

query I rowsort
SELECT + 66 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + 99 + cor0.col2 FROM tab1 AS cor0
----
153
156
195

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

query I rowsort
SELECT DISTINCT + col1 + - col1 + 3 * - col0 FROM tab0 AS cor0
----
-105
-267
-72

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3329
SELECT ALL + col2 + col1 + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
134
163
65

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + col2 + col1 + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT DISTINCT + ( col1 ) + - 62 FROM tab0 AS cor0
----
24
29
35

query I rowsort
SELECT - + 87 AS col2 FROM tab0 cor0
----
-87
-87
-87

query I rowsort
SELECT - 32 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

query I rowsort
SELECT cor1.col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - col1 * 3 + + 76 * + col0 FROM tab2 cor0
----
439
5751
5953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - 59 * col2 col2 FROM tab1 AS cor0
----
-3189
-3427
-5744

query I rowsort
SELECT + cor1.col1 * 8 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 965b9ab2e2aa40fe44f1c96045c0e6f7

query I rowsort
SELECT + col1 - 91 AS col0 FROM tab0
----
-5
0
6

query I rowsort
SELECT - 74 FROM tab0, tab2 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT col0 - + 88 AS col2 FROM tab2
----
-10
-81
-9

query I rowsort
SELECT + col2 * 38 + col1 AS col0 FROM tab1
----
2078
2176
3661

query I rowsort
SELECT DISTINCT + ( col1 * col0 ) AS col2 FROM tab2
----
1343
217
4602

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

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

query I rowsort
SELECT - col2 + - 19 * - col2 FROM tab2 AS cor0
----
468
486
684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + col1 col2 FROM tab2 AS cor0
----
137
38
96

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

query I rowsort
SELECT DISTINCT - + 78 * + col0 + ( col0 ) FROM tab1 AS cor0
----
-231
-4928
-6160

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

query I rowsort
SELECT + 0 * + 12 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 - col1 * cor0.col2 AS col2 FROM tab2 cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3351
SELECT ALL CAST( + 7 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
103
61
64

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL CAST ( + 7 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT DISTINCT + col2 + - 20 FROM tab1 cor0
----
34
37
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 61 + col2 * + cor0.col2 col1 FROM tab1 AS cor0
----
2977
3310
9277

query I rowsort
SELECT + col2 * 87 AS col2 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT DISTINCT + 50 FROM tab0, tab2, tab0 cor0
----
50

query I rowsort
SELECT ALL - 51 + + cor0.col1 FROM tab1 AS cor0
----
-25
-38
-41

query I rowsort
SELECT ALL 12 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL + - col0 + - 85 AS col0 FROM tab0 AS cor0
----
-109
-120
-174

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT - + CAST( + 90 AS SIGNED ) * col2 * col1 FROM tab2 AS cor0
----
-138060
-58140
-75330

skipif mysql # not compatible
query I rowsort label-3359
SELECT - + CAST ( + 90 AS INTEGER ) * col2 * col1 FROM tab2 AS cor0
----
-138060
-58140
-75330

query I rowsort
SELECT DISTINCT + - ( + col1 ) + col0 * 80 AS col0 FROM tab0 AS cor0
----
1834
2703
7029

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3361
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) * + 63 FROM tab2
----
441
4914
4977

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) * + 63 FROM tab2
----
441
4914
4977

query I rowsort
SELECT - col1 + col0 * ( + 76 + col2 ) AS col2 FROM tab0 AS cor0
----
13971
2530
2598

query I rowsort
SELECT DISTINCT 32 * col2 AS col1 FROM tab2
----
1216
832
864

query I rowsort
SELECT ALL + 58 FROM tab0, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( col2 ) col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL col1 * col2 + + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + col1 + 15 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT - col1 + 6 FROM tab2 AS cor0
----
-11
-25
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT ALL cor0.col2 DIV col2 + + col1 DIV + col1 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL cor0.col2 / col2 + + col1 / + col1 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL col2 * col1 * ( col1 + col2 ) FROM tab1
----
112320
136032
38190

query I rowsort
SELECT col1 * ( col0 ) + - col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT - cor0.col1 * + cor0.col1 + + 70 AS col0 FROM tab1 AS cor0
----
-30
-606
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3374
SELECT ALL + - col1 DIV + 28 + - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL + - col1 / + 28 + - col2 AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col2 - col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT - 81 + col0 + col1 AS col0 FROM tab0
----
29
51
99

query I rowsort
SELECT + col2 + tab2.col0 AS col1 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col1 ) - col2 col0 FROM tab2
----
251
3455
934

query I rowsort
SELECT DISTINCT col0 + 90 FROM tab2
----
168
169
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3380
SELECT + col0 * ( col1 ) + - col2 DIV 50 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-3380
SELECT + col0 * ( col1 ) + - col2 / 50 FROM tab1 AS cor0
----
1039
639
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + + 33 col0 FROM tab0 AS cor0
----
-2
-56
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT ALL - - col0 DIV col2 AS col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - - col0 / col2 AS col2 FROM tab1 cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3383
SELECT DISTINCT + - col2 DIV + col0 + - col0 * + col1 * - col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68111

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + - col2 / + col0 + - col0 * + col1 * - col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68111

query I rowsort
SELECT ALL col1 + - 15 AS col0 FROM tab0
----
71
76
82

query I rowsort
SELECT - col0 * + ( 21 ) + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-1296
-770
-9167

query I rowsort
SELECT ALL + col1 + ( 18 * - col2 ) AS col1 FROM tab2
----
-409
-455
-667

query I rowsort
SELECT ( - 35 ) FROM tab2, tab1 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL - col0 + + 1 + - col0 * - col2 FROM tab2
----
183
1951
2924

query I rowsort
SELECT + - ( 84 ) + col2 AS col1 FROM tab0 AS cor0
----
-2
-51
-83

query I rowsort
SELECT + tab1.col0 * + ( - col1 ) * tab1.col2 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL col1 * 32 * col2 FROM tab0
----
238784
3104
90816

query I rowsort
SELECT col2 + - 32 FROM tab1
----
22
25
64

query I rowsort
SELECT ALL + cor0.col1 + - 12 FROM tab0 AS cor0
----
74
79
85

query I rowsort
SELECT + col0 - 72 * - col2 AS col2 FROM tab2 AS cor0
----
1950
1951
2815

onlyif mysql # use DIV operator for integer division
query I rowsort label-3395
SELECT DISTINCT + col1 DIV + ( ( + col2 ) * + ( + 38 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT + col1 / + ( ( + col2 ) * + ( + 38 ) ) FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT ALL + tab2.col1 + - tab2.col0 DIV - col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL + tab2.col1 + - tab2.col0 / - col1 FROM tab2
----
21
31
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3397
SELECT - col1 + - CAST( - col1 AS SIGNED ) + col1 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3397
SELECT - col1 + - CAST ( - col1 AS INTEGER ) + col1 AS col1 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL + - 45 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT + 42 * + col2 AS col2 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT ALL + + ( + cor0.col2 ) * col1 + - ( col0 + + col2 * + 67 ) AS col2 FROM tab1 cor0
----
-2217
-3313
-5264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3402
SELECT + + CAST( NULL AS SIGNED ) + - cor0.col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3402
SELECT + + CAST ( NULL AS INTEGER ) + - cor0.col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 col2 FROM tab1 AS cor0
----
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3405
SELECT + - CAST( NULL AS SIGNED ) * ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT + - CAST ( NULL AS INTEGER ) * ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 85 + + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1258
132
4517

query I rowsort
SELECT ALL - + 47 + + col0 FROM tab1 AS cor0
----
-44
17
33

query I rowsort
SELECT DISTINCT + 89 * cor0.col0 AS col0 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT ALL + + 38 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1427
929
995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + col1 + - col0 - + 25 * col0 FROM tab1 AS cor0
----
-1654
-2067
-52

query I rowsort
SELECT + 69 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
452
5323
5434

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3413
SELECT col2 * + col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT col2 * + col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT ALL - - cor0.col2 DIV + col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL - - cor0.col2 / + col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - + 17 AS col2 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - - 56 * col2 + + ( col0 ) + col0 FROM tab1 AS cor0
----
3030
3320
5536

query I rowsort
SELECT DISTINCT - 45 + col1 FROM tab0 cor0
----
41
46
52

query I rowsort
SELECT + - col1 * + 73 + col0 * - col1 * - col2 AS col2 FROM tab0 AS cor0
----
-3686
61834
657475

query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - col2 + 86 FROM tab2 AS cor0
----
48
59
60

query I rowsort
SELECT DISTINCT + col0 + + 83 * - 37 AS col0 FROM tab2 AS cor0
----
-2992
-2993
-3064

query I rowsort
SELECT DISTINCT - col0 - + col1 * col1 * + col0 FROM tab2
----
-22910
-271596
-6734

query I rowsort
SELECT ALL - cor0.col2 + col0 * 61 AS col0 FROM tab1 AS cor0
----
129
3847
4784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ( - col0 ) * + col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - ( - 91 ) * - col2 AS col1 FROM tab0 AS cor0
----
-3003
-7462
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3427
SELECT DISTINCT 58 DIV - col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT 58 / - col1 FROM tab1 AS cor0
----
-2
-4
-5

query I rowsort
SELECT ALL - + ( col2 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 18 * + col2 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT + - col0 * + cor0.col1 * - cor0.col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT ( 60 ) FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT + col1 * col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT 83 * - col0 + + col0 FROM tab0
----
-1968
-2870
-7298

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab2, tab1 cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * cor0.col1 col2 FROM tab1 cor0
----
104
40
52

query I rowsort
SELECT ALL + ( 94 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL - col0 + col2 * cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col1 + + 48 AS col2 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT col0 * - col2 * 22 FROM tab0
----
-160556
-17424
-770

query I rowsort
SELECT DISTINCT - col2 * 86 FROM tab0 AS cor0
----
-2838
-7052
-86

skipif mysql # not compatible
query I rowsort
SELECT col2 + - CAST ( + col2 AS REAL ) + col1 * - cor0.col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 + + col1 * col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT - + col2 * + col0 + + cor0.col0 * + col0 + + 86 FROM tab0 AS cor0
----
-130
1276
709

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
15

query I rowsort
SELECT ALL + 28 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT + col1 * + tab0.col0 * - col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT col0 + 99 * - col2 AS col1 FROM tab1
----
-5343
-5579
-9424

query I rowsort
SELECT DISTINCT - 43 * + 45 FROM tab2, tab0 AS cor0
----
-1935

onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT tab0.col2 + - col1 DIV col2 AS col1 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-3450
SELECT tab0.col2 + - col1 / col2 AS col1 FROM tab0
----
-96
31
81

query I rowsort
SELECT ALL col0 * - 72 AS col0 FROM tab1
----
-216
-4608
-5760

query I rowsort
SELECT col0 * + 96 * - col0 AS col0 FROM tab0
----
-117600
-55296
-760416

query I rowsort
SELECT 15 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7

query I rowsort
SELECT ( 12 ) FROM tab0 AS cor0
----
12
12
12

query I rowsort
SELECT + cor0.col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 51 + + col0 col2 FROM tab1 cor0
----
2757
2971
4976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3457
SELECT ALL CAST( NULL AS SIGNED ) / + 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-3457
SELECT ALL CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3458
SELECT ALL + - CAST( col0 AS SIGNED ) DIV - cor0.col1 + ( - 58 ) AS col0 FROM tab2 AS cor0
----
-54
-57
-58

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL + - CAST ( col0 AS INTEGER ) / - cor0.col1 + ( - 58 ) AS col0 FROM tab2 AS cor0
----
-54
-57
-58

query I rowsort
SELECT ALL - 4 * 61 FROM tab2
----
-244
-244
-244

query I rowsort
SELECT ALL + ( - 14 ) AS col1 FROM tab0
----
-14
-14
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 + 76 col1 FROM tab0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT - - col1 * col2 DIV col2 + col2 * col1 * ( col1 ) FROM tab1 cor0
----
16237
36530
5710

skipif mysql # not compatible
query I rowsort label-3463
SELECT - - col1 * col2 / col2 + col2 * col1 * ( col1 ) FROM tab1 cor0
----
16237
36530
5710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT ALL + 78 AS col0 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT - cor0.col0 * - col2 + - 11 AS col1 FROM tab1 cor0
----
151
3637
7669

query I rowsort
SELECT + - col1 + 23 FROM tab1 cor0
----
-3
10
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT DISTINCT + col2 + + col1 DIV tab1.col2 + 8 * col2 AS col1 FROM tab1
----
486
513
864

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + col2 + + col1 / tab1.col2 + 8 * col2 AS col1 FROM tab1
----
486
513
864

query I rowsort
SELECT + 53 * col2 FROM tab0
----
1749
4346
53

query I rowsort
SELECT ALL - ( 45 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT - + col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT 98 * + col2 AS col0 FROM tab0 AS cor0
----
3234
8036
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3473
SELECT DISTINCT + + col1 * col1 DIV - 73 FROM tab1 AS cor0
----
-1
-2
-9

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + + col1 * col1 / - 73 FROM tab1 AS cor0
----
-1
-2
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT + + ( + col2 ) + col1 + + 82 * + col1 * - cor0.col2 FROM tab0 AS cor0
----
-232597
-611711
-7856

query I rowsort
SELECT + - col1 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + col2 + + 72 AS col2 FROM tab1 AS cor0
----
-24
15
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 36 col2 FROM tab1 AS cor0
----
132
90
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3480
SELECT ALL - + col0 + cor0.col2 DIV - 17 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-124
-181
-60

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - + col0 + cor0.col2 / - 17 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-124
-181
-60

query I rowsort
SELECT DISTINCT - col1 - cor0.col2 AS col2 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + col1 + + ( - 67 ) * col1 AS col2 FROM tab1 cor0
----
-1716
-660
-858

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col2 + - CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 + 6 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT ALL - col2 * col2 * col0 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT cor0.col1 * + 18 FROM tab0 AS cor0
----
1548
1638
1746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + cor0.col1 * - col0 col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + col0 + + col1 + + col0 AS col0 FROM tab1 cor0
----
138
173
32

query I rowsort
SELECT 10 * col2 AS col2 FROM tab2
----
260
270
380

onlyif mysql # use DIV operator for integer division
query I rowsort label-3490
SELECT ALL col1 DIV col2 + col0 * - col1 AS col0 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL col1 / col2 + col0 * - col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL - ( - col2 ) + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT - tab1.col2 + + cor0.col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to d388beea7952d0617b26cf1d5fe2abce

query I rowsort
SELECT ALL 72 * col0 + col0 * 43 * + col0 FROM tab1
----
180736
280960
603

query I rowsort
SELECT ALL col2 + - col2 + ( + 87 * col1 ) FROM tab1
----
1131
2262
870

query I rowsort
SELECT + col0 + 14 FROM tab0 AS cor0
----
103
38
49

query I rowsort
SELECT DISTINCT col2 * col0 - col1 * + col0 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT ALL + col1 + col0 * col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - tab2.col2 * col2 + + ( col0 ) * - col0 AS col0 FROM tab2
----
-6760
-7685
-778

query I rowsort
SELECT DISTINCT - ( - 90 ) + col0 FROM tab2 AS cor0
----
168
169
97

query I rowsort
SELECT + 4 + + cor0.col2 AS col1 FROM tab0 cor0
----
37
5
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3501
SELECT ALL col0 DIV col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL col0 / col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + ( 49 ) AS col0 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT col2 - - 45 FROM tab2 AS cor0
----
71
72
83

query I rowsort
SELECT - col1 * 86 + + col2 AS col0 FROM tab0 cor0
----
-7363
-7744
-8341

query I rowsort
SELECT - + ( + cor0.col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + ( cor0.col2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT + col2 * - 7 * + col0 - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1323
-14195
-21010

skipif mysql # not compatible
query I rowsort label-3507
SELECT + col2 * - 7 * + col0 - col0 / - col1 AS col0 FROM tab2 AS cor0
----
-1323
-14195
-21010

query I rowsort
SELECT ALL + 12 * - 70 FROM tab0 AS cor0
----
-840
-840
-840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3509
SELECT CAST( NULL AS SIGNED ) * + 12 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT CAST ( NULL AS INTEGER ) * + 12 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + col0 + col0 * 24 FROM tab0 AS cor0
----
10057
1152
2065

query I rowsort
SELECT ALL - 18 * 3 FROM tab0 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( + col0 AS REAL ) / col0 + col1 + col0 * + cor0.col2 * - 32 FROM tab0 AS cor0
----
-1022
-233444
-25257

query I rowsort
SELECT ALL 48 * + 43 AS col0 FROM tab1
----
2064
2064
2064

query I rowsort
SELECT ALL + 13 FROM tab2 cor0
----
13
13
13

query I rowsort
SELECT col0 * 14 + - col1 + - ( + col0 + - cor0.col2 ) FROM tab2 AS cor0
----
1048
87
981

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3516
SELECT - CAST( + col0 AS SIGNED ) * - col0 + + col0 FROM tab2
----
56
6162
6320

skipif mysql # not compatible
query I rowsort label-3516
SELECT - CAST ( + col0 AS INTEGER ) * - col0 + + col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT DISTINCT + 16 * tab1.col1 - col1 FROM tab1
----
150
195
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + - col2 col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - cor0.col1 * col2 + col2 + col1 AS col2 FROM tab0 AS cor0
----
-2719
-7289
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT + 6 DIV - col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3520
SELECT + 6 / - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT tab1.col2 - col1 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT col0 * + col1 - + col2 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 * col2 + 92 FROM tab2 cor0
----
2120
281
3094

query I rowsort
SELECT DISTINCT - 34 * - col2 FROM tab2 AS cor0
----
1292
884
918

query I rowsort
SELECT DISTINCT + col2 * col2 - col1 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT - col2 - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT 10 * - col1 - + col2 FROM tab1
----
-157
-226
-314

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3529
SELECT - CAST( NULL AS DECIMAL ) * + 58 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT - CAST ( NULL AS REAL ) * + 58 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 55 FROM tab0
----
137
56
88

query I rowsort
SELECT DISTINCT + - 68 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-68

query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT DISTINCT - col1 DIV - col1 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT - col1 / - col1 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT ALL col2 * col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT cor0.col2 + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 FROM tab2 cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col2 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + ( col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - cor0.col2 * col2 * cor0.col0 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
114155
5110
52806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col0 FROM tab1
----
-20
-26
-52

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5

query I rowsort
SELECT cor2.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
54
57
96

query I rowsort
SELECT ALL - cor0.col1 * ( cor0.col2 * - col1 ) AS col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * - CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col0 + 76 AS col0 FROM tab0 AS cor0
----
-1149
-500
-7845

query I rowsort
SELECT - ( col1 ) + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3548
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - col0 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + 86 * 11 FROM tab2
----
946
946
946

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3550
SELECT ALL + CAST( NULL AS SIGNED ) + col0 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col2 ) + col2 col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ( - 53 ) + - col1 * + cor0.col1 FROM tab1 cor0
----
-153
-222
-729

query I rowsort
SELECT ALL cor0.col2 * cor0.col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + ( ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - ( - 42 ) + col1 AS col0 FROM tab2 AS cor0
----
101
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3558
SELECT ALL + col2 DIV - col0 AS col1 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + col2 / - col0 AS col1 FROM tab1
----
-1
-18
0

query I rowsort
SELECT + tab0.col0 * 84 AS col2 FROM tab0
----
2016
2940
7476

query I rowsort
SELECT + - col1 * 94 AS col1 FROM tab1 cor0
----
-1222
-2444
-940

query I rowsort
SELECT + + col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + 53 + - 25 * - col1 FROM tab1 AS cor0
----
303
378
703

onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT + 70 DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3563
SELECT + 70 / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * - tab0.col1 FROM tab0, tab0 cor0
----
9 values hashing to 38ae4ab6a8fdfcd855d57a73fb99e326

query I rowsort
SELECT + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT + ( + col0 ) * + col0 + - col2 + col1 FROM tab0
----
1321
629
7930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3567
SELECT + - col2 * col1 - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-3567
SELECT + - col2 * col1 - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - - col1 - + col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * + col0 col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT + col0 * col0 + + col0 - + col2 * col1 AS col0 FROM tab2 AS cor0
----
-781
4628
5674

query I rowsort
SELECT ALL - tab2.col1 * ( cor0.col0 ) FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 5a5af67dad83a3671bcf7bfe0a8da5a8

query I rowsort
SELECT - - col2 + 37 FROM tab2 AS cor0
----
63
64
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3573
SELECT col0 + - CAST( 47 AS SIGNED ) FROM tab2 AS cor0
----
-40
31
32

skipif mysql # not compatible
query I rowsort label-3573
SELECT col0 + - CAST ( 47 AS INTEGER ) FROM tab2 AS cor0
----
-40
31
32

query I rowsort
SELECT DISTINCT col2 + - col0 - col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + - cor0.col2 * 54 AS col1 FROM tab2 AS cor0
----
-1404
-1458
-2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 - cor0.col0 * - col1 col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - cor0.col1 * + ( cor0.col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3578
SELECT ALL + + col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL + + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + 95 - cor0.col0 FROM tab2 cor0
----
119
33
76

query I rowsort
SELECT - - cor0.col2 + + col1 * - 24 AS col2 FROM tab1 AS cor0
----
-183
-216
-570

query I rowsort
SELECT + col2 + 19 * 27 AS col2 FROM tab2 AS cor0
----
539
540
551

query I rowsort
SELECT + ( cor0.col2 ) * col2 + 36 FROM tab2 AS cor0
----
1480
712
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + cor0.col1 col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + + 31 * col1 AS col2 FROM tab0 AS cor0
----
2666
2821
3007

skipif mysql # not compatible
query I rowsort
SELECT ALL - - col2 * col2 * col2 - + CAST ( cor0.col1 AS REAL ) AS col0 FROM tab2 AS cor0
----
17517
19652
54855

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3586
SELECT ALL - CAST( NULL AS SIGNED ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL - CAST ( NULL AS INTEGER ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 11 AS col0 FROM tab0 cor0
----
100
35
46

query I rowsort
SELECT DISTINCT col0 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 98 - 32 * + cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-126
-2398
-2430

onlyif mysql # use DIV operator for integer division
query I rowsort label-3590
SELECT - 45 DIV - 82 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3590
SELECT - 45 / - 82 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT 79 * + col2 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT - ( - 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 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 * - col0 col1 FROM tab1 AS cor0
----
-27
-576
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( + col2 ) col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 + + 66 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
-172
-4214
-5267

query I rowsort
SELECT DISTINCT + + cor0.col2 * 92 * 15 FROM tab0 AS cor0
----
113160
1380
45540

query I rowsort
SELECT + col2 + 33 - + col2 * cor0.col2 FROM tab2 cor0
----
-1373
-617
-669

onlyif mysql # use DIV operator for integer division
query I rowsort label-3599
SELECT - col0 DIV + col2 + + 83 FROM tab1
----
82
83
83

skipif mysql # not compatible
query I rowsort label-3599
SELECT - col0 / + col2 + + 83 FROM tab1
----
82
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3601
SELECT ALL - ( + col0 + CAST( NULL AS SIGNED ) ) * tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL - ( + col0 + CAST ( NULL AS INTEGER ) ) * tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + col0 + col2 AS col2 FROM tab2
----
182
196
41

query I rowsort
SELECT - col0 - col1 * col0 AS col0 FROM tab1
----
-1120
-704
-81

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col2 + - col0 )
----

query I rowsort
SELECT DISTINCT + col0 + col2 - col1 FROM tab1
----
111
163
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT DISTINCT + col1 DIV - tab1.col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT + col1 / - tab1.col0 FROM tab1
----
-8
0

query I rowsort
SELECT DISTINCT - col2 * + col1 + + tab0.col2 - + col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3608
SELECT ALL col1 DIV + col1 col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3608
SELECT ALL col1 / + col1 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + col0 + - col0 * 78 FROM tab0 AS cor0
----
-1848
-2695
-6853

onlyif mysql # use DIV operator for integer division
query I rowsort label-3610
SELECT ALL - col0 * - col1 + col0 DIV col1 + + col1 FROM tab2
----
1364
248
4662

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL - col0 * - col1 + col0 / col1 + + col1 FROM tab2
----
1364
248
4662

query I rowsort
SELECT ALL + tab2.col1 * col0 FROM tab2 WHERE NOT - col0 + - col1 NOT IN ( - col2 * - col1 * + col1 )
----

query I rowsort
SELECT DISTINCT - tab2.col2 * col1 * col2 FROM tab2
----
-22599
-24548
-39884

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + - col0 NOT BETWEEN NULL AND - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT ALL + tab1.col1 DIV - col0 AS col1 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + tab1.col1 / - col0 AS col1 FROM tab1
----
-8
0
0

query I rowsort
SELECT + col0 * col1 * tab2.col0 AS col2 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-3616
SELECT ALL - col0 DIV + col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL - col0 / + col0 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 / col2 FROM tab2 WHERE NULL IN ( col1 * - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT col1 + col1 * tab1.col2 + tab1.col2 DIV - tab1.col2 FROM tab1
----
1260
1429
579

skipif mysql # not compatible
query I rowsort label-3618
SELECT col1 + col1 * tab1.col2 + tab1.col2 / - tab1.col2 FROM tab1
----
1260
1429
579

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab0, tab1, tab0 AS cor0
----
13

query I rowsort
SELECT ALL 13 + tab0.col0 AS col1 FROM tab0
----
102
37
48

query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT ALL - col1 * col1 + col0 * 47 AS col0 FROM tab1
----
-535
2908
3591

onlyif mysql # use DIV operator for integer division
query I rowsort label-3623
SELECT + + col2 DIV + cor0.col1 + + col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3623
SELECT + + col2 / + cor0.col1 + + col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + + 66 + + col0 AS col2 FROM tab1 AS cor0
----
130
146
69

query I rowsort
SELECT DISTINCT + - ( col1 ) + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 56 * - col1 col2 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT ALL - 82 + + col0 AS col1 FROM tab0 AS cor0
----
-47
-58
7

query I rowsort
SELECT ALL + 81 + + col0 FROM tab0 AS cor0
----
105
116
170

query I rowsort
SELECT DISTINCT + col2 + col2 * - tab2.col2 AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT - col1 + + col2 * col0 + - tab0.col1 * col0 FROM tab0
----
-1358
-3457
-892

query I rowsort
SELECT col2 - - tab0.col0 * col1 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col2 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 IN ( + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col0 + + col2 - + tab2.col0 * col0 * - col0 FROM tab2
----
377
474656
493156

query I rowsort
SELECT DISTINCT - col0 * col0 - col0 * - col1 AS col2 FROM tab0 AS cor0
----
1488
178
2170

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 - + tab1.col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 * tab0.col2 * col1 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT col2 * - tab1.col1 * - col0 + + tab1.col0 AS col2 FROM tab1
----
36544
4215
99920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col1 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT tab2.col0 FROM tab2 WHERE + col1 BETWEEN ( NULL ) AND ( + col0 )
----

query I rowsort
SELECT ALL col1 * cor0.col2 AS col1 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + 23 * - col0 col2 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT ALL - ( tab1.col1 ) * col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL - ( 82 ) * + col1 * col1 FROM tab1
----
-13858
-55432
-8200

query I rowsort
SELECT ALL - ( col1 ) - col0 * col2 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - + 0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + col2 + - col2 * - col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3651
SELECT + col1 DIV col0 + col2 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-3651
SELECT + col1 / col0 + col2 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT - col1 + 43 FROM tab2
----
-16
12
26

query I rowsort
SELECT ALL col1 * - ( + col0 + + 26 ) AS col2 FROM tab2
----
-1023
-1785
-6136

query I rowsort
SELECT ( col1 + col1 ) AS col2 FROM tab0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL + col0 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - col1 * ( col0 ) + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col0 + + col0 * col2 col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT + col0 + + 73 FROM tab0 AS cor0
----
108
162
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col0 + col1 col2 FROM tab1 AS cor0
----
1341
1433
644

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3661
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) * + 11 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) * + 11 FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 * 26 FROM tab1
----
1664
2080
78

query I rowsort
SELECT DISTINCT + - col1 + - ( col1 ) FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT + col0 * 82 + col0 * - col2 AS col1 FROM tab0 cor0
----
0
1176
2835

query I rowsort
SELECT ALL + - col2 * 10 + - 60 FROM tab2 AS cor0
----
-320
-330
-440

query I rowsort
SELECT + cor0.col2 + - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT + - col0 * - cor0.col0 + + col1 DIV + col1 FROM tab2 AS cor0
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-3667
SELECT + - col0 * - cor0.col0 + + col1 / + col1 FROM tab2 AS cor0
----
50
6085
6242

query I rowsort
SELECT + 15 * cor0.col2 + - 0 AS col2 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT ALL + 2 * + 61 + col2 FROM tab1
----
176
179
218

query I rowsort
SELECT ALL tab2.col2 * col0 + col0 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3671
SELECT ALL + col0 DIV 90 + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL + col0 / 90 + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + + 55 + col1 AS col1 FROM tab2 AS cor0
----
114
72
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 * + cor0.col1 + col0 col2 FROM tab0 AS cor0
----
-2126
-3457
-8101

query I rowsort
SELECT 76 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT + 73 * - col2 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT + 57 * 9 + - tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7d70f9b193c256aec02ec77784e2102b

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3678
SELECT DISTINCT CAST( 79 AS SIGNED ) FROM tab0, tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT CAST ( 79 AS INTEGER ) FROM tab0, tab2 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 47 col2 FROM tab1
----
-101
-104
-143

query I rowsort
SELECT DISTINCT ( 61 ) FROM tab1
----
61

query I rowsort
SELECT + ( col0 ) * - cor0.col2 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 + + 61 * - col2 col0 FROM tab0 AS cor0
----
-140
-2092
-5081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3683
SELECT CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT DISTINCT + cor0.col0 + - 46 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-11
23
89

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT + cor0.col0 + - 46 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-11
23
89

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28

query I rowsort
SELECT + + 29 FROM tab0 cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - ( - col0 ) AS REAL ) * ( col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3688
SELECT - 40 DIV - col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3688
SELECT - 40 / - col1 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT - ( + tab1.col1 ) + col0 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT - 50 DIV col0 - - col2 FROM tab1 AS cor0
----
38
57
96

skipif mysql # not compatible
query I rowsort label-3690
SELECT - 50 / col0 - - col2 FROM tab1 AS cor0
----
38
57
96

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
406
4345
6630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3692
SELECT + - col0 + - col0 * - ( - ( - col0 ) ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT + - col0 + - col0 * - ( - ( - col0 ) ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT DISTINCT 13 + - col1 DIV - 45 AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT 13 + - col1 / - 45 AS col2 FROM tab1 AS cor0
----
13

query I rowsort
SELECT - col0 * + col2 + 32 AS col2 FROM tab2 AS cor0
----
-157
-1996
-2970

query I rowsort
SELECT + - 65 AS col0 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT + col2 * - 21 FROM tab2 cor0
----
-546
-567
-798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3697
SELECT + col2 - CAST( col2 AS SIGNED ) * - col1 AS col1 FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-3697
SELECT + col2 - CAST ( col2 AS INTEGER ) * - col1 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - cor0.col0 * + 1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 57 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT + col0 + cor0.col2 * + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col0 * - 82 FROM tab1 AS cor0
----
246
5248
6560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3702
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 24 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 24 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + col1 * 98 + col0 FROM tab1 AS cor0
----
1044
1354
2551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 19 - - cor0.col1 * col0 FROM tab1 AS cor0
----
1059
659
97

query I rowsort
SELECT - col1 * - cor0.col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT 30 + col2 * + col0 FROM tab1 AS cor0
----
192
3678
7710

query I rowsort
SELECT + 38 * col1 AS col1 FROM tab2 cor0
----
1178
2242
646

query I rowsort
SELECT + 11 FROM tab1, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT col2 * + 74 FROM tab2 AS cor0
----
1924
1998
2812

query I rowsort
SELECT ALL - 54 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 + col0 * + col1 col1 FROM tab2 AS cor0
----
1281
241
4583

query I rowsort
SELECT DISTINCT 95 * tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
5130
5415
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3714
SELECT DISTINCT + col2 + - 14 DIV col0 FROM tab2
----
25
26
38

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT + col2 + - 14 / col0 FROM tab2
----
25
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3715
SELECT + col1 * 74 DIV - col1 + col1 AS col0 FROM tab1
----
-48
-61
-64

skipif mysql # not compatible
query I rowsort label-3715
SELECT + col1 * 74 / - col1 + col1 AS col0 FROM tab1
----
-48
-61
-64

query I rowsort
SELECT ALL col0 - + ( col0 * - col1 ) FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col0 - + 21 * - ( - col0 ) AS col0 FROM tab0
----
-1780
-480
-700

query I rowsort
SELECT - col1 * col2 * + 35 + col0 * - ( + tab0.col1 ) * + col2 - - col1 AS col2 FROM tab0
----
-167356
-6693
-925197

query I rowsort
SELECT cor1.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + 14 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 95 col2 FROM tab1 AS cor0
----
-69
-82
-85

query I rowsort
SELECT ALL - ( - col2 + col0 ) * ( + col0 ) AS col2 FROM tab2
----
-3239
-4056
140

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3723
SELECT ALL ( + 88 ) * col2 + CAST( NULL AS DECIMAL ) * col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL ( + 88 ) * col2 + CAST ( NULL AS REAL ) * col1 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( col1 ) * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ( 24 ) FROM tab1
----
24
24
24

query I rowsort
SELECT ALL - 73 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT + 42 + col0 AS col2 FROM tab2 AS cor0
----
120
121
49

query I rowsort
SELECT ALL cor0.col2 * - col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL ( 13 ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT + - 64 DIV cor1.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cbfa8de8feb212fe31a1528b9e5261db

skipif mysql # not compatible
query I rowsort label-3731
SELECT + - 64 / cor1.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cbfa8de8feb212fe31a1528b9e5261db

query I rowsort
SELECT ALL col1 * - col2 + 55 AS col1 FROM tab1 cor0
----
-1193
-1349
-515

query I rowsort
SELECT DISTINCT - 26 + - col0 + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-20
4006
6294

query I rowsort
SELECT + 29 + col1 FROM tab1 AS cor0
----
39
42
55

query I rowsort
SELECT ALL - col2 * col2 - ( 38 * col1 ) FROM tab2 AS cor0
----
-1907
-2090
-2918

query I rowsort
SELECT ALL + + col1 * col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT col0 * - col2 + + 29 AS col2 FROM tab0 AS cor0
----
-6
-7269
-763

onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT DISTINCT - - 88 - + col2 DIV - ( - col1 + + col2 ) FROM tab2 AS cor0
----
82
88
89

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - - 88 - + col2 / - ( - col1 + + col2 ) FROM tab2 AS cor0
----
82
88
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3739
SELECT ALL + 9 DIV + col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL + 9 / + col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - ( col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - 77 + - col0 AS col2 FROM tab1 AS cor0
----
-141
-157
-80

query I rowsort
SELECT ALL + + 51 + cor0.col1 * - 78 FROM tab0 AS cor0
----
-6657
-7047
-7515

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col1 col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - + ( - col0 ) * + 93 FROM tab0 AS cor0
----
2232
3255
8277

query I rowsort
SELECT DISTINCT 42 * col1 FROM tab0
----
3612
3822
4074

query I rowsort
SELECT - 15 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 cor0, tab0 cor1
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

query I rowsort
SELECT - - col2 * col1 * + ( + col1 ) FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b

query I rowsort
SELECT ALL + + 57 * col2 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 29 * + col1 * 93 + - cor0.col2 FROM tab2 AS cor0
----
159097
45811
83580

query I rowsort
SELECT ALL + + col0 + - cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 * col0 - 70 AS col1 FROM tab1 AS cor0
----
3578
7610
92

query I rowsort
SELECT 98 * cor0.col1 * - 45 FROM tab2 AS cor0
----
-136710
-260190
-74970

query I rowsort
SELECT - - col2 + - 99 * - cor0.col2 FROM tab0 AS cor0
----
100
3300
8200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT ALL - + col2 + col1 DIV - 64 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - + col2 + col1 / - 64 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - col0 * - col1 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT DISTINCT - + cor0.col2 + col2 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT - + cor0.col2 + col2 / cor0.col1 AS col1 FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT cor0.col1 * - ( - 43 ) FROM tab1 AS cor0
----
1118
430
559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + - col1 col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT - 76 * - col1 + + tab1.col2 FROM tab1
----
1084
2030
817

query I rowsort
SELECT ALL ( + 1 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + col2 * ( col2 ) * col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL col0 * + col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col1 + ( col2 ) FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3767
SELECT ALL CAST( - col1 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL CAST ( - col1 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT DISTINCT + - 49 DIV col0 col0 FROM tab0 AS cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT + - 49 / col0 col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - - col1 * + col0 * col0 + col0 FROM tab0 cor0
----
118860
49560
720900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - ( + col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 * + 38 FROM tab1
----
380
494
988

query I rowsort
SELECT tab0.col1 + + col2 * + tab0.col0 + col1 FROM tab0
----
229
7480
964

query I rowsort
SELECT + cor0.col2 - - col0 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 + + col2 col1 FROM tab0 AS cor0
----
118
167
86

query I rowsort
SELECT ALL - - col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ( - cor0.col0 ) - + col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + 92 * + col0 FROM tab1 cor0
----
276
5888
7360

query I rowsort
SELECT ALL + 56 AS col2 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT - col1 + col1 * - col0 + col1 * + col1 FROM tab2 AS cor0
----
-1071
-1180
713

query I rowsort
SELECT - col1 + + col2 * ( - 54 ) AS col2 FROM tab2 AS cor0
----
-1463
-1489
-2069

query I rowsort
SELECT + tab2.col2 * tab2.col2 - - col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT cor1.col1 * - cor0.col2 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 29760b2f582ecfa8189eb18d08ead3fd

query I rowsort
SELECT + ( + col2 ) + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + col2 + 69 FROM tab0 AS cor0
----
102
151
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT CAST( - 33 AS SIGNED ) + - col2 * ( - col2 * cor0.col1 ) FROM tab0 AS cor0
----
611851
64
93621

skipif mysql # not compatible
query I rowsort label-3786
SELECT CAST ( - 33 AS INTEGER ) + - col2 * ( - col2 * cor0.col1 ) FROM tab0 AS cor0
----
611851
64
93621

query I rowsort
SELECT + col2 + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT - - 12 FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL + 37 + + 12 * - col0 AS col0 FROM tab0 AS cor0
----
-1031
-251
-383

query I rowsort
SELECT ALL + 95 * 74 + + col1 + - ( - 97 * + col2 ) AS col2 FROM tab0 AS cor0
----
10317
15075
7224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3791
SELECT ALL col2 + + CAST( - 66 AS SIGNED ) * col2 AS col0 FROM tab0
----
-2145
-5330
-65

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL col2 + + CAST ( - 66 AS INTEGER ) * col2 AS col0 FROM tab0
----
-2145
-5330
-65

query I rowsort
SELECT cor0.col2 * + 84 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 47ff9f65f19183ba57328410ad23a716

onlyif mysql # use DIV operator for integer division
query I rowsort label-3793
SELECT + - col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3793
SELECT + - col1 / + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - 84 + cor0.col2 * col1 FROM tab1 AS cor0
----
1332
1488
654

query I rowsort
SELECT - 76 * + col0 FROM tab1 AS cor0
----
-228
-4864
-6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT ALL col0 DIV 70 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL col0 / 70 FROM tab2
----
0
1
1

query I rowsort
SELECT - 81 * - col2 FROM tab2
----
2106
2187
3078

query I rowsort
SELECT - 10 * + col2 + - 22 FROM tab1 AS cor0
----
-562
-592
-982

query I rowsort
SELECT - - 93 + - col2 FROM tab2 AS cor0
----
55
66
67

query I rowsort
SELECT - + col1 * + col0 + + col2 * - cor0.col0 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT + col2 + ( cor0.col1 ) * + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - + col2 * - 80 * col1 AS col1 FROM tab1 AS cor0
----
112320
45600
99840

query I rowsort
SELECT + 7 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL + 86 * - col0 AS col2 FROM tab0
----
-2064
-3010
-7654

query I rowsort
SELECT ALL cor0.col1 * 90 * - 2 + - col2 FROM tab0 AS cor0
----
-15513
-16462
-17461

query I rowsort
SELECT DISTINCT - col1 * + col1 * + 45 AS col2 FROM tab2 AS cor0
----
-13005
-156645
-43245

onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT ALL + - col0 + col1 + col1 DIV col0 FROM tab1 AS cor0
----
-54
-67
31

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL + - col0 + col1 + col1 / col0 FROM tab1 AS cor0
----
-54
-67
31

query I rowsort
SELECT DISTINCT - col1 * + col1 + - 10 FROM tab1 AS cor0
----
-110
-179
-686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3809
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3810
SELECT cor0.col1 DIV 78 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3810
SELECT cor0.col1 / 78 AS col0 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT DISTINCT + + col1 DIV ( col0 + col2 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + + col1 / ( col0 + col2 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3812
SELECT + col2 + ( - col0 ) DIV - col1 AS col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-3812
SELECT + col2 + ( - col0 ) / - col1 AS col2 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT ALL + col0 * - cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - cor0.col1 * - 26 * col1 FROM tab1 AS cor0
----
17576
2600
4394

query I rowsort
SELECT DISTINCT - col0 + 9 * 12 FROM tab1 AS cor0
----
105
28
44

query I rowsort
SELECT ALL + col1 * + 59 * - ( + col0 ) FROM tab1
----
-37760
-4602
-61360

query I rowsort
SELECT ALL + col2 * col1 + - col0 FROM tab1 cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * cor0.col0 + col2 col0 FROM tab1 AS cor0
----
1017
1296
99

query I rowsort
SELECT ALL col2 - 5 FROM tab0
----
-4
28
77

query I rowsort
SELECT - col0 * - col2 * + col2 + + tab0.col0 FROM tab0
----
26160
598525
70

query I rowsort
SELECT ALL + col2 * - col0 + ( col2 + col0 ) FROM tab1
----
-105
-3527
-7504

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT + cor0.col2 / col1 + CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT + cor0.col2 / col1 + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 40 + - col2 AS col0 FROM tab2 AS cor0
----
13
14
2

query I rowsort
SELECT - col1 * - col2 * col1 + 29 AS col0 FROM tab0 AS cor0
----
244097
679071
9438

query I rowsort
SELECT DISTINCT 22 + 82 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
104

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 9 * col1 FROM tab0 AS cor0
----
-774
-819
-873

query I rowsort
SELECT DISTINCT + - ( ( - col1 ) ) * 26 AS col2 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT 4 + col2 * col0 FROM tab2 AS cor0
----
193
2032
3006

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3830
SELECT - - CAST( cor0.col0 AS SIGNED ) + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-3830
SELECT - - CAST ( cor0.col0 AS INTEGER ) + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3831
SELECT ALL - CAST( NULL AS SIGNED ) + - 34 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL - CAST ( NULL AS INTEGER ) + - 34 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 + cor0.col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT - cor0.col2 * 6 AS col0 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT - 55 + + col2 * col1 FROM tab0 cor0
----
2783
42
7407

onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT DISTINCT - col0 DIV 98 + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT - col0 / 98 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 * col0 - cor0.col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT ALL + col1 + 57 FROM tab0 AS cor0
----
143
148
154

query I rowsort
SELECT + col2 * - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + 69 * cor0.col1 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT DISTINCT - 81 * - col1 - col1 * - col1 FROM tab0 cor0
----
14362
15652
17266

query I rowsort
SELECT DISTINCT - 57 * col2 AS col2 FROM tab0 AS cor0
----
-1881
-4674
-57

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 79 AS REAL ) FROM tab2
----
79

query I rowsort
SELECT + col2 + - tab0.col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 * 37 * col2 + col1 * - col0 + 90 AS col2 FROM tab2 AS cor0
----
22649
30842
52246

query I rowsort
SELECT DISTINCT - cor0.col0 * 95 + + cor0.col2 * - col0 * - col1 AS col0 FROM tab2 AS cor0
----
112242
43529
5194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 7 + - 40 col0 FROM tab1 AS cor0
----
-418
-439
-712

query I rowsort
SELECT col1 * 37 AS col2 FROM tab2 cor0
----
1147
2183
629

query I rowsort
SELECT DISTINCT col0 * 36 AS col1 FROM tab0 cor0
----
1260
3204
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3849
SELECT ALL col2 + 69 DIV - col2 AS col2 FROM tab1 AS cor0
----
53
56
96

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL col2 + 69 / - col2 AS col2 FROM tab1 AS cor0
----
53
56
96

query I rowsort
SELECT + cor0.col0 + col1 * 64 AS col2 FROM tab0 AS cor0
----
5528
5913
6243

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3851
SELECT ALL col1 * CAST( 35 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
350
455
910

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL col1 * CAST ( 35 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT ALL + tab2.col1 + col2 * col0 * col2 - - col2 AS col0 FROM tab2
----
114131
5161
52813

query I rowsort
SELECT + + col0 + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL + col1 + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ( 63 ) FROM tab1, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL + col0 * ( - 49 ) + tab2.col1 AS col1 FROM tab2
----
-312
-3763
-3854

query I rowsort
SELECT ALL col0 + + 87 * + col2 AS col0 FROM tab0 cor0
----
122
2895
7223

query I rowsort
SELECT ALL + col2 + + ( - 6 ) + col1 AS col0 FROM tab1
----
103
61
74

query I rowsort
SELECT - col1 + 28 * col2 + + tab0.col1 FROM tab0
----
2296
28
924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3860
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 59 * cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 57ea2d95e3652b35596e4b75d096ea05

query I rowsort
SELECT ALL 72 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT + tab1.col0 + 51 * + 52 + col0 AS col1 FROM tab1
----
2658
2780
2812

query I rowsort
SELECT DISTINCT col2 * + ( + 20 ) + col0 AS col2 FROM tab2
----
547
598
839

query I rowsort
SELECT 44 + col2 * - col1 + ( + cor0.col0 ) AS col2 FROM tab0 cor0
----
-18
-2770
-7329

query I rowsort
SELECT col1 * 0 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 + - col1 ) * + col0 col1 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT ALL - 54 * col0 AS col1 FROM tab0
----
-1296
-1890
-4806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3869
SELECT + 22 * - ( - col1 + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT + 22 * - ( - col1 + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 14 * - col2 AS col0 FROM tab0
----
-1059
-438
21

query I rowsort
SELECT DISTINCT 94 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
94

query I rowsort
SELECT - ( - ( - col2 ) ) * col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - ( col0 ) * + cor0.col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col0 * 74 + + col0 FROM tab1 AS cor0
----
225
4800
6000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3875
SELECT ALL CAST( + cor0.col2 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-3875
SELECT ALL CAST ( + cor0.col2 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT ( + 19 ) FROM tab2 AS cor0
----
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3877
SELECT + 59 * + col2 * CAST( NULL AS SIGNED ) + - col1 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3877
SELECT + 59 * + col2 * CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 41 * - tab0.col0 AS col2 FROM tab0
----
1435
3649
984

query I rowsort
SELECT col0 * - col0 + ( + col0 + - col1 ) * + col1 * + col0 FROM tab1
----
-1803
30464
63280

onlyif mysql # use DIV operator for integer division
query I rowsort label-3880
SELECT DISTINCT + - col1 + + cor0.col2 DIV - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + - col1 + + cor0.col2 / - col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT ALL - col1 * col2 - col0 DIV + col2 FROM tab1 AS cor0
----
-1248
-1404
-571

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL - col1 * col2 - col0 / + col2 FROM tab1 AS cor0
----
-1248
-1404
-571

query I rowsort
SELECT DISTINCT 37 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
37

query I rowsort
SELECT DISTINCT col1 * col2 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + col1 * 87 * 8 FROM tab2 AS cor0
----
11832
21576
41064

query I rowsort
SELECT - col0 - ( cor0.col1 ) FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3886
SELECT ALL - col1 * 47 * col2 + + cor0.col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-133385
-350713
-4558

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - col1 * 47 * col2 + + cor0.col1 / col1 AS col0 FROM tab0 AS cor0
----
-133385
-350713
-4558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3887
SELECT + col1 * + CAST( col1 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988

skipif mysql # not compatible
query I rowsort label-3887
SELECT + col1 * + CAST ( col1 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL + - col1 + 24 FROM tab2 AS cor0
----
-35
-7
7

query I rowsort
SELECT - col0 * - col0 + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT + + col0 * 72 + + col0 * col1 FROM tab1 AS cor0
----
294
5248
6800

onlyif mysql # use DIV operator for integer division
query I rowsort label-3891
SELECT ALL - + col0 + + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL - + col0 + + col0 / + col2 AS col0 FROM tab0 AS cor0
----
-24
-88
0

query I rowsort
SELECT + col0 + - cor0.col1 * - ( cor0.col2 * + 24 ) FROM tab0 AS cor0
----
179177
2363
68136

query I rowsort
SELECT ALL + 36 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT DISTINCT + col0 + + 73 * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT DISTINCT col1 - col2 FROM tab0 cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3896
SELECT - + col0 + + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-3896
SELECT - + col0 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col0 - + 50 * col1 FROM tab2 AS cor0
----
-1543
-2872
-771

query I rowsort
SELECT + col0 * + 50 * 45 FROM tab1 AS cor0
----
144000
180000
6750

query I rowsort
SELECT DISTINCT 38 * 27 FROM tab1
----
1026

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab1, tab0 AS cor0
----
-58

query I rowsort
SELECT + col1 * col0 + - col2 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT + 90 * col1 AS col1 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT ALL - + cor0.col0 * col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3905
SELECT col2 + + col1 * col0 + cor0.col2 DIV + col0 FROM tab2 AS cor0
----
1381
247
4628

skipif mysql # not compatible
query I rowsort label-3905
SELECT col2 + + col1 * col0 + cor0.col2 / + col0 FROM tab2 AS cor0
----
1381
247
4628

query I rowsort
SELECT DISTINCT + - col2 * + 56 AS col0 FROM tab0 cor0
----
-1848
-4592
-56

query I rowsort
SELECT ALL + cor0.col2 * 73 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
3939
4097
6928

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3908
SELECT - + cor0.col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3908
SELECT - + cor0.col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT ALL col0 DIV ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL col0 / ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
11
13
26

query I rowsort
SELECT col1 * 29 * col0 FROM tab0 AS cor0
----
234871
59856
98455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3911
SELECT + CAST( + ( col0 ) AS SIGNED ) * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-3911
SELECT + CAST ( + ( col0 ) AS INTEGER ) * cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - 39 * col1 AS col0 FROM tab2 AS cor0
----
-1209
-2301
-663

query I rowsort
SELECT ALL + 71 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - + 83 + + col0 AS col1 FROM tab1 AS cor0
----
-19
-3
-80

query I rowsort
SELECT + col0 + + 90 * 26 * col1 AS col0 FROM tab0
----
201264
213029
227015

query I rowsort
SELECT - cor0.col0 + col0 * + col0 AS col1 FROM tab2 cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col0 + col1 col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - col0 * - cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + + col0 + + col2 + col1 AS col1 FROM tab1 AS cor0
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab0.col2 col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 * - tab1.col1 * - col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT - - col1 * - col2 + col0 * col1 AS col2 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT + col0 * col0 + col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
6188
6358
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3925
SELECT + col2 DIV col1 AS col0 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3925
SELECT + col2 / col1 AS col0 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 * - col0 FROM tab1 cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT col1 + + col0 * + col2 * col1 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT col2 + col1 * - col0 * col1 FROM tab0 AS cor0
----
-177471
-329314
-736927

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT cor0.col2 + + cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - 87 AS col1 FROM tab0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3934
SELECT 80 DIV col0 col2 FROM tab0
----
0
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3934
SELECT 80 / col0 col2 FROM tab0
----
0
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 col1 FROM tab2
----
0

query I rowsort
SELECT col0 * + col1 * tab2.col0 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT ALL - tab0.col0 - + col2 * - col2 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + col2 - + tab0.col0 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT DISTINCT tab0.col1 DIV + col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT tab0.col1 / + col2 AS col0 FROM tab0
----
1
2
97

query I rowsort
SELECT cor0.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col2 * col0 + col2 * - col0 * + tab2.col2 + tab2.col0 AS col0 FROM tab2
----
-110995
-4907
-50622

onlyif mysql # use DIV operator for integer division
query I rowsort label-3943
SELECT col1 DIV col1 + col0 AS col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3943
SELECT col1 / col1 + col0 AS col1 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT col1 + col0 * col0 + tab2.col2 FROM tab2
----
107
6169
6296

query I rowsort
SELECT DISTINCT 80 + col0 AS col0 FROM tab1
----
144
160
83

query I rowsort
SELECT col2 - tab2.col2 * col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col1 * + col0 + + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT + 96 + + col1 FROM tab2
----
113
127
155

query I rowsort
SELECT ALL + ( col1 ) * - col2 * 22 - - col2 AS col2 FROM tab0 AS cor0
----
-164082
-2133
-62403

query I rowsort
SELECT DISTINCT 92 * col0 AS col2 FROM tab2 AS cor0
----
644
7176
7268

onlyif mysql # use DIV operator for integer division
query I rowsort label-3951
SELECT DISTINCT col2 DIV - cor0.col0 + + ( + ( col2 ) ) FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-3951
SELECT DISTINCT col2 / - cor0.col0 + + ( + ( col2 ) ) FROM tab0 AS cor0
----
1
32
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab0, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - + 83 * - 64 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74f98e75d6375de59270a30dc975487c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT ALL - - cor0.col0 DIV - col1 + + 4 FROM tab2 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL - - cor0.col0 / - col1 + + 4 FROM tab2 AS cor0
----
0
3
4

query I rowsort
SELECT ALL + col0 * col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL + col0 * - col1 + + 41 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1104
-1995
-4539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3957
SELECT ALL - + cor0.col0 - - CAST( col1 AS SIGNED ) * col0 FROM tab0 AS cor0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL - + cor0.col0 - - CAST ( col1 AS INTEGER ) * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + - col0 * ( - col2 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + + col2 + + ( + col2 ) * col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + cor0.col0 * ( - col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 + 96 AS col1 FROM tab0 cor0
----
182
187
193

query I rowsort
SELECT + 34 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT DISTINCT cor0.col2 + - 5 AS col1 FROM tab2 AS cor0
----
21
22
33

query I rowsort
SELECT ALL - 11 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT - col1 * - 38 FROM tab1 cor0
----
380
494
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-3966
SELECT - col1 * tab0.col1 + 84 DIV + 29 AS col0 FROM tab0
----
-7394
-8279
-9407

skipif mysql # not compatible
query I rowsort label-3966
SELECT - col1 * tab0.col1 + 84 / + 29 AS col0 FROM tab0
----
-7394
-8279
-9407

query I rowsort
SELECT ALL + col2 + + col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ALL - 95 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT ALL col0 + 93 FROM tab1
----
157
173
96

query I rowsort
SELECT DISTINCT + col1 * 21 AS col2 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT - + 6 * - 1 AS col1 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 94 + col0 FROM tab1 cor0
----
158
174
97

query I rowsort
SELECT - + col1 + + cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - 88 + col0 AS col1 FROM tab0 AS cor0
----
-53
-64
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 + - col1 col0 FROM tab2 AS cor0
----
-7
21
35

query I rowsort
SELECT ALL + col0 * + col2 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + ( - col0 ) * col0 - ( 46 ) * - tab2.col0 FROM tab2
----
-2496
-2607
273

query I rowsort
SELECT 30 + + col0 FROM tab2
----
108
109
37

query I rowsort
SELECT ( 6 ) * + col0 FROM tab2
----
42
468
474

query I rowsort
SELECT - col2 - 20 AS col2 FROM tab0
----
-102
-21
-53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3983
SELECT CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3983
SELECT CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 26 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT DISTINCT col0 - 73 AS col2 FROM tab0
----
-38
-49
16

query I rowsort
SELECT DISTINCT + col2 - + col2 * col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT + 56 * + col1 + + cor0.col0 FROM tab0 AS cor0
----
4840
5185
5467

query I rowsort
SELECT DISTINCT + 40 FROM tab2, tab0 cor0, tab0 AS cor1
----
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT DISTINCT ( col2 ) DIV col1 AS col2 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT ( col2 ) / col1 AS col2 FROM tab2
----
0
2

query I rowsort
SELECT 37 * + col2 AS col2 FROM tab2
----
1406
962
999

query I rowsort
SELECT - 7 + - cor0.col0 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9892e78b21edc4ecbffa884073b2adac

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3992
SELECT + + col1 + CAST( + col1 AS SIGNED ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort label-3992
SELECT + + col1 + CAST ( + col1 AS INTEGER ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT cor0.col0 * col2 + + col1 * cor0.col1 FROM tab2 cor0
----
1150
3291
5509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col1 FROM tab2
----
8

query I rowsort
SELECT + 10 * - col1 AS col1 FROM tab2
----
-170
-310
-590

query I rowsort
SELECT DISTINCT - 20 * col1 FROM tab2 AS cor0
----
-1180
-340
-620

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT ALL - 21 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL - 21 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 70 - col2 FROM tab0 AS cor0
----
-103
-152
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT DISTINCT - col1 * tab0.col1 DIV - ( ( col2 ) * - col1 ) + + col0 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT - col1 * tab0.col1 / - ( ( col2 ) * - col1 ) + + col0 FROM tab0
----
-62
22
88

query I rowsort
SELECT + col2 - - 12 * + col2 AS col2 FROM tab0
----
1066
13
429

query I rowsort
SELECT - col2 * - 24 + - 7 FROM tab2
----
617
641
905

query I rowsort
SELECT + + ( col1 ) AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - ( - 99 ) FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT + col0 + + col0 * + tab1.col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT col1 + - col1 * - col0 AS col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ( - col2 + - tab1.col1 ) AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + ( + col2 ) * - col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 90 * - col1 AS col2 FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT ALL + ( ( col2 ) ) + + col1 + cor0.col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT DISTINCT + col0 + - 79 * - col1 FROM tab1 cor0
----
1107
2057
854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 86 + - col2 col1 FROM tab1 cor0
----
-10
29
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4012
SELECT ALL - col2 + col2 DIV cor0.col0 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-4012
SELECT ALL - col2 + col2 / cor0.col0 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT + col1 * 17 FROM tab2 cor0
----
1003
289
527

query I rowsort
SELECT ALL - ( - 9 ) FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT - col1 + col0 * - col2 * col1 FROM tab1 cor0
----
-36490
-4238
-99853

query I rowsort
SELECT DISTINCT 16 * - 90 AS col2 FROM tab0 AS cor0
----
-1440

query I rowsort
SELECT + + col1 + + 90 * col0 FROM tab1 AS cor0
----
296
5770
7213

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4018
SELECT ALL - CAST( + 35 AS SIGNED ) + col1 col2 FROM tab2 AS cor0
----
-18
-4
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL - CAST ( + 35 AS INTEGER ) + col1 col2 FROM tab2 AS cor0
----
-18
-4
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4019
SELECT - 22 + - col0 + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-100
-29
-99

skipif mysql # not compatible
query I rowsort label-4019
SELECT - 22 + - col0 + col2 / + col1 AS col1 FROM tab2 AS cor0
----
-100
-29
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4020
SELECT DISTINCT col0 DIV 4 + col0 * col1 FROM tab2 cor0
----
1362
218
4621

skipif mysql # not compatible
query I rowsort label-4020
SELECT DISTINCT col0 / 4 + col0 * col1 FROM tab2 cor0
----
1362
218
4621

query I rowsort
SELECT - 88 + col0 + col1 AS col1 FROM tab0 AS cor0
----
22
44
92

query I rowsort
SELECT cor0.col2 + 93 * col0 FROM tab2 cor0
----
678
7280
7385

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4023
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col1 + + 67 AS col2 FROM tab1 AS cor0
----
41
54
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT ALL ( col1 ) DIV col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4025
SELECT ALL ( col1 ) / col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL - col0 + col0 * - cor0.col0 * col1 FROM tab1 AS cor0
----
-237
-41024
-83280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4027
SELECT DISTINCT col0 * cor0.col0 + + col0 + CAST( NULL AS SIGNED ) * col1 col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT col0 * cor0.col0 + + col0 + CAST ( NULL AS INTEGER ) * col1 col0 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4028
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 75 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 75 AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL tab2.col2 * - ( - col1 * 43 ) FROM tab2
----
27778
35991
65962

query I rowsort
SELECT ALL ( col1 ) + col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL tab2.col2 * - tab2.col1 + tab2.col1 AS col0 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT + + cor0.col1 * col1 + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT + + col0 * - col2 * ( - col0 ) + - col2 * - col2 * col0 FROM tab2 cor0
----
210912
351234
6426

query I rowsort
SELECT ALL + col2 * col2 * - col0 + col2 FROM tab2
----
-114038
-5076
-52702

query I rowsort
SELECT - ( cor0.col2 ) + - 10 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 0b5cf7b046cee2d929c2550d3620c0a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4037
SELECT cor0.col1 DIV + cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1fc9d366516f04208797907945465f57

skipif mysql # not compatible
query I rowsort label-4037
SELECT cor0.col1 / + cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1fc9d366516f04208797907945465f57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4038
SELECT + cor0.col1 + + col2 * 10 DIV - col2 + + 79 AS col1 FROM tab1 AS cor0
----
79
82
95

skipif mysql # not compatible
query I rowsort label-4038
SELECT + cor0.col1 + + col2 * 10 / - col2 + + 79 AS col1 FROM tab1 AS cor0
----
79
82
95

query I rowsort
SELECT - col1 + + 39 * col1 * - col2 FROM tab1 AS cor0
----
-22240
-48685
-54782

query I rowsort
SELECT col0 * col1 + + col2 + col1 FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT - col0 + + 90 * + col1 * col1 FROM tab1 AS cor0
----
15130
60837
8936

query I rowsort
SELECT col1 + + 4 FROM tab1 cor0
----
14
17
30

query I rowsort
SELECT - - col2 + 16 FROM tab0 AS cor0
----
17
49
98

query I rowsort
SELECT DISTINCT col2 * col0 * col0 - + col0 AS col1 FROM tab2
----
1316
158106
237079

query I rowsort
SELECT col1 + - 68 FROM tab1
----
-42
-55
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 - col2 * - col0 col0 FROM tab0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4047
SELECT col1 + + CAST( col1 AS SIGNED ) - tab2.col2 AS col1 FROM tab2
----
-4
35
92

skipif mysql # not compatible
query I rowsort label-4047
SELECT col1 + + CAST ( col1 AS INTEGER ) - tab2.col2 AS col1 FROM tab2
----
-4
35
92

query I rowsort
SELECT col0 * col0 + + col2 + - col0 AS col0 FROM tab1
----
4089
60
6416

query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT - col1 + + 89 AS col1 FROM tab1
----
63
76
79

query I rowsort
SELECT ALL tab1.col2 * col0 + + col0 AS col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT + cor0.col2 * 98 + - col2 AS col1 FROM tab1 AS cor0
----
5238
5529
9312

query I rowsort
SELECT - - cor0.col0 * + cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 28 col2 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT ALL + col1 * - 61 * col1 + - col1 FROM tab2 AS cor0
----
-17646
-212400
-58652

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4056
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / ( + col0 * - 67 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / ( + col0 * - 67 ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) * + col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4058
SELECT DISTINCT + CAST( col1 AS SIGNED ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 99 + col1 FROM tab2 AS cor0
----
116
130
158

query I rowsort
SELECT - - cor0.col1 * 81 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d978491f1f731dfbcdb7a39b597dea4a

query I rowsort
SELECT ALL 18 - + cor0.col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1022
-60
-622

onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT 0 + - ( - col1 ) DIV 89 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4062
SELECT 0 + - ( - col1 ) / 89 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - 70 * 38 FROM tab1 cor0
----
-2660
-2660
-2660

query I rowsort
SELECT DISTINCT + ( + 42 ) * col2 * - 64 + + 32 FROM tab1 AS cor0
----
-145120
-153184
-258016

query I rowsort
SELECT col2 * 61 FROM tab1
----
3294
3477
5856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col1 ) * + col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4067
SELECT ALL + cor0.col2 DIV col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL + cor0.col2 / col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + + 35 * - cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
-1224
-3033
-807

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT ALL + + 24 + cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
24
24
32

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + + 24 + cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
24
24
32

query I rowsort
SELECT DISTINCT + 92 + + 53 AS col2 FROM tab2 AS cor0
----
145

query I rowsort
SELECT 93 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT DISTINCT ( col2 ) * - cor0.col1 + + 83 + 52 AS col0 FROM tab1 AS cor0
----
-1113
-1269
-435

query I rowsort
SELECT - 78 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT - 2 - - col0 AS col0 FROM tab2 AS cor0
----
5
76
77

query I rowsort
SELECT ALL + col0 + + col0 * - ( 56 ) + col0 AS col2 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT DISTINCT col1 * - col0 * - col1 - col1 AS col2 FROM tab0 cor0
----
177418
329218
736918

query I rowsort
SELECT ALL + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT + - ( col2 ) DIV col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4078
SELECT + - ( col2 ) / col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4079
SELECT + col2 / + col2 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4080
SELECT ALL col1 + + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL col1 + + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT - cor1.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + col1 + - 62 * col0 FROM tab0 cor0
----
-1402
-2073
-5427

query I rowsort
SELECT - + cor0.col1 + - col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT - 88 * cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e05d3d07657266e2559df07fd274d1a2

query I rowsort
SELECT - + col1 * col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT col0 * col2 - + col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + 90 + cor0.col2 * + 20 AS col1 FROM tab2 AS cor0
----
610
630
850

onlyif mysql # use DIV operator for integer division
query I rowsort label-4090
SELECT col1 + + col0 DIV - col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-4090
SELECT col1 + + col0 / - col1 FROM tab2
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT - 19 * col0 FROM tab2
----
-133
-1482
-1501

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4093
SELECT + CAST( NULL AS SIGNED ) + - 68 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4093
SELECT + CAST ( NULL AS INTEGER ) + - 68 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4094
SELECT DISTINCT ( col0 ) DIV - col1 - - 54 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT ( col0 ) / - col1 - - 54 FROM tab0
----
54

query I rowsort
SELECT DISTINCT 73 - 10 AS col1 FROM tab1
----
63

query I rowsort
SELECT - col0 + + col1 + col2 * + ( tab2.col0 ) AS col1 FROM tab2
----
2009
213
2940

query I rowsort
SELECT ( 23 ) AS col2 FROM tab2
----
23
23
23

query I rowsort
SELECT 61 * + col0 + col0 AS col0 FROM tab2
----
434
4836
4898

query I rowsort
SELECT + 4 + + col1 + col2 * ( col2 + tab0.col0 ) AS col1 FROM tab0
----
137
14117
1971

query I rowsort
SELECT tab2.col0 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT - col1 + col1 DIV 5 + 60 FROM tab1 AS cor0
----
39
49
52

skipif mysql # not compatible
query I rowsort label-4101
SELECT - col1 + col1 / 5 + 60 FROM tab1 AS cor0
----
39
49
52

query I rowsort
SELECT DISTINCT + - 56 + + col0 FROM tab0 cor0
----
-21
-32
33

query I rowsort
SELECT + col0 * 65 - 90 * - col2 FROM tab2
----
2885
7410
8555

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col2 + + CAST ( col1 AS REAL ) * - col0 + - ( 60 + - col2 ) AS col2 FROM tab2 AS cor0
----
-1403
-277
-4662

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4106
SELECT ALL - 85 * - ( + col0 ) + 53 DIV + 50 FROM tab1 AS cor0
----
256
5441
6801

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL - 85 * - ( + col0 ) + 53 / + 50 FROM tab1 AS cor0
----
256
5441
6801

query I rowsort
SELECT ALL ( col0 + col1 * 6 ) FROM tab1
----
124
158
159

query I rowsort
SELECT ALL + ( - col1 * - col0 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL 11 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT + CAST( - 63 AS SIGNED ) FROM tab1 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-4110
SELECT + CAST ( - 63 AS INTEGER ) FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4111
SELECT ALL + 60 * + col1 + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
1022
1860
3540

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL + 60 * + col1 + col2 / col1 AS col2 FROM tab2 AS cor0
----
1022
1860
3540

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - ( - cor0.col0 ) * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT DISTINCT - + CAST( + 49 AS SIGNED ) DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT - + CAST ( + 49 AS INTEGER ) / col1 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4115
SELECT + col0 * col2 + - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT + col0 * col2 + - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 98 + - col1 FROM tab1 AS cor0
----
72
85
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT ALL + 62 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL + 62 / col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4118
SELECT ALL CAST( + col1 AS SIGNED ) * + cor0.col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL CAST ( + col1 AS INTEGER ) * + cor0.col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 62 col2 FROM tab1 AS cor0
----
-34
5
8

query I rowsort
SELECT - col0 * - 88 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-181632
-298760
-712712

query I rowsort
SELECT + 21 + col2 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT + col1 * + col0 + 63 + col0 AS col2 FROM tab2 AS cor0
----
1485
287
4743

query I rowsort
SELECT DISTINCT + - col1 + col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + col2 + + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col0 * + 44 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT ALL cor0.col1 * col1 * - col1 AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cf1383d310e5e3e19470e0b8dc064d0c

query I rowsort
SELECT - col0 + 65 AS col0 FROM tab2 AS cor0
----
-13
-14
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4129
SELECT - CAST( NULL AS DECIMAL ) * col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4129
SELECT - CAST ( NULL AS REAL ) * col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 71 ) FROM tab0, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT col0 * - ( + 3 ) * col0 FROM tab0
----
-1728
-23763
-3675

query I rowsort
SELECT col1 * 26 AS col2 FROM tab0
----
2236
2366
2522

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab2, tab0 cor0, tab2 cor1
----
-29

query I rowsort
SELECT + col1 * + col1 + + 23 FROM tab0
----
7419
8304
9432

query I rowsort
SELECT ALL - - 88 AS col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4136
SELECT + 8 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4136
SELECT + 8 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - - col1 * - 54 AS col2 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT ALL + + col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - + cor0.col2 * 85 AS col1 FROM tab1 AS cor0
----
-4590
-4845
-8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 - + col0 col0 FROM tab1
----
-134
-150
-73

query I rowsort
SELECT - 79 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

query I rowsort
SELECT DISTINCT - col0 * tab1.col2 * - ( + col1 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + + 31 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-4145
SELECT - 55 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4145
SELECT - 55 / - col1 AS col1 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT - - 98 + + 87 * + cor0.col1 FROM tab2 AS cor0
----
1577
2795
5231

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab2, tab0 AS cor0
----
-48

query I rowsort
SELECT col2 * 81 + - col0 FROM tab1
----
4371
4553
7696

query I rowsort
SELECT + col1 * 22 + 31 FROM tab2
----
1329
405
713

onlyif mysql # use DIV operator for integer division
query I rowsort label-4150
SELECT + 8 DIV col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4150
SELECT + 8 / col0 FROM tab1
----
0
0
2

query I rowsort
SELECT DISTINCT - 72 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
-72

query I rowsort
SELECT cor0.col1 + 16 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 28994c0e551fa62a4af9c88b1832ca3f

query I rowsort
SELECT - col0 + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4154
SELECT + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4154
SELECT + col1 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 12 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + 45 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + - ( col0 ) + + 75 AS col0 FROM tab1 AS cor0
----
-5
11
72

query I rowsort
SELECT ALL + ( cor0.col1 ) + ( col1 ) * + col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - - col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - 34 * col2 * cor0.col2 + col0 * - col1 * + col2 FROM tab0 cor0
----
-105138
-3429
-892734

query I rowsort
SELECT ( - col0 ) + + col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 51 ) FROM tab0
----
51

query I rowsort
SELECT 23 + - tab1.col2 AS col2 FROM tab1
----
-31
-34
-73

query I rowsort
SELECT 64 + col0 * 34 FROM tab2 AS cor0
----
2716
2750
302

query I rowsort
SELECT - col2 * - cor0.col1 * 34 + - col1 * col1 FROM tab0 AS cor0
----
-6111
245427
89096

onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT - - col0 + col0 DIV 25 FROM tab1 AS cor0
----
3
66
83

skipif mysql # not compatible
query I rowsort label-4166
SELECT - - col0 + col0 / 25 FROM tab1 AS cor0
----
3
66
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT + col0 + + col0 DIV 4 AS col2 FROM tab2 AS cor0
----
8
97
98

skipif mysql # not compatible
query I rowsort label-4167
SELECT + col0 + + col0 / 4 AS col2 FROM tab2 AS cor0
----
8
97
98

query I rowsort
SELECT ALL - + col1 * - col0 * - col1 + ( + col0 ) FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT 55 + col0 AS col0 FROM tab0 AS cor0
----
144
79
90

query I rowsort
SELECT + 51 - + col0 AS col0 FROM tab1 AS cor0
----
-13
-29
48

query I rowsort
SELECT DISTINCT + 69 * col2 FROM tab2 AS cor0
----
1794
1863
2622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col1 FROM tab1 cor0
----
44
44
44

query I rowsort
SELECT DISTINCT col1 * 15 + + col1 AS col0 FROM tab2
----
272
496
944

query I rowsort
SELECT + cor0.col0 + cor0.col0 * - 79 FROM tab0 AS cor0
----
-1872
-2730
-6942

query I rowsort
SELECT col0 * + col2 + 34 FROM tab0
----
69
7332
826

query I rowsort
SELECT - col2 + + 92 * + col0 FROM tab1
----
222
5831
7264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) - + cor0.col2 * ( col0 ) col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - 77 * - 36 + col1 * + 86 FROM tab0
----
10168
10598
11114

query I rowsort
SELECT - ( col0 ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 * col0 col2 FROM tab1 AS cor0
----
-105
-2240
-2800

query I rowsort
SELECT + + 38 * 15 AS col0 FROM tab0 AS cor0
----
570
570
570

query I rowsort
SELECT ALL + + ( + cor0.col2 ) * col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4184
SELECT DISTINCT - - col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT - - col2 / + col1 AS col1 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT col2 * + ( col2 ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * + CAST ( + 62 AS REAL ) AS col0 FROM tab0 cor0
----
1488
2170
5518

query I rowsort
SELECT - cor0.col0 * - 19 AS col2 FROM tab2 AS cor0
----
133
1482
1501

query I rowsort
SELECT - - cor0.col1 + cor0.col1 * - 68 AS col2 FROM tab2 AS cor0
----
-1139
-2077
-3953

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4189
SELECT col0 + + CAST( - 58 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
-1368
-1995
-5073

skipif mysql # not compatible
query I rowsort label-4189
SELECT col0 + + CAST ( - 58 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
-1368
-1995
-5073

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4190
SELECT ALL col0 + - CAST( NULL AS SIGNED ) * - 25 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) * - 25 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 88 * + col2 col2 FROM tab1 AS cor0
----
14256
321024
675840

query I rowsort
SELECT ALL - col2 * + 75 AS col1 FROM tab0 cor0
----
-2475
-6150
-75

query I rowsort
SELECT - + col1 * - 29 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT + cor0.col1 * - 1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4195
SELECT ALL - + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - + col2 / - col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 + 82 * col1 FROM tab2 cor0
----
1356
2515
4812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4197
SELECT ALL col0 + + ( col0 ) - - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL col0 + + ( col0 ) - - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 15 * cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9cc92c402a4159be19434b1b50d150a

query I rowsort
SELECT col1 + - ( 72 * + col2 ) + col0 * col2 AS col2 FROM tab2
----
-1724
215
283

query I rowsort
SELECT col0 * + col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col0 + - col1 * - col2 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4202
SELECT ALL - col1 + + 74 * col2 * col0 + 26 DIV 55 FROM tab1
----
11962
269942
568307

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - col1 + + 74 * col2 * col0 + 26 / 55 FROM tab1
----
11962
269942
568307

query I rowsort
SELECT ALL - + cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT 49 * + col1 AS col0 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT ALL - + 28 * col2 + col1 AS col1 FROM tab1 AS cor0
----
-1486
-1586
-2675

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to ed0ce6de90f51f6f9035da5f66a6f197

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab2, tab0 AS cor0
----
-76

query I rowsort
SELECT 30 + tab1.col0 AS col0 FROM tab1
----
110
33
94

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + 41 + col2 * col2 FROM tab0
----
1130
42
6765

query I rowsort
SELECT + ( tab2.col2 ) AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - 46 FROM tab1
----
-46

query I rowsort
SELECT ALL - col0 * + col2 * col0 FROM tab0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col2 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT + col0 + - col1 * 57 * 60 AS col2 FROM tab1
----
-34136
-44380
-88917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + - 38 col2 FROM tab2 cor0
----
-1381
-255
-4640

query I rowsort
SELECT col0 + + col1 * tab1.col0 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT DISTINCT - col0 DIV - col1 + + 50 AS col0 FROM tab2 AS cor0
----
50
51
54

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - col0 / - col1 + + 50 AS col0 FROM tab2 AS cor0
----
50
51
54

query I rowsort
SELECT DISTINCT + col2 * col2 + + ( + col2 ) * + col2 + cor0.col2 FROM tab0 AS cor0
----
13530
2211
3

query I rowsort
SELECT ALL 34 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col2 + + col2 * + CAST ( + col2 * col1 AS REAL ) FROM tab1 AS cor0
----
119904
32547
75870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4222
SELECT DISTINCT col1 + col2 / + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT col1 + col2 / + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT ALL - col0 * - col2 + col1 DIV - col1 col0 FROM tab0 AS cor0
----
34
7297
791

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL - col0 * - col2 + col1 / - col1 col0 FROM tab0 AS cor0
----
34
7297
791

query I rowsort
SELECT ALL - 94 FROM tab2, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 10 * col1 col0 FROM tab1 AS cor0
----
-1000
-1690
-6760

query I rowsort
SELECT - col1 * col2 + + ( + col2 ) FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL col2 * + 80 FROM tab0
----
2640
6560
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 * col1 col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL + col0 + + ( + col0 * 55 ) AS col2 FROM tab1 AS cor0
----
168
3584
4480

onlyif mysql # use DIV operator for integer division
query I rowsort label-4231
SELECT ALL + + cor0.col1 + + col2 DIV col2 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + + cor0.col1 + + col2 / col2 FROM tab0 cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col2 col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT 92 * 42 FROM tab1 AS cor0
----
3864
3864
3864

query I rowsort
SELECT ( ( col0 ) ) + + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - + cor0.col0 * + col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - col2 * + col2 + + ( - 54 ) FROM tab0 AS cor0
----
-1143
-55
-6778

query I rowsort
SELECT ALL - + 12 * - col0 - 51 FROM tab0 AS cor0
----
1017
237
369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col2 * + col0 col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT - + col0 * col2 + ( col1 ) FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ( col1 ) + + col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL + col2 + ( - col0 ) AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL - col0 * - 5 + tab0.col0 FROM tab0
----
144
210
534

query I rowsort
SELECT ALL + 62 + tab0.col2 FROM tab0
----
144
63
95

query I rowsort
SELECT + col2 * + 32 AS col0 FROM tab0
----
1056
2624
32

query I rowsort
SELECT ALL + col0 * ( col1 ) FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4246
SELECT 23 DIV col1 + + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4246
SELECT 23 / col1 + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 58 * col0 FROM tab2
----
406
4524
4582

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 * col0 + - col2 FROM tab1
----
-36537
-4266
-99936

query I rowsort
SELECT + - 26 * - col2 + - cor0.col1 + - col2 FROM tab2 AS cor0
----
591
644
933

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT DISTINCT + CAST( + 2 AS SIGNED ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT + CAST ( + 2 AS INTEGER ) FROM tab2 AS cor0
----
2

query I rowsort
SELECT col2 * 11 + + col2 * col0 FROM tab2 AS cor0
----
2314
3420
486

query I rowsort
SELECT + col2 + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - cor0.col0 * 55 + - 41 AS col1 FROM tab1 AS cor0
----
-206
-3561
-4441

query I rowsort
SELECT ALL + col2 * 72 AS col0 FROM tab2 AS cor0
----
1872
1944
2736

query I rowsort
SELECT col2 * 20 AS col1 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT ALL - col1 - col1 * ( + cor0.col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
106080
1488
358897

query I rowsort
SELECT DISTINCT + col1 * - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + col1 * col0 * col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL + 68 + - col2 * + tab0.col2 FROM tab0
----
-1021
-6656
67

query I rowsort
SELECT - + col0 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - col1 * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 - - col2 * cor0.col0 * - cor0.col0 col2 FROM tab1 AS cor0
----
-233529
-540
-614496

query I rowsort
SELECT - - cor0.col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col1 * + col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - col0 - col1 * col1 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT + tab0.col2 * - col0 + col2 AS col1 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL - 33 AS col2 FROM tab2 cor0
----
-33
-33
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT cor0.col1 * col2 + col0 DIV col0 + col2 FROM tab1 AS cor0
----
1345
1459
628

skipif mysql # not compatible
query I rowsort label-4268
SELECT cor0.col1 * col2 + col0 / col0 + col2 FROM tab1 AS cor0
----
1345
1459
628

query I rowsort
SELECT - 86 * + col1 + + col0 + cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
-2470
-2968
1619

onlyif mysql # use DIV operator for integer division
query I rowsort label-4270
SELECT ALL + col1 DIV - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL + col1 / - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - - col1 + - col1 * - col2 + + col0 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT ALL + - 11 AS col2 FROM tab1 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 col0 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT - col2 - col1 * col1 AS col1 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT ALL + ( col0 ) - - col1 FROM tab2
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4276
SELECT + CAST( NULL AS SIGNED ) + col2 * col2 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT + CAST ( NULL AS INTEGER ) + col2 * col2 + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 8 + 33 - + col0 AS col0 FROM tab0
----
-48
17
6

query I rowsort
SELECT - col2 * 98 + - col2 FROM tab0
----
-3267
-8118
-99

query I rowsort
SELECT - col0 - + col1 * col2 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT + + 35 * + cor0.col1 + col1 FROM tab0 cor0
----
3096
3276
3492

query I rowsort
SELECT col0 + cor0.col0 * - col0 * - col2 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT - cor0.col0 + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL - 70 * cor0.col1 FROM tab2 AS cor0
----
-1190
-2170
-4130

query I rowsort
SELECT DISTINCT 77 + tab1.col0 * - col2 FROM tab1
----
-3571
-7603
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col2 FROM tab0, tab2 AS cor0
----
65

query I rowsort
SELECT - col0 + 93 AS col2 FROM tab1
----
13
29
90

query I rowsort
SELECT ALL + ( col2 ) + col2 * 81 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT ALL 94 * - 42 + col1 + ( col2 ) FROM tab1 AS cor0
----
-3839
-3868
-3881

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

query I rowsort
SELECT ALL + col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL col2 * col1 + col0 * + col2 AS col1 FROM tab1 cor0
----
1566
4218
8928

query I rowsort
SELECT + + col0 + col2 * - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-157461
-185129
-884656

query I rowsort
SELECT ALL - + 19 AS col1 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL - col2 * col2 + 64 * - col1 + col1 FROM tab0 AS cor0
----
-12457
-6112
-6507

onlyif mysql # use DIV operator for integer division
query I rowsort label-4295
SELECT DISTINCT ( col1 ) * 93 + + 37 DIV col0 + - col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
137
2159
4811

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT ( col1 ) * 93 + + 37 / col0 + - col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
137
2159
4811

onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT DISTINCT + tab0.col0 DIV tab0.col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT + tab0.col0 / tab0.col2 FROM tab0
----
0
1
35

query I rowsort
SELECT ALL + + col1 * cor0.col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4298
SELECT cor0.col1 + col0 DIV 52 FROM tab1 AS cor0
----
11
14
26

skipif mysql # not compatible
query I rowsort label-4298
SELECT cor0.col1 + col0 / 52 FROM tab1 AS cor0
----
11
14
26

query I rowsort
SELECT DISTINCT col1 + - col0 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + 43 * + col0 AS col1 FROM tab2 AS cor0
----
301
3354
3397

query I rowsort
SELECT ALL - col2 + col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - 23 * col1 AS col0 FROM tab1 AS cor0
----
-230
-299
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col1 col0 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT + + 18 + col2 AS col0 FROM tab2 AS cor0
----
44
45
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * - col2 col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT - col0 DIV col2 + col2 DIV cor0.col1 FROM tab1 AS cor0
----
2
4
7

skipif mysql # not compatible
query I rowsort label-4307
SELECT - col0 / col2 + col2 / cor0.col1 FROM tab1 AS cor0
----
2
4
7

query I rowsort
SELECT DISTINCT - - col1 * - 39 * + col1 FROM tab0 cor0
----
-288444
-322959
-366951

query I rowsort
SELECT ALL - col0 * 69 AS col1 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT ALL + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + + col2 * - 7 + - col1 FROM tab0 AS cor0
----
-104
-317
-665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 96 + col0 col1 FROM tab1 AS cor0
----
291
6208
7760

query I rowsort
SELECT DISTINCT + + col0 * + 89 AS col0 FROM tab1 cor0
----
267
5696
7120

query I rowsort
SELECT ALL - col2 * ( + ( col1 ) ) + 70 FROM tab1 AS cor0
----
-1178
-1334
-500

query I rowsort
SELECT + - cor0.col1 + - col0 * - col0 AS col0 FROM tab0 cor0
----
1128
490
7830

query I rowsort
SELECT col2 + 84 + + 71 AS col1 FROM tab0
----
156
188
237

query I rowsort
SELECT - ( + col2 ) * col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - col1 * col2 + - ( + col0 ) FROM tab2
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT - ( - 10 ) + cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
10
10
11

skipif mysql # not compatible
query I rowsort label-4319
SELECT - ( - 10 ) + cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
10
10
11

query I rowsort
SELECT + 37 + 48 * + col0 FROM tab0 AS cor0
----
1189
1717
4309

query I rowsort
SELECT DISTINCT 51 FROM tab1, tab1 AS cor0
----
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4322
SELECT CAST( NULL AS SIGNED ) * + 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT CAST ( NULL AS INTEGER ) * + 35 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col1 - ( col1 ) FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + col2 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT ( + cor1.col2 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT ALL + 64 DIV 52 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + 64 / 52 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4327
SELECT + 66 + col0 * CAST( - col2 AS SIGNED ) FROM tab2
----
-123
-1962
-2936

skipif mysql # not compatible
query I rowsort label-4327
SELECT + 66 + col0 * CAST ( - col2 AS INTEGER ) FROM tab2
----
-123
-1962
-2936

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab1
----
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT ALL + col1 DIV 47 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + col1 / 47 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4330
SELECT ALL + col2 DIV + 26 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4330
SELECT ALL + col2 / + 26 AS col2 FROM tab0
----
0
1
3

query I rowsort
SELECT DISTINCT + 42 + - 90 FROM tab2, tab2 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 31 ) col2 FROM tab0, tab1 AS cor0
----
31

query I rowsort
SELECT + col0 - col0 * - ( col1 + col2 ) * col2 AS col0 FROM tab0 cor0
----
1262643
3465
94272

query I rowsort
SELECT cor0.col0 - 19 FROM tab0, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to cc42b62184505d2a16330caf7d8e2a2f

query I rowsort
SELECT ALL + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + tab2.col2 + 18 AS col2 FROM tab2
----
44
45
56

query I rowsort
SELECT - col2 * ( - cor0.col0 ) FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col0 * col1 AS REAL ) col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - ( + 93 ) FROM tab0
----
-93

query I rowsort
SELECT ALL 53 + 44 AS col1 FROM tab1
----
97
97
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT - cor0.col0 * + cor0.col0 + - col1 * col2 DIV col2 FROM tab1 AS cor0
----
-35
-4106
-6413

skipif mysql # not compatible
query I rowsort label-4341
SELECT - cor0.col0 * + cor0.col0 + - col1 * col2 / col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT + cor0.col0 - + col2 AS col2 FROM tab1 cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4343
SELECT + ( col1 ) * ( - 87 ) DIV + col0 + - 51 FROM tab2 AS cor0
----
-116
-436
-69

skipif mysql # not compatible
query I rowsort label-4343
SELECT + ( col1 ) * ( - 87 ) / + col0 + - 51 FROM tab2 AS cor0
----
-116
-436
-69

query I rowsort
SELECT ALL 38 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT + col1 + - col0 * 73 * - 32 AS col2 FROM tab0 AS cor0
----
207995
56150
81857

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT col0 DIV + col0 + 78 * col2 col1 FROM tab0
----
2575
6397
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4346
SELECT col0 / + col0 + 78 * col2 col1 FROM tab0
----
2575
6397
79

query I rowsort
SELECT + + 56 + - col2 AS col1 FROM tab1 AS cor0
----
-1
-40
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4348
SELECT ALL - - col2 + col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL - - col2 + col2 / + col1 AS col1 FROM tab2 AS cor0
----
26
27
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4349
SELECT ALL - - col1 DIV col0 - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - - col1 / col0 - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-18

query I rowsort
SELECT DISTINCT + 3 * + col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL - col1 - 84 AS col0 FROM tab0 AS cor0
----
-170
-175
-181

query I rowsort
SELECT + col0 * 76 FROM tab1 AS cor0
----
228
4864
6080

query I rowsort
SELECT ALL + - col1 + ( + cor0.col2 ) AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col1 + + ( - col2 + col1 ) AS col0 FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT DISTINCT col2 - + 44 FROM tab1 AS cor0
----
10
13
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4356
SELECT DISTINCT - + col1 * CAST( NULL AS SIGNED ) + col0 + col1 * ( col1 ) / - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT - + col1 * CAST ( NULL AS INTEGER ) + col0 + col1 * ( col1 ) / - col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 - + ( - 2 + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-60
-60
0

query I rowsort
SELECT col2 * cor0.col2 + - 21 FROM tab1 AS cor0
----
2895
3228
9195

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col0 * - 81 + col1 AS col2 FROM tab2 cor0
----
-536
-6259
-6382

query I rowsort
SELECT DISTINCT col0 - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col2 * 76 * 67 + - cor0.col2 * - col0 AS col2 FROM tab2 cor0
----
134420
137673
196498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + ( 19 ) col2 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT ( col0 ) + - col1 * ( + col2 ) FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - 9 * col1 FROM tab0 AS cor0
----
-774
-819
-873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4366
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 65 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 65 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 6 - col2 * col1 FROM tab0 AS cor0
----
-2832
-7456
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 59 ) + - col2 col1 FROM tab1 AS cor0
----
-113
-116
-155

query I rowsort
SELECT - - 82 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
7076
7551
7989

query I rowsort
SELECT - 83 * cor0.col2 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 92411a36c5ca3a5aa7e9db67a6dfa1f1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT cor0.col1 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4371
SELECT cor0.col1 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL col0 * - col0 + - col1 * - col2 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT - 69 + - col1 - + col2 AS col2 FROM tab0 AS cor0
----
-167
-188
-242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 29 ) + + col0 col0 FROM tab2 cor0
----
107
108
36

query I rowsort
SELECT DISTINCT 14 + col2 FROM tab0 AS cor0
----
15
47
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 + col2 col0 FROM tab0 AS cor0
----
105
24
56

query I rowsort
SELECT DISTINCT + col2 - col1 * + col2 * + col2 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT DISTINCT tab0.col0 DIV - tab0.col1 + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT tab0.col0 / - tab0.col1 + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col2 AS REAL ) + col0 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( 78 ) * col1 col1 FROM tab2 cor0
----
1326
2418
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 + - 13 + col2 col0 FROM tab2
----
-24
-35
-36

query I rowsort
SELECT ALL + ( 96 ) - - col1 FROM tab0
----
182
187
193

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab1 WHERE NULL >= ( col0 )
----

query I rowsort
SELECT ALL col0 * + col0 * + col2 FROM tab2
----
1323
158184
237158

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( + col2 + col0 * - col1 * col0 + col1 ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT col0 + col1 DIV + tab1.col2 + col1 * tab1.col2 FROM tab1
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-4388
SELECT col0 + col1 / + tab1.col2 + col1 * tab1.col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT col1 + col1 * col2 < ( NULL )
----

query I rowsort
SELECT col1 + - col1 * + col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL + col2 * col0 * - col1 + + col0 FROM tab1
----
-36416
-4209
-99760

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > col2 * col0 + col0
----

query I rowsort
SELECT ALL - tab1.col2 + + col0 * + col0 AS col0 FROM tab1 WHERE col1 / col2 NOT IN ( col1 )
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT col2 * col1 + col2 DIV col0 AS col1 FROM tab2
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-4394
SELECT col2 * col1 + col2 / col0 AS col1 FROM tab2
----
1534
646
840

query I rowsort
SELECT tab0.col1 AS col2 FROM tab0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * tab2.col2 - - col2 AS col1 FROM tab2
----
1560
684
864

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT IN ( col1 * - col2 + + col2 * + col0 + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT + col0 * col1 * tab0.col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL col2 * col2 - col1 FROM tab2
----
1427
617
698

query I rowsort
SELECT col2 + col1 * - col0 + - col2 * col2 AS col0 FROM tab1
----
-10160
-2940
-3832

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL - col0 + tab2.col2 AS col2 FROM tab2
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col0 * col2 + - col2 col1 FROM tab2 cor0
----
1296
158158
237120

query I rowsort
SELECT DISTINCT + col0 * col0 + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL + col0 - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT DISTINCT + cor0.col0 * col0 * - col0 + - col2 + col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-262202
-512097
-82

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT + cor0.col0 * col0 * - col0 + - col2 + col0 / - col0 AS col2 FROM tab1 AS cor0
----
-262202
-512097
-82

query I rowsort
SELECT DISTINCT - col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT + col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - cor0.col2 * cor0.col0 * cor0.col1 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1, tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL col2 * + col1 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT col1 * - col1 AS col0 FROM tab0 AS cor0 WHERE cor0.col0 BETWEEN NULL AND ( - col0 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * col2 col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL col2 - - col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - cor0.col2 + - col2 * + col0 AS col2 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT - 23 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT + + cor0.col2 - + col1 * - col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT cor2.col0 + + 2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
5
66
82

query I rowsort
SELECT + cor0.col1 + - 43 FROM tab1 AS cor0
----
-17
-30
-33

query I rowsort
SELECT ALL - cor1.col1 FROM tab1 cor0 CROSS JOIN tab1, tab0 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT col1 + col2 * + col1 + - tab2.col1 AS col2 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4424
SELECT + col0 + - col0 * CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-4424
SELECT + col0 + - col0 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * col0 IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL col1 * col0 + col2 FROM tab2 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT col1 + - col1 + tab0.col0 AS col0 FROM tab0
----
24
35
89

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL col1 * - col2 - col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT - col2 + + col2 + - col2 AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col0 * tab2.col1 + col1 * + col2 AS col0 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT 17 AS col1 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT ALL ( + 41 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4434
SELECT CAST( - 55 AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

skipif mysql # not compatible
query I rowsort label-4434
SELECT CAST ( - 55 AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

onlyif mysql # use DIV operator for integer division
query I rowsort label-4435
SELECT + col0 DIV 53 + col0 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-4435
SELECT + col0 / 53 + col0 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT DISTINCT + ( - 6 ) * - col0 AS col0 FROM tab1 cor0
----
18
384
480

query I rowsort
SELECT - 95 * + 99 + - col2 FROM tab1 AS cor0
----
-9459
-9462
-9501

query I rowsort
SELECT - ( - col2 ) * col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * + 63 col2 FROM tab1 AS cor0
----
-4536
-4536
-4536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4440
SELECT cor0.col1 * 32 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT cor0.col1 * 32 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + 18 * col1 FROM tab1 AS cor0
----
190
247
494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4442
SELECT + tab0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT + tab0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( + col1 ) * col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + col2 + - col2 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT + ( + 81 ) * + col2 AS col1 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT + + cor0.col0 * ( + cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - col2 + 64 * - col2 FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT ALL ( col1 ) + 87 FROM tab2 AS cor0
----
104
118
146

query I rowsort
SELECT - 12 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT DISTINCT + col1 + - col2 * col0 - - 92 FROM tab1 AS cor0
----
-3546
-44
-7575

query I rowsort
SELECT ALL - col0 * 64 + col1 FROM tab0
----
-1450
-2143
-5605

query I rowsort
SELECT DISTINCT 95 * + tab2.col0 + + col2 AS col2 FROM tab2
----
692
7436
7543

query I rowsort
SELECT - 19 - - col0 AS col0 FROM tab2
----
-12
59
60

query I rowsort
SELECT - col0 * col0 + + col2 * + col1 FROM tab0 AS cor0
----
-1128
-459
2262

query I rowsort
SELECT col0 + ( 17 * cor0.col0 ) FROM tab1 AS cor0
----
1152
1440
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT - + col2 * + 68 + + col0 DIV col0 AS col0 FROM tab0 cor0
----
-2243
-5575
-67

skipif mysql # not compatible
query I rowsort label-4456
SELECT - + col2 * + 68 + + col0 / col0 AS col0 FROM tab0 cor0
----
-2243
-5575
-67

query I rowsort
SELECT ALL + col1 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + 58 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT 62 DIV + col1 AS col0 FROM tab1
----
2
4
6

skipif mysql # not compatible
query I rowsort label-4459
SELECT 62 / + col1 AS col0 FROM tab1
----
2
4
6

query I rowsort
SELECT col1 * - 25 AS col0 FROM tab2
----
-1475
-425
-775

query I rowsort
SELECT DISTINCT + col2 - - 48 AS col2 FROM tab1
----
102
105
144

query I rowsort
SELECT DISTINCT col1 + - 7 FROM tab2
----
10
24
52

query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
-75

query I rowsort
SELECT + col2 * ( + col1 + col0 ) AS col1 FROM tab2 AS cor0
----
1026
3562
3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4465
SELECT - tab2.col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT - tab2.col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4466
SELECT col0 DIV - 94 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT col0 / - 94 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 * - 66 AS col2 FROM tab1 cor0
----
-3564
-3762
-6336

query I rowsort
SELECT ALL + ( - col2 ) + - col1 AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL - ( - col1 * - col2 ) + - col0 + col2 AS col1 FROM tab0
----
-131
-2829
-7469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 + - col1 col1 FROM tab1
----
-50
-53
-66

query I rowsort
SELECT ALL + + ( - col2 ) * col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4472
SELECT + + CAST( col2 AS SIGNED ) * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-4472
SELECT + + CAST ( col2 AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 56 AS REAL ) + cor0.col1 + col2 * 72 AS col0 FROM tab1 AS cor0
----
3970
4170
6981

query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - - 32 + col2 AS col0 FROM tab0 AS cor0
----
114
33
65

query IIIIII rowsort
SELECT * FROM tab2, tab0 cor0 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4477
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 88 col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4477
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 88 col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab2, tab1, tab0 cor0
----
55

query I rowsort
SELECT ( - col2 ) * + 36 + + tab2.col1 AS col1 FROM tab2
----
-1351
-877
-941

query I rowsort
SELECT ALL 78 + - cor0.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to daa9c10595b0015a29618f60debb5d98

query I rowsort
SELECT - + cor0.col0 * + col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 59 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT ALL col0 * cor0.col2 + + col2 + + cor0.col0 AS col0 FROM tab2 cor0
----
2132
223
3119

onlyif mysql # use DIV operator for integer division
query I rowsort label-4485
SELECT 29 + col0 DIV col0 AS col1 FROM tab1
----
30
30
30

skipif mysql # not compatible
query I rowsort label-4485
SELECT 29 + col0 / col0 AS col1 FROM tab1
----
30
30
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4486
SELECT + - col1 + col2 * CAST( col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
207926
737267
8722

skipif mysql # not compatible
query I rowsort label-4486
SELECT + - col1 + col2 * CAST ( col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
207926
737267
8722

query I rowsort
SELECT DISTINCT col1 * col0 + 8 AS col2 FROM tab0 AS cor0
----
2072
3403
8107

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4488
SELECT - - col2 - - CAST( NULL AS SIGNED ) * 13 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4488
SELECT - - col2 - - CAST ( NULL AS INTEGER ) * 13 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4489
SELECT ALL - col1 DIV - col0 + col2 AS col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL - col1 / - col0 + col2 AS col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT DISTINCT - col2 + col2 * col1 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + col2 + col1 * col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT - cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + - col2 * - 53 + + cor0.col1 FROM tab2 cor0
----
1437
1462
2031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4494
SELECT cor0.col1 * - 53 - col2 * - cor0.col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT cor0.col1 * - 53 - col2 * - cor0.col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 30 FROM tab2, tab0, tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT + col1 + + 5 * col0 AS col0 FROM tab2 AS cor0
----
412
449
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT ALL + col0 * - CAST( NULL AS DECIMAL ) - 1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + col0 * - CAST ( NULL AS REAL ) - 1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4499
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4501
SELECT ALL + col0 * + CAST( - ( + col2 ) AS SIGNED ) + - 8 * - col1 * col0 FROM tab2 AS cor0
----
1547
34788
7742

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL + col0 * + CAST ( - ( + col2 ) AS INTEGER ) + - 8 * - col1 * col0 FROM tab2 AS cor0
----
1547
34788
7742

query I rowsort
SELECT ALL col1 - + ( + 83 + col1 ) * + col2 FROM tab1 AS cor0
----
-5291
-5860
-9203

query I rowsort
SELECT + 46 * 52 FROM tab0, tab0 AS cor0
----
9 values hashing to 7dfea8e17927d584286cf5ffdf016cba

query I rowsort
SELECT - 40 + - col1 FROM tab1 AS cor0
----
-50
-53
-66

query I rowsort
SELECT ALL + ( + col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col1 * col0 + - 12 FROM tab1 AS cor0
----
1028
628
66

query I rowsort
SELECT ( col1 ) * 25 + col2 * col0 AS col1 FROM tab2 AS cor0
----
3427
3503
964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + 59 col2 FROM tab1
----
1099
137
699

query I rowsort
SELECT + tab2.col2 * + 31 * + 25 FROM tab2, tab2 AS cor0
----
9 values hashing to ae182dd5171aaba03ec1c09f6c47852f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4510
SELECT col1 + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4510
SELECT col1 + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT - + col2 + ( - 6 * col1 ) FROM tab2 AS cor0
----
-140
-213
-380

query I rowsort
SELECT + cor0.col1 + 96 * col2 AS col2 FROM tab1 AS cor0
----
5210
5482
9229

query I rowsort
SELECT - tab0.col0 + col0 * + col0 AS col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT + 5 + + cor0.col2 * - col0 FROM tab0 AS cor0
----
-30
-7293
-787

query I rowsort
SELECT 90 * + col2 FROM tab2 AS cor0
----
2340
2430
3420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4516
SELECT - CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-4516
SELECT - CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 9 AS REAL ) FROM tab1, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT col0 * - ( - tab0.col2 ) + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT + + 37 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to b8def841e97863779a391f3a05d3eb92

query I rowsort
SELECT + col0 + ( col2 + + col1 * col2 ) FROM tab0
----
133
2895
7633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4521
SELECT DISTINCT - CAST( col0 AS DECIMAL ) * + cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT - CAST ( col0 AS REAL ) * + cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 11 AS col1 FROM tab0 AS cor0
----
11
11
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT + + col2 DIV col1 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4523
SELECT + + col2 / col1 FROM tab2 cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 16 * - 51 FROM tab2 cor0
----
-816
-816
-816

query I rowsort
SELECT DISTINCT - + 80 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT ALL - 83 * cor0.col1 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT DISTINCT + 83 * - col1 FROM tab1 cor0
----
-1079
-2158
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4530
SELECT - 89 DIV col1 FROM tab2 cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-4530
SELECT - 89 / col1 FROM tab2 cor0
----
-1
-2
-5

query I rowsort
SELECT DISTINCT ( + col1 ) * col2 + col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ALL + - col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT + + CAST( NULL AS SIGNED ) + + cor0.col1 * + col1 / ( + col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4533
SELECT + + CAST ( NULL AS INTEGER ) + + cor0.col1 * + col1 / ( + col0 ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT + 7 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4534
SELECT + 7 / col0 AS col2 FROM tab1 AS cor0
----
0
0
2

query I rowsort
SELECT + + 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4536
SELECT col0 DIV col1 - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4536
SELECT col0 / col1 - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL - cor0.col2 + + cor0.col2 * col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4539
SELECT ALL - col0 * - col0 - - col2 DIV col0 FROM tab2 AS cor0
----
52
6084
6241

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL - col0 * - col0 - - col2 / col0 FROM tab2 AS cor0
----
52
6084
6241

query I rowsort
SELECT ALL + - col1 * cor0.col0 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL - 42 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT + + col0 + + ( - col0 + - col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col1 * 94 + 24 FROM tab2 AS cor0
----
1622
2938
5570

query I rowsort
SELECT - col1 + 99 AS col2 FROM tab2 AS cor0
----
40
68
82

query I rowsort
SELECT + col1 * - 7 + 53 * + col1 FROM tab2 AS cor0
----
1426
2714
782

query I rowsort
SELECT + cor0.col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 + 68 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a0df0a28325b6a20d59f62505eaa0575

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 AS cor2, tab1
----
13122 values hashing to 05ccc0c5a4c14ada70a74d1dccc677ee

query I rowsort
SELECT + + ( - col0 ) + cor0.col1 AS col2 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT - 51 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT + + col1 * - col2 * ( - col1 + col2 ) FROM tab0 AS cor0
----
150414
67158
9312

query I rowsort
SELECT 81 + - col2 AS col2 FROM tab0 AS cor0
----
-1
48
80

query I rowsort
SELECT 85 + + col2 FROM tab2 AS cor0
----
111
112
123

query I rowsort
SELECT DISTINCT + col1 + + col1 + + 49 * + ( + col1 ) FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT - - ( + col2 ) - - col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - - 27 * cor0.col1 + col2 FROM tab0 AS cor0
----
2355
2539
2620

query I rowsort
SELECT col2 + col0 * 57 AS col0 FROM tab1 AS cor0
----
225
3705
4656

query I rowsort
SELECT + ( - cor0.col1 ) * + col1 - 0 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT + - col0 DIV + col0 + + ( col0 * cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-4559
SELECT + - col0 / + col0 + + ( col0 * cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1039
639
77

query I rowsort
SELECT ALL + col0 + + 88 * ( col1 + - ( ( + col0 ) ) ) FROM tab0 AS cor0
----
265
5480
5491

query I rowsort
SELECT ALL + - col1 * col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL + col0 + + col1 * ( + col1 ) FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT - - col1 * + col2 - 12 FROM tab1 AS cor0
----
1236
1392
558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4564
SELECT + cor0.col0 + CAST( NULL AS SIGNED ) * + 9 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT + cor0.col0 + CAST ( NULL AS INTEGER ) * + 9 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 + + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + - cor0.col2 * col2 * + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-17498
-19676
-54793

query I rowsort
SELECT + + cor0.col2 + - col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 + cor1.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4569
SELECT DISTINCT + col2 - col0 DIV col0 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT + col2 - col0 / col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT - - cor0.col1 + + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + col2 * + 31 * + col1 + cor0.col0 FROM tab1 AS cor0
----
17734
38768
43527

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT ALL col0 * CAST( + col0 + - col1 AS SIGNED ) FROM tab1 cor0
----
-69
3456
5360

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL col0 * CAST ( + col0 + - col1 AS INTEGER ) FROM tab1 cor0
----
-69
3456
5360

query I rowsort
SELECT DISTINCT - 78 * - tab1.col0 FROM tab1
----
234
4992
6240

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - 65 * cor0.col0 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT DISTINCT col2 + - col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - 13 * - 88 FROM tab1 AS cor0
----
1144
1144
1144

query I rowsort
SELECT ALL + + col0 * col0 + - 26 * col1 * - col2 - col2 * - col2 AS col1 FROM tab1 AS cor0
----
22165
39429
48064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4579
SELECT DISTINCT col0 + col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT col0 + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT DISTINCT + col0 DIV cor0.col0 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT + col0 / cor0.col0 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7397
8282
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col0 * col1 - + 23 * + cor0.col0 col2 FROM tab1 AS cor0
----
-144
-2048
-2800

onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT - + 59 + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-4583
SELECT - + 59 + col1 / col1 AS col0 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT DISTINCT + col0 * + 80 AS col2 FROM tab0
----
1920
2800
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT - 33 - - col1 DIV col0 FROM tab0
----
-30
-31
-32

skipif mysql # not compatible
query I rowsort label-4585
SELECT - 33 - - col1 / col0 FROM tab0
----
-30
-31
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4586
SELECT - col1 DIV + 3 - col2 AS col1 FROM tab0
----
-112
-33
-61

skipif mysql # not compatible
query I rowsort label-4586
SELECT - col1 / + 3 - col2 AS col1 FROM tab0
----
-112
-33
-61

query I rowsort
SELECT ( 38 + - col1 ) AS col0 FROM tab2
----
-21
21
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4588
SELECT - CAST( + 83 AS SIGNED ) DIV - col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-4588
SELECT - CAST ( + 83 AS INTEGER ) / - col0 FROM tab0
----
0
2
3

query I rowsort
SELECT ALL 61 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL - - 93 AS col2 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT cor0.col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col0 FROM tab2 cor0
----
-68
-68
-68

query I rowsort
SELECT col2 * 78 - + col1 AS col0 FROM tab1
----
4186
4436
7475

query I rowsort
SELECT tab0.col0 - + col2 * 47 AS col2 FROM tab0
----
-12
-1527
-3765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4595
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 13 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 13 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col0 + tab0.col1 * + col2 + col0 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col1 * col1 + col2 * tab2.col1 FROM tab2
----
1798
5015
935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4598
SELECT + col2 + - col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-4598
SELECT + col2 + - col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT + col1 + + col0 * + ( + col2 + col1 ) AS col2 FROM tab1 AS cor0
----
266
4298
8733

query I rowsort
SELECT 61 + + col1 + col0 AS col2 FROM tab1
----
135
154
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT - 77 + col1 DIV - CAST( col0 AS SIGNED ) + + col1 AS col2 FROM tab0
----
13
18
6

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 77 + col1 / - CAST ( col0 AS INTEGER ) + + col1 AS col2 FROM tab0
----
13
18
6

query I rowsort
SELECT - 96 * - col0 + + col2 * - col2 FROM tab0
----
1215
1820
3359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 * + col1 col0 FROM tab0
----
2805
7380
96

query I rowsort
SELECT ALL - col0 * col0 + 7 FROM tab2
----
-42
-6077
-6234

query I rowsort
SELECT DISTINCT - - ( + ( - col0 ) ) + cor0.col0 * - 37 FROM tab2 AS cor0
----
-266
-2964
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4606
SELECT col2 * CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT col2 * CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col1 * 51 * + ( col1 ) + 55 FROM tab2
----
14794
177586
49066

query I rowsort
SELECT ( col0 ) + col2 * 71 AS col1 FROM tab2 AS cor0
----
1924
1924
2777

query I rowsort
SELECT DISTINCT col2 + 36 AS col1 FROM tab2 AS cor0
----
62
63
74

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL ( col1 ) * col1 * - col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - - ( - col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT cor0.col0 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT 98 * col2 AS col1 FROM tab2 cor0
----
2548
2646
3724

skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col1 * - 86 + col0 + - 0 AS col1 FROM tab0 AS cor0
----
-7372
-7737
-8307

query I rowsort
SELECT DISTINCT - col1 + - 92 AS col1 FROM tab1 AS cor0
----
-102
-105
-118

query I rowsort
SELECT - col1 * - 78 FROM tab2 AS cor0
----
1326
2418
4602

query I rowsort
SELECT DISTINCT - + ( 53 ) * cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
-1300
-1424
-1935

onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT DISTINCT - 14 DIV col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT - 14 / col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 * + col1 * + col2 + + col1 AS col1 FROM tab0 AS cor0
----
244187
679215
9507

query I rowsort
SELECT DISTINCT - col2 - 84 FROM tab2 AS cor0
----
-110
-111
-122

query I rowsort
SELECT col2 + + 0 * col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4624
SELECT cor0.col0 * - CAST( + cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-4624
SELECT cor0.col0 * - CAST ( + cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT ALL cor0.col1 * cor0.col1 DIV cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif mysql # not compatible
query I rowsort label-4625
SELECT ALL cor0.col1 * cor0.col1 / cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col0 + + 55 * - col2 AS col1 FROM tab2 AS cor0
----
-1352
-1478
-2011

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - 28 * + col1 col2 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT + + col2 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - ( - col1 ) * - col0 + - 35 AS col0 FROM tab2 AS cor0
----
-1378
-252
-4637

query I rowsort
SELECT - col1 + col1 + ( col2 ) FROM tab2
----
26
27
38

query I rowsort
SELECT - col1 + 63 * tab1.col2 AS col0 FROM tab1
----
3376
3581
6035

onlyif mysql # use DIV operator for integer division
query I rowsort label-4632
SELECT col2 DIV + ( + col1 ) + - col2 FROM tab1
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-4632
SELECT col2 / + ( + col1 ) + - col2 FROM tab1
----
-52
-52
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( col0 ) col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - + cor0.col1 + - col2 * 91 + col2 FROM tab0 AS cor0
----
-187
-3056
-7471

query I rowsort
SELECT ALL - + 60 * + cor0.col0 FROM tab0 AS cor0
----
-1440
-2100
-5340

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4636
SELECT + col1 / col2 + CAST( NULL AS SIGNED ) * 86 + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT + col1 / col2 + CAST ( NULL AS INTEGER ) * 86 + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 30 * - cor0.col1 AS col0 FROM tab0 cor0
----
-2580
-2730
-2910

onlyif mysql # use DIV operator for integer division
query I rowsort label-4638
SELECT + + col0 + + cor0.col0 DIV - col0 + 69 FROM tab0 AS cor0
----
103
157
92

skipif mysql # not compatible
query I rowsort label-4638
SELECT + + col0 + + cor0.col0 / - col0 + 69 FROM tab0 AS cor0
----
103
157
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - ( + col0 ) AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - col0 + col2 * col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - + 51 * col0 AS col2 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT DISTINCT + + col0 * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4645
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 60 + - col0 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 60 + - col0 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - ( col0 ) + col0 + - tab0.col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + 11 * - 63 AS col1 FROM tab1
----
-693
-693
-693

query I rowsort
SELECT - ( 23 ) AS col2 FROM tab1
----
-23
-23
-23

query I rowsort
SELECT col1 + col2 * col0 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT + 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
97

query I rowsort
SELECT DISTINCT - + 58 * 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-5684

onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT - - cor0.col1 DIV - cor0.col0 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT - - cor0.col1 / - cor0.col0 FROM tab2 cor0
----
-4
0
0

query I rowsort
SELECT ALL ( col2 ) * - ( - col0 * - col2 ) FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT col1 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + - 92 - col1 FROM tab1 AS cor0
----
-102
-105
-118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * - 5 * - 64 + col0 * 38 col0 FROM tab1 AS cor0
----
-18048
-22560
-846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * col1 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - - col0 + 76 * col0 FROM tab0 cor0
----
1848
2695
6853

query I rowsort
SELECT + - col1 * + ( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 + 43 AS col2 FROM tab0
----
129
134
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT - 10 DIV - 81 col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4661
SELECT - 10 / - 81 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 69 + col2 AS col2 FROM tab0
----
102
151
70

query I rowsort
SELECT DISTINCT 30 * - cor0.col2 AS col1 FROM tab0 cor0
----
-2460
-30
-990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4664
SELECT ALL + + CAST( col1 AS SIGNED ) * + col1 + col1 FROM tab1 AS cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL + + CAST ( col1 AS INTEGER ) * + col1 + col1 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4665
SELECT ( - 64 ) * cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4665
SELECT ( - 64 ) * cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 - 63 FROM tab2 AS cor0
----
-101
-89
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4667
SELECT - col0 DIV 22 AS col2 FROM tab0
----
-1
-1
-4

skipif mysql # not compatible
query I rowsort label-4667
SELECT - col0 / 22 AS col2 FROM tab0
----
-1
-1
-4

query I rowsort
SELECT - col0 * + col1 + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT 96 - cor0.col1 AS col2 FROM tab1 AS cor0
----
70
83
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT + - col1 * + col1 * + ( - col0 ) - cor0.col2 DIV - 97 FROM tab2 AS cor0
----
22831
271518
6727

skipif mysql # not compatible
query I rowsort label-4670
SELECT + - col1 * + col1 * + ( - col0 ) - cor0.col2 / - 97 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - - 79 + - col2 FROM tab1 AS cor0
----
-17
22
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT - - col2 DIV col1 + - 31 DIV + col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4672
SELECT - - col2 / col1 + - 31 / + col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT 1 * + col0 - + col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) + + ( + col2 ) col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + + col2 * col0 + - 7 FROM tab1 cor0
----
155
3641
7673

query I rowsort
SELECT DISTINCT - 28 * cor0.col0 + ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
1457
2832
6976

query I rowsort
SELECT ALL + 22 * col2 * col0 + cor0.col0 FROM tab2 AS cor0
----
4165
44694
66123

query I rowsort
SELECT 5 * - col1 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT DISTINCT - + 56 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
-16184
-194936
-53816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 - - col1 * - ( col2 + col2 ) col0 FROM tab0 AS cor0
----
-14924
-194
-5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4681
SELECT + cor0.col1 + col1 DIV - col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-4681
SELECT + cor0.col1 + col1 / - col0 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT 23 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT - col1 + 77 FROM tab0 AS cor0
----
-14
-20
-9

query I rowsort
SELECT - col0 * + col1 * - 48 FROM tab1 AS cor0
----
30720
3744
49920

skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( 67 AS REAL ) + col0 AS col2 FROM tab2 cor0
----
1816
1820
2625

query I rowsort
SELECT - col1 + + col2 * 66 AS col0 FROM tab0 AS cor0
----
-31
2092
5321

query I rowsort
SELECT - cor0.col2 * col0 + + 37 AS col1 FROM tab0 AS cor0
----
-7261
-755
2

query I rowsort
SELECT col2 + 49 FROM tab2 cor0
----
75
76
87

query I rowsort
SELECT ALL cor0.col1 * ( col2 ) + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ( col1 ) + col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT - ( 63 ) AS col1 FROM tab1, tab2 AS cor0
----
-63

query I rowsort
SELECT DISTINCT col0 * - 75 AS col1 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT ALL + col2 - 36 * + col0 FROM tab0 cor0
----
-1259
-3122
-831

query I rowsort
SELECT - 14 * - ( + col2 ) FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT - + col1 + 31 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1430
-704
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * col1 * col2 col2 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT ALL 21 AS col2 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT ALL col2 * - 5 - - col2 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT - + col2 + 69 FROM tab2 AS cor0
----
31
42
43

query I rowsort
SELECT ALL - - 67 * 11 + + col2 AS col2 FROM tab0 AS cor0
----
738
770
819

query I rowsort
SELECT + - 68 * + 56 AS col2 FROM tab0 AS cor0
----
-3808
-3808
-3808

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 + 66 * + ( col2 ) FROM tab2 AS cor0
----
1683
1778
2529

query I rowsort
SELECT DISTINCT 98 + - col0 FROM tab0 AS cor0
----
63
74
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col0 FROM tab0
----
30
30
30

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 AS col1 FROM tab1 cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4708
SELECT - CAST( 74 + - cor0.col0 AS SIGNED ) * 66 FROM tab2, tab2 AS cor0
----
9 values hashing to 9f43c6f177592eb429ffd6f3216aaa2f

skipif mysql # not compatible
query I rowsort label-4708
SELECT - CAST ( 74 + - cor0.col0 AS INTEGER ) * 66 FROM tab2, tab2 AS cor0
----
9 values hashing to 9f43c6f177592eb429ffd6f3216aaa2f

query I rowsort
SELECT col0 + 4 * - 45 AS col0 FROM tab1 AS cor0
----
-100
-116
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + ( col1 ) col2 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT ALL + col1 * + 74 + 61 * col0 DIV 61 + - cor0.col2 DIV col0 AS col1 FROM tab2 AS cor0
----
1337
2298
4444

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + col1 * + 74 + 61 * col0 / 61 + - cor0.col2 / col0 AS col1 FROM tab2 AS cor0
----
1337
2298
4444

query I rowsort
SELECT - col0 + + ( col1 ) * col1 FROM tab2 cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT DISTINCT + col0 + col0 DIV col2 - tab1.col2 FROM tab1
----
-16
-51
8

skipif mysql # not compatible
query I rowsort label-4713
SELECT DISTINCT + col0 + col0 / col2 - tab1.col2 FROM tab1
----
-16
-51
8

query I rowsort
SELECT ALL + cor0.col0 + - ( - col2 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - + col1 * col0 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL tab1.col0 + + 59 FROM tab1
----
123
139
62

query I rowsort
SELECT ALL col1 + + col0 * + col1 * tab2.col2 FROM tab2
----
119711
51051
5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT ALL + + col0 + + 83 + col1 DIV + 7 AS col0 FROM tab2 AS cor0
----
164
169
94

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + + col0 + + 83 + col1 / + 7 AS col0 FROM tab2 AS cor0
----
164
169
94

query I rowsort
SELECT col0 + - col2 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT cor0.col0 * - cor0.col2 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 8e23e17c36b823f4c429aaf1de1c2457

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col0 FROM tab1
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4722
SELECT DISTINCT + col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT + col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 * + col0 + + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL col0 * + col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + cor0.col2 AND NULL
----
-13
-26

query I rowsort
SELECT - tab2.col0 FROM tab2 WHERE + col2 * tab2.col0 IN ( + col0 )
----

query I rowsort
SELECT ALL + col1 + tab2.col1 * col1 AS col2 FROM tab2
----
306
3540
992

query I rowsort
SELECT col0 * + col0 * - col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT col0 * col2 + + tab2.col2 * + col0 + + col1 AS col1 FROM tab2 WHERE NULL <= NULL AND col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - col0 + - col2 * col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - col2 * + col1 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT col2 * + col2 + col2 AS col0 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT col2 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - - col1 * - col2 * - col0 + col0 AS col0 FROM tab1 cor0
----
36544
4215
99920

query I rowsort
SELECT ALL - - col1 * col2 * col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT col0 * + col1 + - col0 AS col0 FROM tab1
----
576
75
960

query I rowsort
SELECT - tab2.col0 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT col2 + cor0.col1 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL col1 * col0 + + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT col1 * - col2 * - 89 AS col0 FROM tab2 AS cor0
----
136526
57494
74493

query I rowsort
SELECT DISTINCT ( col0 ) + 46 AS col0 FROM tab1
----
110
126
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-4744
SELECT col1 DIV + tab0.col1 + col2 + col0 * col1 FROM tab0
----
2098
3397
8182

skipif mysql # not compatible
query I rowsort label-4744
SELECT col1 / + tab0.col1 + col2 + col0 * col1 FROM tab0
----
2098
3397
8182

query I rowsort
SELECT + 38 + col0 - ( 64 ) * tab0.col1 FROM tab0
----
-5442
-5697
-6135

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT - col1 + col0 * 75 AS col1 FROM tab2 AS cor0
----
494
5791
5908

query I rowsort
SELECT + - 61 + col0 * col1 FROM tab1 cor0
----
17
579
979

query I rowsort
SELECT DISTINCT - + col0 + cor0.col0 * - 51 AS col2 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT DISTINCT col1 + + 2 * cor0.col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT ALL + cor0.col1 * - ( - col1 ) FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - col2 * ( - col2 * col0 ) col0 FROM tab0 AS cor0
----
26160
598525
70

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) IN ( - col2 - + tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 + + col1 + tab0.col2 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT col1 + - tab0.col0 * + col1 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 * col1 + - col1 + col2 AS col2 FROM tab0
----
2011
3299
8090

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE ( NULL ) > col1
----

query I rowsort
SELECT ALL - col0 * tab1.col0 + + col2 AS col1 FROM tab1
----
-4039
-6304
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 ) BETWEEN NULL AND ( - col1 + - col0 * col0 + col2 * - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( col0 ) NOT IN ( col0 )
----
24
35
89

query I rowsort
SELECT DISTINCT col1 + - col0 * + col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT col2 * col1 + col2 * col1 AS col2 FROM tab1
----
1140
2496
2808

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN NULL AND + col1 - col2
----
89
91
82

query I rowsort
SELECT ALL + col1 + col2 - col0 FROM tab1
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT col1 DIV + col0 + + col0 AS col1 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-4765
SELECT col1 / + col0 + + col0 AS col1 FROM tab1
----
11
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4766
SELECT tab0.col2 + + tab0.col1 DIV col0 + col0 AS col2 FROM tab0
----
172
38
60

skipif mysql # not compatible
query I rowsort label-4766
SELECT tab0.col2 + + tab0.col1 / col0 + col0 AS col2 FROM tab0
----
172
38
60

query I rowsort
SELECT + col2 * 29 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT + - col0 + 47 FROM tab1 AS cor0
----
-17
-33
44

query I rowsort
SELECT ALL - + col2 * 10 AS col0 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT col0 * 46 AS col0 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT ALL cor0.col2 - col1 AS col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL col2 + ( col1 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col0 + 24 FROM tab0 AS cor0
----
-11
-65
0

query I rowsort
SELECT DISTINCT + col1 + + col2 * 23 * + col0 FROM tab2 AS cor0
----
4378
46703
69063

onlyif mysql # use DIV operator for integer division
query I rowsort label-4775
SELECT DISTINCT + cor0.col0 DIV CAST( col1 * col0 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT + cor0.col0 / CAST ( col1 * col0 AS INTEGER ) FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT ALL 89 DIV + col0 FROM tab1
----
1
1
29

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL 89 / + col0 FROM tab1
----
1
1
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT DISTINCT col2 DIV - col0 AS col2 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT col2 / - col0 AS col2 FROM tab0
----
-1
0

query I rowsort
SELECT + col0 + 53 * - col1 AS col2 FROM tab1
----
-1375
-466
-609

query I rowsort
SELECT + - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + + col0 * 85 FROM tab1 cor0
----
255
5440
6800

onlyif mysql # use DIV operator for integer division
query I rowsort label-4781
SELECT + - cor0.col2 DIV - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4781
SELECT + - cor0.col2 / - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT - col2 * + 33 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT + 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4784
SELECT - CAST( - col0 AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4784
SELECT - CAST ( - col0 AS INTEGER ) FROM tab1
----
3
64
80

query I rowsort
SELECT ALL 40 * col0 FROM tab0 AS cor0
----
1400
3560
960

query I rowsort
SELECT cor0.col2 * - col2 + - col2 + - ( - col1 + - col1 ) AS col2 FROM tab0 cor0
----
-6624
-950
192

query I rowsort
SELECT ALL ( - tab0.col0 * col2 ) + + ( + col0 ) AS col1 FROM tab0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 + + col1 * + col0 col1 FROM tab0
----
2146
3477
8181

query I rowsort
SELECT col0 * col2 + - col2 * cor0.col0 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + ( col2 * col0 ) + + col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL + col1 + col0 * col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL - + 65 * col0 + + 3 FROM tab0 AS cor0
----
-1557
-2272
-5782

query I rowsort
SELECT ALL 45 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
2823
3504
81

query I rowsort
SELECT DISTINCT + col1 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL - col1 + + col1 * - col1 AS col1 FROM tab1 cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col0 FROM tab0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + - col0 col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT DISTINCT + 36 + col1 FROM tab2
----
53
67
95

query I rowsort
SELECT ALL col0 * col2 + ( col0 ) * col1 FROM tab1
----
240
4288
8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT ALL 87 + - cor0.col1 DIV 86 col1 FROM tab0 cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL 87 + - cor0.col1 / 86 col1 FROM tab0 cor0
----
86
86
86

query I rowsort
SELECT + - cor0.col1 * - col0 * + col2 + - 39 FROM tab0 AS cor0
----
3356
664079
68073

onlyif mysql # use DIV operator for integer division
query I rowsort label-4802
SELECT DISTINCT + col2 + + col0 DIV + 83 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT + col2 + + col0 / + 83 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + col2 + - col0 * + col1 * - cor0.col1 FROM tab0 AS cor0
----
177537
329316
737091

onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT ALL + + col1 DIV cor0.col1 + col1 DIV 3 FROM tab0 AS cor0
----
29
31
33

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL + + col1 / cor0.col1 + col1 / 3 FROM tab0 AS cor0
----
29
31
33

query I rowsort
SELECT ALL col0 * col2 * ( col2 * col0 ) AS col0 FROM tab2 AS cor0
----
35721
4112784
9012004

query I rowsort
SELECT DISTINCT + - col0 * col0 + + ( col2 ) AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL + col0 * 26 + col2 AS col0 FROM tab1 cor0
----
132
1721
2176

query I rowsort
SELECT col2 * 89 * + cor0.col0 + col2 FROM tab1 AS cor0
----
14472
324729
683616

query I rowsort
SELECT DISTINCT col1 * 78 FROM tab1
----
1014
2028
780

query I rowsort
SELECT DISTINCT + 59 FROM tab1, tab0 AS cor0
----
59

query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col2 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col0 + - 6 FROM tab0 AS cor0
----
18
29
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT DISTINCT - col0 + + cor0.col1 DIV + col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-4814
SELECT DISTINCT - col0 + + cor0.col1 / + col0 FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT + - cor0.col1 * ( col0 ) + - col2 * 5 FROM tab0 AS cor0
----
-2229
-3400
-8509

query I rowsort
SELECT ALL - - 34 + 97 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
155
166
220

query I rowsort
SELECT - col0 - - col1 * col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT col1 + - ( col0 ) * - 50 AS col1 FROM tab0
----
1286
1847
4541

query I rowsort
SELECT col0 + ( + tab2.col1 ) * + col1 + col1 FROM tab2
----
3618
385
999

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab2 AS cor0
----
42

query I rowsort
SELECT - 53 * - 99 AS col0 FROM tab2 cor0
----
5247
5247
5247

query I rowsort
SELECT DISTINCT col2 + + col1 * - col1 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4823
SELECT ALL - col2 + + 97 DIV col1 AS col0 FROM tab2 AS cor0
----
-24
-25
-33

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL - col2 + + 97 / col1 AS col0 FROM tab2 AS cor0
----
-24
-25
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4824
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + col1 + - col1 col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - CAST ( NULL AS REAL ) * + col1 + - col1 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + cor0.col1 * col2 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT ALL - 15 + + col2 * - col0 FROM tab1 AS cor0
----
-177
-3663
-7695

onlyif mysql # use DIV operator for integer division
query I rowsort label-4827
SELECT ALL + - col0 DIV - cor0.col1 + col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + - col0 / - cor0.col1 + col0 * + col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 + + col1 AS col1 FROM tab1 cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + - col0 col1 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col1 + - 10 col1 FROM tab1 cor0
----
159
666
90

query I rowsort
SELECT col1 + col0 * 31 AS col0 FROM tab0 cor0
----
1182
2850
830

query I rowsort
SELECT ALL col0 + + col2 * + 17 + col0 AS col0 FROM tab0 AS cor0
----
1572
609
87

query I rowsort
SELECT + 2 + col2 AS col2 FROM tab2 AS cor0
----
28
29
40

query I rowsort
SELECT + col0 * 61 AS col2 FROM tab0
----
1464
2135
5429

query I rowsort
SELECT 29 * 91 AS col1 FROM tab2
----
2639
2639
2639

query I rowsort
SELECT ALL - col1 - - 94 FROM tab0
----
-3
3
8

query I rowsort
SELECT ALL tab1.col0 + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to af3a539c18b07c0d2d3147e1b73e81ac

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4838
SELECT + col1 + - ( - col0 ) + - CAST( col1 + - col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-4838
SELECT + col1 + - ( - col0 ) + - CAST ( col1 + - col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
137
38
96

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 cor2, tab1 AS cor3
----
3645 values hashing to b8435223668db186a5012e4112253f28

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2, tab2 AS cor3
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4841
SELECT col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + tab0.col1 + col1 * - col0 FROM tab0
----
-1954
-3263
-7919

query I rowsort
SELECT - ( + ( + tab0.col0 ) ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col1 * - col0 * col0 AS col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT - + col2 * + col0 * + col1 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT col1 * - 31 * + col2 FROM tab1
----
-17670
-38688
-43524

query I rowsort
SELECT - 30 * 51 FROM tab1
----
-1530
-1530
-1530

query I rowsort
SELECT DISTINCT - col0 * - col2 * - col1 + col2 AS col2 FROM tab2
----
-119626
-50996
-5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT col2 DIV col2 + + col2 AS col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4849
SELECT col2 / col2 + + col2 AS col0 FROM tab0
----
2
34
83

query I rowsort
SELECT DISTINCT col1 * col0 * - 89 - col1 FROM tab1
----
-56970
-6968
-92573

query I rowsort
SELECT DISTINCT 85 * + col2 - ( col0 ) FROM tab0 AS cor0
----
2781
50
6881

onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT - 51 * cor0.col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-4852
SELECT - 51 * cor0.col0 / - col0 AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT + 56 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4854
SELECT ALL + - col2 + cor0.col2 DIV 85 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + - col2 + cor0.col2 / 85 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + - col2 * - ( col0 ) + + cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT col0 + + ( + col1 ) + col1 FROM tab2 cor0
----
113
196
69

query I rowsort
SELECT - - cor0.col1 - ( - col0 ) AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + + cor0.col1 + col1 * - 65 FROM tab1 AS cor0
----
-1664
-640
-832

query I rowsort
SELECT - - cor0.col1 * - col1 - 40 * - col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-9369
260679
36164

onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT + col1 + + 25 DIV col2 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4860
SELECT + col1 + + 25 / col2 AS col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT + + col0 - + col1 DIV + 64 AS col2 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4861
SELECT + + col0 - + col1 / + 64 AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL + col2 + col1 * - col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL + col2 + - 32 * col2 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT ALL 39 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT cor0.col1 + col0 * - col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col2 * 87 FROM tab2 cor0
----
2262
2349
3306

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT + - 80 - + col0 DIV col1 AS col1 FROM tab0 cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-4867
SELECT + - 80 - + col0 / col1 AS col1 FROM tab0 cor0
----
-80
-80
-80

query I rowsort
SELECT + ( - cor0.col1 ) * col1 * col2 + col0 AS col1 FROM tab2 cor0
----
-10903
-25940
-90428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * col2 + col1 col1 FROM tab0 AS cor0
----
-2389
-6059
22

query I rowsort
SELECT + + ( - col1 ) * - col0 + col2 AS col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT - cor0.col2 * - ( - col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4872
SELECT + + ( + col2 ) + col2 * - CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT + + ( + col2 ) + col2 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL - 93 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT ALL - col1 + + 7 FROM tab0 AS cor0
----
-79
-84
-90

query I rowsort
SELECT DISTINCT col2 + 19 + col2 AS col1 FROM tab0 AS cor0
----
183
21
85

query I rowsort
SELECT ALL + col2 * ( col1 ) + + 34 FROM tab0 cor0
----
131
2872
7496

query I rowsort
SELECT - col0 * + 20 * ( col1 ) AS col0 FROM tab0
----
-161980
-41280
-67900

query I rowsort
SELECT - 23 * col0 * - col1 FROM tab2 AS cor0
----
105846
30889
4991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * - col0 col2 FROM tab2 AS cor0
----
147
1638
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-4881
SELECT ALL - col2 + - 30 DIV + col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-39

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - col2 + - 30 / + col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-39

query I rowsort
SELECT - - col0 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 * col0 col1 FROM tab0
----
2256
3290
8366

query I rowsort
SELECT ALL + col1 + + ( col1 ) FROM tab2
----
118
34
62

query I rowsort
SELECT ALL + 45 + 28 AS col2 FROM tab0
----
73
73
73

query I rowsort
SELECT ALL col0 + - col2 + + col1 AS col1 FROM tab0
----
131
77
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT DISTINCT cor0.col2 * - col0 - cor0.col2 DIV + cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-793

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT cor0.col2 * - col0 - cor0.col2 / + cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 97 + col2 col2 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT ALL col1 - 55 FROM tab2 AS cor0
----
-24
-38
4

query I rowsort
SELECT - col1 * col0 + - col1 * col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT - cor0.col0 * - 57 + col2 AS col2 FROM tab1 AS cor0
----
225
3705
4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-4892
SELECT ALL - - col0 + + col1 DIV + col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - - col0 + + col1 / + col2 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT DISTINCT + col1 + 24 AS col1 FROM tab1 AS cor0
----
34
37
50

query I rowsort
SELECT ALL - 56 AS col0 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + - 76 + + col1 * ( - col1 ) FROM tab1 AS cor0
----
-176
-245
-752

query I rowsort
SELECT ALL - - col2 * - col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4897
SELECT ALL - col0 / col1 + CAST( NULL AS DECIMAL ) 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-4897
SELECT ALL - col0 / col1 + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 + + col2 * - col0 AS col0 FROM tab0 cor0
----
-34
-7216
-759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4899
SELECT DISTINCT - col0 * - col2 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT - col0 * - col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 76 col0 FROM tab1 cor0
----
-76
-76
-76

query I rowsort
SELECT ALL - ( col1 ) * + 1 * col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + + 59 FROM tab0 cor0
----
59
59
59

query I rowsort
SELECT ALL + cor0.col0 * col2 + - ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-448
1280
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT - + 53 * + cor0.col1 DIV CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-4904
SELECT - + 53 * + cor0.col1 / CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT 69 + + col1 FROM tab0 AS cor0
----
155
160
166

query I rowsort
SELECT ALL + - col2 + col2 * col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL ( col2 ) * col0 + col2 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL - col0 * + col1 + 4 AS col1 FROM tab1 AS cor0
----
-1036
-636
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-4910
SELECT - col2 * col1 DIV - 9 + + col2 FROM tab0 AS cor0
----
11
348
911

skipif mysql # not compatible
query I rowsort label-4910
SELECT - col2 * col1 / - 9 + + col2 FROM tab0 AS cor0
----
11
348
911

query I rowsort
SELECT ALL + + col1 - + cor0.col2 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 19 col2 FROM tab0 AS cor0
----
108
43
54

query I rowsort
SELECT col0 - col1 * col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT ALL - col0 + + 49 DIV + cor0.col1 + col0 * ( + 47 ) FROM tab1 AS cor0
----
139
2948
3683

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL - col0 + + 49 / + cor0.col1 + col0 * ( + 47 ) FROM tab1 AS cor0
----
139
2948
3683

onlyif mysql # use DIV operator for integer division
query I rowsort label-4915
SELECT DISTINCT - + col2 * col2 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-104
-18
-8

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT - + col2 * col2 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-104
-18
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4916
SELECT + col0 * col0 + col2 * - col0 * CAST( - col1 AS SIGNED ) - col0 FROM tab1 AS cor0
----
106160
40512
4218

skipif mysql # not compatible
query I rowsort label-4916
SELECT + col0 * col0 + col2 * - col0 * CAST ( - col1 AS INTEGER ) - col0 FROM tab1 AS cor0
----
106160
40512
4218

query I rowsort
SELECT - col1 * ( col2 ) + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - col0 * col2 * + col0 FROM tab1
----
-233472
-486
-614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4919
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT + col1 - + 8 DIV + col0 AS col2 FROM tab2 cor0
----
17
30
59

skipif mysql # not compatible
query I rowsort label-4920
SELECT + col1 - + 8 / + col0 AS col2 FROM tab2 cor0
----
17
30
59

query I rowsort
SELECT - col0 + 63 AS col2 FROM tab1 cor0
----
-1
-17
60

query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 * + col2 - - col1 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT ALL cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 + + cor0.col2 * + 37 - + col2 FROM tab1 AS cor0
----
1918
2042
3443

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 * cor0.col1 col2 FROM tab0 cor0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-4926
SELECT ALL cor0.col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL cor0.col2 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( + col0 ) + + col1 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL + col0 + ( col2 ) AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + col1 * 80 + - col0 AS col2 FROM tab1
----
2077
736
960

query I rowsort
SELECT col2 + - 2 AS col0 FROM tab2 cor0
----
24
25
36

query I rowsort
SELECT - col2 * col0 * + col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - col0 + tab0.col2 * 87 AS col2 FROM tab0
----
2847
52
7045

onlyif mysql # use DIV operator for integer division
query I rowsort label-4934
SELECT - + 40 DIV 85 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4934
SELECT - + 40 / 85 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 43 + + cor0.col0 FROM tab0 AS cor0
----
-19
-8
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( + col0 ) col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col1 + 17 FROM tab1
----
27
30
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-4938
SELECT DISTINCT - col0 DIV 44 + - col0 * + col0 + + col2 FROM tab0
----
-1224
-543
-7841

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT - col0 / 44 + - col0 * + col0 + + col2 FROM tab0
----
-1224
-543
-7841

query I rowsort
SELECT ALL col2 * - col1 - - col1 * + col1 FROM tab0
----
4558
819
9312

query I rowsort
SELECT tab1.col1 * - 75 AS col2 FROM tab1
----
-1950
-750
-975

onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT col0 + + ( + col2 ) DIV - col0 + - 38 * col0 * + col1 FROM tab2
----
-174798
-50955
-8242

skipif mysql # not compatible
query I rowsort label-4941
SELECT col0 + + ( + col2 ) / - col0 + - 38 * col0 * + col1 FROM tab2
----
-174798
-50955
-8242

query I rowsort
SELECT ALL + col1 * + 31 AS col2 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT DISTINCT + col0 + - 17 * + col1 AS col2 FROM tab0 AS cor0
----
-1438
-1458
-1614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col2 + + col2 col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL + ( col1 ) + + col1 * + 60 AS col2 FROM tab2 cor0
----
1037
1891
3599

query I rowsort
SELECT 13 + 40 AS col1 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT + - 14 + col1 AS col1 FROM tab2 AS cor0
----
17
3
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 * - col1 + - 3 ) col0 FROM tab1
----
-1251
-1407
-573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col2 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT 47 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
136
71
82

query I rowsort
SELECT DISTINCT col2 + col1 + 36 AS col0 FROM tab1 AS cor0
----
103
116
145

query I rowsort
SELECT DISTINCT 77 FROM tab1, tab1 AS cor0, tab2 cor1
----
77

query I rowsort
SELECT DISTINCT col2 * + col1 + - 44 + - col2 AS col0 FROM tab0
----
2761
52
7336

query I rowsort
SELECT DISTINCT - col1 * + 43 AS col2 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT col2 * 44 AS col0 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT col2 * col2 + 72 AS col0 FROM tab0 AS cor0
----
1161
6796
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - + col1 * + 15 col2 FROM tab1 cor0
----
-381
3946
6205

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4958
SELECT + col0 * + col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT + col0 * + col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 45 * + cor0.col1 FROM tab2 cor0
----
-1395
-2655
-765

query I rowsort
SELECT - + 34 AS col1 FROM tab1 AS cor0
----
-34
-34
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 + - col1 col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + col0 * col1 - cor0.col0 * - 30 AS col2 FROM tab0 AS cor0
----
10769
2784
4445

query I rowsort
SELECT DISTINCT - col2 * col1 + 55 FROM tab0 AS cor0
----
-2783
-42
-7407

query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * cor0.col2 col2 FROM tab2 AS cor0
----
1064
728
756

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab1 AS cor2 WHERE NOT tab2.col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + 1 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 + + col1 ) col0 FROM tab0
----
119
173
98

query I rowsort
SELECT - col2 + col0 * col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - col1 * ( - tab0.col0 ) * tab0.col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT 6 * - col2 FROM tab2 AS cor0
----
-156
-162
-228

query I rowsort
SELECT DISTINCT + ( + col0 ) * + col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT + ( - col0 * col0 ) FROM tab1
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4974
SELECT ALL + CAST( - col2 AS SIGNED ) * col1 * - 27 AS col1 FROM tab2
----
17442
22599
41418

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + CAST ( - col2 AS INTEGER ) * col1 * - 27 AS col1 FROM tab2
----
17442
22599
41418

query I rowsort
SELECT - 0 * col0 - ( - col0 ) * col2 * + 75 AS col0 FROM tab2
----
14175
152100
225150

query I rowsort
SELECT DISTINCT - tab0.col2 * col1 * + 70 AS col0 FROM tab0
----
-198660
-522340
-6790

query I rowsort
SELECT - 42 * col1 FROM tab2 AS cor0
----
-1302
-2478
-714

query I rowsort
SELECT 64 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT - - col1 + col2 DIV 85 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4979
SELECT - - col1 + col2 / 85 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col0 * - 61 FROM tab0
----
-1464
-2135
-5429

query I rowsort
SELECT + tab1.col1 * 71 FROM tab1
----
1846
710
923

query I rowsort
SELECT col2 * 56 * + col2 FROM tab1
----
163296
181944
516096

query I rowsort
SELECT + col2 * 36 AS col1 FROM tab2
----
1368
936
972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4984
SELECT col0 * CAST( NULL AS SIGNED ) * 21 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT col0 * CAST ( NULL AS INTEGER ) * 21 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 79 ) col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT + col2 * + 18 + tab0.col2 AS col0 FROM tab0
----
1558
19
627

query I rowsort
SELECT col2 + - 73 FROM tab2 AS cor0
----
-35
-46
-47

query I rowsort
SELECT - - col2 * - col0 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT + col1 + 64 * col0 AS col2 FROM tab2 AS cor0
----
479
5051
5073

query I rowsort
SELECT ALL 56 * - col0 + + col0 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT 66 * ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
1716
1782
2508

onlyif mysql # use DIV operator for integer division
query I rowsort label-4992
SELECT + + col1 DIV col1 + cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4992
SELECT + + col1 / col1 + cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4993
SELECT + CAST( - 55 AS SIGNED ) * - cor0.col2 * col2 FROM tab1 AS cor0
----
160380
178695
506880

skipif mysql # not compatible
query I rowsort label-4993
SELECT + CAST ( - 55 AS INTEGER ) * - cor0.col2 * col2 FROM tab1 AS cor0
----
160380
178695
506880

query I rowsort
SELECT ALL + col1 + + col1 + col1 AS col2 FROM tab1
----
30
39
78

query I rowsort
SELECT DISTINCT + tab2.col2 + col0 - - 5 AS col1 FROM tab2
----
109
122
39

query I rowsort
SELECT DISTINCT + ( - tab2.col1 ) + + 11 - col0 FROM tab2
----
-126
-27
-85

query I rowsort
SELECT ALL - tab2.col0 - col1 * ( col1 ) * col2 AS col2 FROM tab2
----
-11061
-25954
-90584

query I rowsort
SELECT + col1 * col2 + col2 * col1 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT col2 * col0 * 95 AS col0 FROM tab2
----
17955
192660
285190

onlyif mysql # use DIV operator for integer division
query I rowsort label-5000
SELECT col2 DIV ( cor0.col2 ) + + col2 + cor0.col1 * + col1 FROM tab1 AS cor0
----
158
266
731

skipif mysql # not compatible
query I rowsort label-5000
SELECT col2 / ( cor0.col2 ) + + col2 + cor0.col1 * + col1 FROM tab1 AS cor0
----
158
266
731

query I rowsort
SELECT DISTINCT - col2 + col0 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
107
153
625

query I rowsort
SELECT - - cor0.col2 + 0 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + col1 + col0 * + 26 AS col1 FROM tab2 AS cor0
----
2071
2087
213

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 * + ( - cor0.col2 ) FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 * col0 + - 24 * col1 * col1 AS col2 FROM tab1 AS cor0
----
-16215
1696
2344

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT ALL + + cor0.col2 + + col1 DIV col1 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + + cor0.col2 + + col1 / col1 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT + col1 * ( col2 ) + + col1 + + col1 FROM tab1 AS cor0
----
1274
1456
590

query I rowsort
SELECT ALL - col2 * col2 + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT + - col1 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - - col1 + - ( - col0 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + ( ( col0 ) ) AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5014
SELECT ALL - cor0.col2 DIV col1 - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL - cor0.col2 / col1 - col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT DISTINCT - col1 + + ( col2 ) DIV + 33 FROM tab2 AS cor0
----
-16
-31
-59

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - col1 + + ( col2 ) / + 33 FROM tab2 AS cor0
----
-16
-31
-59

query I rowsort
SELECT - 75 * - col0 AS col1 FROM tab2 AS cor0
----
525
5850
5925

query I rowsort
SELECT ALL - - cor0.col0 - + cor0.col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5018
SELECT DISTINCT + CAST( 3 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + CAST ( 3 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + ( col1 ) + ( 53 ) * - col0 * col1 FROM tab0 cor0
----
-109478
-180032
-429338

onlyif mysql # use DIV operator for integer division
query I rowsort label-5020
SELECT ALL - col1 + - col1 DIV + 62 col2 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL - col1 + - col1 / + 62 col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + 14 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff

query I rowsort
SELECT col1 * - cor0.col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + + 53 FROM tab2 cor0
----
53
53
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT ALL - col2 DIV + col2 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL - col2 / + col2 AS col1 FROM tab0 cor0
----
-1
-1
-1

query I rowsort
SELECT - 59 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5026
SELECT CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - ( col0 ) * col2 + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT DISTINCT + + ( col1 ) - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + + col2 + col2 * + col0 + + col2 FROM tab0 AS cor0
----
37
7462
858

query I rowsort
SELECT 66 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT DISTINCT - 12 + + col1 * cor0.col1 FROM tab2 AS cor0
----
277
3469
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT ALL 21 DIV col1 + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
647
837

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL 21 / col1 + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
647
837

query I rowsort
SELECT ALL ( col0 ) + - col2 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL - + ( col1 ) * col2 - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - 41 * + col1 FROM tab0
----
-3526
-3731
-3977

query I rowsort
SELECT ALL - col0 * + col2 + + 26 AS col0 FROM tab1
----
-136
-3622
-7654

query I rowsort
SELECT DISTINCT + + 89 * cor0.col0 + - col2 FROM tab0 AS cor0
----
2103
3114
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * col2 * cor0.col0 col0 FROM tab2 cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 88 col1 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT + 27 FROM tab0, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT cor2.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5044
SELECT CAST( NULL AS SIGNED ) col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5044
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - ( + tab2.col1 ) col0 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col0 FROM tab2
----
9

query I rowsort
SELECT ALL ( + ( + col0 ) ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL 6 * + col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT ALL + 83 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT + 57 + col0 * + col1 FROM tab1 AS cor0
----
1097
135
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT DISTINCT tab1.col0 DIV tab1.col2 + tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT tab1.col0 / tab1.col2 + tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
3
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 * - col0 col2 FROM tab0
----
1944
2835
7209

query I rowsort
SELECT ALL + 18 + - ( - cor0.col1 ) * + col1 FROM tab2 cor0
----
307
3499
979

query I rowsort
SELECT ALL - col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT cor0.col1 * col1 + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1178
1632
8083

onlyif mysql # use DIV operator for integer division
query I rowsort label-5056
SELECT + ( + cor0.col0 ) DIV col2 + + col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-5056
SELECT + ( + cor0.col0 ) / col2 + + col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT - cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 * - cor0.col1 col2 FROM tab1 AS cor0
----
1664
640
832

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + 27 AS col0 FROM tab0, tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT cor0.col0 * - ( - 82 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
1968
2870
7298

query I rowsort
SELECT 7 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT ALL + cor0.col0 + + cor0.col0 DIV - 48 AS col2 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL + cor0.col0 + + cor0.col0 / - 48 AS col2 FROM tab0 AS cor0
----
24
35
88

query I rowsort
SELECT + cor0.col2 * ( ( - col0 ) ) AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 8 + col1 AS col0 FROM tab0
----
105
94
99

query I rowsort
SELECT ALL 0 * - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - 82 AS col0 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT - + col1 * + ( - cor0.col2 + + col0 ) FROM tab0 cor0
----
-3298
-637
774

query I rowsort
SELECT + + col0 + + 43 AS col2 FROM tab0 AS cor0
----
132
67
78

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab2, tab1 AS cor0
----
24

query I rowsort
SELECT ( + cor0.col2 ) * col1 * 97 AS col1 FROM tab0 AS cor0
----
275286
723814
9409

query I rowsort
SELECT DISTINCT - - 95 AS col0 FROM tab0 AS cor0
----
95

query I rowsort
SELECT - + ( + cor0.col0 ) + + 66 AS col1 FROM tab2 AS cor0
----
-12
-13
59

query I rowsort
SELECT + + col0 + col2 * 29 AS col1 FROM tab2 AS cor0
----
1181
790
832

query I rowsort
SELECT + + cor0.col1 + col1 * + col0 FROM tab2 cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5076
SELECT ALL + CAST( NULL AS SIGNED ) + ( col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL + CAST ( NULL AS INTEGER ) + ( col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col0 - - ( + cor0.col2 * col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5078
SELECT ALL col0 DIV - tab2.col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL col0 / - tab2.col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT + 91 + col2 AS col2 FROM tab1 cor0
----
145
148
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col0 + col1 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT cor0.col2 - - 46 FROM tab2, tab1 AS cor0
----
100
103
142

query I rowsort
SELECT - - col2 - + col2 * 82 * - 79 AS col2 FROM tab0 AS cor0
----
213807
531278
6479

query I rowsort
SELECT DISTINCT 30 * + col1 AS col0 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT DISTINCT - 1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-1

query I rowsort
SELECT tab1.col1 * col0 * col2 + + col2 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT DISTINCT + col0 * tab2.col0 + - 80 * + col0 FROM tab2
----
-156
-511
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 * - col2 col2 FROM tab0
----
231
574
7

query I rowsort
SELECT + ( col2 ) + col0 * + tab0.col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT col0 + - tab0.col2 * tab0.col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL + 71 * + col2 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT - 24 + col1 AS col1 FROM tab0 cor0
----
62
67
73

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
7
78
79

query I rowsort
SELECT - 63 + + col2 FROM tab1
----
-6
-9
33

query I rowsort
SELECT 53 + tab0.col1 + ( col2 * col0 ) FROM tab0
----
185
7442
931

query I rowsort
SELECT DISTINCT 41 * cor0.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT - col1 + 12 FROM tab0
----
-74
-79
-85

query I rowsort
SELECT DISTINCT col0 + 40 + - col2 AS col2 FROM tab1
----
-11
24
47

query I rowsort
SELECT - col2 + 65 FROM tab0
----
-17
32
64

query I rowsort
SELECT ALL - col1 + col2 * cor0.col0 * - 60 FROM tab1 AS cor0
----
-218890
-460813
-9746

query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT - ( - ( col0 ) ) * col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + + ( col2 ) + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5103
SELECT ALL + - CAST( 4 AS SIGNED ) + col2 * ( col2 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
26132
31
598432

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + - CAST ( 4 AS INTEGER ) + col2 * ( col2 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
26132
31
598432

query I rowsort
SELECT DISTINCT col1 * ( + tab2.col1 * - col1 ) FROM tab2
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-5105
SELECT ALL + col0 DIV + 6 FROM tab0 AS cor0
----
14
4
5

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL + col0 / + 6 FROM tab0 AS cor0
----
14
4
5

query I rowsort
SELECT DISTINCT col1 * - 41 AS col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT - - 91 * 12 AS col0 FROM tab2 AS cor0
----
1092
1092
1092

query I rowsort
SELECT DISTINCT + col2 * 75 * + col0 FROM tab2 cor0
----
14175
152100
225150

onlyif mysql # use DIV operator for integer division
query I rowsort label-5109
SELECT - 1 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5109
SELECT - 1 / + col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - 92 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7488
-8373
-9501

query I rowsort
SELECT + ( + cor0.col1 ) FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT DISTINCT + ( col1 ) DIV col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + ( col1 ) / col0 FROM tab2 AS cor0
----
0
4

query I rowsort
SELECT - cor0.col1 * 31 AS col0 FROM tab0 AS cor0
----
-2666
-2821
-3007

query I rowsort
SELECT ALL col2 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5116
SELECT ALL + col2 DIV + ( col0 ) FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + col2 / + ( col0 ) FROM tab2
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT ( + col0 ) DIV col2 + ( - col0 ) AS col1 FROM tab1
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-5117
SELECT ( + col0 ) / col2 + ( - col0 ) AS col1 FROM tab1
----
-3
-63
-80

query I rowsort
SELECT + 50 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + col2 * col2 + - col0 AS col0 FROM tab0 cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 * 32 AS col1 FROM tab2 AS cor0
----
-1196
-1786
675

query I rowsort
SELECT DISTINCT col0 * + col2 + - cor0.col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - 94 FROM tab0 cor0
----
-94
-94
-94

query I rowsort
SELECT + ( cor0.col2 * 42 + 64 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1e4fe054210de4856f2904f6afa5554b

query I rowsort
SELECT ALL + - col0 + 70 * + col0 FROM tab2 AS cor0
----
483
5382
5451

query I rowsort
SELECT + - 59 * col1 FROM tab1 cor0
----
-1534
-590
-767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 * col0 col0 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT DISTINCT - + 97 AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - - 32 * col0 + + 70 + col0 FROM tab1 AS cor0
----
169
2182
2710

query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + col1 * - ( col1 ) + + col0 * col1 * - col0 FROM tab2 AS cor0
----
-105808
-355475
-558

query I rowsort
SELECT ALL col1 + - ( + 97 ) + - col1 FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5132
SELECT ALL - + col2 * ( + 68 ) + - col1 DIV + col1 FROM tab1 AS cor0
----
-3673
-3877
-6529

skipif mysql # not compatible
query I rowsort label-5132
SELECT ALL - + col2 * ( + 68 ) + - col1 / + col1 FROM tab1 AS cor0
----
-3673
-3877
-6529

query I rowsort
SELECT DISTINCT + col1 - 63 FROM tab1 AS cor0
----
-37
-50
-53

query I rowsort
SELECT col2 * + ( - col0 ) + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT col0 + col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * + cor0.col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * ( col0 ) FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + col0 * + 32 + ( col0 ) - - cor0.col2 * 93 FROM tab1 AS cor0
----
11568
5121
7413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + 4 * - ( cor0.col1 ) col1 FROM tab1 AS cor0
----
-30
-39
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5140
SELECT DISTINCT - + col0 * col2 + - cor0.col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-189
-2029
-3006

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT - + col0 * col2 + - cor0.col0 / col1 AS col1 FROM tab2 AS cor0
----
-189
-2029
-3006

query I rowsort
SELECT cor0.col0 * - 64 * + col0 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
-36831
-506862
-78399

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT col2 DIV + col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-5142
SELECT col2 / + col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT ALL + cor0.col2 + 66 FROM tab0 AS cor0
----
148
67
99

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-3
-64
-80

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2, tab0
----
13122 values hashing to 2ee965fd2a9d6079e103c2da25e8e74f

query I rowsort
SELECT ALL - col0 * - 23 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1473
2042
3088

onlyif mysql # use DIV operator for integer division
query I rowsort label-5147
SELECT + - col0 * col1 DIV col2 + col2 FROM tab1 AS cor0
----
46
53
86

skipif mysql # not compatible
query I rowsort label-5147
SELECT + - col0 * col1 / col2 + col2 FROM tab1 AS cor0
----
46
53
86

query I rowsort
SELECT ( col0 ) * col0 + 71 FROM tab1 AS cor0
----
4167
6471
80

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 68 AS REAL ) FROM tab2, tab0 AS cor0
----
68

query I rowsort
SELECT ALL - col2 * + col1 + col1 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT tab1.col1 * col0 * + 29 FROM tab1
----
18560
2262
30160

query I rowsort
SELECT - - col2 * 93 AS col2 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT + cor0.col0 + col1 * col0 FROM tab1 cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab2, tab1 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL col0 * + col0 * col1 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT DISTINCT + - col2 DIV col0 + col0 col2 FROM tab0 AS cor0
----
23
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + - col2 / col0 + col0 col2 FROM tab0 AS cor0
----
23
35
89

query I rowsort
SELECT ALL 84 + + 92 AS col0 FROM tab2 AS cor0
----
176
176
176

query I rowsort
SELECT cor0.col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - 93 + - col2 + col2 FROM tab0 AS cor0
----
-93
-93
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * + col2 col1 FROM tab0
----
1023
2542
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT + + 46 DIV col0 + 23 AS col1 FROM tab2 AS cor0
----
23
23
29

skipif mysql # not compatible
query I rowsort label-5161
SELECT + + 46 / col0 + 23 AS col1 FROM tab2 AS cor0
----
23
23
29

query I rowsort
SELECT + col2 + + col1 + col1 * - 88 AS col1 FROM tab0 AS cor0
----
-7449
-7835
-8438

query I rowsort
SELECT 32 + + col0 * col0 AS col0 FROM tab1
----
41
4128
6432

query I rowsort
SELECT + - col1 + col1 * col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + cor0.col1 * + col2 + - ( col0 ) FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL col1 * col0 * + col1 - 49 FROM tab0 AS cor0
----
177455
329266
736960

query I rowsort
SELECT - + 56 - col1 FROM tab2 AS cor0
----
-115
-73
-87

query I rowsort
SELECT ALL col2 * col1 + - ( + 49 ) + - col1 FROM tab1 cor0
----
1186
1329
511

onlyif mysql # use DIV operator for integer division
query I rowsort label-5169
SELECT - col1 * col1 + col0 DIV + ( + col0 ) FROM tab1 AS cor0
----
-168
-675
-99

skipif mysql # not compatible
query I rowsort label-5169
SELECT - col1 * col1 + col0 / + ( + col0 ) FROM tab1 AS cor0
----
-168
-675
-99

query I rowsort
SELECT - col1 * col1 + - col1 * - col0 FROM tab0 AS cor0
----
-182
-5332
-6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col0 col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col2 * col0 + col2 + + col2 * 19 AS col0 FROM tab0 cor0
----
1452
55
8938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 22 + + col1 col1 FROM tab2 AS cor0
----
140
56
84

query I rowsort
SELECT col2 + 79 FROM tab1 AS cor0
----
133
136
175

query I rowsort
SELECT ALL - col2 * ( col0 ) + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + 48 * + col0 * - cor0.col0 AS col1 FROM tab2 cor0
----
-295513
-299857
-3313

query I rowsort
SELECT ALL + - col2 * - ( 6 ) FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT DISTINCT col0 + col0 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
15
4224
6560

query I rowsort
SELECT DISTINCT + col1 + + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5180
SELECT - + col1 + + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT - + col1 + + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * cor0.col2 + - col1 + + col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - ( col1 ) * col1 FROM tab1
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5183
SELECT - 86 * cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5183
SELECT - 86 * cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5184
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + + col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 91 * 21 * col1 FROM tab0 AS cor0
----
-164346
-173901
-185367

query I rowsort
SELECT + col0 * + 27 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT DISTINCT 43 + - col0 AS col1 FROM tab2 AS cor0
----
-35
-36
36

query I rowsort
SELECT DISTINCT 53 - col1 FROM tab1 AS cor0
----
27
40
43

query I rowsort
SELECT 97 + - col0 FROM tab1 AS cor0
----
17
33
94

query I rowsort
SELECT ALL + col0 + - col0 * ( - cor0.col2 + + col0 ) * ( col2 ) AS col1 FROM tab2 AS cor0
----
-105378
-123003
3787

query I rowsort
SELECT DISTINCT - - 80 * + col2 * 8 + col2 * - col0 FROM tab0 AS cor0
----
20328
45182
605

onlyif mysql # use DIV operator for integer division
query I rowsort label-5192
SELECT col2 DIV cor0.col1 - - ( 96 ) * + col1 AS col2 FROM tab2 AS cor0
----
1634
2976
5664

skipif mysql # not compatible
query I rowsort label-5192
SELECT col2 / cor0.col1 - - ( 96 ) * + col1 AS col2 FROM tab2 AS cor0
----
1634
2976
5664

query I rowsort
SELECT ALL + - 55 * col1 + col1 AS col1 FROM tab1 cor0
----
-1404
-540
-702

query I rowsort
SELECT DISTINCT - - col2 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col0 * 62 AS col1 FROM tab0
----
1488
2170
5518

query I rowsort
SELECT DISTINCT - 1 * col1 - + col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) * col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL - col0 * - 71 + + 22 - - col0 AS col0 FROM tab0 cor0
----
1750
2542
6430

query I rowsort
SELECT DISTINCT col2 * ( - col1 ) + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT cor0.col1 + 13 AS col1 FROM tab0 AS cor0
----
104
110
99

query I rowsort
SELECT ALL + col1 + - 60 FROM tab0 AS cor0
----
26
31
37

query I rowsort
SELECT DISTINCT - col1 * + 30 + cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
-2518
-2728
-2848

onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT ALL - cor0.col1 * + ( col2 ) + + col0 DIV - 27 - + col2 AS col2 FROM tab2 cor0
----
-1562
-686
-864

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - cor0.col1 * + ( col2 ) + + col0 / - 27 - + col2 AS col2 FROM tab2 cor0
----
-1562
-686
-864

query I rowsort
SELECT - + col0 * + ( - 5 ) FROM tab1 AS cor0
----
15
320
400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * + col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col2 + - cor0.col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) - cor0.col1 * - ( + 97 ) col1 FROM tab1 AS cor0
----
1027
1357
2576

query I rowsort
SELECT DISTINCT + ( col2 ) - cor0.col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 74 + 92 FROM tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT - 61 FROM tab1, tab0 AS cor0
----
-61

query I rowsort
SELECT ALL - - ( col0 ) + + ( ( - col1 ) ) + col2 FROM tab0 cor0
----
-29
-61
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT DISTINCT col0 DIV col2 - + 68 * + 73 AS col1 FROM tab0 AS cor0
----
-4929
-4963
-4964

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT col0 / col2 - + 68 * + 73 AS col1 FROM tab0 AS cor0
----
-4929
-4963
-4964

query I rowsort
SELECT + 38 * cor0.col2 + - col0 * ( - col2 + - col2 ) * + col2 FROM tab0 cor0
----
108
1199988
53526

query I rowsort
SELECT - - col0 + - col1 * col1 * - col0 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT ALL cor0.col2 + col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT - col2 + col2 DIV col2 + + ( col2 ) * 23 DIV + col1 FROM tab0 AS cor0
----
-24
-61
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT - col2 + col2 / col2 + + ( col2 ) * 23 / + col1 FROM tab0 AS cor0
----
-24
-61
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + col1 + - ( + col1 ) col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - + col0 + - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( tab0.col1 ) * - col0 + - col0 col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT col2 * - tab2.col1 * - col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - 64 - ( - col2 ) * ( col1 ) FROM tab2
----
1470
582
773

query I rowsort
SELECT ALL + 8 + - col0 AS col2 FROM tab1
----
-56
-72
5

query I rowsort
SELECT tab0.col2 - tab0.col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 + - cor0.col1 FROM tab0 cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + + 13 col2 FROM tab2 AS cor0
----
-1330
-204
-4589

query I rowsort
SELECT DISTINCT 25 FROM tab1 cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 + ( + 39 * - col0 ) + col2 * 88 * col2 col0 FROM tab0 AS cor0
----
-1374
580779
92058

query I rowsort
SELECT ALL 69 * col1 + + 35 FROM tab2 AS cor0
----
1208
2174
4106

onlyif mysql # use DIV operator for integer division
query I rowsort label-5230
SELECT col2 * col1 + col2 DIV col0 FROM tab0
----
2839
7462
97

skipif mysql # not compatible
query I rowsort label-5230
SELECT col2 * col1 + col2 / col0 FROM tab0
----
2839
7462
97

query I rowsort
SELECT DISTINCT 26 * + col0 FROM tab1
----
1664
2080
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT + col2 + col0 DIV + cor0.col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-5232
SELECT + col2 + col0 / + cor0.col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT 74 + + tab0.col2 AS col2 FROM tab0
----
107
156
75

query I rowsort
SELECT + col2 + - col0 + col1 * + ( col1 ) AS col2 FROM tab2
----
248
3429
981

query I rowsort
SELECT + col2 + cor0.col0 + + col0 FROM tab1 cor0
----
185
256
60

query I rowsort
SELECT + cor0.col1 + 95 FROM tab1 AS cor0
----
105
108
121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5237
SELECT DISTINCT + cor0.col0 * + CAST( NULL AS SIGNED ) * 4 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5237
SELECT DISTINCT + cor0.col0 * + CAST ( NULL AS INTEGER ) * 4 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col1 * - 24 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT DISTINCT + ( cor1.col2 ) - 66 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-12
-9
30

query I rowsort
SELECT + + col0 + + cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT ALL col2 * - col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( - col0 ) + col2 col1 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - - cor0.col1 * 70 FROM tab0 AS cor0
----
6020
6370
6790

query I rowsort
SELECT - tab1.col0 + - tab1.col0 * 23 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 3b8a48eb981b5d832c1c00af57ac46ae

query I rowsort
SELECT DISTINCT - 51 + - 50 AS col1 FROM tab2
----
-101

query I rowsort
SELECT ALL 12 + - col1 AS col1 FROM tab0 AS cor0
----
-74
-79
-85

query I rowsort
SELECT ALL + - col2 * col2 + col2 FROM tab2 cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT DISTINCT + col2 - 69 * col1 DIV + ( 89 ) FROM tab1 AS cor0
----
34
50
86

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + col2 - 69 * col1 / + ( 89 ) FROM tab1 AS cor0
----
34
50
86

query I rowsort
SELECT ALL ( col2 ) + col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL + col1 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5251
SELECT CAST( col0 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5251
SELECT CAST ( col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col2 + - col2 * - col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT DISTINCT - col1 DIV ( - col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - col1 / ( - col2 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 36 + + ( - col1 ) * - col0 FROM tab1 AS cor0
----
1076
114
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5255
SELECT DISTINCT col0 DIV col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5255
SELECT DISTINCT col0 / col1 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + ( - 94 ) + col0 AS col2 FROM tab2 AS cor0
----
-15
-16
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * + col2 col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + cor0.col2 * 96 AS col2 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT + col2 * col2 * cor0.col1 + + col0 + col0 FROM tab1 cor0
----
119968
32618
75822

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT - col1 + - col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT - col1 + - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col1 + + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - + col2 + + col2 * - 36 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT + + col0 * - col2 + - 27 AS col0 FROM tab1 cor0
----
-189
-3675
-7707

onlyif mysql # use DIV operator for integer division
query I rowsort label-5264
SELECT - + cor0.col2 DIV - col2 + - col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5264
SELECT - + cor0.col2 / - col2 + - col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT - + ( 7 ) * + col1 AS col2 FROM tab0 AS cor0
----
-602
-637
-679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5266
SELECT + CAST( + col2 AS SIGNED ) * - cor0.col2 + - 66 * col2 * + col0 FROM tab0 AS cor0
----
-2311
-488392
-53361

skipif mysql # not compatible
query I rowsort label-5266
SELECT + CAST ( + col2 AS INTEGER ) * - cor0.col2 + - 66 * col2 * + col0 FROM tab0 AS cor0
----
-2311
-488392
-53361

query I rowsort
SELECT ALL tab0.col0 * - 24 AS col0 FROM tab0
----
-2136
-576
-840

query I rowsort
SELECT + col1 + - cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col2 FROM tab0
----
91
91
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT ALL col0 DIV ( col1 ) + 81 * - 26 FROM tab1
----
-2100
-2100
-2106

skipif mysql # not compatible
query I rowsort label-5271
SELECT ALL col0 / ( col1 ) + 81 * - 26 FROM tab1
----
-2100
-2100
-2106

query I rowsort
SELECT - 25 * ( - col2 ) FROM tab0 AS cor0
----
2050
25
825

query I rowsort
SELECT ALL 56 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT DISTINCT + cor0.col2 + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a451dbe509e87d1600234f39388c7bd3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col2 + 60 col0 FROM tab0 AS cor0
----
157
2898
7522

query I rowsort
SELECT ALL col1 * tab0.col1 * 57 AS col2 FROM tab0
----
421572
472017
536313

onlyif mysql # use DIV operator for integer division
query I rowsort label-5277
SELECT col1 * col1 DIV - 12 AS col0 FROM tab2
----
-24
-290
-80

skipif mysql # not compatible
query I rowsort label-5277
SELECT col1 * col1 / - 12 AS col0 FROM tab2
----
-24
-290
-80

query I rowsort
SELECT + - col2 + ( + 95 ) FROM tab0 cor0
----
13
62
94

query I rowsort
SELECT col1 * 87 * 2 AS col1 FROM tab0 AS cor0
----
14964
15834
16878

onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT + tab1.col2 DIV ( col0 ) AS col1 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5280
SELECT + tab1.col2 / ( col0 ) AS col1 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT tab1.col0 * - ( 70 ) - tab1.col0 AS col1 FROM tab1
----
-213
-4544
-5680

query I rowsort
SELECT 61 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT - - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 30 FROM tab0, tab2 AS cor0
----
30

query I rowsort
SELECT ALL - 38 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5286
SELECT - + CAST( NULL AS SIGNED ) + col0 * col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5286
SELECT - + CAST ( NULL AS INTEGER ) + col0 * col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col0 ) * tab2.col0 * col0 - col0 FROM tab2
----
336
474474
492960

query I rowsort
SELECT DISTINCT tab1.col0 + col1 * + col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT 77 FROM tab2 cor0
----
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5290
SELECT + + cor0.col1 * 32 DIV - col1 + + col1 FROM tab1 cor0
----
-19
-22
-6

skipif mysql # not compatible
query I rowsort label-5290
SELECT + + cor0.col1 * 32 / - col1 + + col1 FROM tab1 cor0
----
-19
-22
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5291
SELECT CAST( NULL AS DECIMAL ) + cor0.col0 * col2 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-5291
SELECT CAST ( NULL AS REAL ) + cor0.col0 * col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 37 * + 84 + col2 AS col0 FROM tab1 AS cor0
----
3162
3165
3204

query I rowsort
SELECT - + ( cor0.col2 ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT col2 DIV + 48 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5294
SELECT col2 / + 48 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5295
SELECT 34 DIV cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c

skipif mysql # not compatible
query I rowsort label-5295
SELECT 34 / cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c

query I rowsort
SELECT DISTINCT - ( col1 ) * 32 AS col1 FROM tab1
----
-320
-416
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + + col0 col0 FROM tab1 cor0
----
-12
-73
4

query I rowsort
SELECT ALL cor0.col2 * + col0 - 1 * col1 * + col0 FROM tab1 cor0
----
3008
6640
84

query I rowsort
SELECT + - 43 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
3698
3913
4171

onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT + - col2 DIV 48 col0 FROM tab1 cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5300
SELECT + - col2 / 48 col0 FROM tab1 cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + col1 * 27 FROM tab0 AS cor0
----
2322
2457
2619

query I rowsort
SELECT DISTINCT col0 * 44 AS col0 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT ALL + col1 + + 45 + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
119
138
74

query I rowsort
SELECT ALL + + col1 * cor0.col2 + + 79 FROM tab2 cor0
----
1613
725
916

query I rowsort
SELECT ALL + - col0 * 4 FROM tab2 AS cor0
----
-28
-312
-316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 61 col0 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT - tab0.col1 + + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 569861f6a66f96b7335ea7c0625d1995

onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT CAST( col0 AS SIGNED ) + tab0.col1 * - col2 DIV + col2 AS col2 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-5308
SELECT CAST ( col0 AS INTEGER ) + tab0.col1 * - col2 / + col2 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT 54 - - 64 FROM tab2
----
118
118
118

onlyif mysql # use DIV operator for integer division
query I rowsort label-5310
SELECT DISTINCT col2 DIV col0 + col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT col2 / col0 + col0 FROM tab1
----
21
64
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5311
SELECT - CAST( - col0 AS SIGNED ) * - col2 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-5311
SELECT - CAST ( - col0 AS INTEGER ) * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - - ( col0 ) + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5313
SELECT DISTINCT - CAST( 12 AS SIGNED ) * col1 + col2 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
-296
5402
6075

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - CAST ( 12 AS INTEGER ) * col1 + col2 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
-296
5402
6075

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5314
SELECT DISTINCT ( - col1 ) * CAST( 72 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1224
-2232
-4248

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT ( - col1 ) * CAST ( 72 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT col1 + - col2 * 40 * - 71 AS col0 FROM tab1 AS cor0
----
153386
161890
272653

query I rowsort
SELECT DISTINCT + ( col2 * col2 ) AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT - 42 + + col2 FROM tab1 AS cor0
----
12
15
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT DISTINCT + 5 * col1 + col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
430
450
454

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT + 5 * col1 + col0 / - col2 AS col0 FROM tab0 AS cor0
----
430
450
454

onlyif mysql # use DIV operator for integer division
query I rowsort label-5319
SELECT - + 33 * col1 DIV + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-5319
SELECT - + 33 * col1 / + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL - cor0.col2 + 18 FROM tab2, tab1 AS cor0
----
9 values hashing to b5f0c5a4618940b7c0b1c8484283a7c9

query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * ( + col1 ) + + col1 * - col1 col0 FROM tab0 AS cor0
----
-12804
-16380
-9460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col1 - col1 col1 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5324
SELECT ALL tab1.col2 * CAST( NULL AS SIGNED ) / col0 + + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL tab1.col2 * CAST ( NULL AS INTEGER ) / col0 + + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5325
SELECT - col1 + + col2 * col2 DIV col0 + ( col0 ) DIV + col2 AS col0 FROM tab0
----
-15
-41
-62

skipif mysql # not compatible
query I rowsort label-5325
SELECT - col1 + + col2 * col2 / col0 + ( col0 ) / + col2 AS col0 FROM tab0
----
-15
-41
-62

query I rowsort
SELECT ALL + cor0.col2 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - col0 + 84 * - col1 * - col2 FROM tab1 AS cor0
----
104752
117933
47816

query I rowsort
SELECT ALL + 73 + + col2 * + col0 * col2 AS col2 FROM tab2 AS cor0
----
114149
5176
52801

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) * 15 + + 26 FROM tab2 AS cor0
----
-229
-439
-859

query I rowsort
SELECT - col2 + - 67 + col2 * + col2 FROM tab1 cor0
----
2795
3125
9053

query I rowsort
SELECT + cor0.col0 * - col1 + col1 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * col2 + col1 col2 FROM tab0 AS cor0
----
158
2099
5093

query I rowsort
SELECT ALL + col2 * + col1 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT - - 61 + + col1 FROM tab0 AS cor0
----
147
152
158

query I rowsort
SELECT DISTINCT ( col1 ) + - col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT - ( - col0 ) + col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - 15 + + ( col1 ) AS col1 FROM tab0 AS cor0
----
71
76
82

query I rowsort
SELECT col2 + - 87 AS col2 FROM tab1
----
-30
-33
9

query I rowsort
SELECT + tab2.col0 - 58 AS col2 FROM tab2
----
-51
20
21

query I rowsort
SELECT col1 + 24 + - col0 FROM tab1
----
-30
-43
47

query I rowsort
SELECT - col0 + - col1 + + col2 * - col0 FROM tab2
----
-2165
-227
-3098

query I rowsort
SELECT - tab0.col2 + + tab0.col2 AS col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5343
SELECT ALL - CAST( NULL AS SIGNED ) / - 61 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - CAST ( NULL AS INTEGER ) / - 61 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
34

query I rowsort
SELECT + + 4 + col2 FROM tab2 AS cor0
----
30
31
42

query I rowsort
SELECT + + 5 - col2 FROM tab2 cor0
----
-21
-22
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5347
SELECT - CAST( col2 * - col2 AS SIGNED ) FROM tab0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-5347
SELECT - CAST ( col2 * - col2 AS INTEGER ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT + + col2 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - 88 + - col0 * + col2 FROM tab2 AS cor0
----
-2116
-277
-3090

query I rowsort
SELECT + + col1 * - col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5351
SELECT col0 DIV 50 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5351
SELECT col0 / 50 FROM tab2
----
0
1
1

query I rowsort
SELECT + col2 * - 81 AS col0 FROM tab1
----
-4374
-4617
-7776

query I rowsort
SELECT DISTINCT + + col2 * + 16 + - col1 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
408
435
670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5354
SELECT + col2 + - CAST( NULL AS SIGNED ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT + col2 + - CAST ( NULL AS INTEGER ) / + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab0.col0 * cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4079a7bf86eef7fda5333d4a7bc8c08e

query I rowsort
SELECT DISTINCT + ( - col0 + + 3 ) AS col0 FROM tab1
----
-61
-77
0

query I rowsort
SELECT col2 + col2 * - ( + col0 ) * + col1 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT - ( col0 ) + + 25 FROM tab0
----
-10
-64
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT CAST( + 42 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif mysql # not compatible
query I rowsort label-5359
SELECT CAST ( + 42 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT col2 * + 94 FROM tab2 cor0
----
2444
2538
3572

query I rowsort
SELECT DISTINCT col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col0 * 5 + + col2 FROM tab1 cor0
----
377
496
69

query I rowsort
SELECT DISTINCT - + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - cor0.col1 * + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - - col0 + col1 * - 23 AS col0 FROM tab1 AS cor0
----
-166
-219
-595

onlyif mysql # use DIV operator for integer division
query I rowsort label-5366
SELECT ALL col2 DIV - col2 + + cor0.col0 DIV col0 + - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL col2 / - col2 + + cor0.col0 / col0 + - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col2 - ( + col1 ) * + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-636023
-753489
-912672

query I rowsort
SELECT DISTINCT + - cor0.col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col1 * 44 FROM tab0 AS cor0
----
3784
4004
4268

query I rowsort
SELECT - col1 * col2 * - cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT - 44 - + col2 * 1 AS col2 FROM tab2
----
-70
-71
-82

query I rowsort
SELECT + + 37 - - col0 AS col2 FROM tab2 AS cor0
----
115
116
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5374
SELECT - col1 DIV col0 + ( - col0 ) * + tab0.col0 * col0 FROM tab0
----
-13827
-42877
-704970

skipif mysql # not compatible
query I rowsort label-5374
SELECT - col1 / col0 + ( - col0 ) * + tab0.col0 * col0 FROM tab0
----
-13827
-42877
-704970

onlyif mysql # use DIV operator for integer division
query I rowsort label-5375
SELECT - col2 DIV + col2 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-5375
SELECT - col2 / + col2 col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5376
SELECT col2 + + col2 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5376
SELECT col2 + + col2 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col1 + + col2 + cor0.col1 FROM tab0 cor0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT + + col0 * - col1 + + cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-1040
-639
-78

skipif mysql # not compatible
query I rowsort label-5378
SELECT + + col0 * - col1 + + cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
-1040
-639
-78

query I rowsort
SELECT - - col2 + - col2 + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + + col2 * + cor0.col0 + col0 + cor0.col1 FROM tab1 AS cor0
----
191
3722
7773

query I rowsort
SELECT + col0 + col1 + col1 AS col2 FROM tab0 AS cor0
----
196
229
271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * - col2 col0 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-5383
SELECT DISTINCT col1 DIV 25 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT col1 / 25 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - col1 + col1 * + 21 AS col2 FROM tab0 cor0
----
1720
1820
1940

query I rowsort
SELECT ALL - cor0.col0 * 44 AS col0 FROM tab1 cor0
----
-132
-2816
-3520

query I rowsort
SELECT DISTINCT cor0.col0 + - 8 AS col1 FROM tab0 AS cor0
----
16
27
81

query I rowsort
SELECT DISTINCT col1 + 84 * + col0 AS col2 FROM tab1 AS cor0
----
278
5386
6733

query I rowsort
SELECT col1 + 72 AS col1 FROM tab1 AS cor0
----
82
85
98

query I rowsort
SELECT - col0 * - 47 FROM tab2 AS cor0
----
329
3666
3713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 + col2 col0 FROM tab0 AS cor0
----
39
7
88

query I rowsort
SELECT 24 * col1 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT 55 * cor0.col1 + 2 AS col2 FROM tab2 AS cor0
----
1707
3247
937

onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT DISTINCT - - col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - - col2 / col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 95 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab0 cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57

query I rowsort
SELECT ALL cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT DISTINCT - col2 * - col1 + + 97 DIV + col2 FROM tab0 AS cor0
----
194
2840
7463

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT - col2 * - col1 + + 97 / + col2 FROM tab0 AS cor0
----
194
2840
7463

query I rowsort
SELECT DISTINCT + + col2 + - col0 * - ( col2 * - col1 ) AS col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT ALL - col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - col1 / cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( - col2 ) + - 40 AS col0 FROM tab0 AS cor0
----
-122
-41
-73

query I rowsort
SELECT ALL + 71 + col1 FROM tab2 AS cor0
----
102
130
88

query I rowsort
SELECT ALL - - 91 AS col2 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL + 75 * col1 FROM tab1 cor0
----
1950
750
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - tab2.col0 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col0 - tab1.col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 - 98 AS col1 FROM tab1 AS cor0
----
-18
-34
-95

query I rowsort
SELECT - + cor0.col0 * 1 + + col1 + ( col0 ) * col1 AS col0 FROM tab1 AS cor0
----
101
586
973

onlyif mysql # use DIV operator for integer division
query I rowsort label-5408
SELECT ALL + col1 * + col0 DIV - col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5408
SELECT ALL + col1 * + col0 / - col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + - col2 * - cor0.col1 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT col0 * col2 - + col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT ALL 66 * - col0 FROM tab0
----
-1584
-2310
-5874

query I rowsort
SELECT ALL - col2 * 97 FROM tab1 AS cor0
----
-5238
-5529
-9312

query I rowsort
SELECT DISTINCT + - col0 * col1 * col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab2, tab1 AS cor0
----
67

query I rowsort
SELECT ALL - - 29 * col2 FROM tab0 AS cor0
----
2378
29
957

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 col0 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT - 4 + + 90 + - col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-11
84
85

skipif mysql # not compatible
query I rowsort label-5417
SELECT - 4 + + 90 + - col1 / col2 AS col1 FROM tab0 AS cor0
----
-11
84
85

query I rowsort
SELECT col1 * + tab1.col2 + 13 + + col2 FROM tab1
----
1357
1471
640

query I rowsort
SELECT ALL col1 + + tab2.col2 * + col1 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT + - 79 + + col0 AS col2 FROM tab1 AS cor0
----
-15
-76
1

query I rowsort
SELECT 47 + - 99 AS col2 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL + col1 + - 24 * 47 AS col0 FROM tab0
----
-1031
-1037
-1042

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT - col1 DIV 13 col1 FROM tab0
----
-6
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5423
SELECT - col1 / 13 col1 FROM tab0
----
-6
-7
-7

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT ALL - ( col2 * - col0 + - col0 * 0 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + ( - 56 ) AS col1 FROM tab0 AS cor0
----
-56
-56
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT + - CAST( - col1 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5427
SELECT + - CAST ( - col1 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab0
----
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT DISTINCT + 20 * col2 DIV + ( tab0.col1 ) FROM tab0
----
0
18
7

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT + 20 * col2 / + ( tab0.col1 ) FROM tab0
----
0
18
7

query I rowsort
SELECT DISTINCT - tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 81 + col2 * - col1 * 35 FROM tab1
----
-19869
-43599
-49059

onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT DISTINCT - col2 DIV + col0 + ( col1 ) AS col1 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT - col2 / + col0 + ( col1 ) AS col1 FROM tab2 AS cor0
----
17
28
59

query I rowsort
SELECT ALL + col1 * - col2 - + col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL 57 AS col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT + + col1 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5435
SELECT + + col1 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT + + col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - col1 * - cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + col2 * ( 10 * col0 ) + + col0 * - col2 AS col1 FROM tab0 cor0
----
315
65682
7128

onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT ALL + col0 + - ( 18 ) DIV col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + col0 + - ( 18 ) / col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + cor0.col2 + + col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5442
SELECT ALL - + col0 * CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL - + col0 * CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - cor0.col1 + - ( 27 ) FROM tab0 AS cor0
----
-113
-118
-124

onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT ALL - - col1 * col1 + 15 DIV col2 AS col1 FROM tab0 cor0
----
7396
8281
9424

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - - col1 * col1 + 15 / col2 AS col1 FROM tab0 cor0
----
7396
8281
9424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + + col1 col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT + 38 * tab2.col1 AS col1 FROM tab2, tab0, tab2 AS cor0
----
1178
2242
646

query I rowsort
SELECT DISTINCT col0 + - 72 + 81 AS col1 FROM tab2 cor0
----
16
87
88

query I rowsort
SELECT ALL + + cor0.col1 + 56 FROM tab2 AS cor0
----
115
73
87

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab1, tab0, tab0 AS cor0
----
42

query I rowsort
SELECT col1 - col0 * - 6 FROM tab0
----
230
307
625

query I rowsort
SELECT - col2 * col0 + + 8 AS col2 FROM tab0 cor0
----
-27
-7290
-784

query I rowsort
SELECT ALL - col0 + + ( col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 + + 52 * col0 FROM tab0 AS cor0
----
1281
1821
4710

query I rowsort
SELECT - col0 * col2 * + 91 AS col1 FROM tab2 AS cor0
----
-17199
-184548
-273182

query I rowsort
SELECT DISTINCT + col0 * col1 + col1 * - col2 AS col0 FROM tab2 cor0
----
-620
3068
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5456
SELECT ALL - + col1 * CAST( col0 * col1 AS SIGNED ) FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - + col1 * CAST ( col0 * col1 AS INTEGER ) FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5457
SELECT - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT - col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - 40 * col2 FROM tab0 AS cor0
----
-1296
-3191
-5

query I rowsort
SELECT ALL - - cor0.col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - col2 * 16 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-19
107495
17400

query I rowsort
SELECT - 86 - 94 * col2 FROM tab0 cor0
----
-180
-3188
-7794

query I rowsort
SELECT - col1 * + col0 + + col0 + col1 * + col2 FROM tab2 AS cor0
----
-2990
-618
627

query I rowsort
SELECT 37 * cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
1140
2105
550

query I rowsort
SELECT - 90 - col1 * + col0 FROM tab2 AS cor0
----
-1433
-307
-4692

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5465
SELECT CAST( - col1 AS SIGNED ) * col0 * CAST( 15 AS SIGNED ) + col0 * - 14 FROM tab0 AS cor0
----
-122731
-31296
-51415

skipif mysql # not compatible
query I rowsort label-5465
SELECT CAST ( - col1 AS INTEGER ) * col0 * CAST ( 15 AS INTEGER ) + col0 * - 14 FROM tab0 AS cor0
----
-122731
-31296
-51415

query I rowsort
SELECT cor0.col2 + 49 FROM tab2 AS cor0
----
75
76
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col2 FROM tab2, tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
54

query I rowsort
SELECT ALL - tab2.col0 + - 19 AS col0 FROM tab2
----
-26
-97
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5470
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT + col1 * col1 * + col0 + col0 FROM tab0
----
177528
329350
737098

onlyif mysql # use DIV operator for integer division
query I rowsort label-5472
SELECT DISTINCT + - col0 + + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT + - col0 + + col1 / col2 AS col0 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) * ( + col0 ) + - col2 * col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT ALL - + col0 DIV + col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - + col0 / + col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + 1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - 4 * - col2 AS col1 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT ALL + col1 + 57 * col1 AS col1 FROM tab0
----
4988
5278
5626

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab0, tab1 AS cor0
----
99

query I rowsort
SELECT col0 * col0 + + col1 AS col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT 18 + tab1.col0 * - 99 FROM tab1
----
-279
-6318
-7902

query I rowsort
SELECT ALL - col2 * + col0 + - col1 * + 98 FROM tab1 cor0
----
-2710
-4628
-8954

query I rowsort
SELECT ALL + + col2 * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * cor0.col1 * + col0 col0 FROM tab2 cor0
----
-22831
-271518
-6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5484
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5484
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT tab0.col2 * tab0.col0 FROM tab0 WHERE NOT col0 - col2 NOT BETWEEN - col2 AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5486
SELECT col2 DIV + col0 + + col1 AS col1 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-5486
SELECT col2 / + col0 + + col1 AS col1 FROM tab1
----
10
14
44

query I rowsort
SELECT - cor0.col0 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * + col1 AS col1 FROM tab1 cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5490
SELECT + 16 DIV col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5490
SELECT + 16 / col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col2 + col2 + col2 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT + col0 * col0 * cor0.col0 + col0 FROM tab2 AS cor0
----
350
474630
493118

query I rowsort
SELECT - - col1 * cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab0
----
23
23
23

query I rowsort
SELECT - - col0 + col1 * col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( tab1.col2 )
----

query I rowsort
SELECT ALL tab2.col2 - + col0 AS col0 FROM tab2
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT + col2 - tab1.col2 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN - col0 * + tab1.col1 AND col2
----

query I rowsort
SELECT - col1 * + col0 + tab1.col0 + + tab1.col0 FROM tab1
----
-512
-72
-880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab1.col0 col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col0 FROM tab1 WHERE col2 < NULL
----

query I rowsort
SELECT ALL + - 20 AS col1 FROM tab2 cor0
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 >= - col1 * + col1 + - col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col1 * col1 - - 21 * col1 FROM tab2 AS cor0
----
1612
4720
646

query I rowsort
SELECT DISTINCT + col2 * col1 + - tab0.col1 * col1 AS col1 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT + tab1.col0 + - col1 * + col0 + - col2 FROM tab1
----
-1056
-129
-633

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE - col0 > ( col1 * + col1 )
----

query I rowsort
SELECT ALL - col2 * - col0 + col0 * + tab0.col0 AS col2 FROM tab0
----
1260
1368
15219

query I rowsort
SELECT ALL col0 + - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - cor0.col2 + - col1 AS col1 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT cor0.col0 - + cor0.col0 * col1 FROM tab1 AS cor0 WHERE NOT ( col0 + - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT tab1.col0 DIV + col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5516
SELECT tab1.col0 / + col1 AS col2 FROM tab1
----
0
6
6

query I rowsort
SELECT DISTINCT - tab0.col1 * col0 + col1 * col0 + col0 * col1 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col0 / - col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + tab0.col2 FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5519
SELECT + col0 DIV - tab1.col1 AS col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5519
SELECT + col0 / - tab1.col1 AS col1 FROM tab1
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT - col0 * col2 DIV col0 AS col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5520
SELECT - col0 * col2 / col0 AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + tab2.col2 + - col2 + col0 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + tab2.col1 - col0 * col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + col1 + col2 * - col2 + + col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN - col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5524
SELECT - tab1.col0 * - col2 DIV tab1.col2 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5524
SELECT - tab1.col0 * - col2 / tab1.col2 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT col0 * - col0 + + col1 + col2 AS col1 FROM tab1
----
-4029
-6291
71

query I rowsort
SELECT ALL - tab2.col0 * + col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT col0 + - tab0.col1 * col2 + - col1 FROM tab0
----
-159
-2900
-7464

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + 92 * - col0 - col0 AS col2 FROM tab2 AS cor0
----
-651
-7254
-7347

query I rowsort
SELECT DISTINCT + 80 * col0 AS col0 FROM tab2 AS cor0
----
560
6240
6320

query I rowsort
SELECT DISTINCT - 79 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1264
138
4523

query I rowsort
SELECT ALL + 82 - col0 AS col2 FROM tab0 AS cor0
----
-7
47
58

query I rowsort
SELECT col0 + - col0 * - col1 * - 29 AS col1 FROM tab2 AS cor0
----
-133380
-38868
-6286

query I rowsort
SELECT col0 - - cor0.col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT col0 + - col0 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL col2 + col0 + + 59 * col1 FROM tab2 AS cor0
----
1120
1863
3585

onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT DISTINCT + 45 DIV col0 - ( + col2 ) FROM tab0 cor0
----
-32
-82
0

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + 45 / col0 - ( + col2 ) FROM tab0 cor0
----
-32
-82
0

query I rowsort
SELECT ALL - 65 + col0 * - col2 * col0 FROM tab0 AS cor0
----
-1290
-19073
-649587

query I rowsort
SELECT ALL + 20 * col1 + ( col2 ) AS col1 FROM tab1 AS cor0
----
257
356
574

query I rowsort
SELECT - col0 + 67 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
19284
233149
64380

onlyif mysql # use DIV operator for integer division
query I rowsort label-5541
SELECT + col1 DIV CAST( 50 AS SIGNED ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5541
SELECT + col1 / CAST ( 50 AS INTEGER ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + col2 + tab0.col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL 91 FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + - 15 * col2 AS col0 FROM tab2 AS cor0
----
-390
-405
-570

query I rowsort
SELECT 76 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL + ( - 51 ) + col1 AS col2 FROM tab2 AS cor0
----
-20
-34
8

query I rowsort
SELECT ALL + col2 + + 64 FROM tab2 AS cor0
----
102
90
91

query I rowsort
SELECT ALL - col2 * - 25 + col2 * col0 * col2 FROM tab1 AS cor0
----
10098
209361
739680

query I rowsort
SELECT ALL - + cor0.col1 - col2 AS col1 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT 49 * + col0 - col2 AS col1 FROM tab0 cor0
----
1143
1714
4279

query I rowsort
SELECT DISTINCT + - ( col0 ) * - col1 - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL - + 29 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-125
-83
-86

query I rowsort
SELECT DISTINCT - tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 + + col2 * 99 col0 FROM tab2 AS cor0
----
10003
2722
8658

query I rowsort
SELECT - - 85 + - col0 * col1 FROM tab0 AS cor0
----
-1979
-3310
-8014

onlyif mysql # use DIV operator for integer division
query I rowsort label-5557
SELECT ( + col1 ) DIV + col2 + 26 AS col1 FROM tab1
----
26
26
26

skipif mysql # not compatible
query I rowsort label-5557
SELECT ( + col1 ) / + col2 + 26 AS col1 FROM tab1
----
26
26
26

query I rowsort
SELECT - 51 * - cor0.col2 + ( col0 ) FROM tab1 AS cor0
----
2757
2971
4976

query I rowsort
SELECT 47 * + col1 AS col0 FROM tab0 AS cor0
----
4042
4277
4559

query I rowsort
SELECT + - col1 * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 76 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT + col2 * 47 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT col1 + - 79 * col1 FROM tab0 AS cor0
----
-6708
-7098
-7566

query I rowsort
SELECT - - cor0.col0 * + 11 * cor0.col0 AS col2 FROM tab0 AS cor0
----
13475
6336
87131

query I rowsort
SELECT DISTINCT + + col1 * + ( 21 ) * - col1 FROM tab0 AS cor0
----
-155316
-173901
-197589

onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT - col0 DIV 53 + 6 + + col0 AS col2 FROM tab1 AS cor0
----
69
85
9

skipif mysql # not compatible
query I rowsort label-5566
SELECT - col0 / 53 + 6 + + col0 AS col2 FROM tab1 AS cor0
----
69
85
9

query I rowsort
SELECT - col2 + - col2 + col0 * col2 FROM tab2 AS cor0
----
135
1976
2926

query I rowsort
SELECT - - cor0.col0 * + col2 + + col1 * - col0 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT + col0 * col2 + col0 * cor0.col2 + 98 FROM tab2 AS cor0
----
4154
476
6102

query I rowsort
SELECT DISTINCT + ( + col1 ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + - 2 AS col0 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT - col2 * 40 + - col2 AS col1 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + cor0.col0 + 54 * col0 * + cor0.col2 + col2 FROM tab0 cor0
----
1926
394263
42825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5576
SELECT ALL - col1 DIV tab2.col1 col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL - col1 / tab2.col1 col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - + ( + 25 ) * - col0 + col2 - - col1 * + col1 AS col2 FROM tab0 AS cor0
----
10285
10588
8029

query I rowsort
SELECT DISTINCT - col2 + 53 AS col0 FROM tab1 AS cor0
----
-1
-4
-43

query I rowsort
SELECT DISTINCT + - tab2.col1 * 14 AS col1 FROM tab2, tab1, tab0 AS cor0, tab0
----
-238
-434
-826

query I rowsort
SELECT - tab0.col0 + - col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT col1 * - 47 FROM tab1
----
-1222
-470
-611

query I rowsort
SELECT DISTINCT col1 + - col1 * - ( 30 * + col0 ) AS col2 FROM tab1 AS cor0
----
19210
2366
31213

query I rowsort
SELECT + + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + 67 * col2 AS col1 FROM tab2
----
1742
1809
2546

query I rowsort
SELECT + 47 * tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a2d92791da4ec24a091aacfb7b519042

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5586
SELECT ALL CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT ALL - col1 * - col0 + col1 DIV 83 AS col1 FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL - col1 * - col0 + col1 / 83 AS col1 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 + + col1 * - col0 col0 FROM tab1 AS cor0
----
-1095
-133
-695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + col1 col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT + + 68 * - col2 AS col1 FROM tab2 cor0
----
-1768
-1836
-2584

query I rowsort
SELECT ALL col2 * - col0 * 81 + col1 + + col0 * 25 AS col0 FROM tab1
----
-13021
-293878
-620067

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5592
SELECT DISTINCT col1 + + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT col1 + + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 - + tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + - 42 * + col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT ALL 36 + col2 FROM tab1 AS cor0
----
132
90
93

query I rowsort
SELECT ALL 30 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT - 49 + - col0 * col1 FROM tab1
----
-1089
-127
-689

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5599
SELECT DISTINCT + + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5600
SELECT ALL + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + col2 / col0 AS col0 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5601
SELECT - + col1 * CAST( - col2 + col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5601
SELECT - + col1 * CAST ( - col2 + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + + 52 FROM tab1 AS cor0
----
106
109
148

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT DISTINCT - col0 DIV 30 + col0 + col1 FROM tab2 AS cor0
----
135
38
94

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - col0 / 30 + col0 + col1 FROM tab2 AS cor0
----
135
38
94

query I rowsort
SELECT ALL - cor0.col1 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 29 col0 FROM tab0
----
2494
2639
2813

query I rowsort
SELECT col0 + 69 FROM tab1
----
133
149
72

query I rowsort
SELECT ALL - 60 FROM tab2, tab2 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT + - col2 * + ( - 72 ) FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT col1 + + ( 54 ) FROM tab1 AS cor0
----
64
67
80

query I rowsort
SELECT ALL + col0 + + ( - col1 ) * - col0 AS col2 FROM tab2 cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + - cor0.col1 + ( col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * cor0.col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col0 + - 3 AS col2 FROM tab1 AS cor0
----
0
61
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5616
SELECT col0 * + col2 DIV col2 + - col1 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-5616
SELECT col0 * + col2 / col2 + - col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT 9 + + cor0.col1 FROM tab1 AS cor0
----
19
22
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5618
SELECT DISTINCT + 62 DIV col1 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT + 62 / col1 FROM tab2 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + col1 * cor0.col0 col0 FROM tab2 AS cor0
----
1405
279
4664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5620
SELECT ALL - - CAST( + 71 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL - - CAST ( + 71 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col0 + col1 * 16 AS col1 FROM tab0 AS cor0
----
1400
1545
1587

onlyif mysql # use DIV operator for integer division
query I rowsort label-5623
SELECT - col0 DIV col2 + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-5623
SELECT - col0 / col2 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-24
-70
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5624
SELECT + + cor0.col0 DIV + col1 + + ( col1 ) * + cor0.col1 + col1 * + ( col2 ) FROM tab2 AS cor0
----
1798
5016
939

skipif mysql # not compatible
query I rowsort label-5624
SELECT + + cor0.col0 / + col1 + + ( col1 ) * + cor0.col1 + col1 * + ( col2 ) FROM tab2 AS cor0
----
1798
5016
939

query I rowsort
SELECT + col2 + col1 + col1 * - ( + col0 ) AS col2 FROM tab0
----
-1945
-3297
-7926

query I rowsort
SELECT ( 65 ) + + col1 * + col2 AS col0 FROM tab1
----
1313
1469
635

query I rowsort
SELECT + 32 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5628
SELECT - 16 DIV - col2 FROM tab0
----
0
0
16

skipif mysql # not compatible
query I rowsort label-5628
SELECT - 16 / - col2 FROM tab0
----
0
0
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 * + col1 col1 FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT ALL + cor0.col0 DIV - 58 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL + cor0.col0 / - 58 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - cor0.col2 * - 88 AS col2 FROM tab2 AS cor0
----
2288
2376
3344

onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT DISTINCT - col0 + + 29 DIV 77 col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - col0 + + 29 / 77 col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - + col0 + - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - col0 * - 31 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 * + col1 AS col2 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT ALL - col1 * - col1 * 63 FROM tab0 AS cor0
----
465948
521703
592767

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab1, tab0 AS cor0
----
9

query I rowsort
SELECT col1 * 59 + + col0 FROM tab1
----
1537
654
847

query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + 9 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

onlyif mysql # use DIV operator for integer division
query I rowsort label-5642
SELECT ALL + - 54 DIV col0 + 86 DIV - 46 FROM tab1 cor0
----
-1
-1
-19

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL + - 54 / col0 + 86 / - 46 FROM tab1 cor0
----
-1
-1
-19

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT DISTINCT + col1 DIV - cor0.col1 + 85 * + cor0.col2 FROM tab1 AS cor0
----
4589
4844
8159

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + col1 / - cor0.col1 + 85 * + cor0.col2 FROM tab1 AS cor0
----
4589
4844
8159

query I rowsort
SELECT + 77 * col0 AS col2 FROM tab2 cor0
----
539
6006
6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-5645
SELECT DISTINCT cor0.col2 DIV col1 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT cor0.col2 / col1 AS col0 FROM tab0 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5646
SELECT ALL + 28 * + col2 * - CAST( + col1 AS SIGNED ) - cor0.col0 AS col1 FROM tab2 AS cor0
----
-18167
-23443
-43030

skipif mysql # not compatible
query I rowsort label-5646
SELECT ALL + 28 * + col2 * - CAST ( + col1 AS INTEGER ) - cor0.col0 AS col1 FROM tab2 AS cor0
----
-18167
-23443
-43030

query I rowsort
SELECT + col2 * - cor0.col0 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT - + 73 AS col2 FROM tab1 AS cor0
----
-73

query I rowsort
SELECT ALL col2 * + col2 + + col0 AS col2 FROM tab2
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5650
SELECT + + cor0.col1 + + col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5650
SELECT + + cor0.col1 + + col2 / + col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col1 + cor0.col0 FROM tab2 cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5652
SELECT DISTINCT + - 64 * - cor0.col1 + CAST( + 10 AS SIGNED ) FROM tab2 AS cor0
----
1098
1994
3786

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + - 64 * - cor0.col1 + CAST ( + 10 AS INTEGER ) FROM tab2 AS cor0
----
1098
1994
3786

query I rowsort
SELECT + + cor0.col2 + - col1 AS col2 FROM tab2 cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * col1 + - 81 * + col2 - col1 FROM tab1 AS cor0
----
-3987
-4322
-6749

query I rowsort
SELECT DISTINCT tab0.col2 + + col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT col1 * col0 + ( col0 ) FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL + col1 + - col2 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + col0 * + col0 + tab2.col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT 11 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5661
SELECT + + col0 + + col0 DIV + 40 FROM tab1 AS cor0
----
3
65
82

skipif mysql # not compatible
query I rowsort label-5661
SELECT + + col0 + + col0 / + 40 FROM tab1 AS cor0
----
3
65
82

query I rowsort
SELECT DISTINCT + col0 + + col2 * - col1 AS col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT - col2 + + 0 + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT ALL col2 DIV + col0 + - 86 FROM tab0 AS cor0
----
-85
-86
-86

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL col2 / + col0 + - 86 FROM tab0 AS cor0
----
-85
-86
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT - - cor0.col1 * + col0 + 14 DIV - col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5665
SELECT - - cor0.col1 * + col0 + 14 / - col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + col2 + - cor0.col1 * 94 FROM tab1 AS cor0
----
-1126
-2390
-883

query I rowsort
SELECT - - col2 * 26 + 7 FROM tab0 AS cor0
----
2139
33
865

query I rowsort
SELECT col1 * ( 87 ) FROM tab1
----
1131
2262
870

query I rowsort
SELECT ALL + col1 * ( col0 ) + col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT DISTINCT CAST( col0 AS SIGNED ) + + col0 AS col1 FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT CAST ( col0 AS INTEGER ) + + col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL + col0 + col2 * + col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col2 + 92 + - col0 * + col1 AS col1 FROM tab2
----
-1213
-4484
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT ( 92 ) + - col2 + ( - col0 ) DIV col0 FROM tab1
----
-5
34
37

skipif mysql # not compatible
query I rowsort label-5673
SELECT ( 92 ) + - col2 + ( - col0 ) / col0 FROM tab1
----
-5
34
37

query I rowsort
SELECT 68 * 32 AS col1 FROM tab0
----
2176
2176
2176

onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT ALL + 10 + col0 DIV col2 FROM tab1
----
10
10
11

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + 10 + col0 / col2 FROM tab1
----
10
10
11

query I rowsort
SELECT ( - col0 ) * col1 + col2 AS col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + col0 + + col2 + - col1 AS col2 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL 99 AS col1 FROM tab0 cor0
----
99
99
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5679
SELECT 12 DIV 98 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5679
SELECT 12 / 98 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT ALL CAST( col1 AS SIGNED ) + - col2 DIV 20 AS col2 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL CAST ( col1 AS INTEGER ) + - col2 / 20 AS col2 FROM tab2
----
16
30
58

query I rowsort
SELECT ALL - + 9 * col2 + + col1 FROM tab1 AS cor0
----
-460
-503
-851

query I rowsort
SELECT DISTINCT - col2 * - col1 + + 33 AS col2 FROM tab1 AS cor0
----
1281
1437
603

query I rowsort
SELECT ALL col1 - col2 * ( col0 ) FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - - col0 * - col2 * + 63 FROM tab1 AS cor0
----
-10206
-229824
-483840

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 80 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4016
-6320
71

query I rowsort
SELECT - 44 * col0 - - col1 FROM tab1 AS cor0
----
-106
-2806
-3507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - + cor0.col1 * + 61 col0 FROM tab0 AS cor0
----
-5160
-5460
-5820

query I rowsort
SELECT - col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5690
SELECT col2 + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT col2 + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 60 * col2 AS col0 FROM tab0 AS cor0
----
1980
4920
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT col0 + 33 AS col0 FROM tab1
----
113
36
97

query I rowsort
SELECT + tab2.col2 + - col1 * + col2 AS col0 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL col2 + - col1 AS col1 FROM tab0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + col0 col1 FROM tab0 AS cor0
----
126
61
72

query I rowsort
SELECT ALL col0 + col1 * - col0 * 32 FROM tab1 cor0
----
-20416
-2493
-33200

query I rowsort
SELECT col2 * col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL - - ( + col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col0 * ( cor0.col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-5701
SELECT DISTINCT + 10 + col0 * col2 DIV 63 AS col2 FROM tab1 AS cor0
----
12
131
67

skipif mysql # not compatible
query I rowsort label-5701
SELECT DISTINCT + 10 + col0 * col2 / 63 AS col2 FROM tab1 AS cor0
----
12
131
67

query I rowsort
SELECT ALL + + 14 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2078
3409
8113

query I rowsort
SELECT col1 * col1 + + 16 FROM tab0 AS cor0
----
7412
8297
9425

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL 86 + + cor0.col1 FROM tab0 AS cor0
----
172
177
183

query I rowsort
SELECT ALL - - col1 * - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - col0 * 99 AS col1 FROM tab0
----
-2376
-3465
-8811

query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab1
----
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5709
SELECT + col2 * CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-5709
SELECT + col2 * CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5710
SELECT col2 DIV - col0 - - ( - col2 ) * + 31 FROM tab2 AS cor0
----
-1178
-806
-840

skipif mysql # not compatible
query I rowsort label-5710
SELECT col2 / - col0 - - ( - col2 ) * + 31 FROM tab2 AS cor0
----
-1178
-806
-840

query I rowsort
SELECT - col2 + ( - 8 ) - cor0.col1 AS col1 FROM tab1 AS cor0
----
-117
-75
-88

query I rowsort
SELECT DISTINCT 3 * + col1 AS col1 FROM tab1
----
30
39
78

query I rowsort
SELECT DISTINCT + col1 - - ( col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT - col2 * 99 * col2 FROM tab0
----
-107811
-665676
-99

query I rowsort
SELECT - + 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * + cor0.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d77631da1543954248f01aecb963a5a0

query I rowsort
SELECT ALL + col2 * col2 + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL - ( col1 ) * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - + 10 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT ALL ( col1 ) * + col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT DISTINCT - - col1 * 71 DIV + col2 AS col0 FROM tab1 AS cor0
----
12
34
9

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - - col1 * 71 / + col2 AS col0 FROM tab1 AS cor0
----
12
34
9

query I rowsort
SELECT - - 97 + col0 FROM tab1 AS cor0
----
100
161
177

query I rowsort
SELECT ALL - 78 FROM tab1, tab2 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT 6 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT - ( - 96 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT - tab1.col1 * 74 * + 37 FROM tab1
----
-27380
-35594
-71188

query I rowsort
SELECT ALL + col1 * col2 + col2 + + ( col2 * col1 ) AS col0 FROM tab1
----
1197
2592
2862

query I rowsort
SELECT - 44 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT ALL + - 51 * - cor0.col2 FROM tab1 AS cor0
----
2754
2907
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 36 col1 FROM tab0 AS cor0
----
-3
-35
46

query I rowsort
SELECT DISTINCT + 31 * + col2 + - cor0.col1 FROM tab1 AS cor0
----
1648
1757
2963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col2 FROM tab1 AS cor0
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5734
SELECT ALL - col0 DIV ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - col0 / ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5735
SELECT + 48 * - col2 + - col2 * + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-13824
-5508
-5985

skipif mysql # not compatible
query I rowsort label-5735
SELECT + 48 * - col2 + - col2 * + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-13824
-5508
-5985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5736
SELECT - - CAST( - col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-5736
SELECT - - CAST ( - col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT col2 * + 99 FROM tab1 AS cor0
----
5346
5643
9504

onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT DISTINCT + 26 DIV + col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + 26 / + col0 FROM tab1 AS cor0
----
0
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5739
SELECT - + CAST( NULL AS DECIMAL ) + col1 * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5739
SELECT - + CAST ( NULL AS REAL ) + col1 * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - 45 AS col2 FROM tab2 AS cor0
----
-18
-19
-7

query I rowsort
SELECT 50 - col1 * 86 FROM tab1
----
-1068
-2186
-810

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + ( + col1 ) * CAST ( 57 AS REAL ) FROM tab2
----
1767
3363
969

onlyif mysql # use DIV operator for integer division
query I rowsort label-5743
SELECT - 40 DIV col2 FROM tab0 AS cor0
----
-1
-40
0

skipif mysql # not compatible
query I rowsort label-5743
SELECT - 40 / col2 FROM tab0 AS cor0
----
-1
-40
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5744
SELECT - 50 + col2 DIV 83 FROM tab1 AS cor0
----
-49
-50
-50

skipif mysql # not compatible
query I rowsort label-5744
SELECT - 50 + col2 / 83 FROM tab1 AS cor0
----
-49
-50
-50

query I rowsort
SELECT + 10 AS col0 FROM tab1 cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col1 + 83 FROM tab0 AS cor0
----
-14
-3
-8

query I rowsort
SELECT - - col1 * - cor0.col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + - col1 * col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - cor0.col1 + + ( - col2 ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + + col1 * col0 + cor0.col1 + - col2 FROM tab0 cor0
----
2117
3491
8108

onlyif mysql # use DIV operator for integer division
query I rowsort label-5752
SELECT DISTINCT col2 DIV + col1 + ( ( - col1 ) ) + - 48 DIV 29 AS col2 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-5752
SELECT DISTINCT col2 / + col1 + ( ( - col1 ) ) + - 48 / 29 AS col2 FROM tab0
----
-87
-92
-98

query I rowsort
SELECT ALL - 9 * - col1 FROM tab0
----
774
819
873

query I rowsort
SELECT ALL + - col0 * cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + col1 + ( col0 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT DISTINCT - col0 + 82 AS col1 FROM tab2 AS cor0
----
3
4
75

query I rowsort
SELECT ALL + - col1 + 28 FROM tab0 AS cor0
----
-58
-63
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT ALL - cor0.col0 DIV + cor0.col2 - col0 AS col0 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL - cor0.col0 / + cor0.col2 - col0 AS col0 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT col2 * col1 - tab2.col1 AS col0 FROM tab2
----
1475
629
806

query I rowsort
SELECT + col0 * + col0 * col0 AS col2 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT + col1 * - col1 * + col1 FROM tab0
----
-636056
-753571
-912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT DISTINCT + col0 - - col1 DIV + tab0.col0 FROM tab0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT + col0 - - col1 / + tab0.col0 FROM tab0
----
27
37
90

query I rowsort
SELECT ALL tab0.col1 FROM tab0 WHERE NOT + col0 * col1 IN ( + col0 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 + + tab2.col0 ) = ( col0 * - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT ALL + - col0 DIV cor0.col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL + - col0 / cor0.col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT - - col0 + col0 + 98 FROM tab1 cor0
----
104
226
258

query I rowsort
SELECT - + col2 + + col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col0 / - col1 )
----

query I rowsort
SELECT ALL + col1 * + tab0.col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL + tab1.col1 + + col1 - - col1 AS col1 FROM tab1
----
30
39
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT - col2 DIV + cor0.col0 + 76 * + 98 FROM tab2 AS cor0
----
7445
7448
7448

skipif mysql # not compatible
query I rowsort label-5772
SELECT - col2 / + cor0.col0 + 76 * + 98 FROM tab2 AS cor0
----
7445
7448
7448

query I rowsort
SELECT + col0 * col0 + 92 * + 28 + cor0.col1 * col1 FROM tab2 AS cor0
----
12141
3586
9106

query I rowsort
SELECT + - 9 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5775
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + 96 AS col1 FROM tab2
----
96

query I rowsort
SELECT - + col1 * + col0 - 24 FROM tab1 AS cor0
----
-102
-1064
-664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + col0 col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + col2 + - col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - - col0 * - col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT col0 * + col2 + - col2 * col2 + col0 AS col0 FROM tab1 AS cor0
----
-1456
-2751
463

onlyif mysql # use DIV operator for integer division
query I rowsort label-5782
SELECT - 9 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5782
SELECT - 9 / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + cor2.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT - - 63 + col2 * col2 FROM tab2 AS cor0
----
1507
739
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + tab0.col2 ) col1 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5786
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 / - cor0.col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 / - cor0.col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( ( - tab0.col0 ) ) AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT col2 + col1 * + tab2.col1 + tab2.col1 FROM tab2
----
1019
344
3566

query I rowsort
SELECT DISTINCT col1 * col0 + col0 - + col1 * - col0 * tab0.col0 AS col2 FROM tab0
----
122255
51624
728999

onlyif mysql # use DIV operator for integer division
query I rowsort label-5790
SELECT + col2 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5790
SELECT + col2 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - cor0.col0 + + col0 * col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL col2 * + col0 - + col0 FROM tab2
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5793
SELECT DISTINCT col2 DIV tab1.col1 + + col2 - + col0 FROM tab1
----
-2
23
53

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT col2 / tab1.col1 + + col2 - + col0 FROM tab1
----
-2
23
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT - col2 DIV + tab0.col2 + col2 * col0 AS col0 FROM tab0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-5794
SELECT - col2 / + tab0.col2 + col2 * col0 AS col0 FROM tab0
----
34
7297
791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT tab2.col0 + + col0 * col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + col2 + + tab2.col0 + + col1 AS col0 FROM tab2
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT DISTINCT - + col0 DIV col0 + col0 AS col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5798
SELECT DISTINCT - + col0 / col0 + col0 AS col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT + col2 + col0 * col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + col2 + - col0 * + cor0.col0 AS col0 FROM tab0 cor0
----
-1224
-543
-7839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5801
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL ( - tab1.col1 * col2 ) AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + ( - ( + col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - col0 * 22 FROM tab0
----
-1958
-528
-770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5805
SELECT - CAST( NULL AS SIGNED ) + col0 / col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT - CAST ( NULL AS INTEGER ) + col0 / col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - ( + cor0.col0 ) * col2 AS col1 FROM tab1 cor0
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5807
SELECT ALL + CAST( + ( - col1 ) AS SIGNED ) + cor0.col0 * col1 FROM tab0 AS cor0
----
1978
3298
8008

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL + CAST ( + ( - col1 ) AS INTEGER ) + cor0.col0 * col1 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col0 FROM tab0, tab1 AS cor0
----
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5809
SELECT + 24 DIV col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5809
SELECT + 24 / col0 FROM tab2 AS cor0
----
0
0
3

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

query I rowsort
SELECT ALL 39 * col2 FROM tab2 AS cor0
----
1014
1053
1482

query I rowsort
SELECT DISTINCT col1 + cor0.col2 * col2 + col0 * col1 FROM tab0 AS cor0
----
14914
3239
3493

query I rowsort
SELECT DISTINCT 20 * col2 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT DISTINCT + - col2 * col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + col0 col1 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT - 83 * col2 FROM tab0 cor0
----
-2739
-6806
-83

query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + tab0.col2 * - col1 * + col1 AS col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT - ( - 20 ) FROM tab1
----
20
20
20

query I rowsort
SELECT DISTINCT - 40 * - tab2.col1 AS col1 FROM tab2
----
1240
2360
680

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT ALL - col1 + cor0.col0 * col0 FROM tab0 cor0
----
1128
490
7830

query I rowsort
SELECT ALL col2 + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - col1 * col2 + + col2 + + cor0.col0 FROM tab2 AS cor0
----
-1430
-529
-803

query I rowsort
SELECT col1 * col0 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT tab0.col0 + tab0.col0 FROM tab0
----
178
48
70

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1 * + col1 )
----

query I rowsort
SELECT col1 * tab2.col0 + + col2 + - col0 * col2 FROM tab2
----
-1621
2600
55

query I rowsort
SELECT - tab2.col1 * tab2.col0 + col1 + - col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT - col1 - + tab2.col2 AS col1 FROM tab2
----
-55
-58
-85

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5834
SELECT + tab2.col1 + col0 DIV col0 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-5834
SELECT + tab2.col1 + col0 / col0 FROM tab2
----
18
32
60

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL IN ( col2 * - tab1.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * col1 col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col0 + - col0 + tab2.col0 FROM tab2
----
7
78
79

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( tab2.col1 )
----

query I rowsort
SELECT col0 + col2 * - col2 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 AS col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + col0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE ( NULL ) = cor0.col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT DISTINCT - col2 * - col1 + + tab1.col1 DIV - tab1.col1 FROM tab1
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT - col2 * - col1 + + tab1.col1 / - tab1.col1 FROM tab1
----
1247
1403
569

query I rowsort
SELECT ALL tab2.col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT tab2.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
17
31
59

query I rowsort
SELECT tab2.col2 * col0 * - col0 + - col1 AS col2 FROM tab2
----
-1354
-158243
-237175

query I rowsort
SELECT tab0.col1 * col1 * - col0 + - col0 AS col0 FROM tab0
----
-177528
-329350
-737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + - col1 col0 FROM tab2
----
272
3422
930

query I rowsort
SELECT ALL - - col1 * + col2 * + col2 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col0 + + col2 * + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + col0 * - col2 + col0 * col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + + col1 * - cor0.col1 * - col0 + col0 FROM tab2 cor0
----
22989
271674
6741

query I rowsort
SELECT DISTINCT - - cor0.col1 + + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col2 + - col0 * - col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT + cor0.col1 + - cor0.col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT col0 - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 88 + + 24 AS col0 FROM tab0 AS cor0
----
112
112
112

query I rowsort
SELECT ALL col0 * col2 + col2 - 12 * + col0 AS col1 FROM tab2 AS cor0
----
1118
132
2092

query I rowsort
SELECT ALL - + ( col1 ) + col1 * col1 AS col2 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT + cor0.col1 * 27 AS col2 FROM tab0 AS cor0
----
2322
2457
2619

query I rowsort
SELECT DISTINCT col2 * + col1 + - cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1128
-459
2262

query I rowsort
SELECT + + cor0.col0 * + 11 + + col1 FROM tab0 AS cor0
----
1070
350
482

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col0 + col2 * + cor0.col0 * + ( col2 ) FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT + col0 + ( + col1 ) FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col0 * 61 + + 3 AS col1 FROM tab1
----
186
3907
4883

query I rowsort
SELECT DISTINCT col1 * + col1 + col1 AS col2 FROM tab1
----
110
182
702

query I rowsort
SELECT tab2.col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT + 34 + - ( - col1 ) AS col2 FROM tab0 cor0
----
120
125
131

query I rowsort
SELECT - + 84 + col1 AS col1 FROM tab2 cor0
----
-25
-53
-67

query I rowsort
SELECT DISTINCT - - 93 + col0 FROM tab2 AS cor0
----
100
171
172

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5874
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 / col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 / col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 * + col2 AS col2 FROM tab0 cor0
----
-96
1003
6633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - 45 col0 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT ALL col1 - - 73 AS col0 FROM tab0 AS cor0
----
159
164
170

query I rowsort
SELECT - ( col2 ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + cor1.col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col1 * + col2 + - ( 42 ) * + col0 FROM tab2
----
-1131
-3964
-4810

query I rowsort
SELECT ALL - 2 * col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT + cor0.col0 + - ( + 97 ) - - col1 * 10 FROM tab2 AS cor0
----
152
220
571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - col2 * col1 + 89 + - tab0.col2 AS col2 FROM tab0
----
-2782
-7455
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + 83 col1 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT 21 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT ALL col1 DIV + col0 col1 FROM tab1
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL col1 / + col0 col1 FROM tab1
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5889
SELECT - - col1 DIV + 80 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5889
SELECT - - col1 / + 80 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT col0 DIV + ( col1 ) FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5890
SELECT col0 / + ( col1 ) FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - + ( 71 ) + + col0 FROM tab1 AS cor0
----
-68
-7
9

query I rowsort
SELECT 23 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1472
1840
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-5893
SELECT + 94 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5893
SELECT + 94 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5894
SELECT - + CAST( NULL AS SIGNED ) + 33 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT - + CAST ( NULL AS INTEGER ) + 33 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT ALL + 81 + - col1 DIV - 88 col1 FROM tab2 AS cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL + 81 + - col1 / - 88 col1 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT 69 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT DISTINCT ( - col1 ) + + 63 FROM tab0 AS cor0
----
-23
-28
-34

query I rowsort
SELECT DISTINCT + 0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT ALL + col0 + - col2 * + col2 DIV - col2 + col0 FROM tab0 cor0
----
260
71
81

skipif mysql # not compatible
query I rowsort label-5899
SELECT ALL + col0 + - col2 * + col2 / - col2 + col0 FROM tab0 cor0
----
260
71
81

query I rowsort
SELECT 3 * cor0.col1 + ( 89 ) FROM tab0 AS cor0
----
347
362
380

query I rowsort
SELECT + 97 * col0 + + 7 FROM tab2 AS cor0
----
686
7573
7670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 80 col1 FROM tab1 AS cor0
----
-1040
-2080
-800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5903
SELECT + col1 * + col2 + ( col1 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT + col1 * + col2 + ( col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 72 * col1 FROM tab0
----
6192
6552
6984

query I rowsort
SELECT ALL 29 * col2 AS col1 FROM tab1
----
1566
1653
2784

query I rowsort
SELECT - 44 - - tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1fcbeea51ff1a54e32ba22049d06e072

query I rowsort
SELECT DISTINCT 41 * col1 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT ALL ( col2 ) + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col0 - tab1.col1 AS col1 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab1.col0 * ( - ( col2 ) ) - - col2 col2 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT + 9 * tab0.col0 AS col2 FROM tab0
----
216
315
801

query I rowsort
SELECT DISTINCT + 0 * + tab0.col2 - col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT ALL col2 - - col1 DIV col2 AS col1 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL col2 - - col1 / col2 AS col1 FROM tab0
----
35
83
98

query I rowsort
SELECT - + 78 + col0 FROM tab0 AS cor0
----
-43
-54
11

query I rowsort
SELECT + tab0.col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col0 * + ( - ( + col2 ) ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 26 + col2 AS col0 FROM tab2 AS cor0
----
0
1
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT - cor0.col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5918
SELECT - cor0.col1 / + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 38 * + 87 FROM tab2 AS cor0
----
3306
3306
3306

query I rowsort
SELECT - 67 * col1 * - col2 AS col1 FROM tab2 AS cor0
----
102778
43282
56079

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5921
SELECT DISTINCT - CAST( - 5 AS SIGNED ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - CAST ( - 5 AS INTEGER ) FROM tab2 AS cor0
----
5

query I rowsort
SELECT 19 + cor0.col2 FROM tab1 AS cor0
----
115
73
76

query I rowsort
SELECT DISTINCT + - 39 * 93 FROM tab0 AS cor0
----
-3627

onlyif mysql # use DIV operator for integer division
query I rowsort label-5924
SELECT ALL ( - col1 ) DIV - col0 AS col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL ( - col1 ) / - col0 AS col0 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT - 5 DIV cor0.col1 + - 16 FROM tab1, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

skipif mysql # not compatible
query I rowsort label-5926
SELECT - 5 / cor0.col1 + - 16 FROM tab1, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL - 66 + col2 * col1 FROM tab0 AS cor0
----
2772
31
7396

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5928
SELECT ALL + - CAST( NULL AS SIGNED ) + - 15 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 15 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 68 + col0 AS col0 FROM tab1 AS cor0
----
132
148
71

query I rowsort
SELECT DISTINCT + ( col2 ) + - col2 * - col1 AS col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + col0 * - col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL - col0 + col2 * + col2 FROM tab0 cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-5933
SELECT DISTINCT + col1 DIV col2 + + ( col1 ) DIV cor0.col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + col1 / col2 + + ( col1 ) / cor0.col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * cor0.col1 + - cor0.col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-5935
SELECT ALL + - col0 DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL + - col0 / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * col1 * col1 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT DISTINCT 51 DIV ( - col1 ) FROM tab2
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT 51 / ( - col1 ) FROM tab2
----
-1
-3
0

query I rowsort
SELECT DISTINCT - 69 + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7465
-8350
-9478

onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT ALL + col0 * - col0 DIV col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + col0 * - col0 / col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 26 * col0 + col2 FROM tab1
----
132
1721
2176

onlyif mysql # use DIV operator for integer division
query I rowsort label-5941
SELECT DISTINCT - ( col0 ) + + tab0.col2 + 32 DIV 64 AS col0 FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT - ( col0 ) + + tab0.col2 + 32 / 64 AS col0 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5942
SELECT col1 DIV - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-5942
SELECT col1 / - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT cor0.col0 - + col0 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - col0 * - 12 + - 37 AS col1 FROM tab0 AS cor0
----
1031
251
383

query I rowsort
SELECT DISTINCT - + col2 + - 46 * col1 AS col1 FROM tab0 AS cor0
----
-3989
-4268
-4463

onlyif mysql # use DIV operator for integer division
query I rowsort label-5946
SELECT DISTINCT + col0 * col2 + + 85 * - col2 + + col0 DIV + col1 FROM tab2 cor0
----
-181
-2106
-224

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + col0 * col2 + + 85 * - col2 + + col0 / + col1 FROM tab2 cor0
----
-181
-2106
-224

onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT ALL + + col0 DIV + 3 - + col0 * col1 * - col1 FROM tab1 AS cor0
----
13546
2029
6421

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL + + col0 / + 3 - + col0 * col1 * - col1 FROM tab1 AS cor0
----
13546
2029
6421

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( + col0 ) col2 FROM tab0 cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT DISTINCT + col1 + + 40 DIV col0 FROM tab2 AS cor0
----
17
36
59

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT + col1 + + 40 / col0 FROM tab2 AS cor0
----
17
36
59

query I rowsort
SELECT col0 + col0 * + 76 AS col2 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT - + col1 + 20 FROM tab0 AS cor0
----
-66
-71
-77

query I rowsort
SELECT ALL - col0 + cor0.col1 * 17 FROM tab2 AS cor0
----
210
520
925

query I rowsort
SELECT ALL + col2 + 45 AS col1 FROM tab0 AS cor0
----
127
46
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 70 col0 FROM tab0 AS cor0
----
156
161
167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - col2 col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + col2 * + col0 - + col0 * col0 AS col0 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT DISTINCT - - col0 * col2 * col2 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - - col2 + col0 + - 52 FROM tab0 AS cor0
----
-16
119
5

query I rowsort
SELECT DISTINCT + col0 + 93 AS col0 FROM tab2 AS cor0
----
100
171
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col1 col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT col0 DIV col2 + - col1 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-5962
SELECT col0 / col2 + - col1 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT + ( ( + cor0.col0 ) ) + cor0.col0 * + 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 132572ccde876ec0a7760cbb6b642cf8

query I rowsort
SELECT + + 20 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5965
SELECT - CAST( NULL AS SIGNED ) + + cor0.col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT - CAST ( NULL AS INTEGER ) + + cor0.col0 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 + ( - col1 ) + 92 * + col1 AS col2 FROM tab0 AS cor0
----
7859
8363
8828

query I rowsort
SELECT DISTINCT - col2 + + ( - cor0.col0 ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - col1 + 9 * - col2 FROM tab1 AS cor0
----
-512
-523
-877

query I rowsort
SELECT - 53 + col0 FROM tab2 AS cor0
----
-46
25
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 48 col0 FROM tab1 cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + col0 col0 FROM tab2 AS cor0
----
106
177
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-5972
SELECT ALL - ( col0 ) DIV ( + col2 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5972
SELECT ALL - ( col0 ) / ( + col2 ) FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT col1 DIV cor0.col0 AS col2 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5973
SELECT col1 / cor0.col0 AS col2 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT + col0 * + col2 + + col0 * cor0.col2 - ( - col0 ) AS col1 FROM tab2 AS cor0
----
385
4134
6083

query I rowsort
SELECT + + col0 - 29 * + col2 FROM tab1 AS cor0
----
-1563
-1589
-2704

query I rowsort
SELECT + col2 + - ( 42 ) AS col0 FROM tab2 AS cor0
----
-15
-16
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5977
SELECT + col2 DIV + 48 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5977
SELECT + col2 / + 48 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 60 + tab0.col2 * - col0 * - tab0.col0 + col2 * + 19 AS col1 FROM tab0
----
1304
19695
651140

query I rowsort
SELECT - col2 * col0 - 4 FROM tab1 AS cor0
----
-166
-3652
-7684

query I rowsort
SELECT 10 * + col2 FROM tab2
----
260
270
380

query I rowsort
SELECT DISTINCT ( col0 ) + + 69 FROM tab0
----
104
158
93

query I rowsort
SELECT - 56 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5983
SELECT + - 55 DIV + col1 + + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5983
SELECT + - 55 / + col1 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ( - cor0.col2 ) * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + cor0.col1 * col2 * + col0 + col1 FROM tab0 AS cor0
----
3492
664209
68198

onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT ALL + col1 DIV - col2 + col1 FROM tab0 AS cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-5986
SELECT ALL + col1 / - col2 + col1 FROM tab0 AS cor0
----
0
84
90

query I rowsort
SELECT DISTINCT + 41 * col0 FROM tab0 AS cor0
----
1435
3649
984

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - 80 AS REAL ) + col0 + col2 / col1 AS col2 FROM tab0 AS cor0
----
104
115
169

query I rowsort
SELECT 53 + - col2 * + col0 AS col0 FROM tab1 AS cor0
----
-109
-3595
-7627

query I rowsort
SELECT ALL - 22 * 59 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1315
-1329
-1357

query I rowsort
SELECT DISTINCT col2 + 61 FROM tab0
----
143
62
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5992
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 30 FROM tab0, tab2 cor0, tab1 AS cor1
----
30

query I rowsort
SELECT - + col0 + + col2 * + col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT col2 + col1 * tab1.col1 AS col0 FROM tab1
----
157
265
730

query I rowsort
SELECT - col0 + + tab1.col2 * col2 * 62 FROM tab1
----
180789
201374
571312

query I rowsort
SELECT DISTINCT - col0 + - col2 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-35
1032
6553

query I rowsort
SELECT DISTINCT 56 * + cor0.col0 + col0 + 63 FROM tab1 AS cor0
----
234
3711
4623

query I rowsort
SELECT ( + col2 ) * col0 * ( tab1.col0 ) + - col0 FROM tab1
----
233408
483
614320

query I rowsort
SELECT DISTINCT - ( 45 ) * + col1 AS col1 FROM tab0
----
-3870
-4095
-4365

query I rowsort
SELECT ALL col2 + - col2 - - 23 AS col1 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT + col2 * col0 + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - 31 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7365
8250
9378

query I rowsort
SELECT + - cor0.col1 + cor0.col2 * ( - col1 ) FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL ( 50 * + col0 ) FROM tab0
----
1200
1750
4450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + - col0 col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - - cor0.col0 FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL - col2 * + 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 - + col1 * - col1 FROM tab1 cor0
----
43
622
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6010
SELECT - col0 + CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT - col0 + CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 48 FROM tab1 AS cor0
----
48
6
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6012
SELECT - CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT - CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - 49 * + col2 AS col1 FROM tab1
----
-27930
-61152
-68796

query I rowsort
SELECT - 80 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1398
-2507
-4746

query I rowsort
SELECT + col1 + + cor0.col2 * + col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + - cor0.col1 * + 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 079de997d46ea33a34b419c94415338e

query I rowsort
SELECT - col1 * 71 + + col1 AS col2 FROM tab1 AS cor0
----
-1820
-700
-910

query I rowsort
SELECT DISTINCT - col1 + - ( + col0 * col0 ) AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT + col1 * cor0.col0 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
1178
1632
8083

onlyif mysql # use DIV operator for integer division
query I rowsort label-6020
SELECT DISTINCT - col1 DIV + 42 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - col1 / + 42 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT - col2 DIV - ( - ( cor0.col1 ) * + CAST( col0 AS SIGNED ) + + col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT - col2 / - ( - ( cor0.col1 ) * + CAST ( col0 AS INTEGER ) + + col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + 29 AS col0 FROM tab2 AS cor0
----
46
60
88

query I rowsort
SELECT ALL + col0 + - ( col1 ) FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + col0 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + col0 + ( - col2 * col2 ) FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL col2 - - col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + - col1 + + 35 AS col1 FROM tab0 AS cor0
----
-51
-56
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( + col2 ) ) col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT cor0.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT - + ( + 73 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1241
-2263
-4307

query I rowsort
SELECT DISTINCT + col0 * - ( + col1 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - 53 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL + - col0 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6034
SELECT DISTINCT cor0.col1 + - col2 + - col2 DIV 91 FROM tab1 cor0
----
-28
-47
-84

skipif mysql # not compatible
query I rowsort label-6034
SELECT DISTINCT cor0.col1 + - col2 + - col2 / 91 FROM tab1 cor0
----
-28
-47
-84

query I rowsort
SELECT DISTINCT - + col2 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + + 7 * + col0 + + col0 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT 83 * col2 - 46 FROM tab1 AS cor0
----
4436
4685
7922

onlyif mysql # use DIV operator for integer division
query I rowsort label-6038
SELECT DISTINCT + 33 + col0 DIV 10 FROM tab0 AS cor0
----
35
36
41

skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT + 33 + col0 / 10 FROM tab0 AS cor0
----
35
36
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT ALL col1 + - col1 * ( 21 ) DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-11
-8
5

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL col1 + - col1 * ( 21 ) / cor0.col1 AS col1 FROM tab1 AS cor0
----
-11
-8
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6040
SELECT col1 + - col2 DIV ( + col1 ) AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6040
SELECT col1 + - col2 / ( + col1 ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT + 20 * - col2 + + col2 * - col0 FROM tab2
----
-2548
-3762
-729

query I rowsort
SELECT + col1 * + col1 + 71 FROM tab1 AS cor0
----
171
240
747

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6043
SELECT DISTINCT - col2 + col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT - col2 + col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * col0 * + col1 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT 89 * col0 FROM tab1
----
267
5696
7120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + + col2 col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT + col1 + col0 * col2 AS col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - 88 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-88

query I rowsort
SELECT DISTINCT - col1 * ( + col0 * col0 ) + col0 * + 75 FROM tab0 cor0
----
-116200
-47736
-714136

query I rowsort
SELECT + col2 * + col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - - col0 * col1 + 96 FROM tab2 cor0
----
1439
313
4698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 75 col0 FROM tab0 AS cor0
----
-7
42
74

query I rowsort
SELECT ALL col0 - 66 FROM tab0 AS cor0
----
-31
-42
23

query I rowsort
SELECT col2 * + col0 + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + 69 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT ALL - cor0.col0 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + col2 * - col0 col2 FROM tab1
----
-210
-3696
-7728

query I rowsort
SELECT DISTINCT ( - col0 * col0 ) AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT - - cor0.col1 + col0 * col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + col1 * ( col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ( + 45 ) + - col0 AS col2 FROM tab0
----
-44
10
21

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab2, tab0 AS cor0
----
44

query I rowsort
SELECT + + 51 * - cor0.col2 FROM tab2 AS cor0
----
-1326
-1377
-1938

query I rowsort
SELECT ALL 71 * col1 FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT ALL col2 + col2 * col2 FROM tab1 cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT + + col1 * col1 * 62 + - cor0.col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
10479
41913
6201

skipif mysql # not compatible
query I rowsort label-6067
SELECT + + col1 * col1 * 62 + - cor0.col0 / - col0 AS col2 FROM tab1 AS cor0
----
10479
41913
6201

query I rowsort
SELECT - 58 + col2 - 75 FROM tab2 AS cor0
----
-106
-107
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6069
SELECT DISTINCT + - 50 * + cor0.col1 + CAST( + 3 AS SIGNED ) FROM tab0 AS cor0
----
-4297
-4547
-4847

skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT + - 50 * + cor0.col1 + CAST ( + 3 AS INTEGER ) FROM tab0 AS cor0
----
-4297
-4547
-4847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 - - col0 col2 FROM tab0 cor0
----
100
111
165

query I rowsort
SELECT DISTINCT ( col2 ) * col2 AS col1 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - 58 - col2 FROM tab0
----
-140
-59
-91

query I rowsort
SELECT ALL + - col0 + - col0 + - ( + 69 ) * - col2 AS col0 FROM tab1 AS cor0
----
3720
3805
6464

query I rowsort
SELECT + + ( col0 ) + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col1 * - col1 - + ( + col1 * col1 ) AS col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 12 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-52
-68
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6078
SELECT DISTINCT + col2 * + col1 + col1 - cor0.col1 DIV col2 FROM tab0 AS cor0
----
2922
7552
97

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT + col2 * + col1 + col1 - cor0.col1 / col2 FROM tab0 AS cor0
----
2922
7552
97

query I rowsort
SELECT - cor0.col1 * col2 * col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-22568
-24531
-39825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL + cor0.col2 * 47 AS col1 FROM tab0 cor0
----
1551
3854
47

query I rowsort
SELECT + col0 + col1 * cor0.col2 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT col2 DIV + col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6083
SELECT col2 / + col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - 56 + 19 AS col1 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT - 53 * 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + 45 ) * col1 AS col0 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT - + 27 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-2214
-27
-891

query I rowsort
SELECT DISTINCT - + 3 * + cor0.col0 + + col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6089
SELECT ALL 86 + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL 86 + col1 / - col2 AS col1 FROM tab1 AS cor0
----
86
86
86

query I rowsort
SELECT - 52 + col1 AS col0 FROM tab2 AS cor0
----
-21
-35
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6091
SELECT DISTINCT - + col0 DIV col0 + - col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT - + col0 / col0 + - col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ( col1 ) + + 23 AS col0 FROM tab0
----
109
114
120

query I rowsort
SELECT DISTINCT col0 * - col0 + - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL - col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL cor0.col1 * + col1 + + col1 * - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( col1 ) * + col1 + + col1 AS col0 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT ALL - col1 + col1 + - cor0.col1 DIV col2 col2 FROM tab0 cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL - col1 + col1 + - cor0.col1 / col2 col2 FROM tab0 cor0
----
-1
-2
-97

query I rowsort
SELECT col0 * - 15 + col0 FROM tab2 AS cor0
----
-1092
-1106
-98

query I rowsort
SELECT + col2 * + col2 * - col0 + - col0 * + col2 FROM tab2 AS cor0
----
-117078
-5292
-54756

query I rowsort
SELECT + col0 + cor0.col2 * col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - - col0 + 70 AS col1 FROM tab2 AS cor0
----
148
149
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6102
SELECT col2 + CAST( NULL AS SIGNED ) * 34 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT col2 + CAST ( NULL AS INTEGER ) * 34 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT + - col0 DIV col0 + + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-6103
SELECT + - col0 / col0 + + col0 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( + 53 ) col1 FROM tab0 AS cor0
----
139
144
150

query I rowsort
SELECT + col0 * - cor0.col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6106
SELECT ALL CAST( + col0 AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL CAST ( + col0 AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) * col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6108
SELECT ALL col1 + + col0 DIV col0 AS col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL col1 + + col0 / col0 AS col1 FROM tab0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT ALL 55 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - + col2 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL + 36 + - ( col1 ) * ( - col1 ) + + col1 AS col1 FROM tab2
----
1028
342
3576

query I rowsort
SELECT DISTINCT tab0.col2 * - col2 * - 69 FROM tab0
----
463956
69
75141

query I rowsort
SELECT DISTINCT tab1.col0 + 6 FROM tab1, tab1 AS cor0
----
70
86
9

query I rowsort
SELECT - col1 * col0 + 78 FROM tab1 AS cor0
----
-562
-962
0

query I rowsort
SELECT + col0 + - col0 * + 85 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
175464
288610
688504

query I rowsort
SELECT ALL + col2 * + col2 + col1 AS col1 FROM tab2
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6118
SELECT CAST( 83 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-249
-5312
-6640

skipif mysql # not compatible
query I rowsort label-6118
SELECT CAST ( 83 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT DISTINCT - + ( col2 ) + col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + col2 + 95 * col2 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT ALL - col1 + 13 * - col0 * + ( + 39 ) AS col2 FROM tab2 cor0
----
-3580
-39605
-40070

query I rowsort
SELECT col0 - col0 * - col2 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6124
SELECT ALL + cor0.col2 DIV - col1 col0 FROM tab2 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL + cor0.col2 / - col1 col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT - 60 * 95 AS col1 FROM tab2 AS cor0
----
-5700
-5700
-5700

query I rowsort
SELECT - + 77 + + cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-39
19
60

query I rowsort
SELECT ALL - + col1 + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - 13 + + tab2.col1 AS col2 FROM tab2
----
18
4
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT + col0 + + col2 * cor0.col2 + 62 DIV - col1 AS col1 FROM tab0 AS cor0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-6130
SELECT + col0 + + col2 * cor0.col2 + 62 / - col1 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 + - col1 + - col1 AS col1 FROM tab2 AS cor0
----
127
1910
2968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + + col1 col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT + - col2 * col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT - - col1 DIV 68 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6135
SELECT - - col1 / 68 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6136
SELECT - - col2 * col1 DIV col2 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6136
SELECT - - col2 * col1 / col2 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + + 99 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT DISTINCT - ( 49 ) AS col1 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT DISTINCT col2 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6140
SELECT col0 * + 55 + - col1 + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
139
3510
4387

skipif mysql # not compatible
query I rowsort label-6140
SELECT col0 * + 55 + - col1 + cor0.col1 / + col2 FROM tab1 AS cor0
----
139
3510
4387

query I rowsort
SELECT + + ( col0 ) + col1 * 57 FROM tab1 cor0
----
1485
634
821

query I rowsort
SELECT DISTINCT + - 65 * + col1 AS col2 FROM tab2 AS cor0
----
-1105
-2015
-3835

onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT DISTINCT - col1 DIV ( - cor0.col0 ) FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - col1 / ( - cor0.col0 ) FROM tab1 AS cor0
----
0
8

query I rowsort
SELECT + col1 + col0 * col0 * 89 FROM tab2 AS cor0
----
4392
541535
555466

query I rowsort
SELECT ALL - + col0 * col1 * - col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL col2 - + 15 FROM tab1
----
39
42
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 * ( - cor0.col0 + - col2 ) * + col0 col2 FROM tab0 AS cor0
----
-6300
-6840
-76095

query I rowsort
SELECT - - 99 * - 87 + col1 FROM tab0 AS cor0
----
-8516
-8522
-8527

query I rowsort
SELECT ALL 83 * - cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e5b1c220db3ebf751d9ea4f68389ea76

query I rowsort
SELECT DISTINCT - - 79 * + col1 * + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
163142
268302
639912

query I rowsort
SELECT DISTINCT - 66 + 3 + col1 FROM tab0 AS cor0
----
23
28
34

query I rowsort
SELECT col2 + - 46 * col1 AS col0 FROM tab2 AS cor0
----
-1399
-2688
-744

query I rowsort
SELECT + col1 - - ( + col2 ) FROM tab0
----
119
173
98

query I rowsort
SELECT - col0 * + cor0.col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6155
SELECT tab0.col1 * - tab0.col2 * + col1 + ( col1 ) * - col0 + col1 DIV - 69 AS col0 FROM tab0
----
-12805
-246133
-687142

skipif mysql # not compatible
query I rowsort label-6155
SELECT tab0.col1 * - tab0.col2 * + col1 + ( col1 ) * - col0 + col1 / - 69 AS col0 FROM tab0
----
-12805
-246133
-687142

query I rowsort
SELECT + col2 * - ( - col2 ) + + ( + col2 ) * - col1 + 77 AS col1 FROM tab0
----
-1672
-19
-661

query I rowsort
SELECT DISTINCT - 73 + col0 AS col0 FROM tab1
----
-70
-9
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT DISTINCT col2 DIV - tab2.col1 + + col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT col2 / - tab2.col1 + + col1 FROM tab2
----
15
31
59

query I rowsort
SELECT - col0 + - col1 * + col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + 59 * 36 FROM tab2, tab1, tab0 AS cor0
----
2124

query I rowsort
SELECT DISTINCT + col0 * 54 AS col2 FROM tab2 cor0
----
378
4212
4266

query I rowsort
SELECT DISTINCT col2 * 33 AS col0 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT 14 * - col2 * col0 FROM tab0
----
-102172
-11088
-490

onlyif mysql # use DIV operator for integer division
query I rowsort label-6165
SELECT DISTINCT col1 + 47 DIV + col0 AS col2 FROM tab2
----
17
37
59

skipif mysql # not compatible
query I rowsort label-6165
SELECT DISTINCT col1 + 47 / + col0 AS col2 FROM tab2
----
17
37
59

query I rowsort
SELECT DISTINCT + - col2 * + ( col2 ) FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT col1 + cor0.col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + col2 + - col0 * + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT ( col2 + + tab0.col1 ) * tab0.col0 AS col1 FROM tab0
----
15397
2856
3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * col1 col2 FROM tab2
----
-205379
-29791
-4913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6171
SELECT col2 + CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6171
SELECT col2 + CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + col1 * col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL col2 * ( - cor0.col1 ) FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6174
SELECT ALL + - col2 + + CAST( col1 * - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif mysql # not compatible
query I rowsort label-6174
SELECT ALL + - col2 + + CAST ( col1 * - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 58 col2 FROM tab1 AS cor0
----
-68
-71
-84

query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) - col1 * 32 AS col0 FROM tab0 AS cor0
----
-3105
-3841
-9636

query I rowsort
SELECT cor0.col2 * col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT col2 + 12 FROM tab0 AS cor0
----
13
45
94

query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
-26112
-598347
0

query I rowsort
SELECT DISTINCT - cor0.col0 + 29 * - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-18813
-24280
-44564

onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT ALL cor0.col2 - - cor0.col2 DIV 33 AS col2 FROM tab1 AS cor0
----
55
58
98

skipif mysql # not compatible
query I rowsort label-6181
SELECT ALL cor0.col2 - - cor0.col2 / 33 AS col2 FROM tab1 AS cor0
----
55
58
98

query I rowsort
SELECT + col2 + + 55 AS col2 FROM tab2 cor0
----
81
82
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6183
SELECT - col0 * - col0 + - 39 DIV - cor0.col1 AS col0 FROM tab2 cor0
----
50
6084
6243

skipif mysql # not compatible
query I rowsort label-6183
SELECT - col0 * - col0 + - 39 / - cor0.col1 AS col0 FROM tab2 cor0
----
50
6084
6243

query I rowsort
SELECT DISTINCT - 69 * - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1794
690
897

query I rowsort
SELECT ALL - tab0.col0 * + 52 * - 53 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 85a68f15ab0c83242f91f683a38a3cba

query I rowsort
SELECT + - col2 * - 66 + - col1 * + col1 FROM tab2 AS cor0
----
-1765
2219
821

query I rowsort
SELECT DISTINCT 34 * + 7 + col1 AS col0 FROM tab2
----
255
269
297

query I rowsort
SELECT DISTINCT ( col0 ) + - col0 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6189
SELECT CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6189
SELECT CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT - col2 * 84 DIV col0 FROM tab1
----
-100
-1512
-74

skipif mysql # not compatible
query I rowsort label-6190
SELECT - col2 * 84 / col0 FROM tab1
----
-100
-1512
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT + ( + tab0.col1 ) + col2 DIV - ( col2 * col0 ) + col2 * - col0 FROM tab0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-6191
SELECT + ( + tab0.col1 ) + col2 / - ( col2 * col0 ) + col2 * - col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL + col1 * col0 * col2 + + ( col0 ) AS col0 FROM tab1
----
36544
4215
99920

onlyif mysql # use DIV operator for integer division
query I rowsort label-6193
SELECT ALL - + ( + 27 ) + + col0 - + col2 DIV - 86 FROM tab0 AS cor0
----
-3
62
8

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL - + ( + 27 ) + + col0 - + col2 / - 86 FROM tab0 AS cor0
----
-3
62
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6194
SELECT DISTINCT 63 DIV cor0.col0 col2 FROM tab0, tab1 AS cor0
----
0
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT 63 / cor0.col0 col2 FROM tab0, tab1 AS cor0
----
0
21

query I rowsort
SELECT cor1.col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + ( - col1 + tab0.col1 ) * col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + - 53 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1378
-530
-689

query I rowsort
SELECT DISTINCT - - col1 - col0 FROM tab0 AS cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT - col1 DIV col1 + - col1 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-6199
SELECT - col1 / col1 + - col1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT ALL + col2 * col0 + + 12 * col0 * col2 AS col2 FROM tab1 AS cor0
----
2106
47424
99840

query I rowsort
SELECT ALL - 5 * - col1 AS col0 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT 59 * col2 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
3240
3420
5760

query I rowsort
SELECT + - 57 + + col2 FROM tab0 AS cor0
----
-24
-56
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT - + 28 + - col1 AS col0 FROM tab0 AS cor0
----
-114
-119
-125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * - col2 + 70 col2 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT + + ( col0 ) + 61 * col0 * + col0 FROM tab1 AS cor0
----
249920
390480
552

query I rowsort
SELECT ALL col1 + - col2 - - ( + col2 ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT col0 + col1 - - col2 FROM tab0
----
133
143
262

query I rowsort
SELECT ( tab2.col2 * ( 88 ) ) FROM tab2
----
2288
2376
3344

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6211
SELECT - - cor0.col0 + col0 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT - - cor0.col0 + col0 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col0 + - 51 FROM tab2 cor0
----
-2079
-240
-3053

query I rowsort
SELECT + + cor0.col0 + ( + col1 ) * - col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL col0 * + ( col0 + - col2 ) FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT - + cor0.col0 * col2 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT col0 * + col2 + - ( col2 + - col1 ) FROM tab0 AS cor0
----
131
7307
845

onlyif mysql # use DIV operator for integer division
query I rowsort label-6217
SELECT tab0.col1 DIV + col2 AS col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6217
SELECT tab0.col1 / + col2 AS col2 FROM tab0
----
1
2
97

query I rowsort
SELECT + ( - col2 ) * 57 FROM tab1
----
-3078
-3249
-5472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * 85 col2 FROM tab2 AS cor0
----
-2210
-2295
-3230

query I rowsort
SELECT + col2 + + 73 AS col0 FROM tab0 AS cor0
----
106
155
74

query I rowsort
SELECT col1 - 49 * 80 AS col1 FROM tab1 AS cor0
----
-3894
-3907
-3910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6222
SELECT DISTINCT col1 * CAST( 49 AS SIGNED ) FROM tab0 AS cor0
----
4214
4459
4753

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT col1 * CAST ( 49 AS INTEGER ) FROM tab0 AS cor0
----
4214
4459
4753

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6223
SELECT - col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6223
SELECT - col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6224
SELECT ALL + col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL + col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 29 AS col0 FROM tab0 AS cor0
----
115
120
126

query I rowsort
SELECT + - 3 + - col1 AS col1 FROM tab2 AS cor0
----
-20
-34
-62

query I rowsort
SELECT - col2 + - tab2.col2 * + col2 FROM tab2
----
-1482
-702
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 14 ) * + col0 col0 FROM tab1 AS cor0
----
1120
42
896

onlyif mysql # use DIV operator for integer division
query I rowsort label-6229
SELECT - col2 DIV 45 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6229
SELECT - col2 / 45 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT ALL - + 29 AS col1 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT + 76 AS col2 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT ALL 77 * tab2.col0 FROM tab2
----
539
6006
6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-6233
SELECT + col1 + + col1 DIV + tab1.col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6233
SELECT + col1 + + col1 / + tab1.col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT 32 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
32

query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 * + cor0.col1 - col2 AS col0 FROM tab0 AS cor0
----
2781
61
7291

query I rowsort
SELECT - col0 - - ( + col1 ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col2 * - col2 * - cor0.col1 + - col0 FROM tab2 AS cor0
----
22592
24469
39806

query I rowsort
SELECT ALL - 94 + col0 FROM tab1 cor0
----
-14
-30
-91

query I rowsort
SELECT ALL + + cor0.col1 + col1 + col1 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT ALL - + 77 + col2 FROM tab0 AS cor0
----
-44
-76
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + 26 ) - col1 col2 FROM tab0 AS cor0
----
-60
-65
-71

query I rowsort
SELECT + 47 * - ( - col0 ) - + 72 AS col2 FROM tab1 AS cor0
----
2936
3688
69

query I rowsort
SELECT DISTINCT - col1 * 56 AS col2 FROM tab1 cor0
----
-1456
-560
-728

onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT DISTINCT - cor0.col1 DIV - col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6244
SELECT DISTINCT - cor0.col1 / - col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + - col2 col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL col2 * + 60 - tab1.col1 * - col1 AS col1 FROM tab1
----
3520
3916
5929

onlyif mysql # use DIV operator for integer division
query I rowsort label-6247
SELECT ALL - col2 DIV - tab1.col2 + col1 - tab1.col0 AS col1 FROM tab1
----
-53
-66
24

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL - col2 / - tab1.col2 + col1 - tab1.col0 AS col1 FROM tab1
----
-53
-66
24

query I rowsort
SELECT + 13 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67

query I rowsort
SELECT ALL - col2 + + col1 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL + + col2 + 26 * col2 + 25 * col2 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT + col1 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT 82 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1330
1486
652

query I rowsort
SELECT DISTINCT + - col1 + col0 * col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT + - ( cor0.col1 ) + col2 * + 69 AS col2 FROM tab0 AS cor0
----
-28
2191
5567

query I rowsort
SELECT DISTINCT - 91 * col1 AS col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT ALL + + col0 DIV 47 + + col0 col0 FROM tab0 AS cor0
----
24
35
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + + col0 / 47 + + col0 col0 FROM tab0 AS cor0
----
24
35
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6257
SELECT + + col2 DIV col1 + + cor0.col0 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-6257
SELECT + + col2 / col1 + + cor0.col0 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT col2 + + 31 AS col1 FROM tab1 AS cor0
----
127
85
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col1 ) + col1 - col2 * - col2 col1 FROM tab2 AS cor0
----
1478
791
794

query I rowsort
SELECT - ( - col2 ) * + col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT + - cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT + 54 * col2 FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT + col0 * + cor0.col0 + - ( - col0 ) * col0 * col2 FROM tab1 AS cor0
----
237568
495
620800

query I rowsort
SELECT + 96 * col1 + ( 71 ) AS col2 FROM tab0
----
8327
8807
9383

query I rowsort
SELECT + 10 - + col0 FROM tab2
----
-68
-69
3

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT DISTINCT + col1 * - col2 * cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT 45 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - col2 * ( 23 + col1 ) FROM tab0 AS cor0
----
-120
-3597
-9348

query I rowsort
SELECT 55 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT DISTINCT - col0 + 51 * - col1 AS col0 FROM tab1 AS cor0
----
-1329
-574
-743

query I rowsort
SELECT DISTINCT - col0 + col1 * - col1 FROM tab1 AS cor0
----
-164
-249
-679

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + - col0 col2 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT + cor0.col1 DIV col1 col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6275
SELECT + cor0.col1 / col1 col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - col1 + 71 * + col0 FROM tab0 cor0
----
1618
2388
6228

onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT col2 + col2 DIV - 78 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6277
SELECT col2 + col2 / - 78 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL + col1 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6279
SELECT DISTINCT - - cor0.col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT - - cor0.col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 20 col0 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT + 5 * cor0.col2 FROM tab0 cor0
----
165
410
5

query I rowsort
SELECT - + col1 * - 64 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT DISTINCT + + 6 * + col1 + col0 AS col1 FROM tab0 AS cor0
----
540
617
635

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 15ae1b54cae2dcf5c6eef7f1d15689eb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6285
SELECT col1 + CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6285
SELECT col1 + CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT col0 * + col0 + - 36 AS col0 FROM tab2 AS cor0
----
13
6048
6205

query I rowsort
SELECT - ( - 98 ) * - cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b21186989b2ac3c69310d1afbf730649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + col1 col2 FROM tab2 AS cor0
----
104
118
146

query I rowsort
SELECT - - ( + col1 ) + ( - col0 + col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
-572
550
884

query I rowsort
SELECT DISTINCT + 37 + - col0 FROM tab0 AS cor0
----
-52
13
2

query I rowsort
SELECT + 82 * + col0 + ( - col2 ) AS col0 FROM tab2 AS cor0
----
547
6370
6440

query I rowsort
SELECT DISTINCT - + 46 FROM tab1 AS cor0
----
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT - 0 DIV ( col1 ) + - ( 5 ) AS col2 FROM tab1
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-6293
SELECT - 0 / ( col1 ) + - ( 5 ) AS col2 FROM tab1
----
-5
-5
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT ( - col2 ) DIV - tab2.col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6294
SELECT ( - col2 ) / - tab2.col0 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 + col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL - col2 - - col0 * - 92 FROM tab0 cor0
----
-2241
-3221
-8270

query I rowsort
SELECT + 68 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6298
SELECT DISTINCT - col0 DIV - 17 + tab0.col2 AS col2 FROM tab0
----
3
34
87

skipif mysql # not compatible
query I rowsort label-6298
SELECT DISTINCT - col0 / - 17 + tab0.col2 AS col2 FROM tab0
----
3
34
87

query I rowsort
SELECT - cor0.col2 * - 38 * - col1 AS col2 FROM tab1 AS cor0
----
-21660
-47424
-53352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6300
SELECT - col0 * - CAST( NULL AS SIGNED ) * ( col1 + - CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT - col0 * - CAST ( NULL AS INTEGER ) * ( col1 + - CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT cor0.col2 + - ( - cor1.col0 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8bd72de8d7a75bcbd2619bca60945947

query I rowsort
SELECT - tab0.col2 + tab0.col2 * col0 * col1 AS col0 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT ALL - 13 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6305
SELECT ALL + 61 DIV col0 AS col2 FROM tab2
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6305
SELECT ALL + 61 / col0 AS col2 FROM tab2
----
0
0
8

query I rowsort
SELECT - - cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + + cor0.col1 * col0 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + col1 + + 80 AS col2 FROM tab1
----
106
90
93

query I rowsort
SELECT - + 75 * 51 + col2 + col0 FROM tab2 AS cor0
----
-3708
-3721
-3791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6310
SELECT CAST( col0 AS SIGNED ) * + col0 + + col2 * 26 + - col2 FROM tab2
----
6734
7191
724

skipif mysql # not compatible
query I rowsort label-6310
SELECT CAST ( col0 AS INTEGER ) * + col0 + + col2 * 26 + - col2 FROM tab2
----
6734
7191
724

query I rowsort
SELECT DISTINCT - ( - col0 ) AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT + col2 * col0 * col0 + + cor0.col0 + + col2 AS col0 FROM tab0 cor0
----
1261
19065
649693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * + col1 * 19 col0 FROM tab0
----
-141778
-1843
-53922

query I rowsort
SELECT DISTINCT + 66 - 56 FROM tab1, tab2, tab2 AS cor0
----
10

query I rowsort
SELECT 85 - cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 25e780d3a40fcebf335799e72d410eac

query I rowsort
SELECT + + col1 * 24 FROM tab1 AS cor0
----
240
312
624

query I rowsort
SELECT + + col2 + 19 AS col2 FROM tab1 AS cor0
----
115
73
76

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab1
----
-76

query I rowsort
SELECT + tab2.col1 + 90 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to db2efd3d4aedc1c3788ae5320527424f

query I rowsort
SELECT - col2 * + ( 40 ) + col1 * - col0 FROM tab1 AS cor0
----
-2238
-2920
-4880

query I rowsort
SELECT ALL + col1 + ( col2 * + col2 ) FROM tab1 cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6322
SELECT col2 * + CAST( NULL AS SIGNED ) + + 86 * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT col2 * + CAST ( NULL AS INTEGER ) + + 86 * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + col1 + - col0 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT col2 + + 30 AS col2 FROM tab2 AS cor0
----
56
57
68

query I rowsort
SELECT DISTINCT - - col0 * + ( col0 ) * - cor0.col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT tab2.col0 * - ( - col0 + + tab2.col2 * 84 ) FROM tab2
----
-15827
-164268
-245927

query I rowsort
SELECT ALL - - 35 - + 71 * col0 FROM tab2 cor0
----
-462
-5503
-5574

query I rowsort
SELECT ALL + cor0.col1 + ( col0 + + col2 * col1 ) AS col1 FROM tab1 AS cor0
----
1341
1433
644

query I rowsort
SELECT - 5 * 84 + - col0 FROM tab0 AS cor0
----
-444
-455
-509

query I rowsort
SELECT DISTINCT col2 * - 58 AS col0 FROM tab1
----
-3132
-3306
-5568

onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT - - col2 * 29 DIV col0 + 99 FROM tab1 AS cor0
----
124
133
621

skipif mysql # not compatible
query I rowsort label-6331
SELECT - - col2 * 29 / col0 + 99 FROM tab1 AS cor0
----
124
133
621

query I rowsort
SELECT cor0.col0 * - col0 - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - 8 + - col0 FROM tab0 cor0
----
-32
-43
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6334
SELECT + CAST( NULL AS SIGNED ) * col0 + + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT + CAST ( NULL AS INTEGER ) * col0 + + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 77 ) * cor0.col0 FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT ALL + cor0.col1 - - cor0.col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + + 8 * col1 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT ALL ( - col2 ) * col1 + cor0.col0 * 42 FROM tab0 AS cor0
----
-1830
-3724
1373

query I rowsort
SELECT + + 32 + cor0.col0 FROM tab1 AS cor0
----
112
35
96

query I rowsort
SELECT + 91 + col2 * col0 FROM tab2 AS cor0
----
2119
280
3093

onlyif mysql # use DIV operator for integer division
query I rowsort label-6341
SELECT 80 + col2 * 28 DIV 54 AS col2 FROM tab2 AS cor0
----
93
94
99

skipif mysql # not compatible
query I rowsort label-6341
SELECT 80 + col2 * 28 / 54 AS col2 FROM tab2 AS cor0
----
93
94
99

query I rowsort
SELECT col1 + col2 * 6 FROM tab0 AS cor0
----
103
284
583

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col0 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT ALL + - col0 * + col2 - + col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL - cor0.col1 * col2 + col0 * col1 AS col0 FROM tab1 AS cor0
----
-1326
-208
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6347
SELECT DISTINCT - - 82 DIV + cor0.col0 + col1 FROM tab2 AS cor0
----
18
42
60

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT - - 82 / + cor0.col0 + col1 FROM tab2 AS cor0
----
18
42
60

query I rowsort
SELECT ALL - - ( - col1 ) * col1 + + 87 FROM tab0 AS cor0
----
-7309
-8194
-9322

query I rowsort
SELECT DISTINCT - col0 * - col1 + 98 AS col0 FROM tab1 AS cor0
----
1138
176
738

query I rowsort
SELECT DISTINCT ( tab0.col1 * col2 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - 27 + col0 * col1 AS col0 FROM tab1
----
1013
51
613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 55 col1 FROM tab1
----
-1
2
41

query I rowsort
SELECT col1 * 63 + tab0.col2 FROM tab0
----
5451
5815
6112

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 ALL - 40 + - cor0.col1 * - col1 FROM tab2 AS cor0
----
249
3441
921

query I rowsort
SELECT DISTINCT + col2 * + col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 35 col2 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT + + col1 * 1 - col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - 28 - - tab0.col0 AS col1 FROM tab0
----
-4
61
7

query I rowsort
SELECT 33 + col2 + col0 FROM tab2
----
137
150
67

query I rowsort
SELECT 39 + col0 * ( 68 ) FROM tab0 AS cor0
----
1671
2419
6091

onlyif mysql # use DIV operator for integer division
query I rowsort label-6362
SELECT + col1 + cor0.col1 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6362
SELECT + col1 + cor0.col1 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL 34 * col2 AS col1 FROM tab2 AS cor0
----
1292
884
918

query I rowsort
SELECT ALL + 60 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # use DIV operator for integer division
query I rowsort label-6365
SELECT DISTINCT + - 42 DIV col2 + col1 * - col1 + - cor0.col0 FROM tab1 AS cor0
----
-164
-249
-679

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT + - 42 / col2 + col1 * - col1 + - cor0.col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL 42 + col1 FROM tab1 AS cor0
----
52
55
68

query I rowsort
SELECT DISTINCT col1 + tab2.col1 * col0 AS col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT - ( + 32 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT col0 * 44 + col2 AS col2 FROM tab1
----
186
2873
3616

query I rowsort
SELECT 37 * - col0 + col2 FROM tab0 AS cor0
----
-1294
-3211
-855

query I rowsort
SELECT - - ( 28 ) AS col1 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT - + ( col0 ) * col0 + 57 FROM tab2 cor0
----
-6027
-6184
8

query I rowsort
SELECT 28 - cor0.col1 FROM tab2, tab0 cor0
----
9 values hashing to c0e39001cf4fe508cbf1daa6d0cd1855

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 + + col2 + ( col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-6734
-751
-7647

query I rowsort
SELECT - 34 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6376
SELECT - CAST( - tab2.col1 * - col1 AS SIGNED ) FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-6376
SELECT - CAST ( - tab2.col1 * - col1 AS INTEGER ) FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT 44 FROM tab2, tab0 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL 78 + + col2 AS col2 FROM tab2 AS cor0
----
104
105
116

query I rowsort
SELECT ALL - 96 * col1 * + cor0.col0 AS col0 FROM tab2 cor0
----
-128928
-20832
-441792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6381
SELECT - 82 DIV col0 + - col2 * col1 + col0 * - col0 FROM tab2 AS cor0
----
-6888
-7619
-897

skipif mysql # not compatible
query I rowsort label-6381
SELECT - 82 / col0 + - col2 * col1 + col0 * - col0 FROM tab2 AS cor0
----
-6888
-7619
-897

query I rowsort
SELECT ALL - 58 * - 25 FROM tab0 AS cor0
----
1450
1450
1450

query I rowsort
SELECT ( col0 ) + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - - col0 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col1 FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 086e8f56201fbf4c0ce74087e710811d

query I rowsort
SELECT DISTINCT - 1 * col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ( col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6390
SELECT - - col0 + + col1 DIV - col1 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-6390
SELECT - - col0 + + col1 / - col1 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT DISTINCT + col2 * 45 FROM tab0 cor0
----
1485
3690
45

query I rowsort
SELECT DISTINCT + col0 + - tab0.col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT + col1 * + ( - 41 ) + col2 + + 60 AS col2 FROM tab2
----
-1184
-2333
-599

query I rowsort
SELECT col0 + ( col2 ) AS col0 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - tab2.col0 + - col0 * - col2 col2 FROM tab2
----
406
4345
6630

query I rowsort
SELECT ALL 40 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT ALL - - col1 * + col1 * + col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - + cor0.col1 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL - + col2 * + col0 + 95 AS col2 FROM tab2 AS cor0
----
-1933
-2907
-94

query I rowsort
SELECT ALL 34 * cor0.col2 * - col2 FROM tab2 AS cor0
----
-22984
-24786
-49096

query I rowsort
SELECT 71 * col0 AS col1 FROM tab2 cor0
----
497
5538
5609

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6403
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( - col1 ) * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( - col1 ) * + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 + cor0.col2 + col2 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT + + col2 + + 42 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6405
SELECT + + col2 + + 42 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - + col2 + - col1 * col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - + cor0.col1 + col1 + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + col2 * - col1 + - 86 AS col1 FROM tab1
----
-1334
-1490
-656

onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT ALL col2 + - col0 DIV + col0 + tab0.col0 AS col2 FROM tab0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL col2 + - col0 / + col0 + tab0.col0 AS col2 FROM tab0
----
170
35
56

query I rowsort
SELECT tab0.col2 + + 10 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to ad3196f858038046a0c2caf6d0f113eb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 + - col1 col1 FROM tab1
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab0.col0 + - col2 col2 FROM tab0
----
15
69
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - cor0.col0 + col0 * + col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + col0 * + 26 AS col2 FROM tab1 AS cor0
----
1664
2080
78

query I rowsort
SELECT DISTINCT col2 * tab2.col1 + + 43 FROM tab2
----
1577
689
880

query I rowsort
SELECT ALL col2 * col2 + col2 AS col1 FROM tab1
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6418
SELECT - col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + - 81 AS col2 FROM tab0 AS cor0
----
-105
-116
-170

query I rowsort
SELECT 60 FROM tab0, tab1 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT + 34 + col1 AS col2 FROM tab0 AS cor0
----
120
125
131

query I rowsort
SELECT ALL + ( cor0.col1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT + ( cor0.col2 ) FROM tab1, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + + tab0.col1 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6426
SELECT + col0 DIV col0 + col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6426
SELECT + col0 / col0 + col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT - 61 * + col0 AS col0 FROM tab0 AS cor0
----
-1464
-2135
-5429

query I rowsort
SELECT + - 0 + ( + col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - 71 AS col0 FROM tab1 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - - col2 * col0 + ( col2 * + col1 ) FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL + + col1 - col2 AS col0 FROM tab2 cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT + - cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + - col2 * col2 * - col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL - tab1.col0 * cor0.col2 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to b6c6c1b3967245d500b5bbd13326e94e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * 17 col1 FROM tab2
----
442
459
646

query I rowsort
SELECT 70 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT cor0.col1 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab0 AS cor0
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6440
SELECT ALL ( col1 ) + col1 * 17 DIV - col1 AS col0 FROM tab0 AS cor0
----
69
74
80

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL ( col1 ) + col1 * 17 / - col1 AS col0 FROM tab0 AS cor0
----
69
74
80

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) / + cor0.col0 + col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2915
-3248
-9215

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6442
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col1 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 89 - col0 FROM tab0 AS cor0
----
0
54
65

skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( col0 AS REAL ) * col2 + + 33 FROM tab2 AS cor0
----
2061
222
3035

query I rowsort
SELECT ALL - col0 - col2 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + 75 FROM tab0, tab2 AS cor0
----
75

query I rowsort
SELECT - - 38 * - col0 * col2 FROM tab1 AS cor0
----
-138624
-291840
-6156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + col1 col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 49 ) col0 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT + - ( - 80 ) * - col1 * col2 + col0 AS col1 FROM tab2 cor0
----
-122642
-51601
-66953

query I rowsort
SELECT - col1 * + ( - cor0.col2 ) AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6452
SELECT DISTINCT col2 + - 16 + cor0.col2 DIV + col1 FROM tab0 AS cor0
----
-15
17
66

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT col2 + - 16 + cor0.col2 / + col1 FROM tab0 AS cor0
----
-15
17
66

query I rowsort
SELECT - col2 * cor0.col0 + - col2 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL + col2 + + col2 * - 57 FROM tab0 AS cor0
----
-1848
-4592
-56

query I rowsort
SELECT DISTINCT col2 * 84 + + 74 FROM tab1 AS cor0
----
4610
4862
8138

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6456
SELECT - col0 / + CAST( NULL AS SIGNED ) + col1 + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6456
SELECT - col0 / + CAST ( NULL AS INTEGER ) + col1 + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * + 96 AS col1 FROM tab1 AS cor0
----
-5184
-5472
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6458
SELECT ALL + 66 DIV + 66 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6458
SELECT ALL + 66 / + 66 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col1 * col2 col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col0 * + col2 * + col1 - 60 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
162240
74880
8892

query I rowsort
SELECT ALL - ( - col2 ) + col1 * col2 * col1 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT DISTINCT - ( col0 ) - + col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - 26 * 48 + + cor0.col1 * + ( cor0.col1 + + col2 ) FROM tab1 AS cor0
----
-578
169
832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6464
SELECT + col0 + - CAST( col0 + + col0 AS SIGNED ) FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6464
SELECT + col0 + - CAST ( col0 + + col0 AS INTEGER ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT col2 + + 35 FROM tab1
----
131
89
92

query I rowsort
SELECT col1 * ( - col1 ) - col1 * col1 FROM tab1
----
-1352
-200
-338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 19 * - col1 col0 FROM tab2 AS cor0
----
-1180
-340
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col0 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT - - col2 * 21 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT ALL - 50 AS col2 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 * - col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL + - 6 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
-130
-50
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6473
SELECT ALL + col1 * col1 + cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
7397
8281
9409

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL + col1 * col1 + cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
7397
8281
9409

query I rowsort
SELECT - + col1 * col0 + col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1364
-213
-4569

query I rowsort
SELECT DISTINCT - 25 * - col2 FROM tab0 AS cor0
----
2050
25
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT DISTINCT - ( 17 ) DIV - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT - ( 17 ) / - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
0
1

query I rowsort
SELECT + + 90 + col2 + - col2 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6478
SELECT ALL + CAST( + 68 AS SIGNED ) col1 FROM tab0
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL + CAST ( + 68 AS INTEGER ) col1 FROM tab0
----
68
68
68

query I rowsort
SELECT ALL col1 * col2 * 19 + col0 AS col0 FROM tab0 cor0
----
141867
1878
53946

query I rowsort
SELECT ALL 29 * col0 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT ALL + - col1 * col2 * - ( - col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + col1 - + col0 * 70 AS col1 FROM tab0 cor0
----
-1594
-2353
-6139

query I rowsort
SELECT DISTINCT ( + col0 ) + 35 AS col1 FROM tab0 cor0
----
124
59
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * - ( - 10 ) col0 FROM tab0
----
354
45
909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - 14 col2 FROM tab0 AS cor0
----
-1148
-14
-462

query I rowsort
SELECT - - cor0.col1 * col2 + col2 AS col1 FROM tab1 cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 36 + 14 col0 FROM tab0 AS cor0
----
13
2
67

query I rowsort
SELECT ALL cor2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ALL + + col2 * 24 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT DISTINCT + 20 + col0 FROM tab1
----
100
23
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT DISTINCT col1 * + 29 + + col2 DIV col0 AS col2 FROM tab1 cor0
----
290
378
772

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT col1 * + 29 + + col2 / col0 AS col2 FROM tab1 cor0
----
290
378
772

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6492
SELECT + col1 * CAST( NULL AS SIGNED ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6492
SELECT + col1 * CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + ( col1 ) * + col0 col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + col2 + - ( + cor0.col2 * + col1 ) AS col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT cor0.col2 + 95 FROM tab0 AS cor0
----
128
177
96

query I rowsort
SELECT col1 - col2 * col0 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6497
SELECT ALL 59 * + col1 + + CAST( col1 AS SIGNED ) + col2 FROM tab0
----
5193
5542
5821

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL 59 * + col1 + + CAST ( col1 AS INTEGER ) + col2 FROM tab0
----
5193
5542
5821

onlyif mysql # use DIV operator for integer division
query I rowsort label-6498
SELECT DISTINCT 73 + col2 DIV col1 FROM tab1
----
75
78
80

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT 73 + col2 / col1 FROM tab1
----
75
78
80

query I rowsort
SELECT DISTINCT 73 FROM tab0, tab1, tab2 AS cor0
----
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6500
SELECT DISTINCT + col0 + col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT + col0 + col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - - col0 * + 51 AS col1 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT DISTINCT - 67 FROM tab1, tab0 cor0
----
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6503
SELECT DISTINCT - - col1 * 37 DIV 38 col2 FROM tab2 AS cor0
----
16
30
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT - - col1 * 37 / 38 col2 FROM tab2 AS cor0
----
16
30
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6504
SELECT + - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT + - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 * 35 FROM tab1 cor0
----
350
455
910

query I rowsort
SELECT col2 + + 75 + col1 * + col2 * ( col0 ) AS col0 FROM tab2 cor0
----
119753
51147
5961

query I rowsort
SELECT cor0.col0 + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 000003476840160ea4e33204b8667672

query I rowsort
SELECT ALL 81 * - col2 FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT ALL - col2 * col0 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT - 98 AS col0 FROM tab2
----
-98
-98
-98

query I rowsort
SELECT DISTINCT col2 + - col2 * - col0 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL 57 * cor0.col2 FROM tab1 AS cor0
----
3078
3249
5472

query I rowsort
SELECT ALL + cor0.col2 + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN ( - col2 ) AND + col1 + col1 / + col0
----
7
31
27

query I rowsort
SELECT + col1 - col2 * col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT ALL + col0 * col1 + + col1 DIV - col1 AS col0 FROM tab1
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL + col0 * col1 + + col1 / - col1 AS col0 FROM tab1
----
1039
639
77

query I rowsort
SELECT DISTINCT - col1 - col1 * - col0 AS col2 FROM tab1
----
1027
52
630

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - col2
----

query I rowsort
SELECT tab2.col0 - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - + 17 * col1 * col2 AS col0 FROM tab2 cor0
----
-10982
-14229
-26078

query I rowsort
SELECT + col2 * - tab2.col1 + + col1 AS col2 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6522
SELECT + tab1.col1 DIV + col0 col0 FROM tab1
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6522
SELECT + tab1.col1 / + col0 col0 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT + col2 * col1 * + col2 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT col0 + + tab0.col1 + + col0 * - col0 AS col0 FROM tab0
----
-1093
-466
-7741

query I rowsort
SELECT col0 + + col2 + - col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - tab1.col2 * - tab1.col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6527
SELECT ALL col0 DIV col1 - col0 * + col1 AS col2 FROM tab1 WHERE col1 + - col2 NOT IN ( - col0 * - col1 )
----
-1034
-634
-78

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL col0 / col1 - col0 * + col1 AS col2 FROM tab1 WHERE col1 + - col2 NOT IN ( - col0 * - col1 )
----
-1034
-634
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE NOT + col1 + + col2 NOT BETWEEN NULL AND - tab2.col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 + - col2 col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT col1 * col2 * col0 + col0 FROM tab2
----
119730
51113
5866

query III rowsort
SELECT * FROM tab2 WHERE + col0 < NULL
----

query I rowsort
SELECT - col1 * + col0 + col2 AS col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL + col0 - tab0.col2 FROM tab0
----
-9
34
7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= ( - col1 )
----

query I rowsort
SELECT + col0 + tab1.col2 + col1 * - col0 FROM tab1
----
-21
-519
-864

query I rowsort
SELECT col0 - tab2.col1 * + col2 AS col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT col2 * - 67 AS col1 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT 1 + + col0 + cor0.col0 * col1 AS col1 FROM tab0 AS cor0
----
2089
3431
8189

query I rowsort
SELECT DISTINCT - tab1.col1 + - col1 * col0 * col1 AS col1 FROM tab1
----
-13533
-2054
-6410

query I rowsort
SELECT ALL + ( - 9 ) + col1 FROM tab0
----
77
82
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6541
SELECT CAST( 44 AS SIGNED ) + col0 FROM tab2
----
122
123
51

skipif mysql # not compatible
query I rowsort label-6541
SELECT CAST ( 44 AS INTEGER ) + col0 FROM tab2
----
122
123
51

query I rowsort
SELECT 50 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040

query I rowsort
SELECT DISTINCT - 22 * col2 AS col1 FROM tab2 AS cor0
----
-572
-594
-836

query I rowsort
SELECT + 88 FROM tab1, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6545
SELECT + 51 * + 26 * col2 + CAST( NULL AS SIGNED ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6545
SELECT + 51 * + 26 * col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + cor0.col0 * ( col0 ) FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6547
SELECT ALL 63 DIV col0 FROM tab1
----
0
0
21

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL 63 / col0 FROM tab1
----
0
0
21

query I rowsort
SELECT ALL - ( col0 * - tab2.col1 + - col2 ) FROM tab2
----
1381
244
4628

query I rowsort
SELECT + col0 * - tab0.col2 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT col2 * ( - col2 ) + + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - + col2 * 54 FROM tab2 AS cor0
----
-1404
-1458
-2052

query I rowsort
SELECT - cor0.col2 - + col1 * 89 AS col1 FROM tab1 AS cor0
----
-1253
-2368
-947

query I rowsort
SELECT - cor0.col0 * + 59 - col1 AS col2 FROM tab2 cor0
----
-444
-4661
-4678

query I rowsort
SELECT + - cor0.col0 + 22 FROM tab0 AS cor0
----
-13
-2
-67

query I rowsort
SELECT - col1 + 19 FROM tab2 cor0
----
-12
-40
2

query I rowsort
SELECT ALL + col0 * + col1 + - 33 FROM tab0 AS cor0
----
2031
3362
8066

onlyif mysql # use DIV operator for integer division
query I rowsort label-6557
SELECT DISTINCT + col2 DIV - 75 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT + col2 / - 75 FROM tab1
----
-1
0

query I rowsort
SELECT - 61 - 36 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT 37 + tab1.col2 FROM tab1, tab1 cor0
----
9 values hashing to 707b92bfa2e49b01f294b4557662a316

query I rowsort
SELECT + col2 * col2 * 46 FROM tab1
----
134136
149454
423936

onlyif mysql # use DIV operator for integer division
query I rowsort label-6561
SELECT - col2 DIV 6 AS col1 FROM tab0
----
-13
-5
0

skipif mysql # not compatible
query I rowsort label-6561
SELECT - col2 / 6 AS col1 FROM tab0
----
-13
-5
0

query I rowsort
SELECT DISTINCT - 91 * - 81 AS col0 FROM tab2, tab1 cor0
----
7371

query I rowsort
SELECT col1 * 66 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT + - col1 * ( cor0.col2 * - col0 ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6565
SELECT ALL ( - 96 ) DIV col1 + + col1 AS col1 FROM tab2
----
12
28
58

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL ( - 96 ) / col1 + + col1 AS col1 FROM tab2
----
12
28
58

query I rowsort
SELECT + col2 * 98 FROM tab0
----
3234
8036
98

query I rowsort
SELECT DISTINCT + col1 + col1 * tab2.col1 FROM tab2
----
306
3540
992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6568
SELECT ALL CAST( NULL AS SIGNED ) + col1 * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL CAST ( NULL AS INTEGER ) + col1 * - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 90 * col0 + + col1 FROM tab2
----
661
7079
7127

onlyif mysql # use DIV operator for integer division
query I rowsort label-6570
SELECT + CAST( + col0 AS SIGNED ) DIV col0 + + col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6570
SELECT + CAST ( + col0 AS INTEGER ) / col0 + + col1 FROM tab0
----
87
92
98

query I rowsort
SELECT + cor0.col1 + + 48 FROM tab2 cor0
----
107
65
79

query I rowsort
SELECT DISTINCT + col0 * 67 * col2 + col1 * col2 FROM tab1 cor0
----
12258
244986
515808

query I rowsort
SELECT ALL + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL tab1.col0 * - col1 + col1 AS col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT col1 + + col0 * + tab2.col0 + - col1 AS col0 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6576
SELECT - CAST( col1 AS SIGNED ) DIV + col1 + col2 AS col1 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-6576
SELECT - CAST ( col1 AS INTEGER ) / + col1 + col2 AS col1 FROM tab1
----
53
56
95

query I rowsort
SELECT DISTINCT + ( 81 ) + col2 + + col2 AS col0 FROM tab2
----
133
135
157

query I rowsort
SELECT DISTINCT + col1 * col1 + - col2 * - tab2.col2 FROM tab2
----
1690
1733
4157

onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT ALL - ( - col2 ) DIV - col0 + col2 col0 FROM tab1 AS cor0
----
36
57
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - ( - col2 ) / - col0 + col2 col0 FROM tab1 AS cor0
----
36
57
95

query I rowsort
SELECT + + 40 AS col0 FROM tab2 cor0
----
40
40
40

query I rowsort
SELECT ALL - col2 + col1 * + cor0.col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT col1 + cor0.col1 * + col1 * col1 FROM tab1 AS cor0
----
1010
17602
2210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 + col2 + + col2 col0 FROM tab0 cor0
----
146
244
82

query I rowsort
SELECT DISTINCT + + 71 * - col1 - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1853
-3038
-5723

query I rowsort
SELECT ALL - ( col1 ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 63 + col0 + col1 * + col2 FROM tab1 AS cor0
----
1391
1470
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col0 ) * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 35 + + col2 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT ALL - 89 - + col0 FROM tab2 AS cor0
----
-167
-168
-96

query I rowsort
SELECT - + col0 * + col1 + - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1216
-135
-761

query I rowsort
SELECT DISTINCT + col0 * - col0 - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT + col1 + col0 * col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL 97 + + col0 * col1 FROM tab2 AS cor0
----
1440
314
4699

query I rowsort
SELECT + col0 + - cor0.col2 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + - 62 + cor0.col0 FROM tab1 AS cor0
----
-59
18
2

query I rowsort
SELECT DISTINCT - col0 * + col2 * - col2 + + col1 FROM tab1 AS cor0
----
207946
737293
8774

query I rowsort
SELECT - col0 * cor0.col2 + + cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
-34
-574
297

onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT DISTINCT 45 DIV col0 AS col1 FROM tab2 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT 45 / col0 AS col1 FROM tab2 AS cor0
----
0
6

query I rowsort
SELECT + col0 * + cor0.col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT col2 + + 34 DIV col1 AS col2 FROM tab2 AS cor0
----
26
28
40

skipif mysql # not compatible
query I rowsort label-6600
SELECT col2 + + 34 / col1 AS col2 FROM tab2 AS cor0
----
26
28
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT DISTINCT - col1 DIV - ( - col1 ) - col2 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT - col1 / - ( - col1 ) - col2 FROM tab2
----
-27
-28
-39

query I rowsort
SELECT + + cor0.col1 + cor0.col0 * + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + col1 + - ( col0 ) * - col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + cor0.col2 * + 39 * cor0.col0 FROM tab0 AS cor0
----
1365
284622
30888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - cor0.col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col0 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT + col2 DIV 13 FROM tab0 AS cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-6607
SELECT + col2 / 13 FROM tab0 AS cor0
----
0
2
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6608
SELECT ALL - col0 * - CAST( ( - col2 ) AS SIGNED ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL - col0 * - CAST ( ( - col2 ) AS INTEGER ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT col2 + ( 72 ) FROM tab2 AS cor0
----
110
98
99

query I rowsort
SELECT ALL - + 11 AS col1 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL + 65 * - col2 FROM tab0 AS cor0
----
-2145
-5330
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col1 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT - col2 * ( col1 ) * - col2 + + col2 AS col0 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT ALL + 62 * 29 AS col2 FROM tab1 AS cor0
----
1798
1798
1798

query I rowsort
SELECT col2 + col1 - - col2 AS col2 FROM tab0
----
152
255
99

query I rowsort
SELECT ALL 67 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT - col2 + col2 + col0 * tab0.col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - tab2.col1 - col0 * - col0 AS col0 FROM tab2
----
18
6025
6224

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT cor0.col0 - + col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - - cor0.col1 * - col1 + cor0.col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT - cor0.col1 + + col0 * - col0 AS col2 FROM tab2 cor0
----
-6143
-6258
-80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 * - col1 <> - col0 - col2
----

query I rowsort
SELECT - - col1 * col2 + + col0 * cor0.col1 + col2 * - cor0.col2 FROM tab2 cor0
----
325
545
5460

query I rowsort
SELECT + col0 * + col0 - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 + col1 col1 FROM tab0
----
195
205
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + tab2.col1 + - tab2.col1 * - tab2.col2 * - col0 col2 FROM tab2
----
-119567
-50979
-5801

query I rowsort
SELECT + col2 * - col0 + + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-7296
-730
27

query I rowsort
SELECT col2 + + cor0.col2 * col2 FROM tab0 cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6631
SELECT ALL - col1 * + tab1.col0 * + col1 + + col2 DIV - col2 FROM tab1
----
-13521
-2029
-6401

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - col1 * + tab1.col0 * + col1 + + col2 / - col2 FROM tab1
----
-13521
-2029
-6401

query I rowsort
SELECT ALL - col1 + col2 * - col0 AS col0 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT col1 + + col2 * - col1 AS col0 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6634
SELECT ALL + tab2.col2 DIV - col0 AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + tab2.col2 / - col0 AS col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT + col1 * - col0 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - + col1 * - col1 + col0 + col2 FROM tab0 AS cor0
----
7453
8452
9445

onlyif mysql # use DIV operator for integer division
query I rowsort label-6637
SELECT DISTINCT - col1 DIV - cor0.col1 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - col1 / - cor0.col1 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL + col0 * col2 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - + col1 * + col0 + + col0 * - col2 + - col2 FROM tab1 AS cor0
----
-294
-4345
-8816

query I rowsort
SELECT col2 + ( + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
7
78
79

query I rowsort
SELECT ALL col0 * + 42 FROM tab0 AS cor0
----
1008
1470
3738

query I rowsort
SELECT DISTINCT + - col0 + - 27 + col0 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT ( col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col0 * 75 * col1 FROM tab2 AS cor0
----
100725
16275
345150

query I rowsort
SELECT DISTINCT + col1 * + 84 FROM tab2
----
1428
2604
4956

query I rowsort
SELECT + + col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col1 FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL 71 AS col2 FROM tab2
----
71
71
71

query I rowsort
SELECT - 7 * col0 AS col1 FROM tab1
----
-21
-448
-560

query I rowsort
SELECT ALL 84 * tab2.col0 FROM tab2
----
588
6552
6636

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6654
SELECT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6654
SELECT + - CAST ( NULL AS REAL ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6655
SELECT 58 DIV tab0.col1 + 18 + col1 FROM tab0
----
104
109
115

skipif mysql # not compatible
query I rowsort label-6655
SELECT 58 / tab0.col1 + 18 + col1 FROM tab0
----
104
109
115

query I rowsort
SELECT - - 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + col2 + + tab2.col0 FROM tab2
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6658
SELECT + + col1 * + col0 + + 77 * + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT + + col1 * + col0 + + 77 * + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + 78 FROM tab0
----
-11
43
54

query I rowsort
SELECT - tab2.col1 * - tab2.col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - + col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col0 * col1 + + col1 * col1 * ( col1 ) AS col2 FROM tab0 AS cor0
----
638120
761670
916068

query I rowsort
SELECT ALL + cor0.col0 + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 + + col0 FROM tab2 AS cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 69 * ( - cor0.col1 * - cor0.col0 ) - 79 col0 FROM tab2 cor0
----
-15045
-317539
-92667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - col1 ) ) * col0 - - tab2.col0 col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL 17 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT - 34 + - col2 FROM tab2
----
-60
-61
-72

query I rowsort
SELECT cor0.col2 * - 85 AS col1 FROM tab1 cor0
----
-4590
-4845
-8160

query I rowsort
SELECT ALL - cor1.col2 + cor0.col0 * ( cor0.col0 ) AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 5f9bb5bce831d692352b806b01bde171

query I rowsort
SELECT - - 5 * col0 AS col0 FROM tab2 AS cor0
----
35
390
395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col0 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - cor0.col2 + + col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col2 * + cor0.col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 - + col2 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6677
SELECT CAST( + ( col2 ) + col0 AS SIGNED ) AS col2 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-6677
SELECT CAST ( + ( col2 ) + col0 AS INTEGER ) AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT tab0.col1 * - 78 AS col1 FROM tab0
----
-6708
-7098
-7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6679
SELECT DISTINCT 1 * cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT 1 * cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 61 + + col2 AS col0 FROM tab1 AS cor0
----
115
118
157

query I rowsort
SELECT col0 * col1 + col1 + ( 85 ) AS col0 FROM tab1 AS cor0
----
1138
189
735

query I rowsort
SELECT DISTINCT - 84 + + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
3564
7596
78

query I rowsort
SELECT DISTINCT - 44 * - cor0.col2 FROM tab2, tab1 AS cor0
----
2376
2508
4224

onlyif mysql # use DIV operator for integer division
query I rowsort label-6684
SELECT DISTINCT + - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT + - col2 / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + + col0 - - col0 col0 FROM tab0
----
1137
6902
71

query I rowsort
SELECT col2 * - col0 + + col1 * col2 * tab1.col0 + + col1 AS col1 FROM tab1
----
32842
4076
92173

query I rowsort
SELECT 76 + + tab0.col2 FROM tab0
----
109
158
77

query I rowsort
SELECT DISTINCT col2 * tab2.col0 + - col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT 32 + - 31 FROM tab1
----
1
1
1

query I rowsort
SELECT + tab1.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6691
SELECT ALL - col2 * - col2 DIV + col2 + + CAST( - col2 AS SIGNED ) * - col1 FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL - col2 * - col2 / + col2 + + CAST ( - col2 AS INTEGER ) * - col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT + ( + tab2.col0 ) + col0 + + col2 AS col0 FROM tab2
----
182
196
41

query I rowsort
SELECT DISTINCT + ( + ( + col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT + col2 * 14 + + col2 FROM tab0 AS cor0
----
1230
15
495

query I rowsort
SELECT DISTINCT - tab2.col2 + + 14 FROM tab2
----
-12
-13
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6697
SELECT + col1 DIV + col1 - - col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6697
SELECT + col1 / + col1 - - col1 FROM tab0
----
87
92
98

query I rowsort
SELECT DISTINCT cor0.col1 + col0 * + col2 + col0 FROM tab0 AS cor0
----
167
7478
902

query I rowsort
SELECT DISTINCT + col2 * 14 FROM tab0 AS cor0
----
1148
14
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col0 * - col1 - 30 * col1 FROM tab2
----
-1147
-1853
-6372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + cor1.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 707b92bfa2e49b01f294b4557662a316

query I rowsort
SELECT ALL - col1 * + 39 + + col1 FROM tab0 AS cor0
----
-3268
-3458
-3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-6704
SELECT ALL + - col1 + + col1 DIV col0 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL + - col1 + + col1 / col0 FROM tab0 AS cor0
----
-83
-90
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6705
SELECT DISTINCT - + cor0.col1 DIV col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6705
SELECT DISTINCT - + cor0.col1 / col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - + col1 - 2 AS col0 FROM tab2 AS cor0
----
-19
-33
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6707
SELECT ALL + col0 * col2 DIV - 38 AS col2 FROM tab0 AS cor0
----
-192
-20
0

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL + col0 * col2 / - 38 AS col2 FROM tab0 AS cor0
----
-192
-20
0

query I rowsort
SELECT ALL - + col1 * 82 AS col0 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT col0 * - ( - col0 ) FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6710
SELECT DISTINCT + cor0.col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT + cor0.col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + ( cor0.col1 ) * col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT ALL col0 * ( + col2 ) DIV + col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL col0 * ( + col2 ) / + col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6713
SELECT ALL + + col2 * 11 * 36 + col1 * CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL + + col2 * 11 * 36 + col1 * CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + ( + tab1.col1 * + col0 ) AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT col1 - ( - 45 + col1 ) AS col1 FROM tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + 41 * col1 col1 FROM tab1 AS cor0
----
1012
353
437

query I rowsort
SELECT DISTINCT 67 * + 7 AS col0 FROM tab0, tab2 cor0
----
469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6718
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + 24 * col1 AS col1 FROM tab0 cor0
----
-2064
-2184
-2328

onlyif mysql # use DIV operator for integer division
query I rowsort label-6720
SELECT ALL - + ( - col1 ) + - col0 DIV 51 col0 FROM tab2 AS cor0
----
16
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL - + ( - col1 ) + - col0 / 51 col0 FROM tab2 AS cor0
----
16
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - cor0.col2 col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT cor0.col0 + 92 FROM tab0 AS cor0
----
116
127
181

query I rowsort
SELECT ALL - 65 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1278
152
4537

onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT DISTINCT col0 DIV 27 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT col0 / 27 FROM tab1 AS cor0
----
0
2

query I rowsort
SELECT ALL + ( 82 ) * + col0 AS col0 FROM tab0 AS cor0
----
1968
2870
7298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6726
SELECT CAST( NULL AS SIGNED ) * + 63 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6726
SELECT CAST ( NULL AS INTEGER ) * + 63 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT ALL + col1 + col1 DIV - ( col0 ) AS col0 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL + col1 + col1 / - ( col0 ) AS col0 FROM tab1 AS cor0
----
10
13
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col0 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + 80 * col2 AS col2 FROM tab2 AS cor0
----
-2080
-2160
-3040

query I rowsort
SELECT + ( cor0.col1 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + - ( col0 ) + 91 AS col1 FROM tab0 AS cor0
----
2
56
67

query I rowsort
SELECT - 75 * col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-199
-4790
-5987

query I rowsort
SELECT - + col2 + + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * col0 * + cor0.col2 + + col0 FROM tab1 AS cor0
----
208000
737360
8751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 86 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + 25 * - col0 FROM tab2 AS cor0
----
-175
-1950
-1975

query I rowsort
SELECT + ( + 22 ) + + col2 + col2 FROM tab0 AS cor0
----
186
24
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - col1 * col0 col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT col0 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT - + 7 + col1 DIV col0 FROM tab0 cor0
----
-4
-5
-6

skipif mysql # not compatible
query I rowsort label-6741
SELECT - + 7 + col1 / col0 FROM tab0 cor0
----
-4
-5
-6

query I rowsort
SELECT ( - col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6743
SELECT - col2 - - 76 DIV col1 FROM tab2 AS cor0
----
-25
-25
-34

skipif mysql # not compatible
query I rowsort label-6743
SELECT - col2 - - 76 / col1 FROM tab2 AS cor0
----
-25
-25
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6744
SELECT + - col2 + + col0 DIV + ( - col2 ) FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-6744
SELECT + - col2 + + col0 / + ( - col2 ) FROM tab1 AS cor0
----
-54
-58
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6745
SELECT ALL - 54 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - 54 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-2
-4
-5

query I rowsort
SELECT ALL + 6 * col1 FROM tab2
----
102
186
354

query I rowsort
SELECT DISTINCT cor1.col2 + - 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-8
-9
3

query I rowsort
SELECT 85 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + 65 + + col0 * + col2 * + col0 FROM tab2
----
1388
158249
237223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col0 FROM tab1
----
-72
-72
-72

query I rowsort
SELECT 39 + - 26 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 * - col2 + + col0 col1 FROM tab1 AS cor0
----
-1456
-848
-861

onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT DISTINCT col1 * ( + col1 * col2 ) + col1 + + tab1.col1 DIV - col1 AS col2 FROM tab1
----
16236
36529
5709

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT col1 * ( + col1 * col2 ) + col1 + + tab1.col1 / - col1 AS col2 FROM tab1
----
16236
36529
5709

query I rowsort
SELECT ALL tab1.col1 + - col0 * - 75 FROM tab1
----
251
4810
6013

query I rowsort
SELECT DISTINCT - col0 + + ( + col2 ) AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL col0 * - 41 FROM tab2 AS cor0
----
-287
-3198
-3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT ALL + 0 * - 80 DIV col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + 0 * - 80 / col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 87 * - 36 + - col2 FROM tab0 AS cor0
----
-3133
-3165
-3214

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6761
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT - + CAST ( NULL AS REAL ) * - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * - col1 - col0 AS col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT ( 96 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * cor0.col0 + cor0.col1 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5647b3faf064ddb7664440f3d40c914b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 - col1 col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL 99 * + col2 * - col0 - + col0 AS col0 FROM tab2
----
-18718
-200850
-297277

query I rowsort
SELECT + col1 * - cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + cor0.col1 * + 22 AS col1 FROM tab0 AS cor0
----
1892
2002
2134

query I rowsort
SELECT - 39 * col1 FROM tab2 cor0
----
-1209
-2301
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col1 col1 FROM tab0, tab1 AS cor0
----
20
26
52

query I rowsort
SELECT 99 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT ALL + col1 * - col0 * + col0 AS col2 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT - 72 * - col0 AS col1 FROM tab1
----
216
4608
5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT DISTINCT 35 DIV - 22 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT 35 / - 22 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-1

query I rowsort
SELECT - col2 * + col0 + 30 + 44 AS col0 FROM tab1 cor0
----
-3574
-7606
-88

query I rowsort
SELECT - col0 + + col1 * col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - 13 + + col2 FROM tab0
----
-12
20
69

query I rowsort
SELECT + col0 * col1 * - col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT + - col2 * 32 + col1 FROM tab2 cor0
----
-1199
-773
-833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * - col2 col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-6781
SELECT - col0 DIV + 57 + 21 FROM tab2 AS cor0
----
20
20
21

skipif mysql # not compatible
query I rowsort label-6781
SELECT - col0 / + 57 + 21 FROM tab2 AS cor0
----
20
20
21

query I rowsort
SELECT ALL + cor0.col0 * + 21 AS col0 FROM tab2 cor0
----
147
1638
1659

query I rowsort
SELECT DISTINCT + + col1 * 82 FROM tab0 AS cor0
----
7052
7462
7954

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT - - cor0.col0 DIV col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6784
SELECT - - cor0.col0 / col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT 12 AS col2 FROM tab1 cor0
----
12
12
12

query I rowsort
SELECT DISTINCT + col2 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 * - col1 col1 FROM tab2
----
1643
3127
901

query I rowsort
SELECT DISTINCT + 21 + col2 FROM tab0 cor0
----
103
22
54

query I rowsort
SELECT ALL - col2 * cor0.col1 + + 43 FROM tab0 AS cor0
----
-2795
-54
-7419

query I rowsort
SELECT 46 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
132
137
143

query I rowsort
SELECT ALL - col0 + + col2 * - col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL + col2 * + 95 AS col2 FROM tab0 cor0
----
3135
7790
95

query I rowsort
SELECT DISTINCT col1 + - col2 * - 33 FROM tab1 AS cor0
----
1808
1891
3181

query I rowsort
SELECT + cor0.col2 * - ( + ( col2 ) * ( col1 ) ) FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6795
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) * + col1 + col0 col2 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6795
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) * + col1 + col0 col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + 76 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT DISTINCT + 98 + + 91 AS col1 FROM tab2 AS cor0
----
189

query I rowsort
SELECT ALL - 2 * col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT 86 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
2236
2322
3268

query I rowsort
SELECT + + col1 + cor0.col1 * col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - + col0 + - 7 * col0 AS col2 FROM tab0 AS cor0
----
-192
-280
-712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6802
SELECT CAST( NULL AS SIGNED ) * - cor0.col2 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6802
SELECT CAST ( NULL AS INTEGER ) * - cor0.col2 / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 13 * ( col2 ) + ( col0 ) AS col2 FROM tab0 AS cor0
----
1155
453
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT ALL - 83 * col1 DIV col0 FROM tab2 AS cor0
----
-17
-367
-62

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL - 83 * col1 / col0 FROM tab2 AS cor0
----
-17
-367
-62

query I rowsort
SELECT ALL + + col1 * + col0 + - col0 AS col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL col1 * col1 + tab2.col0 * tab2.col1 * col2 AS col1 FROM tab2
----
123133
51323
6820

query I rowsort
SELECT 21 AS col2 FROM tab1, tab2 AS cor0, tab2, tab2 cor1
----
81 values hashing to 4eecc28c48bfdf162a585f11d1dd0b6c

query I rowsort
SELECT ALL cor0.col2 * 59 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
215242
453133
9584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * + col0 + + col0 col1 FROM tab1 AS cor0
----
234
4992
6240

query I rowsort
SELECT ALL col0 + col0 * cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + col2 * + ( + col0 ) FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6812
SELECT DISTINCT - 29 DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT - 29 / col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + cor0.col1 + 98 FROM tab0 AS cor0
----
184
189
195

onlyif mysql # use DIV operator for integer division
query I rowsort label-6814
SELECT col0 DIV 15 FROM tab1 AS cor0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-6814
SELECT col0 / 15 FROM tab1 AS cor0
----
0
4
5

query I rowsort
SELECT ALL + col1 * + 61 AS col1 FROM tab0 cor0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT 80 * - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-112320
-45600
-99840

query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL ( col0 + col1 ) * col0 AS col2 FROM tab1
----
4736
7440
87

query I rowsort
SELECT + col2 + tab2.col0 * - col2 * + col2 AS col2 FROM tab2
----
-114038
-5076
-52702

query I rowsort
SELECT ( tab2.col0 ) * tab2.col2 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 * col1 col0 FROM tab2 cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT + col2 DIV col1 + col1 AS col0 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-6823
SELECT + col2 / col1 + col1 AS col0 FROM tab2 AS cor0
----
19
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6824
SELECT ALL - col0 DIV - col2 - - ( col2 ) col0 FROM tab0 AS cor0
----
33
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL - col0 / - col2 - - ( col2 ) col0 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT ALL - col0 + + col0 * col2 AS col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT DISTINCT + cor0.col2 * 9 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT + col2 * + ( cor0.col1 * - col1 ) + - col1 FROM tab1 AS cor0
----
-16237
-36530
-5710

query I rowsort
SELECT ALL + col2 * 94 + + col0 * + col0 - + 71 AS col1 FROM tab0 AS cor0
----
1248
15558
3607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6829
SELECT - col1 + CAST( - ( col0 ) AS SIGNED ) FROM tab1 cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-6829
SELECT - col1 + CAST ( - ( col0 ) AS INTEGER ) FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - col0 + col2 * 58 AS col1 FROM tab1 AS cor0
----
3129
3242
5488

query I rowsort
SELECT ALL - + col2 * 1 * - col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6832
SELECT DISTINCT + col2 * + CAST( 80 AS SIGNED ) col2 FROM tab1 AS cor0
----
4320
4560
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6832
SELECT DISTINCT + col2 * + CAST ( 80 AS INTEGER ) col2 FROM tab1 AS cor0
----
4320
4560
7680

query I rowsort
SELECT ALL + 53 * col2 + + cor0.col1 * col2 * + col2 FROM tab2 AS cor0
----
24030
26562
41262

query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT 73 - + cor0.col0 FROM tab2 cor0
----
-5
-6
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT ALL - cor0.col2 DIV - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - cor0.col2 / - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-12
-8

query I rowsort
SELECT - col2 + + col1 AS col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + ( + cor0.col2 ) * - col2 + cor0.col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT + 78 * col2 AS col1 FROM tab1 AS cor0
----
4212
4446
7488

query I rowsort
SELECT ALL + + col1 * - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT + ( col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT 63 * + col2 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT DISTINCT 94 FROM tab1, tab2 cor0
----
94

query I rowsort
SELECT DISTINCT + + 44 * - 29 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
-1276

query I rowsort
SELECT + col1 + - col1 * col2 * tab2.col0 + + 30 FROM tab2
----
-119563
-50987
-5798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6846
SELECT + - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT + - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab1.col2 AS col2 FROM tab1 WHERE NOT ( col2 ) <> NULL
----

query I rowsort
SELECT DISTINCT - col1 - col0 * col2 AS col1 FROM tab2
----
-2087
-220
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + - col2 + col2 col2 FROM tab1
----
10
13
26

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( tab0.col1 )
----

query I rowsort
SELECT tab2.col2 + + tab2.col0 FROM tab2
----
104
117
34

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - tab1.col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * col2 * col0 + + tab2.col1 + col1 * - col2 FROM tab2
----
118177
50405
5053

query I rowsort
SELECT ALL + col2 + tab1.col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6855
SELECT DISTINCT tab1.col2 DIV + col0 AS col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT tab1.col2 / + col0 AS col0 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT - col0 * col0 + col1 * col2 + tab2.col1 FROM tab2
----
-4491
-5578
819

onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT + col2 DIV - col2 + col1 * col1 FROM tab0
----
7395
8280
9408

skipif mysql # not compatible
query I rowsort label-6857
SELECT + col2 / - col2 + col1 * col1 FROM tab0
----
7395
8280
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-6858
SELECT DISTINCT + col0 DIV col0 col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + col0 / col0 col2 FROM tab0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6859
SELECT DISTINCT - col0 * - col2 DIV tab1.col2 col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT - col0 * - col2 / tab1.col2 col1 FROM tab1
----
3
64
80

query I rowsort
SELECT col2 * - col2 * + tab2.col2 + tab2.col2 + col2 AS col0 FROM tab2
----
-17524
-19629
-54796

onlyif mysql # use DIV operator for integer division
query I rowsort label-6861
SELECT ALL + col2 DIV tab1.col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL + col2 / tab1.col0 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab2 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL col0 * + col0 * - col1 - - col2 AS col0 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT + col0 * tab2.col0 + col1 + + col2 FROM tab2
----
107
6169
6296

query III rowsort
SELECT * FROM tab2 WHERE + col1 + col2 <> NULL
----

query I rowsort
SELECT DISTINCT + col1 * col0 * - col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL BETWEEN ( - col1 * col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE col2 / - col1 - + col0 <> col2 * col0
----
7
78
79

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - - col1 + + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - - col2 * col1 + col2 + col0 FROM tab1 AS cor0
----
1424
1461
691

query I rowsort
SELECT + col1 + col1 + cor0.col0 AS col2 FROM tab1 cor0
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT - col1 + - col1 DIV col1 + col0 AS col2 FROM tab1 AS cor0
----
-24
53
66

skipif mysql # not compatible
query I rowsort label-6873
SELECT - col1 + - col1 / col1 + col0 AS col2 FROM tab1 AS cor0
----
-24
53
66

query I rowsort
SELECT DISTINCT + tab0.col1 * col1 AS col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6875
SELECT DISTINCT col0 DIV - col0 AS col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT col0 / - col0 AS col1 FROM tab2 cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + col0 <= NULL
----

query I rowsort
SELECT col1 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT ALL col2 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL col2 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + cor0.col0 + 90 + col1 FROM tab0 AS cor0
----
200
222
270

onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT DISTINCT + - col1 * + col0 DIV - col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT + - col1 * + col0 / - col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - + col2 + - col2 + 17 AS col0 FROM tab1 AS cor0
----
-175
-91
-97

query I rowsort
SELECT cor0.col2 * - cor0.col0 + col0 FROM tab2 cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT DISTINCT + col1 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT + col1 / cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT + col2 + col0 DIV col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-6884
SELECT + col2 + col0 / col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL + - cor0.col2 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT cor0.col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6886
SELECT cor0.col2 / + col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * - col1 + col1 col1 FROM tab1 AS cor0
----
-106
-1123
-687

query I rowsort
SELECT ALL - + col2 + + ( 0 ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - 97 * - 28 AS col2 FROM tab1 AS cor0
----
2716
2716
2716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
86

query I rowsort
SELECT DISTINCT col1 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + 22 * - col2 AS col1 FROM tab2 cor0
----
-572
-594
-836

query I rowsort
SELECT ALL ( - col0 ) * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + - col1 * col1 * - col2 + col2 FROM tab0 AS cor0
----
244101
679124
9410

query I rowsort
SELECT + col1 + col1 * 1 + + 24 FROM tab1 AS cor0
----
44
50
76

query I rowsort
SELECT ALL + col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + cor0.col1 + - col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col1 FROM tab2 AS cor0
----
11

query I rowsort
SELECT + col0 - - col2 * + col0 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT + col0 * - col0 - + col0 * + col2 FROM tab1
----
-14080
-171
-7744

query I rowsort
SELECT DISTINCT - col1 / + col2 AS col0 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6904
SELECT - tab1.col1 DIV - col1 + + col0 AS col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6904
SELECT - tab1.col1 / - col1 + + col0 AS col0 FROM tab1
----
4
65
81

query I rowsort
SELECT - col0 * col2 - col0 * col0 FROM tab0
----
-1260
-1368
-15219

query I rowsort
SELECT + 21 * + col2 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT ALL - tab0.col2 AS col2 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT col2 * + col1 + - ( + col2 ) FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + cor0.col1 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + 92 * col1 - - ( + col0 ) * - col0 AS col0 FROM tab0
----
451
7336
7699

query I rowsort
SELECT DISTINCT - col0 + - col2 + - 11 * tab0.col2 FROM tab0
----
-1073
-420
-47

query I rowsort
SELECT 29 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT 72 + col2 * ( + ( tab2.col1 ) ) AS col0 FROM tab2
----
1606
718
909

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * + 24 col0 FROM tab1, tab1 AS cor0
----
240
312
624

query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 * - cor0.col1 AS col2 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT ALL - col0 DIV ( 27 ) FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL - col0 / ( 27 ) FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT + col0 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col1 * 21 * - ( - col1 * + col2 ) FROM tab2 cor0
----
1900626
230622
544887

onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT + tab0.col0 DIV - ( col1 ) + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6921
SELECT + tab0.col0 / - ( col1 ) + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - 67 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT - col2 + + 12 * col0 * col1 FROM tab0 AS cor0
----
24735
40739
97106

query I rowsort
SELECT + col1 * col2 + 27 * col1 FROM tab0 AS cor0
----
2716
5160
9919

query I rowsort
SELECT DISTINCT col2 * col2 * - tab0.col0 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + - 94 + - col1 FROM tab0 AS cor0
----
-180
-185
-191

query I rowsort
SELECT ALL + ( cor0.col1 ) FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + 70 + cor0.col1 * - col0 + - col0 AS col0 FROM tab1 cor0
----
-1050
-11
-634

query I rowsort
SELECT ALL + 30 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT - + ( - 74 ) + + col1 AS col2 FROM tab1 cor0
----
100
84
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col2 FROM tab2, tab1 cor0, tab2 cor1
----
4

query I rowsort
SELECT - - 85 * col0 * 97 AS col2 FROM tab2 AS cor0
----
57715
643110
651355

query I rowsort
SELECT ALL + + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ( col1 + col2 ) * - col2 FROM tab2
----
-1566
-2090
-2210

query I rowsort
SELECT - col0 * col2 + tab0.col0 * col0 FROM tab0
----
-216
1190
623

query I rowsort
SELECT ALL + 36 * col2 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT + - col2 + - col0 * 69 AS col0 FROM tab2 AS cor0
----
-510
-5408
-5489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col2 + - cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + col2 * col1 - 84 AS col0 FROM tab1 cor0
----
1164
1320
486

query I rowsort
SELECT + col1 * + 5 + - 45 * col0 FROM tab2 AS cor0
----
-160
-3215
-3470

query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 + - 53 FROM tab0 AS cor0
----
2785
44
7409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT col1 DIV cor0.col0 + 50 AS col1 FROM tab0 AS cor0
----
51
52
53

skipif mysql # not compatible
query I rowsort label-6943
SELECT col1 / cor0.col0 + 50 AS col1 FROM tab0 AS cor0
----
51
52
53

query I rowsort
SELECT DISTINCT col1 * 47 * + col0 + + col1 FROM tab2 AS cor0
----
10230
216353
63138

query I rowsort
SELECT DISTINCT - ( + col1 ) + 21 + + col0 FROM tab1
----
-2
75
88

query I rowsort
SELECT col2 + + col1 * + col0 AS col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL col2 * col1 + 41 * col2 FROM tab2
----
1944
2204
2600

query I rowsort
SELECT ALL col1 * + col1 + ( + 44 ) FROM tab0
----
7440
8325
9453

onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT DISTINCT + 14 + + col0 DIV + ( - 20 * col2 ) AS col0 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT + 14 + + col0 / + ( - 20 * col2 ) AS col0 FROM tab1
----
14

query I rowsort
SELECT col0 + + cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col2 + - col0 * cor0.col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col0 + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6954
SELECT + col2 DIV + col1 + col1 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
1005
17578
2204

skipif mysql # not compatible
query I rowsort label-6954
SELECT + col2 / + col1 + col1 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
1005
17578
2204

onlyif mysql # use DIV operator for integer division
query I rowsort label-6955
SELECT + col2 + col1 DIV - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6955
SELECT + col2 + col1 / - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - col0 * + col1 - - col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT col1 + tab0.col1 + col1 AS col2 FROM tab0
----
258
273
291

query I rowsort
SELECT col0 * col2 + col2 AS col1 FROM tab2
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + + col0 col2 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - col1 * - col1 + - col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL - tab0.col2 * + col1 * + col2 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6962
SELECT ALL + tab1.col1 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL + tab1.col1 / - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6963
SELECT + col1 * col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-6963
SELECT + col1 * col0 / + col2 AS col1 FROM tab0 AS cor0
----
3395
62
98

query I rowsort
SELECT + 23 AS col1 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT col1 * + col2 * col2 FROM tab0 cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT 91 FROM tab0, tab1 AS cor0
----
91

query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT DISTINCT - - ( col2 ) * cor0.col2 + + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL + 4 * cor0.col2 AS col1 FROM tab1 cor0
----
216
228
384

query I rowsort
SELECT - 35 * + col0 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT + 46 * + col0 AS col1 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT + 5 - col0 * + col2 FROM tab2 AS cor0
----
-184
-2023
-2997

onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT DISTINCT + col1 * cor0.col2 DIV - col2 + cor0.col2 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT + col1 * cor0.col2 / - col2 + cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + cor0.col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col1 * col1 * + col2 + - col1 + - col1 AS col1 FROM tab0 AS cor0
----
243896
678860
9215

query I rowsort
SELECT DISTINCT - col1 + col1 * col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT + ( + col2 ) * + ( 90 ) + col1 * + col2 AS col0 FROM tab0 AS cor0
----
14842
187
5808

query I rowsort
SELECT + 80 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * + 21 col1 FROM tab0 AS cor0
----
1839
1993
2038

query I rowsort
SELECT DISTINCT - - ( + col1 ) * 15 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT DISTINCT ( + 43 ) FROM tab0
----
43

query I rowsort
SELECT + - cor0.col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + - 6 AS col1 FROM tab0 cor0
----
-6
-6
-6

query I rowsort
SELECT col1 * 73 + + col2 FROM tab2
----
1279
2290
4333

query I rowsort
SELECT ALL col0 * ( cor0.col2 ) + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col0 * - ( col1 ) * col0 AS col0 FROM tab1 cor0
----
234
40960
83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6987
SELECT + + col2 + - CAST( + col0 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-6987
SELECT + + col2 + - CAST ( + col0 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + 5 * - 76 col2 FROM tab1 AS cor0
----
-20520
-21660
-36480

query I rowsort
SELECT DISTINCT 10 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT 25 * 37 + col1 FROM tab0 AS cor0
----
1011
1016
1022

query I rowsort
SELECT DISTINCT 77 FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
77

query I rowsort
SELECT DISTINCT 44 + col1 * col1 AS col1 FROM tab1
----
144
213
720

query I rowsort
SELECT - col0 + - 79 AS col1 FROM tab2 AS cor0
----
-157
-158
-86

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6996
SELECT + ( 60 ) * + cor2.col1 + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6996
SELECT + ( 60 ) * + cor2.col1 + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT col0 * + 69 * + col2 + - cor0.col0 * col0 FROM tab2 AS cor0
----
12992
133848
200897

query I rowsort
SELECT - 7 * - 62 + col1 AS col2 FROM tab0 AS cor0
----
520
525
531

onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT - col0 DIV col0 + col1 AS col2 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6999
SELECT - col0 / col0 + col1 AS col2 FROM tab0
----
85
90
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7000
SELECT ALL + CAST( NULL AS DECIMAL ) + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL + CAST ( NULL AS REAL ) + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 + - ( - 8 ) AS col2 FROM tab0, tab1 AS cor0
----
1048
648
86

query I rowsort
SELECT - col0 - - 41 AS col2 FROM tab0
----
-48
17
6

query I rowsort
SELECT ALL + ( col2 ) + - col1 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - ( - cor0.col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7005
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - cor0.col0 * col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - cor0.col0 * col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 60 * col1 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT - + col1 + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * + col2 + col1 + 27 col0 FROM tab2 AS cor0
----
1146
840
841

query I rowsort
SELECT 43 + col0 FROM tab2 AS cor0
----
121
122
50

query I rowsort
SELECT 27 + cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 35c232c55075de3b68b22e5cbfdeeebe

query I rowsort
SELECT DISTINCT - col0 + col0 - + col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - cor0.col1 * col1 + col0 AS col1 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT ALL + 7 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL + ( col2 ) - col1 * col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL + - 46 * col0 + cor0.col1 + - 15 FROM tab2 cor0
----
-306
-3544
-3632

query I rowsort
SELECT + 87 + col0 AS col0 FROM tab1
----
151
167
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT + + 12 + + col2 * 73 DIV + col0 FROM tab2 AS cor0
----
293
36
47

skipif mysql # not compatible
query I rowsort label-7017
SELECT + + 12 + + col2 * 73 / + col0 FROM tab2 AS cor0
----
293
36
47

query I rowsort
SELECT + col1 + + cor0.col0 + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT - 48 * + col2 * col2 FROM tab1 AS cor0
----
-139968
-155952
-442368

onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT + cor0.col1 DIV 89 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7020
SELECT + cor0.col1 / 89 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7021
SELECT ALL + col2 * ( col1 ) * col1 + 42 * - col2 - - tab0.col0 * CAST( NULL AS SIGNED ) * tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL + col2 * ( col1 ) * col1 + 42 * - col2 - - tab0.col0 * CAST ( NULL AS INTEGER ) * tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 72 col0 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT DISTINCT - col1 + - col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT tab0.col0 * tab0.col0 AS col1 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT tab2.col2 DIV - 76 FROM tab2, tab0, tab0 cor0, tab1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-7025
SELECT tab2.col2 / - 76 FROM tab2, tab0, tab0 cor0, tab1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT 65 * - col2 + + col2 FROM tab1 cor0
----
-3456
-3648
-6144

query I rowsort
SELECT 34 + col2 * + col2 FROM tab2 AS cor0
----
1478
710
763

query I rowsort
SELECT DISTINCT + - 5 * + cor0.col2 - col0 * + col0 FROM tab0 AS cor0
----
-1230
-741
-8331

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 60 col1 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT - - col2 + - col1 + - cor0.col1 * - ( col0 ) FROM tab1 cor0
----
106
1123
687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7032
SELECT ALL + col2 * CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( 6 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL - col1 + - 65 - tab1.col0 FROM tab1
----
-139
-158
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + col0 col0 FROM tab1
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7036
SELECT - col2 + + CAST( col2 AS SIGNED ) * col0 + - 42 FROM tab0
----
-8
717
7174

skipif mysql # not compatible
query I rowsort label-7036
SELECT - col2 + + CAST ( col2 AS INTEGER ) * col0 + - 42 FROM tab0
----
-8
717
7174

query I rowsort
SELECT ALL col0 * ( col0 ) - - tab1.col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT + col0 - + 59 * - col2 FROM tab0
----
1971
4927
94

query I rowsort
SELECT ALL - col1 + + 4 - - col1 FROM tab1
----
4
4
4

query I rowsort
SELECT ALL col0 + ( + col1 ) * - col1 + col2 AS col0 FROM tab0 cor0
----
-7339
-8110
-9373

query I rowsort
SELECT 35 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT tab1.col0 - + 17 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to ed3f82385abbb35b592236dcee58f9cb

query I rowsort
SELECT + cor0.col2 * + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 11fb95e355e995b05aff375a305225c2

query I rowsort
SELECT - 21 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT DISTINCT - tab2.col1 * 27 AS col0 FROM tab2
----
-1593
-459
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7046
SELECT ALL - col2 DIV 95 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL - col2 / 95 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - - col1 - ( cor0.col2 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - - col1 * col1 * col1 + cor0.col0 FROM tab2 AS cor0
----
205457
29798
4992

query I rowsort
SELECT DISTINCT + - col1 * ( + 79 ) AS col0 FROM tab2 AS cor0
----
-1343
-2449
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7050
SELECT ALL + - col2 * ( col0 ) + col2 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL + - col2 * ( col0 ) + col2 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 40 AS col2 FROM tab1, tab0 AS cor0
----
40

query I rowsort
SELECT ALL - 43 * col1 - tab0.col2 AS col2 FROM tab0
----
-3731
-3995
-4172

query I rowsort
SELECT 58 * + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 05bb4f6e4320cc780703f038f9a1e57a

query I rowsort
SELECT ALL - - ( + 69 ) AS col2 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT 95 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT - 60 * 32 FROM tab1 AS cor0
----
-1920
-1920
-1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 * 70 col1 FROM tab2 cor0
----
-1812
1981
2102

query I rowsort
SELECT DISTINCT - + 67 + - col0 FROM tab0 AS cor0
----
-102
-156
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 + - col0 * col2 col1 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT - - col0 + cor0.col1 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col2 * + col0 + col1 * 51 FROM tab2 AS cor0
----
1770
3869
5037

query I rowsort
SELECT DISTINCT - + col1 * col2 + ( col1 ) * + col2 * + cor0.col1 - - 66 FROM tab1 AS cor0
----
15042
35166
5196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 16 - col1 col1 FROM tab0 AS cor0
----
-102
-107
-113

query I rowsort
SELECT ALL - + 44 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT + - col0 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL + + col0 * + col0 * col0 FROM tab2 cor0
----
343
474552
493039

query I rowsort
SELECT ( col0 ) + col1 * - col0 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT col0 DIV + 78 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7068
SELECT col0 / + 78 FROM tab0
----
0
0
1

query I rowsort
SELECT - col2 * - col2 + 65 FROM tab2 AS cor0
----
1509
741
794

query I rowsort
SELECT DISTINCT + + col2 * - col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT + - col0 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT - 67 + + col2 * - col2 FROM tab2 AS cor0
----
-1511
-743
-796

query I rowsort
SELECT - + 16 + + col1 * - 45 FROM tab0 AS cor0
----
-3886
-4111
-4381

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col0 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT ALL + 31 DIV cor0.col0 + - col0 DIV col1 - col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + 31 / cor0.col0 + - col0 / col1 - col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 * - col1 * + 51 AS col2 FROM tab1 AS cor0
----
-29070
-63648
-71604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col2 FROM tab1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col0 FROM tab1, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to c2265365b5649c888846aefc3ede9a69

query I rowsort
SELECT - cor0.col1 - - ( - 31 * + col2 + + col2 ) FROM tab2 AS cor0
----
-1157
-839
-841

query I rowsort
SELECT - col0 * + 3 + col1 AS col0 FROM tab1 cor0
----
-182
-227
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-7081
SELECT col0 * + cor0.col2 + + cor0.col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-7081
SELECT col0 * + cor0.col2 + + cor0.col1 / + col1 AS col0 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT - + col1 * + col1 * ( col0 * + ( ( - cor0.col2 ) ) ) + col2 AS col2 FROM tab1 AS cor0
----
109566
1298016
364857

query I rowsort
SELECT ALL col0 * + col2 + - col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT ALL + - 82 + col2 AS col2 FROM tab0 AS cor0
----
-49
-81
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7085
SELECT - + col1 * - col1 + + col1 DIV col1 FROM tab1 cor0
----
101
170
677

skipif mysql # not compatible
query I rowsort label-7085
SELECT - + col1 * - col1 + + col1 / col1 FROM tab1 cor0
----
101
170
677

query I rowsort
SELECT DISTINCT + ( 24 ) * - col2 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT ( col2 ) + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7088
SELECT 54 * 55 DIV col2 FROM tab1 AS cor0
----
30
52
55

skipif mysql # not compatible
query I rowsort label-7088
SELECT 54 * 55 / col2 FROM tab1 AS cor0
----
30
52
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col0 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7090
SELECT DISTINCT + CAST( 25 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT + CAST ( 25 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
25

query I rowsort
SELECT 14 * - col0 AS col1 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT - + col2 * + 12 FROM tab1 cor0
----
-1152
-648
-684

query I rowsort
SELECT + col2 * - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 11 col1 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT + col1 * - col0 + + 33 FROM tab2 AS cor0
----
-1310
-184
-4569

query I rowsort
SELECT + 54 * + col1 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT + col2 * + col1 + + col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT col2 * tab2.col2 + col0 AS col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL 72 * cor0.col1 FROM tab1 cor0
----
1872
720
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-7101
SELECT DISTINCT + col1 + ( - col1 ) DIV + ( col1 ) FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT + col1 + ( - col1 ) / + ( col1 ) FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT + 23 * col1 FROM tab2 AS cor0
----
1357
391
713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7103
SELECT ALL - CAST( NULL AS DECIMAL ) / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - CAST ( NULL AS REAL ) / col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * - col0 * col0 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + col2 + + col2 + + col1 * tab2.col1 FROM tab2
----
1015
3533
365

query I rowsort
SELECT col0 + + 48 AS col0 FROM tab2
----
126
127
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7107
SELECT col1 * + col0 + col0 DIV - col1 AS col2 FROM tab1
----
1034
634
78

skipif mysql # not compatible
query I rowsort label-7107
SELECT col1 * + col0 + col0 / - col1 AS col2 FROM tab1
----
1034
634
78

query I rowsort
SELECT + col2 * - 98 + col2 + col0 AS col2 FROM tab0 AS cor0
----
-3177
-62
-7865

query I rowsort
SELECT - col0 * + 92 + ( col2 ) * col2 * + col0 AS col0 FROM tab2 cor0
----
106808
4459
45552

query I rowsort
SELECT ALL col1 * - col0 + + 60 AS col1 FROM tab2 AS cor0
----
-1283
-157
-4542

query I rowsort
SELECT + col2 + + col1 + col1 * - col2 FROM tab0 AS cor0
----
-2719
-7289
1

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col2 AS col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - col0 * col2 + + col1 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 * + col2 * col2 - col0 col2 FROM tab0 AS cor0
----
-383357
-62097
-92

query I rowsort
SELECT - + col2 * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - 94 * col0 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT 60 + 35 AS col2 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7119
SELECT ALL + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col0 FROM tab0 AS cor0
----
-63
-63
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7121
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7121
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + col1 - - col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - tab2.col1 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT tab1.col1 + + tab1.col0 + - col2 AS col2 FROM tab1
----
-25
-3
17

query I rowsort
SELECT 54 FROM tab1, tab1 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # use DIV operator for integer division
query I rowsort label-7127
SELECT ALL + col2 * col2 + 17 DIV + col2 FROM tab0
----
1089
18
6724

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL + col2 * col2 + 17 / + col2 FROM tab0
----
1089
18
6724

query I rowsort
SELECT col2 * + 91 - - col1 AS col2 FROM tab0
----
188
3089
7553

query I rowsort
SELECT col1 + col2 * - 37 AS col1 FROM tab2
----
-1389
-903
-968

query I rowsort
SELECT ( cor0.col0 ) + col1 + + col1 FROM tab2 AS cor0
----
113
196
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7131
SELECT DISTINCT col2 * cor0.col1 + - CAST( 66 AS SIGNED ) FROM tab1 AS cor0
----
1182
1338
504

skipif mysql # not compatible
query I rowsort label-7131
SELECT DISTINCT col2 * cor0.col1 + - CAST ( 66 AS INTEGER ) FROM tab1 AS cor0
----
1182
1338
504

query I rowsort
SELECT + ( col0 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 24 + col2 FROM tab1 AS cor0
----
30
33
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7134
SELECT + col1 - + col0 * CAST( - 13 AS SIGNED ) FROM tab1 AS cor0
----
1053
65
842

skipif mysql # not compatible
query I rowsort label-7134
SELECT + col1 - + col0 * CAST ( - 13 AS INTEGER ) FROM tab1 AS cor0
----
1053
65
842

query I rowsort
SELECT + col1 * + col1 * - 47 FROM tab0 AS cor0
----
-347612
-389207
-442223

query I rowsort
SELECT ALL + - 56 + + cor0.col0 FROM tab0 AS cor0
----
-21
-32
33

query I rowsort
SELECT ALL + ( 57 * col1 ) + - ( col2 ) FROM tab2
----
1740
3337
931

query I rowsort
SELECT ALL col2 + ( - col0 * col1 ) FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - + cor0.col1 * - ( + col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + col2 + col1 + col1 AS col2 FROM tab1 AS cor0
----
106