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 DISTINCT col2 + - 36 FROM tab2 AS cor0
----
-10
-9
2

query I rowsort
SELECT col0 * - 94 * - 69 FROM tab2 cor0
----
45402
505908
512394

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

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT - col2 / + 81 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT ALL - col2 + + col1 * - 42 AS col1 FROM tab0 AS cor0
----
-3645
-3904
-4075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 90 - col0 col2 FROM tab2 cor0
----
623
6942
7031

query I rowsort
SELECT DISTINCT + col2 + + 78 FROM tab1 AS cor0
----
132
135
174

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

query I rowsort
SELECT DISTINCT - col1 * - 15 - + col0 * col2 FROM tab0 AS cor0
----
-5933
1420
498

query I rowsort
SELECT col1 + tab2.col2 + col1 AS col2 FROM tab2
----
144
72
89

query I rowsort
SELECT DISTINCT - tab1.col0 * tab1.col2 + - col2 * tab1.col0 AS col1 FROM tab1
----
-15360
-324
-7296

query I rowsort
SELECT ALL + 28 * - cor0.col0 FROM tab1 AS cor0
----
-1792
-2240
-84

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

query I rowsort
SELECT ALL + ( 24 ) FROM tab1
----
24
24
24

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

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

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

skipif mysql # not compatible
query I rowsort label-16
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1, tab0 AS cor0
----
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-18
SELECT + 19 * col0 DIV - cor0.col1 FROM tab2 AS cor0
----
-25
-4
-88

skipif mysql # not compatible
query I rowsort label-18
SELECT + 19 * col0 / - cor0.col1 FROM tab2 AS cor0
----
-25
-4
-88

query I rowsort
SELECT + col1 + 52 FROM tab0
----
138
143
149

query I rowsort
SELECT ALL + ( - col0 ) * - cor0.col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - col1 + cor0.col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-22
SELECT ALL - - col2 * col0 - + 65 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
180
2028
3002

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - - col2 * col0 - + 65 / cor0.col0 AS col2 FROM tab2 AS cor0
----
180
2028
3002

query I rowsort
SELECT DISTINCT col0 + - col0 * ( + col0 * col2 ) + + col0 FROM tab2 AS cor0
----
-1309
-158028
-237000

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-25
SELECT ALL col1 / col2 + 29 col0 FROM tab1
----
29
29
29

query I rowsort
SELECT 96 * cor1.col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b42ff08e59e3946339991f1be89b6cac

onlyif mysql # use DIV operator for integer division
query I rowsort label-27
SELECT + 94 DIV tab0.col0 + col1 AS col1 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-27
SELECT + 94 / tab0.col0 + col1 AS col1 FROM tab0
----
89
92
99

query I rowsort
SELECT ( col1 * - col1 ) AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL 5 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
54
6089
6246

onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT ( + 38 ) DIV col1 AS col1 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-30
SELECT ( + 38 ) / col1 AS col1 FROM tab1 AS cor0
----
1
2
3

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

query I rowsort
SELECT 37 * + ( col0 ) FROM tab0
----
1295
3293
888

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + ( + col1 ) col0 FROM tab1 AS cor0
----
-28
-47
-83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT ALL + col1 DIV + col2 - col1 AS col2 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-36
SELECT ALL + col1 / + col2 - col1 AS col2 FROM tab0 AS cor0
----
-84
-90
0

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

query I rowsort
SELECT - 63 - col2 FROM tab1
----
-117
-120
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * col0 * + ( 46 + - cor0.col1 ) col1 FROM tab2 AS cor0
----
-194735
-8925
86190

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

query I rowsort
SELECT ALL + 85 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT - 60 * + col2 AS col0 FROM tab1 AS cor0
----
-3240
-3420
-5760

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * - CAST ( + col2 + cor0.col2 AS REAL ) FROM tab0 AS cor0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-44
SELECT DISTINCT col0 * + cor0.col0 - + 47 DIV col1 AS col1 FROM tab2 AS cor0
----
48
6084
6239

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT col0 * + cor0.col0 - + 47 / col1 AS col1 FROM tab2 AS cor0
----
48
6084
6239

onlyif mysql # use DIV operator for integer division
query I rowsort label-45
SELECT - + col1 - + cor0.col1 DIV 12 AS col0 FROM tab0 AS cor0
----
-105
-93
-98

skipif mysql # not compatible
query I rowsort label-45
SELECT - + col1 - + cor0.col1 / 12 AS col0 FROM tab0 AS cor0
----
-105
-93
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-46
SELECT + col0 - col0 DIV 24 FROM tab2 AS cor0
----
7
75
76

skipif mysql # not compatible
query I rowsort label-46
SELECT + col0 - col0 / 24 FROM tab2 AS cor0
----
7
75
76

query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( - 54 ) + col2 * + col2 col0 FROM tab1 AS cor0
----
-207
2754
4896

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

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

query I rowsort
SELECT DISTINCT + col1 * 34 + - 57 FROM tab1
----
283
385
827

query I rowsort
SELECT col0 * 43 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT DISTINCT - col2 * - 94 + - col1 AS col1 FROM tab0
----
-3
3016
7617

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

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

query I rowsort
SELECT - col1 + 37 FROM tab2
----
-22
20
6

query I rowsort
SELECT col1 + col0 * col2 + - col0 * col1 AS col1 FROM tab0
----
-1186
-3263
-710

onlyif mysql # use DIV operator for integer division
query I rowsort label-57
SELECT DISTINCT col2 + - col0 DIV + col0 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT col2 + - col0 / + col0 FROM tab2
----
25
26
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-58
SELECT col2 * CAST( NULL AS DECIMAL ) / 12 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-58
SELECT col2 * CAST ( NULL AS REAL ) / 12 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + 94 FROM tab0 AS cor0
----
180
185
191

query I rowsort
SELECT ALL - col0 * - 28 AS col2 FROM tab2 AS cor0
----
196
2184
2212

onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT ALL col2 * col2 DIV 56 + col1 AS col2 FROM tab0 AS cor0
----
105
211
97

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL col2 * col2 / 56 + col1 AS col2 FROM tab0 AS cor0
----
105
211
97

query I rowsort
SELECT ALL - col1 * + 61 + 69 AS col1 FROM tab2 AS cor0
----
-1822
-3530
-968

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab1.col0 * + tab1.col0 col1 FROM tab1
----
262144
27
512000

query I rowsort
SELECT ALL + ( + col0 ) * 25 * 54 AS col2 FROM tab2
----
105300
106650
9450

query I rowsort
SELECT DISTINCT + col2 + + col0 + col1 AS col0 FROM tab1
----
131
189
83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-68
SELECT - col0 DIV ( + 85 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-68
SELECT - col0 / ( + 85 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( 47 ) * + col2 AS col0 FROM tab1
----
2538
2679
4512

query I rowsort
SELECT 41 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col1 FROM tab2 AS cor0
----
-4
-4
-4

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

query I rowsort
SELECT - 81 * + col2 AS col2 FROM tab1 AS cor0
----
-4374
-4617
-7776

query I rowsort
SELECT col2 * col0 * col1 + col2 AS col0 FROM tab2
----
119678
51072
5886

onlyif mysql # use DIV operator for integer division
query I rowsort label-75
SELECT col1 + - cor0.col1 DIV col0 + 64 AS col2 FROM tab2 AS cor0
----
123
81
91

skipif mysql # not compatible
query I rowsort label-75
SELECT col1 + - cor0.col1 / col0 + 64 AS col2 FROM tab2 AS cor0
----
123
81
91

query I rowsort
SELECT col2 * cor0.col1 * 57 FROM tab2 AS cor0
----
36822
47709
87438

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + col0 + col1 col2 FROM tab1 AS cor0
----
-3
42
61

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

query I rowsort
SELECT DISTINCT col0 * col1 * - col2 + - cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
-672217
-6790
-70176

query I rowsort
SELECT - cor0.col1 - - cor0.col2 FROM tab1 AS cor0
----
28
47
83

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

query I rowsort
SELECT - col2 * col0 * cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
-1350
-158210
-237196

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-83
SELECT 69 * col0 * CAST( NULL AS SIGNED ) 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-83
SELECT 69 * col0 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-85
SELECT DISTINCT + + col2 DIV - col1 - - 65 AS col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT + + col2 / - col1 - - 65 AS col1 FROM tab0 AS cor0
----
65

query I rowsort
SELECT 99 + - col0 * + ( col2 ) FROM tab2
----
-1929
-2903
-90

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

skipif mysql # not compatible
query I rowsort label-87
SELECT - ( - tab0.col0 + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-89
SELECT ALL 23 + col0 DIV col0 FROM tab0 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-89
SELECT ALL 23 + col0 / col0 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 35 col1 FROM tab1 AS cor0
----
1890
1995
3360

query I rowsort
SELECT - col1 + - ( + 3 ) * - col1 + + cor0.col2 * 63 AS col1 FROM tab0 AS cor0
----
2251
257
5348

query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

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

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

query I rowsort
SELECT ALL + cor0.col0 + 40 AS col1 FROM tab1 cor0
----
104
120
43

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

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

query I rowsort
SELECT ALL 16 - tab0.col1 AS col2 FROM tab0
----
-70
-75
-81

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

query I rowsort
SELECT col1 + ( - col2 + - col2 ) AS col2 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT - - col0 * 8 FROM tab1 AS cor0
----
24
512
640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-101
SELECT ALL + CAST( + col2 AS SIGNED ) + - col0 * - 37 AS col0 FROM tab0 AS cor0
----
1296
3375
921

skipif mysql # not compatible
query I rowsort label-101
SELECT ALL + CAST ( + col2 AS INTEGER ) + - col0 * - 37 AS col0 FROM tab0 AS cor0
----
1296
3375
921

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

query I rowsort
SELECT DISTINCT col2 * + col2 - cor0.col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + - col2 * + 6 FROM tab1 AS cor0
----
-324
-342
-576

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

query I rowsort
SELECT - + col2 + + 11 AS col2 FROM tab0 cor0
----
-22
-71
10

query I rowsort
SELECT - cor0.col0 + - 24 AS col2 FROM tab0 AS cor0
----
-113
-48
-59

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

query I rowsort
SELECT DISTINCT - col0 * 61 AS col0 FROM tab2 AS cor0
----
-427
-4758
-4819

query I rowsort
SELECT ALL + + ( + 40 ) * - col2 * col2 AS col1 FROM tab2 AS cor0
----
-27040
-29160
-57760

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

query I rowsort
SELECT + + col0 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
262144
27
512000

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

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

query I rowsort
SELECT ALL + ( 7 ) FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT 55 * - 95 FROM tab1 AS cor0
----
-5225
-5225
-5225

query I rowsort
SELECT ALL + cor0.col0 * - 44 AS col1 FROM tab0 AS cor0
----
-1056
-1540
-3916

query I rowsort
SELECT DISTINCT - + 23 + cor0.col0 * col1 AS col1 FROM tab0 cor0
----
2041
3372
8076

query I rowsort
SELECT - - col2 + col1 * cor0.col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL + + 99 * col0 FROM tab0 AS cor0
----
2376
3465
8811

query I rowsort
SELECT ALL ( cor0.col1 * - ( - 15 ) ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e86c1144a1443e69e90e4492f722df0b

query I rowsort
SELECT - + 12 + - col1 FROM tab0 AS cor0
----
-103
-109
-98

query I rowsort
SELECT DISTINCT - 61 + - col1 FROM tab1 cor0
----
-71
-74
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-123
SELECT 19 DIV col0 + col2 * col0 FROM tab2
----
191
2028
3002

skipif mysql # not compatible
query I rowsort label-123
SELECT 19 / col0 + col2 * col0 FROM tab2
----
191
2028
3002

query I rowsort
SELECT - 82 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 9 AS REAL ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 * - col0 col0 FROM tab1 AS cor0
----
-188
-3658
-7693

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

query I rowsort
SELECT ALL - + col1 * 93 AS col1 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT + - col1 * - 92 * + col2 FROM tab2 AS cor0
----
141128
59432
77004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col0 * + col0 * + col2 col2 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT - col1 + + ( - 86 + tab0.col1 ) FROM tab0
----
-86
-86
-86

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

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

query I rowsort
SELECT ALL + cor0.col2 * col2 + col0 * + ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
2787
5278
946

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

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

query I rowsort
SELECT + + cor0.col2 * + col0 - col2 * 88 AS col2 FROM tab0 AS cor0
----
-2112
-53
82

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-139
SELECT DISTINCT - col0 + + col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT - col0 + + col0 / - col2 AS col1 FROM tab0 AS cor0
----
-24
-70
-90

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

query I rowsort
SELECT - 47 * col0 + + col2 FROM tab0 AS cor0
----
-1095
-1644
-4101

query I rowsort
SELECT ALL + 88 - + tab0.col2 * - col1 AS col0 FROM tab0
----
185
2926
7550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + cor0.col1 * col2 col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT - ( cor0.col0 ) * + col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

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

query I rowsort
SELECT ALL + - 40 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT + 69 * col1 AS col2 FROM tab0
----
5934
6279
6693

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-151
SELECT 60 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-151
SELECT 60 / col1 AS col0 FROM tab0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823

query I rowsort
SELECT DISTINCT + 40 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
40

query I rowsort
SELECT + - col2 + - col0 + 87 FROM tab0 AS cor0
----
-84
30
51

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

query I rowsort
SELECT + cor0.col2 * - 86 FROM tab0 AS cor0
----
-2838
-7052
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 + - col2 col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - 86 * 14 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 326b271319c76981f3a71eaa7236dbc3

query I rowsort
SELECT 10 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # use DIV operator for integer division
query I rowsort label-163
SELECT ALL 44 DIV + col0 FROM tab1 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL 44 / + col0 FROM tab1 AS cor0
----
0
0
14

query I rowsort
SELECT ALL - ( + col1 ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - 3 * + col2 AS col0 FROM tab2 cor0
----
-114
-78
-81

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

query I rowsort
SELECT + - col2 * - col0 * - col2 - - col1 FROM tab1 AS cor0
----
-207926
-737267
-8722

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-169
SELECT + col1 DIV 84 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-169
SELECT + col1 / 84 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - + ( - 90 ) + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4006
-6310
81

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT ALL + col0 * + 77 + col0 - - cor0.col0 * 74 DIV + col2 col2 FROM tab1 AS cor0
----
238
5075
6301

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + col0 * + 77 + col0 - - cor0.col0 * 74 / + col2 col2 FROM tab1 AS cor0
----
238
5075
6301

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT DISTINCT ( col0 ) + + col0 DIV + CAST( + 31 AS SIGNED ) FROM tab1 AS cor0
----
3
66
82

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT ( col0 ) + + col0 / + CAST ( + 31 AS INTEGER ) FROM tab1 AS cor0
----
3
66
82

query I rowsort
SELECT 77 - - col1 FROM tab1 AS cor0
----
103
87
90

query I rowsort
SELECT DISTINCT + + col2 * - cor0.col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col0 * 2 + - col0 * CAST ( 40 AS REAL ) + col2 FROM tab0 cor0
----
-1469
-3656
-975

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

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

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

query I rowsort
SELECT DISTINCT 89 * 81 + - col2 FROM tab1 AS cor0
----
7113
7152
7155

query I rowsort
SELECT - ( col0 ) + col2 AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL - 97 + - col1 * - col0 FROM tab1 AS cor0
----
-19
543
943

query I rowsort
SELECT DISTINCT + 8 AS col1 FROM tab2 AS cor0
----
8

query I rowsort
SELECT DISTINCT + ( col0 ) * col2 + tab1.col2 AS col2 FROM tab1
----
216
3705
7776

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

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

query I rowsort
SELECT - col1 * 66 AS col1 FROM tab0
----
-5676
-6006
-6402

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

query I rowsort
SELECT col1 + col2 * + 56 FROM tab2 AS cor0
----
1515
1543
2145

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

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

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

skipif mysql # not compatible
query I rowsort label-192
SELECT ALL - - col1 / ( + 64 ) - + col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

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

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

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

query I rowsort
SELECT DISTINCT + - ( 34 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1836
1938
3264

query I rowsort
SELECT + ( 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-197
SELECT ALL col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
162
3648
7680

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT - col2 DIV ( col1 * col1 ) + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-199
SELECT - col2 / ( col1 * col1 ) + col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + col0 * + col2 col1 FROM tab2
----
1026
3562
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-201
SELECT + 92 DIV - 33 FROM tab2, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-201
SELECT + 92 / - 33 FROM tab2, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL ( cor0.col2 ) * col2 + + 25 FROM tab0 AS cor0
----
1114
26
6749

query I rowsort
SELECT ALL - ( 95 ) AS col2 FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ( 72 ) + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-17
37
48

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 AS cor2, tab2 AS cor3
----
13122 values hashing to e89fa5492a9d8cf9d73608fe00da29d4

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

query I rowsort
SELECT ALL 40 * col1 FROM tab0 cor0
----
3440
3640
3880

query I rowsort
SELECT DISTINCT col0 * 44 FROM tab2
----
308
3432
3476

query I rowsort
SELECT ALL - 51 FROM tab0 cor0
----
-51
-51
-51

query I rowsort
SELECT - + 21 * col1 + col2 FROM tab1 AS cor0
----
-153
-177
-492

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

query I rowsort
SELECT ALL - - col0 + + ( + col2 ) * - 27 AS col1 FROM tab1 AS cor0
----
-1455
-1475
-2512

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

query I rowsort
SELECT DISTINCT col2 + - col1 * + ( col1 ) AS col0 FROM tab1
----
-43
-622
-73

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-217
SELECT ALL + 29 + + cor0.col1 DIV 57 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

skipif mysql # not compatible
query I rowsort label-217
SELECT ALL + 29 + + cor0.col1 / 57 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT DISTINCT - 91 * + col1 AS col0 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT DISTINCT + + 83 * col1 + cor0.col2 * + col0 - col2 AS col2 FROM tab2 AS cor0
----
2735
4375
6899

query I rowsort
SELECT DISTINCT - 48 + col1 + - 91 AS col2 FROM tab0
----
-42
-48
-53

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

query I rowsort
SELECT - + col1 + - 56 * + col0 FROM tab2 AS cor0
----
-423
-4427
-4441

query I rowsort
SELECT DISTINCT + col0 + - ( col2 ) FROM tab1 AS cor0
----
-16
-51
7

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

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

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

query I rowsort
SELECT DISTINCT - - col2 + - ( - col0 ) * col0 FROM tab0 AS cor0
----
1226
609
8003

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT - + col1 DIV - 88 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-229
SELECT - + col1 / - 88 FROM tab0 AS cor0
----
0
1
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * col1 * col0 col2 FROM tab2
----
11718
248508
72522

query I rowsort
SELECT - 17 * + col0 AS col2 FROM tab1
----
-1088
-1360
-51

query I rowsort
SELECT ALL tab2.col2 + col2 * tab2.col2 AS col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT - 76 * 9 FROM tab2
----
-684
-684
-684

query I rowsort
SELECT ALL ( + col1 ) + + tab2.col1 AS col0 FROM tab2
----
118
34
62

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

query I rowsort
SELECT DISTINCT + + col2 + 35 AS col1 FROM tab2 AS cor0
----
61
62
73

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

query I rowsort
SELECT 24 - + col0 * col1 AS col0 FROM tab0 AS cor0
----
-2040
-3371
-8075

query I rowsort
SELECT DISTINCT col1 * 41 * - col1 FROM tab2
----
-11849
-142721
-39401

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

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

query I rowsort
SELECT - col1 * col2 + col1 FROM tab2 cor0
----
-1475
-629
-806

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

query I rowsort
SELECT - col2 * + col0 + + col1 + + col0 FROM tab1 AS cor0
----
-133
-3574
-7587

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 + + col2 col2 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL - + 95 AS col1 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT + - 43 * + col2 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT - + col1 * - col0 + cor0.col2 * - col1 FROM tab2 cor0
----
-620
3068
697

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

query I rowsort
SELECT - 2 * col0 + cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1690
-804
-851

query I rowsort
SELECT 58 + cor0.col1 AS col1 FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT - - col0 + ( col1 ) * + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - col0 + - 7 * col2 * + col2 AS col0 FROM tab1 cor0
----
-20415
-22807
-64592

query I rowsort
SELECT ALL - + col1 + 15 AS col0 FROM tab0 AS cor0
----
-71
-76
-82

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

skipif mysql # not compatible
query I rowsort label-256
SELECT DISTINCT col0 / - tab2.col1 AS col1 FROM tab2
----
-1
-4
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 22 col1 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT DISTINCT - cor0.col1 + 78 FROM tab1 AS cor0
----
52
65
68

query I rowsort
SELECT ALL col1 * + ( + ( col1 ) ) + col1 AS col1 FROM tab0 cor0
----
7482
8372
9506

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

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

query I rowsort
SELECT col1 + col1 * col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * - col2 + + col2 - - col1 <> - col2 + col1 - col0 * + col2
----

query I rowsort
SELECT 98 + + col0 AS col2 FROM tab1
----
101
162
178

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-270
SELECT DISTINCT + + 9 + col2 DIV col2 AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-270
SELECT DISTINCT + + 9 + col2 / col2 AS col2 FROM tab1 AS cor0
----
10

query I rowsort
SELECT ALL cor0.col0 - + cor0.col2 FROM tab1 AS cor0
----
-16
-51
7

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

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

query I rowsort
SELECT DISTINCT - tab0.col0 * col0 + 21 FROM tab0
----
-1204
-555
-7900

query I rowsort
SELECT - col0 * - col1 * col1 - cor0.col2 FROM tab2 AS cor0
----
22793
271492
6700

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

query I rowsort
SELECT ALL col2 + 0 * 94 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col2 * col2 + + 31 FROM tab2 AS cor0
----
1475
707
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-279
SELECT CAST( - 91 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-279
SELECT CAST ( - 91 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-280
SELECT DISTINCT CAST( + col2 AS SIGNED ) * col0 + - tab0.col2 FROM tab0
----
34
7216
759

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * col0 + - tab0.col2 FROM tab0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 * - col0 * col2 + 1 - col2 * col2 col2 FROM tab1 AS cor0
----
-1619
25936
52225

query I rowsort
SELECT ALL + + ( - col2 ) * col2 + - 44 * col1 AS col1 FROM tab2 AS cor0
----
-2093
-2192
-3272

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( - cor0.col0 ) col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-285
SELECT DISTINCT - col0 + + col2 DIV 45 AS col1 FROM tab1 AS cor0
----
-2
-63
-78

skipif mysql # not compatible
query I rowsort label-285
SELECT DISTINCT - col0 + + col2 / 45 AS col1 FROM tab1 AS cor0
----
-2
-63
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 + col1 * + col0 col2 FROM tab1 AS cor0
----
1087
125
687

query I rowsort
SELECT DISTINCT - 46 * col0 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT - 26 * - cor0.col2 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT + col0 + col2 * 3 FROM tab0 AS cor0
----
123
335
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-290
SELECT DISTINCT col2 * + col1 + - ( + 20 ) + col1 DIV - ( 78 * - cor0.col2 ) AS col1 FROM tab1 cor0
----
1228
1384
550

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT col2 * + col1 + - ( + 20 ) + col1 / - ( 78 * - cor0.col2 ) AS col1 FROM tab1 cor0
----
1228
1384
550

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

query I rowsort
SELECT DISTINCT - col2 * 89 * + col0 + col0 AS col0 FROM tab2
----
-16814
-180414
-267099

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 * col0 + + 43 FROM tab1
----
-233429
-443
-614357

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

query I rowsort
SELECT DISTINCT + 30 + + col0 FROM tab1 AS cor0
----
110
33
94

query I rowsort
SELECT ALL - cor0.col0 + col2 - - col0 * + col1 FROM tab2 AS cor0
----
1302
237
4550

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

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

skipif mysql # not compatible
query I rowsort label-298
SELECT - ( ( - col1 ) + CAST ( ( col2 ) AS INTEGER ) ) * col1 AS col1 FROM tab0
----
4558
819
9312

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5

query I rowsort
SELECT ALL col1 * 81 + - tab2.col2 + ( + col2 + col1 ) FROM tab2
----
1394
2542
4838

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

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

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

query I rowsort
SELECT ALL - 67 + - col2 * - 57 FROM tab0 cor0
----
-10
1814
4607

onlyif mysql # use DIV operator for integer division
query I rowsort label-305
SELECT DISTINCT - col1 DIV col0 + col2 - - tab2.col1 FROM tab2
----
54
55
85

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT - col1 / col0 + col2 - - tab2.col1 FROM tab2
----
54
55
85

query I rowsort
SELECT + col2 * col2 * col0 + col1 * ( col1 ) + col1 FROM tab2
----
114382
56268
6095

query I rowsort
SELECT ALL col0 - + 59 FROM tab0
----
-24
-35
30

query I rowsort
SELECT col1 - + 1 FROM tab0
----
85
90
96

query I rowsort
SELECT ALL col1 * - col0 * tab1.col2 - col2 FROM tab1
----
-36537
-4266
-99936

query I rowsort
SELECT + - col2 - ( + col2 + + 65 ) * + col2 AS col2 FROM tab1 AS cor0
----
-15552
-6480
-7011

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

query I rowsort
SELECT + col0 * - col0 - col0 AS col0 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-313
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-313
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL 95 * - 35 FROM tab2 AS cor0
----
-3325
-3325
-3325

onlyif mysql # use DIV operator for integer division
query I rowsort label-315
SELECT col2 DIV 33 + col1 AS col2 FROM tab2
----
18
31
59

skipif mysql # not compatible
query I rowsort label-315
SELECT col2 / 33 + col1 AS col2 FROM tab2
----
18
31
59

query I rowsort
SELECT - tab1.col1 + + 32 AS col2 FROM tab1
----
19
22
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-317
SELECT col1 DIV + 6 FROM tab2
----
2
5
9

skipif mysql # not compatible
query I rowsort label-317
SELECT col1 / + 6 FROM tab2
----
2
5
9

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

query I rowsort
SELECT ALL - tab2.col1 + 54 - 50 FROM tab2
----
-13
-27
-55

query I rowsort
SELECT DISTINCT col2 + 44 * - col1 * - col0 - + col1 FROM tab0
----
149284
356347
90763

query I rowsort
SELECT ALL + col1 + - col1 * + col2 FROM tab2
----
-1475
-629
-806

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

query I rowsort
SELECT DISTINCT - 30 * col2 FROM tab0 cor0
----
-2460
-30
-990

query I rowsort
SELECT - ( 26 ) + col1 + 6 AS col0 FROM tab2 cor0
----
-3
11
39

query I rowsort
SELECT 83 + col1 + + col0 FROM tab0 AS cor0
----
193
215
263

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

query I rowsort
SELECT 77 * col0 + + col2 * - col2 + cor0.col2 FROM tab2 cor0
----
-163
4677
5356

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

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT - + col1 / col0 AS col2 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT 4 * 88 + cor0.col0 + 81 * - 10 AS col0 FROM tab1 AS cor0
----
-378
-394
-455

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

query I rowsort
SELECT ALL col0 * - 99 AS col1 FROM tab2 AS cor0
----
-693
-7722
-7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 82 * + col1 * col2 col2 FROM tab0 AS cor0
----
232749
611966
7955

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

skipif mysql # not compatible
query I rowsort label-334
SELECT DISTINCT + - col0 / col0 FROM tab0 cor0
----
-1

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

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

skipif mysql # not compatible
query I rowsort label-336
SELECT CAST ( col2 AS INTEGER ) * col0 + + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - ( + 68 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1768
-680
-884

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

query I rowsort
SELECT - + ( 5 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT + tab0.col1 * + col1 + + 14 AS col1 FROM tab0
----
7410
8295
9423

query I rowsort
SELECT DISTINCT - 60 FROM tab0
----
-60

query I rowsort
SELECT 72 * - ( col0 ) AS col2 FROM tab1
----
-216
-4608
-5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-343
SELECT - - ( - cor0.col2 ) * col2 - + 84 DIV col0 FROM tab0 AS cor0
----
-1092
-3
-6724

skipif mysql # not compatible
query I rowsort label-343
SELECT - - ( - cor0.col2 ) * col2 - + 84 / col0 FROM tab0 AS cor0
----
-1092
-3
-6724

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

query I rowsort
SELECT + col2 * - col0 * + tab0.col2 + tab0.col0 * - col2 * 91 FROM tab0
----
-1262554
-3220
-98208

onlyif mysql # use DIV operator for integer division
query I rowsort label-346
SELECT - col1 + col0 DIV + col2 col1 FROM tab1
----
-13
-26
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-346
SELECT - col1 + col0 / + col2 col1 FROM tab1
----
-13
-26
-9

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

query I rowsort
SELECT ALL ( tab1.col1 + + col0 ) * - col2 FROM tab1
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT - + col1 * col0 * col1 - col0 AS col2 FROM tab0 AS cor0
----
-177528
-329350
-737098

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

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

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

query I rowsort
SELECT col1 * + col1 * + col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT col2 * col1 * 64 AS col2 FROM tab2 AS cor0
----
41344
53568
98176

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT col0 * + col2 - tab2.col1 AS col2 FROM tab2
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-356
SELECT - col1 * col2 DIV - 86 + + col2 * 67 col1 FROM tab2
----
1759
1818
2553

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-356
SELECT - col1 * col2 / - 86 + + col2 * 67 col1 FROM tab2
----
1759
1818
2553

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-359
SELECT ALL - col2 DIV - ( col0 + - col1 ) FROM tab1
----
-2
1
1

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL - col2 / - ( col0 + - col1 ) FROM tab1
----
-2
1
1

query I rowsort
SELECT DISTINCT + col2 * 8 AS col0 FROM tab2 AS cor0
----
208
216
304

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-362
SELECT DISTINCT - - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - 81 + col2 FROM tab0 cor0
----
-48
-80
1

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 82 AS REAL ) * col2 FROM tab1 AS cor0
----
4428
4674
7872

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

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL - CAST ( + col2 AS INTEGER ) * cor0.col1 * ( - 45 + - col1 ) AS col1 FROM tab0 AS cor0
----
1014832
13774
371778

onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT 33 * 81 DIV col1 col1 FROM tab0 AS cor0
----
27
29
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-367
SELECT 33 * 81 / col1 col1 FROM tab0 AS cor0
----
27
29
31

query I rowsort
SELECT ALL 90 AS col2 FROM tab0 AS cor0
----
90
90
90

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

query I rowsort
SELECT - col2 * + col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

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

query I rowsort
SELECT 59 * + cor0.col1 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT ALL - col0 * + cor0.col0 + + ( - col0 * + col2 + ( - 64 ) * col1 ) AS col1 FROM tab1 AS cor0
----
-14912
-1835
-8384

query I rowsort
SELECT - col2 * cor0.col1 + ( 14 ) * + col2 AS col0 FROM tab1 cor0
----
-648
228
96

query I rowsort
SELECT DISTINCT + col2 + - ( - 36 ) FROM tab0 AS cor0
----
118
37
69

query I rowsort
SELECT - 65 * + col1 FROM tab1
----
-1690
-650
-845

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

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

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

query I rowsort
SELECT DISTINCT cor0.col0 + col1 * + col1 AS col1 FROM tab1 AS cor0
----
164
249
679

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

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

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

query I rowsort
SELECT DISTINCT 63 * col2 AS col0 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT + - 81 + - col0 FROM tab1 AS cor0
----
-145
-161
-84

query I rowsort
SELECT DISTINCT + 85 + - col0 FROM tab0 cor0
----
-4
50
61

query I rowsort
SELECT DISTINCT 78 * + col0 AS col1 FROM tab2 cor0
----
546
6084
6162

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

query I rowsort
SELECT DISTINCT col0 + col1 * + col2 + + col2 AS col1 FROM tab1
----
1424
1461
691

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

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 51 AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT + cor1.col1 * 11 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a2e7ea6fb249573ca21cb56d28d49e82

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

query I rowsort
SELECT - 36 * + col0 FROM tab1 cor0
----
-108
-2304
-2880

query I rowsort
SELECT ALL + 42 AS col1 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * 80 FROM tab1 AS cor0
----
214
5110
6387

query I rowsort
SELECT + 47 + col2 FROM tab0 AS cor0
----
129
48
80

query I rowsort
SELECT - - 65 * col2 AS col0 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT ALL + - col1 - col2 * - col2 FROM tab1 AS cor0
----
2890
3239
9203

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

query I rowsort
SELECT ALL - - cor0.col2 * col0 + + ( col2 + - col1 ) * - col0 * col0 FROM tab1 AS cor0
----
-188864
-523520
-90

query I rowsort
SELECT - tab0.col1 * + 7 + - tab0.col2 + - col2 AS col2 FROM tab0
----
-668
-681
-801

query I rowsort
SELECT col2 + col2 * + 81 - + col1 FROM tab0
----
-15
2620
6633

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

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

query I rowsort
SELECT DISTINCT + 48 FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
48

query I rowsort
SELECT - tab1.col2 + - ( + tab1.col1 ) * tab1.col2 * + 71 + + col2 * + col2 * tab1.col2 FROM tab1
----
144666
57726
796032

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

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

query I rowsort
SELECT col2 * cor0.col0 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL - col0 * col0 * col2 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT col0 + 76 * - col0 AS col1 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT DISTINCT - col0 + - 97 FROM tab0
----
-121
-132
-186

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-414
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-414
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col0 * - col2 * col0 FROM tab2 AS cor0
----
1323
158184
237158

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

skipif mysql # not compatible
query I rowsort label-416
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 85 + + col1 * + col2 FROM tab2
----
1619
731
922

query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-419
SELECT - CAST( col2 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-419
SELECT - CAST ( col2 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL col1 + + 86 AS col0 FROM tab1 AS cor0
----
112
96
99

query I rowsort
SELECT col0 - - 57 AS col1 FROM tab0 cor0
----
146
81
92

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT DISTINCT + 10 + + 39 DIV col1 + col2 FROM tab1 AS cor0
----
109
65
70

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT + 10 + + 39 / col1 + col2 FROM tab1 AS cor0
----
109
65
70

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

query I rowsort
SELECT ALL - col2 * col0 + col1 * ( col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-22788
-27550
-41912

query I rowsort
SELECT col2 * - 85 + + col1 AS col1 FROM tab1 cor0
----
-4564
-4835
-8147

query I rowsort
SELECT ALL - + 75 AS col2 FROM tab2 cor0
----
-75
-75
-75

query I rowsort
SELECT ALL - ( + col1 ) * - col1 * ( 75 ) AS col0 FROM tab1 AS cor0
----
12675
50700
7500

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-430
SELECT ALL + CAST( 38 AS SIGNED ) * col1 + 13 + cor0.col0 FROM tab2 AS cor0
----
1198
2333
738

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL + CAST ( 38 AS INTEGER ) * col1 + 13 + cor0.col0 FROM tab2 AS cor0
----
1198
2333
738

query I rowsort
SELECT - + cor0.col0 + 39 FROM tab1, tab2 cor0
----
9 values hashing to 4b120b03e2e1418ee918841938e226a1

query I rowsort
SELECT ALL + 82 + - col2 * + col0 FROM tab0 AS cor0
----
-710
-7216
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + + 29 col0 FROM tab2
----
87

query I rowsort
SELECT ( 7 ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

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

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

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

query I rowsort
SELECT cor0.col2 + + col2 * - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-1296
-158158
-237120

onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT ALL col1 DIV col0 + 36 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
73
7335
831

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL col1 / col0 + 36 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
73
7335
831

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

query I rowsort
SELECT DISTINCT - col1 * + col1 - col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT DISTINCT - 90 FROM tab1, tab1 AS cor0
----
-90

query I rowsort
SELECT ALL 12 * - 26 FROM tab2, tab0 AS cor0
----
9 values hashing to a577a53150a3af3bafc73154955532a0

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + - CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - col2 - col2 FROM tab2 cor0
----
-52
-54
-76

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

query I rowsort
SELECT DISTINCT col2 - tab1.col0 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT + col0 - - col1 * cor0.col0 AS col1 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT - + 22 + - col2 AS col0 FROM tab1 cor0
----
-118
-76
-79

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

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

query I rowsort
SELECT + 36 * + col1 + - cor0.col1 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT + 8 + + col0 FROM tab1 cor0
----
11
72
88

query I rowsort
SELECT - col0 * col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - 15 AS col0 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT - 91 * 1 + + col2 AS col0 FROM tab1 AS cor0
----
-34
-37
5

query I rowsort
SELECT - col2 * tab0.col1 + col0 * col2 + + 87 * col1 AS col0 FROM tab0
----
5436
7753
8377

query I rowsort
SELECT col0 * 65 * + tab2.col1 FROM tab2
----
14105
299130
87295

query I rowsort
SELECT col1 * + ( col2 * col1 ) + ( tab0.col2 ) AS col1 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT ALL + tab0.col1 + 7 FROM tab0
----
104
93
98

query I rowsort
SELECT DISTINCT - col1 * - col2 + col1 FROM tab1
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( 82 ) + col0 col0 FROM tab2
----
-567
-6318
-6399

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

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

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

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

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

query I rowsort
SELECT - 47 * + col1 FROM tab0 AS cor0
----
-4042
-4277
-4559

query I rowsort
SELECT - + col0 * 89 + col2 + col1 AS col2 FROM tab0 AS cor0
----
-2017
-3017
-7748

query I rowsort
SELECT + - ( - col0 ) * - col2 + 59 * cor0.col0 FROM tab1 AS cor0
----
-2960
128
15

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 20 col0 FROM tab2
----
-1180
-340
-620

query I rowsort
SELECT DISTINCT - 25 + cor0.col1 FROM tab1 AS cor0
----
-12
-15
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * - col0 col1 FROM tab0 cor0
----
1080
1575
4005

query I rowsort
SELECT DISTINCT - + 90 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-144
-147
-186

onlyif mysql # use DIV operator for integer division
query I rowsort label-475
SELECT 76 + - cor0.col1 + - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-118
-12
-16

skipif mysql # not compatible
query I rowsort label-475
SELECT 76 + - cor0.col1 + - col1 / col2 AS col2 FROM tab0 AS cor0
----
-118
-12
-16

query I rowsort
SELECT ALL + col2 * col1 + - 98 AS col2 FROM tab2 AS cor0
----
1436
548
739

query I rowsort
SELECT DISTINCT + 45 * - tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
-1170
-1215
-1710

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

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

query I rowsort
SELECT 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + ( - col0 ) + col0 FROM tab1 cor0
----
0
0
0

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

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

query I rowsort
SELECT - + col2 * - col0 + + 22 FROM tab2 AS cor0
----
2050
211
3024

query I rowsort
SELECT 41 * + col1 AS col0 FROM tab1 AS cor0
----
1066
410
533

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT - - col2 + - 20 AS col0 FROM tab2 AS cor0
----
18
6
7

query I rowsort
SELECT + + 25 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2050
25
825

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

query I rowsort
SELECT + ( col1 ) * col2 + - col0 * + col0 + col1 FROM tab2 cor0
----
-4491
-5578
819

query I rowsort
SELECT DISTINCT col2 * ( 66 ) * - col1 + cor0.col0 FROM tab2 cor0
----
-101166
-42557
-55235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 * 26 + - col2 col1 FROM tab1 AS cor0
----
-129
-1657
-2096

query I rowsort
SELECT DISTINCT + col1 - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col0 * + col2 col1 FROM tab2 AS cor0
----
378
4056
6004

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

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

query I rowsort
SELECT ALL col2 * col0 * - col1 + - col2 - + col0 AS col2 FROM tab0
----
-3431
-664289
-68169

query I rowsort
SELECT ALL + 29 - + col0 FROM tab1
----
-35
-51
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-498
SELECT + - col1 DIV - 12 + + col1 FROM tab2 AS cor0
----
18
33
63

skipif mysql # not compatible
query I rowsort label-498
SELECT + - col1 / - 12 + + col1 FROM tab2 AS cor0
----
18
33
63

query I rowsort
SELECT ALL + col0 * 23 + col1 FROM tab1 AS cor0
----
1482
1853
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-500
SELECT DISTINCT + col2 - CAST( 26 AS SIGNED ) AS col2 FROM tab0 cor0
----
-25
56
7

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT + col2 - CAST ( 26 AS INTEGER ) AS col2 FROM tab0 cor0
----
-25
56
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 77 col2 FROM tab2 AS cor0
----
539
6006
6083

query I rowsort
SELECT - col2 - ( - 66 + + col0 ) FROM tab1 cor0
----
-110
-55
9

query I rowsort
SELECT DISTINCT col0 + + ( col0 ) * - col0 + + 39 * - col1 AS col0 FROM tab0 AS cor0
----
-11381
-3906
-4973

query I rowsort
SELECT - col0 * - 39 + col1 FROM tab2 AS cor0
----
304
3098
3101

query I rowsort
SELECT ALL - col1 * - col0 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

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

query I rowsort
SELECT ALL + + 63 * 14 + cor0.col0 - col0 FROM tab2 cor0
----
882
882
882

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-508
SELECT ALL - cor1.col1 * CAST( 24 AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 857ea1404acb6461f998154416fb3ef0

skipif mysql # not compatible
query I rowsort label-508
SELECT ALL - cor1.col1 * CAST ( 24 AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 857ea1404acb6461f998154416fb3ef0

query I rowsort
SELECT col2 + + 89 + - col1 FROM tab1 AS cor0
----
117
136
172

query I rowsort
SELECT 22 * - col0 AS col0 FROM tab0 AS cor0
----
-1958
-528
-770

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-512
SELECT - + 77 DIV - cor0.col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-512
SELECT - + 77 / - cor0.col1 FROM tab0 cor0
----
0
0
0

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

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

query I rowsort
SELECT col1 + - col1 * col0 - 42 AS col0 FROM tab1 AS cor0
----
-1069
-672
-94

query I rowsort
SELECT DISTINCT - 81 + - cor0.col0 * - ( 67 ) AS col0 FROM tab2 AS cor0
----
388
5145
5212

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

query I rowsort
SELECT DISTINCT - 82 + cor0.col1 FROM tab0 AS cor0
----
15
4
9

query I rowsort
SELECT col0 * + col2 * col1 + col2 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 * - 39 AS col1 FROM tab2
----
-266
-2964
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-520
SELECT + 23 + col2 DIV + 98 AS col0 FROM tab1
----
23
23
23

skipif mysql # not compatible
query I rowsort label-520
SELECT + 23 + col2 / + 98 AS col0 FROM tab1
----
23
23
23

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-525
SELECT - col2 + - tab2.col1 + col1 DIV col0 AS col1 FROM tab2
----
-54
-55
-85

skipif mysql # not compatible
query I rowsort label-525
SELECT - col2 + - tab2.col1 + col1 / col0 AS col1 FROM tab2
----
-54
-55
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-526
SELECT cor0.col2 + 67 DIV + 15 FROM tab0 AS cor0
----
37
5
86

skipif mysql # not compatible
query I rowsort label-526
SELECT cor0.col2 + 67 / + 15 FROM tab0 AS cor0
----
37
5
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 21 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-21

onlyif mysql # use DIV operator for integer division
query I rowsort label-528
SELECT ALL - 26 DIV - col1 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - 26 / - col1 FROM tab1
----
1
2
2

query I rowsort
SELECT DISTINCT - 95 + col2 FROM tab2 cor0
----
-57
-68
-69

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

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

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

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

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

query I rowsort
SELECT DISTINCT 33 * 33 FROM tab2, tab1 AS cor0
----
1089

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 col0 FROM tab1 cor0
----
-28
-47
-83

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-536
SELECT ALL - ( - col0 + col0 ) DIV 22 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-536
SELECT ALL - ( - col0 + col0 ) / 22 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 + 63 FROM tab2 AS cor0
----
32
4
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT DISTINCT - + CAST( col0 AS SIGNED ) DIV + col2 + 95 * col1 FROM tab1 AS cor0
----
1235
2470
949

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) / + col2 + 95 * col1 FROM tab1 AS cor0
----
1235
2470
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-539
SELECT DISTINCT + 32 * + col0 + col1 DIV - col2 col0 FROM tab0 AS cor0
----
1023
2847
766

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT + 32 * + col0 + col1 / - col2 col0 FROM tab0 AS cor0
----
1023
2847
766

query I rowsort
SELECT DISTINCT col1 * + ( + col2 * ( + col1 ) ) + - cor0.col2 FROM tab0 AS cor0
----
244035
678960
9408

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

query I rowsort
SELECT ALL - ( col2 ) * + col1 + - 55 * 64 * + col0 AS col2 FROM tab1 AS cor0
----
-11964
-225850
-282848

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

query I rowsort
SELECT - - 99 AS col2 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT ALL + ( - col0 ) * 57 + 25 AS col0 FROM tab0 AS cor0
----
-1343
-1970
-5048

query I rowsort
SELECT DISTINCT - - ( + col0 ) * ( col0 + + col1 ) FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT DISTINCT + 51 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-38
16
27

query I rowsort
SELECT ALL + - 13 * col2 AS col0 FROM tab0 cor0
----
-1066
-13
-429

query I rowsort
SELECT col2 * col2 * + col2 AS col0 FROM tab2 AS cor0
----
17576
19683
54872

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

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

query I rowsort
SELECT + 73 + - ( col2 ) FROM tab0
----
-9
40
72

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

skipif mysql # not compatible
query I rowsort label-552
SELECT + 10 / col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 * ( 45 ) AS col0 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT - col1 + 52 * ( col0 ) + col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1534
3888
5395

onlyif mysql # use DIV operator for integer division
query I rowsort label-555
SELECT col0 DIV CAST( + 98 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-555
SELECT col0 / CAST ( + 98 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * ( + 70 + tab2.col0 ) * + col2 FROM tab2
----
227032
64449
96254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 - cor0.col1 col2 FROM tab0, tab1 AS cor0
----
-2
11
14

query I rowsort
SELECT - 84 - col0 AS col2 FROM tab0
----
-108
-119
-173

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

query I rowsort
SELECT ALL + 83 * col1 AS col1 FROM tab1 cor0
----
1079
2158
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-561
SELECT CAST( - col0 AS SIGNED ) + - col2 AS col1 FROM tab2 cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-561
SELECT CAST ( - col0 AS INTEGER ) + - col2 AS col1 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT - - ( col1 ) + 43 - + ( col0 ) * col1 FROM tab0 AS cor0
----
-1935
-3255
-7965

query I rowsort
SELECT ALL - 82 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

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

query I rowsort
SELECT col0 * - 54 + + col2 + - col2 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT col2 + + 5 AS col2 FROM tab2 AS cor0
----
31
32
43

query I rowsort
SELECT - col0 + + ( + col2 ) + col2 AS col0 FROM tab0 cor0
----
-33
42
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-568
SELECT + col2 * ( cor0.col2 ) DIV col0 + col2 FROM tab0 AS cor0
----
1
157
78

skipif mysql # not compatible
query I rowsort label-568
SELECT + col2 * ( cor0.col2 ) / col0 + col2 FROM tab0 AS cor0
----
1
157
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( - 2 ) col0 FROM tab0 AS cor0
----
84
89
95

query I rowsort
SELECT + - cor0.col0 * + ( col0 ) + cor0.col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT 15 * col0 FROM tab0
----
1335
360
525

onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT - 60 * col1 DIV col2 FROM tab0
----
-156
-5820
-66

skipif mysql # not compatible
query I rowsort label-572
SELECT - 60 * col1 / col2 FROM tab0
----
-156
-5820
-66

query I rowsort
SELECT DISTINCT + ( - col1 ) AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + tab1.col1 + col1 + 30 AS col0 FROM tab1
----
50
56
82

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

query I rowsort
SELECT - col1 * + col1 - - col1 FROM tab2 AS cor0
----
-272
-3422
-930

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col0 + + col1 * - col2 col1 FROM tab2 AS cor0
----
-788
4550
5595

onlyif mysql # use DIV operator for integer division
query I rowsort label-582
SELECT ALL - + col0 * cor0.col2 + - col2 * col1 DIV col0 FROM tab1 AS cor0
----
-3656
-630
-7695

skipif mysql # not compatible
query I rowsort label-582
SELECT ALL - + col0 * cor0.col2 + - col2 * col1 / col0 FROM tab1 AS cor0
----
-3656
-630
-7695

query I rowsort
SELECT DISTINCT + col0 * col0 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80

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

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

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

query I rowsort
SELECT ALL + col0 * - col2 + + col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL - col0 * col0 - - col2 FROM tab2
----
-22
-6058
-6203

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

query I rowsort
SELECT DISTINCT 99 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7297
-8182
-9310

query I rowsort
SELECT ALL col2 * cor0.col2 + col1 * + col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 + cor0.col0 * col0 FROM tab2 AS cor0
----
10686
266
7584

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

query I rowsort
SELECT ALL - 51 * 53 AS col0 FROM tab1
----
-2703
-2703
-2703

query I rowsort
SELECT DISTINCT - col2 * col2 * col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - col1 * 65 FROM tab1
----
-1690
-650
-845

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) FROM tab0, tab1 cor0
----
-54
-57
-96

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

skipif mysql # not compatible
query I rowsort label-598
SELECT DISTINCT tab2.col1 / - tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
-1

query I rowsort
SELECT - + 20 FROM tab2 cor0
----
-20
-20
-20

query I rowsort
SELECT + col2 * tab2.col0 * col2 - col0 * col0 AS col2 FROM tab2
----
107835
46644
5054

query I rowsort
SELECT ALL col1 * + col0 * col0 + - 2 AS col0 FROM tab0
----
118823
49534
720809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col0 FROM tab2, tab1, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f

onlyif mysql # use DIV operator for integer division
query I rowsort label-603
SELECT ALL - 66 * tab0.col1 DIV col2 + 46 AS col0 FROM tab0
----
-126
-27
-6356

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL - 66 * tab0.col1 / col2 + 46 AS col0 FROM tab0
----
-126
-27
-6356

query I rowsort
SELECT DISTINCT + col2 + - col0 + - col0 FROM tab2
----
-120
-130
13

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

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL - col1 / + col0 + col0 AS col2 FROM tab1
----
-5
64
80

query I rowsort
SELECT DISTINCT - + 6 + + col2 AS col1 FROM tab2 cor0
----
20
21
32

query I rowsort
SELECT + 52 + 45 AS col1 FROM tab1 AS cor0
----
97
97
97

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

query I rowsort
SELECT ALL 85 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT ALL - tab1.col2 * ( - col1 ) * - 33 + col2 * col2 FROM tab1
----
-15561
-31968
-43416

query I rowsort
SELECT ALL - col1 + 83 AS col0 FROM tab0 AS cor0
----
-14
-3
-8

query I rowsort
SELECT - col1 - col0 FROM tab0 cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 + col0 * col1 col1 FROM tab1 AS cor0
----
1030
630
68

query I rowsort
SELECT + ( - col2 ) + 56 AS col2 FROM tab0 AS cor0
----
-26
23
55

query I rowsort
SELECT ALL + + cor0.col1 * + col1 + - ( + 16 + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
140
634
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-617
SELECT + - col0 DIV - cor0.col0 + + CAST( 66 + col2 * col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
102
7365
859

skipif mysql # not compatible
query I rowsort label-617
SELECT + - col0 / - cor0.col0 + + CAST ( 66 + col2 * col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
102
7365
859

query I rowsort
SELECT DISTINCT - + 86 * + col2 AS col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

query I rowsort
SELECT DISTINCT - 87 * + col1 AS col0 FROM tab0 AS cor0
----
-7482
-7917
-8439

onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT ALL + col1 * col0 DIV - CAST( ( col2 ) * col1 AS SIGNED ) FROM tab1 cor0
----
-1
0
0

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

query I rowsort
SELECT - 46 * - col0 + - cor0.col2 + col2 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT ALL - col2 + col0 * + 31 FROM tab0 AS cor0
----
1084
2677
711

query I rowsort
SELECT + col2 * + cor0.col0 * 79 AS col2 FROM tab1 AS cor0
----
12798
288192
606720

query I rowsort
SELECT ALL - 40 - col0 FROM tab1
----
-104
-120
-43

query I rowsort
SELECT DISTINCT col1 + - 6 - + col0 AS col2 FROM tab2
----
-25
-68
18

query I rowsort
SELECT 73 - + cor0.col2 FROM tab1 AS cor0
----
-23
16
19

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-629
SELECT ALL - 55 DIV - cor0.col0 FROM tab1 AS cor0
----
0
0
18

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL - 55 / - cor0.col0 FROM tab1 AS cor0
----
0
0
18

query I rowsort
SELECT + 65 AS col2 FROM tab0 cor0
----
65
65
65

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

query I rowsort
SELECT ALL - - 58 AS col2 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT - 43 - col0 FROM tab2 AS cor0
----
-121
-122
-50

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * + col0 col2 FROM tab0 cor0
----
-177504
-329315
-737009

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 * + col0 * + 15 FROM tab0 AS cor0
----
-109470
-11880
-525

query I rowsort
SELECT ALL 47 + 27 FROM tab0, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + col1 col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-644
SELECT ALL - col2 + ( - 59 ) + col2 * col2 DIV cor0.col0 col2 FROM tab2 AS cor0
----
-77
-79
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-644
SELECT ALL - col2 + ( - 59 ) + col2 * col2 / cor0.col0 col2 FROM tab2 AS cor0
----
-77
-79
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-645
SELECT DISTINCT - col2 DIV - 36 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-645
SELECT DISTINCT - col2 / - 36 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT ALL + + cor0.col0 + - 22 AS col2 FROM tab0 AS cor0
----
13
2
67

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-648
SELECT DISTINCT - + col1 * - col1 DIV - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT - + col1 * - col1 / - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - ( - 87 ) FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 cor2
----
87

query I rowsort
SELECT ALL + - ( col1 ) + + col0 * ( + 28 ) * + col0 AS col0 FROM tab0 AS cor0
----
16042
221697
34203

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

query I rowsort
SELECT col2 * - 34 FROM tab0 AS cor0
----
-1122
-2788
-34

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

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

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

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

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - CAST ( NULL AS REAL ) - - ( - col2 ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 49 + - col0 col0 FROM tab0 AS cor0
----
-138
-73
-84

query I rowsort
SELECT - col2 + + ( + col0 + + col0 * col2 ) AS col2 FROM tab1
----
111
3655
7664

query I rowsort
SELECT DISTINCT 91 * ( col2 ) + - col2 + col0 FROM tab2 AS cor0
----
2418
2437
3499

onlyif mysql # use DIV operator for integer division
query I rowsort label-662
SELECT + col0 DIV ( col0 ) + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-662
SELECT + col0 / ( col0 ) + col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - col2 + 87 AS col0 FROM tab2 AS cor0
----
49
60
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-664
SELECT - col0 + - col1 DIV 86 + + 57 DIV + tab2.col0 AS col2 FROM tab2
----
-78
-79
1

skipif mysql # not compatible
query I rowsort label-664
SELECT - col0 + - col1 / 86 + + 57 / + tab2.col0 AS col2 FROM tab2
----
-78
-79
1

query I rowsort
SELECT ALL col2 + 60 FROM tab1 cor0
----
114
117
156

query I rowsort
SELECT - - col2 + 89 AS col1 FROM tab1 AS cor0
----
143
146
185

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

query I rowsort
SELECT ALL - + col0 * col1 + 47 FROM tab2 AS cor0
----
-1296
-170
-4555

query I rowsort
SELECT col2 * + 39 + - col1 FROM tab0 AS cor0
----
-58
1201
3107

query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 AS col1 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT - cor0.col0 + col1 DIV col1 + col1 * + col2 FROM tab1 AS cor0
----
1169
1402
507

skipif mysql # not compatible
query I rowsort label-671
SELECT - cor0.col0 + col1 / col1 + col1 * + col2 FROM tab1 AS cor0
----
1169
1402
507

query I rowsort
SELECT - - cor0.col0 + 50 * - col2 FROM tab0 cor0
----
-15
-1626
-4011

query I rowsort
SELECT - tab0.col1 + - 60 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 01621c103bb1dd4a2bddc230b46680d1

query I rowsort
SELECT + 20 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT - col2 * cor0.col2 + 64 AS col2 FROM tab0 AS cor0
----
-1025
-6660
63

query I rowsort
SELECT col0 * - 53 * - col0 AS col1 FROM tab0 cor0
----
30528
419813
64925

query I rowsort
SELECT + col1 - ( col2 + cor0.col2 ) FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT ALL 64 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT 90 * - col1 AS col2 FROM tab1 AS cor0
----
-1170
-2340
-900

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

query I rowsort
SELECT DISTINCT + - 36 * + col0 AS col2 FROM tab0 AS cor0
----
-1260
-3204
-864

query I rowsort
SELECT - ( col0 ) * col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792

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

query I rowsort
SELECT - cor0.col0 + col1 * - col1 FROM tab2 AS cor0
----
-3559
-368
-968

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

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

query I rowsort
SELECT ALL + 48 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - cor0.col2 + cor0.col0 * 68 * - cor0.col0 FROM tab0 cor0
----
-39201
-538710
-83301

onlyif mysql # use DIV operator for integer division
query I rowsort label-688
SELECT DISTINCT + ( - col0 ) DIV col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT + ( - col0 ) / col0 FROM tab1
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-689
SELECT - 16 * col2 - col1 * col0 DIV col1 FROM tab2
----
-439
-494
-687

skipif mysql # not compatible
query I rowsort label-689
SELECT - 16 * col2 - col1 * col0 / col1 FROM tab2
----
-439
-494
-687

query I rowsort
SELECT - col1 + col1 * - 15 AS col0 FROM tab0
----
-1376
-1456
-1552

query I rowsort
SELECT DISTINCT - 18 * col0 + col0 FROM tab2 AS cor0
----
-119
-1326
-1343

query I rowsort
SELECT + col2 * ( col1 ) * + col0 + - ( cor0.col2 ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

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

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

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

query I rowsort
SELECT - + cor0.col0 * - col0 + cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
1129
523
7912

query I rowsort
SELECT - col0 * 0 + + cor0.col1 + + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col1 * cor0.col1 + 27 AS col1 FROM tab1 AS cor0
----
127
196
703

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + - col1 * col1 col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT + col1 * cor0.col1 + col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL - col2 + + 77 * - 14 AS col2 FROM tab2 AS cor0
----
-1104
-1105
-1116

query I rowsort
SELECT tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

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

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

query I rowsort
SELECT + 72 * + col0 * 45 AS col1 FROM tab2
----
22680
252720
255960

query I rowsort
SELECT - - 16 AS col1 FROM tab1 cor0
----
16
16
16

query I rowsort
SELECT col1 * - 22 AS col2 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT - ( 94 ) FROM tab0 cor0
----
-94
-94
-94

query I rowsort
SELECT - 6 + - 51 AS col1 FROM tab1 cor0
----
-57
-57
-57

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

query I rowsort
SELECT ALL col1 * - cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col2 * - col0 * col1 + + 39 * col0 - col0 AS col0 FROM tab1 AS cor0
----
-34048
-4098
-96800

query I rowsort
SELECT DISTINCT - 17 + - col2 AS col0 FROM tab1 AS cor0
----
-113
-71
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 67 col2 FROM tab0
----
2211
5494
67

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - col1 + + col1 * + col1 * col1 FROM tab1
----
17550
2184
990

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col0 FROM tab1 WHERE NOT col0 BETWEEN ( col1 ) AND tab1.col2 * col2
----
-676

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

query I rowsort
SELECT + col1 + + col1 * + tab0.col0 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT DISTINCT tab0.col2 + col1 DIV - col1 AS col0 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT tab0.col2 + col1 / - col1 AS col0 FROM tab0
----
0
32
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 * + col0 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col0 IN ( - col2 / col1 )
----

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1 AS cor0 WHERE NOT col1 > ( NULL )
----

query I rowsort
SELECT col1 + + col1 * col2 FROM tab2 WHERE NOT col0 / + col0 IN ( col0 )
----
1593
663
868

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT - col1 < col2
----

query I rowsort
SELECT DISTINCT + col0 + - col1 AS col2 FROM tab0
----
-2
-62

query I rowsort
SELECT DISTINCT - col0 * + col0 * - col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT DISTINCT tab2.col1 + tab2.col2 + col0 * - col0 FROM tab2
----
-5999
-6186
9

query I rowsort
SELECT + col2 * col0 * + tab1.col2 FROM tab1
----
207936
737280
8748

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-735
SELECT ALL tab0.col1 + - col1 DIV col0 AS col1 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL tab0.col1 + - col1 / col0 AS col1 FROM tab0
----
83
90
95

query I rowsort
SELECT ALL + col0 * + col0 AS col2 FROM tab2 WHERE NOT col0 BETWEEN col0 AND - col0
----
49
6084
6241

query I rowsort
SELECT col1 - col0 * col0 FROM tab1
----
-4086
-6387
17

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT col1 / - col0 col0 FROM tab0 AS cor0
----
-1
-2
-3

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

query I rowsort
SELECT ALL - col2 * + col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT ALL col1 DIV col2 AS col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-745
SELECT ALL col1 / col2 AS col2 FROM tab0 cor0
----
1
2
97

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

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

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col2 )
----

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT ALL + col0 * CAST( + col0 AS SIGNED ) DIV cor0.col1 + 15 AS col1 FROM tab2 cor0
----
118
16
382

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + col0 * CAST ( + col0 AS INTEGER ) / cor0.col1 + 15 AS col1 FROM tab2 cor0
----
118
16
382

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

query I rowsort
SELECT DISTINCT - col1 * 54 FROM tab0 AS cor0
----
-4644
-4914
-5238

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

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

query I rowsort
SELECT - col1 + - 90 FROM tab0 AS cor0
----
-176
-181
-187

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

query I rowsort
SELECT - ( 42 ) AS col0 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 9fa3c02ecae23525dd0e284c4751c1df

query I rowsort
SELECT cor0.col1 + 63 FROM tab0 AS cor0
----
149
154
160

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

query I rowsort
SELECT + col0 * - col0 + 82 * col0 AS col1 FROM tab2 AS cor0
----
237
312
525

query I rowsort
SELECT col2 * cor0.col2 + 59 * col1 FROM tab2 AS cor0
----
2447
2558
4157

onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT DISTINCT - - col2 DIV + col1 + col0 AS col0 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT - - col2 / + col1 + col0 AS col0 FROM tab1 AS cor0
----
5
69
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-765
SELECT + cor0.col1 + CAST( - 61 * col2 + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1468
-1585
-2284

skipif mysql # not compatible
query I rowsort label-765
SELECT + cor0.col1 + CAST ( - 61 * col2 + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1468
-1585
-2284

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-768
SELECT DISTINCT - col2 + + col0 * + CAST( - 91 + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-165
-2233
304

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT - col2 + + col0 * + CAST ( - 91 + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-165
-2233
304

query I rowsort
SELECT - 37 + col1 * + ( - col1 ) FROM tab1 AS cor0
----
-137
-206
-713

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 - col2 col2 FROM tab1
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * tab1.col1 * + col2 col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + tab1.col0 * col2 + col1 * - col0 FROM tab1
----
3008
6640
84

query I rowsort
SELECT - col2 * - col2 * col1 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL + col0 * + col2 + + col0 + - tab1.col1 AS col0 FROM tab1
----
139
3702
7747

onlyif mysql # use DIV operator for integer division
query I rowsort label-776
SELECT ALL - col0 DIV col1 col2 FROM tab1
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - col0 / col1 col2 FROM tab1
----
-6
-6
0

query I rowsort
SELECT 67 * - col0 * - col1 AS col0 FROM tab2
----
14539
308334
89981

query I rowsort
SELECT ALL 93 + - col0 AS col2 FROM tab0
----
4
58
69

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

query I rowsort
SELECT + + tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL col0 * col1 + 94 FROM tab2
----
1437
311
4696

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

query I rowsort
SELECT - 71 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT + 28 * + cor0.col2 FROM tab1 AS cor0
----
1512
1596
2688

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

query I rowsort
SELECT - 34 * col1 AS col2 FROM tab2
----
-1054
-2006
-578

onlyif mysql # use DIV operator for integer division
query I rowsort label-787
SELECT col1 DIV - col1 + - ( + col0 ) FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-787
SELECT col1 / - col1 + - ( + col0 ) FROM tab1
----
-4
-65
-81

query I rowsort
SELECT - + 84 * + cor0.col2 + col0 AS col1 FROM tab1 cor0
----
-4533
-4724
-7984

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

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

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

skipif mysql # not compatible
query I rowsort label-790
SELECT - - ( - cor0.col1 ) / col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - cor0.col1 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL 45 * col0 AS col0 FROM tab0 AS cor0
----
1080
1575
4005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col2 col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - - cor0.col2 + - 50 * + col2 AS col1 FROM tab1 cor0
----
-2646
-2793
-4704

query I rowsort
SELECT + + 55 + 38 * - col2 AS col2 FROM tab2 AS cor0
----
-1389
-933
-971

query I rowsort
SELECT ALL + col1 * col2 + + 2 FROM tab1 AS cor0
----
1250
1406
572

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * 6 * + col0 AS col0 FROM tab2
----
1134
12168
18012

query I rowsort
SELECT - 87 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT - ( + 20 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

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

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

query I rowsort
SELECT 81 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

query I rowsort
SELECT ALL - + col1 + col2 + + col0 AS col2 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-807
SELECT DISTINCT CAST( - col0 AS SIGNED ) + + cor0.col2 * + 44 AS col2 FROM tab2 AS cor0
----
1066
1181
1593

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + + cor0.col2 * + 44 AS col2 FROM tab2 AS cor0
----
1066
1181
1593

onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT DISTINCT - + 30 + + col2 + col2 DIV 85 FROM tab0 AS cor0
----
-29
3
52

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - + 30 + + col2 + col2 / 85 FROM tab0 AS cor0
----
-29
3
52

query I rowsort
SELECT ALL + + 40 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
-273
-3042
-3081

query I rowsort
SELECT ALL 96 + col2 FROM tab1
----
150
153
192

query I rowsort
SELECT DISTINCT + 47 + + 72 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
119

query I rowsort
SELECT ALL - 66 * + col0 AS col0 FROM tab1
----
-198
-4224
-5280

query I rowsort
SELECT - col2 + - col1 - col0 FROM tab2
----
-134
-163
-65

query I rowsort
SELECT + 95 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT + 32 + - cor0.col1 * + 31 FROM tab0 AS cor0
----
-2634
-2789
-2975

query I rowsort
SELECT DISTINCT col1 + 71 AS col1 FROM tab2 AS cor0
----
102
130
88

query I rowsort
SELECT ALL + col1 * + ( cor0.col1 ) + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT col0 - col2 * ( col1 + col2 ) AS col0 FROM tab2 AS cor0
----
-1559
-2011
-2132

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-820
SELECT - col0 DIV ( 55 ) + col2 * col1 * col2 FROM tab1 AS cor0
----
119807
32489
75816

skipif mysql # not compatible
query I rowsort label-820
SELECT - col0 / ( 55 ) + col2 * col1 * col2 FROM tab1 AS cor0
----
119807
32489
75816

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

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

query I rowsort
SELECT DISTINCT + tab2.col1 * - col1 FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-823
SELECT ALL col1 DIV tab0.col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL col1 / tab0.col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT + + col0 * col0 * 27 + + col2 FROM tab1 AS cor0
----
110649
172896
297

query I rowsort
SELECT ALL + col1 + + 96 * col2 * + col1 AS col0 FROM tab1 cor0
----
119821
134810
54730

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

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

query I rowsort
SELECT DISTINCT 17 - cor0.col0 FROM tab1 AS cor0
----
-47
-63
14

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

query I rowsort
SELECT DISTINCT + - 30 * - col2 + - cor0.col1 FROM tab0 AS cor0
----
-67
2369
904

query I rowsort
SELECT ALL col2 * col0 + + ( - 34 ) AS col2 FROM tab0 AS cor0
----
1
7264
758

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

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

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

query I rowsort
SELECT tab1.col1 * col2 * - 31 + + tab1.col0 FROM tab1
----
-17606
-38608
-43521

query I rowsort
SELECT tab0.col2 + - 67 * col1 AS col1 FROM tab0
----
-5729
-6015
-6498

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col2 * col2 col0 FROM tab0 AS cor0
----
0
1056
6642

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

query I rowsort
SELECT ALL col0 * 21 + + col0 FROM tab2
----
154
1716
1738

query I rowsort
SELECT 95 AS col1 FROM tab0, tab1, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

query I rowsort
SELECT DISTINCT col0 + ( + col2 ) AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT - col1 * - tab2.col0 + col1 + - col2 FROM tab2
----
1322
221
4635

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 38 * col1 col1 FROM tab2 AS cor0
----
1209
2301
663

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

query I rowsort
SELECT - col0 + 93 FROM tab2 AS cor0
----
14
15
86

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( - col1 ) + + 76 col2 FROM tab2 AS cor0
----
-213
-3405
-885

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

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

query I rowsort
SELECT ALL - - 79 - + 12 AS col1 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT ( col0 ) * col1 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-855
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + col2 - 36 FROM tab0 AS cor0
----
-133
-2874
-7498

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + col2 - 36 FROM tab0 AS cor0
----
-133
-2874
-7498

query I rowsort
SELECT - 27 + - col2 FROM tab0 AS cor0
----
-109
-28
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + col0 * - col2 * 77 col2 FROM tab2 AS cor0
----
-14522
-156097
-231137

query I rowsort
SELECT DISTINCT - ( col1 ) * col1 + ( + col2 * col0 ) AS col2 FROM tab2 AS cor0
----
-1453
-772
2713

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-860
SELECT + - col2 * - cor0.col2 + col0 DIV + col1 FROM tab2 AS cor0
----
1448
677
729

skipif mysql # not compatible
query I rowsort label-860
SELECT + - col2 * - cor0.col2 + col0 / + col1 FROM tab2 AS cor0
----
1448
677
729

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT + 81 DIV + col0 AS col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-862
SELECT + 81 / + col0 AS col0 FROM tab0
----
0
2
3

query I rowsort
SELECT 92 * - col2 AS col0 FROM tab1
----
-4968
-5244
-8832

onlyif mysql # use DIV operator for integer division
query I rowsort label-864
SELECT + 40 DIV 8 AS col2 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-864
SELECT + 40 / 8 AS col2 FROM tab1
----
5
5
5

query I rowsort
SELECT col0 * - cor0.col0 - col2 * + 93 * 13 FROM tab2 AS cor0
----
-32692
-37518
-52183

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

query I rowsort
SELECT DISTINCT + 92 * col2 + col1 FROM tab1 AS cor0
----
4994
5254
8845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-868
SELECT 10 * ( col2 * CAST( - col2 AS SIGNED ) ) - - col1 FROM tab2 AS cor0
----
-14423
-6701
-7259

skipif mysql # not compatible
query I rowsort label-868
SELECT 10 * ( col2 * CAST ( - col2 AS INTEGER ) ) - - col1 FROM tab2 AS cor0
----
-14423
-6701
-7259

onlyif mysql # use DIV operator for integer division
query I rowsort label-869
SELECT CAST( col2 AS SIGNED ) DIV + col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-869
SELECT CAST ( col2 AS INTEGER ) / + col0 FROM tab0
----
0
0
1

query I rowsort
SELECT + 84 * 86 AS col1 FROM tab2
----
7224
7224
7224

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

query I rowsort
SELECT ALL - - ( - col0 ) * - 17 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT - 18 + - col2 + + cor0.col0 * + col1 FROM tab1 AS cor0
----
565
6
926

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-876
SELECT col0 * + col2 * 20 + - col2 DIV col2 AS col0 FROM tab1 AS cor0
----
153599
3239
72959

skipif mysql # not compatible
query I rowsort label-876
SELECT col0 * + col2 * 20 + - col2 / col2 AS col0 FROM tab1 AS cor0
----
153599
3239
72959

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

query I rowsort
SELECT + col1 * + col1 + - col1 * - col2 AS col0 FROM tab2 cor0
----
1798
5015
935

query I rowsort
SELECT + col2 * 66 FROM tab1 AS cor0
----
3564
3762
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT ALL - col1 * col1 DIV col0 AS col0 FROM tab2 cor0
----
-137
-3
-44

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL - col1 * col1 / col0 AS col0 FROM tab2 cor0
----
-137
-3
-44

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

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

query I rowsort
SELECT + col2 * + 83 AS col1 FROM tab0 cor0
----
2739
6806
83

query I rowsort
SELECT ALL - col0 + + 17 AS col1 FROM tab2 AS cor0
----
-61
-62
10

query I rowsort
SELECT - - col0 * - col1 * - col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT col2 * 66 AS col2 FROM tab0 cor0
----
2178
5412
66

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

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

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

skipif mysql # not compatible
query I rowsort label-887
SELECT col2 / - ( 59 + - col0 * col1 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 68 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da

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

query I rowsort
SELECT 65 * col1 AS col1 FROM tab1 AS cor0
----
1690
650
845

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

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

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

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

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

query I rowsort
SELECT + ( col0 ) * col1 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT - - col0 * - 0 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col2 * 44 AS col0 FROM tab1 cor0
----
2376
2508
4224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 60 AS col2 FROM tab2 cor0
----
60
60
60

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab1, tab0 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT + col0 * - ( + col2 * + tab2.col2 ) FROM tab2
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - ( cor0.col2 ) * col2 col0 FROM tab0 cor0
----
-1056
-6642
0

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

query I rowsort
SELECT ( - col0 ) * col0 AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + 50 + + col1 FROM tab2 AS cor0
----
109
67
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 * col1 + col0 col1 FROM tab2 cor0
----
1553
504
782

query I rowsort
SELECT ALL + col0 + col0 + ( cor0.col2 + col2 ) AS col2 FROM tab1 AS cor0
----
114
242
352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col0 * + ( col0 ) * - col1 col1 FROM tab2 AS cor0
----
106176
1526
359034

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + + CAST ( - col0 AS REAL ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
238
8112
9243

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

query I rowsort
SELECT - 68 + col1 - - tab2.col2 FROM tab2
----
-10
-13
17

query I rowsort
SELECT col2 + + col2 * + ( col2 ) FROM tab1
----
2970
3306
9312

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

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT 94 * col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - ( - col0 * col1 ) + + 11 AS col0 FROM tab1
----
1051
651
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-914
SELECT + 61 - + col2 DIV - tab0.col1 AS col1 FROM tab0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-914
SELECT + 61 - + col2 / - tab0.col1 AS col1 FROM tab0
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 - col2 col0 FROM tab2
----
-55
-58
-85

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col1 FROM tab0
----
119
173
98

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

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT tab0.col1 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - tab2.col2 * - tab2.col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT - + 16 + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-105
-40
-51

query I rowsort
SELECT + - col0 + 44 FROM tab1 AS cor0
----
-20
-36
41

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( col1 AS REAL ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL cor0.col0 * 18 AS col0 FROM tab2 AS cor0
----
126
1404
1422

onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT + 72 + - col2 * - cor0.col1 + ( col0 ) DIV col2 FROM tab1 AS cor0
----
1320
1476
643

skipif mysql # not compatible
query I rowsort label-930
SELECT + 72 + - col2 * - cor0.col1 + ( col0 ) / col2 FROM tab1 AS cor0
----
1320
1476
643

query I rowsort
SELECT col2 * + 47 + cor0.col2 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT - + 99 * cor0.col0 - cor0.col1 AS col2 FROM tab2 cor0
----
-724
-7781
-7838

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-934
SELECT ALL col1 - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL col1 - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - col2 * - 4 FROM tab1 AS cor0
----
216
228
384

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

query I rowsort
SELECT DISTINCT col1 * - ( + ( col1 ) ) + + col2 AS col0 FROM tab1
----
-43
-622
-73

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT DISTINCT col1 + col2 DIV 30 FROM tab0 AS cor0
----
87
93
97

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT col1 + col2 / 30 FROM tab0 AS cor0
----
87
93
97

query I rowsort
SELECT ALL + + cor0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL col1 * - 96 AS col0 FROM tab1 cor0
----
-1248
-2496
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-943
SELECT - CAST( - 77 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
51
64
67

skipif mysql # not compatible
query I rowsort label-943
SELECT - CAST ( - 77 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
51
64
67

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-945
SELECT + - col2 * + 39 + cor0.col0 DIV 85 FROM tab1 AS cor0
----
-2106
-2223
-3744

skipif mysql # not compatible
query I rowsort label-945
SELECT + - col2 * + 39 + cor0.col0 / 85 FROM tab1 AS cor0
----
-2106
-2223
-3744

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

query I rowsort
SELECT col1 * - 47 * - col1 FROM tab1 AS cor0
----
31772
4700
7943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 * cor0.col2 + + cor0.col2 col1 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT - - col1 * - col1 + + col2 * col2 FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT DISTINCT - tab1.col2 + ( col1 ) AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + col2 * + ( col0 ) + col2 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + tab0.col2 * tab0.col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL - col1 + - col2 * ( - col0 ) * tab1.col2 + col0 AS col0 FROM tab1
----
207990
737347
8725

query I rowsort
SELECT 42 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

onlyif mysql # use DIV operator for integer division
query I rowsort label-955
SELECT ALL + - col0 + - col1 * col2 DIV col0 FROM tab2 AS cor0
----
-126
-87
-97

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL + - col0 + - col1 * col2 / col0 FROM tab2 AS cor0
----
-126
-87
-97

query I rowsort
SELECT + 19 * + col1 - + col2 AS col1 FROM tab0 AS cor0
----
1601
1647
1842

query I rowsort
SELECT ALL - - col0 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT + + 75 FROM tab0 AS cor0
----
75

query I rowsort
SELECT - - cor0.col2 * col0 - col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT - 21 * + col1 AS col0 FROM tab0 AS cor0
----
-1806
-1911
-2037

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

skipif mysql # not compatible
query I rowsort label-961
SELECT - CAST ( NULL AS INTEGER ) + 44 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 24 + col2 * col2 * - col0 FROM tab1
----
-207912
-737256
-8724

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-964
SELECT DISTINCT + + col2 * col0 + ( - 72 ) DIV - col1 AS col2 FROM tab0 AS cor0
----
35
7298
792

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

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

query I rowsort
SELECT ALL + 35 - - col2 AS col0 FROM tab0
----
117
36
68

query I rowsort
SELECT DISTINCT - 13 + - col2 FROM tab2 AS cor0
----
-39
-40
-51

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 ALL 75 + + cor0.col1 FROM tab0 AS cor0
----
161
166
172

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

query I rowsort
SELECT col1 - + cor0.col0 * 53 FROM tab2 AS cor0
----
-340
-4075
-4170

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

skipif mysql # not compatible
query I rowsort
SELECT + + col0 * - CAST ( col1 AS REAL ) - col0 * - 78 FROM tab0 AS cor0
----
-1157
-192
-665

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 69 col0 FROM tab2
----
-1173
-2139
-4071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-976
SELECT + col1 + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-976
SELECT + col1 + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col0 + + 87 AS col0 FROM tab2 AS cor0
----
165
166
94

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

query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 * col0 * 77 FROM tab0 AS cor0
----
-156090
-261318
-616161

query I rowsort
SELECT DISTINCT - col2 * 47 + col0 AS col0 FROM tab2 AS cor0
----
-1144
-1262
-1707

query I rowsort
SELECT ALL + 7 FROM tab1, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

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

query I rowsort
SELECT DISTINCT - 58 + + col1 * col1 FROM tab0 AS cor0
----
7338
8223
9351

query I rowsort
SELECT ALL + 57 * col1 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + - col1 * - 15 FROM tab2 AS cor0
----
1302
2419
901

query I rowsort
SELECT ALL - 59 * 13 FROM tab1 AS cor0
----
-767
-767
-767

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-989
SELECT ALL - + col0 * col1 + CAST( + col0 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-4736
-7440
-87

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - + col0 * col1 + CAST ( + col0 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-4736
-7440
-87

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

query I rowsort
SELECT - 35 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT DISTINCT + + 50 + cor0.col2 - + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
1431
294
4678

query I rowsort
SELECT ALL col2 + + col2 + + ( + col1 ) * + cor0.col0 FROM tab0 AS cor0
----
2130
3397
8263

query I rowsort
SELECT DISTINCT - ( col0 ) * - ( ( col1 ) + ( tab2.col0 ) * + tab2.col2 ) AS col0 FROM tab2
----
1540
162786
238501

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3fb27a91711469131edbffaad90e6035

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

query I rowsort
SELECT ALL 52 + cor0.col2 * 77 AS col2 FROM tab2 AS cor0
----
2054
2131
2978

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 * col1 col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT 31 * - 61 AS col0 FROM tab1
----
-1891

query I rowsort
SELECT - col0 * 76 AS col2 FROM tab0
----
-1824
-2660
-6764

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

query I rowsort
SELECT - col1 * + tab0.col0 * - col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT 0 * col2 - + 15 AS col2 FROM tab0 cor0
----
-15

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT ALL - 93 * col1 DIV + 29 FROM tab2 AS cor0
----
-189
-54
-99

skipif mysql # not compatible
query I rowsort label-1005
SELECT ALL - 93 * col1 / + 29 FROM tab2 AS cor0
----
-189
-54
-99

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

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

query I rowsort
SELECT ALL + col0 * + col0 + + col0 * - col2 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT 26 * + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to be6822a5beb60dd05700c5edd2c682b6

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

query I rowsort
SELECT DISTINCT - - 34 + - col2 FROM tab2 AS cor0
----
-4
7
8

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

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

query I rowsort
SELECT + col2 * + tab1.col0 * + 65 + col0 + col2 * col2 * tab1.col2 FROM tab1
----
1384016
167997
422377

onlyif mysql # use DIV operator for integer division
query I rowsort label-1015
SELECT - col2 DIV col1 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-1015
SELECT - col2 / col1 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-5
-69
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1016
SELECT + + col2 + - col0 DIV 68 FROM tab2 cor0
----
25
27
37

skipif mysql # not compatible
query I rowsort label-1016
SELECT + + col2 + - col0 / 68 FROM tab2 cor0
----
25
27
37

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

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

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

query I rowsort
SELECT + + col2 * ( col1 * col1 ) FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT cor0.col0 * 7 + - cor0.col2 FROM tab0 AS cor0
----
135
244
541

query I rowsort
SELECT + 4 * + col1 FROM tab2 cor0
----
124
236
68

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1024
SELECT - col2 + - 54 * col2 DIV - col0 + - 18 AS col1 FROM tab2
----
-26
-31
163

skipif mysql # not compatible
query I rowsort label-1024
SELECT - col2 + - 54 * col2 / - col0 + - 18 AS col1 FROM tab2
----
-26
-31
163

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

query I rowsort
SELECT DISTINCT col2 * col2 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
157518
185250
884832

query I rowsort
SELECT - col2 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT 38 * col0 FROM tab0 cor0
----
1330
3382
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) * + col0 + ( - cor0.col0 ) col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

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

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

query I rowsort
SELECT + col0 + + 76 * - col0 AS col2 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT + - 60 - + col0 AS col1 FROM tab2 cor0
----
-138
-139
-67

query I rowsort
SELECT ALL 32 * + col0 FROM tab0 cor0
----
1120
2848
768

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

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

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

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

query I rowsort
SELECT ALL + + 91 AS col1 FROM tab1 AS cor0
----
91
91
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-1039
SELECT ALL + col0 DIV + col0 + col1 - col0 FROM tab1
----
-53
-66
24

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL + col0 / + col0 + col1 - col0 FROM tab1
----
-53
-66
24

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1041
SELECT ALL - col1 - CAST( 38 AS SIGNED ) FROM tab0 AS cor0
----
-124
-129
-135

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL - col1 - CAST ( 38 AS INTEGER ) FROM tab0 AS cor0
----
-124
-129
-135

query I rowsort
SELECT + cor2.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

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

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

query I rowsort
SELECT - col0 * - ( + 35 ) FROM tab1 cor0
----
105
2240
2800

query I rowsort
SELECT ALL - col1 - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT - - 29 * 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 372f156d9edf9dbc882af66edb82647e

query I rowsort
SELECT DISTINCT - + col2 * - ( col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col1 * col0 + 23 FROM tab0 AS cor0
----
-2041
-3372
-8076

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

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

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

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT tab1.col0 - 82 AS col0 FROM tab1
----
-18
-2
-79

query I rowsort
SELECT col0 + + 82 FROM tab1
----
146
162
85

query I rowsort
SELECT ALL 88 * 10 AS col1 FROM tab1 AS cor0
----
880
880
880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1056
SELECT DISTINCT + col0 DIV 30 + + col0 FROM tab1 AS cor0
----
3
66
82

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + col0 / 30 + + col0 FROM tab1 AS cor0
----
3
66
82

query I rowsort
SELECT - col1 * + col2 + + col2 + col1 * col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1058
SELECT DISTINCT - col0 DIV col0 + col0 + + tab1.col2 DIV col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-1058
SELECT DISTINCT - col0 / col0 + col0 + + tab1.col2 / col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col0 + - cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
3559
368
968

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 * col0 + + col1 AND - col0
----

query I rowsort
SELECT col1 * - col1 FROM tab0 WHERE NULL = + col1 + col0
----

query I rowsort
SELECT - col0 + col2 * col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT col1 + col2 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1128
-18922
-649431

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + col0 + col1 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT + cor0.col1 * col0 * col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

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

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

query I rowsort
SELECT + - col2 * + cor0.col2 * + col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col0 + col1 * - col1 * - col1 AS col1 FROM tab2
----
205457
29798
4992

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

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2 WHERE + col2 IN ( col2 * tab2.col1 + - col0 * - col0 )
----

query I rowsort
SELECT 3 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1077
SELECT - col0 + - cor0.col1 * CAST ( + col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1422
-224
-4680

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

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col0 FROM tab2 cor0
----
-162
-2002
-2964

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

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

query I rowsort
SELECT + col1 + col2 * - 72 FROM tab0 AS cor0
----
-2290
-5813
25

query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + tab1.col1 + col0 * col0 + + col1 FROM tab1
----
4116
61
6426

query I rowsort
SELECT + col2 * + col0 * col2 + - tab2.col1 + col0 AS col2 FROM tab2
----
114138
5079
52747

query I rowsort
SELECT DISTINCT + col1 + + col1 + + col2 FROM tab1
----
106
122
77

query I rowsort
SELECT col0 + col0 - - col2 AS col1 FROM tab2
----
182
196
41

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

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

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

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

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( - col1 ) AND NULL
----

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

query I rowsort
SELECT DISTINCT - col2 * col1 * + col1 + col1 AS col1 FROM tab2
----
-10965
-25916
-90447

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

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT col2 * - col2 * + col0 - col1 * + tab2.col0 FROM tab2
----
-115419
-5320
-57330

query I rowsort
SELECT col0 * + col1 AS col1 FROM tab1 WHERE NOT NULL >= col2
----

query I rowsort
SELECT col0 * - col2 AS col1 FROM tab0 WHERE NOT col0 NOT IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1100
SELECT ALL - col0 * tab1.col2 + col0 DIV + col1 FROM tab1
----
-162
-3642
-7674

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - col0 * tab1.col2 + col0 / + col1 FROM tab1
----
-162
-3642
-7674

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <= ( NULL )
----

query I rowsort
SELECT DISTINCT tab1.col0 * tab1.col0 * col1 AS col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT col2 + + col2 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + tab1.col1 * tab1.col2 + - col0 * + col0 FROM tab1
----
-3526
-5152
1395

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

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

query I rowsort
SELECT + col0 * + ( + col2 ) - - cor0.col2 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
14596
1584
70

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

query I rowsort
SELECT + 25 * col2 AS col1 FROM tab0
----
2050
25
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-1110
SELECT - ( tab0.col1 ) DIV - col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1110
SELECT - ( tab0.col1 ) / - col0 AS col0 FROM tab0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1111
SELECT - col1 DIV 38 + cor0.col2 FROM tab2 AS cor0
----
25
27
38

skipif mysql # not compatible
query I rowsort label-1111
SELECT - col1 / 38 + cor0.col2 FROM tab2 AS cor0
----
25
27
38

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

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

query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-1115
SELECT - col0 DIV + col0 + ( col2 ) FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1115
SELECT - col0 / + col0 + ( col2 ) FROM tab0 AS cor0
----
0
32
81

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

query I rowsort
SELECT ( + 88 ) + tab2.col2 AS col0 FROM tab2
----
114
115
126

query I rowsort
SELECT 84 FROM tab2, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9

query I rowsort
SELECT ALL 86 * col0 * - col2 AS col0 FROM tab0
----
-3010
-627628
-68112

query I rowsort
SELECT + col1 + + col0 * - col2 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * col0 col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - col2 + - col1 * + 17 * + ( + col2 ) FROM tab1 AS cor0
----
-21312
-23922
-9747

query I rowsort
SELECT DISTINCT - cor1.col1 * - cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1d94ea086ff4b04d01d3c46ff83c5c3d

query I rowsort
SELECT ALL + 72 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT ALL + - 52 * - col1 * col2 AS col2 FROM tab0 AS cor0
----
147576
388024
5044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) + + col2 col2 FROM tab1 cor0
----
28
47
83

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

query I rowsort
SELECT + + 86 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-258
-5504
-6880

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + cor0.col2 * + ( 84 ) FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT + col0 * col0 - + cor0.col0 * - col0 FROM tab2 AS cor0
----
12168
12482
98

query I rowsort
SELECT DISTINCT - col0 + - col0 - + col2 AS col1 FROM tab1 AS cor0
----
-185
-256
-60

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

query I rowsort
SELECT ALL + + col2 + - 26 FROM tab0 AS cor0
----
-25
56
7

query I rowsort
SELECT ALL + - ( 12 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

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

skipif mysql # not compatible
query I rowsort label-1137
SELECT cor0.col2 * - CAST ( + col0 AS INTEGER ) - cor0.col2 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + + col0 * - ( + 38 ) FROM tab1 AS cor0
----
-114
-2432
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-1139
SELECT ALL col0 DIV 3 FROM tab2 AS cor0
----
2
26
26

skipif mysql # not compatible
query I rowsort label-1139
SELECT ALL col0 / 3 FROM tab2 AS cor0
----
2
26
26

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

query I rowsort
SELECT DISTINCT 26 + + tab2.col0 FROM tab2
----
104
105
33

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

query I rowsort
SELECT DISTINCT col2 * - 18 + col1 AS col1 FROM tab0 AS cor0
----
-1385
-508
79

query I rowsort
SELECT ALL ( - col2 ) * col0 * 42 + + 34 FROM tab1 AS cor0
----
-153182
-322526
-6770

query I rowsort
SELECT ALL + 16 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1147
SELECT - 61 DIV - col2 col1 FROM tab0 AS cor0
----
0
1
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1147
SELECT - 61 / - col2 col1 FROM tab0 AS cor0
----
0
1
61

query I rowsort
SELECT + - 9 * col1 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT DISTINCT - - col1 + cor0.col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - cor0.col2 + - col1 * 71 col0 FROM tab0 cor0
----
-6106
-6461
-6887

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

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

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

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

query I rowsort
SELECT + - 0 + - col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + + col0 * - col0 + col2 + col0 AS col0 FROM tab1 AS cor0
----
-3975
-6224
48

query I rowsort
SELECT DISTINCT - + col2 * + col2 + 43 FROM tab0 cor0
----
-1046
-6681
42

query I rowsort
SELECT ALL - 6 * + col2 * - col1 AS col1 FROM tab2 AS cor0
----
3876
5022
9204

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

skipif mysql # not compatible
query I rowsort label-1158
SELECT CAST ( NULL AS INTEGER ) / col0 - col2 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 11 + 25 FROM tab2
----
36
36
36

query I rowsort
SELECT + col2 * + tab0.col0 * col2 + - col2 * col2 FROM tab0
----
25047
34
591712

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

query I rowsort
SELECT DISTINCT + + 65 AS col2 FROM tab0 AS cor0
----
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1164
SELECT + CAST( + 19 AS SIGNED ) AS col0 FROM tab2
----
19
19
19

skipif mysql # not compatible
query I rowsort label-1164
SELECT + CAST ( + 19 AS INTEGER ) AS col0 FROM tab2
----
19
19
19

query I rowsort
SELECT ALL - ( + 50 ) + - col0 + col2 FROM tab1 AS cor0
----
-34
-57
1

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

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + - CAST ( col0 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - 37 * col0 + col2 AS col0 FROM tab1
----
-2311
-2864
-57

query I rowsort
SELECT ALL - 92 FROM tab1, tab2, tab0 cor0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT DISTINCT 45 * 51 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
2295

query I rowsort
SELECT DISTINCT 39 * + col2 + ( - col2 ) * - col2 + - ( col0 * col0 ) AS col0 FROM tab0
----
-1185
1800
2001

query I rowsort
SELECT - ( col0 ) + + 49 * col1 AS col2 FROM tab2 AS cor0
----
1512
2813
754

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

query I rowsort
SELECT + 62 + + col0 AS col2 FROM tab2
----
140
141
69

query I rowsort
SELECT - col0 * - col1 * 42 FROM tab2
----
193284
56406
9114

query I rowsort
SELECT - col0 + - col2 * + col2 FROM tab0
----
-1113
-36
-6813

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT DISTINCT - col0 + + col0 * col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
-14
-3
7

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - col0 + + col0 * col0 / + col2 AS col2 FROM tab1 AS cor0
----
-14
-3
7

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

query I rowsort
SELECT DISTINCT - - col0 * - 19 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT + cor0.col1 * + col1 * + col0 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL col0 * col0 + - ( - col2 * + col1 ) + + col1 FROM tab2
----
6904
7677
917

query I rowsort
SELECT ALL - col0 + + 93 FROM tab2 AS cor0
----
14
15
86

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1184
SELECT ALL - col1 DIV + col0 - col2 FROM tab0 AS cor0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL - col1 / + col0 - col2 FROM tab0 AS cor0
----
-3
-36
-83

query I rowsort
SELECT - col1 + + 92 AS col2 FROM tab2 AS cor0
----
33
61
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-1186
SELECT ALL + + col1 DIV 56 + + 38 AS col2 FROM tab2 AS cor0
----
38
38
39

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL + + col1 / 56 + + 38 AS col2 FROM tab2 AS cor0
----
38
38
39

query I rowsort
SELECT ALL - cor0.col2 * + 44 - 54 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT ( + 63 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + col0 * col2 * - col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT + col0 * + col1 DIV + col1 AS col1 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-1190
SELECT + col0 * + col1 / + col1 AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - col2 * ( 10 ) FROM tab0
----
-10
-330
-820

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

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

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

query I rowsort
SELECT DISTINCT - - col1 * col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + col0 + + cor0.col1 * - col2 * + col1 FROM tab0 AS cor0
----
-244044
-678953
-9374

query I rowsort
SELECT DISTINCT - col1 * col0 + ( 79 ) * - col2 FROM tab1 AS cor0
----
-4344
-5143
-8624

query I rowsort
SELECT ALL - 29 - col1 FROM tab1 AS cor0
----
-39
-42
-55

query I rowsort
SELECT DISTINCT - 96 * + 51 + + col1 FROM tab0
----
-4799
-4805
-4810

query I rowsort
SELECT 79 * - ( + col2 ) AS col1 FROM tab1
----
-4266
-4503
-7584

query I rowsort
SELECT ALL + ( + col2 ) * col2 * - ( + 80 ) + - col0 AS col1 FROM tab2
----
-115599
-54158
-58327

query I rowsort
SELECT col2 + - col1 * + col1 - + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-7277
-8108
-9311

onlyif mysql # use DIV operator for integer division
query I rowsort label-1202
SELECT - 36 DIV col0 + + 88 * col1 + - col0 AS col0 FROM tab1 AS cor0
----
1064
2273
816

skipif mysql # not compatible
query I rowsort label-1202
SELECT - 36 / col0 + + 88 * col1 + - col0 AS col0 FROM tab1 AS cor0
----
1064
2273
816

query I rowsort
SELECT + cor0.col0 + 46 * 7 AS col1 FROM tab2 AS cor0
----
329
400
401

query I rowsort
SELECT ALL + 86 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

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

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

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

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

query I rowsort
SELECT ALL 5 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT + tab2.col1 + - col0 * + col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - - col0 + + col0 * + col2 FROM tab0 AS cor0
----
70
7387
816

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT - 57 + - 79 * + col2 AS col1 FROM tab0 AS cor0
----
-136
-2664
-6535

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

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

skipif mysql # not compatible
query I rowsort label-1214
SELECT - col0 * - col0 - CAST ( - col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
238
8112
9243

onlyif mysql # use DIV operator for integer division
query I rowsort label-1215
SELECT DISTINCT col2 + cor0.col0 DIV - col1 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-1215
SELECT DISTINCT col2 + cor0.col0 / - col1 FROM tab2 AS cor0
----
25
27
34

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

query I rowsort
SELECT DISTINCT + 41 * col0 AS col1 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT + - ( col2 ) + col1 * 16 + col2 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT col0 * + col1 * ( 79 * col2 ) FROM tab1 AS cor0
----
2881920
332748
7887360

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

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

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

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

query I rowsort
SELECT ( - col2 ) * + col2 - col1 AS col1 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT ALL + + 30 * col2 FROM tab2 cor0
----
1140
780
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT - col0 DIV col2 - 33 FROM tab1 AS cor0
----
-33
-33
-34

skipif mysql # not compatible
query I rowsort label-1225
SELECT - col0 / col2 - 33 FROM tab1 AS cor0
----
-33
-33
-34

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab0
----
-9

query I rowsort
SELECT + col1 + 35 * col0 AS col1 FROM tab2 AS cor0
----
276
2782
2789

query I rowsort
SELECT - - col0 * + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - col0 + 22 * col2 FROM tab1 cor0
----
1185
1190
2032

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

skipif mysql # not compatible
query I rowsort label-1230
SELECT col0 * - CAST ( col0 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT + 95 * + col0 * col2 FROM tab1
----
15390
346560
729600

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

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

query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + col0 * col0 + col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
1323
695
8094

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT + + 20 + + 50 DIV - col0 AS col1 FROM tab1 AS cor0
----
20
20
4

skipif mysql # not compatible
query I rowsort label-1238
SELECT + + 20 + + 50 / - col0 AS col1 FROM tab1 AS cor0
----
20
20
4

query I rowsort
SELECT DISTINCT + col0 * 57 * col1 FROM tab0 AS cor0
----
117648
193515
461643

query I rowsort
SELECT col1 * - 79 * 96 FROM tab2 AS cor0
----
-128928
-235104
-447456

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

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

query I rowsort
SELECT ALL + cor0.col2 * - ( + col0 ) + ( - col2 ) FROM tab1 AS cor0
----
-216
-3705
-7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-1243
SELECT ALL - CAST( + col2 AS SIGNED ) + col0 - + CAST( cor0.col2 AS SIGNED ) DIV col2 AS col0 FROM tab1 AS cor0
----
-17
-52
6

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL - CAST ( + col2 AS INTEGER ) + col0 - + CAST ( cor0.col2 AS INTEGER ) / col2 AS col0 FROM tab1 AS cor0
----
-17
-52
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 49 * col0 + col0 col1 FROM tab0 AS cor0
----
-28200
-388040
-59990

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col2 AS REAL ) - - col1 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + ( col1 ) * + cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1248
SELECT - CAST( + ( + col0 ) AS SIGNED ) * - 39 FROM tab0 AS cor0
----
1365
3471
936

skipif mysql # not compatible
query I rowsort label-1248
SELECT - CAST ( + ( + col0 ) AS INTEGER ) * - 39 FROM tab0 AS cor0
----
1365
3471
936

query I rowsort
SELECT ALL + + 3 + + col0 + - col0 AS col2 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1250
SELECT ALL + 82 DIV - col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL + 82 / - col0 FROM tab0 AS cor0
----
-2
-3
0

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

query I rowsort
SELECT DISTINCT - 6 * + col1 + col1 * + ( col0 ) * - col0 FROM tab1 AS cor0
----
-390
-41020
-83278

query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab2 cor0
----
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1254
SELECT - CAST( col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-1254
SELECT - CAST ( col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1255
SELECT ALL - col2 DIV col1 col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - col2 / col1 col0 FROM tab1 AS cor0
----
-2
-5
-7

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

query I rowsort
SELECT DISTINCT 5 * + cor0.col0 + + col1 FROM tab2 cor0
----
412
449
66

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

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

query I rowsort
SELECT ALL - + 32 * - col1 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT ( ( - col1 ) ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 66 + col0 * + cor0.col0 * 41 FROM tab2 cor0
----
2075
249510
255947

query I rowsort
SELECT - 61 AS col1 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 80442609e72d8c1c7f1c6175b1d2eac8

query I rowsort
SELECT DISTINCT + cor0.col1 * 80 * + col2 + + col0 + 40 FROM tab1 AS cor0
----
112363
45704
99960

query I rowsort
SELECT 70 * col1 + 54 * col2 * - col2 - - tab1.col1 AS col1 FROM tab1
----
-155618
-174736
-496741

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1267
SELECT + col2 * col2 + cor0.col2 DIV col0 AS col2 FROM tab1 AS cor0
----
2934
3249
9217

skipif mysql # not compatible
query I rowsort label-1267
SELECT + col2 * col2 + cor0.col2 / col0 AS col2 FROM tab1 AS cor0
----
2934
3249
9217

query I rowsort
SELECT col0 * + col1 + ( col0 ) + + col1 FROM tab0 AS cor0
----
2174
3527
8279

query I rowsort
SELECT DISTINCT - + col0 * col2 + 19 AS col2 FROM tab0 AS cor0
----
-16
-7279
-773

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

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

query I rowsort
SELECT DISTINCT 41 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
41

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

query I rowsort
SELECT ALL col2 * - 7 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-104
-3069
-8036

query I rowsort
SELECT DISTINCT col0 + + 83 FROM tab1 AS cor0
----
147
163
86

query I rowsort
SELECT DISTINCT - - col2 + col2 - col0 AS col1 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT + + col1 * 22 + - 12 FROM tab2 AS cor0
----
1286
362
670

query I rowsort
SELECT ALL cor0.col0 * ( + col1 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT col2 + col1 DIV - 18 FROM tab1 AS cor0
----
53
57
96

skipif mysql # not compatible
query I rowsort label-1278
SELECT col2 + col1 / - 18 FROM tab1 AS cor0
----
53
57
96

query I rowsort
SELECT DISTINCT col0 * + col0 + - 33 + col1 FROM tab0 AS cor0
----
1289
629
7979

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1280
SELECT DISTINCT col1 + col0 * + CAST( + ( + col2 ) * col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
114093
5134
52787

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT col1 + col0 * + CAST ( + ( + col2 ) * col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + 58 AS col0 FROM tab2 AS cor0
----
107
6142
6299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * + ( col0 ) col2 FROM tab0
----
1225
19008
649522

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1284
SELECT - cor0.col2 + - col0 DIV - col1 col0 FROM tab2 AS cor0
----
-25
-27
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1284
SELECT - cor0.col2 + - col0 / - col1 col0 FROM tab2 AS cor0
----
-25
-27
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT ALL col1 * col2 DIV - col1 + + col0 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL col1 * col2 / - col1 + + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - cor0.col2 + - 6 AS col2 FROM tab1 cor0
----
-102
-60
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1287
SELECT ALL - ( - col2 ) + col2 DIV col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL - ( - col2 ) + col2 / col1 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT + ( 24 ) + - col0 FROM tab2 AS cor0
----
-54
-55
17

query I rowsort
SELECT - - cor0.col1 + - 20 FROM tab0, tab2 AS cor0
----
9 values hashing to e6a23aa283f525a0f2cff43cc9914a46

query I rowsort
SELECT + 43 + + col1 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT + + 16 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

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

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

query I rowsort
SELECT + col1 * - 25 AS col2 FROM tab1
----
-250
-325
-650

query I rowsort
SELECT ALL 42 + col2 * + col0 AS col1 FROM tab2
----
2070
231
3044

query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * + col2 * ( ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-1298
SELECT DISTINCT - 82 DIV 71 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT - 82 / 71 FROM tab2 cor0
----
-1

query I rowsort
SELECT 82 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1301
SELECT CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-1301
SELECT CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab1
----
1248
1404
570

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1305
SELECT 35 DIV - col0 AS col1 FROM tab2
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-1305
SELECT 35 / - col0 AS col1 FROM tab2
----
-5
0
0

query I rowsort
SELECT ALL + 75 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

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

query I rowsort
SELECT ALL 70 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT + - col1 + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

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

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

query I rowsort
SELECT DISTINCT + - col2 - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1314
SELECT - col1 * col1 + col0 DIV 97 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-1314
SELECT - col1 * col1 + col0 / 97 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + col2 * col0 + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - + ( - col1 ) + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - cor0.col1 * 24 - - cor0.col0 FROM tab1 AS cor0
----
-176
-232
-621

query I rowsort
SELECT - col0 + - 61 * col2 FROM tab0
----
-2037
-5091
-96

query I rowsort
SELECT ALL 43 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT col0 + - 15 AS col0 FROM tab0 AS cor0
----
20
74
9

query I rowsort
SELECT col2 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - 76 - + col1 FROM tab0 AS cor0
----
-162
-167
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( col1 ) ) col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL col1 * + col1 * col0 AS col2 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * + col1 col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT + ( + col0 ) * + 26 + tab2.col1 FROM tab2
----
2071
2087
213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 * - col2 col1 FROM tab0
----
-1980
-4920
-60

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

query I rowsort
SELECT - + col1 * col1 * - ( + col2 * col1 + cor0.col2 ) AS col0 FROM tab2 cor0
----
197676
5430360
830304

query I rowsort
SELECT col1 * - 18 FROM tab1 AS cor0
----
-180
-234
-468

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 - cor2.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab1 cor2
----
243 values hashing to 8b707a7681a30e1f5daf6ce4095fe9f6

query I rowsort
SELECT DISTINCT + col1 * + 35 + 43 AS col0 FROM tab0 cor0
----
3053
3228
3438

query I rowsort
SELECT ALL - - cor0.col1 * + 51 - - col0 * + col1 * cor0.col1 FROM tab0 AS cor0
----
181890
334262
741650

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 46 col1 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT ALL - - col1 - 10 FROM tab0 AS cor0
----
76
81
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col2 FROM tab1 AS cor0
----
109
67
80

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

query I rowsort
SELECT 87 FROM tab1 cor0
----
87
87
87

query I rowsort
SELECT - 69 * col0 + - cor0.col0 AS col1 FROM tab0 cor0
----
-1680
-2450
-6230

query I rowsort
SELECT + 70 + - col1 * col2 FROM tab1
----
-1178
-1334
-500

onlyif mysql # use DIV operator for integer division
query I rowsort label-1346
SELECT + col2 DIV - tab1.col0 - tab1.col0 * + tab1.col2 FROM tab1
----
-180
-3648
-7681

skipif mysql # not compatible
query I rowsort label-1346
SELECT + col2 / - tab1.col0 - tab1.col0 * + tab1.col2 FROM tab1
----
-180
-3648
-7681

query I rowsort
SELECT + col1 * 82 + col0 * + col2 - + 95 FROM tab2 AS cor0
----
2636
4301
6771

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) * col2 + + 7 + col2 col1 FROM tab1 cor0
----
2977
3313
9319

onlyif mysql # use DIV operator for integer division
query I rowsort label-1350
SELECT - + ( - col1 ) DIV - col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1350
SELECT - + ( - col1 ) / - col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT col2 + - 20 - - col0 * - cor0.col0 FROM tab2 AS cor0
----
-42
-6078
-6223

query I rowsort
SELECT ALL 88 + col0 AS col2 FROM tab1 AS cor0
----
152
168
91

query I rowsort
SELECT ( cor0.col1 ) * - col0 * + col0 + 92 FROM tab1 AS cor0
----
-142
-40868
-83108

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

query I rowsort
SELECT ALL - - 5 + cor0.col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT + 18 * + cor0.col2 + col0 FROM tab0 cor0
----
1565
53
618

query I rowsort
SELECT col0 * + 12 AS col1 FROM tab1
----
36
768
960

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

query I rowsort
SELECT ALL + 42 AS col2 FROM tab0
----
42
42
42

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

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

query I rowsort
SELECT + cor0.col1 + + col2 * - col0 AS col0 FROM tab1 cor0
----
-136
-3638
-7667

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

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

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

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

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

query I rowsort
SELECT ALL - - 22 * col0 + cor0.col0 FROM tab2 AS cor0
----
161
1794
1817

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1370
SELECT 78 DIV - col2 col0 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1370
SELECT 78 / - col2 col0 FROM tab1
----
-1
-1
0

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

query I rowsort
SELECT DISTINCT col2 * col0 * - col1 + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT + 21 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1364
238
4623

query I rowsort
SELECT ALL - + 24 * col0 FROM tab0 AS cor0
----
-2136
-576
-840

query I rowsort
SELECT - 60 + cor0.col2 FROM tab2 AS cor0
----
-22
-33
-34

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * + col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - + col1 * col0 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-10686
-266
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-1378
SELECT DISTINCT - 38 DIV + col2 + col1 FROM tab0 AS cor0
----
59
85
91

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT - 38 / + col2 + col1 FROM tab0 AS cor0
----
59
85
91

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

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

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

query I rowsort
SELECT DISTINCT ( col2 ) * col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409

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

query I rowsort
SELECT ALL - + 20 + + cor0.col0 FROM tab0 cor0
----
15
4
69

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT ALL 20 + col0 * col1 * col1 AS col1 FROM tab0
----
177524
329335
737029

onlyif mysql # use DIV operator for integer division
query I rowsort label-1387
SELECT + col2 + - col1 DIV tab0.col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-1387
SELECT + col2 + - col1 / tab0.col2 FROM tab0
----
-96
31
81

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

query I rowsort
SELECT ALL - 24 + - col2 AS col0 FROM tab0
----
-106
-25
-57

query I rowsort
SELECT col1 + 38 FROM tab1
----
48
51
64

query I rowsort
SELECT 39 - - col1 FROM tab1
----
49
52
65

query I rowsort
SELECT DISTINCT cor0.col1 + 12 AS col0 FROM tab1 AS cor0
----
22
25
38

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

query I rowsort
SELECT + ( tab2.col1 ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL 41 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT col1 * 51 - 82 FROM tab2 AS cor0
----
1499
2927
785

query I rowsort
SELECT ALL - - col0 * 89 FROM tab0 AS cor0
----
2136
3115
7921

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1400
SELECT ALL - col1 DIV ( - 55 ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - col1 / ( - 55 ) AS col1 FROM tab0 AS cor0
----
1
1
1

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

query I rowsort
SELECT ALL + 31 + - col0 * col1 FROM tab1 AS cor0
----
-1009
-47
-609

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

query I rowsort
SELECT DISTINCT ( cor0.col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + col2 + - ( col0 ) + + col2 AS col0 FROM tab0
----
-33
42
75

query I rowsort
SELECT ALL col2 * + col1 + - col1 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT ALL + cor0.col0 DIV col2 + + col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL + cor0.col0 / col2 + + col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT ALL + col1 + - col0 + 52 FROM tab0
----
114
114
54

query I rowsort
SELECT ALL col1 * col0 + - col1 * + col0 * + col2 AS col2 FROM tab1 AS cor0
----
-35840
-4134
-98800

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 ALL + 97 col2 FROM tab0, tab2 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - cor0.col1 col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - - 78 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
109
137
95

query I rowsort
SELECT + 41 * col2 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT col0 * ( - cor0.col1 ) + col0 + col2 * + ( cor0.col1 + + col1 ) FROM tab0 AS cor0
----
-3166
3636
6914

query I rowsort
SELECT col0 * ( 10 ) + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1061
297
386

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

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

query I rowsort
SELECT ALL - 62 + col2 FROM tab2
----
-24
-35
-36

query I rowsort
SELECT ALL col2 * + col0 + col2 + col0 FROM tab0
----
71
7469
849

query I rowsort
SELECT + 46 + + col0 FROM tab2
----
124
125
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-1422
SELECT ALL + col1 DIV col0 + - tab2.col0 * col2 FROM tab2
----
-185
-2028
-3002

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + col1 / col0 + - tab2.col0 * col2 FROM tab2
----
-185
-2028
-3002

query I rowsort
SELECT cor0.col0 + - 90 FROM tab1, tab2 AS cor0
----
9 values hashing to 496bf2a6317b6d3f1a2b04ff7899c0ba

query I rowsort
SELECT + + col0 + - 55 FROM tab1 AS cor0
----
-52
25
9

query I rowsort
SELECT cor0.col0 - 67 FROM tab1 AS cor0
----
-3
-64
13

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT + col1 * col0 DIV - 97 AS col1 FROM tab1
----
-10
-6
0

skipif mysql # not compatible
query I rowsort label-1427
SELECT + col1 * col0 / - 97 AS col1 FROM tab1
----
-10
-6
0

query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + col0 + col1 - + col0 FROM tab0
----
86
91
97

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

query I rowsort
SELECT 44 + - col2 FROM tab2
----
17
18
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( - col1 ) col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - + 21 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-210
-273
-546

query I rowsort
SELECT ALL 42 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + - 46 * col0 FROM tab0 AS cor0
----
-1104
-1610
-4094

query I rowsort
SELECT DISTINCT + - 51 * - col0 FROM tab1 AS cor0
----
153
3264
4080

query I rowsort
SELECT ALL 87 AS col2 FROM tab1
----
87
87
87

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

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

query I rowsort
SELECT + ( - col1 ) * + 82 AS col1 FROM tab2 AS cor0
----
-1394
-2542
-4838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col1 + + 65 col1 FROM tab2 cor0
----
-224
-3416
-896

query I rowsort
SELECT ALL - 81 + + col0 * 7 FROM tab2 AS cor0
----
-32
465
472

query I rowsort
SELECT + + 35 + - cor0.col1 FROM tab2 AS cor0
----
-24
18
4

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 + col0 + ( col0 ) * cor0.col1 col2 FROM tab1 AS cor0
----
1054
15
638

query I rowsort
SELECT DISTINCT - col1 + 13 AS col2 FROM tab2
----
-18
-4
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1446
SELECT ALL CAST( col1 AS SIGNED ) + + col1 FROM tab2
----
118
34
62

skipif mysql # not compatible
query I rowsort label-1446
SELECT ALL CAST ( col1 AS INTEGER ) + + col1 FROM tab2
----
118
34
62

query I rowsort
SELECT - + cor1.col1 + - 16 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1b0b2f764721b01ce62aeb0f70527cb

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

query I rowsort
SELECT - 71 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT 87 + + col0 AS col0 FROM tab0
----
111
122
176

query I rowsort
SELECT - - 12 * - cor0.col0 AS col1 FROM tab1 cor0
----
-36
-768
-960

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

query I rowsort
SELECT 7 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT - ( - col1 ) * 67 FROM tab1 cor0
----
1742
670
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT - col2 DIV + ( col0 ) FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-1455
SELECT - col2 / + ( col0 ) FROM tab1
----
-1
-18
0

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

query I rowsort
SELECT ALL 92 * col2 - + col1 AS col0 FROM tab2 AS cor0
----
2333
2453
3479

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

query I rowsort
SELECT tab0.col2 * - 46 AS col0 FROM tab0
----
-1518
-3772
-46

query I rowsort
SELECT col1 * + col2 + tab1.col0 * col1 FROM tab1
----
1210
1482
2288

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

query I rowsort
SELECT - col0 * + col2 * col2 + col2 * col2 - + col0 AS col1 FROM tab0
----
-25071
-591801
-69

query I rowsort
SELECT col0 + + 63 AS col1 FROM tab0 AS cor0
----
152
87
98

query I rowsort
SELECT - ( 80 ) + col0 AS col2 FROM tab1 AS cor0
----
-16
-77
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1465
SELECT DISTINCT - 29 + tab1.col0 DIV + col0 AS col0 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-1465
SELECT DISTINCT - 29 + tab1.col0 / + col0 AS col0 FROM tab1
----
-28

query I rowsort
SELECT ALL - - 16 * 24 FROM tab1 AS cor0
----
384
384
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + ( - col2 + ( col1 ) ) col0 FROM tab1 AS cor0
----
10
13
26

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

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

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

query I rowsort
SELECT DISTINCT 4 + 59 AS col1 FROM tab1 AS cor0
----
63

query I rowsort
SELECT + col1 + col1 * - cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
177590
329412
737100

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

query I rowsort
SELECT ALL + 31 + + col1 FROM tab2 cor0
----
48
62
90

query I rowsort
SELECT 56 + - 65 * col2 FROM tab1 AS cor0
----
-3454
-3649
-6184

query I rowsort
SELECT DISTINCT - 31 * col1 FROM tab0 AS cor0
----
-2666
-2821
-3007

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

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

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

query I rowsort
SELECT ( + col2 + col1 ) * col1 * - tab1.col0 FROM tab1
----
-113360
-42880
-6240

query I rowsort
SELECT ALL - col1 * - 43 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT ALL + + col0 + + col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + col0 * + col0 * col0 + cor0.col1 FROM tab0 AS cor0
----
13910
42972
705060

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

query I rowsort
SELECT DISTINCT col1 * - 98 - cor0.col2 FROM tab1 AS cor0
----
-1037
-1370
-2602

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

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

query I rowsort
SELECT + col0 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667

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

query I rowsort
SELECT ALL - col1 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - col0 + col2 * + cor0.col2 + + 80 AS col1 FROM tab0 AS cor0
----
1145
46
6715

query I rowsort
SELECT DISTINCT - + 59 + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
30

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

query I rowsort
SELECT + - cor0.col0 + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT 10 - 44 FROM tab1
----
-34
-34
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1493
SELECT + CAST( - 24 AS SIGNED ) FROM tab1
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-1493
SELECT + CAST ( - 24 AS INTEGER ) FROM tab1
----
-24
-24
-24

query I rowsort
SELECT - - col0 + + col2 * + 87 AS col1 FROM tab1 AS cor0
----
4701
5023
8432

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

query I rowsort
SELECT - col2 * - col1 + col1 * col1 + - col1 FROM tab0 cor0
----
10148
15652
9409

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1498
SELECT DISTINCT + col2 * 49 DIV + cor0.col1 + - col1 * CAST( cor0.col1 * col0 AS SIGNED ) + 64 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-175950
-327075
-731269

skipif mysql # not compatible
query I rowsort label-1498
SELECT DISTINCT + col2 * 49 / + cor0.col1 + - col1 * CAST ( cor0.col1 * col0 AS INTEGER ) + 64 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-175950
-327075
-731269

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

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

skipif mysql # not compatible
query I rowsort label-1500
SELECT - col2 / ( col2 ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * 88 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT DISTINCT + - col0 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + - col2 + cor0.col1 * + 65 AS col1 FROM tab2 cor0
----
1067
1988
3809

query I rowsort
SELECT DISTINCT - - col2 * 37 FROM tab2 AS cor0
----
1406
962
999

query I rowsort
SELECT ALL - cor0.col0 * 95 AS col1 FROM tab0 AS cor0
----
-2280
-3325
-8455

onlyif mysql # use DIV operator for integer division
query I rowsort label-1506
SELECT ALL - + col1 * - ( col0 ) * cor0.col0 + ( + 35 ) DIV + col0 + col2 AS col1 FROM tab0 AS cor0
----
118827
49570
720893

skipif mysql # not compatible
query I rowsort label-1506
SELECT ALL - + col1 * - ( col0 ) * cor0.col0 + ( + 35 ) / + col0 + col2 AS col1 FROM tab0 AS cor0
----
118827
49570
720893

query I rowsort
SELECT ALL + - col0 + ( 29 ) * + col1 + - cor0.col1 FROM tab2 AS cor0
----
1574
397
861

onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT + col0 DIV 73 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1508
SELECT + col0 / 73 FROM tab2 AS cor0
----
0
1
1

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

query I rowsort
SELECT + - 73 + + col1 * col0 FROM tab2 AS cor0
----
1270
144
4529

query I rowsort
SELECT - col1 + + 8 FROM tab1
----
-18
-2
-5

query I rowsort
SELECT DISTINCT - col2 + col0 * - col1 AS col0 FROM tab1 cor0
----
-1136
-132
-697

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

query I rowsort
SELECT + 77 * + col1 FROM tab2 AS cor0
----
1309
2387
4543

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1516
SELECT DISTINCT 82 DIV col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT 82 / col0 FROM tab0 AS cor0
----
0
2
3

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1518
SELECT - col1 + col2 DIV - 76 + + col2 AS col2 FROM tab0
----
-10
-53
-96

skipif mysql # not compatible
query I rowsort label-1518
SELECT - col1 + col2 / - 76 + + col2 AS col2 FROM tab0
----
-10
-53
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1519
SELECT ALL + col0 + col0 DIV col0 AS col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL + col0 + col0 / col0 AS col2 FROM tab1
----
4
65
81

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1521
SELECT - col2 + ( col0 ) DIV col1 FROM tab2 cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-1521
SELECT - col2 + ( col0 ) / col1 FROM tab2 cor0
----
-25
-27
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1522
SELECT - col1 * CAST( - col1 AS SIGNED ) - + col1 FROM tab2 AS cor0
----
272
3422
930

skipif mysql # not compatible
query I rowsort label-1522
SELECT - col1 * CAST ( - col1 AS INTEGER ) - + col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT 94 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1524
SELECT + col0 - + CAST( - 86 AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
2314
2329
3347

skipif mysql # not compatible
query I rowsort label-1524
SELECT + col0 - + CAST ( - 86 AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
2314
2329
3347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1525
SELECT ALL col2 * 55 - col0 * col2 * - CAST( 86 + + col0 * ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
2651583
29538
8652960

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL col2 * 55 - col0 * col2 * - CAST ( 86 + + col0 * ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
2651583
29538
8652960

query I rowsort
SELECT - col2 - - cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT ALL - col1 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 * - col2 col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - - 70 * - 6 + col2 * 20 AS col2 FROM tab0 AS cor0
----
-400
1220
240

query I rowsort
SELECT ALL - + col1 - col1 * - cor0.col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL col0 + 80 AS col1 FROM tab1 AS cor0
----
144
160
83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1533
SELECT CAST( col0 AS SIGNED ) * + col1 + cor0.col0 DIV + 49 FROM tab0 cor0
----
2064
3395
8100

skipif mysql # not compatible
query I rowsort label-1533
SELECT CAST ( col0 AS INTEGER ) * + col1 + cor0.col0 / + 49 FROM tab0 cor0
----
2064
3395
8100

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

query I rowsort
SELECT ALL col1 * ( + cor0.col1 ) - - 34 AS col1 FROM tab2 cor0
----
323
3515
995

query I rowsort
SELECT ALL + + 11 * + col1 - col1 * + 1 AS col0 FROM tab1 cor0
----
100
130
260

query I rowsort
SELECT DISTINCT + col0 * col1 * + 67 + col0 AS col0 FROM tab2 AS cor0
----
14546
308412
90060

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT - cor0.col0 / col1 + - col2 + + col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT col0 * + tab1.col1 + - col0 * - col0 FROM tab1
----
4736
7440
87

query I rowsort
SELECT col2 + - col1 * 87 FROM tab1 AS cor0
----
-1035
-2208
-813

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

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

query I rowsort
SELECT - 89 * - col1 AS col1 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT - 8 * + col2 * 46 FROM tab1 AS cor0
----
-19872
-20976
-35328

query I rowsort
SELECT + col2 + 28 * + col2 * + col2 AS col1 FROM tab1 AS cor0
----
258144
81702
91029

query I rowsort
SELECT DISTINCT + - col1 * + 65 FROM tab0 AS cor0
----
-5590
-5915
-6305

query I rowsort
SELECT ALL + - col0 * 11 * - ( + col2 ) FROM tab0 AS cor0
----
385
80278
8712

query I rowsort
SELECT DISTINCT - col2 + 17 AS col1 FROM tab2 AS cor0
----
-10
-21
-9

query I rowsort
SELECT 33 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f

query I rowsort
SELECT - col1 * - 21 AS col2 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT ALL col2 + - col1 + + tab1.col0 * col2 FROM tab1
----
190
3695
7763

query I rowsort
SELECT DISTINCT - 57 * cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT col1 * 24 AS col1 FROM tab1
----
240
312
624

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

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

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

query I rowsort
SELECT DISTINCT + 99 AS col2 FROM tab2, tab1 AS cor0
----
99

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

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

query I rowsort
SELECT ALL ( 94 ) FROM tab0
----
94
94
94

query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab1, tab0 AS cor0
----
38

query I rowsort
SELECT + 80 FROM tab2, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # use DIV operator for integer division
query I rowsort label-1561
SELECT ALL col0 * - 23 + + col1 * col1 * col1 + col0 * cor0.col2 DIV col1 FROM tab2 AS cor0
----
203619
29636
3272

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL col0 * - 23 + + col1 * col1 * col1 + col0 * cor0.col2 / col1 FROM tab2 AS cor0
----
203619
29636
3272

query I rowsort
SELECT ALL + col0 + - col1 * 60 AS col1 FROM tab2 AS cor0
----
-1853
-3462
-941

query I rowsort
SELECT + col2 * col1 * + col1 AS col0 FROM tab2
----
10982
25947
90506

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

query I rowsort
SELECT DISTINCT + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - + 71 + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7325
8210
9338

query I rowsort
SELECT ALL cor0.col0 + - 96 FROM tab1, tab2 AS cor0
----
9 values hashing to 5a13f87c91df3ecf3337a1c978f9b2ca

query I rowsort
SELECT + - ( 25 ) * col1 * col2 AS col1 FROM tab0 cor0
----
-186550
-2425
-70950

query I rowsort
SELECT ALL 31 + 3 AS col2 FROM tab2 cor0
----
34
34
34

query I rowsort
SELECT 33 + - col2 * + col2 FROM tab0 AS cor0
----
-1056
-6691
32

query I rowsort
SELECT - 16 AS col0 FROM tab2 AS cor0
----
-16
-16
-16

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

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + col2 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT 81 * 50 FROM tab0 AS cor0
----
4050

query I rowsort
SELECT ALL - 20 + + col0 AS col1 FROM tab2 cor0
----
-13
58
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( col0 ) * col0 + + 30 col2 FROM tab0
----
1352
692
8042

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 * - col0 + + col2 col0 FROM tab2 AS cor0
----
106135
1546
358982

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

query I rowsort
SELECT ALL - 54 * col1 - - col0 FROM tab1 AS cor0
----
-1401
-476
-622

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

query I rowsort
SELECT - - 23 * - cor0.col2 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT ALL + 95 AS col1 FROM tab2 cor0
----
95
95
95

query I rowsort
SELECT ALL + 97 * - ( + col2 ) AS col2 FROM tab0
----
-3201
-7954
-97

query I rowsort
SELECT + col1 * col1 + 41 FROM tab2
----
1002
330
3522

query I rowsort
SELECT + 33 AS col2 FROM tab1
----
33
33
33

query I rowsort
SELECT DISTINCT - 6 * - tab0.col2 FROM tab0
----
198
492
6

query I rowsort
SELECT ALL + + col0 * col0 * cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
262154
512013
53

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

query I rowsort
SELECT tab0.col0 * + 19 FROM tab0, tab1 AS cor0
----
9 values hashing to bb00ad656ecb1f86e668d1fef0b986f3

query I rowsort
SELECT + + 23 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658

onlyif mysql # use DIV operator for integer division
query I rowsort label-1592
SELECT ALL col0 DIV + cor0.col2 + ( - col0 ) + col1 AS col1 FROM tab1 AS cor0
----
-53
-67
23

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL col0 / + cor0.col2 + ( - col0 ) + col1 AS col1 FROM tab1 AS cor0
----
-53
-67
23

query I rowsort
SELECT 54 + + col2 FROM tab1
----
108
111
150

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

query I rowsort
SELECT DISTINCT - - col1 + - 27 AS col1 FROM tab1 cor0
----
-1
-14
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1596
SELECT ALL cor0.col2 DIV 89 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL cor0.col2 / 89 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 09f8bcde9a772dfc9be53a0fd82c4934

query I rowsort
SELECT DISTINCT tab0.col2 + ( col0 ) * col2 FROM tab0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-1599
SELECT ALL - - col1 + cor0.col0 DIV col0 + cor0.col2 DIV + ( col2 ) AS col2 FROM tab0 AS cor0
----
88
93
99

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL - - col1 + cor0.col0 / col0 + cor0.col2 / + ( col2 ) AS col2 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT ALL + col2 + + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - - col2 * 52 AS col0 FROM tab2 cor0
----
1352
1404
1976

query I rowsort
SELECT ALL + cor0.col2 + 88 FROM tab1 AS cor0
----
142
145
184

query I rowsort
SELECT DISTINCT + + col1 * 19 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT DISTINCT + col0 * 80 + + ( cor0.col0 ) FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT + col0 * - 4 * - col0 AS col1 FROM tab1 AS cor0
----
16384
25600
36

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

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

query I rowsort
SELECT ALL col0 * 42 FROM tab1 AS cor0
----
126
2688
3360

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

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

skipif mysql # not compatible
query I rowsort label-1609
SELECT DISTINCT + col2 / - col1 FROM tab2 cor0
----
-2
0

query I rowsort
SELECT ALL - 98 * col2 FROM tab0 AS cor0
----
-3234
-8036
-98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * 12 col2 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT + 19 * col1 + + ( 25 ) AS col2 FROM tab1 AS cor0
----
215
272
519

query I rowsort
SELECT + ( col0 ) * 50 * + 41 AS col0 FROM tab0 cor0
----
182450
49200
71750

query I rowsort
SELECT - - 94 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-3
3
8

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

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + ( + col1 ) * + col2 AS REAL ) + - col1 FROM tab1
----
-1261
-1430
-580

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 * col0 col2 FROM tab0 AS cor0
----
-1246
-336
-490

query I rowsort
SELECT + 75 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT DISTINCT cor0.col1 + 2 FROM tab0 AS cor0
----
88
93
99

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

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

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

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

query I rowsort
SELECT ALL + - 74 + - col2 AS col0 FROM tab2 AS cor0
----
-100
-101
-112

query I rowsort
SELECT + - 34 + cor0.col1 FROM tab1 AS cor0
----
-21
-24
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor1.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96

query I rowsort
SELECT DISTINCT - + cor0.col2 + - 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-126
-129
-168

query I rowsort
SELECT ALL + col1 + - col0 * - ( + col0 ) + - col2 AS col1 FROM tab0
----
1321
629
7930

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1632
SELECT ALL + + col2 * 93 + - col1 DIV + col1 AS col0 FROM tab0 cor0
----
3068
7625
92

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL + + col2 * 93 + - col1 / + col1 AS col0 FROM tab0 cor0
----
3068
7625
92

query I rowsort
SELECT col1 * ( col1 ) AS col0 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1634
SELECT DISTINCT + col2 DIV + 68 + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-1634
SELECT DISTINCT + col2 / + 68 + col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

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

query I rowsort
SELECT col0 * 82 + - col1 FROM tab0 AS cor0
----
1882
2773
7207

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col2 ) + + col1 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - cor0.col1 * 45 + col1 AS col0 FROM tab0 AS cor0
----
-3784
-4004
-4268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1641
SELECT DISTINCT + - 9 + + 11 - cor0.col1 * CAST( col2 + + col1 * - cor0.col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
633220
746111
912578

skipif mysql # not compatible
query I rowsort label-1641
SELECT DISTINCT + - 9 + + 11 - cor0.col1 * CAST ( col2 + + col1 * - cor0.col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
633220
746111
912578

query I rowsort
SELECT + 69 * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
1623
2414
6059

query I rowsort
SELECT + ( + 47 ) + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2791
-50
-7415

query I rowsort
SELECT col0 * col0 * 71 FROM tab1
----
290816
454400
639

query I rowsort
SELECT ALL + 37 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT 18 * + col1 AS col0 FROM tab2 AS cor0
----
1062
306
558

onlyif mysql # use DIV operator for integer division
query I rowsort label-1647
SELECT ALL + col2 + col1 DIV + 4 FROM tab0 AS cor0
----
104
25
54

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + col2 + col1 / + 4 FROM tab0 AS cor0
----
104
25
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-1648
SELECT cor0.col1 DIV + col0 - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2067
3397
8100

skipif mysql # not compatible
query I rowsort label-1648
SELECT cor0.col1 / + col0 - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2067
3397
8100

query I rowsort
SELECT + 8 - col1 * col1 FROM tab2 AS cor0
----
-281
-3473
-953

query I rowsort
SELECT - 85 * + col0 FROM tab1
----
-255
-5440
-6800

query I rowsort
SELECT DISTINCT - col1 * col2 * + 25 FROM tab1
----
-14250
-31200
-35100

onlyif mysql # use DIV operator for integer division
query I rowsort label-1652
SELECT + col1 DIV col0 - col2 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-1652
SELECT + col1 / col0 - col2 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT + ( + col2 ) + - 19 AS col2 FROM tab0 AS cor0
----
-18
14
63

query I rowsort
SELECT - + col2 * 57 + col1 * cor0.col0 AS col2 FROM tab0 cor0
----
183
3338
3425

query I rowsort
SELECT - + col1 + - 48 FROM tab1 AS cor0
----
-58
-61
-74

query I rowsort
SELECT ALL tab1.col1 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT 59 DIV - col1 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-1657
SELECT 59 / - col1 FROM tab2
----
-1
-1
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1658
SELECT - cor0.col0 + + col2 * - 88 + + cor0.col0 * CAST( col2 + - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4755
-5080
-8528

skipif mysql # not compatible
query I rowsort label-1658
SELECT - cor0.col0 + + col2 * - 88 + + cor0.col0 * CAST ( col2 + - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4755
-5080
-8528

query I rowsort
SELECT 30 + - col1 FROM tab0
----
-56
-61
-67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * + col0 + col1 col2 FROM tab1 AS cor0
----
257
4938
6173

query I rowsort
SELECT ALL + col0 * col1 + col1 - + 76 FROM tab1 cor0
----
28
574
977

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

query I rowsort
SELECT ALL 43 - - cor0.col0 FROM tab0 AS cor0
----
132
67
78

query I rowsort
SELECT DISTINCT 82 * + col1 AS col1 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT DISTINCT + 2 - - col0 * col1 FROM tab1 cor0
----
1042
642
80

query I rowsort
SELECT DISTINCT + + ( 22 ) FROM tab1 AS cor0
----
22

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

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

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

query I rowsort
SELECT ALL - - cor0.col0 - - col1 FROM tab0 cor0
----
110
132
180

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1672
SELECT DISTINCT - - col1 + col0 - cor0.col2 * + col2 DIV cor0.col2 AS col0 FROM tab0 cor0
----
131
77
98

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT - - col1 + col0 - cor0.col2 * + col2 / cor0.col2 AS col0 FROM tab0 cor0
----
131
77
98

query I rowsort
SELECT ( + cor0.col1 ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab1 cor0
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-1675
SELECT ALL col1 + - col1 DIV col1 col1 FROM tab2 AS cor0
----
16
30
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL col1 + - col1 / col1 col1 FROM tab2 AS cor0
----
16
30
58

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

query I rowsort
SELECT DISTINCT + 52 + col1 AS col2 FROM tab1 AS cor0
----
62
65
78

query I rowsort
SELECT DISTINCT + - col2 + col2 * + 70 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT - + 5 * - col2 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT DISTINCT - + 86 * col1 AS col0 FROM tab2 AS cor0
----
-1462
-2666
-5074

query I rowsort
SELECT - + col2 * ( + 24 ) * - col0 FROM tab1 cor0
----
184320
3888
87552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * col1 * + col1 col2 FROM tab2
----
22831
271518
6727

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

query I rowsort
SELECT - col1 + + 20 * 87 * - col0 FROM tab1 AS cor0
----
-111370
-139213
-5246

onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT col0 + + col1 DIV col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1685
SELECT col0 + + col1 / col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT + cor2.col0 * + 78 FROM tab2, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 5406f8d39389c9b09e0245e771b39706

query I rowsort
SELECT + + cor0.col0 + col0 * cor0.col0 * - ( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
-24
-262080
-511920

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

query I rowsort
SELECT cor0.col0 * + 24 AS col0 FROM tab2 AS cor0
----
168
1872
1896

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

query I rowsort
SELECT ALL 1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - 25 * + col0 * col2 FROM tab1 AS cor0
----
-192000
-4050
-91200

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

query I rowsort
SELECT ALL 11 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # use DIV operator for integer division
query I rowsort label-1695
SELECT DISTINCT - - 7 + + 29 DIV col0 AS col0 FROM tab0 AS cor0
----
7
8

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT - - 7 + + 29 / col0 AS col0 FROM tab0 AS cor0
----
7
8

query I rowsort
SELECT - 78 * + 54 FROM tab1 AS cor0
----
-4212
-4212
-4212

query I rowsort
SELECT ALL - 5 * col1 AS col1 FROM tab2 AS cor0
----
-155
-295
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1698
SELECT ALL - + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1698
SELECT ALL - + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 50 * + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-10850
-230100
-67150

query I rowsort
SELECT ALL - - ( + col1 ) AS col2 FROM tab1 cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - 68 + + 53 + - cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
-18
-79
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT ALL col1 DIV ( col1 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1703
SELECT ALL col1 / ( col1 ) FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + 94 * - col1 + col2 + - col0 * - col0 AS col1 FROM tab0 cor0
----
-551
-7475
-7892

query I rowsort
SELECT DISTINCT - 89 + + 85 AS col0 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT - - 40 * + col1 AS col1 FROM tab0 AS cor0
----
3440
3640
3880

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

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

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

query I rowsort
SELECT col1 - ( ( col0 ) * tab2.col2 ) FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT - tab2.col0 DIV 86 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1710
SELECT - tab2.col0 / 86 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 * 53 FROM tab2
----
1378
1431
2014

query I rowsort
SELECT DISTINCT col2 * + tab2.col2 * - col0 + col1 AS col2 FROM tab2
----
-114059
-5072
-52669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + col0 col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - 77 * + col1 * - col2 + + col0 FROM tab0
----
218550
574663
7504

query I rowsort
SELECT + col2 + col2 * - col1 * - col1 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT - 76 * col0 AS col0 FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT ( col0 ) + + col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT - tab1.col1 * - 50 AS col1 FROM tab1
----
1300
500
650

query I rowsort
SELECT ALL tab2.col0 * 74 FROM tab2
----
518
5772
5846

query I rowsort
SELECT - col2 + 11 AS col0 FROM tab1
----
-43
-46
-85

query I rowsort
SELECT DISTINCT + 12 * + col2 - col2 * 94 AS col1 FROM tab2
----
-2132
-2214
-3116

query I rowsort
SELECT + 39 * col1 + + col2 + - col1 AS col0 FROM tab0
----
3301
3540
3687

query I rowsort
SELECT - cor0.col1 + - 3 AS col0 FROM tab1 AS cor0
----
-13
-16
-29

query I rowsort
SELECT ALL + col1 + - col0 * col1 * - col0 AS col2 FROM tab2 AS cor0
----
106114
1550
359015

query I rowsort
SELECT + col0 * - 66 + 16 * col2 * - col2 AS col0 FROM tab1 AS cor0
----
-152736
-46854
-56208

query I rowsort
SELECT - - 18 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT ALL col2 DIV - col1 + 68 DIV - 63 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-1727
SELECT ALL col2 / - col1 + 68 / - 63 FROM tab1
----
-3
-6
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1728
SELECT ALL 55 + - col1 DIV col0 AS col0 FROM tab2
----
51
55
55

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL 55 + - col1 / col0 AS col0 FROM tab2
----
51
55
55

query I rowsort
SELECT DISTINCT - col1 * col2 * ( col1 ) + col0 AS col2 FROM tab1
----
-16144
-36501
-5636

query I rowsort
SELECT ALL + tab0.col2 + col0 * col0 AS col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT - 19 * cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 934d1dd9454bfc140d1959bcd7db01c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 83 col2 FROM tab1 AS cor0
----
249
5312
6640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * + col2 col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL - col2 * - col1 + 56 FROM tab0 AS cor0
----
153
2894
7518

query I rowsort
SELECT col2 * + ( + 94 ) FROM tab2 AS cor0
----
2444
2538
3572

query I rowsort
SELECT DISTINCT + col1 * col0 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

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

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

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

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

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

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

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

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

query I rowsort
SELECT col1 * - tab2.col1 + + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT + cor0.col0 + 20 AS col0 FROM tab0 AS cor0
----
109
44
55

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

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL CAST ( col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 + - 10 FROM tab0 AS cor0
----
76
81
87

query I rowsort
SELECT ALL cor0.col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT - + col1 + col1 DIV cor0.col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-59
-60

skipif mysql # not compatible
query I rowsort label-1748
SELECT - + col1 + col1 / cor0.col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-59
-60

query I rowsort
SELECT + 97 * col2 AS col0 FROM tab1 AS cor0
----
5238
5529
9312

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-1751
SELECT ALL 71 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL 71 / col2 FROM tab1
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT DISTINCT - col1 DIV - ( col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT - col1 / - ( col2 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col1 FROM tab0 AS cor0
----
8
8
8

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1755
SELECT DISTINCT - col1 + col2 DIV - col0 + col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT - col1 + col2 / - col0 + col1 FROM tab0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1756
SELECT ALL + col2 + col1 DIV - 44 FROM tab2
----
25
27
38

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL + col2 + col1 / - 44 FROM tab2
----
25
27
38

query I rowsort
SELECT DISTINCT - 61 * 16 FROM tab0, tab1 AS cor0
----
-976

query I rowsort
SELECT - + 44 - + col1 AS col1 FROM tab1 cor0
----
-54
-57
-70

query I rowsort
SELECT + + 47 + - 83 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT + col2 * col0 + col0 * col2 FROM tab0 AS cor0
----
14596
1584
70

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

query I rowsort
SELECT 26 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + col0 * - col0 + - col1 * ( + cor0.col2 + ( - col0 ) ) FROM tab2 cor0
----
-3016
-5544
-669

onlyif mysql # use DIV operator for integer division
query I rowsort label-1764
SELECT ALL ( col2 ) DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL ( col2 ) / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 * col1 * - col0 + ( - col0 * col1 ) FROM tab0 cor0
----
-122220
-51600
-728910

query I rowsort
SELECT + ( + cor0.col0 ) + col2 * 30 AS col1 FROM tab2 AS cor0
----
1219
817
858

query I rowsort
SELECT - col1 + col0 * cor0.col0 - col2 FROM tab1 AS cor0
----
-71
4029
6291

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col2 ) ) col0 FROM tab2
----
26
27
38

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

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

query I rowsort
SELECT - cor0.col1 + - 17 FROM tab1, tab2 AS cor0
----
9 values hashing to 5bd4d19f6c5150b1840a60f352bfc69d

query I rowsort
SELECT col1 * - cor0.col2 * 49 FROM tab1 AS cor0
----
-27930
-61152
-68796

query I rowsort
SELECT - col2 * + col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + col1 + - col0 - + col0 AS col2 FROM tab0 AS cor0
----
-87
27
38

query I rowsort
SELECT - col2 * col2 + - col1 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT - col1 + cor0.col2 * + 40 AS col0 FROM tab2 AS cor0
----
1049
1503
981

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

query I rowsort
SELECT + ( col1 ) * col2 - ( - col0 + ( - col2 ) * col0 ) AS col2 FROM tab0
----
14849
167
3654

onlyif mysql # use DIV operator for integer division
query I rowsort label-1779
SELECT DISTINCT - col2 DIV col0 + col2 * + col1 FROM tab1
----
1247
1386
570

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT - col2 / col0 + col2 * + col1 FROM tab1
----
1247
1386
570

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

query I rowsort
SELECT tab0.col1 * 8 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 55c69e585d0208340fa1b0b86aef86b4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1783
SELECT ALL + ( col0 ) - col1 DIV col0 AS col2 FROM tab2
----
3
78
79

skipif mysql # not compatible
query I rowsort label-1783
SELECT ALL + ( col0 ) - col1 / col0 AS col2 FROM tab2
----
3
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1784
SELECT + ( + tab1.col1 ) - - col2 DIV - tab1.col1 AS col0 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-1784
SELECT + ( + tab1.col1 ) - - col2 / - tab1.col1 AS col0 FROM tab1
----
24
5
6

query I rowsort
SELECT col0 * 34 FROM tab0
----
1190
3026
816

query I rowsort
SELECT col1 * - 39 FROM tab2
----
-1209
-2301
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 89 - col0 * - col0 col2 FROM tab0
----
1314
665
8010

query I rowsort
SELECT DISTINCT 55 * + col1 - col2 FROM tab1
----
1376
493
619

query I rowsort
SELECT + + ( 40 ) FROM tab2 cor0
----
40
40
40

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

query I rowsort
SELECT + col0 - + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - ( + 82 ) + + col1 FROM tab0 AS cor0
----
15
4
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT + col1 DIV 57 + col1 * col2 FROM tab2
----
1535
646
837

skipif mysql # not compatible
query I rowsort label-1793
SELECT + col1 / 57 + col1 * col2 FROM tab2
----
1535
646
837

query I rowsort
SELECT DISTINCT - col1 * + 67 + cor0.col2 FROM tab2 AS cor0
----
-1101
-2050
-3927

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

query I rowsort
SELECT - - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

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

query I rowsort
SELECT - 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1800
SELECT - col1 + col0 DIV - col0 AS col0 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-1800
SELECT - col1 + col0 / - col0 AS col0 FROM tab0
----
-87
-92
-98

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

query I rowsort
SELECT - 30 * ( - col2 ) + + col0 AS col0 FROM tab0
----
1014
2549
65

query I rowsort
SELECT ALL - 43 FROM tab1, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT ( + col0 * + tab2.col1 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL 70 * ( + col2 ) + - col2 AS col2 FROM tab2 cor0
----
1794
1863
2622

query I rowsort
SELECT + 41 + + col1 AS col0 FROM tab2 AS cor0
----
100
58
72

query I rowsort
SELECT DISTINCT + - 31 * - col2 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT DISTINCT col0 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

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

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

query I rowsort
SELECT DISTINCT - ( - 57 ) * col1 * 63 - 99 * col1 FROM tab0 AS cor0
----
300312
317772
338724

query I rowsort
SELECT ALL - tab2.col1 + 42 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to afe4d19a8057ce80169689f37ef14b57

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

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

query I rowsort
SELECT ALL - cor0.col0 + col2 * + col1 - - col1 AS col1 FROM tab1 cor0
----
1181
1427
516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col2 col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT + cor0.col2 DIV ( + col1 * + col1 ) + - 96 * cor0.col0 FROM tab2 cor0
----
-672
-7488
-7584

skipif mysql # not compatible
query I rowsort label-1815
SELECT + cor0.col2 / ( + col1 * + col1 ) + - 96 * cor0.col0 FROM tab2 cor0
----
-672
-7488
-7584

query I rowsort
SELECT DISTINCT + - col1 + + cor0.col2 * - col2 FROM tab1 cor0
----
-2942
-3259
-9229

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

skipif mysql # not compatible
query I rowsort label-1817
SELECT - cor0.col0 + + CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

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

query I rowsort
SELECT + col1 * 62 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT ALL 0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1821
SELECT DISTINCT - col0 DIV + 96 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1821
SELECT DISTINCT - col0 / + 96 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 + + col2 col0 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ALL col1 * - 85 AS col2 FROM tab2 AS cor0
----
-1445
-2635
-5015

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( - cor0.col2 * - col0 AS REAL ) + + ( col2 ) FROM tab2 cor0
----
-1296
-158158
-237120

query I rowsort
SELECT ALL - col0 + 90 FROM tab1 AS cor0
----
10
26
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT + col2 * col1 + 98 + col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
1346
1502
667

skipif mysql # not compatible
query I rowsort label-1826
SELECT + col2 * col1 + 98 + col0 / - col2 AS col2 FROM tab1 AS cor0
----
1346
1502
667

query I rowsort
SELECT DISTINCT + + col0 + col2 * - 51 FROM tab0 cor0
----
-16
-1659
-4093

query I rowsort
SELECT - col1 * ( - 18 * - col1 ) AS col0 FROM tab2
----
-17298
-5202
-62658

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

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

query I rowsort
SELECT + 14 + - cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to d29db7ca9df69566204ea32c87fb922a

query I rowsort
SELECT + col0 + + 18 * col1 FROM tab1 AS cor0
----
244
314
471

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

query I rowsort
SELECT ALL - - col2 * + 5 * col0 AS col1 FROM tab1 AS cor0
----
18240
38400
810

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

query I rowsort
SELECT + + 73 * col0 FROM tab0 AS cor0
----
1752
2555
6497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 + - col1 col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - col2 * + 46 FROM tab1
----
-2484
-2622
-4416

query I rowsort
SELECT + + col2 * col0 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT ALL - 85 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-50
-61
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1840
SELECT ALL - col0 DIV + cor0.col0 + 35 * + 25 + cor0.col1 AS col2 FROM tab1 cor0
----
884
887
900

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL - col0 / + cor0.col0 + 35 * + 25 + cor0.col1 AS col2 FROM tab1 cor0
----
884
887
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-1841
SELECT ALL + col1 + + col1 DIV + col1 + + col0 AS col2 FROM tab1 AS cor0
----
30
75
94

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL + col1 + + col1 / + col1 + + col0 AS col2 FROM tab1 AS cor0
----
30
75
94

query I rowsort
SELECT DISTINCT 12 * col2 + col0 FROM tab0 AS cor0
----
1073
420
47

query I rowsort
SELECT - col0 + - cor0.col2 + - ( 35 ) FROM tab1 AS cor0
----
-156
-211
-92

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

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

query I rowsort
SELECT ALL + - 78 + col2 FROM tab1 cor0
----
-21
-24
18

query I rowsort
SELECT col1 + - col1 + col0 * - ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - ( col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT 70 + + col0 FROM tab2
----
148
149
77

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

query I rowsort
SELECT ALL 39 * col2 AS col2 FROM tab0
----
1287
3198
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT ALL cor0.col1 DIV 54 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL cor0.col1 / 54 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

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

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

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

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

query I rowsort
SELECT ALL - 10 + + col0 * ( 32 ) FROM tab0 AS cor0
----
1110
2838
758

query I rowsort
SELECT + - cor0.col2 * - col0 * ( col1 ) + + col2 - - 87 AS col2 FROM tab0 AS cor0
----
3483
664287
68232

query I rowsort
SELECT + 47 + col2 * + col2 + + 0 AS col0 FROM tab0
----
1136
48
6771

query I rowsort
SELECT - col2 * col2 * col1 AS col0 FROM tab1
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT col2 * - col0 * col2 AS col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT + col1 * col2 * + col2 AS col2 FROM tab1
----
119808
32490
75816

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

query I rowsort
SELECT cor0.col0 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 * - col2 col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

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

query I rowsort
SELECT + 95 * col1 AS col0 FROM tab0 cor0
----
8170
8645
9215

query I rowsort
SELECT + col0 * + cor0.col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1868
SELECT ALL - - col2 DIV + col0 + col0 + + col0 FROM tab1 AS cor0
----
128
161
24

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL - - col2 / + col0 + col0 + + col0 FROM tab1 AS cor0
----
128
161
24

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

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - + cor0.col2 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + tab0.col1 col0 FROM tab0
----
119
173
98

query I rowsort
SELECT - + col2 * + col1 + + col2 + col2 AS col0 FROM tab2 AS cor0
----
-1482
-570
-783

onlyif mysql # use DIV operator for integer division
query I rowsort label-1874
SELECT - col0 + - col2 + col0 * + col2 DIV - col2 FROM tab1
----
-185
-256
-60

skipif mysql # not compatible
query I rowsort label-1874
SELECT - col0 + - col2 + col0 * + col2 / - col2 FROM tab1
----
-185
-256
-60

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 * + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1877
SELECT DISTINCT + col2 + - tab2.col1 DIV col1 + col1 AS col1 FROM tab2
----
54
57
84

skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT + col2 + - tab2.col1 / col1 + col1 AS col1 FROM tab2
----
54
57
84

query I rowsort
SELECT ALL col0 + col2 / - tab1.col1 FROM tab1 WHERE NOT - col0 - + col1 = ( NULL )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL col0 / col0 + + col1 + col0 col1 FROM tab0
----
111
133
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * - col2 col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE col0 - col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col2 + col2 * + col2 + col2 * col1 * - col0 FROM tab2
----
-118950
-49552
-5103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2 + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT DISTINCT tab0.col0 + - col1 DIV col2 col1 FROM tab0
----
-62
22
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT tab0.col0 + - col1 / col2 col1 FROM tab0
----
-62
22
88

query I rowsort
SELECT col1 * + col0 * + col2 + col0 - + col1 FROM tab0
----
3333
664116
68050

query I rowsort
SELECT + - 59 + + col2 * + ( - col2 * - col2 ) FROM tab1 AS cor0
----
157405
185134
884677

onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT col0 DIV - col0 + + col1 col0 FROM tab1
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1887
SELECT col0 / - col0 + + col1 col0 FROM tab1
----
12
25
9

query I rowsort
SELECT - 61 + cor0.col0 * col2 + - col2 AS col2 FROM tab0 AS cor0
----
-27
698
7155

query I rowsort
SELECT DISTINCT + + 22 FROM tab1 AS cor0
----
22

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col1 * + col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT + tab2.col2 / + col0 col0 FROM tab2
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1892
SELECT DISTINCT col0 * tab1.col1 DIV col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT col0 * tab1.col1 / col0 FROM tab1
----
10
13
26

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

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

query I rowsort
SELECT + tab0.col2 * + tab0.col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - col0 * col1 * col1 + - col0 * + tab2.col0 AS col1 FROM tab2
----
-277602
-29072
-6776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - tab1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 >= col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - col2 - - tab1.col1 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col1 * col2 + + col2 * + col1 * col1 AS col0 FROM tab2
----
11628
26784
92040

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab0.col0 * - col0 col0 FROM tab0
----
-1190
-552
-7832

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * + col2 + col0 + col1 AND ( + col1 * col1 * cor0.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1906
SELECT col0 + col2 + col0 DIV tab2.col0 FROM tab2
----
105
118
35

skipif mysql # not compatible
query I rowsort label-1906
SELECT col0 + col2 + col0 / tab2.col0 FROM tab2
----
105
118
35

query I rowsort
SELECT ALL - + col0 + col2 * 8 FROM tab0 AS cor0
----
-27
240
567

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT DISTINCT + cor0.col0 DIV + col0 col0 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + cor0.col0 / + col0 col0 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL + + 73 * col2 AS col0 FROM tab1 AS cor0
----
3942
4161
7008

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT + + col2 DIV + col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1912
SELECT + + col2 / + col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + + 83 + - col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2833
-3166
-9133

query I rowsort
SELECT - col2 + cor0.col0 * - ( + 76 * - col0 ) FROM tab2 AS cor0
----
3697
462358
474278

query I rowsort
SELECT 18 * + col0 + + 28 FROM tab1 cor0
----
1180
1468
82

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

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

query I rowsort
SELECT DISTINCT + + 44 + cor0.col1 FROM tab1 AS cor0
----
54
57
70

query I rowsort
SELECT ALL col2 * + col1 + cor0.col2 * cor0.col2 * col2 FROM tab0 AS cor0
----
38775
558830
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1919
SELECT DISTINCT + + col1 * - col0 + - 24 DIV col2 AS col2 FROM tab0 AS cor0
----
-2064
-3419
-8099

skipif mysql # not compatible
query I rowsort label-1919
SELECT DISTINCT + + col1 * - col0 + - 24 / col2 AS col2 FROM tab0 AS cor0
----
-2064
-3419
-8099

query I rowsort
SELECT - col0 + col1 * 47 AS col0 FROM tab1 cor0
----
1219
406
531

query I rowsort
SELECT + - col1 + col2 * + 56 AS col1 FROM tab2 AS cor0
----
1397
1481
2111

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

query I rowsort
SELECT - - col2 + col1 * + 71 AS col2 FROM tab0 AS cor0
----
6139
6543
6888

query I rowsort
SELECT ALL ( 19 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col1 + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT ( col2 ) + - col2 * col1 FROM tab0
----
-2805
-7380
-96

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

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

query I rowsort
SELECT - + cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

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

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

skipif mysql # not compatible
query I rowsort label-1931
SELECT col2 * CAST ( + col2 * + col1 AS INTEGER ) AS col0 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL + ( + col0 ) + col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL col1 * col2 + col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT col0 + + col2 DIV - col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1934
SELECT col0 + + col2 / - col2 FROM tab1
----
2
63
79

query I rowsort
SELECT - col1 + col0 * - col1 + col2 AS col1 FROM tab2
----
-1322
-221
-4635

query I rowsort
SELECT DISTINCT col1 + + 54 * col1 + col1 AS col0 FROM tab0
----
4816
5096
5432

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

query I rowsort
SELECT DISTINCT + 46 + 52 - col0 AS col0 FROM tab0 AS cor0
----
63
74
9

query I rowsort
SELECT ALL 92 + col0 FROM tab2
----
170
171
99

query I rowsort
SELECT 83 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT DISTINCT - + 17 * col1 * - col1 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
11489
1636
2793

onlyif mysql # use DIV operator for integer division
query I rowsort label-1942
SELECT tab1.col2 DIV + col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1942
SELECT tab1.col2 / + col2 FROM tab1
----
1
1
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 + + col1 col2 FROM tab0 cor0
----
101
90
95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * col0 + ( - 26 ) col2 FROM tab0 AS cor0
----
1164
526
7806

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

query I rowsort
SELECT DISTINCT + col0 + - 89 FROM tab2
----
-10
-11
-82

query I rowsort
SELECT DISTINCT - - 59 + + col1 FROM tab1 AS cor0
----
69
72
85

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

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

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL - ( - col2 ) / + col0 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT + 64 * tab1.col0 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 759ce99d9a10bab9dbb85b0716df8ee9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1954
SELECT DISTINCT ( col2 ) DIV - 55 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT ( col2 ) / - 55 AS col2 FROM tab1
----
-1
0

query I rowsort
SELECT ALL - 70 AS col1 FROM tab0
----
-70
-70
-70

query I rowsort
SELECT 49 + - col1 * - 10 AS col2 FROM tab2 AS cor0
----
219
359
639

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

query I rowsort
SELECT - 80 FROM tab1, tab2 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1959
SELECT - col0 DIV - ( + 36 ) + col1 FROM tab1
----
11
15
26

skipif mysql # not compatible
query I rowsort label-1959
SELECT - col0 / - ( + 36 ) + col1 FROM tab1
----
11
15
26

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

query I rowsort
SELECT DISTINCT col0 * 4 AS col2 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT DISTINCT + col2 * - 3 - col0 FROM tab1 cor0
----
-165
-235
-368

skipif mysql # not compatible
query I rowsort
SELECT ALL - - col2 + + CAST ( col2 AS REAL ) * cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - - col1 * col1 AS col0 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT ALL + col2 DIV - col1 - - col1 * col0 FROM tab1 cor0
----
1033
635
76

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + col2 / - col1 - - col1 * col0 FROM tab1 cor0
----
1033
635
76

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + col2 - 93 FROM tab2 AS cor0
----
-55
-66
-67

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

query I rowsort
SELECT DISTINCT + 11 + 22 FROM tab0 AS cor0
----
33

query I rowsort
SELECT ALL + - ( col2 ) * col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT 82 AS col1 FROM tab0 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort
SELECT + col1 + - CAST ( + col2 AS REAL ) FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + tab2.col1 * + 99 * col0 FROM tab2
----
132957
21483
455598

query I rowsort
SELECT - col1 + ( 42 ) * cor0.col0 * + cor0.col0 FROM tab1 cor0
----
172022
268787
352

query I rowsort
SELECT + col2 - + col2 * - col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT ( + cor1.col1 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

query I rowsort
SELECT - 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT - 70 * 73 + col2 - - 3 AS col2 FROM tab2 cor0
----
-5069
-5080
-5081

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

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

query I rowsort
SELECT - tab1.col1 + - 81 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 2b058a8f20df5e3476e02cabc09611de

query I rowsort
SELECT col1 * + col0 * - 94 FROM tab1
----
-60160
-7332
-97760

query I rowsort
SELECT col1 * - ( - 86 * - col1 ) FROM tab2
----
-24854
-299366
-82646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col2 FROM tab2
----
96
96
96

query I rowsort
SELECT + col0 * + col2 + tab0.col0 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT - ( - 0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 11 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + ( + 76 ) * + cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cbbba195e4f5791094f7914ae7af8677

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

query I rowsort
SELECT ALL + 53 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT + col1 DIV col1 + + 1 AS col1 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1993
SELECT + col1 / col1 + + 1 AS col1 FROM tab0
----
2
2
2

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

query I rowsort
SELECT + ( col2 ) + col0 AS col1 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + cor0.col2 + 15 * + col0 col2 FROM tab2 cor0
----
1274
1302
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 95 * + col1 col1 FROM tab2 AS cor0
----
27455
330695
91295

query I rowsort
SELECT + + col1 * - col0 * + 83 AS col1 FROM tab0 AS cor0
----
-171312
-281785
-672217

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

query I rowsort
SELECT DISTINCT + + col2 - - col1 * + col1 * col0 AS col1 FROM tab0 AS cor0
----
177537
329316
737091

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2002
SELECT DISTINCT + - col2 + CAST( col0 AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
-25
-3
17

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT + - col2 + CAST ( col0 AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ALL + + col0 + - col2 * + 53 FROM tab2 cor0
----
-1300
-1424
-1935

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

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

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

query I rowsort
SELECT - col1 * + 66 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT DISTINCT + 69 * col1 + col0 FROM tab1
----
1797
754
977

query I rowsort
SELECT 55 + + 88 + - col2 AS col2 FROM tab2 AS cor0
----
105
116
117

query I rowsort
SELECT + ( 29 ) * cor0.col1 AS col2 FROM tab0 cor0
----
2494
2639
2813

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT 82 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-2011
SELECT 82 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * + cor0.col1 + - col0 + 61 col0 FROM tab2 AS cor0
----
1387
2520
713

query I rowsort
SELECT ( - col1 ) + - col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT - ( - col1 ) + - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT ALL col1 * + col0 + - 56 AS col1 FROM tab1 AS cor0
----
22
584
984

query I rowsort
SELECT ALL + col0 * col1 - - ( 46 * + col2 ) FROM tab0 AS cor0
----
11871
3441
3582

query I rowsort
SELECT + col0 * - col2 + 69 AS col2 FROM tab0 AS cor0
----
-7229
-723
34

query I rowsort
SELECT DISTINCT + - 28 + + cor0.col0 FROM tab2 AS cor0
----
-21
50
51

query I rowsort
SELECT ALL + 74 * col1 AS col1 FROM tab1
----
1924
740
962

query I rowsort
SELECT ALL col2 + + 69 FROM tab2 AS cor0
----
107
95
96

query I rowsort
SELECT col0 * col1 + col2 + + col1 FROM tab1
----
1149
158
707

onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT col1 DIV ( ( + col2 ) * + col1 ) - 56 FROM tab1 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-2022
SELECT col1 / ( ( + col2 ) * + col1 ) - 56 FROM tab1 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ALL col2 + + 31 AS col1 FROM tab0 AS cor0
----
113
32
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col2 * - col1 + col2 col0 FROM tab2 AS cor0
----
-1567
-625
-841

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

query I rowsort
SELECT + col1 + - ( col2 * + col0 ) + ( cor0.col0 ) * + cor0.col2 * 64 FROM tab1 cor0
----
10232
229834
483853

onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT - - col1 DIV - ( - col0 ) + + cor0.col0 + + 58 * + col1 AS col1 FROM tab0 AS cor0
----
5015
5368
5663

skipif mysql # not compatible
query I rowsort label-2027
SELECT - - col1 / - ( - col0 ) + + cor0.col0 + + 58 * + col1 AS col1 FROM tab0 AS cor0
----
5015
5368
5663

query I rowsort
SELECT DISTINCT - col2 * ( - 59 ) FROM tab2 AS cor0
----
1534
1593
2242

query I rowsort
SELECT DISTINCT 35 + - 69 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT ALL col2 + col2 * col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT ( - col1 ) + col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + 60 * - 91 FROM tab2 cor0
----
-5460
-5460
-5460

query I rowsort
SELECT - ( col0 ) * + col1 + - 8 AS col2 FROM tab2 AS cor0
----
-1351
-225
-4610

query I rowsort
SELECT DISTINCT col2 * col1 + + cor0.col0 * col1 FROM tab0 cor0
----
15561
3492
4902

query I rowsort
SELECT ALL - - col0 * - col0 * + col1 + 20 * - col0 * col0 AS col2 FROM tab2 AS cor0
----
-230917
-2499
-480636

query I rowsort
SELECT - col1 * 11 AS col0 FROM tab1
----
-110
-143
-286

query I rowsort
SELECT ( + col1 ) + col0 + col2 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL - col0 + + 72 * - 96 + - col1 * + 60 FROM tab2
----
-10530
-8011
-8779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 * + col2 + ( col1 ) col2 FROM tab0 AS cor0
----
1043
126
2469

query I rowsort
SELECT ALL + ( - cor1.col2 ) FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

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

query I rowsort
SELECT ALL - + cor0.col1 + col2 * + col2 + + 49 FROM tab0 cor0
----
-47
1052
6682

query I rowsort
SELECT + tab1.col2 * cor0.col1 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to e15c44d5a431966f2851e6bf4041b374

query I rowsort
SELECT DISTINCT col0 * 32 FROM tab1 AS cor0
----
2048
2560
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2045
SELECT DISTINCT ( col2 ) DIV 70 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT ( col2 ) / 70 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab2
----
32

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

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

query I rowsort
SELECT ( - col1 + ( + 33 ) ) FROM tab0
----
-53
-58
-64

query I rowsort
SELECT - 77 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT + 62 * 52 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
3224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col1 FROM tab1, tab1 AS cor0
----
64

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

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

query I rowsort
SELECT DISTINCT + cor0.col0 + - ( - col2 ) AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - col1 - + ( + 66 + + col0 ) FROM tab1 AS cor0
----
-140
-159
-95

query I rowsort
SELECT ALL + col2 + - 45 AS col2 FROM tab0
----
-12
-44
37

query I rowsort
SELECT ( - 79 ) + + col1 AS col0 FROM tab1
----
-53
-66
-69

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

query I rowsort
SELECT ( 56 ) - + col2 AS col0 FROM tab1
----
-1
-40
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2061
SELECT + CAST( cor0.col1 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

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

query I rowsort
SELECT - tab0.col0 + + 69 + + col0 AS col2 FROM tab0
----
69
69
69

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

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

query I rowsort
SELECT ALL - - col1 * col2 + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - - col1 + + col0 - col1 * 87 AS col2 FROM tab1 AS cor0
----
-1038
-2233
-796

query I rowsort
SELECT + 95 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

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

query I rowsort
SELECT - + 9 * cor0.col2 FROM tab2 AS cor0
----
-234
-243
-342

query I rowsort
SELECT - - 32 * - col2 + col0 AS col0 FROM tab1 AS cor0
----
-1725
-1760
-2992

query I rowsort
SELECT DISTINCT col1 * + col0 + - 86 AS col1 FROM tab2 AS cor0
----
1257
131
4516

query I rowsort
SELECT DISTINCT + + 64 * cor0.col1 FROM tab2 AS cor0
----
1088
1984
3776

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

query I rowsort
SELECT ALL - 53 * col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - col1 col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL + 53 + col0 AS col2 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT ALL ( - col1 ) * 66 AS col0 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT DISTINCT - + ( + col2 ) * + col1 + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-108
-858
798

query I rowsort
SELECT ALL + - 35 * col0 AS col1 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT + 97 * 95 * col2 AS col0 FROM tab0 AS cor0
----
304095
755630
9215

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

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

query I rowsort
SELECT + 59 * col0 AS col1 FROM tab2 AS cor0
----
413
4602
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 * col0 col0 FROM tab1 AS cor0
----
-262144
-27
-512000

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

query I rowsort
SELECT cor0.col0 * 93 FROM tab2 cor0
----
651
7254
7347

query I rowsort
SELECT + + col0 * + ( + 72 ) FROM tab2 AS cor0
----
504
5616
5688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col1 + 25 + - col1 col1 FROM tab0
----
25
2777
7396

onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT ALL col0 DIV - col0 + CAST( 63 AS SIGNED ) FROM tab1
----
62
62
62

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL col0 / - col0 + CAST ( 63 AS INTEGER ) FROM tab1
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT DISTINCT - + col1 * + col2 + col0 * col1 DIV + CAST( 38 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2784
-7249
-8

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT - + col1 * + col2 + col0 * col1 / + CAST ( 38 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2784
-7249
-8

query I rowsort
SELECT + col2 * - 94 * + col2 FROM tab2 AS cor0
----
-135736
-63544
-68526

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab0, tab0 cor0
----
22

query I rowsort
SELECT ALL + cor0.col1 * col0 + col2 * + col1 + + cor0.col1 * col1 FROM tab1 AS cor0
----
1310
2158
2457

query I rowsort
SELECT ALL 99 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - 38 + - col0 * - col1 FROM tab2 AS cor0
----
1305
179
4564

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

query I rowsort
SELECT DISTINCT + col2 + 5 AS col0 FROM tab2 AS cor0
----
31
32
43

query I rowsort
SELECT DISTINCT + 40 * col0 + - col0 FROM tab1 AS cor0
----
117
2496
3120

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

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 ALL - 87 * col2 * col0 FROM tab0 cor0
----
-3045
-634926
-68904

query I rowsort
SELECT DISTINCT + col2 + 61 AS col2 FROM tab2
----
87
88
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2106
SELECT CAST( - col2 AS SIGNED ) * tab0.col2 - + ( col2 ) FROM tab0
----
-1122
-2
-6806

skipif mysql # not compatible
query I rowsort label-2106
SELECT CAST ( - col2 AS INTEGER ) * tab0.col2 - + ( col2 ) FROM tab0
----
-1122
-2
-6806

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

query I rowsort
SELECT ALL - 96 + 2 + col0 AS col0 FROM tab2 AS cor0
----
-15
-16
-87

query I rowsort
SELECT ( - 12 ) * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT - col0 * + 88 + + cor0.col1 FROM tab1 AS cor0
----
-238
-5622
-7027

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

skipif mysql # not compatible
query I rowsort label-2111
SELECT - 74 / col1 AS col2 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT - 71 * col2 - + cor0.col0 * 2 FROM tab1 cor0
----
-3840
-4175
-6976

query I rowsort
SELECT - col0 * + col0 + col0 * col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
2019
2304
7120

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

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

query I rowsort
SELECT col2 + col0 * col0 FROM tab1 cor0
----
4153
63
6496

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

query I rowsort
SELECT - 6 + - 28 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT 0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - col0 * - 37 * + col1 AS col1 FROM tab1 cor0
----
23680
2886
38480

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

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

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) FROM tab2, tab2 AS cor0, tab0 cor1
----
-17
-31
-59

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

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

query I rowsort
SELECT - - col0 + ( 98 ) AS col2 FROM tab0 AS cor0
----
122
133
187

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2127
SELECT + 65 * + col0 + + CAST( ( col1 ) AS SIGNED ) col0 FROM tab0
----
1646
2372
5876

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2127
SELECT + 65 * + col0 + + CAST ( ( col1 ) AS INTEGER ) col0 FROM tab0
----
1646
2372
5876

query I rowsort
SELECT 27 + - col2 FROM tab1
----
-27
-30
-69

query I rowsort
SELECT ALL + col1 * 26 + col1 AS col0 FROM tab1 AS cor0
----
270
351
702

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

query I rowsort
SELECT DISTINCT + col2 + + 2 + col0 FROM tab2
----
106
119
36

query I rowsort
SELECT col2 + ( 19 ) + col2 FROM tab1
----
127
133
211

query I rowsort
SELECT DISTINCT - col2 + + ( + col2 ) + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col2 * + 58 + 15 + col2 AS col2 FROM tab0 AS cor0
----
-1866
-42
-4659

query I rowsort
SELECT ALL + + col0 * col2 - col1 AS col2 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + cor0.col1 * 27 + - col0 * - col2 + - col2 AS col0 FROM tab1 AS cor0
----
3861
7935
810

query I rowsort
SELECT + cor0.col1 - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83

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

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

query I rowsort
SELECT + col1 + + col0 + + col2 FROM tab2
----
134
163
65

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * col1 col2 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL + - cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT 96 + + 2 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
98

query I rowsort
SELECT DISTINCT + + col0 + - col2 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
35961
36
551457

query I rowsort
SELECT 99 * + col0 AS col0 FROM tab0 AS cor0
----
2376
3465
8811

query I rowsort
SELECT DISTINCT - - col1 * col2 + 65 * + col1 AS col2 FROM tab1 AS cor0
----
1220
2093
3094

query I rowsort
SELECT + col1 * col0 + tab0.col0 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2151
SELECT col2 + + col1 DIV col1 AS col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2151
SELECT col2 + + col1 / col1 AS col1 FROM tab1
----
55
58
97

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

query I rowsort
SELECT ALL col0 * + col1 + tab2.col1 * - col2 AS col1 FROM tab2
----
-620
3068
697

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

query I rowsort
SELECT DISTINCT - - col1 + col1 - 31 * - col0 AS col2 FROM tab1 AS cor0
----
145
2004
2506

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

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

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

query I rowsort
SELECT ALL + 79 * col2 AS col2 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT ALL 10 * col0 + col2 * 79 FROM tab1 AS cor0
----
4296
5143
8384

query I rowsort
SELECT - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + col2 * + col2 + + ( + col2 ) FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - + col1 * col1 + + 72 AS col2 FROM tab1 AS cor0
----
-28
-604
-97

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

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

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

query I rowsort
SELECT - cor0.col2 * ( - col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - col0 + - 45 AS col1 FROM tab0 AS cor0
----
-134
-69
-80

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2170
SELECT cor0.col1 DIV - 8 + cor0.col2 FROM tab2 AS cor0
----
19
24
36

skipif mysql # not compatible
query I rowsort label-2170
SELECT cor0.col1 / - 8 + cor0.col2 FROM tab2 AS cor0
----
19
24
36

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT ALL + col1 DIV 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + col1 / 64 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT 8 FROM tab2, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL - tab1.col2 + - col2 + tab1.col0 AS col1 FROM tab1
----
-105
-112
-50

query I rowsort
SELECT ALL - col1 + 6 * + col2 AS col2 FROM tab2
----
131
211
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 24 * col0 col1 FROM tab2
----
-161
-1794
-1817

query I rowsort
SELECT ALL 95 * - col0 FROM tab1 cor0
----
-285
-6080
-7600

query I rowsort
SELECT DISTINCT 24 * + col0 FROM tab0
----
2136
576
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2180
SELECT DISTINCT + tab2.col1 * col2 DIV col1 AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT + tab2.col1 * col2 / col1 AS col0 FROM tab2
----
26
27
38

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

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

query I rowsort
SELECT - col0 * col1 - col0 FROM tab1
----
-1120
-704
-81

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

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

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

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

query I rowsort
SELECT - - 30 + 13 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT - 33 * - cor0.col2 - + col2 * cor0.col1 FROM tab0 AS cor0
----
-1749
-4756
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT 31 DIV col1 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2189
SELECT 31 / col1 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT 61 * col1 * - col0 AS col0 FROM tab0
----
-125904
-207095
-494039

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

query I rowsort
SELECT + col2 * - col0 + cor0.col0 * col0 FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT + 31 + + col2 FROM tab0 AS cor0
----
113
32
64

query I rowsort
SELECT DISTINCT ( - 2 ) * col1 AS col2 FROM tab2
----
-118
-34
-62

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * tab1.col0 col1 FROM tab1, tab0 cor0
----
9 values hashing to 5b7ab77c4282e0e2c74b780a822f0b5e

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> ( col0 * col2 )
----

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

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

query I rowsort
SELECT col0 + col0 + - col2 FROM tab1 cor0
----
-48
64
71

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col2 + col1 * + col2 col2 FROM tab1 cor0
----
1440
1512
684

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - col0 * col0 )
----

query I rowsort
SELECT ALL col1 + col2 * - tab0.col1 * col1 AS col0 FROM tab0
----
-243982
-678951
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-2205
SELECT col1 * + col2 + + col0 * + col1 DIV col1 AS col0 FROM tab1
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-2205
SELECT col1 * + col2 + + col0 * + col1 / col1 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + col2 * col1 + - col0 + + col2 AS col0 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 / - tab0.col0 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col1 + + col1 AND + col2 + - col2
----

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

query I rowsort
SELECT col2 * col1 * - col2 + - col1 FROM tab0
----
-194
-611975
-93740

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

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

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

query I rowsort
SELECT DISTINCT col1 * - tab0.col0 + - tab0.col1 * col1 + - tab0.col2 FROM tab0
----
-12805
-16462
-9493

query I rowsort
SELECT ALL - col2 + col2 + col2 FROM tab2 WHERE NULL NOT IN ( col0 + col2 )
----

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

query I rowsort
SELECT DISTINCT - col0 * - col1 + col2 + + col2 FROM tab0
----
2130
3397
8263

query I rowsort
SELECT DISTINCT col0 * col1 * tab2.col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ALL + col0 + - col0 * - col1 + col0 * col0 * col0 AS col2 FROM tab0
----
15912
46305
713157

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

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

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

query I rowsort
SELECT - cor0.col0 + col2 * col2 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT ALL col0 + tab2.col1 - - col1 DIV - col1 FROM tab2
----
136
37
95

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL col0 + tab2.col1 - - col1 / - col1 FROM tab2
----
136
37
95

query I rowsort
SELECT ALL col2 + col2 - - tab2.col2 FROM tab2
----
114
78
81

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2226
SELECT - 76 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-2226
SELECT - 76 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
10

query I rowsort
SELECT DISTINCT - - 68 * + 38 + col1 FROM tab1 AS cor0
----
2594
2597
2610

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

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

query I rowsort
SELECT - + ( - 67 ) * - col0 AS col1 FROM tab1 AS cor0
----
-201
-4288
-5360

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( + cor0.col1 AS REAL ) * - col0 * ( cor0.col2 + - col2 * - 4 ) AS col2 FROM tab0 cor0
----
-16975
-3320590
-340560

onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT DISTINCT 40 DIV col0 FROM tab1 AS cor0
----
0
13

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT 40 / col0 FROM tab1 AS cor0
----
0
13

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) + col2 * col1 col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - - 40 + - ( col1 ) * - col1 FROM tab2 AS cor0
----
1001
329
3521

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

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

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

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

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

query I rowsort
SELECT DISTINCT + - col0 * - 32 AS col2 FROM tab1 AS cor0
----
2048
2560
96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2241
SELECT + - ( + col1 ) * + ( + col1 ) - - cor0.col2 DIV 11 FROM tab0 AS cor0
----
-7393
-8274
-9409

skipif mysql # not compatible
query I rowsort label-2241
SELECT + - ( + col1 ) * + ( + col1 ) - - cor0.col2 / 11 FROM tab0 AS cor0
----
-7393
-8274
-9409

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

query I rowsort
SELECT - 29 * - col0 FROM tab2
----
203
2262
2291

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2246
SELECT DISTINCT + col2 + CAST( 24 AS SIGNED ) FROM tab1 AS cor0
----
120
78
81

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT + col2 + CAST ( 24 AS INTEGER ) FROM tab1 AS cor0
----
120
78
81

query I rowsort
SELECT ALL - cor0.col0 * - col2 + 79 FROM tab0 AS cor0
----
114
7377
871

query I rowsort
SELECT ALL - - cor0.col1 - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col2 * 4 + 40 * - col1 * + 31 FROM tab0 cor0
----
-106508
-112512
-120276

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

query I rowsort
SELECT + cor0.col1 + - 32 * - col1 FROM tab1 AS cor0
----
330
429
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT DISTINCT - col0 + 8 DIV + 8 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT - col0 + 8 / + 8 AS col1 FROM tab0 AS cor0
----
-23
-34
-88

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

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

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

query I rowsort
SELECT + - col2 * + col0 + 87 FROM tab0 AS cor0
----
-705
-7211
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( 59 ) col2 FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT + - cor0.col1 * + 50 FROM tab2 AS cor0
----
-1550
-2950
-850

query I rowsort
SELECT + cor0.col2 + - col0 + col1 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT + + col1 * + cor0.col0 + - 42 AS col1 FROM tab0 AS cor0
----
2022
3353
8057

query I rowsort
SELECT - + 59 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-141
-60
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT DISTINCT - col2 * + col0 + + col1 DIV col0 FROM tab0 AS cor0
----
-33
-7297
-789

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - col2 * + col0 + + col1 / col0 FROM tab0 AS cor0
----
-33
-7297
-789

query I rowsort
SELECT col0 * 16 + - col2 + col0 * - ( - col1 ) FROM tab2
----
2569
302
5824

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

skipif mysql # not compatible
query I rowsort label-2264
SELECT + CAST ( NULL AS INTEGER ) * 80 + - cor0.col1 / + 86 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 + col0 col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT 96 - col0 FROM tab1 cor0
----
16
32
93

query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 * - col0 FROM tab2 AS cor0
----
1326
186
4543

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

skipif mysql # not compatible
query I rowsort label-2268
SELECT - - 91 + col0 / + col1 FROM tab0 AS cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 71 * col0 col0 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT + col2 * + 12 + col0 AS col0 FROM tab2 AS cor0
----
331
390
535

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

query I rowsort
SELECT + - col0 * 39 * 97 FROM tab2 cor0
----
-26481
-295074
-298857

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

skipif mysql # not compatible
query I rowsort label-2273
SELECT + 28 / + col0 AS col0 FROM tab2
----
0
0
4

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL col1 * + col2 + - col1 * col0 * + col1 AS col0 FROM tab1
----
-12272
-5830
-624

query I rowsort
SELECT DISTINCT + 32 + - col2 FROM tab1 AS cor0
----
-22
-25
-64

query I rowsort
SELECT - col2 * + ( - tab1.col0 * 62 ) AS col1 FROM tab1
----
10044
226176
476160

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab0, tab2 cor0, tab1, tab1 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT ALL 70 + - col1 AS col0 FROM tab2
----
11
39
53

query I rowsort
SELECT - col2 + cor0.col2 * ( col2 ) * col0 AS col2 FROM tab1 AS cor0
----
207879
737184
8694

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

query I rowsort
SELECT - ( - 86 ) + tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 78e338855e3c276c67f4a59b7950e09a

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

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

query I rowsort
SELECT ALL + col0 * ( - col2 ) * col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT - ( 43 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

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

query I rowsort
SELECT col1 + + ( - 9 ) * col2 FROM tab0 cor0
----
-211
-647
88

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT ALL - ( + col1 ) * col1 DIV - 80 FROM tab0
----
103
117
92

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL - ( + col1 ) * col1 / - 80 FROM tab0
----
103
117
92

query I rowsort
SELECT - 93 + cor0.col0 * col0 AS col1 FROM tab1 cor0
----
-84
4003
6307

query I rowsort
SELECT + col1 * col1 * col1 - col0 AS col0 FROM tab0 AS cor0
----
636032
753482
912638

query I rowsort
SELECT - - cor0.col0 + - 54 AS col2 FROM tab0 cor0
----
-19
-30
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2293
SELECT - CAST( - col0 AS SIGNED ) * col0 - + col1 * + col2 FROM tab1 AS cor0
----
-1395
3526
5152

skipif mysql # not compatible
query I rowsort label-2293
SELECT - CAST ( - col0 AS INTEGER ) * col0 - + col1 * + col2 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT - + ( - col2 ) * - col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2295
SELECT col2 - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2295
SELECT col2 - col1 / col1 AS col1 FROM tab1 AS cor0
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT col0 DIV 15 + col0 FROM tab0
----
25
37
94

skipif mysql # not compatible
query I rowsort label-2296
SELECT col0 / 15 + col0 FROM tab0
----
25
37
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-2297
SELECT DISTINCT col1 DIV col1 - + col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-2297
SELECT DISTINCT col1 / col1 - + col1 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT DISTINCT - col1 - col0 AS col0 FROM tab0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2299
SELECT + CAST( + ( - col2 ) AS SIGNED ) * + col2 * + col1 + col0 FROM tab2
----
-22592
-24469
-39806

skipif mysql # not compatible
query I rowsort label-2299
SELECT + CAST ( + ( - col2 ) AS INTEGER ) * + col2 * + col1 + col0 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT - 30 + - tab2.col0 AS col2 FROM tab2
----
-108
-109
-37

query I rowsort
SELECT ALL + tab0.col2 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL col2 + 50 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1233
1751
4532

query I rowsort
SELECT 26 - + col0 FROM tab1 cor0
----
-38
-54
23

query I rowsort
SELECT DISTINCT + col2 * - col2 + + col1 * - col1 FROM tab0 AS cor0
----
-15005
-8485
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT - + 81 * + col1 - col2 DIV + col0 AS col1 FROM tab0 cor0
----
-6967
-7371
-7857

skipif mysql # not compatible
query I rowsort label-2305
SELECT - + 81 * + col1 - col2 / + col0 AS col1 FROM tab0 cor0
----
-6967
-7371
-7857

query I rowsort
SELECT ALL + col1 * col1 - + col1 FROM tab0 AS cor0
----
7310
8190
9312

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

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

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

query I rowsort
SELECT + 90 - tab0.col2 AS col0 FROM tab0
----
57
8
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT + col2 + - col2 * + tab2.col1 - ( + col1 ) DIV tab2.col1 FROM tab2
----
-1509
-609
-811

skipif mysql # not compatible
query I rowsort label-2311
SELECT + col2 + - col2 * + tab2.col1 - ( + col1 ) / tab2.col1 FROM tab2
----
-1509
-609
-811

query I rowsort
SELECT - + col1 + + col1 * 9 FROM tab0 cor0
----
688
728
776

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

query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT + cor0.col2 * 11 + cor0.col1 DIV - col0 FROM tab2 AS cor0
----
286
293
418

skipif mysql # not compatible
query I rowsort label-2315
SELECT + cor0.col2 * 11 + cor0.col1 / - col0 FROM tab2 AS cor0
----
286
293
418

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

query I rowsort
SELECT ALL col0 * + col0 + col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + col1 + + ( 69 ) AS col0 FROM tab0 AS cor0
----
155
160
166

query I rowsort
SELECT DISTINCT + + 12 * col0 * + col1 - + col2 FROM tab0 AS cor0
----
24735
40739
97106

query I rowsort
SELECT + col0 * + 27 - 4 FROM tab2
----
185
2102
2129

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

query I rowsort
SELECT DISTINCT - + 86 AS col1 FROM tab2 AS cor0
----
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2323
SELECT ALL + col0 DIV cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL + col0 / cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
3
65
80

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

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab1
----
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-2326
SELECT col0 DIV - col0 + 77 * + col1 FROM tab0 cor0
----
6621
7006
7468

skipif mysql # not compatible
query I rowsort label-2326
SELECT col0 / - col0 + 77 * + col1 FROM tab0 cor0
----
6621
7006
7468

query I rowsort
SELECT - + cor0.col0 * ( - 22 * + col2 + - ( col2 ) ) FROM tab0 cor0
----
167854
18216
805

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

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

query I rowsort
SELECT - + col0 + 36 AS col1 FROM tab0 AS cor0
----
-53
1
12

query I rowsort
SELECT ALL - 82 * col1 FROM tab2
----
-1394
-2542
-4838

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

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL - 67 + tab1.col0 / CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col0 ) + - ( - tab0.col0 * col0 ) AS col2 FROM tab0
----
1190
552
7832

query I rowsort
SELECT DISTINCT - col1 + + 38 FROM tab2 AS cor0
----
-21
21
7

query I rowsort
SELECT ALL - + col2 * 93 FROM tab0 AS cor0
----
-3069
-7626
-93

query I rowsort
SELECT DISTINCT + 78 + - col0 AS col2 FROM tab1 AS cor0
----
-2
14
75

query I rowsort
SELECT 29 * - col0 - col1 FROM tab0 AS cor0
----
-1112
-2672
-782

query I rowsort
SELECT DISTINCT 37 + cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1571
683
874

query I rowsort
SELECT ALL - 32 + + col0 FROM tab2 AS cor0
----
-25
46
47

query I rowsort
SELECT ALL 67 * 31 + col1 * ( - ( col2 ) ) AS col2 FROM tab1 cor0
----
1507
673
829

query I rowsort
SELECT 82 * - cor0.col1 + + col2 * - cor0.col2 FROM tab0 cor0
----
-14186
-7955
-8141

onlyif mysql # use DIV operator for integer division
query I rowsort label-2341
SELECT DISTINCT + col1 DIV - col2 AS col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2341
SELECT DISTINCT + col1 / - col2 AS col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT cor0.col1 - col2 AS col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + 66 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
107
118
46

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

query I rowsort
SELECT - col2 * - tab2.col0 + col1 + - col0 AS col0 FROM tab2
----
2009
213
2940

query I rowsort
SELECT DISTINCT + 49 + col1 FROM tab0
----
135
140
146

query I rowsort
SELECT + col2 + cor0.col0 + + col1 * cor0.col1 * 40 AS col0 FROM tab0 AS cor0
----
295897
331411
376396

query I rowsort
SELECT DISTINCT + - 61 * + col0 AS col1 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT col1 * + 22 + + col0 * - col1 FROM tab0 AS cor0
----
-1261
-172
-6097

query I rowsort
SELECT ALL - - ( - 93 ) AS col0 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT - + ( - 62 ) * - cor0.col0 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT ALL - ( col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + 59 + col1 + + col2 FROM tab1
----
126
139
168

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

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

query I rowsort
SELECT + col0 * - 32 FROM tab1
----
-2048
-2560
-96

query I rowsort
SELECT + 55 + col1 - col1 FROM tab0 cor0
----
55
55
55

query I rowsort
SELECT col0 + cor0.col1 * col0 * cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
106214
1553
359060

query I rowsort
SELECT ALL - 73 FROM tab1
----
-73
-73
-73

query I rowsort
SELECT DISTINCT - 95 * + tab0.col1 + + col2 AS col0 FROM tab0
----
-8137
-8563
-9214

onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT - ( 37 ) DIV col0 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2360
SELECT - ( 37 ) / col0 FROM tab0
----
-1
-1
0

query I rowsort
SELECT ALL - col0 + - col0 * + col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT + 59 + col0 AS col0 FROM tab2 AS cor0
----
137
138
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT + - col0 + - col0 DIV - 35 AS col1 FROM tab0 AS cor0
----
-24
-34
-87

skipif mysql # not compatible
query I rowsort label-2363
SELECT + - col0 + - col0 / - 35 AS col1 FROM tab0 AS cor0
----
-24
-34
-87

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT - + col2 DIV - col1 + + col2 AS col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-2365
SELECT - + col2 / - col1 + + col2 AS col1 FROM tab2 AS cor0
----
26
27
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2366
SELECT + + col2 DIV col0 + CAST( - ( col0 ) AS SIGNED ) - + col0 * col1 AS col1 FROM tab2 AS cor0
----
-1422
-221
-4680

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

query I rowsort
SELECT - col2 + + col0 + 3 AS col1 FROM tab0 AS cor0
----
-6
10
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2368
SELECT + col0 + col2 DIV + 27 AS col2 FROM tab1 AS cor0
----
5
66
83

skipif mysql # not compatible
query I rowsort label-2368
SELECT + col0 + col2 / + 27 AS col2 FROM tab1 AS cor0
----
5
66
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT DISTINCT + - cor0.col0 DIV - col2 + + col0 * col0 FROM tab0 AS cor0
----
1260
576
7922

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT + - cor0.col0 / - col2 + + col0 * col0 FROM tab0 AS cor0
----
1260
576
7922

query I rowsort
SELECT ALL cor0.col2 * + cor0.col1 - cor0.col2 * col0 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT DISTINCT col2 * - 8 * col2 + + col2 FROM tab1 AS cor0
----
-23274
-25935
-73632

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

query I rowsort
SELECT ALL 99 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

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

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

query I rowsort
SELECT + + col1 * - 87 FROM tab0 AS cor0
----
-7482
-7917
-8439

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

query I rowsort
SELECT + col2 * col1 + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + - col2 * 11 AS col0 FROM tab2 AS cor0
----
-286
-297
-418

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2381
SELECT + - cor0.col2 + + 78 DIV col0 FROM tab0 AS cor0
----
-30
-82
1

skipif mysql # not compatible
query I rowsort label-2381
SELECT + - cor0.col2 + + 78 / col0 FROM tab0 AS cor0
----
-30
-82
1

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

query I rowsort
SELECT ALL - ( 8 ) * - col0 + 93 * + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-263742
-693254
-8741

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

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

query I rowsort
SELECT ( cor0.col1 ) FROM tab0, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT DISTINCT + 63 + col1 AS col1 FROM tab1 AS cor0
----
73
76
89

query I rowsort
SELECT - ( 79 ) FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

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

query I rowsort
SELECT + 44 FROM tab2, tab0 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT + - 74 * col0 AS col1 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT - - 73 * col0 AS col2 FROM tab0 AS cor0
----
1752
2555
6497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

query I rowsort
SELECT DISTINCT + 95 + - 87 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
8

query I rowsort
SELECT col2 + col1 * 85 FROM tab1 AS cor0
----
1201
2264
907

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2396
SELECT - CAST( + col1 * col1 AS SIGNED ) FROM tab1
----
-100
-169
-676

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

query I rowsort
SELECT DISTINCT - 98 * - tab1.col1 FROM tab1
----
1274
2548
980

query I rowsort
SELECT ALL + 10 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT ALL + 97 * + tab1.col2 DIV - col2 FROM tab1
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL + 97 * + tab1.col2 / - col2 FROM tab1
----
-97
-97
-97

query I rowsort
SELECT 31 + + col0 AS col1 FROM tab1
----
111
34
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2401
SELECT DISTINCT - col0 * CAST( 11 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-77
-858
-869

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT - col0 * CAST ( 11 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT DISTINCT - + col0 + + 14 - + 56 * - col1 FROM tab1 cor0
----
1467
510
662

query I rowsort
SELECT ALL + 33 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT + - col0 + + ( 62 ) AS col2 FROM tab2 AS cor0
----
-16
-17
55

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2407
SELECT - tab0.col1 + - CAST( col0 AS SIGNED ) * col1 * 63 AS col1 FROM tab0
----
-130118
-213982
-510328

skipif mysql # not compatible
query I rowsort label-2407
SELECT - tab0.col1 + - CAST ( col0 AS INTEGER ) * col1 * 63 AS col1 FROM tab0
----
-130118
-213982
-510328

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

query I rowsort
SELECT ALL 88 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + 98 col0 FROM tab1
----
192
192
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col1 FROM tab1 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT ( col1 ) * + 34 + + cor0.col0 * col2 FROM tab1 AS cor0
----
1046
3988
8122

query I rowsort
SELECT 25 * - col0 FROM tab1 AS cor0
----
-1600
-2000
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2414
SELECT DISTINCT - 14 + col2 DIV col0 + + col0 AS col0 FROM tab0 AS cor0
----
11
21
75

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT - 14 + col2 / col0 + + col0 AS col0 FROM tab0 AS cor0
----
11
21
75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * - cor0.col2 + - col1 * cor0.col0 * col0 col1 FROM tab2 AS cor0
----
-109099
-1708
-360984

onlyif mysql # use DIV operator for integer division
query I rowsort label-2418
SELECT DISTINCT col0 * - col1 + col0 DIV - 53 + - col1 DIV 13 FROM tab0 AS cor0
----
-2070
-3402
-8107

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT col0 * - col1 + col0 / - 53 + - col1 / 13 FROM tab0 AS cor0
----
-2070
-3402
-8107

query I rowsort
SELECT + 79 FROM tab2 cor0
----
79
79
79

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

query I rowsort
SELECT DISTINCT 1 + - col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + - col0 - + col0 * + col2 AS col0 FROM tab2 AS cor0
----
-165
-2047
-3064

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT DISTINCT - col1 * 98 DIV col0 + + col2 FROM tab2
----
-407
-48
17

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT - col1 * 98 / col0 + + col2 FROM tab2
----
-407
-48
17

query I rowsort
SELECT ALL - col1 + ( + 72 + + tab0.col1 ) FROM tab0
----
72
72
72

query I rowsort
SELECT DISTINCT + col2 * 16 + col0 AS col1 FROM tab2
----
439
494
687

query I rowsort
SELECT ALL col2 + tab0.col0 * 39 AS col0 FROM tab0
----
1366
3553
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + ( - col2 ) col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 - - 46 AS col2 FROM tab1 AS cor0
----
56
59
72

query I rowsort
SELECT - 90 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2434
SELECT DISTINCT - col1 * - CAST( ( - col2 ) AS SIGNED ) FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT - col1 * - CAST ( ( - col2 ) AS INTEGER ) FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

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

query I rowsort
SELECT ALL + col1 * + 32 AS col0 FROM tab1 AS cor0
----
320
416
832

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

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

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

query I rowsort
SELECT + + ( col1 ) + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT 18 * - col0 AS col2 FROM tab0 AS cor0
----
-1602
-432
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2443
SELECT ALL + col1 DIV 48 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL + col1 / 48 FROM tab1 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT + + 9 AS col1 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT DISTINCT col0 * + 94 * + col1 + + col1 * - col2 FROM tab2
----
125596
19561
431054

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

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

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT + col1 / col0 + col1 AS col2 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT + cor0.col0 + 65 * + col2 * - 26 AS col2 FROM tab1 AS cor0
----
-162160
-91257
-96266

query I rowsort
SELECT + col1 * 59 + - col2 AS col1 FROM tab0 cor0
----
5041
5287
5722

query I rowsort
SELECT DISTINCT 5 + - col1 FROM tab0 AS cor0
----
-81
-86
-92

query I rowsort
SELECT ALL + - 43 * col1 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT - col1 + col2 * col2 * - 8 FROM tab0 cor0
----
-105
-53883
-8798

query I rowsort
SELECT ALL + + 8 + col0 * 92 FROM tab0 AS cor0
----
2216
3228
8196

query I rowsort
SELECT DISTINCT + ( - col0 ) * + 77 AS col1 FROM tab2 cor0
----
-539
-6006
-6083

query I rowsort
SELECT ALL - 52 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL - col2 + + col1 AS col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + - 56 * col0 AS col1 FROM tab0 AS cor0
----
-1344
-1960
-4984

query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 AS col0 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT + 12 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2461
SELECT + 12 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + 75 * - col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT + - 62 AS col0 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT + + cor0.col1 + 78 * col2 AS col0 FROM tab1 AS cor0
----
4238
4456
7501

onlyif mysql # use DIV operator for integer division
query I rowsort label-2467
SELECT DISTINCT col1 - + 84 DIV - col0 FROM tab0 AS cor0
----
89
91
99

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT col1 - + 84 / - col0 FROM tab0 AS cor0
----
89
91
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + ( + ( - cor0.col1 ) ) col2 FROM tab0, tab2 cor0
----
9 values hashing to 4a2f25e7025075a0ce048be425c35957

query I rowsort
SELECT + col2 * - 49 AS col1 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT ALL - - col0 + - ( 80 ) * col1 FROM tab2 AS cor0
----
-1281
-2473
-4642

query I rowsort
SELECT - + col0 + col2 * 47 AS col1 FROM tab2 AS cor0
----
1144
1262
1707

query I rowsort
SELECT - col1 + col1 * + 27 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT + tab0.col2 + col1 * 57 * 24 FROM tab0
----
117681
124570
132697

query I rowsort
SELECT col2 * + 97 FROM tab2
----
2522
2619
3686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2475
SELECT DISTINCT - tab1.col0 + CAST( NULL AS DECIMAL ) * + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT - tab1.col0 + CAST ( NULL AS REAL ) * + col0 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 57 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT DISTINCT - + cor0.col2 + - 67 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1177
-2104
-3979

query I rowsort
SELECT DISTINCT + 84 * 9 AS col0 FROM tab1, tab2 cor0
----
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT ALL + col0 DIV ( 15 ) AS col0 FROM tab2 AS cor0
----
0
5
5

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL + col0 / ( 15 ) AS col0 FROM tab2 AS cor0
----
0
5
5

query I rowsort
SELECT + col1 + + 52 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1378
530
689

query I rowsort
SELECT DISTINCT - 44 * + cor1.col1 AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-3784
-4004
-4268

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT col2 * + 61 FROM tab2
----
1586
1647
2318

query I rowsort
SELECT DISTINCT col2 + tab0.col2 * - col1 AS col2 FROM tab0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col0 FROM tab0
----
97
97
97

query I rowsort
SELECT - 56 + col2 * + 92 FROM tab2
----
2336
2428
3440

query I rowsort
SELECT ALL - + col2 + - cor0.col0 + + cor0.col2 * col0 AS col1 FROM tab1 cor0
----
105
3527
7504

query I rowsort
SELECT - ( + col2 ) * ( - col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + 52 FROM tab2 AS cor0
----
52

query I rowsort
SELECT DISTINCT - + cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + cor1.col1 + - 44 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 242de5425f187203e83571334b099b96

query I rowsort
SELECT - + 37 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-199
-3685
-7717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2493
SELECT + CAST( NULL AS SIGNED ) + - col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT + CAST ( NULL AS INTEGER ) + - col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 12 ) - - cor1.col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
14
15
26

query I rowsort
SELECT - - 84 * col1 AS col2 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT col0 + 58 AS col2 FROM tab1 AS cor0
----
122
138
61

query I rowsort
SELECT cor0.col1 * + col1 + ( col2 ) * 32 FROM tab0 AS cor0
----
10905
8452
9441

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2498
SELECT + - col2 + - CAST( NULL AS SIGNED ) / + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT + - col2 + - CAST ( NULL AS INTEGER ) / + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - 57 * - cor0.col1 FROM tab2 AS cor0
----
1767
3363
969

query I rowsort
SELECT + + ( 56 ) + + col1 FROM tab0 AS cor0
----
142
147
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col1 + cor0.col2 col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT DISTINCT col0 + - ( cor0.col2 * CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT col0 + - ( cor0.col2 * CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + tab2.col0 * 35 FROM tab2
----
245
2730
2765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col1 FROM tab1, tab2 cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT DISTINCT 43 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT - + col0 DIV 79 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2507
SELECT - + col0 / 79 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2508
SELECT col2 DIV 47 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2508
SELECT col2 / 47 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT - + cor0.col2 + + 69 AS col0 FROM tab2 AS cor0
----
31
42
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2510
SELECT DISTINCT + col2 + + 27 DIV col1 AS col0 FROM tab1 AS cor0
----
55
59
98

skipif mysql # not compatible
query I rowsort label-2510
SELECT DISTINCT + col2 + + 27 / col1 AS col0 FROM tab1 AS cor0
----
55
59
98

query I rowsort
SELECT ALL - + 6 + ( + cor0.col2 ) * + ( - 80 ) * - col0 FROM tab0 AS cor0
----
2794
583834
63354

onlyif mysql # use DIV operator for integer division
query I rowsort label-2512
SELECT ALL - - 79 DIV + col0 col1 FROM tab2 AS cor0
----
1
1
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - - 79 / + col0 col1 FROM tab2 AS cor0
----
1
1
11

query I rowsort
SELECT DISTINCT + + col2 + - ( col0 ) FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - - 80 + - col1 FROM tab0 cor0
----
-11
-17
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2515
SELECT - CAST( NULL AS SIGNED ) + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT - CAST ( NULL AS INTEGER ) + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 83 ) AS col0 FROM tab2, tab0 AS cor0
----
-83

query I rowsort
SELECT ALL col2 * - col1 * + col0 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2518
SELECT ALL ( - col1 ) DIV col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL ( - col1 ) / col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT 58 * tab0.col2 - col2 FROM tab0
----
1881
4674
57

query I rowsort
SELECT + 10 * 91 FROM tab1 AS cor0
----
910
910
910

query I rowsort
SELECT ALL - + 84 * - col2 * + col1 FROM tab2 AS cor0
----
128856
54264
70308

query I rowsort
SELECT ALL ( 7 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL - col0 * + col0 - + col2 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT col0 + col0 - + col1 AS col1 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT col0 * - col0 * - 23 FROM tab0
----
13248
182183
28175

query I rowsort
SELECT 58 * col2 FROM tab0
----
1914
4756
58

query I rowsort
SELECT - col2 + col2 * - 52 FROM tab1
----
-2862
-3021
-5088

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2528
SELECT DISTINCT + 27 - col0 * + CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2528
SELECT DISTINCT + 27 - col0 * + CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL

query I rowsort
SELECT + col1 - - col1 AS col2 FROM tab0
----
172
182
194

query I rowsort
SELECT cor0.col2 * 35 - + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to a60874c73d63ee685f6ef2e9a7e4042d

query I rowsort
SELECT col2 * + 41 + col2 AS col1 FROM tab2 AS cor0
----
1092
1134
1596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( 89 ) col1 FROM tab0
----
-56
-7
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2533
SELECT - col2 DIV 69 + col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2533
SELECT - col2 / 69 + col1 FROM tab2
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2534
SELECT + - col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2534
SELECT + - col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 + cor0.col1 * - ( - cor0.col0 * - col0 ) FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT col2 + 83 FROM tab2 cor0
----
109
110
121

onlyif mysql # use DIV operator for integer division
query I rowsort label-2537
SELECT DISTINCT + col2 * - col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT + col2 * - col1 / - col1 AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2538
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2539
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - col1 * + 54 AS col2 FROM tab2 AS cor0
----
-1674
-3186
-918

query I rowsort
SELECT - col2 * ( - col1 ) AS col0 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( - 17 * col0 ) + col2 * 6 + + col0 col0 FROM tab1
----
-10474
-17024
-999

query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 46 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT + - col0 + - col1 * + 37 * + col1 AS col1 FROM tab1 cor0
----
-25015
-3764
-6333

onlyif mysql # use DIV operator for integer division
query I rowsort label-2547
SELECT DISTINCT - - col1 + 73 DIV - 91 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - - col1 + 73 / - 91 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2548
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2548
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT ALL - 92 * 30 DIV col0 + - 46 * col2 * + col2 col2 FROM tab2
----
-31131
-33928
-66458

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL - 92 * 30 / col0 + - 46 * col2 * + col2 col2 FROM tab2
----
-31131
-33928
-66458

query I rowsort
SELECT DISTINCT - + cor0.col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT ALL + cor0.col0 DIV ( - 62 ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL + cor0.col0 / ( - 62 ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f

query I rowsort
SELECT col1 * col0 * - col0 AS col2 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT 13 + col1 FROM tab1
----
23
26
39

query I rowsort
SELECT + col2 + 44 AS col2 FROM tab2
----
70
71
82

query I rowsort
SELECT + col1 * + 9 + col1 FROM tab1
----
100
130
260

query I rowsort
SELECT ALL cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - + cor0.col2 * - col2 * + 70 FROM tab0 AS cor0
----
470680
70
76230

query I rowsort
SELECT + 91 + col2 * + ( - col0 + col1 * - col0 ) FROM tab0 cor0
----
-3339
-671325
-68813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2559
SELECT DISTINCT - - 2 * col2 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT - - 2 * col2 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2560
SELECT + col2 * col1 DIV - col1 AS col2 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2560
SELECT + col2 * col1 / - col1 AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + 61 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT - 98 + - col0 AS col0 FROM tab1 AS cor0
----
-101
-162
-178

query I rowsort
SELECT ALL 42 * cor0.col1 FROM tab2 AS cor0
----
1302
2478
714

query I rowsort
SELECT DISTINCT 2 + col0 FROM tab2 AS cor0
----
80
81
9

query I rowsort
SELECT ALL - ( col1 ) + - 93 * - ( + col0 ) FROM tab2 AS cor0
----
620
7195
7330

query I rowsort
SELECT ALL 41 AS col1 FROM tab1
----
41
41
41

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col1 * col2 + + 85 FROM tab1 AS cor0
----
1333
1489
655

onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT cor0.col2 DIV + ( 4 ) AS col0 FROM tab2 AS cor0
----
6
6
9

skipif mysql # not compatible
query I rowsort label-2569
SELECT cor0.col2 / + ( 4 ) AS col0 FROM tab2 AS cor0
----
6
6
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT + - col2 DIV col0 col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2570
SELECT + - col2 / col0 col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + - col2 * - 88 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT DISTINCT col0 + 41 FROM tab2 AS cor0
----
119
120
48

query I rowsort
SELECT - - col2 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2575
SELECT ALL CAST( NULL AS SIGNED ) * - col2 + + col1 + - cor0.col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 + + col1 + - cor0.col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( 61 ) FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-2577
SELECT - - cor0.col2 * col0 DIV col0 + - col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2577
SELECT - - cor0.col2 * col0 / col0 + - col1 / + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 85 + cor0.col0 * + col0 FROM tab0 AS cor0
----
1310
661
8006

query I rowsort
SELECT - col1 + 60 + col2 * 93 AS col1 FROM tab1 AS cor0
----
5056
5351
8975

query I rowsort
SELECT ALL + 84 * 73 AS col2 FROM tab2 AS cor0
----
6132
6132
6132

query I rowsort
SELECT ALL col2 * - col2 - - col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 * 99 col2 FROM tab0 AS cor0
----
-4158
-4158
-4158

query I rowsort
SELECT DISTINCT + col1 * col1 + 31 FROM tab2
----
320
3512
992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2584
SELECT CAST( NULL AS SIGNED ) + 52 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT CAST ( NULL AS INTEGER ) + 52 + + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 12 + + col0 AS col1 FROM tab0 AS cor0
----
101
36
47

query I rowsort
SELECT + col1 * col1 * - col2 + 77 AS col0 FROM tab0 AS cor0
----
-243991
-678965
-9332

query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT DISTINCT - 95 FROM tab0, tab2 AS cor0, tab1 cor1
----
-95

query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col2 * 54 * + 63 AS col1 FROM tab2
----
129276
88452
91854

query I rowsort
SELECT ( - col0 ) + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2592
SELECT ALL + CAST( NULL AS SIGNED ) + - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL + CAST ( NULL AS INTEGER ) + - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 5 AS col0 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2594
SELECT DISTINCT + - ( 65 ) DIV col1 col1 FROM tab2 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT + - ( 65 ) / col1 col1 FROM tab2 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 * + ( tab1.col0 ) * col2 AS col2 FROM tab1
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2597
SELECT - CAST( NULL AS DECIMAL ) + + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2597
SELECT - CAST ( NULL AS REAL ) + + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + ( 88 ) + + cor0.col0 * col2 FROM tab1 cor0
----
250
3736
7768

query I rowsort
SELECT - col1 * + col0 * + col1 AS col2 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - + ( + 14 ) * col2 FROM tab1 AS cor0
----
-1344
-756
-798

query I rowsort
SELECT ( + 26 ) * col2 * 15 AS col0 FROM tab1 cor0
----
21060
22230
37440

query I rowsort
SELECT ALL tab1.col1 * - col2 - col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT - 60 * - cor0.col1 + + col2 FROM tab1 AS cor0
----
1614
657
876

query I rowsort
SELECT + - col1 * col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT + col1 DIV ( - col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2606
SELECT + col1 / ( - col1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 + 51 AS col0 FROM tab1 AS cor0
----
61
64
77

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab0, tab1 AS cor0
----
-20

query I rowsort
SELECT tab0.col0 + - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b337e71075b2c62e6c77b94cec980fb8

query I rowsort
SELECT DISTINCT + + col0 * + 53 AS col0 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT ALL - cor0.col1 + - ( 79 ) * col2 * + ( col1 ) FROM tab1 AS cor0
----
-110942
-45040
-98605

onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT ALL + - cor0.col0 + - 45 * 30 DIV + col1 AS col1 FROM tab2 AS cor0
----
-100
-158
-50

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL + - cor0.col0 + - 45 * 30 / + col1 AS col1 FROM tab2 AS cor0
----
-100
-158
-50

query I rowsort
SELECT DISTINCT col0 * - 9 * tab2.col0 + col0 AS col1 FROM tab2
----
-434
-54678
-56090

query I rowsort
SELECT DISTINCT - col2 * 65 - + col0 * col2 FROM tab1 AS cor0
----
-13920
-3672
-7353

onlyif mysql # use DIV operator for integer division
query I rowsort label-2615
SELECT cor0.col2 + - ( - col1 ) DIV + col0 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-2615
SELECT cor0.col2 + - ( - col1 ) / + col0 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT ALL + col2 + - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + col0 * + 29 + + 80 FROM tab2 AS cor0
----
2342
2371
283

query I rowsort
SELECT - col1 + + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT col2 + col1 * - col2 + + col2 FROM tab2
----
-1482
-570
-783

query I rowsort
SELECT 92 + - 14 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT + col2 DIV - ( cor0.col0 ) - col2 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-2622
SELECT + col2 / - ( cor0.col0 ) - col2 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT ALL + col2 + + 56 AS col2 FROM tab0 cor0
----
138
57
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT ALL + col1 DIV + 58 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + col1 / + 58 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2625
SELECT DISTINCT col0 - 4 DIV col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT col0 - 4 / col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2626
SELECT DISTINCT - col2 + CAST( NULL AS DECIMAL ) * 60 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT - col2 + CAST ( NULL AS REAL ) * 60 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + 44 AS col1 FROM tab2 AS cor0
----
70
71
82

query I rowsort
SELECT ALL - col2 * - 79 - - col0 FROM tab0 AS cor0
----
114
2631
6567

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT DISTINCT - col1 DIV + 19 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2629
SELECT DISTINCT - col1 / + 19 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL cor0.col0 * col1 + - col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT col0 * 86 AS col2 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT DISTINCT - col2 * 11 + col2 AS col2 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT ALL 80 FROM tab1 cor0
----
80
80
80

query I rowsort
SELECT ALL - + col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col0 ) col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + cor0.col0 + - 16 FROM tab2, tab0 AS cor0
----
9 values hashing to 75531db4db71cd359ed87fa0e09a5e1c

query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT cor0.col2 * ( + col2 ) * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT ALL + + col2 * - 66 + col2 * + 90 + col1 * col1 FROM tab1 AS cor0
----
1468
1972
2473

query I rowsort
SELECT 36 * 97 FROM tab0, tab1 AS cor0
----
9 values hashing to 7fb849544685e2e6a885c4b12160958e

query I rowsort
SELECT col1 * col2 + + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - - col2 + - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT 39 * col1 AS col2 FROM tab2 cor0
----
1209
2301
663

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 - 30 * + 98 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-158682
-166940
-281200

query I rowsort
SELECT + 39 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1382
256
4641

query I rowsort
SELECT ALL + 32 * col0 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * 56 FROM tab1 AS cor0
----
-142
-3574
-4467

query I rowsort
SELECT DISTINCT + - 6 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + 89 - - tab1.col2 AS col2 FROM tab1
----
143
146
185

onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT col2 * col2 + tab2.col0 * col1 + - col0 DIV + tab2.col0 FROM tab2
----
2786
5277
945

skipif mysql # not compatible
query I rowsort label-2652
SELECT col2 * col2 + tab2.col0 * col1 + - col0 / + tab2.col0 FROM tab2
----
2786
5277
945

query I rowsort
SELECT DISTINCT + cor0.col1 * 0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * + col0 - 7 FROM tab2 AS cor0
----
1336
210
4595

onlyif mysql # use DIV operator for integer division
query I rowsort label-2655
SELECT + cor0.col2 DIV - col2 - - 63 FROM tab1 AS cor0
----
62
62
62

skipif mysql # not compatible
query I rowsort label-2655
SELECT + cor0.col2 / - col2 - - 63 FROM tab1 AS cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 57 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d10c55a16d55d5a363430caea75bc93c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2657
SELECT ALL col0 DIV + tab1.col2 - - ( + col0 ) FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL col0 / + tab1.col2 - - ( + col0 ) FROM tab1
----
3
65
80

query I rowsort
SELECT DISTINCT col1 * + col1 * ( - col1 * + col0 ) AS col2 FROM tab2
----
-16019562
-208537
-388127

query I rowsort
SELECT ALL + ( col0 + + col2 ) * col1 FROM tab0
----
15561
3492
4902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2660
SELECT col2 * + tab1.col0 * + 48 + ( col2 + + CAST( col2 AS SIGNED ) ) * col2 FROM tab1
----
13608
181602
387072

skipif mysql # not compatible
query I rowsort label-2660
SELECT col2 * + tab1.col0 * + 48 + ( col2 + + CAST ( col2 AS INTEGER ) ) * col2 FROM tab1
----
13608
181602
387072

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL col0 + - 80 AS col0 FROM tab0 AS cor0
----
-45
-56
9

query I rowsort
SELECT + col1 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) * col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL - col1 * col1 + col0 AS col2 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT ( - 84 ) FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT - col2 * col2 * - col2 + col0 * - col0 FROM tab2
----
11492
19634
48631

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + + col2 col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT 18 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ( + col1 * + tab1.col1 + + ( + ( col0 ) ) ) FROM tab1
----
164
249
679

query I rowsort
SELECT + col1 * + col1 + + col2 AS col0 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT + col1 + + col1 * 71 * + col0 AS col2 FROM tab0 AS cor0
----
146630
241142
575120

query I rowsort
SELECT DISTINCT ( 0 * - col1 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL ( + ( - col1 ) * col1 ) AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL ( - col2 ) * + col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 60 + 8 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab2, tab1 AS cor0
----
-47

query I rowsort
SELECT ALL col2 + col0 * - ( - col2 * col1 ) + 19 AS col1 FROM tab1
----
36556
4285
99955

query I rowsort
SELECT ALL - + col0 + + col0 * col1 + col1 FROM tab0 cor0
----
2126
3457
8101

query I rowsort
SELECT ALL + col2 + col0 * 74 AS col2 FROM tab2 AS cor0
----
545
5798
5884

query I rowsort
SELECT col1 + ( - col2 ) * col1 * ( - col1 * col1 ) FROM tab2 AS cor0
----
186711
5339913
804388

query I rowsort
SELECT ALL - 59 * col2 * - col0 + col2 * - col1 FROM tab2
----
10314
118118
176472

query I rowsort
SELECT ALL cor0.col1 + 82 FROM tab0, tab2 AS cor0
----
9 values hashing to 5991c127b9971bf727bb5e6df54863e2

query I rowsort
SELECT ALL 20 + tab1.col0 AS col1 FROM tab1
----
100
23
84

query I rowsort
SELECT DISTINCT + col0 + + tab1.col2 AS col0 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2689
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-2689
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT col0 * + ( - 83 ) + + col0 FROM tab2
----
-574
-6396
-6478

query I rowsort
SELECT + + cor0.col0 + + ( col0 ) AS col1 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 + ( - col0 ) * 36 col0 FROM tab1 AS cor0
----
1344
4800
54

query I rowsort
SELECT cor0.col0 * cor0.col0 + cor0.col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL col0 * col0 * - 66 FROM tab2 AS cor0
----
-3234
-401544
-411906

query I rowsort
SELECT DISTINCT - col1 * - 17 + - cor0.col0 FROM tab2 AS cor0
----
210
520
925

onlyif mysql # use DIV operator for integer division
query I rowsort label-2696
SELECT DISTINCT + - col0 + col2 DIV + col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT + - col0 + col2 / + col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT - - col0 * - col0 * col2 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT cor0.col0 * - col2 + cor0.col1 * + col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT DISTINCT - - col0 * col0 + 19 AS col1 FROM tab1 AS cor0
----
28
4115
6419

onlyif mysql # use DIV operator for integer division
query I rowsort label-2700
SELECT + col0 DIV + col2 col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2700
SELECT + col0 / + col2 col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT col1 + 45 * 79 FROM tab2 AS cor0
----
3572
3586
3614

query I rowsort
SELECT - col0 * 69 FROM tab1
----
-207
-4416
-5520

query I rowsort
SELECT col0 * 51 AS col2 FROM tab1
----
153
3264
4080

query I rowsort
SELECT col0 * + 77 AS col1 FROM tab1
----
231
4928
6160

query I rowsort
SELECT + 87 * 88 + - cor0.col1 * col2 FROM tab1 AS cor0
----
6252
6408
7086

query I rowsort
SELECT 42 + + 98 FROM tab2 AS cor0
----
140
140
140

query I rowsort
SELECT + + ( - col0 ) * col0 + col1 + col1 FROM tab1 AS cor0
----
-4076
-6374
43

query I rowsort
SELECT - + 8 * - col2 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-3640
-5632
423

onlyif mysql # use DIV operator for integer division
query I rowsort label-2709
SELECT + - col0 DIV + 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2709
SELECT + - col0 / + 83 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 73 * 79 AS col0 FROM tab2 AS cor0
----
5767
5767
5767

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT DISTINCT - + col2 DIV col1 + - ( + col2 ) FROM tab1 cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT - + col2 / col1 + - ( + col2 ) FROM tab1 cor0
----
-103
-56
-62

query I rowsort
SELECT ALL - col1 + + cor0.col1 * + col2 - - col2 FROM tab1 AS cor0
----
1331
1432
617

query I rowsort
SELECT ALL - - col1 * + col1 + - col2 * cor0.col1 - col0 FROM tab2 AS cor0
----
-436
117
1869

query I rowsort
SELECT - - col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT ( + col2 ) DIV col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2715
SELECT ( + col2 ) / col0 AS col2 FROM tab1
----
0
1
18

query I rowsort
SELECT + 84 * + cor0.col2 * - ( 2 ) AS col2 FROM tab1 cor0
----
-16128
-9072
-9576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + - 78 + + col2 AS col2 FROM tab1 AS cor0
----
-21
-24
18

query I rowsort
SELECT ALL cor0.col1 - col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2720
SELECT DISTINCT + 80 DIV col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT + 80 / col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT ALL + + col0 * - col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + col1 * - 76 FROM tab2 cor0
----
-1292
-2356
-4484

query I rowsort
SELECT + col0 * col2 + + cor0.col2 AS col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT - 79 + - col2 * - 87 AS col0 FROM tab0 AS cor0
----
2792
7055
8

query I rowsort
SELECT ALL - + col2 + + cor0.col0 AS col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - + 77 + - cor0.col0 FROM tab1 AS cor0
----
-141
-157
-80

query I rowsort
SELECT + 23 + + col0 FROM tab1 AS cor0
----
103
26
87

query I rowsort
SELECT + col2 * cor0.col0 + 82 FROM tab1 AS cor0
----
244
3730
7762

query I rowsort
SELECT - + col2 + col1 * - col2 + 74 * col1 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-100066
-16922
-342108

query I rowsort
SELECT ALL + 30 * - 14 AS col0 FROM tab0
----
-420
-420
-420

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 * col0 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT ( col1 * tab1.col0 ) AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT col0 * col2 + + 15 FROM tab2
----
204
2043
3017

query I rowsort
SELECT col1 * col0 * 74 + col2 FROM tab0 AS cor0
----
152769
251231
599408

query I rowsort
SELECT ALL 14 - 52 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2738
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab2, tab2 AS cor0
----
97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb

query I rowsort
SELECT + col2 - + ( + 55 + col0 ) AS col2 FROM tab0
----
-46
-62
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * 98 col2 FROM tab2, tab1 AS cor0
----
686
7644
7742

query I rowsort
SELECT cor1.col2 FROM tab1, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT - col1 - + col2 * col2 FROM tab2
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT + col0 - 53 FROM tab0
----
-18
-29
36

query I rowsort
SELECT + col1 - 36 AS col2 FROM tab2 AS cor0
----
-19
-5
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT + col1 * + col1 - - col0 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT ( + col2 ) * cor0.col2 + - 92 * - cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
3744
380081
598016

query I rowsort
SELECT ALL col0 * + col0 + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - + 70 + col0 * col2 FROM tab0 cor0
----
-35
722
7228

query I rowsort
SELECT ALL + col1 * 69 FROM tab0 AS cor0
----
5934
6279
6693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT DISTINCT - - col0 DIV - 65 + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7679

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT - - col0 / - 65 + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7679

query I rowsort
SELECT ALL 60 * + col1 FROM tab1 AS cor0
----
1560
600
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT ALL + col2 + col2 DIV + cor0.col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + col2 + col2 / + cor0.col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT - col1 * + col1 + 84 * 91 FROM tab2 AS cor0
----
4163
6683
7355

query I rowsort
SELECT ALL + col0 * col2 - + 13 AS col1 FROM tab2 AS cor0
----
176
2015
2989

query I rowsort
SELECT ALL - + cor0.col2 * - col1 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - col2 + col2 * - 33 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT + col1 + ( col2 ) * + col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL 77 * cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4e52df6a5ae2d813759c6c942d529c3

query I rowsort
SELECT ALL cor0.col1 * - col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - + col2 * 5 AS col1 FROM tab0 cor0
----
-165
-410
-5

query I rowsort
SELECT ALL + col1 * - cor0.col0 + + col1 * - col1 FROM tab1 AS cor0
----
-1209
-740
-754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2765
SELECT ALL col1 * - CAST( NULL AS SIGNED ) - + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) - + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 cor1, tab1, tab1 cor2
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2767
SELECT col0 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2767
SELECT col0 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 70 + col1 FROM tab1 AS cor0
----
80
83
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT ALL ( col0 ) DIV col0 + 3 AS col2 FROM tab1 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL ( col0 ) / col0 + 3 AS col2 FROM tab1 cor0
----
4
4
4

query I rowsort
SELECT ALL + ( 87 ) * + col1 AS col0 FROM tab2 AS cor0
----
1479
2697
5133

query I rowsort
SELECT ALL ( - cor0.col1 ) + + col2 AS col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - ( + col0 ) + cor0.col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * col1 col0 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT ALL - 65 * - col1 AS col1 FROM tab1 cor0
----
1690
650
845

query I rowsort
SELECT DISTINCT + + col2 + - col1 + + col0 AS col0 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL - col2 * col0 * + col2 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-207879
-737184
-8694

query I rowsort
SELECT DISTINCT + col1 * + 36 AS col2 FROM tab1
----
360
468
936

query I rowsort
SELECT ALL + - ( cor0.col1 ) - col1 * + col1 * col2 FROM tab2 AS cor0
----
-10999
-25978
-90565

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 DISTINCT - col1 * - col1 * + ( cor0.col0 ) AS col1 FROM tab0 cor0
----
177504
329315
737009

query I rowsort
SELECT ALL col2 + col2 * 94 AS col1 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT DISTINCT - 57 + - col0 + ( + 54 ) AS col0 FROM tab2 AS cor0
----
-10
-81
-82

query I rowsort
SELECT ALL + 69 * col2 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT DISTINCT + - 58 + col0 FROM tab0 cor0
----
-23
-34
31

query I rowsort
SELECT col2 + 80 * + col0 FROM tab2 AS cor0
----
587
6266
6358

onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT - col1 * - col1 + 7 DIV + col1 + + 23 FROM tab0 AS cor0
----
7419
8304
9432

skipif mysql # not compatible
query I rowsort label-2786
SELECT - col1 * - col1 + 7 / + col1 + + 23 FROM tab0 AS cor0
----
7419
8304
9432

onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT ALL col2 DIV ( + ( col0 ) ) + + cor0.col0 * - col2 + col0 FROM tab2 AS cor0
----
-179
-1950
-2923

skipif mysql # not compatible
query I rowsort label-2787
SELECT ALL col2 / ( + ( col0 ) ) + + cor0.col0 * - col2 + col0 FROM tab2 AS cor0
----
-179
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT + col0 + - col0 + + col0 DIV - col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT + col0 + - col0 + + col0 / - col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT + - col2 + + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL ( - cor0.col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL ( + cor0.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - ( 4 ) * col0 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT 24 * + col0 - - cor0.col0 * - 88 FROM tab2 AS cor0
----
-448
-4992
-5056

query I rowsort
SELECT ALL + 60 + cor0.col1 - col1 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2795
SELECT ALL - col1 * + col0 - - col0 DIV + col1 FROM tab1 AS cor0
----
-1034
-634
-78

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL - col1 * + col0 - - col0 / + col1 FROM tab1 AS cor0
----
-1034
-634
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2796
SELECT + CAST( col2 AS SIGNED ) 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-2796
SELECT + CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 70 - col2 FROM tab2
----
32
43
44

query I rowsort
SELECT + col0 * cor0.col0 + 72 AS col2 FROM tab2 cor0
----
121
6156
6313

onlyif mysql # use DIV operator for integer division
query I rowsort label-2799
SELECT DISTINCT ( ( col2 ) ) DIV + col2 + - ( + col0 ) FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT ( ( col2 ) ) / + col2 + - ( + col0 ) FROM tab1
----
-2
-63
-79

query I rowsort
SELECT + col2 + - col2 + col0 * col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + + 37 - - col1 AS col2 FROM tab0 cor0
----
123
128
134

query I rowsort
SELECT - col1 + col1 * - 54 * + col0 FROM tab2 AS cor0
----
-11749
-248567
-72539

query I rowsort
SELECT DISTINCT col0 + + col2 * + col0 * + ( tab0.col0 ) AS col0 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT 60 + 34 AS col0 FROM tab0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( - col2 ) ) col0 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT CAST( col1 AS SIGNED ) DIV col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2806
SELECT CAST ( col1 AS INTEGER ) / col0 FROM tab0
----
1
2
3

query I rowsort
SELECT + + 87 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT + ( col2 ) * ( - 25 ) FROM tab1 AS cor0
----
-1350
-1425
-2400

query I rowsort
SELECT - + 9 - + col2 AS col2 FROM tab0 AS cor0
----
-10
-42
-91

query I rowsort
SELECT 42 AS col1 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT + col2 * - col1 * tab0.col1 AS col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL + col2 * - col1 * 99 FROM tab1
----
-123552
-138996
-56430

query I rowsort
SELECT DISTINCT + ( col2 + 42 ) * tab0.col2 FROM tab0
----
10168
2475
43

query I rowsort
SELECT 56 * col0 AS col2 FROM tab0
----
1344
1960
4984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * col0 col1 FROM tab2
----
-217
-2418
-2449

query I rowsort
SELECT + 67 * - col1 FROM tab1
----
-1742
-670
-871

query I rowsort
SELECT 25 - col2 FROM tab0
----
-57
-8
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2818
SELECT DISTINCT tab1.col0 DIV + ( col0 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2818
SELECT DISTINCT tab1.col0 / + ( col0 ) FROM tab1
----
1

query I rowsort
SELECT 2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # use DIV operator for integer division
query I rowsort label-2820
SELECT DISTINCT + ( 4 ) DIV col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT + ( 4 ) / col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT + col2 DIV - 18 FROM tab1 AS cor0
----
-3
-3
-5

skipif mysql # not compatible
query I rowsort label-2821
SELECT + col2 / - 18 FROM tab1 AS cor0
----
-3
-3
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2822
SELECT - 50 DIV - col1 FROM tab1 cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-2822
SELECT - 50 / - col1 FROM tab1 cor0
----
1
3
5

query I rowsort
SELECT col2 - + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 - 31 * + col2 AS col0 FROM tab0
----
-2451
-937
66

query I rowsort
SELECT col2 + tab2.col0 - col0 * - col2 FROM tab2
----
2132
223
3119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col2 col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT col0 - - 63 * col1 AS col0 FROM tab0
----
5442
5822
6146

query I rowsort
SELECT DISTINCT - col0 * col1 - col0 AS col1 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT col1 * ( col0 ) - - col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT + tab2.col0 * ( col1 ) + - tab2.col0 * col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT DISTINCT + cor0.col0 - + ( - col1 + col1 ) DIV col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + cor0.col0 - + ( - col1 + col1 ) / col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * - 11 + + cor0.col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-81
-848
-891

query I rowsort
SELECT + + col2 * ( + col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL ( cor0.col1 ) * col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + 91 * - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-664
-7124
-7227

query I rowsort
SELECT 70 + + col2 FROM tab0 AS cor0
----
103
152
71

query I rowsort
SELECT DISTINCT + + ( col1 ) * - col0 + + 63 AS col1 FROM tab2 cor0
----
-1280
-154
-4539

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - + 55 FROM tab2 AS cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col0 ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - + col1 - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT - + col1 + + 3 FROM tab0 AS cor0
----
-83
-88
-94

query I rowsort
SELECT + 40 * - 66 AS col0 FROM tab1 AS cor0
----
-2640
-2640
-2640

query I rowsort
SELECT ALL + + col1 - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col2 - + tab1.col0 AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT - col1 - + 85 FROM tab0
----
-171
-176
-182

query I rowsort
SELECT + col0 * + 22 AS col2 FROM tab2
----
154
1716
1738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2848
SELECT DISTINCT + CAST( + ( col2 ) AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT + CAST ( + ( col2 ) AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - 26 * col2 AS col1 FROM tab2 AS cor0
----
-676
-702
-988

query I rowsort
SELECT col1 + col2 * + 37 FROM tab1 AS cor0
----
2024
2119
3565

query I rowsort
SELECT DISTINCT 68 + col0 FROM tab1 AS cor0
----
132
148
71

query I rowsort
SELECT ALL + ( col1 ) * + col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT + - cor0.col1 + - col2 + + cor0.col1 AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL 7 - col1 FROM tab1 AS cor0
----
-19
-3
-6

query I rowsort
SELECT ALL - col1 * col2 - - cor0.col0 * + col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT ALL - col2 + - 40 FROM tab2 AS cor0
----
-66
-67
-78

query I rowsort
SELECT + col1 * - ( + cor0.col2 ) + col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT ALL col2 DIV - cor0.col2 + col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL col2 / - cor0.col2 + col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT - col0 + + ( + col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * col0 * - 83 FROM tab1 AS cor0
----
13446
302784
637440

onlyif mysql # use DIV operator for integer division
query I rowsort label-2862
SELECT col2 DIV - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2862
SELECT col2 / - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - col1 * cor0.col1 * col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL + - col2 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + col0 * 39 * + col0 AS col1 FROM tab0 AS cor0
----
22464
308919
47775

query I rowsort
SELECT ALL - + col2 * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + - cor0.col2 * - 99 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT col2 + tab1.col1 * - ( col2 ) * col2 FROM tab1
----
-119712
-32433
-75762

query I rowsort
SELECT ALL + col2 * - col2 * + col2 AS col1 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT DISTINCT + col2 * - ( + 21 ) FROM tab1 AS cor0
----
-1134
-1197
-2016

query I rowsort
SELECT DISTINCT col0 * 83 AS col2 FROM tab2 cor0
----
581
6474
6557

query I rowsort
SELECT - + col2 * - 50 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT - cor0.col1 + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 * - 68 FROM tab1 AS cor0
----
-1930
-4328
-8564

query I rowsort
SELECT + 60 * + cor0.col0 AS col1 FROM tab2, tab0 cor0, tab0, tab0 AS cor1
----
81 values hashing to 220a65714059f9c9b096eb99cb6f8ab8

query I rowsort
SELECT 54 * + col2 + col1 * col1 AS col2 FROM tab1
----
3178
3592
5353

onlyif mysql # use DIV operator for integer division
query I rowsort label-2877
SELECT - col1 DIV + 96 - - col0 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2877
SELECT - col1 / + 96 - - col0 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - 60 - + col0 col2 FROM tab1 AS cor0
----
3237
3356
5680

query I rowsort
SELECT col1 + 56 * - col0 FROM tab0 AS cor0
----
-1258
-1863
-4893

query I rowsort
SELECT DISTINCT 0 + - col1 AS col2 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 + ( + col2 ) + - col2 col2 FROM tab2
----
26
26
26

query I rowsort
SELECT ALL + - 3 * - col0 FROM tab1 AS cor0
----
192
240
9

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 + ( - 53 ) AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * col2 col2 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT + - col1 * + col0 + col0 * 92 FROM tab0 AS cor0
----
-175
144
89

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT DISTINCT - col0 DIV col0 + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT - col0 / col0 + col0 FROM tab2 AS cor0
----
6
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT DISTINCT - + ( + col2 ) DIV col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT - + ( + col2 ) / col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - 0 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT tab0.col0 * + col2 * tab0.col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT col0 / + col2 FROM tab2 WHERE - col2 + col0 = ( NULL )
----

query I rowsort
SELECT ALL col2 * - col1 * col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col0 - col1 FROM tab0 WHERE NULL NOT IN ( - col0 )
----

query I rowsort
SELECT ALL col2 * - col0 * col0 FROM tab1
----
-233472
-486
-614400

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT IN ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT col2 * - col1 + + col0 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT col2 * col0 + - col1 * col1 + col2 * - col1 FROM tab0 WHERE NOT ( + col1 ) NOT IN ( + col1 )
----
-8445
-9442
-9471

query I rowsort
SELECT col2 * + col0 - - col0 AS col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT col2 * col1 * + col2 AS col1 FROM tab0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + tab2.col2 * tab2.col1 col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT - tab0.col2 * col1 AS col0 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT + 79 + col2 DIV + col2 FROM tab0 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-2904
SELECT + 79 + col2 / + col2 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT ALL - 1 + + cor0.col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT DISTINCT 53 + - col0 AS col0 FROM tab0 AS cor0
----
-36
18
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2907
SELECT ALL - - 56 + col2 * - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL - - 56 + col2 * - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab1
----
85
85
85

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT IN ( col2 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 IN ( col0 * - tab2.col1 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + + col0 col1 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL tab1.col2 * col2 + col2 * - col0 AS col2 FROM tab1
----
-399
1536
2754

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT ( NULL ) < + col2
----

query I rowsort
SELECT DISTINCT col0 * - col1 + + tab0.col1 AS col2 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT col2 * col0 - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col2 * + col1 + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL - cor0.col1 + + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1027
52
630

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col0 + + tab1.col1 )
----

query I rowsort
SELECT DISTINCT col0 + col0 * + col1 AS col1 FROM tab1
----
1120
704
81

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT BETWEEN ( col2 ) AND ( NULL )
----

query I rowsort
SELECT ALL - col2 + + col0 * - col1 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT + col1 * col0 + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT - col0 * + col0 - - col0 * + tab2.col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( col2 ) IN ( tab0.col0 * - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT - tab0.col0 + + col0 DIV + col2 FROM tab0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-2928
SELECT - tab0.col0 + + col0 / + col2 FROM tab0
----
-24
-88
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2929
SELECT DISTINCT col2 DIV + col2 + - col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT col2 / + col2 + - col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT ALL + col0 * + col0 AS col0 FROM tab1 WHERE col1 BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * + tab1.col0 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL tab1.col1 + col2 * col0 AS col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + col1 * col1 + tab0.col2 + col0 * col1 FROM tab0
----
12805
16462
9493

query I rowsort
SELECT + + col2 * - 73 + col1 AS col1 FROM tab2 AS cor0
----
-1839
-1940
-2757

query I rowsort
SELECT 13 * col0 * - col0 FROM tab1 cor0
----
-117
-53248
-83200

query I rowsort
SELECT + + col0 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2937
SELECT - cor1.col0 DIV 9 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 24cbc1a915a671839b756dcd863c72f6

skipif mysql # not compatible
query I rowsort label-2937
SELECT - cor1.col0 / 9 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 24cbc1a915a671839b756dcd863c72f6

query I rowsort
SELECT + col1 * - col0 - - col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - ( col2 ) * - ( cor0.col1 ) + + cor0.col0 + - cor0.col0 * - ( col1 ) * col2 FROM tab2 AS cor0
----
121264
51759
6703

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 ALL + + 88 col1 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2942
SELECT ( - tab1.col0 + + CAST( + 55 AS SIGNED ) ) FROM tab1, tab1 AS cor0
----
9 values hashing to a54ecc6372d0e0f01d6c2e7433910840

skipif mysql # not compatible
query I rowsort label-2942
SELECT ( - tab1.col0 + + CAST ( + 55 AS INTEGER ) ) FROM tab1, tab1 AS cor0
----
9 values hashing to a54ecc6372d0e0f01d6c2e7433910840

query I rowsort
SELECT + + col0 + - col2 * - ( + col2 ) FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT ( tab0.col0 ) AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + + cor0.col2 + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col2 * - 84 AS col0 FROM tab1 AS cor0
----
-4536
-4788
-8064

onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT - col1 * col2 DIV ( col1 ) AS col0 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2947
SELECT - col1 * col2 / ( col1 ) AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - - col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 57 AS col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT ALL + ( + 23 ) FROM tab2
----
23
23
23

query I rowsort
SELECT ALL ( - col0 + col2 ) * - col0 FROM tab2
----
-140
3239
4056

query I rowsort
SELECT - - tab1.col2 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + ( + tab0.col1 ) * - col1 + col1 * - col1 AS col1 FROM tab0
----
-14792
-16562
-18818

query I rowsort
SELECT ALL + ( tab0.col2 + + col0 ) AS col2 FROM tab0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2956
SELECT CAST( NULL AS SIGNED ) * + 14 + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT CAST ( NULL AS INTEGER ) * + 14 + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL 92 * + col1 FROM tab0 AS cor0
----
7912
8372
8924

query I rowsort
SELECT ALL + 92 * col2 AS col1 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT - - col0 * - cor0.col2 + + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT - - col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 * col0 + + col2 * cor0.col0 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT ( col2 ) * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 44 + - col0 AS col2 FROM tab0 AS cor0
----
-45
20
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 + col2 col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col1 * col1 col0 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT + 48 * col2 AS col0 FROM tab2 cor0
----
1248
1296
1824

query I rowsort
SELECT - 88 * col0 AS col2 FROM tab1 cor0
----
-264
-5632
-7040

query I rowsort
SELECT DISTINCT + 95 + col0 FROM tab0 cor0
----
119
130
184

onlyif mysql # use DIV operator for integer division
query I rowsort label-2971
SELECT - col0 * + CAST( 93 AS SIGNED ) + col0 DIV - col1 FROM tab1 AS cor0
----
-279
-5958
-7446

skipif mysql # not compatible
query I rowsort label-2971
SELECT - col0 * + CAST ( 93 AS INTEGER ) + col0 / - col1 FROM tab1 AS cor0
----
-279
-5958
-7446

query I rowsort
SELECT - - col2 * 23 + - col2 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT - - col2 * 34 FROM tab2 AS cor0
----
1292
884
918

query I rowsort
SELECT + 57 FROM tab2, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + col0 - ( - col1 * col0 ) AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL + - col0 * 2 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT ALL col1 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - + col0 * cor0.col0 * + col1 AS col1 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT col2 * col2 + cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - col0 * col1 + 73 AS col0 FROM tab2 AS cor0
----
-1270
-144
-4529

query I rowsort
SELECT - col1 + + ( col2 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - - col1 + 85 FROM tab1 AS cor0
----
111
95
98

query I rowsort
SELECT ALL - + ( + col1 ) + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col0 AS REAL ) + - col1 AS col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + + ( 74 ) + + col1 FROM tab2 AS cor0
----
105
133
91

query I rowsort
SELECT + + col0 + + 36 FROM tab2 AS cor0
----
114
115
43

query I rowsort
SELECT DISTINCT + 79 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2988
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 + - col1 * + cor0.col1 + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 + - col1 * + cor0.col1 + - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 20 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL + col1 + cor0.col0 - - cor0.col1 * + col2 FROM tab1 AS cor0
----
1341
1433
644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + col1 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2992
SELECT col2 + + cor0.col2 DIV + col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2992
SELECT col2 + + cor0.col2 / + col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 + tab2.col1 + + col1 AS col2 FROM tab2
----
144
72
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT - col2 DIV col1 + col0 * tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2994
SELECT - col2 / col1 + col0 * tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + - col0 * col2 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1352
-1558
540

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT - col2 DIV - col2 + - col0 AS col0 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2996
SELECT - col2 / - col2 + - col0 AS col0 FROM tab1
----
-2
-63
-79

query I rowsort
SELECT col2 * - col0 + - tab2.col1 * + col0 AS col2 FROM tab2
----
-406
-4345
-6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2998
SELECT - + col0 DIV cor0.col2 + col1 col0 FROM tab1 cor0
----
13
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2998
SELECT - + col0 / cor0.col2 + col1 col0 FROM tab1 cor0
----
13
26
9

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col2 * - col1 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT 40 + col1 - + col0 * + col0 AS col2 FROM tab0
----
-1088
-450
-7790

query I rowsort
SELECT col1 * - col1 + col2 * - tab2.col1 FROM tab2
----
-1798
-5015
-935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT - tab2.col0 + - col2 + col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT + col0 - col1 * - tab2.col1 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT DISTINCT col1 * - col1 + col1 + + col1 * - tab2.col1 AS col1 FROM tab2
----
-1891
-561
-6903

query I rowsort
SELECT ALL - col1 + tab1.col2 + col0 FROM tab1
----
111
163
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3008
SELECT ALL - + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL - + col2 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT - col2 * + col0 * col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL tab2.col0 * + col0 * + tab2.col1 + + col1 FROM tab2
----
106114
1550
359015

onlyif mysql # use DIV operator for integer division
query I rowsort label-3011
SELECT - - col1 DIV - ( ( col0 ) * col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3011
SELECT - - col1 / - ( ( col0 ) * col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + - ( col0 ) * col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT ( + col2 * + ( + col1 ) ) AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 74 * + col0 AS col1 FROM tab1
----
222
4736
5920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3015
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1, tab1 cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab1 cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + col2 + col2 * col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT - cor0.col2 * - cor0.col0 + cor0.col1 * col0 FROM tab0 AS cor0
----
15397
2856
3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 col2 FROM tab2 cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3019
SELECT - CAST( - 42 AS SIGNED ) + tab2.col2 FROM tab2
----
68
69
80

skipif mysql # not compatible
query I rowsort label-3019
SELECT - CAST ( - 42 AS INTEGER ) + tab2.col2 FROM tab2
----
68
69
80

query I rowsort
SELECT DISTINCT 15 * col0 FROM tab0
----
1335
360
525

onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT col1 DIV + tab2.col0 + - tab2.col0 FROM tab2
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-3021
SELECT col1 / + tab2.col0 + - tab2.col0 FROM tab2
----
-3
-78
-79

query I rowsort
SELECT - + 58 + col0 * + 14 AS col1 FROM tab2 AS cor0
----
1034
1048
40

query I rowsort
SELECT 1 * + 76 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT col0 * col0 * - ( - col2 ) + col0 FROM tab1
----
233536
489
614480

query I rowsort
SELECT + - col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * + col0 * 33 AS col0 FROM tab0 AS cor0
----
112035
267267
68112

query I rowsort
SELECT DISTINCT col1 * + 12 AS col0 FROM tab0
----
1032
1092
1164

query I rowsort
SELECT ALL - col2 + + col0 + + 42 AS col1 FROM tab1 AS cor0
----
-9
26
49

query I rowsort
SELECT - - col1 + 87 + col0 AS col2 FROM tab1 AS cor0
----
116
161
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 12 * + col2 col0 FROM tab0 cor0
----
1075
109
482

query I rowsort
SELECT DISTINCT + col0 + 30 * - col1 FROM tab1 AS cor0
----
-236
-310
-777

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3032
SELECT + + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT + + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * ( col2 ) * + col2 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT ( 9 ) * col1 FROM tab0
----
774
819
873

query I rowsort
SELECT DISTINCT + 14 * + tab1.col1 FROM tab1
----
140
182
364

query I rowsort
SELECT + cor0.col1 - + col2 AS col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT col0 * - 36 AS col0 FROM tab2
----
-252
-2808
-2844

query I rowsort
SELECT ALL + ( col0 + + col2 ) AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT col1 * + 40 AS col2 FROM tab1
----
1040
400
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-3040
SELECT DISTINCT + + col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT DISTINCT + + col0 / + col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 85 + - col2 * - cor0.col2 * - col2 FROM tab2 AS cor0
----
-17491
-19598
-54787

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT cor0.col1 + cor0.col2 DIV + ( col1 * + col0 ) col2 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3042
SELECT cor0.col1 + cor0.col2 / + ( col1 * + col0 ) col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col0 * - cor0.col0 + - 17 * col2 FROM tab0 AS cor0
----
-1137
-1242
-9315

query I rowsort
SELECT DISTINCT - 40 * + cor0.col0 FROM tab2 AS cor0
----
-280
-3120
-3160

query I rowsort
SELECT - cor0.col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + + cor0.col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3047
SELECT DISTINCT + col2 + + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT + col2 + + col0 / col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - col0 * col1 * + col1 - col1 * + col0 * + col2 FROM tab2 cor0
----
-12586
-391170
-73865

query I rowsort
SELECT 27 - + col1 FROM tab0
----
-59
-64
-70

query I rowsort
SELECT - col0 + - ( - col0 * + col1 ) AS col1 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL 7 * col1 FROM tab2
----
119
217
413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col2 FROM tab2 AS cor0
----
79
79
79

query I rowsort
SELECT ALL col0 + - cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + - cor0.col0 * + 95 FROM tab0 AS cor0
----
-2280
-3325
-8455

query I rowsort
SELECT - 90 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT ALL col1 + col1 + 79 FROM tab2 AS cor0
----
113
141
197

query I rowsort
SELECT ALL + col0 * + 51 FROM tab0 AS cor0
----
1224
1785
4539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3058
SELECT ALL CAST( + 47 AS SIGNED ) FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL CAST ( + 47 AS INTEGER ) FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3059
SELECT 45 + + tab1.col0 + col2 DIV col2 col0 FROM tab1
----
110
126
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3059
SELECT 45 + + tab1.col0 + col2 / col2 col0 FROM tab1
----
110
126
49

query I rowsort
SELECT + 16 * + col0 + - col0 AS col2 FROM tab0
----
1335
360
525

query I rowsort
SELECT 78 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT + 36 * - col2 + - 22 + 45 DIV + col0 FROM tab2
----
-1390
-958
-988

skipif mysql # not compatible
query I rowsort label-3062
SELECT + 36 * - col2 + - 22 + 45 / + col0 FROM tab2
----
-1390
-958
-988

query I rowsort
SELECT + col0 + tab2.col2 * col1 AS col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT 85 FROM tab1, tab2, tab2 AS cor0
----
85

query I rowsort
SELECT - col1 - + tab1.col1 AS col0 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT + col0 + ( - col2 + col0 ) AS col1 FROM tab2 cor0
----
-13
120
130

query I rowsort
SELECT ALL - col2 + - 68 FROM tab0
----
-101
-150
-69

query I rowsort
SELECT ALL - cor0.col2 * col0 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3069
SELECT - cor0.col2 * - 14 + 85 * col1 - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
2056
3020
5457

skipif mysql # not compatible
query I rowsort label-3069
SELECT - cor0.col2 * - 14 + 85 * col1 - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
2056
3020
5457

query I rowsort
SELECT DISTINCT + + col1 * - col2 * + 54 FROM tab1 AS cor0
----
-30780
-67392
-75816

query I rowsort
SELECT DISTINCT + cor0.col1 * 95 AS col2 FROM tab0 AS cor0
----
8170
8645
9215

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3072
SELECT - cor0.col1 * CAST( NULL AS SIGNED ) + + 71 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT - cor0.col1 * CAST ( NULL AS INTEGER ) + + 71 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 24 * - col1 AS col0 FROM tab2 AS cor0
----
1390
370
717

query I rowsort
SELECT + col2 * + 31 * + col1 AS col2 FROM tab2 AS cor0
----
20026
25947
47554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 56 col1 FROM tab2 cor0
----
1456
1512
2128

query I rowsort
SELECT - col1 + - col0 * col0 AS col1 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT DISTINCT + tab0.col0 * 82 + + 22 AS col2 FROM tab0
----
1990
2892
7320

query I rowsort
SELECT col1 + 50 FROM tab0
----
136
141
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-3079
SELECT DISTINCT + col0 DIV 5 + - col1 * col0 FROM tab2
----
-1328
-216
-4587

skipif mysql # not compatible
query I rowsort label-3079
SELECT DISTINCT + col0 / 5 + - col1 * col0 FROM tab2
----
-1328
-216
-4587

query I rowsort
SELECT col2 * col1 + col0 AS col0 FROM tab2
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( col2 ) + - col1 col2 FROM tab1
----
54
57
96

query I rowsort
SELECT + col1 - + ( col2 ) AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col1 + cor0.col0 + - 4 FROM tab0 AS cor0
----
106
128
176

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 + CAST ( + 70 * - col0 AS REAL ) FROM tab2 cor0
----
-521
-5519
-5547

query I rowsort
SELECT ALL col0 * - tab2.col0 + - 0 + col2 * + 10 * - col2 FROM tab2
----
-12844
-20681
-7339

query I rowsort
SELECT DISTINCT + - col1 * + 61 AS col0 FROM tab2 cor0
----
-1037
-1891
-3599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * col2 col2 FROM tab0 AS cor0
----
1113
36
6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 88 + col1 col2 FROM tab1 AS cor0
----
-4726
-5006
-8435

query I rowsort
SELECT + col2 * - col0 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3090
SELECT ALL + - 95 DIV 25 + + col1 FROM tab0 AS cor0
----
83
88
94

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL + - 95 / 25 + + col1 FROM tab0 AS cor0
----
83
88
94

query I rowsort
SELECT DISTINCT col2 + + ( col1 ) * ( ( - cor0.col0 ) + col2 ) FROM tab1 AS cor0
----
-13
1380
304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3092
SELECT ALL CAST( cor0.col1 AS SIGNED ) + - col1 * ( + col1 ) FROM tab1 AS cor0
----
-156
-650
-90

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL CAST ( cor0.col1 AS INTEGER ) + - col1 * ( + col1 ) FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - - col2 + ( col1 + + 53 ) * 73 FROM tab2 AS cor0
----
5148
6159
8202

query I rowsort
SELECT DISTINCT + 5 * 39 AS col2 FROM tab1 cor0
----
195

query I rowsort
SELECT ALL - ( col0 ) + + col0 * + col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1316
158106
237079

query I rowsort
SELECT ( cor0.col2 ) + cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT col1 + 69 FROM tab1
----
79
82
95

query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 AS col1 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL + - 40 + - ( cor0.col2 ) * - ( - col2 ) FROM tab0 AS cor0
----
-1129
-41
-6764

query I rowsort
SELECT - + col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ( + col0 ) * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - + col0 + - col1 * ( - cor0.col2 ) FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL - 48 AS col2 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL col0 * + col2 + ( col1 ) + - cor0.col2 * 14 FROM tab1 AS cor0
----
-568
2860
6349

query I rowsort
SELECT DISTINCT - - 73 AS col2 FROM tab2 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 col0 FROM tab1 AS cor0
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col1 * col0 + + CAST ( + col2 + - col2 AS REAL ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 - + col1 * + col2 FROM tab2 cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3109
SELECT - ( col1 ) + + CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

skipif mysql # not compatible
query I rowsort label-3109
SELECT - ( col1 ) + + CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT + + cor0.col1 + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - col2 + col0 * col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT - 15 + col0 * col2 AS col0 FROM tab1 cor0
----
147
3633
7665

query I rowsort
SELECT ALL 89 + + col2 AS col2 FROM tab1 AS cor0
----
143
146
185

query I rowsort
SELECT DISTINCT - col0 - cor0.col2 FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3115
SELECT DISTINCT - + 39 * col2 DIV - cor0.col0 + + col1 DIV cor0.col0 + col0 col2 FROM tab0 AS cor0
----
125
38
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - + 39 * col2 / - cor0.col0 + + col1 / cor0.col0 + col0 col2 FROM tab0 AS cor0
----
125
38
80

query I rowsort
SELECT - + col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + col2 * 33 AS col1 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT ALL - + col1 * - 23 AS col1 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT + - col1 * - 6 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
140
213
380

query I rowsort
SELECT DISTINCT + col2 * 2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - cor0.col2 * col2 col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - 46 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT ALL ( col0 ) * col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - - col1 + col2 * col0 * - 73 FROM tab1 AS cor0
----
-11800
-266294
-560627

query I rowsort
SELECT ALL + - col1 + 86 * col1 FROM tab2 AS cor0
----
1445
2635
5015

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3126
SELECT + CAST( col0 AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3126
SELECT + CAST ( col0 AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT ALL + CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col1 + col1 * 46 AS col0 FROM tab1 AS cor0
----
1872
560
767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + - 37 AS col0 FROM tab0 cor0
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 48 col2 FROM tab2 AS cor0
----
1248
1296
1824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 + col1 col2 FROM tab0 AS cor0
----
-3
-8
3

query I rowsort
SELECT - + cor0.col2 + + 65 + + col1 FROM tab1 AS cor0
----
-18
18
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - cor0.col2 col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + col1 * - col2 + col1 + col1 * col0 FROM tab1
----
-1300
-195
80

query I rowsort
SELECT + tab0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - ( cor1.col2 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3138
SELECT ALL - - CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL - - CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + - 70 AS col0 FROM tab2
----
-11
-39
-53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3140
SELECT ALL CAST( tab2.col2 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL CAST ( tab2.col2 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * - ( - col0 ) col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 83 * - 8 FROM tab1, tab0 AS cor0
----
9 values hashing to 75105be6d11704c45e1f0ecac7c4d398

query I rowsort
SELECT ALL cor1.col2 AS col1 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-3144
SELECT DISTINCT + col0 DIV cor0.col2 + + col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-3144
SELECT DISTINCT + col0 / cor0.col2 + + col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + 35 + - col0 * + col1 FROM tab1 AS cor0
----
-1005
-43
-605

onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT - + col0 * col0 DIV - col1 + 38 FROM tab0 AS cor0
----
125
44
50

skipif mysql # not compatible
query I rowsort label-3147
SELECT - + col0 * col0 / - col1 + 38 FROM tab0 AS cor0
----
125
44
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 82 col2 FROM tab1 AS cor0
----
146
162
85

query I rowsort
SELECT + ( - cor0.col0 ) * col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col0 FROM tab2
----
91

query I rowsort
SELECT ALL - 41 * col1 FROM tab2
----
-1271
-2419
-697

query I rowsort
SELECT DISTINCT 11 * + col1 + 50 FROM tab1
----
160
193
336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 + tab2.col1 col2 FROM tab2
----
137
38
96

query I rowsort
SELECT + - col1 * + col2 + col1 * - col0 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT - cor0.col2 + + 46 AS col1 FROM tab0 AS cor0
----
-36
13
45

query I rowsort
SELECT ALL - col0 + col1 + + col1 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT - + col1 + + cor0.col1 * - ( col2 ) FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ( + col2 + - 24 ) * col2 AS col1 FROM tab1
----
1620
1881
6912

query I rowsort
SELECT + - col1 + col2 * + col0 - - col2 FROM tab1 cor0
----
190
3695
7763

query I rowsort
SELECT col0 * - col1 + col1 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2002
-3333
-8097

query I rowsort
SELECT - col0 * + ( + cor0.col1 ) + + col2 + + col2 * col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
232889
462
613456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3162
SELECT ALL CAST( NULL AS DECIMAL ) / tab2.col0 AS col0 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL CAST ( NULL AS REAL ) / tab2.col0 AS col0 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * - col2 + - ( col0 + + col1 ) col1 FROM tab0 AS cor0
----
-217
-2915
-7150

query I rowsort
SELECT col2 * + 99 FROM tab1
----
5346
5643
9504

onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT DISTINCT - col0 * cor0.col2 + col2 DIV - col2 FROM tab0 AS cor0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT - col0 * cor0.col2 + col2 / - col2 FROM tab0 AS cor0
----
-36
-7299
-793

query I rowsort
SELECT DISTINCT + col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT + - ( - col1 ) DIV ( - 31 ) + col2 AS col0 FROM tab0 AS cor0
----
-2
31
80

skipif mysql # not compatible
query I rowsort label-3167
SELECT + - ( - col1 ) / ( - 31 ) + col2 AS col0 FROM tab0 AS cor0
----
-2
31
80

query I rowsort
SELECT + 4 + - col1 * + col1 FROM tab2 AS cor0
----
-285
-3477
-957

onlyif mysql # use DIV operator for integer division
query I rowsort label-3169
SELECT DISTINCT + + col2 DIV - col2 + + cor0.col1 + 95 FROM tab0 AS cor0
----
180
185
191

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT + + col2 / - col2 + + cor0.col1 + 95 FROM tab0 AS cor0
----
180
185
191

query I rowsort
SELECT - col1 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT 79 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT DISTINCT 4 + + col0 * + col0 AS col0 FROM tab0
----
1229
580
7925

query I rowsort
SELECT ALL + cor0.col1 + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - - col0 + col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - - col0 * - col1 + cor0.col1 * + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT DISTINCT - cor0.col1 * + ( - col1 * col2 ) + - 96 - col1 DIV col2 FROM tab0 AS cor0
----
243970
678945
9216

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT - cor0.col1 * + ( - col1 * col2 ) + - 96 - col1 / col2 FROM tab0 AS cor0
----
243970
678945
9216

query I rowsort
SELECT ALL + - col1 * 64 AS col0 FROM tab0 AS cor0
----
-5504
-5824
-6208

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT ALL + col0 * col1 + col0 DIV - 5 AS col2 FROM tab0
----
2060
3388
8082

skipif mysql # not compatible
query I rowsort label-3178
SELECT ALL + col0 * col1 + col0 / - 5 AS col2 FROM tab0
----
2060
3388
8082

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3179
SELECT col1 * col1 - CAST( tab2.col2 AS SIGNED ) FROM tab2
----
251
3455
934

skipif mysql # not compatible
query I rowsort label-3179
SELECT col1 * col1 - CAST ( tab2.col2 AS INTEGER ) FROM tab2
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col0 * ( - 17 ) col2 FROM tab2
----
126
1404
1422

query I rowsort
SELECT 9 AS col0 FROM tab0
----
9
9
9

query I rowsort
SELECT DISTINCT + - 70 FROM tab2 AS cor0
----
-70

query I rowsort
SELECT ALL + - 55 AS col0 FROM tab2 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + + col1 * 90 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-120870
-19530
-414180

query I rowsort
SELECT ALL - 93 AS col0 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT 89 * col0 AS col2 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT ALL - col1 + - 96 * col2 AS col1 FROM tab2 cor0
----
-2555
-2623
-3665

query I rowsort
SELECT + 74 * + col2 FROM tab1 AS cor0
----
3996
4218
7104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + 24 * + col2 col1 FROM tab2 AS cor0
----
546
641
833

query I rowsort
SELECT DISTINCT + 36 * col1 FROM tab1 cor0
----
360
468
936

query I rowsort
SELECT DISTINCT - col2 * 11 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT ALL 59 * col2 AS col0 FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab1, tab0 cor0
----
69

query I rowsort
SELECT DISTINCT - 73 FROM tab0, tab2, tab2 AS cor0, tab1
----
-73

query I rowsort
SELECT ALL + col0 * + 64 AS col1 FROM tab2
----
448
4992
5056

query I rowsort
SELECT + - col1 + + 75 * col2 * + 36 AS col1 FROM tab1 AS cor0
----
145774
153890
259187

query I rowsort
SELECT - + 70 + - col1 FROM tab0 AS cor0
----
-156
-161
-167

query I rowsort
SELECT col2 + - ( cor0.col2 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - cor0.col2 * 79 AS col2 FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT 22 * col0 AS col0 FROM tab1 AS cor0
----
1408
1760
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3201
SELECT CAST( col0 AS SIGNED ) + col2 AS col0 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-3201
SELECT CAST ( col0 AS INTEGER ) + col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT + col0 + + col0 * tab0.col0 AS col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ( - col2 ) + - col2 * - tab1.col1 FROM tab1
----
1152
1350
513

query I rowsort
SELECT + 38 + + 48 FROM tab1
----
86
86
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT DISTINCT 13 DIV col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT 13 / col1 AS col2 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT + col1 DIV - col0 - - cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
668

skipif mysql # not compatible
query I rowsort label-3206
SELECT + col1 / - col0 - - cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 - - col1 * 86 col2 FROM tab2 AS cor0
----
18
1937
4398

query I rowsort
SELECT ALL - 19 * col2 * col0 FROM tab1 AS cor0
----
-145920
-3078
-69312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3209
SELECT ALL 59 * col1 + col0 DIV - tab2.col1 + + col1 * + col2 AS col1 FROM tab2
----
1645
2666
5014

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL 59 * col1 + col0 / - tab2.col1 + + col1 * + col2 AS col1 FROM tab2
----
1645
2666
5014

query I rowsort
SELECT DISTINCT + 28 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-3211
SELECT + col2 + col0 DIV + ( tab0.col0 ) + - col0 FROM tab0
----
-33
-6
10

skipif mysql # not compatible
query I rowsort label-3211
SELECT + col2 + col0 / + ( tab0.col0 ) + - col0 FROM tab0
----
-33
-6
10

query I rowsort
SELECT DISTINCT 39 + col1 * col0 + col0 FROM tab2
----
1461
263
4719

query I rowsort
SELECT DISTINCT - 5 * col0 FROM tab0 AS cor0
----
-120
-175
-445

onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT 57 + cor0.col1 * - 72 + + col1 DIV col2 FROM tab0 AS cor0
----
-6133
-6494
-6830

skipif mysql # not compatible
query I rowsort label-3214
SELECT 57 + cor0.col1 * - 72 + + col1 / col2 FROM tab0 AS cor0
----
-6133
-6494
-6830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3215
SELECT - + col2 * - col2 - CAST( - col1 AS SIGNED ) * col1 * - ( col2 ) FROM tab1 AS cor0
----
-2451
-33588
-7008

skipif mysql # not compatible
query I rowsort label-3215
SELECT - + col2 * - col2 - CAST ( - col1 AS INTEGER ) * col1 * - ( col2 ) FROM tab1 AS cor0
----
-2451
-33588
-7008

query I rowsort
SELECT DISTINCT 85 + - col1 AS col2 FROM tab2 AS cor0
----
26
54
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col2 + - col2 col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL + + col2 * - col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL col0 + col2 - + col1 AS col1 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT ALL cor0.col0 + - ( - col0 * + col2 ) FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - col2 * 86 FROM tab1 AS cor0
----
-4644
-4902
-8256

query I rowsort
SELECT DISTINCT - col2 * 43 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT ALL + col2 * + col0 + + 87 + - col2 AS col1 FROM tab0 AS cor0
----
121
7303
846

query I rowsort
SELECT ALL col0 * col1 + col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + 8 * - 97 AS col0 FROM tab0 AS cor0
----
-776
-776
-776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3226
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 + + 80 FROM tab0 AS cor0
----
166
171
177

query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - + 54 * col2 FROM tab2 AS cor0
----
-1404
-1458
-2052

onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT ALL + col1 DIV 28 + - col1 * - col2 FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + col1 / 28 + - col1 * - col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - 32 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT + ( col1 ) * cor0.col0 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * col0 col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - cor1.col0 * ( 28 ) AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 32a212333aff6c5b0770842737472f7b

query I rowsort
SELECT ALL ( cor0.col2 ) * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - col2 + + col2 * - col2 FROM tab0 cor0
----
-1122
-2
-6806

query I rowsort
SELECT col2 * + col0 + - tab0.col0 * - col2 FROM tab0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT + col0 * col1 + + col2 DIV col2 AS col1 FROM tab0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-3238
SELECT + col0 * col1 + + col2 / col2 AS col1 FROM tab0
----
2065
3396
8100

query I rowsort
SELECT ALL - col1 + + col1 * col2 AS col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT DISTINCT + tab2.col0 + + col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT tab0.col1 - - col1 * + col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL col2 * col2 + col1 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT - col0 / - col1 FROM tab2 WHERE NOT ( col2 * + col1 ) < NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 * - tab0.col2 + col2 AND NULL
----

query I rowsort
SELECT ALL - col0 + + tab2.col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col2 + tab1.col2 * + col0 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT - col2 + - col2 * tab2.col0 - + col0 * - col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL col1 * col2 * - col1 AS col0 FROM tab0
----
-244068
-679042
-9409

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( col1 + col0 * col0 + col1 * tab1.col0 )
----

query I rowsort
SELECT + col1 + - col0 * - col2 AS col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL + col2 * col1 + - col1 * + col2 * tab2.col1 FROM tab2 WHERE NOT - col2 + col2 * col2 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 * col2 AS col1 FROM tab0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT tab1.col1 * col2 + + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - col2 * - tab0.col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL col1 + + tab0.col1 AS col1 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT + col1 * - col2 DIV - col2 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3256
SELECT + col1 * - col2 / - col2 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - col2 - col2 * - col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT col2 + + col1 - col2 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + cor0.col1 + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL col0 * + col2 + col1 + - col1 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col1 * cor0.col1 + - col2 + col1 AS col1 FROM tab1 AS cor0
----
53
648
86

query I rowsort
SELECT DISTINCT col0 * + tab1.col0 - col1 / - tab1.col0 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col1 + col1 * col1
----

query I rowsort
SELECT col1 FROM tab2 WHERE ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT col0 * + ( + col0 + col2 * + col1 ) FROM tab0 cor0
----
4620
672039
68688

query I rowsort
SELECT + col2 * - col0 + cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-3548
-7511
514

onlyif mysql # use DIV operator for integer division
query I rowsort label-3267
SELECT - col0 * 59 - + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-414
-4603
-4662

skipif mysql # not compatible
query I rowsort label-3267
SELECT - col0 * 59 - + col0 / col0 AS col1 FROM tab2 AS cor0
----
-414
-4603
-4662

query I rowsort
SELECT - col1 + col2 * - ( + col2 ) FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + cor0.col1 + 15 - - ( - cor0.col2 ) * col2 AS col1 FROM tab1 cor0
----
-2875
-3224
-9188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3270
SELECT ALL + col1 + CAST( 17 AS SIGNED ) FROM tab0 AS cor0
----
103
108
114

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + col1 + CAST ( 17 AS INTEGER ) FROM tab0 AS cor0
----
103
108
114

query I rowsort
SELECT col0 * ( col0 ) * + col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT DISTINCT - col1 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - + col0 * col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + col2 * - 3 AS col2 FROM tab0 cor0
----
-246
-3
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3275
SELECT DISTINCT col2 + CAST( cor0.col0 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1226
609
8003

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT col2 + CAST ( cor0.col0 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3276
SELECT ALL + - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 1 * ( - col0 + - col2 ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ( - 77 ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to a4b782d7c3e9c22c8343c69c156c0bdd

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 + col2 * - col2 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT ALL cor0.col0 + - 29 FROM tab1 AS cor0
----
-26
35
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3281
SELECT + CAST( NULL AS SIGNED ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 70 * tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to be00591f9886d7eb84584586c1406373

query I rowsort
SELECT col1 * + ( + 41 ) FROM tab0
----
3526
3731
3977

query I rowsort
SELECT ALL 44 * + ( + col0 ) FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT + col1 * + col2 + col2 * ( - 28 ) AS col2 FROM tab1 AS cor0
----
-1026
-108
-1440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3286
SELECT CAST( + cor1.col2 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

skipif mysql # not compatible
query I rowsort label-3286
SELECT CAST ( + cor1.col2 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT DISTINCT + col2 + + 8 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
44
7388
833

query I rowsort
SELECT - + col2 + + cor0.col0 AS col0 FROM tab0 cor0
----
-9
34
7

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 DISTINCT col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 24 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL 26 * - col2 AS col1 FROM tab0
----
-2132
-26
-858

query I rowsort
SELECT 61 * col2 * + ( cor0.col2 ) FROM tab2 AS cor0
----
41236
44469
88084

query I rowsort
SELECT + + 63 * col1 FROM tab0 AS cor0
----
5418
5733
6111

query I rowsort
SELECT - col1 + - col1 - tab2.col0 AS col1 FROM tab2
----
-113
-196
-69

query I rowsort
SELECT ALL + - 88 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3297
SELECT - col1 + 89 DIV + col1 FROM tab1 AS cor0
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-3297
SELECT - col1 + 89 / + col1 FROM tab1 AS cor0
----
-2
-23
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3298
SELECT ALL + col2 + + CAST( + col2 AS SIGNED ) col1 FROM tab1 cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL + col2 + + CAST ( + col2 AS INTEGER ) col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + - col1 * 74 AS col0 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT ALL - - col2 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - + 95 * cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 381c83e2a0077d0955cd3283ddc85954

query I rowsort
SELECT ALL + col1 * 25 AS col2 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT ALL + col1 + col2 * + tab1.col0 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL ( - tab2.col2 ) * col2 + col1 AS col0 FROM tab2
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-3305
SELECT DISTINCT + 4 * - 3 + + col2 + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
15
16
27

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + 4 * - 3 + + col2 + col0 / col0 AS col0 FROM tab2 AS cor0
----
15
16
27

query I rowsort
SELECT - 85 + - 40 - + col2 FROM tab1 AS cor0
----
-179
-182
-221

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab2, tab2 AS cor0
----
51

query I rowsort
SELECT cor0.col1 + + col2 * col2 * col0 AS col1 FROM tab2 AS cor0
----
114093
5134
52787

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27

query I rowsort
SELECT 77 - - col2 AS col2 FROM tab2 AS cor0
----
103
104
115

query I rowsort
SELECT ALL + - ( col0 ) * - col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab2 AS cor0
----
35

query I rowsort
SELECT 15 + cor0.col1 + + col0 * + col0 * + col0 AS col2 FROM tab2 cor0
----
389
474626
493071

query I rowsort
SELECT - 90 * col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT - + 75 + col2 FROM tab0 AS cor0
----
-42
-74
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT ALL + - col1 DIV - col2 + + 2 AS col1 FROM tab0 AS cor0
----
3
4
99

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL + - col1 / - col2 + + 2 AS col1 FROM tab0 AS cor0
----
3
4
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 + + 48 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a64ba54e418231a2dbc2879c8d9fbfb0

query I rowsort
SELECT ALL - col0 + + col1 - - col1 * cor0.col1 FROM tab1 AS cor0
----
102
46
699

query I rowsort
SELECT - col1 + - col0 AS col0 FROM tab0 cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3322
SELECT DISTINCT col2 DIV + col2 + + ( col0 + col0 ) FROM tab1 cor0
----
129
161
7

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT col2 / + col2 + + ( col0 + col0 ) FROM tab1 cor0
----
129
161
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3323
SELECT DISTINCT + col1 DIV col2 + - col1 * col2 + col0 FROM tab0 AS cor0
----
-2812
-7372
35

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + col1 / col2 + - col1 * col2 + col0 FROM tab0 AS cor0
----
-2812
-7372
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3324
SELECT DISTINCT - + col1 * - col2 + col2 * col1 DIV + col1 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT - + col1 * - col2 + col2 * col1 / + col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + + col2 * col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL + cor0.col1 + + ( cor0.col2 ) * + col0 + cor0.col1 * - col0 * col2 FROM tab1 AS cor0
----
-32822
-4024
-92147

query I rowsort
SELECT + col2 * 49 AS col0 FROM tab1 AS cor0
----
2646
2793
4704

onlyif mysql # use DIV operator for integer division
query I rowsort label-3328
SELECT ALL - cor0.col1 DIV - 50 - col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3328
SELECT ALL - cor0.col1 / - 50 - col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT - col0 + 67 * 24 AS col2 FROM tab2 AS cor0
----
1529
1530
1601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3330
SELECT DISTINCT col0 * + CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT col0 * + CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - col1 + + 54 * cor0.col0 FROM tab1 cor0
----
136
3446
4307

query I rowsort
SELECT ALL + col0 * col1 + - 75 FROM tab2 AS cor0
----
1268
142
4527

query I rowsort
SELECT ALL - + col2 + - 30 FROM tab0 AS cor0
----
-112
-31
-63

query I rowsort
SELECT DISTINCT col1 * - col1 * + col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT ALL cor0.col0 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3336
SELECT DISTINCT - col0 DIV col0 + 9 AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT - col0 / col0 + 9 AS col2 FROM tab1 AS cor0
----
8

query I rowsort
SELECT ALL - - col0 - col2 * col2 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT col2 + - col2 * col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - tab0.col0 + + col2 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT tab0.col1 + col2 * + col2 AS col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - col2 + - tab0.col2 + col0 * col1 FROM tab0
----
1998
3393
7935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * - tab1.col2 col1 FROM tab1, tab2 cor0
----
9 values hashing to 541fe66bdccd5b0e268906a8a4a1d9b3

query I rowsort
SELECT DISTINCT ( + col2 * + col1 ) + + col2 * col0 + - col1 FROM tab0
----
14669
35
3544

query I rowsort
SELECT + - col1 * + col1 + col1 * col0 + col0 AS col2 FROM tab2 cor0
----
-737
1133
1199

query I rowsort
SELECT DISTINCT + col0 + + col1 AS col0 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 - - col0 col2 FROM tab1
----
29
74
93

query I rowsort
SELECT + - ( + col2 ) * - cor0.col2 + - cor0.col0 * + cor0.col0 + - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-1321
-2325
-8659

query I rowsort
SELECT DISTINCT + col1 + col1 + col1 * - col2 AS col0 FROM tab0
----
-2666
-7280
97

query I rowsort
SELECT ALL ( - col0 ) + - tab2.col0 AS col1 FROM tab2
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3350
SELECT - col0 DIV + col1 + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3350
SELECT - col0 / + col1 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - 65 * + col2 + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-2592
-3116
-3224

query I rowsort
SELECT - 84 * + col0 AS col1 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + col0 * 15 + col0 col0 FROM tab1 AS cor0
----
1023
1279
47

query I rowsort
SELECT 39 * col0 * ( + col1 * cor0.col0 ) - col0 * - col0 AS col0 FROM tab0 cor0
----
1932480
28119550
4635400

query I rowsort
SELECT + 21 * cor0.col0 * - col2 + + col1 * col1 * + col2 + col1 FROM tab2 AS cor0
----
-52043
22009
47977

query I rowsort
SELECT - - col0 + col1 * + ( + 55 + col1 ) FROM tab2 AS cor0
----
1303
2673
6804

query I rowsort
SELECT + - col0 * - col0 - - col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + ( col0 + + col2 ) AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 78 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - ( 35 ) * col1 FROM tab1
----
-350
-455
-910

query I rowsort
SELECT DISTINCT + 77 + - col0 FROM tab0
----
-12
42
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-3364
SELECT 10 DIV 50 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT 10 / 50 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 + - 34 * col2 + - 58 AS col2 FROM tab1
----
-1868
-1986
-3309

query I rowsort
SELECT 74 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT 8 + col0 * col2 AS col0 FROM tab2 AS cor0
----
197
2036
3010

query I rowsort
SELECT + 38 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0, tab0 cor2
----
3645 values hashing to 53ea9df66efbebef5063fb0b15c25baa

query I rowsort
SELECT ALL - + col0 + 81 * - cor0.col0 + + col0 AS col2 FROM tab2 cor0
----
-567
-6318
-6399

onlyif mysql # use DIV operator for integer division
query I rowsort label-3371
SELECT DISTINCT - col0 + + ( - ( cor0.col1 ) ) DIV col2 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - col0 + + ( - ( cor0.col1 ) ) / col2 FROM tab0 AS cor0
----
-132
-26
-90

query I rowsort
SELECT ALL + col0 * + col0 + col0 * + col0 * ( + col1 ) FROM tab1 cor0
----
243
45056
89600

query I rowsort
SELECT 81 AS col0 FROM tab1 cor0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3374
SELECT DISTINCT + + col2 + 89 DIV col0 FROM tab2 AS cor0
----
27
39

skipif mysql # not compatible
query I rowsort label-3374
SELECT DISTINCT + + col2 + 89 / col0 FROM tab2 AS cor0
----
27
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT - col1 DIV 39 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3375
SELECT - col1 / 39 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ( - 53 ) AS col2 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT + 17 AS col1 FROM tab0
----
17
17
17

query I rowsort
SELECT col0 * - 17 FROM tab0 cor0
----
-1513
-408
-595

query I rowsort
SELECT - 33 - cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to ad1a5d5e08828a95b67a14c956904c78

query I rowsort
SELECT col1 - col1 * 89 AS col1 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT DISTINCT + - 62 AS col2 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT - 8 * col1 FROM tab1 AS cor0
----
-104
-208
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + + cor0.col0 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 405a6e181948af789c5f99066032918c

query I rowsort
SELECT - - cor0.col1 * + ( 59 ) + cor0.col0 * 79 AS col1 FROM tab1 AS cor0
----
1771
5646
7087

query I rowsort
SELECT + - col0 * - col1 + - col0 * - col1 AS col1 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT col1 * - col2 * + col0 + col1 * - col0 FROM tab2
----
-124254
-52377
-6076

skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( 26 AS REAL ) AS col0 FROM tab2 AS cor0
----
-52
-53
19

query I rowsort
SELECT DISTINCT + tab0.col2 AS col1 FROM tab0, tab1, tab1 AS cor0
----
1
33
82

query I rowsort
SELECT - col1 * + 54 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT DISTINCT 76 * col2 - - col0 FROM tab2 cor0
----
2054
2059
2967

onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT ALL - col1 + + col2 * cor0.col0 DIV 17 AS col0 FROM tab0 AS cor0
----
-40
-95
338

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL - col1 + + col2 * cor0.col0 / 17 AS col0 FROM tab0 AS cor0
----
-40
-95
338

query I rowsort
SELECT ALL - + ( ( + col1 ) ) * 35 + col0 * col0 AS col2 FROM tab0 AS cor0
----
-2170
-2434
4736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3393
SELECT DISTINCT 13 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT 13 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + col0 * 88 AS col2 FROM tab0 AS cor0
----
2112
3080
7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 81 col1 FROM tab1
----
4374
4617
7776

query I rowsort
SELECT + tab0.col2 * 55 AS col1 FROM tab0
----
1815
4510
55

query I rowsort
SELECT + + col0 + ( - col0 ) * cor0.col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3398
SELECT DISTINCT - + col2 DIV 4 col0 FROM tab2 AS cor0
----
-6
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3398
SELECT DISTINCT - + col2 / 4 col0 FROM tab2 AS cor0
----
-6
-9

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 - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-86
-91
-97

query I rowsort
SELECT 61 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3402
SELECT - col1 + - col2 * CAST( NULL AS SIGNED ) * col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3402
SELECT - col1 + - col2 * CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 48 ) AS col1 FROM tab2, tab1 cor0
----
-48

query I rowsort
SELECT + 10 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT + col0 + - col0 * + col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT + tab0.col1 * col1 + + 9 AS col1 FROM tab0
----
7405
8290
9418

query I rowsort
SELECT - col1 * 52 * - col1 AS col0 FROM tab0 AS cor0
----
384592
430612
489268

query I rowsort
SELECT ALL - col2 * + 6 AS col2 FROM tab2 cor0
----
-156
-162
-228

query I rowsort
SELECT + col2 * - 46 AS col1 FROM tab2 AS cor0
----
-1196
-1242
-1748

query I rowsort
SELECT DISTINCT + - col2 * + col0 * col2 AS col2 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - cor0.col1 - - 47 AS col0 FROM tab2 AS cor0
----
-12
16
30

query I rowsort
SELECT DISTINCT - - cor0.col2 * ( 29 ) FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT ALL col1 * - col1 * + 92 AS col2 FROM tab2 cor0
----
-26588
-320252
-88412

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3414
SELECT ALL CAST( col2 * col1 AS SIGNED ) + ( tab0.col1 ) FROM tab0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL CAST ( col2 * col1 AS INTEGER ) + ( tab0.col1 ) FROM tab0
----
194
2924
7553

query I rowsort
SELECT - tab2.col2 * - ( - col2 ) + ( col0 + + col0 ) * + ( - 94 + col0 ) AS col1 FROM tab2
----
-1947
-3172
-3814

onlyif mysql # use DIV operator for integer division
query I rowsort label-3416
SELECT 52 * tab1.col2 - + tab1.col1 DIV 80 AS col2 FROM tab1
----
2808
2964
4992

skipif mysql # not compatible
query I rowsort label-3416
SELECT 52 * tab1.col2 - + tab1.col1 / 80 AS col2 FROM tab1
----
2808
2964
4992

query I rowsort
SELECT DISTINCT ( - col2 ) * + col0 * ( + ( col0 ) ) + col2 FROM tab2
----
-1296
-158158
-237120

query I rowsort
SELECT DISTINCT col1 + 27 FROM tab0
----
113
118
124

query I rowsort
SELECT + 43 * 22 FROM tab0
----
946
946
946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 * - cor0.col2 col0 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT ALL - col2 + + col1 * cor0.col0 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3422
SELECT - - CAST( col2 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3422
SELECT - - CAST ( col2 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3423
SELECT + CAST( 23 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
1357
391
713

skipif mysql # not compatible
query I rowsort label-3423
SELECT + CAST ( 23 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
1357
391
713

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT ALL - - 6 * col2 + - cor0.col2 DIV col1 FROM tab1 AS cor0
----
322
337
569

skipif mysql # not compatible
query I rowsort label-3425
SELECT ALL - - 6 * col2 + - cor0.col2 / col1 FROM tab1 AS cor0
----
322
337
569

onlyif mysql # use DIV operator for integer division
query I rowsort label-3426
SELECT - 30 + + col2 * cor0.col0 DIV ( + col0 ) AS col2 FROM tab0 AS cor0
----
-29
3
52

skipif mysql # not compatible
query I rowsort label-3426
SELECT - 30 + + col2 * cor0.col0 / ( + col0 ) AS col2 FROM tab0 AS cor0
----
-29
3
52

query I rowsort
SELECT DISTINCT + + col2 + + col1 * + 80 FROM tab2 AS cor0
----
1398
2507
4746

query I rowsort
SELECT ALL + + col1 + + col1 + + col0 * 92 FROM tab2 AS cor0
----
706
7294
7302

query I rowsort
SELECT DISTINCT 4 + - col2 AS col1 FROM tab2 AS cor0
----
-22
-23
-34

query I rowsort
SELECT - ( - col2 + - tab0.col2 ) FROM tab0
----
164
2
66

query I rowsort
SELECT - + 25 FROM tab0 AS cor0
----
-25
-25
-25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT - col2 * - col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT - col2 * - col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + cor0.col1 + - col0 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + - col0 * - col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + - col0 + col2 + 40 * 99 AS col2 FROM tab1 cor0
----
3953
3976
4011

query I rowsort
SELECT - - col2 * 7 AS col1 FROM tab2 AS cor0
----
182
189
266

onlyif mysql # use DIV operator for integer division
query I rowsort label-3437
SELECT DISTINCT + - col0 DIV + cor0.col1 + + 77 DIV col1 + - 89 FROM tab1 cor0
----
-87
-88
-90

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT + - col0 / + cor0.col1 + + 77 / col1 + - 89 FROM tab1 cor0
----
-87
-88
-90

query I rowsort
SELECT - col0 * - col0 + - col2 * - 91 FROM tab0 cor0
----
1316
15383
3579

query I rowsort
SELECT ALL + 44 * + col0 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT DISTINCT - 44 * col0 FROM tab0 AS cor0
----
-1056
-1540
-3916

query I rowsort
SELECT ALL - 45 + + col1 * col1 AS col1 FROM tab0 cor0
----
7351
8236
9364

query I rowsort
SELECT - 62 - col2 AS col0 FROM tab2 AS cor0
----
-100
-88
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT col2 * cor0.col1 - + cor0.col2 DIV + col0 FROM tab2 AS cor0
----
1534
646
834

skipif mysql # not compatible
query I rowsort label-3443
SELECT col2 * cor0.col1 - + cor0.col2 / + col0 FROM tab2 AS cor0
----
1534
646
834

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 FROM tab1 cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3445
SELECT + + CAST( - col2 AS SIGNED ) + - col2 * + col0 FROM tab0 AS cor0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-3445
SELECT + + CAST ( - col2 AS INTEGER ) + - col2 * + col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT cor0.col0 - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3447
SELECT + col0 DIV - CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3447
SELECT + col0 / - CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT col0 * tab2.col1 + col0 * + tab2.col2 * + ( + tab2.col2 ) - - col1 AS col2 FROM tab2
----
115436
5351
57389

query I rowsort
SELECT ALL 59 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + col0 - 7 FROM tab0 AS cor0
----
17
28
82

query I rowsort
SELECT + - 67 * col1 + - col0 * - col1 FROM tab0 AS cor0
----
-3104
-3698
2002

query I rowsort
SELECT - 55 + 65 * - col1 FROM tab2 AS cor0
----
-1160
-2070
-3890

query I rowsort
SELECT DISTINCT + col2 - + ( + col0 ) AS col1 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT + - ( col0 ) DIV col1 + + col2 DIV - col0 FROM tab1 AS cor0
----
-18
-6
-7

skipif mysql # not compatible
query I rowsort label-3454
SELECT + - ( col0 ) / col1 + + col2 / - col0 FROM tab1 AS cor0
----
-18
-6
-7

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab2, tab1 AS cor1, tab1 AS cor2
----
13122 values hashing to e9c629f0bc65dac9633d5b5d405d110b

query I rowsort
SELECT - 80 * col1 - + col1 * + col0 FROM tab0 AS cor0
----
-11155
-15379
-8944

query I rowsort
SELECT DISTINCT + col0 - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col1 + - 30 * + col1 FROM tab2
----
-1829
-527
-961

query I rowsort
SELECT + + 1 + cor1.col1 FROM tab0, tab0 AS cor0, tab2, tab0 cor1
----
81 values hashing to f28192de0e16e7411886b03b443aea42

query I rowsort
SELECT - col0 * ( - 57 ) AS col1 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT ALL 62 DIV 29 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL 62 / 29 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - col1 + cor0.col0 * + col1 AS col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL col0 + + 5 * col0 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT ( - ( col1 ) ) AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - ( + col1 ) + col1 - 66 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL - - ( - col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - col1 * col1 * - tab1.col0 + - col0 FROM tab1
----
13440
2025
6336

query I rowsort
SELECT - + col0 * cor0.col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 86 col0 FROM tab2 AS cor0
----
-86

query I rowsort
SELECT - - 7 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2831
-7455
-90

query I rowsort
SELECT + 82 - 93 FROM tab2, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT + ( + ( cor0.col2 ) ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT ALL col0 + - 33 * + 54 AS col1 FROM tab0
----
-1693
-1747
-1758

query I rowsort
SELECT - col0 * col1 + + 24 * col2 AS col0 FROM tab1 AS cor0
----
1218
1264
728

query I rowsort
SELECT + 71 * col0 + col1 AS col1 FROM tab0 AS cor0
----
1790
2582
6410

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT + - 56 * cor0.col0 DIV - col1 + - col2 FROM tab0 AS cor0
----
-18
-28
19

skipif mysql # not compatible
query I rowsort label-3479
SELECT + - 56 * cor0.col0 / - col1 + - col2 FROM tab0 AS cor0
----
-18
-28
19

query I rowsort
SELECT ALL + - 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT + col2 + - col2 * col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT 82 * col1 FROM tab1 cor0
----
1066
2132
820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 * + tab0.col2 col0 FROM tab0
----
1551
3854
47

query I rowsort
SELECT + - col0 * ( + col2 ) AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - - col1 * + ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - col2 * col2 * - col1 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + cor0.col0 * + ( + 68 ) FROM tab2 AS cor0
----
476
5304
5372

onlyif mysql # use DIV operator for integer division
query I rowsort label-3488
SELECT DISTINCT - - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT DISTINCT - - col0 / col1 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT 87 * + col0 - col1 DIV 32 AS col1 FROM tab1
----
261
5568
6960

skipif mysql # not compatible
query I rowsort label-3489
SELECT 87 * + col0 - col1 / 32 AS col1 FROM tab1
----
261
5568
6960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3490
SELECT DISTINCT + col2 + + col1 DIV col1 + 29 AS col1 FROM tab1
----
126
84
87

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT + col2 + + col1 / col1 + 29 AS col1 FROM tab1
----
126
84
87

query I rowsort
SELECT ( + tab2.col1 ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3493
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL cor0.col2 * cor0.col1 + col0 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + + col0 - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col2 * - ( + col2 ) FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT DISTINCT - + col2 + - ( + col2 ) DIV col2 col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT - + col2 + - ( + col2 ) / col2 col2 FROM tab1 AS cor0
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3498
SELECT + col1 DIV CAST( + 94 AS SIGNED ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3498
SELECT + col1 / CAST ( + 94 AS INTEGER ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 27 + - cor0.col0 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab0 AS cor3
----
-62
-8
3

query I rowsort
SELECT - 38 * + col1 FROM tab2
----
-1178
-2242
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-3501
SELECT - col2 * col2 DIV col1 AS col2 FROM tab2
----
-11
-23
-84

skipif mysql # not compatible
query I rowsort label-3501
SELECT - col2 * col2 / col1 AS col2 FROM tab2
----
-11
-23
-84

query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab0, tab2 cor0
----
-17

query I rowsort
SELECT - - 29 * + cor0.col0 + col1 + - col1 FROM tab2 AS cor0
----
203
2262
2291

onlyif mysql # use DIV operator for integer division
query I rowsort label-3504
SELECT + col2 * cor0.col1 + - col0 * col0 - col1 * col0 DIV - col1 col1 FROM tab1 AS cor0
----
-3462
-5072
1398

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3504
SELECT + col2 * cor0.col1 + - col0 * col0 - col1 * col0 / - col1 col1 FROM tab1 AS cor0
----
-3462
-5072
1398

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT - col1 * - cor0.col1 DIV - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3505
SELECT - col1 * - cor0.col1 / - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + cor0.col2 * 38 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1d4e01895842b125e57163d43502c7e3

query I rowsort
SELECT - + col1 + + col1 * + col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT 63 + + col0 FROM tab2 AS cor0
----
141
142
70

query I rowsort
SELECT 41 * + col2 AS col1 FROM tab2
----
1066
1107
1558

query I rowsort
SELECT + cor1.col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ( - col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + + col1 - col1 * + ( col1 ) FROM tab2 AS cor0
----
-3500
-351
-937

query I rowsort
SELECT + ( + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + cor0.col0 + - col0 * + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT - col1 - 45 * - cor0.col1 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT DISTINCT col1 + - col2 - col2 AS col1 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT DISTINCT - ( 92 ) + col2 AS col1 FROM tab2 AS cor0
----
-54
-65
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + 2 col1 FROM tab1
----
11
24
8

query I rowsort
SELECT + col2 + col0 - - 98 FROM tab0
----
134
155
269

query I rowsort
SELECT ALL - tab1.col1 + + tab1.col2 * col0 AS col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 * col2 col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3523
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT ALL + col1 DIV - ( + cor0.col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + col1 / - ( + cor0.col1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL cor0.col2 + col0 + - col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL + col0 * - 18 FROM tab1 AS cor0
----
-1152
-1440
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-3527
SELECT DISTINCT - - ( - col2 ) * cor0.col1 + - ( col0 ) + - cor0.col0 DIV - 3 AS col0 FROM tab1 cor0
----
-1302
-1406
-613

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT - - ( - col2 ) * cor0.col1 + - ( col0 ) + - cor0.col0 / - 3 AS col0 FROM tab1 cor0
----
-1302
-1406
-613

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3528
SELECT + CAST( NULL AS SIGNED ) * + col1 + + col1 * + col2 * - tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT + CAST ( NULL AS INTEGER ) * + col1 + + col1 * + col2 * - tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - cor0.col1 col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col1 * - col0 * 91 AS col1 FROM tab2 AS cor0
----
-122213
-19747
-418782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col1 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT 18 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT - tab2.col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - col2 + - ( + col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT + - col0 + col1 * col1 DIV col0 + - col0 * + col0 FROM tab0 AS cor0
----
-292
-7917
-992

skipif mysql # not compatible
query I rowsort label-3535
SELECT + - col0 + col1 * col1 / col0 + - col0 * + col0 FROM tab0 AS cor0
----
-292
-7917
-992

query I rowsort
SELECT DISTINCT - col2 + - col1 * col0 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - col0 * 48 AS col2 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT ALL - col0 * + 37 + 94 FROM tab1
----
-17
-2274
-2866

query I rowsort
SELECT ALL col0 * - 36 + col0 * col1 FROM tab0
----
1200
2135
4895

query I rowsort
SELECT ALL + tab1.col2 * - col2 + col1 * col1 + ( - col0 ) * col1 * ( - 36 ) FROM tab1
----
19891
28393
568

onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT - col2 * col2 + col1 DIV col0 FROM tab1
----
-2908
-3249
-9216

skipif mysql # not compatible
query I rowsort label-3541
SELECT - col2 * col2 + col1 / col0 FROM tab1
----
-2908
-3249
-9216

query I rowsort
SELECT col1 + col1 * - 45 * - col1 FROM tab0
----
332906
372736
423502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - ( ( - tab2.col1 ) ) + 87 * 18 col2 FROM tab2
----
-3036
1349
223

query I rowsort
SELECT DISTINCT col2 + + 44 * 68 FROM tab0
----
2993
3025
3074

query I rowsort
SELECT ALL + col2 + - tab0.col1 * 41 AS col1 FROM tab0
----
-3493
-3649
-3976

query I rowsort
SELECT ALL - - col1 * ( col0 ) * + col1 + 59 AS col0 FROM tab1 AS cor0
----
13579
2087
6459

onlyif mysql # use DIV operator for integer division
query I rowsort label-3547
SELECT ALL + col1 + - ( + col1 ) DIV col2 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL + col1 + - ( + col1 ) / col2 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col1 * - ( + col2 ) + col0 * col0 + col0 FROM tab0
----
-2238
1163
548

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3549
SELECT col1 + CAST( NULL AS DECIMAL ) + tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3549
SELECT col1 + CAST ( NULL AS REAL ) + tab0.col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - col2 + - col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - tab1.col2 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc

query I rowsort
SELECT col0 * - 33 + ( col2 ) FROM tab2 AS cor0
----
-204
-2548
-2569

onlyif mysql # use DIV operator for integer division
query I rowsort label-3553
SELECT - - 25 DIV - 96 + + col2 * 9 * + col0 FROM tab2 AS cor0
----
1701
18252
27018

skipif mysql # not compatible
query I rowsort label-3553
SELECT - - 25 / - 96 + + col2 * 9 * + col0 FROM tab2 AS cor0
----
1701
18252
27018

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3554
SELECT ALL CAST( ( - col0 ) AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL CAST ( ( - col0 ) AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col0 * 94 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-228
-5959
-7424

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab0
----
-58

query I rowsort
SELECT tab2.col1 + + col1 * + ( col2 ) AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT 39 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT - col0 + cor0.col0 * ( + col0 ) FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL col0 * col1 + 52 * col0 AS col2 FROM tab2 AS cor0
----
5451
581
8658

query I rowsort
SELECT ALL - col1 * - cor0.col1 + cor0.col2 * col0 FROM tab0 AS cor0
----
15579
8188
9444

query I rowsort
SELECT DISTINCT + col1 + + col2 * - 80 FROM tab2 AS cor0
----
-2021
-2129
-3023

query I rowsort
SELECT ALL - - col1 * - cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 84 col2 FROM tab0 AS cor0
----
-2772
-6888
-84

query I rowsort
SELECT DISTINCT + cor0.col0 * 81 + - 51 AS col1 FROM tab2 AS cor0
----
516
6267
6348

query I rowsort
SELECT - col0 + ( 95 ) FROM tab2 AS cor0
----
16
17
88

query I rowsort
SELECT + + col1 - col0 * cor0.col0 FROM tab2 cor0
----
-18
-6025
-6224

query I rowsort
SELECT + cor0.col1 * col1 + + col1 + + col1 * col2 FROM tab2 AS cor0
----
1829
5074
952

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT col2 * - cor0.col1 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT col0 - + col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT ALL + col0 * CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * - ( cor0.col2 ) - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT - col2 + - col1 * + 17 FROM tab1 cor0
----
-227
-317
-496

query I rowsort
SELECT DISTINCT tab0.col0 * + tab0.col1 AS col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3576
SELECT col1 DIV + tab2.col0 + col1 FROM tab2
----
17
35
59

skipif mysql # not compatible
query I rowsort label-3576
SELECT col1 / + tab2.col0 + col1 FROM tab2
----
17
35
59

query I rowsort
SELECT ALL 78 * + col1 * + col1 FROM tab1
----
13182
52728
7800

query I rowsort
SELECT ALL - 52 FROM tab1, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3580
SELECT + + CAST( NULL AS SIGNED ) * cor0.col1 + + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3580
SELECT + + CAST ( NULL AS INTEGER ) * cor0.col1 + + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 19 * + col2 + - col2 AS col1 FROM tab2
----
-520
-540
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT + col0 DIV 81 - - col0 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3582
SELECT + col0 / 81 - - col0 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT + col1 * - col1 + ( col2 ) FROM tab2 cor0
----
-251
-3455
-934

query I rowsort
SELECT + col1 * cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-3585
SELECT + - 31 DIV + col1 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3585
SELECT + - 31 / + col1 FROM tab1 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab2
----
57

query I rowsort
SELECT ALL 21 * tab2.col0 FROM tab2
----
147
1638
1659

query I rowsort
SELECT DISTINCT - + col2 * col1 * - col2 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT col2 + 78 FROM tab2 AS cor0
----
104
105
116

query I rowsort
SELECT ALL + col0 + + 55 FROM tab2 AS cor0
----
133
134
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 - cor0.col2 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + tab0.col0 * col1 + col1 + + tab0.col0 FROM tab0
----
2174
3527
8279

query I rowsort
SELECT col0 - 77 AS col1 FROM tab1 cor0
----
-13
-74
3

query I rowsort
SELECT col0 * col1 + ( col0 ) AS col2 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3595
SELECT + col1 + - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT + col1 + - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 70 * 2 FROM tab2, tab0 AS cor0
----
9 values hashing to ec2e101908a0c2a3287de7292cabaa57

query I rowsort
SELECT + col2 * + ( col1 ) FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3598
SELECT + ( - 72 ) DIV + tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cf9002ffc94efb2d63003062beca780a

skipif mysql # not compatible
query I rowsort label-3598
SELECT + ( - 72 ) / + tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cf9002ffc94efb2d63003062beca780a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3599
SELECT + CAST( NULL AS SIGNED ) + + col2 * col0 / col0 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT + CAST ( NULL AS INTEGER ) + + col2 * col0 / col0 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 13 * + 79 AS col2 FROM tab0 cor0
----
-1027

query I rowsort
SELECT DISTINCT col1 + - col0 * - col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3602
SELECT DISTINCT + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - + 72 + + 60 * cor0.col2 * 90 AS col0 FROM tab0 AS cor0
----
178128
442728
5328

query I rowsort
SELECT - - ( cor0.col1 ) * col0 + - col2 AS col0 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT + + 30 + col0 + - col2 FROM tab1 AS cor0
----
-21
14
37

query I rowsort
SELECT DISTINCT + 83 * col0 + cor0.col1 + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
12617
12815
661

query I rowsort
SELECT ALL - col1 + - 54 * - col1 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT - 50 * 9 + cor0.col1 FROM tab2 AS cor0
----
-391
-419
-433

query I rowsort
SELECT DISTINCT + cor0.col1 * 26 + + cor0.col1 + - ( cor0.col1 ) * col1 FROM tab0 AS cor0
----
-5074
-5824
-6790

query I rowsort
SELECT + 45 + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 041e0bee482cca8881998543c80ebe08

onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT ALL + col1 DIV col0 + + col2 DIV col2 AS col1 FROM tab1
----
1
1
9

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL + col1 / col0 + + col2 / col2 AS col1 FROM tab1
----
1
1
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 + + cor0.col1 col1 FROM tab0 AS cor0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 5 col2 FROM tab1
----
-270
-285
-480

query I rowsort
SELECT cor0.col2 * 41 FROM tab0 AS cor0
----
1353
3362
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + col0 + + tab1.col0 * + 93 - col2 AS col2 FROM tab1
----
228
5959
7424

query I rowsort
SELECT DISTINCT - col2 - - col0 * + tab2.col0 AS col1 FROM tab2
----
22
6058
6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3618
SELECT - col2 * CAST( 89 AS SIGNED ) - - col2 FROM tab2
----
-2288
-2376
-3344

skipif mysql # not compatible
query I rowsort label-3618
SELECT - col2 * CAST ( 89 AS INTEGER ) - - col2 FROM tab2
----
-2288
-2376
-3344

query I rowsort
SELECT + tab2.col0 + - 50 + + col1 AS col0 FROM tab2
----
-12
46
87

query I rowsort
SELECT col0 * 53 AS col1 FROM tab0
----
1272
1855
4717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * 69 * 39 col0 FROM tab1 AS cor0
----
172224
215280
8073

onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT + col2 * - col0 - - col0 DIV col1 FROM tab2 AS cor0
----
-189
-2027
-2998

skipif mysql # not compatible
query I rowsort label-3622
SELECT + col2 * - col0 - - col0 / col1 FROM tab2 AS cor0
----
-189
-2027
-2998

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3623
SELECT ALL - 62 + - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - 62 + - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 38 + col1 AS col2 FROM tab2 AS cor0
----
-21
-7
21

query I rowsort
SELECT col2 * - col1 + ( col0 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT 54 * col0 * + 38 + col1 AS col0 FROM tab2
----
14395
160115
162125

onlyif mysql # use DIV operator for integer division
query I rowsort label-3627
SELECT DISTINCT - col2 DIV col0 + col2 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT - col2 / col0 + col2 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT DISTINCT - 28 * + col2 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT + col0 * + col2 - + col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-3630
SELECT ALL - col2 + col1 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - col2 + col1 / col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + - cor0.col0 - + col2 * 45 FROM tab2 AS cor0
----
-1222
-1248
-1789

query I rowsort
SELECT ALL - + 26 + - col0 AS col0 FROM tab1 AS cor0
----
-106
-29
-90

query I rowsort
SELECT ALL 12 + - col0 FROM tab1 AS cor0
----
-52
-68
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + cor0.col1 - - cor0.col2 col0 FROM tab1 AS cor0
----
167
278
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3635
SELECT ALL - col0 * - col2 * - cor0.col1 + col2 * CAST( col1 AS SIGNED ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL - col0 * - col2 * - cor0.col1 + col2 * CAST ( col1 AS INTEGER ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 + - col0 * 8 FROM tab0 AS cor0
----
-278
-377
-803

query I rowsort
SELECT ALL col2 + - 19 * col1 FROM tab2 AS cor0
----
-1095
-285
-562

query I rowsort
SELECT ALL - + col1 * - col2 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL + + col2 * - col0 * col1 FROM tab1 cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3640
SELECT - col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3640
SELECT - col2 / + col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - - col1 + - ( + col0 * - cor0.col2 ) AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + cor0.col2 * - 59 AS col0 FROM tab1 cor0
----
-3186
-3363
-5664

query I rowsort
SELECT DISTINCT 33 AS col0 FROM tab0, tab1 cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col0 FROM tab0 AS cor0
----
-2
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3645
SELECT ALL - + CAST( - col1 AS SIGNED ) * - col1 + + col1 - + 97 FROM tab2 AS cor0
----
-1027
-3519
-369

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL - + CAST ( - col1 AS INTEGER ) * - col1 + + col1 - + 97 FROM tab2 AS cor0
----
-1027
-3519
-369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * + col0 - col2 * 40 col1 FROM tab0 cor0
----
3145
4819
864

query I rowsort
SELECT DISTINCT + ( col1 ) + - col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( - col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - 66 * + 65 - + col0 * col0 FROM tab1 cor0
----
-10690
-4299
-8386

query I rowsort
SELECT - 12 + ( col2 ) AS col0 FROM tab1
----
42
45
84

query I rowsort
SELECT cor0.col0 * - col2 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL ( + col1 ) * + ( col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - - ( + col2 ) * cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3654
SELECT ALL + CAST( NULL AS SIGNED ) - + 59 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + CAST ( NULL AS INTEGER ) - + 59 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + col2 - + col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - 36 * - col2 - col2 AS col1 FROM tab1
----
1890
1995
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT col1 + col0 - + col1 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT ALL - col1 - ( + col0 ) DIV + col0 AS col2 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - col1 - ( + col0 ) / + col0 AS col2 FROM tab1
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT DISTINCT + col2 - + col2 DIV - col0 AS col1 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + col2 - + col2 / - col0 AS col1 FROM tab0
----
1
34
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT + ( - col1 ) DIV 1 AS col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3661
SELECT + ( - col1 ) / 1 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + 92 + col1 FROM tab2
----
109
123
151

query I rowsort
SELECT 92 * - col1 AS col1 FROM tab1
----
-1196
-2392
-920

query I rowsort
SELECT ALL - col0 - + col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + 35 - col2 AS col2 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * 54 FROM tab0 AS cor0
----
4611
4832
5237

onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT 54 DIV tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4650003ffa5d766d08d3882d1381b954

skipif mysql # not compatible
query I rowsort label-3667
SELECT 54 / tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4650003ffa5d766d08d3882d1381b954

query I rowsort
SELECT col1 + + ( col1 + col0 ) AS col2 FROM tab2
----
113
196
69

query I rowsort
SELECT ALL + tab0.col2 * ( col2 ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL col1 * - ( ( tab2.col0 ) ) FROM tab2
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3671
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 33 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 33 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col0 * - 72 AS col2 FROM tab0 AS cor0
----
1728
2520
6408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3673
SELECT CAST( 65 AS SIGNED ) * cor0.col0 + ( col0 ) AS col0 FROM tab2 cor0
----
462
5148
5214

skipif mysql # not compatible
query I rowsort label-3673
SELECT CAST ( 65 AS INTEGER ) * cor0.col0 + ( col0 ) AS col0 FROM tab2 cor0
----
462
5148
5214

query I rowsort
SELECT DISTINCT - col0 * - col2 + - col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3675
SELECT ALL + ( - col2 ) * + col0 * - CAST( - 68 * col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-230860
-45160024
-4631616

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL + ( - col2 ) * + col0 * - CAST ( - 68 * col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-230860
-45160024
-4631616

query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) + cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL + ( col0 ) * cor0.col1 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + + cor1.col0 + - cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4646ed87e8cc5aacb51f9b4e472c3c4b

query I rowsort
SELECT ALL 1 * ( - tab0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT DISTINCT + col1 DIV - 49 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT + col1 / - 49 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + - tab2.col1 col1 FROM tab2
----
-25
17
3

query I rowsort
SELECT DISTINCT ( - col1 ) + col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT + + 59 AS col0 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT - + 61 AS col2 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT 0 * - col2 + 81 * - col1 + + col0 FROM tab2
----
-1298
-2504
-4701

query I rowsort
SELECT + tab1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - col0 + col0 * + cor0.col1 + col1 FROM tab2 AS cor0
----
1281
241
4583

query I rowsort
SELECT + - cor0.col2 + col0 * + 84 AS col0 FROM tab0 cor0
----
1983
2939
7394

query I rowsort
SELECT + col1 + + col1 + col0 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT + col1 + cor0.col0 * ( - col1 ) + - col2 AS col0 FROM tab2 AS cor0
----
-1364
-213
-4569

query I rowsort
SELECT + col2 * col2 + + ( + col0 ) FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - col0 * 73 + 88 + col2 FROM tab2 AS cor0
----
-396
-5580
-5641

query I rowsort
SELECT + col0 + 25 AS col1 FROM tab2 AS cor0
----
103
104
32

query I rowsort
SELECT - tab2.col1 + - col1 * col0 AS col0 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT col1 + 76 * - col2 FROM tab0
----
-2422
-6141
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3696
SELECT col0 + - 3 * - col0 + + col2 * - CAST( - ( col2 ) AS SIGNED ) AS col2 FROM tab2
----
1760
757
988

skipif mysql # not compatible
query I rowsort label-3696
SELECT col0 + - 3 * - col0 + + col2 * - CAST ( - ( col2 ) AS INTEGER ) AS col2 FROM tab2
----
1760
757
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3697
SELECT + col1 + CAST( NULL AS SIGNED ) - - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3697
SELECT + col1 + CAST ( NULL AS INTEGER ) - - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + 88 FROM tab1
----
152
168
91

query I rowsort
SELECT DISTINCT + col1 + - ( + col2 ) - - tab0.col2 FROM tab0
----
86
91
97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3

query I rowsort
SELECT ALL - col1 * ( + col0 ) + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + - col2 * ( + col1 ) - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT - - cor0.col1 + ( - col2 ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - + 64 * ( + col2 ) FROM tab0 AS cor0
----
-2112
-5248
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col1 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT DISTINCT - col1 DIV col1 + - col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - col1 / col1 + - col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT DISTINCT - - col0 DIV - 56 + - col1 + - col1 * 60 FROM tab0 AS cor0
----
-5246
-5552
-5917

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT - - col0 / - 56 + - col1 + - col1 * 60 FROM tab0 AS cor0
----
-5246
-5552
-5917

query I rowsort
SELECT col0 + ( cor0.col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col2 - 30 * - cor0.col1 FROM tab2 AS cor0
----
1796
548
957

query I rowsort
SELECT + 81 AS col1 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT 19 DIV cor0.col1 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3711
SELECT 19 / cor0.col1 FROM tab1 cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT - + col0 DIV 71 + - col0 FROM tab1 AS cor0
----
-3
-64
-81

skipif mysql # not compatible
query I rowsort label-3712
SELECT - + col0 / 71 + - col0 FROM tab1 AS cor0
----
-3
-64
-81

query I rowsort
SELECT DISTINCT - 63 * ( - col1 ) * + 37 AS col0 FROM tab0 AS cor0
----
200466
212121
226107

query I rowsort
SELECT - + col0 + col0 - - col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + + 6 * col0 + - col1 + 93 AS col2 FROM tab1 AS cor0
----
467
560
85

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col1 - ( col2 * tab1.col0 ) AS col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT 50 + cor0.col1 AS col0 FROM tab1 cor0
----
60
63
76

query I rowsort
SELECT ALL - cor0.col0 + 6 * + col2 FROM tab0 AS cor0
----
-29
174
403

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 - col1 AS col1 FROM tab2 cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - 29 * - col1 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT + - 78 * + col0 FROM tab2 AS cor0
----
-546
-6084
-6162

query I rowsort
SELECT ALL col2 + + col0 * 36 AS col2 FROM tab2 cor0
----
279
2834
2882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col0 ) * - 83 * col0 col1 FROM tab2 AS cor0
----
-4067
-504972
-518003

onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT + col2 + col2 DIV CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-3726
SELECT + col2 + col2 / CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT DISTINCT col1 * + 55 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT DISTINCT col1 + + 32 FROM tab2 AS cor0
----
49
63
91

query I rowsort
SELECT 70 * col0 + + 82 AS col0 FROM tab1
----
292
4562
5682

query I rowsort
SELECT ALL col2 * + ( - col0 ) AS col2 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab2, tab0, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL 77 * + 85 AS col1 FROM tab2
----
6545
6545
6545

query I rowsort
SELECT + col1 * 89 + col1 * - col1 AS col2 FROM tab1
----
1638
790
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col0 FROM tab1 AS cor0
----
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3735
SELECT ALL + col2 * - col1 + CAST( col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL + col2 * - col1 + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT col2 * - col0 + - col2 AS col2 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT cor0.col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3738
SELECT col1 * - col1 - CAST( NULL AS SIGNED ) * + 95 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-3738
SELECT col1 * - col1 - CAST ( NULL AS INTEGER ) * + 95 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + col0 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - 48 + - col0 * 97 * col0 AS col2 FROM tab0 AS cor0
----
-118873
-55920
-768385

query I rowsort
SELECT - cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - col1 + + col0 + - 47 * - col2 FROM tab1 AS cor0
----
2515
2733
4579

query I rowsort
SELECT + - 61 * + col2 - ( col1 ) * - col0 FROM tab0 cor0
----
3097
3334
51

query I rowsort
SELECT ALL - col0 * - col0 - col1 * 48 AS col2 FROM tab1 AS cor0
----
-1239
3616
5776

query I rowsort
SELECT - ( + col0 ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( col0 ) col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT col0 * + ( col0 ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - col1 + - 14 AS col0 FROM tab2 AS cor0
----
-31
-45
-73

query I rowsort
SELECT DISTINCT + col0 + 13 * + col2 AS col2 FROM tab2 AS cor0
----
358
416
573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 54 col1 FROM tab1 AS cor0
----
28
41
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-3753
SELECT ALL - + col0 DIV col1 + 83 FROM tab0 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL - + col0 / col1 + 83 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3754
SELECT DISTINCT - + cor0.col2 + - CAST( NULL AS SIGNED ) + col1 * col1 col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - + cor0.col2 + - CAST ( NULL AS INTEGER ) + col1 * col1 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3755
SELECT col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + - col0 + + col0 * + col0 FROM tab2 AS cor0
----
11
5947
6145

query I rowsort
SELECT cor0.col0 * + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT col0 + 37 * - col0 * col0 AS col1 FROM tab1 cor0
----
-151488
-236720
-330

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT ALL + col1 + - 68 + cor0.col1 DIV + ( - col2 ) FROM tab0 AS cor0
----
-68
16
22

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + col1 + - 68 + cor0.col1 / + ( - col2 ) FROM tab0 AS cor0
----
-68
16
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3760
SELECT - + CAST( NULL AS SIGNED ) * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT - + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3761
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * - cor0.col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-3761
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * - cor0.col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT - 46 DIV 23 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3762
SELECT - 46 / 23 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
1010
6530
9565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 + + col2 col1 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT - - 88 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
105
119
147

query I rowsort
SELECT ALL + + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 89 col0 FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT - - ( col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3769
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3769
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( + col2 * - col1 AS REAL ) + 79 AS col1 FROM tab2 AS cor0
----
-119573
-50955
-5780

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * CAST ( + col2 AS REAL ) + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + col0 * + col0 + - 21 FROM tab1 cor0
----
-12
4075
6379

query I rowsort
SELECT ALL col1 + - col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 30 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT - + col2 * ( cor0.col0 ) FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT cor0.col0 + + col2 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - cor0.col2 + cor0.col0 * - col0 AS col1 FROM tab1 cor0
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-3778
SELECT ALL tab0.col0 + 10 DIV - col2 FROM tab0
----
24
25
89

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL tab0.col0 + 10 / - col2 FROM tab0
----
24
25
89

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3780
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
NULL

query I rowsort
SELECT + cor0.col0 * cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT + col1 * - col1 + - col0 FROM tab2 cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT col1 * + col2 + col1 * col2 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT ALL - ( - tab1.col0 + - col1 ) FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT - ( col0 ) * ( 64 ) - - col0 DIV - col1 FROM tab2
----
-448
-4993
-5060

skipif mysql # not compatible
query I rowsort label-3785
SELECT - ( col0 ) * ( 64 ) - - col0 / - col1 FROM tab2
----
-448
-4993
-5060

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3786
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3787
SELECT 45 * tab1.col2 - + CAST( + ( col1 ) AS SIGNED ) FROM tab1
----
2404
2555
4307

skipif mysql # not compatible
query I rowsort label-3787
SELECT 45 * tab1.col2 - + CAST ( + ( col1 ) AS INTEGER ) FROM tab1
----
2404
2555
4307

query I rowsort
SELECT ALL tab1.col0 - col2 * col0 AS col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - col2 * + tab2.col0 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - 31 + col2 * 39 FROM tab0
----
1256
3167
8

query I rowsort
SELECT DISTINCT - col2 * - 38 * ( + col0 * col2 ) AS col2 FROM tab1
----
28016640
332424
7901568

query I rowsort
SELECT - col1 * ( + col1 ) * 63 FROM tab1 AS cor0
----
-10647
-42588
-6300

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3793
SELECT - - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT - - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + col2 * tab2.col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab0, tab0 AS cor0
----
-72

query I rowsort
SELECT ALL 40 FROM tab0, tab2 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT 57 * - 54 FROM tab0 AS cor0
----
-3078
-3078
-3078

query I rowsort
SELECT - + col0 * 60 AS col0 FROM tab2 AS cor0
----
-420
-4680
-4740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3799
SELECT + CAST( NULL AS DECIMAL ) + + col2 * col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT + CAST ( NULL AS REAL ) + + col2 * col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 8 * + cor0.col1 FROM tab1 cor0
----
104
208
80

query I rowsort
SELECT DISTINCT - 6 * - 51 AS col1 FROM tab2
----
306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3803
SELECT + + 42 DIV col1 AS col0 FROM tab1 cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-3803
SELECT + + 42 / col1 AS col0 FROM tab1 cor0
----
1
3
4

query I rowsort
SELECT ALL - 92 * - col1 FROM tab0 AS cor0
----
7912
8372
8924

onlyif mysql # use DIV operator for integer division
query I rowsort label-3805
SELECT ALL + + 36 DIV + col2 + - ( - col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3805
SELECT ALL + + 36 / + col2 + - ( - col2 ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3806
SELECT DISTINCT + col2 + col0 DIV 44 AS col2 FROM tab0 AS cor0
----
1
33
84

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT + col2 + col0 / 44 AS col2 FROM tab0 AS cor0
----
1
33
84

query I rowsort
SELECT ALL - 59 * - col0 AS col1 FROM tab0 cor0
----
1416
2065
5251

query I rowsort
SELECT + - 11 * col1 FROM tab0 AS cor0
----
-1001
-1067
-946

onlyif mysql # use DIV operator for integer division
query I rowsort label-3809
SELECT DISTINCT ( col0 ) * 78 + 49 DIV col2 AS col2 FROM tab0 AS cor0
----
1873
2779
6942

skipif mysql # not compatible
query I rowsort label-3809
SELECT DISTINCT ( col0 ) * 78 + 49 / col2 AS col2 FROM tab0 AS cor0
----
1873
2779
6942

query I rowsort
SELECT DISTINCT ( + col1 ) * ( - col1 + col2 ) AS col1 FROM tab0 AS cor0
----
-4558
-819
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL - col0 * col2 + - col1 AS col2 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL + col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3815
SELECT ALL - col1 + - col2 DIV 81 FROM tab0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL - col1 + - col2 / 81 FROM tab0
----
-86
-92
-97

query I rowsort
SELECT col2 * 79 AS col0 FROM tab2 cor0
----
2054
2133
3002

query I rowsort
SELECT ALL + - col0 * + col1 + 72 FROM tab1 AS cor0
----
-568
-6
-968

query I rowsort
SELECT DISTINCT - + col1 * - 96 FROM tab1 AS cor0
----
1248
2496
960

query I rowsort
SELECT ALL col1 * - col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + col1 * + col1 + + ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT - - col2 + ( 92 ) + col1 AS col1 FROM tab2 AS cor0
----
147
150
177

query I rowsort
SELECT + ( + 43 ) AS col2 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT + + 16 + + col1 + col0 FROM tab1 AS cor0
----
109
45
90

query I rowsort
SELECT ALL - 65 + col1 FROM tab2 AS cor0
----
-34
-48
-6

query I rowsort
SELECT ALL - 64 * + 56 FROM tab2 AS cor0
----
-3584
-3584
-3584

query I rowsort
SELECT DISTINCT col1 + 68 FROM tab1 AS cor0
----
78
81
94

query I rowsort
SELECT 14 * cor0.col1 AS col1 FROM tab0 AS cor0
----
1204
1274
1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb21a77465f6a7c6b5c4c99bafc9df52

query I rowsort
SELECT DISTINCT col1 + 63 AS col1 FROM tab0 AS cor0
----
149
154
160

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT DISTINCT + + col2 DIV 69 + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT + + col2 / 69 + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + col1 - + 82 AS col1 FROM tab0 cor0
----
15
4
9

query I rowsort
SELECT ALL + col0 + col2 * col1 - + col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 19 - col0 FROM tab1
----
-45
-61
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 36 col2 FROM tab0 AS cor0
----
3096
3276
3492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 84 + cor0.col2 + col1 * - 33 * - cor0.col0 col1 FROM tab2 AS cor0
----
149708
41165
4920

query I rowsort
SELECT ALL - cor0.col0 - - ( + col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT + - col1 + + CAST( NULL AS SIGNED ) 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-3837
SELECT + - col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 + 68 FROM tab1 AS cor0
----
-1180
-1336
-502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + col2 * ( col2 ) col0 FROM tab1 AS cor0
----
2945
3278
9245

query I rowsort
SELECT + col2 * col0 * + 42 + - col2 FROM tab0 AS cor0
----
1469
306434
33231

query I rowsort
SELECT ( 56 ) + col1 FROM tab0 AS cor0
----
142
147
153

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-3843
SELECT ALL + CAST( - cor0.col1 AS SIGNED ) FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL + CAST ( - cor0.col1 AS INTEGER ) FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + 98 * col1 + - col1 FROM tab1
----
1261
2522
970

query I rowsort
SELECT DISTINCT cor0.col0 + tab2.col2 FROM tab2, tab1, tab1 cor0
----
9 values hashing to 17e6537ffee10dccd14f4a1f12215238

query I rowsort
SELECT 51 + col1 FROM tab1 cor0
----
61
64
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3847
SELECT 13 DIV + col2 + col2 * + cor0.col0 FROM tab0 AS cor0
----
48
7298
792

skipif mysql # not compatible
query I rowsort label-3847
SELECT 13 / + col2 + col2 * + cor0.col0 FROM tab0 AS cor0
----
48
7298
792

query I rowsort
SELECT ALL ( col0 ) + col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3849
SELECT col1 + cor0.col0 DIV - ( col0 ) FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3849
SELECT col1 + cor0.col0 / - ( col0 ) FROM tab2 AS cor0
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT + col2 + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-3850
SELECT + col2 + col1 / col2 AS col1 FROM tab0 AS cor0
----
35
83
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3851
SELECT ALL - - col2 + - cor0.col2 * CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - - col2 + - cor0.col2 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + 22 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT ALL + tab2.col1 + - 41 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7c4535d8941d9d862544e3b10726fed6

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 + 53 AS col1 FROM tab2 AS cor0
----
2081
242
3055

query I rowsort
SELECT + 43 * - col0 + col2 AS col2 FROM tab0 AS cor0
----
-1504
-3745
-999

query I rowsort
SELECT + - col0 * - col2 * ( col1 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - 94 + - col0 FROM tab2 AS cor0
----
-101
-172
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) + ( - col2 ) col0 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - col0 * + ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col0 * + col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - + col2 * - ( col0 * col1 ) FROM tab0 AS cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + col1 col0 FROM tab0
----
3956
4186
4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-3864
SELECT DISTINCT tab1.col0 DIV + tab1.col1 AS col0 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT tab1.col0 / + tab1.col1 AS col0 FROM tab1
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT ALL 94 + - col0 DIV col1 - 86 * + col1 FROM tab1 AS cor0
----
-1030
-2142
-772

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL 94 + - col0 / col1 - 86 * + col1 FROM tab1 AS cor0
----
-1030
-2142
-772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 32 + ( col1 ) * ( col0 ) col1 FROM tab0 AS cor0
----
2032
3363
8067

query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 - + cor0.col2 * 76 FROM tab0 cor0
----
-208
-2618
-6412

query I rowsort
SELECT ALL + col2 * + ( - col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor0.col1 - col0 * col2 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT col2 + + 49 + col1 AS col1 FROM tab0
----
147
168
222

query I rowsort
SELECT DISTINCT - tab0.col2 + tab0.col1 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT + - ( col0 ) * - col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - 12 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT ( - tab1.col2 * col0 ) + - tab1.col0 AS col0 FROM tab1
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3876
SELECT + 40 * col1 DIV tab2.col1 AS col1 FROM tab2
----
40
40
40

skipif mysql # not compatible
query I rowsort label-3876
SELECT + 40 * col1 / tab2.col1 AS col1 FROM tab2
----
40
40
40

query I rowsort
SELECT + col2 * + 43 FROM tab0
----
1419
3526
43

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT + + col2 + cor0.col0 DIV 27 AS col1 FROM tab0 AS cor0
----
2
33
85

skipif mysql # not compatible
query I rowsort label-3879
SELECT + + col2 + cor0.col0 / 27 AS col1 FROM tab0 AS cor0
----
2
33
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 47 col1 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT - cor0.col2 + 66 FROM tab0 cor0
----
-16
33
65

query I rowsort
SELECT - cor0.col0 * 73 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-245
-4682
-5853

query I rowsort
SELECT ALL + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 col1 FROM tab2, tab2 AS cor0
----
10

query I rowsort
SELECT 82 AS col0 FROM tab2 cor0
----
82
82
82

query I rowsort
SELECT - 84 + - col2 FROM tab1
----
-138
-141
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 + + col0 col1 FROM tab0
----
13
24
78

query I rowsort
SELECT + ( - col2 ) + 72 * + ( - col0 ) FROM tab0 AS cor0
----
-1761
-2521
-6490

query I rowsort
SELECT ALL - col0 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - ( + col0 + - 57 ) AS col1 FROM tab0
----
-32
22
33

query I rowsort
SELECT DISTINCT + - col2 * 69 FROM tab1 AS cor0
----
-3726
-3933
-6624

query I rowsort
SELECT DISTINCT col2 * col1 + cor0.col0 * col2 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT tab1.col1 * - 9 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2574cf6458d01677e1fbd386f422c352

query I rowsort
SELECT ( - col1 ) * + 2 - 37 FROM tab1
----
-57
-63
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3895
SELECT - col1 DIV col1 + - 15 FROM tab2
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-3895
SELECT - col1 / col1 + - 15 FROM tab2
----
-16
-16
-16

query I rowsort
SELECT + cor0.col1 * - 85 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b16e9457aef5b95bde054b096035f5db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 38 + col2 col2 FROM tab2 AS cor0
----
1205
2268
684

query I rowsort
SELECT ALL cor0.col1 * - 42 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-10546
-4075
-4701

query I rowsort
SELECT DISTINCT - col0 - + 6 * col2 * + col2 AS col0 FROM tab1 AS cor0
----
-17499
-19558
-55376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3900
SELECT + + col2 + + CAST( NULL AS SIGNED ) 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-3900
SELECT + + col2 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + ( 74 ) AS col2 FROM tab2 AS cor0
----
105
133
91

query I rowsort
SELECT DISTINCT col2 + - 62 * - 57 - cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
1532
3372
570

query I rowsort
SELECT ALL + cor0.col1 + 79 AS col1 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT ALL + + col2 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL ( + tab2.col1 ) * - col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3906
SELECT - col0 + + col0 DIV + col1 FROM tab2
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-3906
SELECT - col0 + + col0 / + col1 FROM tab2
----
-7
-75
-77

query I rowsort
SELECT col2 * + col0 + ( col2 ) AS col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT - col0 * ( col1 ) - - tab0.col2 AS col1 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3909
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 + 90 AS col1 FROM tab2 AS cor0
----
107
121
149

query I rowsort
SELECT ALL - + col0 * - col1 + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col1 + - 63 FROM tab2 AS cor0
----
-32
-4
-46

query I rowsort
SELECT + 43 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT ALL + ( col0 ) * + col1 * col2 AS col0 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 * + tab1.col1 + + col0 - + 67 * 60 col2 FROM tab1
----
-3471
-3667
-3746

onlyif mysql # use DIV operator for integer division
query I rowsort label-3916
SELECT ALL - col2 DIV col1 + ( - col0 ) * col2 - - 52 FROM tab1 AS cor0
----
-112
-3601
-7635

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL - col2 / col1 + ( - col0 ) * col2 - - 52 FROM tab1 AS cor0
----
-112
-3601
-7635

onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT ( + col1 ) * + col0 + 92 DIV 73 col1 FROM tab1
----
1041
641
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3917
SELECT ( + col1 ) * + col0 + 92 / 73 col1 FROM tab1
----
1041
641
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3918
SELECT + CAST( col0 AS SIGNED ) * - col0 - + col1 FROM tab0 AS cor0
----
-1322
-662
-8012

skipif mysql # not compatible
query I rowsort label-3918
SELECT + CAST ( col0 AS INTEGER ) * - col0 - + col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - col0 * col2 + - col1 - col0 * + col0 AS col2 FROM tab0
----
-1357
-1454
-15310

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 - tab2.col0 col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 - tab2.col0 col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) + + col2 - tab2.col2 AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT - col1 * col1 + 22 AS col1 FROM tab2 AS cor0
----
-267
-3459
-939

onlyif mysql # use DIV operator for integer division
query I rowsort label-3923
SELECT - 54 * - col2 DIV + col2 + - col2 FROM tab1
----
-3
-42
0

skipif mysql # not compatible
query I rowsort label-3923
SELECT - 54 * - col2 / + col2 + - col2 FROM tab1
----
-3
-42
0

query I rowsort
SELECT DISTINCT + 97 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1261
-2522
-970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * + col2 + - 51 col1 FROM tab2 AS cor0
----
114025
5052
52677

query I rowsort
SELECT DISTINCT + + col2 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT ALL - + col2 - col0 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - + col2 - col0 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col2 + ( - 9 ) FROM tab2 AS cor0
----
1435
667
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + cor0.col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - + col1 + + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - 10 * - col0 * - 55 AS col1 FROM tab1 AS cor0
----
-1650
-35200
-44000

query I rowsort
SELECT DISTINCT - + 64 AS col2 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - 9 * cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2574cf6458d01677e1fbd386f422c352

query I rowsort
SELECT ALL + - 34 + - col1 * - col0 AS col2 FROM tab2 cor0
----
1309
183
4568

onlyif mysql # use DIV operator for integer division
query I rowsort label-3936
SELECT ALL + tab1.col0 DIV 64 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + tab1.col0 / 64 FROM tab1
----
0
1
1

query I rowsort
SELECT ALL - 36 * + col2 FROM tab0
----
-1188
-2952
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-3938
SELECT DISTINCT + col2 DIV + col2 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT + col2 / + col2 AS col1 FROM tab1
----
1

query I rowsort
SELECT - + 92 + col1 AS col1 FROM tab0 AS cor0
----
-1
-6
5

query I rowsort
SELECT DISTINCT + - 82 + - 59 AS col1 FROM tab1 AS cor0
----
-141

query I rowsort
SELECT - - col0 * 62 + col0 FROM tab1 cor0
----
189
4032
5040

query I rowsort
SELECT + + cor0.col2 + ( + col2 ) FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3943
SELECT ALL col2 DIV 75 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
81

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL col2 / 75 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( cor0.col2 ) col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col0 * col0 + col1 * - cor0.col2 * + ( col0 ) FROM tab0 AS cor0
----
-2170
-656197
-67536

query I rowsort
SELECT - - 91 * + col1 AS col0 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT - 45 + col1 * col0 * + 84 AS col0 FROM tab2 cor0
----
112767
18183
386523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col1 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - 72 * col1 * col0 FROM tab1 AS cor0
----
-46080
-5616
-74880

query I rowsort
SELECT + - 85 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1105
-2210
-850

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - col2 * col0 + 41 FROM tab2 AS cor0
----
-148
-1987
-2961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3954
SELECT - + col0 + CAST( + col0 AS SIGNED ) * col0 FROM tab2 AS cor0
----
42
6006
6162

skipif mysql # not compatible
query I rowsort label-3954
SELECT - + col0 + CAST ( + col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT cor0.col2 * - ( col2 + + col1 ) AS col2 FROM tab0 AS cor0
----
-14186
-3927
-98

query I rowsort
SELECT - - cor0.col0 * + 55 - 89 AS col0 FROM tab0 cor0
----
1231
1836
4806

query I rowsort
SELECT ALL cor0.col1 + cor0.col1 * col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - cor0.col2 + col0 * + ( col0 ) - - cor0.col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL - + col1 * - col1 * col0 + + col2 FROM tab0 AS cor0
----
177537
329316
737091

onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT + col1 * ( col0 ) - col0 DIV col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3960
SELECT + col1 * ( col0 ) - col0 / col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 AS col2 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT DISTINCT - + col0 DIV + 78 + col1 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT - + col0 / + 78 + col1 FROM tab0 AS cor0
----
86
90
97

query I rowsort
SELECT ALL col1 + - col2 * + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( - col2 ) col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT ALL - col0 + + ( - 0 ) DIV col1 col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - col0 + + ( - 0 ) / col1 col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 35 * col1 + - cor0.col2 col2 FROM tab0 cor0
----
118824
283383
72207

query I rowsort
SELECT ALL - cor0.col1 + ( ( col2 ) * ( - 90 ) ) AS col2 FROM tab0 AS cor0
----
-187
-3056
-7471

onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT ALL - col1 - - col2 DIV - col0 AS col2 FROM tab2
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - col1 - - col2 / - col0 AS col2 FROM tab2
----
-17
-34
-59

query I rowsort
SELECT DISTINCT 19 FROM tab1, tab0 cor0, tab1 AS cor1
----
19

query I rowsort
SELECT - 72 + col1 * tab1.col0 + + col1 * col1 AS col0 FROM tab1
----
1137
668
682

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3971
SELECT DISTINCT - col2 - CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT - col2 - CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3972
SELECT - - col2 * - CAST( NULL AS DECIMAL ) * cor0.col0 + + cor0.col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3972
SELECT - - col2 * - CAST ( NULL AS REAL ) * cor0.col0 + + cor0.col1 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - + ( + col2 + - col0 ) FROM tab2 cor0
----
-47
26
3

query I rowsort
SELECT ALL col1 - + col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3975
SELECT DISTINCT + col0 + + col0 DIV col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT + col0 + + col0 / col2 FROM tab1
----
3
65
80

query I rowsort
SELECT + col1 + col1 * ( - col2 * 24 ) FROM tab2 AS cor0
----
-15487
-20057
-36757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + ( col1 * + col2 ) + + cor0.col1 col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT col0 * col1 + + 28 FROM tab1 AS cor0
----
106
1068
668

query I rowsort
SELECT + - 11 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
387
46
991

query I rowsort
SELECT ( cor0.col0 ) + col1 AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + 49 * ( col2 ) FROM tab2 AS cor0
----
1274
1323
1862

onlyif mysql # use DIV operator for integer division
query I rowsort label-3982
SELECT - col0 DIV CAST( + 69 AS SIGNED ) AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT - col0 / CAST ( + 69 AS INTEGER ) AS col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT - + col1 * + 84 + col2 FROM tab1 cor0
----
-2130
-783
-996

query I rowsort
SELECT DISTINCT 5 + 23 * cor0.col2 FROM tab1, tab0 AS cor0
----
1891
28
764

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab1, tab2 cor0
----
5

query I rowsort
SELECT DISTINCT col2 + + 49 FROM tab0
----
131
50
82

query I rowsort
SELECT - - cor0.col2 + + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 - col2 col2 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT + 61 * + 85 FROM tab1 AS cor0
----
5185
5185
5185

onlyif mysql # use DIV operator for integer division
query I rowsort label-3990
SELECT + col1 + + col1 DIV + col0 AS col2 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-3990
SELECT + col1 + + col1 / + col0 AS col2 FROM tab1
----
10
13
34

query I rowsort
SELECT ALL 23 * - col2 FROM tab1
----
-1242
-1311
-2208

onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT + cor1.col0 DIV cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d38b0634e14aec1019f26e61932e2843

skipif mysql # not compatible
query I rowsort label-3992
SELECT + cor1.col0 / cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d38b0634e14aec1019f26e61932e2843

query I rowsort
SELECT col1 + col1 * tab1.col2 AS col2 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-3994
SELECT DISTINCT + col2 + cor0.col0 + - ( 48 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
171
37
59

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + col2 + cor0.col0 + - ( 48 ) / - col0 AS col0 FROM tab0 AS cor0
----
171
37
59

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab0 cor0
----
-46

query I rowsort
SELECT - - cor0.col0 * cor0.col2 * + col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT ALL - cor0.col2 * + col2 + 33 FROM tab1 AS cor0
----
-2883
-3216
-9183

query I rowsort
SELECT ALL 64 * - col0 FROM tab0
----
-1536
-2240
-5696

query I rowsort
SELECT - col0 - cor0.col0 * + 2 AS col0 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT - 89 FROM tab1, tab2 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT + 36 AS col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - + col1 * 50 * + 95 FROM tab1 AS cor0
----
-123500
-47500
-61750

onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT - col2 DIV 1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4003
SELECT - col2 / 1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - 55 * + cor0.col1 + + cor0.col0 * + 63 FROM tab0, tab2 AS cor0
----
9 values hashing to c23cc93702ca7d74075c50e43bd64894

query I rowsort
SELECT + - col2 * ( col1 ) * + col2 AS col1 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE ( + col0 ) NOT BETWEEN NULL AND ( col0 / + col0 + - col1 )
----
-54
-57
-96

query I rowsort
SELECT ALL col0 FROM tab0 WHERE + col1 * - col2 = NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) NOT BETWEEN col0 AND - col1 * col2 + - col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( - col2 + col1 * - col1 )
----

query I rowsort
SELECT ALL + col2 * col1 + tab0.col0 AS col1 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-4012
SELECT DISTINCT - col0 DIV col1 + - tab0.col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - col0 / col1 + - tab0.col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT ALL col2 + + tab2.col2 DIV col0 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL col2 + + tab2.col2 / col0 FROM tab2
----
26
30
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 - col0 col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT col0 + - col0 * tab1.col0 + col0 * col2 FROM tab1
----
-384
1360
156

query I rowsort
SELECT cor0.col2 * cor0.col2 - + col2 AS col2 FROM tab0 AS cor0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT + col1 * col2 DIV col1 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4017
SELECT + col1 * col2 / col1 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col1 + - cor0.col0 AS col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4020
SELECT ALL + col0 * - col0 DIV + col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL + col0 * - col0 / + col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + col1 * col0 + col0 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT - col0 DIV - cor0.col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4023
SELECT - col0 / - cor0.col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4024
SELECT ALL - col2 DIV col1 AS col0 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL - col2 / col1 AS col0 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + col1 * tab0.col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 + - col0 * col0 * col2 FROM tab2 AS cor0
----
-1106
-153582
-235815

query I rowsort
SELECT - - col2 + col2 * - col2 AS col1 FROM tab0 cor0
----
-1056
-6642
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col1 OR NOT ( NULL ) <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4029
SELECT DISTINCT - col0 * col0 DIV + col1 + - col2 FROM tab0 AS cor0
----
-13
-169
-39

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - col0 * col0 / + col1 + - col2 FROM tab0 AS cor0
----
-13
-169
-39

query I rowsort
SELECT - col1 * col2 + col1 * cor0.col0 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT ALL - tab0.col1 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4032
SELECT ALL + col1 DIV tab0.col2 + ( - 71 ) FROM tab0
----
-69
-70
26

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL + col1 / tab0.col2 + ( - 71 ) FROM tab0
----
-69
-70
26

query I rowsort
SELECT DISTINCT - col0 * col0 * cor0.col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL + ( - col2 ) * col1 + 50 * col0 + ( col0 ) FROM tab0 AS cor0
----
-1614
-2923
1688

query I rowsort
SELECT DISTINCT col0 * + col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - col0 + col2 + col0 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col1 * + 75 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT col0 + + col2 + col2 FROM tab2 AS cor0
----
130
155
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4039
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) * - col1 + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) * - col1 + col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * 81 + col0 col1 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT col2 + + 96 AS col1 FROM tab1 AS cor0
----
150
153
192

query I rowsort
SELECT ALL - - col2 + cor0.col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col2 + - tab1.col0 * ( tab1.col2 ) + - col0 FROM tab1
----
-111
-3655
-7664

query I rowsort
SELECT DISTINCT col0 * col0 + col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL + ( - tab0.col1 ) + - tab0.col0 + col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - 36 + - col0 FROM tab1
----
-100
-116
-39

query I rowsort
SELECT col0 - - col2 * + col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL - cor0.col0 * - tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to aeeeb4bec4be16eaf92fcfb414a1ef1e

query I rowsort
SELECT col2 * col0 * - col0 AS col1 FROM tab2 WHERE NOT ( + col1 ) <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT + col2 + col2 DIV + col1 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4050
SELECT + col2 + col2 / + col1 AS col0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4051
SELECT DISTINCT + col2 DIV - tab0.col2 + - col1 AS col0 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT + col2 / - tab0.col2 + - col1 AS col0 FROM tab0
----
-87
-92
-98

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT col2 NOT BETWEEN col0 - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + tab1.col0 * col2 FROM tab1 WHERE NOT + col1 <= + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT ALL + col2 DIV + col1 AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL + col2 / + col1 AS col1 FROM tab2
----
0
0
2

query I rowsort
SELECT DISTINCT col0 + col1 + - col2 FROM tab0
----
131
77
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT ALL col1 * col0 DIV - col1 AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL col1 * col0 / - col1 AS col2 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4057
SELECT DISTINCT + col1 * col1 DIV + col2 FROM tab0
----
100
224
9409

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT + col1 * col1 / + col2 FROM tab0
----
100
224
9409

query III rowsort
SELECT * FROM tab1 WHERE + col0 < col2
----
3
26
54
80
13
96

query I rowsort
SELECT + col1 * col2 * + col0 AS col1 FROM tab1 WHERE NOT + col0 - col0 IN ( - col2 * + col0 )
----
36480
4212
99840

query I rowsort
SELECT ALL - col0 * col2 + col2 * col0 + - col0 * + col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT col0 + - col2 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col2 FROM tab0 WHERE col0 + - col0 NOT IN ( + col1 + + col2 )
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col2 + + col0 + - col0 * col2 * - col1 AS col2 FROM tab0 WHERE ( col1 * col1 + col0 ) <> + col0
----
3431
664289
68169

query I rowsort
SELECT col0 * col2 * - tab1.col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT col1 + + col0 - - col2 * col0 FROM tab1
----
191
3722
7773

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN ( + col0 + + col2 * + tab1.col2 * col2 ) AND col1 * + col0
----

query I rowsort
SELECT ALL - col1 + + col0 - - col0 * col1 FROM tab0
----
2002
3333
8097

query I rowsort
SELECT ALL + col2 + col2 + col1 AS col0 FROM tab1
----
124
134
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 * col0 * 83 + 19 + col1 * col2 * - col0 col0 FROM tab2
----
340021
35411
414532

query I rowsort
SELECT DISTINCT 25 + col1 * + col2 + - col2 * tab0.col0 AS col0 FROM tab0
----
189
2071
87

query I rowsort
SELECT DISTINCT + col2 + + col1 + 83 * col0 FROM tab2
----
639
6559
6612

query I rowsort
SELECT 64 + col2 FROM tab0
----
146
65
97

query I rowsort
SELECT - 26 * col2 AS col0 FROM tab1 AS cor0
----
-1404
-1482
-2496

query I rowsort
SELECT DISTINCT ( - col2 ) * 75 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT ALL - 70 * - col0 FROM tab0
----
1680
2450
6230

query I rowsort
SELECT ALL - - 41 AS col1 FROM tab1 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col0 col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - - col2 * ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - cor0.col1 * - cor0.col1 + 44 * col2 FROM tab1 AS cor0
----
2608
3052
4393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - 27 col0 FROM tab2 cor0
----
1026
702
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4081
SELECT DISTINCT + - col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT + - col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 16 + col2 * 80 * + col2 + + col2 * + col0 AS col0 FROM tab0
----
545202
87896
99

query I rowsort
SELECT ( col2 ) + + col2 AS col2 FROM tab0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4084
SELECT + col1 / CAST( NULL AS SIGNED ) + - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4084
SELECT + col1 / CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + 18 FROM tab1 AS cor0
----
-36
-39
-78

query I rowsort
SELECT - ( ( + col1 ) ) AS col1 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT ALL cor0.col1 * col0 DIV - col0 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-4087
SELECT ALL cor0.col1 * col0 / - col0 col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col1 * + col2 + + col0 * 87 * - col1 AS col0 FROM tab2 cor0
----
-116195
-18042
-398840

query I rowsort
SELECT DISTINCT + - col2 * col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4090
SELECT - ( - 44 ) * col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT - ( - 44 ) * col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 94 * - col2 col1 FROM tab2 cor0
----
2444
2538
3572

query I rowsort
SELECT DISTINCT col1 + 48 FROM tab0 AS cor0
----
134
139
145

query I rowsort
SELECT ALL + 10 * col0 + - cor0.col1 FROM tab0 AS cor0
----
154
253
799

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 * + col1 + col2 + - col0 FROM tab0 AS cor0
----
636065
753564
912639

query I rowsort
SELECT DISTINCT - ( - col0 ) + cor0.col2 * - 79 * - col1 AS col0 FROM tab2 AS cor0
----
121264
51113
66130

query I rowsort
SELECT ALL - col2 - ( col2 ) * col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT - col1 * 18 AS col1 FROM tab0 AS cor0
----
-1548
-1638
-1746

query I rowsort
SELECT ALL 48 + - 75 AS col0 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT - - cor0.col2 * col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 - ( + col1 ) AS col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT - col0 + - cor0.col2 FROM tab0 cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col2 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT + col0 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL 1 + col2 + col2 FROM tab0 AS cor0
----
165
3
67

query I rowsort
SELECT ALL - 46 AS col2 FROM tab0
----
-46
-46
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4106
SELECT CAST( 83 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
107
118
172

skipif mysql # not compatible
query I rowsort label-4106
SELECT CAST ( 83 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
107
118
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor2.col1 col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT tab1.col0 * col0 + col0 * - col1 AS col2 FROM tab1
----
-69
3456
5360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4109
SELECT CAST( + 69 AS SIGNED ) FROM tab1
----
69
69
69

skipif mysql # not compatible
query I rowsort label-4109
SELECT CAST ( + 69 AS INTEGER ) FROM tab1
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col1 FROM tab1, tab0 AS cor0
----
54

query I rowsort
SELECT ( ( tab1.col0 ) ) + + col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col0 ) col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + + 56 * 49 FROM tab2 cor0
----
2744
2744
2744

query I rowsort
SELECT DISTINCT - - col0 * + col1 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + 71 + 16 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + col0 * 52 + col2 + col0 FROM tab1 AS cor0
----
213
3449
4336

query I rowsort
SELECT DISTINCT ( ( - cor0.col1 ) ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col2 + ( col1 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col2 * col1 + - col2 * - col2 FROM tab0 AS cor0
----
14186
3927
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - ( - col0 ) * - col1 - - ( cor0.col0 ) FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4122
SELECT ALL + cor0.col0 + - cor0.col0 DIV col1 AS col0 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + cor0.col0 + - cor0.col0 / col1 AS col0 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT DISTINCT 66 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-3564
-3762
-6336

query I rowsort
SELECT + + col2 + + cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT col0 * col1 + + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT DISTINCT - ( col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL 4 * + 72 * + col1 + ( + 74 ) + - col1 AS col1 FROM tab0 AS cor0
----
24756
26191
27913

query I rowsort
SELECT ALL cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL col2 + + 81 AS col2 FROM tab1
----
135
138
177

query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + 10 + - 61 AS col2 FROM tab2
----
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4133
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 93 col1 FROM tab0, tab1 AS cor0
----
-93

query I rowsort
SELECT ALL - col2 * + cor0.col2 * col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT 24 * - col0 FROM tab2
----
-168
-1872
-1896

query I rowsort
SELECT DISTINCT col1 * + col2 - 91 AS col0 FROM tab1
----
1157
1313
479

query I rowsort
SELECT + col2 * - 64 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT col2 + ( + tab0.col1 ) + - col2 * 73 AS col0 FROM tab0
----
-2290
-5813
25

query I rowsort
SELECT DISTINCT col1 - tab0.col1 * col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL - - 11 FROM tab1, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + - col1 * 6 AS col1 FROM tab2 AS cor0
----
-102
-186
-354

query I rowsort
SELECT + + col2 * 6 - col2 FROM tab0 AS cor0
----
165
410
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4144
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * + 32 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * + 32 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + 60 col2 FROM tab2 AS cor0
----
119
77
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT ALL - cor0.col0 DIV ( col0 * col1 + col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - cor0.col0 / ( col0 * col1 + col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * col0 * cor0.col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT 51 * + tab2.col0 * col0 FROM tab2
----
2499
310284
318291

query I rowsort
SELECT ALL + + 5 + col1 * col2 FROM tab2 AS cor0
----
1539
651
842

query I rowsort
SELECT - - col2 * - ( + col2 ) + - 23 AS col2 FROM tab1 AS cor0
----
-2939
-3272
-9239

query I rowsort
SELECT ALL ( + 60 ) FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT + col2 - - col1 * col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT col0 * 8 FROM tab2 AS cor0
----
56
624
632

query I rowsort
SELECT + col1 * col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + 74 * - col0 AS col1 FROM tab2 cor0
----
-518
-5772
-5846

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 * + col2 - col0 FROM tab1 AS cor0
----
119728
32426
75813

query I rowsort
SELECT col1 + col1 + + col2 FROM tab0 cor0
----
195
205
264

query I rowsort
SELECT ALL cor0.col0 + + col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4159
SELECT DISTINCT - col1 * - col0 + + CAST( + 45 * + col1 AS SIGNED ) FROM tab2 AS cor0
----
1612
2108
7257

skipif mysql # not compatible
query I rowsort label-4159
SELECT DISTINCT - col1 * - col0 + + CAST ( + 45 * + col1 AS INTEGER ) FROM tab2 AS cor0
----
1612
2108
7257

query I rowsort
SELECT ALL - + col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + - col2 * - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - - col0 * col1 + ( - col1 ) - + col0 AS col0 FROM tab1 cor0
----
49
566
947

query I rowsort
SELECT ALL - col1 * 43 AS col1 FROM tab1 AS cor0
----
-1118
-430
-559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + cor0.col1 col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT col2 * 68 * 51 FROM tab2 cor0
----
131784
90168
93636

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4166
SELECT - cor0.col1 * CAST( - cor0.col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4166
SELECT - cor0.col1 * CAST ( - cor0.col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - 4 AS col1 FROM tab0
----
-4
-4
-4

query I rowsort
SELECT - tab1.col0 - + col2 AS col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT + 76 AS col0 FROM tab1
----
76
76
76

query I rowsort
SELECT ALL - 32 + + col1 FROM tab2
----
-1
-15
27

query I rowsort
SELECT + ( tab2.col2 * + col0 ) FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4172
SELECT ALL col2 + + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL col2 + + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col2 * - col2 - 67 AS col0 FROM tab0 cor0
----
-1123
-67
-6709

query I rowsort
SELECT DISTINCT col2 * + 37 AS col0 FROM tab2
----
1406
962
999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT - CAST( NULL AS DECIMAL ) * + col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT - CAST ( NULL AS REAL ) * + col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT + col1 DIV col1 + col1 * col1 FROM tab2
----
290
3482
962

skipif mysql # not compatible
query I rowsort label-4177
SELECT + col1 / col1 + col1 * col1 FROM tab2
----
290
3482
962

query I rowsort
SELECT DISTINCT + col1 * + 9 FROM tab2
----
153
279
531

query I rowsort
SELECT + col0 * - ( - col0 ) + col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4180
SELECT DISTINCT - col0 - + col2 DIV - 56 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT - col0 - + col2 / - 56 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 69 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-69

query I rowsort
SELECT DISTINCT ( + 10 ) FROM tab2, tab2 AS cor0
----
10

query I rowsort
SELECT ALL - 63 + + col1 - col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-61

query I rowsort
SELECT DISTINCT + 60 - - cor0.col2 FROM tab2 AS cor0
----
86
87
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4185
SELECT + - CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4185
SELECT + - CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - + ( + ( + col2 ) ) * ( + col1 ) + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT - - 49 AS col1 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT + ( + 7 ) AS col1 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT ALL - col0 * + ( + col2 ) FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col0 FROM tab0
----
-71
-71
-71

query I rowsort
SELECT + tab2.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT + col1 * + ( cor0.col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 68 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
11016
248064
522240

query I rowsort
SELECT + col1 * 51 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT ALL + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4196
SELECT DISTINCT 55 DIV + 37 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT 55 / + 37 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT col0 * 33 FROM tab0 cor0
----
1155
2937
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4198
SELECT CAST( NULL AS SIGNED ) * col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT CAST ( NULL AS INTEGER ) * col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - 12 * col1 * col2 FROM tab2
----
-10013
-18349
-7735

query I rowsort
SELECT DISTINCT 11 * col0 FROM tab0
----
264
385
979

query I rowsort
SELECT - col0 * ( - col0 ) - - 42 * + 88 * tab1.col2 AS col2 FROM tab1
----
199593
214768
361216

query I rowsort
SELECT - cor0.col0 * + cor1.col2 + cor1.col2 * - cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7ef588ba4d70025130c1de3fb1c54993

query I rowsort
SELECT - - 96 * - col2 AS col0 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT + + ( - col1 ) + + ( col0 ) AS col0 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT DISTINCT - col2 * - col0 DIV tab2.col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT - col2 * - col0 / tab2.col0 FROM tab2
----
26
27
38

query I rowsort
SELECT + ( + ( col0 ) ) FROM tab1
----
3
64
80

query I rowsort
SELECT col2 + - col1 * - ( col2 + - col0 * + 8 ) FROM tab1 AS cor0
----
-4493
-6976
834

query I rowsort
SELECT + - col1 + + col1 + + 7 * col0 AS col1 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT ALL col1 * 19 * + 90 FROM tab1 AS cor0
----
17100
22230
44460

query I rowsort
SELECT - col0 + + 65 * + 31 FROM tab1 AS cor0
----
1935
1951
2012

query I rowsort
SELECT + cor0.col0 + 94 FROM tab2 AS cor0
----
101
172
173

query I rowsort
SELECT - + cor0.col2 + 52 AS col0 FROM tab0 AS cor0
----
-30
19
51

query I rowsort
SELECT - 91 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT DISTINCT - col0 * - col2 + - ( tab1.col0 ) FROM tab1
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4215
SELECT cor0.col1 - + ( col1 ) DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-4215
SELECT cor0.col1 - + ( col1 ) / cor0.col1 AS col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - col2 * + col1 + 66 * col1 FROM tab1 AS cor0
----
-390
312
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4217
SELECT col1 + + CAST( + cor0.col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-4217
SELECT col1 + + CAST ( + cor0.col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - cor0.col2 + - 13 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 41aed44ce2ff356ae500be0ac0cff534

query I rowsort
SELECT + + 53 + col1 AS col0 FROM tab2 AS cor0
----
112
70
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * + col1 col1 FROM tab1 AS cor0
----
1131
2262
870

query I rowsort
SELECT 66 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT col1 * + col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + 94 + - col1 * + ( cor0.col0 ) * col0 FROM tab0 AS cor0
----
-118731
-49442
-720717

query I rowsort
SELECT ALL + 29 + - col1 AS col1 FROM tab0 AS cor0
----
-57
-62
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4225
SELECT 81 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4225
SELECT 81 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT DISTINCT col2 + col0 * cor0.col1 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 + col0 * - col2 col0 FROM tab0 AS cor0
----
-7120
-744
35

query I rowsort
SELECT + - col2 * - col1 + col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL + 1 AS col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT col2 - cor0.col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4230
SELECT col2 - cor0.col2 / - col2 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL cor0.col0 * col1 - ( col0 ) FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT ( col2 ) * 24 * + col2 + + col2 FROM tab1 AS cor0
----
221280
70038
78033

query I rowsort
SELECT ALL col1 * cor0.col0 + - 10 - - col1 * col1 FROM tab2 AS cor0
----
1168
1622
8073

query I rowsort
SELECT ALL cor0.col1 + + ( tab1.col0 ) + tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 555879995b0276b7b13d3eb7c56ca166

query I rowsort
SELECT ( - tab0.col1 * col2 ) + ( col0 * - col1 ) - - 13 AS col0 FROM tab0
----
-15548
-3479
-4889

query I rowsort
SELECT DISTINCT tab2.col2 * + col2 - 33 FROM tab2
----
1411
643
696

query I rowsort
SELECT ( col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4238
SELECT DISTINCT - - CAST( col2 AS SIGNED ) - + col2 * + cor0.col1 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) - + col2 * + cor0.col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT + ( tab0.col1 * tab0.col2 ) AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - ( col0 ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + 64 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT + + col0 * + col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4245
SELECT ( col1 ) DIV col1 + ( col2 ) FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4245
SELECT ( col1 ) / col1 + ( col2 ) FROM tab1
----
55
58
97

query I rowsort
SELECT + tab2.col2 + col2 * - col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT 59 * col0 AS col1 FROM tab1 AS cor0
----
177
3776
4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT ALL + - cor0.col0 DIV col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + - cor0.col0 / col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 * col1 + col1 + + col2 FROM tab2 AS cor0
----
1019
344
3566

query I rowsort
SELECT ALL - col2 + + cor0.col2 * 96 AS col2 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT ALL + ( - col2 ) + 11 * - cor0.col2 FROM tab2 AS cor0
----
-312
-324
-456

onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT DISTINCT - + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT - + col2 / col0 AS col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - col1 + 25 AS col0 FROM tab0
----
-61
-66
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4254
SELECT ALL - col1 DIV col2 + - col2 FROM tab0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - col1 / col2 + - col2 FROM tab0
----
-35
-83
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 55 * col2 col1 FROM tab2
----
1492
1508
2169

query I rowsort
SELECT - col0 * - 44 AS col2 FROM tab0
----
1056
1540
3916

query I rowsort
SELECT DISTINCT - col2 * + tab0.col1 + - col2 + col1 FROM tab0
----
-1
-2785
-7453

query I rowsort
SELECT DISTINCT + - 60 FROM tab2, tab2 AS cor0
----
-60

query I rowsort
SELECT col0 + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + + col0 * + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + + ( + col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + + col1 * + cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - 5 * + col0 FROM tab0 cor0
----
-120
-175
-445

query I rowsort
SELECT ALL + - 51 * + col2 FROM tab1 AS cor0
----
-2754
-2907
-4896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4265
SELECT CAST( 82 AS SIGNED ) * col0 FROM tab0 cor0
----
1968
2870
7298

skipif mysql # not compatible
query I rowsort label-4265
SELECT CAST ( 82 AS INTEGER ) * col0 FROM tab0 cor0
----
1968
2870
7298

query I rowsort
SELECT ALL col0 * 11 + - col1 * - 51 AS col0 FROM tab0 AS cor0
----
4650
5332
5620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4267
SELECT ALL - CAST( 69 AS SIGNED ) FROM tab2 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - CAST ( 69 AS INTEGER ) FROM tab2 AS cor0
----
-69
-69
-69

query I rowsort
SELECT + 57 + - col1 * col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-13463
-1971
-6343

query I rowsort
SELECT DISTINCT + ( - col1 ) * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * ( + tab1.col1 ) col0 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT col1 + ( col2 ) FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT - - col1 DIV ( col2 + + 69 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4272
SELECT - - col1 / ( col2 + + 69 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT DISTINCT + + ( cor0.col0 ) * col0 DIV + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
0
66
71

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT + + ( cor0.col0 ) * col0 / + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
0
66
71

query I rowsort
SELECT DISTINCT - + col1 * col0 + 63 FROM tab0 AS cor0
----
-2001
-3332
-8036

query I rowsort
SELECT DISTINCT cor0.col2 * - ( col0 ) + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL - col2 * col0 + 85 * + col2 FROM tab0 AS cor0
----
-328
2013
50

query I rowsort
SELECT DISTINCT - col0 + + col2 * col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + - cor0.col0 * - ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col0 * ( 71 ) AS col0 FROM tab2 cor0
----
-497
-5538
-5609

query I rowsort
SELECT col2 + col0 * + ( col0 ) FROM tab2
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4282
SELECT ALL - tab0.col1 * - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - tab0.col1 * - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col0 FROM tab2
----
89
89
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4284
SELECT ALL - tab1.col2 DIV + ( 36 ) AS col1 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - tab1.col2 / + ( 36 ) AS col1 FROM tab1
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 col1 FROM tab0, tab0 AS cor0
----
3

query I rowsort
SELECT + 12 * + col0 AS col1 FROM tab0 AS cor0
----
1068
288
420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 44 col1 FROM tab0 AS cor0
----
-3784
-4004
-4268

query I rowsort
SELECT + tab1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - cor0.col1 * - col1 + 26 * - col1 AS col2 FROM tab1 AS cor0
----
-160
-169
0

query I rowsort
SELECT cor0.col2 + + col1 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + 59 * cor0.col1 FROM tab0 AS cor0
----
5074
5369
5723

query I rowsort
SELECT ALL + + col1 * - cor0.col2 + 31 FROM tab1 AS cor0
----
-1217
-1373
-539

onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT ALL + col2 + - col1 DIV ( + 63 ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL + col2 + - col1 / ( + 63 ) FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4294
SELECT ( 67 ) + col1 + - CAST( - 56 AS SIGNED ) * tab2.col2 AS col2 FROM tab2
----
1582
1610
2212

skipif mysql # not compatible
query I rowsort label-4294
SELECT ( 67 ) + col1 + - CAST ( - 56 AS INTEGER ) * tab2.col2 AS col2 FROM tab2
----
1582
1610
2212

query I rowsort
SELECT - 9 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4296
SELECT DISTINCT - 72 * tab1.col0 + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT - 72 * tab1.col0 + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col1 col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT col2 * 4 AS col0 FROM tab0
----
132
328
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4299
SELECT DISTINCT col0 * col2 * - col2 + + col0 * 56 DIV + col1 AS col2 FROM tab0
----
-15
-26121
-598382

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT col0 * col2 * - col2 + + col0 * 56 / + col1 AS col2 FROM tab0
----
-15
-26121
-598382

query I rowsort
SELECT DISTINCT + col2 + col0 + col2 AS col0 FROM tab1
----
111
178
272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4301
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4301
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 35 * + ( - cor1.col0 ) + - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9df10a0150554636c468293cf00aebe9

query I rowsort
SELECT col1 + col2 * 16 FROM tab2
----
463
475
625

query I rowsort
SELECT ALL + col1 + - col1 * col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - 2 + cor0.col2 FROM tab2 AS cor0
----
24
25
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4306
SELECT DISTINCT + col1 * - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT + col1 * - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT ALL - 22 + + cor0.col2 DIV - cor0.col2 + col1 * + col1 FROM tab1 AS cor0
----
146
653
77

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - 22 + + cor0.col2 / - cor0.col2 + col1 * + col1 FROM tab1 AS cor0
----
146
653
77

query I rowsort
SELECT ALL - col1 * - col0 + + 33 AS col0 FROM tab0 AS cor0
----
2097
3428
8132

onlyif mysql # use DIV operator for integer division
query I rowsort label-4309
SELECT DISTINCT + ( - col0 ) + - col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT + ( - col0 ) + - col0 / - col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT - + col1 + + cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ( + col2 ) AS col2 FROM tab2 cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4312
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4312
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col0 * col2 * - 40 FROM tab1
----
-145920
-307200
-6480

query I rowsort
SELECT + - col1 * + col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - - col1 - 40 * col1 AS col1 FROM tab2 AS cor0
----
-1209
-2301
-663

query I rowsort
SELECT ALL col2 * - col1 * 0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 99 * + col2 FROM tab1
----
5346
5643
9504

query I rowsort
SELECT ALL - 84 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT DISTINCT - col1 DIV + col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT - col1 / + col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 70 col1 FROM tab2 cor0
----
148
149
77

query I rowsort
SELECT col1 + + 25 * - ( + cor0.col0 ) FROM tab0 AS cor0
----
-2134
-514
-778

query I rowsort
SELECT cor0.col0 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col0 + - 37 * 69 FROM tab2 cor0
----
-2474
-2475
-2546

query I rowsort
SELECT - 63 + col1 * - col1 + - ( + col2 ) * - col1 AS col0 FROM tab1 AS cor0
----
1016
407
665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4326
SELECT ALL + CAST( NULL AS DECIMAL ) + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL + CAST ( NULL AS REAL ) + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 43 * 3 AS col0 FROM tab1
----
-129
-129
-129

query I rowsort
SELECT + 61 * col0 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT ALL - 79 * ( - col2 ) * 78 + + col1 + col1 FROM tab1 AS cor0
----
332800
351254
591578

query I rowsort
SELECT ( cor0.col0 ) + + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + + col2 + 9 AS col2 FROM tab2 AS cor0
----
35
36
47

query I rowsort
SELECT DISTINCT + + 70 FROM tab1 AS cor0
----
70

query I rowsort
SELECT + col1 * + col0 + 69 FROM tab1 AS cor0
----
1109
147
709

query I rowsort
SELECT ALL - tab2.col1 * + col1 * + col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col0 + + col1 * col0 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT - + col2 * col1 * + col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT ALL cor0.col1 + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL cor0.col1 + col1 / + col1 AS col1 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 col1 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + - cor0.col2 * + col1 - - cor0.col2 * - col2 AS col1 FROM tab0 cor0
----
-14186
-3927
-98

query I rowsort
SELECT ALL + + col2 * - col2 * col2 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-35851
-551277
96

query I rowsort
SELECT DISTINCT - col0 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4343
SELECT ALL + - col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL + - col0 / col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT - col1 + col1 * - col1 * - col1 FROM tab0 AS cor0
----
635970
753480
912576

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT ALL col1 DIV - col1 + + col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL col1 / - col1 + + col1 FROM tab2
----
16
30
58

query I rowsort
SELECT col1 * + col2 + + col2 * + col2 FROM tab2
----
1566
2090
2210

query I rowsort
SELECT DISTINCT + col1 * - col2 * col1 + col1 AS col2 FROM tab2 cor0
----
-10965
-25916
-90447

query I rowsort
SELECT ALL + col0 + + cor0.col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col1 * - col2 + - cor0.col1 FROM tab2 cor0
----
-1057
-3621
-3665

query I rowsort
SELECT + + 29 * - cor0.col2 * + col0 FROM tab2 cor0
----
-5481
-58812
-87058

query I rowsort
SELECT - col2 * cor0.col0 + col2 * col2 FROM tab2 AS cor0
----
-1352
-1558
540

query I rowsort
SELECT ALL - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - - col0 * col0 * + col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT ALL col2 + col1 * + col0 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT col0 - col0 AS col2 FROM tab2 WHERE NOT col0 BETWEEN NULL AND - col0
----
0
0
0

query I rowsort
SELECT - col2 + tab0.col2 * + col1 FROM tab0
----
2805
7380
96

query I rowsort
SELECT col2 FROM tab0 WHERE - col0 <= col2
----
1
33
82

query I rowsort
SELECT ALL - col2 + + col1 * col0 * + col1 FROM tab2
----
22793
271492
6700

query I rowsort
SELECT col0 * - col1 + col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT + col1 + + col0 AS col1 FROM tab2 WHERE ( NULL ) NOT IN ( tab2.col0 )
----

query I rowsort
SELECT ALL col1 + - col0 + - col2 * col2 * col1 AS col0 FROM tab0
----
-35
-611882
-93592

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + tab0.col1 * col0 * - col2 )
----

query I rowsort
SELECT DISTINCT col0 * col2 * col1 + col2 AS col2 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT + col0 * - col0 FROM tab2 WHERE NOT ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT ALL + col2 + + col1 AS col2 FROM tab0 WHERE NOT col1 NOT IN ( + col2 * col1 )
----
98

query I rowsort
SELECT - col1 + col0 * + tab2.col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT col1 + + col2 - + col1 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + + col2 + + col1 * + 38 FROM tab2 AS cor0
----
1205
2268
684

query I rowsort
SELECT + col0 * col0 * col1 - + col1 * col0 * - tab0.col2 AS col2 FROM tab0
----
117648
122220
1384929

query I rowsort
SELECT + col2 + col0 * + col1 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4372
SELECT col2 + tab1.col1 DIV col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4372
SELECT col2 + tab1.col1 / col2 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL tab2.col1 FROM tab2 WHERE NOT col2 * tab2.col1 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 ) > + tab1.col2
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT ALL cor0.col2 DIV - col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL cor0.col2 / - col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL col0 * col1 + cor0.col1 AS col1 FROM tab1 cor0 WHERE NULL > ( col1 )
----

query I rowsort
SELECT col2 + + tab0.col2 - - col2 * col0 AS col1 FROM tab0
----
37
7462
858

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 INNER JOIN tab2 ON NOT NULL <> ( NULL )
----

query I rowsort
SELECT tab1.col0 * - col2 * col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT col0 * col0 AS col1 FROM tab1 WHERE - col2 / - col2 + col1 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL col1 * + tab1.col1 * col1 + col0 FROM tab1
----
1064
17579
2277

query I rowsort
SELECT + col0 * col2 + + col0 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT tab1.col1 * + col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - col2 * + col0 * col2 FROM tab0
----
-26136
-35
-598436

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col2 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * - col2 + - col2 col1 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT - col0 * - col0 + + col2 * + col2 AS col1 FROM tab0
----
1226
14645
1665

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 * col2 + - col0 ) NOT BETWEEN col2 AND col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col1 + cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query III rowsort label-4391
SELECT * FROM tab1 AS cor0 WHERE col0 + col1 DIV - col2 NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4391
SELECT * FROM tab1 AS cor0 WHERE col0 + col1 / - col2 NOT BETWEEN + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + + col0 / + col0 > NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 * col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - col1 * + col2 * col2 + + col0 AS col2 FROM tab0
----
-611795
-62
-93630

query I rowsort
SELECT col0 FROM tab0 WHERE + col2 / col1 + col1 * col1 BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT DISTINCT - col0 + col0 DIV - col2 AS col2 FROM tab1
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT - col0 + col0 / - col2 AS col2 FROM tab1
----
-3
-65
-80

query I rowsort
SELECT + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + ( + 28 ) + + col1 AS col2 FROM tab0 cor0
----
114
119
125

onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT DISTINCT - - 79 + col1 DIV - col0 AS col0 FROM tab2 cor0
----
75
79

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT - - 79 + col1 / - col0 AS col0 FROM tab2 cor0
----
75
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4401
SELECT - + col1 + col0 * col1 DIV col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4401
SELECT - + col1 + col0 * col1 / col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4402
SELECT - CAST( - col2 AS SIGNED ) * col2 + ( col2 ) FROM tab0 AS cor0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-4402
SELECT - CAST ( - col2 AS INTEGER ) * col2 + ( col2 ) FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4403
SELECT + CAST( + col0 AS SIGNED ) + col2 AS col2 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4403
SELECT + CAST ( + col0 AS INTEGER ) + col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + ( - col0 ) + - 39 * 78 FROM tab0 AS cor0
----
-3066
-3077
-3131

query I rowsort
SELECT + ( - col2 ) * + 24 + col0 FROM tab0 AS cor0
----
-1879
-768
11

query I rowsort
SELECT - col0 * col2 + col1 * - col0 FROM tab1 AS cor0
----
-240
-4288
-8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4407
SELECT - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4407
SELECT - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + 53 AS col2 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT - - cor0.col0 + 35 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT 53 * col0 + col1 AS col0 FROM tab2 AS cor0
----
402
4193
4204

query I rowsort
SELECT - col0 * 83 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT + col2 * ( col1 * + col0 ) AS col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4413
SELECT DISTINCT col2 DIV + tab1.col1 + - tab1.col2 * + col1 AS col0 FROM tab1
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT col2 / + tab1.col1 + - tab1.col2 * + col1 AS col0 FROM tab1
----
-1241
-1402
-565

query I rowsort
SELECT col0 * ( ( col2 ) ) * + 8 FROM tab1
----
1296
29184
61440

query I rowsort
SELECT - ( 38 ) + + col1 AS col0 FROM tab1 AS cor0
----
-12
-25
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4416
SELECT + 82 DIV col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-4416
SELECT + 82 / col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT 10 * tab2.col1 FROM tab2
----
170
310
590

query I rowsort
SELECT DISTINCT 86 * - cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
-4644
-4902
-8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * + col2 col1 FROM tab1
----
3294
3477
5856

query I rowsort
SELECT ALL - + 17 AS col0 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL col1 - cor0.col2 * col2 * col0 FROM tab1 AS cor0
----
-207926
-737267
-8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT DISTINCT - cor0.col2 DIV cor0.col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - cor0.col2 / cor0.col1 AS col1 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT - cor0.col1 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL 13 * tab1.col0 FROM tab1
----
1040
39
832

query I rowsort
SELECT ALL + 98 - + col2 AS col1 FROM tab2
----
60
71
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( - col0 ) + col1 ) col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col2 - tab0.col1 AS col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT 44 + + 76 AS col2 FROM tab0
----
120

query I rowsort
SELECT col2 + col2 * tab0.col0 + col2 AS col2 FROM tab0
----
37
7462
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) - + col2 col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT - 51 - col1 AS col1 FROM tab1
----
-61
-64
-77

query I rowsort
SELECT col2 + tab0.col2 + tab0.col1 AS col2 FROM tab0
----
152
255
99

query I rowsort
SELECT ALL - col1 - 5 AS col0 FROM tab1
----
-15
-18
-31

query I rowsort
SELECT - col0 + tab2.col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 52 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT DISTINCT + ( - col0 ) * 66 FROM tab2
----
-462
-5148
-5214

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4437
SELECT - col1 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4437
SELECT - col1 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col2 * col1 + + ( col0 ) FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT col1 * + col0 + + col0 * - cor0.col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + cor0.col0 * col0 * + col1 + col0 FROM tab2 AS cor0
----
106176
1526
359034

query I rowsort
SELECT DISTINCT col0 * - col1 + + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT 25 - col1 AS col1 FROM tab0
----
-61
-66
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 + tab0.col2 * + col1 col2 FROM tab0
----
133
2874
7498

query I rowsort
SELECT DISTINCT col1 + col0 * + 45 FROM tab1
----
161
2890
3613

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4445
SELECT tab2.col2 + + tab2.col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4445
SELECT tab2.col2 + + tab2.col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * 16 * col1 FROM tab2 AS cor0
----
15376
4624
55696

query I rowsort
SELECT ALL + col1 + + 4 AS col0 FROM tab1 AS cor0
----
14
17
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-4448
SELECT ALL - - col1 DIV + ( - col2 ) + - col0 DIV ( - col0 + col2 ) AS col1 FROM tab0 AS cor0
----
-4
-96
11

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL - - col1 / + ( - col2 ) + - col0 / ( - col0 + col2 ) AS col1 FROM tab0 AS cor0
----
-4
-96
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 63 col0 FROM tab0 AS cor0
----
-26
28
39

query I rowsort
SELECT col1 + + 47 FROM tab2 cor0
----
106
64
78

query I rowsort
SELECT - 59 + - col2 * col1 AS col1 FROM tab2 cor0
----
-1593
-705
-896

onlyif mysql # use DIV operator for integer division
query I rowsort label-4452
SELECT + cor0.col2 DIV - 38 - col1 FROM tab2 AS cor0
----
-18
-31
-59

skipif mysql # not compatible
query I rowsort label-4452
SELECT + cor0.col2 / - 38 - col1 FROM tab2 AS cor0
----
-18
-31
-59

query I rowsort
SELECT + - cor0.col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + 68 + col1 * col2 FROM tab2 AS cor0
----
1602
714
905

query I rowsort
SELECT 57 * tab1.col1 FROM tab1
----
1482
570
741

query I rowsort
SELECT + 39 + + col0 AS col2 FROM tab2 AS cor0
----
117
118
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4457
SELECT ALL 94 * tab1.col0 DIV tab1.col1 + + 42 AS col1 FROM tab1
----
52
620
643

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL 94 * tab1.col0 / tab1.col1 + + 42 AS col1 FROM tab1
----
52
620
643

query I rowsort
SELECT - cor0.col0 * col1 + col0 * + col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT + ( col0 ) DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4459
SELECT + ( col0 ) / - cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - + cor0.col2 + col1 AS col1 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT - + col1 DIV col2 + + 69 * col1 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
12
33
9

skipif mysql # not compatible
query I rowsort label-4461
SELECT - + col1 / col2 + + 69 * col1 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
12
33
9

query I rowsort
SELECT ALL - col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL + col1 + col1 * - col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1196
-728
-730

query I rowsort
SELECT ALL - 88 * col2 AS col0 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT - col1 * - col1 + - ( 57 + + col1 ) * + ( cor0.col1 ) FROM tab2 cor0
----
-1767
-3363
-969

query I rowsort
SELECT DISTINCT + - col1 + + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT cor0.col1 * col0 + + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - cor0.col0 * col1 * + 49 AS col1 FROM tab1 AS cor0
----
-31360
-3822
-50960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + ( 36 ) - - col0 col1 FROM tab0 AS cor0
----
-26
-26
34

query I rowsort
SELECT - col1 + + cor0.col1 * 2 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + + 1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col1 * cor0.col0 * + 52 FROM tab2 AS cor0
----
11284
239304
69836

query I rowsort
SELECT cor0.col2 + + col0 * + col1 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 col2 FROM tab1 AS cor0
----
76

query I rowsort
SELECT DISTINCT - 67 + + 5 + col0 FROM tab1 cor0
----
-59
18
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + ( col0 + - col0 ) * col1 col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + cor0.col2 * + ( col1 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4478
SELECT ALL - CAST( + col2 AS SIGNED ) + col2 * cor0.col0 + + col1 * col1 col2 FROM tab2 AS cor0
----
1123
3253
5483

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL - CAST ( + col2 AS INTEGER ) + col2 * cor0.col0 + + col1 * col1 col2 FROM tab2 AS cor0
----
1123
3253
5483

query I rowsort
SELECT ALL - + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL 8 * ( col1 ) FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT DISTINCT + col1 - 42 AS col2 FROM tab2
----
-11
-25
17

query I rowsort
SELECT - - 41 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2957
3290
9257

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT ALL + 91 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-13

skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + 91 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-13

query I rowsort
SELECT ALL - col2 + 69 - + col0 * + col1 FROM tab1
----
-1067
-628
-63

query I rowsort
SELECT + ( tab1.col2 * col0 ) + - col0 FROM tab1
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4486
SELECT ALL col0 * - CAST( + col2 AS SIGNED ) + - tab1.col2 FROM tab1
----
-216
-3705
-7776

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL col0 * - CAST ( + col2 AS INTEGER ) + - tab1.col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT - col1 * col1 * 6 AS col0 FROM tab2
----
-1734
-20886
-5766

onlyif mysql # use DIV operator for integer division
query I rowsort label-4488
SELECT DISTINCT col1 DIV 70 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4488
SELECT DISTINCT col1 / 70 FROM tab0
----
1

query I rowsort
SELECT DISTINCT + col2 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + ( + ( + col0 ) ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 * + col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 9124b06d33995d82062026964cce3a38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4493
SELECT + 56 DIV col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4493
SELECT + 56 / col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 95 * col2 AS col0 FROM tab0
----
-3135
-7790
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4495
SELECT DISTINCT col1 + col0 DIV 25 + col1 AS col2 FROM tab0 AS cor0
----
172
185
195

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT col1 + col0 / 25 + col1 AS col2 FROM tab0 AS cor0
----
172
185
195

query I rowsort
SELECT ALL + 24 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT DISTINCT col1 * + col0 + - 12 + + col2 AS col2 FROM tab2 AS cor0
----
1369
232
4616

query I rowsort
SELECT DISTINCT - - col0 * col2 + + 93 * col1 FROM tab1 AS cor0
----
2580
4578
8889

query I rowsort
SELECT 3 * + col2 AS col2 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT - + col2 * - ( col0 ) - cor0.col1 * + ( + col2 + col2 ) * ( - col0 ) FROM tab0 AS cor0
----
1335534
137016
6825

query I rowsort
SELECT col2 + - ( col1 ) * - col2 FROM tab2 cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4502
SELECT DISTINCT + col0 + CAST( - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-4502
SELECT DISTINCT + col0 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT - col2 DIV - 80 - - col2 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4503
SELECT - col2 / - 80 - - col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + col1 * - col2 + 25 FROM tab0 AS cor0
----
-2813
-72
-7437

query I rowsort
SELECT DISTINCT col0 * + col1 - col0 AS col0 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT + - col1 - + col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4507
SELECT + col2 * CAST( NULL AS DECIMAL ) - 66 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT + col2 * CAST ( NULL AS REAL ) - 66 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 22 - col2 FROM tab1
----
-32
-35
-74

query I rowsort
SELECT + cor0.col1 + cor0.col1 + - col0 * - col1 FROM tab2 AS cor0
----
1377
279
4720

query I rowsort
SELECT cor0.col1 * - 92 AS col1 FROM tab1 AS cor0
----
-1196
-2392
-920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT ALL - tab0.col2 DIV + col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - tab0.col2 / + col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT ALL + col0 * 67 DIV col1 col1 FROM tab2 AS cor0
----
15
311
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL + col0 * 67 / col1 col1 FROM tab2 AS cor0
----
15
311
88

query I rowsort
SELECT + col0 * col0 + col0 - + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - + ( - col1 ) + col0 + - col1 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col1 + + 46 * - col2 FROM tab2 AS cor0
----
-1137
-1211
-1731

onlyif mysql # use DIV operator for integer division
query I rowsort label-4516
SELECT ( 91 ) * cor0.col1 DIV - ( - col0 ) + col1 * - ( - 78 ) * col1 FROM tab1 AS cor0
----
13196
53516
7814

skipif mysql # not compatible
query I rowsort label-4516
SELECT ( 91 ) * cor0.col1 / - ( - col0 ) + col1 * - ( - 78 ) * col1 FROM tab1 AS cor0
----
13196
53516
7814

query I rowsort
SELECT - col2 + 71 FROM tab2 cor0
----
33
44
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4518
SELECT tab1.col0 DIV 89 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT tab1.col0 / 89 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 * + 96 AS col2 FROM tab2
----
2496
2592
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-4520
SELECT + col1 DIV - ( - ( + col0 ) + - CAST( col2 AS SIGNED ) ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4520
SELECT + col1 / - ( - ( + col0 ) + - CAST ( col2 AS INTEGER ) ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 * + 32 FROM tab1
----
1728
1824
3072

query I rowsort
SELECT - ( cor0.col0 ) + - col1 * + cor0.col1 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT - - 11 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4523
SELECT - - 11 / + col0 AS col0 FROM tab1 AS cor0
----
0
0
3

query I rowsort
SELECT - ( - col2 ) * - ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col1 * cor0.col2 + - ( 53 ) * - col1 AS col0 FROM tab1 AS cor0
----
1100
1937
2782

query I rowsort
SELECT ALL 54 * 64 FROM tab2
----
3456
3456
3456

query I rowsort
SELECT 37 AS col0 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT - ( + col1 + col2 ) FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - 77 * col1 FROM tab2 AS cor0
----
-1309
-2387
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4530
SELECT ALL - cor0.col0 DIV 89 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - cor0.col0 / 89 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + col0 ) * col1 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT DISTINCT CAST( NULL AS SIGNED ) + + tab0.col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + tab0.col1 FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4533
SELECT + 19 * + tab1.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4533
SELECT + 19 * + tab1.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4534
SELECT ( col0 ) DIV col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4534
SELECT ( col0 ) / col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4535
SELECT DISTINCT cor0.col0 DIV col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT cor0.col0 / col0 FROM tab0 cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4536
SELECT DISTINCT - + CAST( col1 AS SIGNED ) * col0 + 28 FROM tab1 AS cor0
----
-1012
-50
-612

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) * col0 + 28 FROM tab1 AS cor0
----
-1012
-50
-612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 1 col1 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 35 col1 FROM tab1
----
1890
1995
3360

query I rowsort
SELECT ( + col2 ) * + col0 + col0 * - 1 * + col0 AS col2 FROM tab2 AS cor0
----
-3239
-4056
140

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4540
SELECT ALL - + col1 * - cor0.col0 * + CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - + col1 * - cor0.col0 * + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 80 * - col0 AS col1 FROM tab2 AS cor0
----
-560
-6240
-6320

query I rowsort
SELECT ALL - col1 + - 49 * col2 + - col0 * + col0 FROM tab2
----
-1403
-7417
-8120

query I rowsort
SELECT DISTINCT col2 + tab0.col2 * + col2 AS col0 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT + - 99 * col1 AS col2 FROM tab2 AS cor0
----
-1683
-3069
-5841

query I rowsort
SELECT col0 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col1 + tab2.col1 * col1 + 3 FROM tab2
----
309
3543
995

query I rowsort
SELECT DISTINCT 57 + - 91 * col1 FROM tab0
----
-7769
-8224
-8770

onlyif mysql # use DIV operator for integer division
query I rowsort label-4548
SELECT ALL - tab1.col2 DIV + col0 + + col2 * col0 FROM tab1
----
144
3648
7679

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL - tab1.col2 / + col0 + + col2 * col0 FROM tab1
----
144
3648
7679

query I rowsort
SELECT tab0.col0 * - col0 + col2 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT 17 + + 54 * col0 FROM tab1
----
179
3473
4337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 + cor0.col1 * + col2 col2 FROM tab1 cor0
----
1440
1512
684

query I rowsort
SELECT DISTINCT - - col2 + col2 AS col1 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL - + col2 + + ( col2 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * + 94 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT col2 * - col2 - col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-4556
SELECT DISTINCT - col0 DIV + ( + 45 ) - - col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-6
-8

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - col0 / + ( + 45 ) - - col2 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-6
-8

query I rowsort
SELECT ALL col0 + + col1 * col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL col2 * + col1 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - col2 + 21 * + 49 AS col2 FROM tab2 cor0
----
1002
1003
991

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL + 86 AS col1 FROM tab0
----
86
86
86

query I rowsort
SELECT + col2 + 59 * col1 + + col1 AS col0 FROM tab0
----
5193
5542
5821

query I rowsort
SELECT - 39 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4564
SELECT - + col0 DIV + CAST( col1 AS SIGNED ) + - col2 col2 FROM tab1 AS cor0
----
-102
-54
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4564
SELECT - + col0 / + CAST ( col1 AS INTEGER ) + - col2 col2 FROM tab1 AS cor0
----
-102
-54
-63

query I rowsort
SELECT col1 + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 + - col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL - cor0.col2 - - col2 * col1 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + - cor0.col1 * col1 + - 31 AS col1 FROM tab2 AS cor0
----
-320
-3512
-992

query I rowsort
SELECT ALL col0 * - col0 - - col0 AS col2 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT ALL - col0 - - col0 * - col2 AS col1 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT ALL + 90 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT + col1 - + 37 FROM tab2 AS cor0
----
-20
-6
22

query I rowsort
SELECT + col0 * - 96 + col2 * 7 FROM tab1 AS cor0
----
-5745
-7008
90

query I rowsort
SELECT - 22 FROM tab2, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4575
SELECT ALL - ( - 8 ) + col2 DIV + 78 FROM tab0 AS cor0
----
8
8
9

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL - ( - 8 ) + col2 / + 78 FROM tab0 AS cor0
----
8
8
9

query I rowsort
SELECT DISTINCT ( - 23 ) + + col2 AS col1 FROM tab2 AS cor0
----
15
3
4

query I rowsort
SELECT ALL cor0.col0 * col0 FROM tab2 cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col2 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 - col0 col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - col2 * 6 * - col0 + - 83 FROM tab2 AS cor0
----
1051
12085
17929

query I rowsort
SELECT - 43 - col1 AS col1 FROM tab0 AS cor0
----
-129
-134
-140

query I rowsort
SELECT DISTINCT 87 * + col2 FROM tab1 AS cor0
----
4698
4959
8352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4583
SELECT DISTINCT - CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT col0 * col0 - + col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL 97 + 79 * - col0 FROM tab0 AS cor0
----
-1799
-2668
-6934

query I rowsort
SELECT - + col0 * + cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT col2 + + 12 AS col2 FROM tab2 AS cor0
----
38
39
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4588
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 7 / col1 - + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 7 / col1 - + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + cor0.col2 ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col1 * - tab0.col1 + - 54 FROM tab0
----
-7450
-8335
-9463

query I rowsort
SELECT ALL ( 24 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col2 col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - - 73 * + col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT DISTINCT + 24 * + col0 FROM tab0 AS cor0
----
2136
576
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT + + 76 DIV - col0 col2 FROM tab0 AS cor0
----
-2
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4595
SELECT + + 76 / - col0 col2 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL - 26 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-13
-16
0

query I rowsort
SELECT cor0.col2 * - col0 * col1 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - 86 * col2 + + col1 AS col2 FROM tab2 AS cor0
----
-2177
-2291
-3251

query I rowsort
SELECT - col2 * + col2 * 58 AS col0 FROM tab1 AS cor0
----
-169128
-188442
-534528

onlyif mysql # use DIV operator for integer division
query I rowsort label-4602
SELECT 57 + + col2 * col1 DIV 35 AS col0 FROM tab0 AS cor0
----
138
270
59

skipif mysql # not compatible
query I rowsort label-4602
SELECT 57 + + col2 * col1 / 35 AS col0 FROM tab0 AS cor0
----
138
270
59

query I rowsort
SELECT cor0.col2 + 45 AS col0 FROM tab1 cor0
----
102
141
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 * cor0.col0 - + col0 col0 FROM tab0 AS cor0
----
-69
-7305
-783

query I rowsort
SELECT - col2 * + 56 AS col0 FROM tab0 AS cor0
----
-1848
-4592
-56

query I rowsort
SELECT DISTINCT col2 + ( col2 + - cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + - col1 * 73 FROM tab0 cor0
----
-6278
-6643
-7081

query I rowsort
SELECT + + col0 - col0 * col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + col2 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT - - ( col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 45 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT ALL 42 + cor1.col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cecf7c7a0799d8bedb2e12e99c8c882

query I rowsort
SELECT - cor0.col0 * - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 458b4c13e6825f9686b15a38663930f4

query I rowsort
SELECT + + col0 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab2, tab2 AS cor0
----
51

query I rowsort
SELECT ALL 98 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
147
6182
6339

query I rowsort
SELECT DISTINCT + col1 * - col2 + col0 * + ( - cor0.col0 + col1 * + 58 ) AS col2 FROM tab2 AS cor0
----
11700
259298
71007

query I rowsort
SELECT ALL - - 86 + 74 FROM tab1 AS cor0
----
160
160
160

query I rowsort
SELECT ALL 7 * cor0.col1 * + ( 25 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 86ac04febc56c375439c3f6b8e38eb13

query I rowsort
SELECT ALL + 24 * col1 + + col2 * + col1 FROM tab0
----
2425
4902
9646

query I rowsort
SELECT + ( col0 ) * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT + col2 * - col2 + - col2 AS col2 FROM tab0 cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL - 3 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT col1 * + col1 + - ( col2 ) AS col1 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL + + 14 + - cor0.col2 FROM tab1 AS cor0
----
-40
-43
-82

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
4096
6400
9

query I rowsort
SELECT + - ( - col0 ) + col0 * + col2 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL 20 AS col0 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT ALL 43 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - col0 + ( col1 ) + col0 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT 38 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 + cor0.col1 col0 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4634
SELECT - ( - ( + col2 ) ) DIV - col2 + - col0 col2 FROM tab1 AS cor0
----
-4
-65
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4634
SELECT - ( - ( + col2 ) ) / - col2 + - col0 col2 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT - - 58 + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1147
59
6782

onlyif mysql # use DIV operator for integer division
query I rowsort label-4636
SELECT ALL col2 DIV + ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL col2 / + ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - ( cor0.col0 ) + - col1 * col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL col2 + 29 * - col2 FROM tab0 cor0
----
-2296
-28
-924

query I rowsort
SELECT - - col2 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col0 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT 91 * + col1 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT + 67 * 93 + + col0 AS col1 FROM tab1 AS cor0
----
6234
6295
6311

query I rowsort
SELECT ALL - col0 * - ( 13 ) FROM tab1
----
1040
39
832

query I rowsort
SELECT ALL col0 + col2 * col2 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
119888
32554
75819

query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab1, tab0 cor0
----
88

query I rowsort
SELECT col1 * - tab2.col2 + tab2.col2 * col2 AS col1 FROM tab2
----
-108
-858
798

query I rowsort
SELECT ALL - 9 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT DISTINCT col0 * col0 + - col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT col1 * tab2.col0 * + ( - 29 ) + - col1 FROM tab2
----
-133517
-38964
-6324

query I rowsort
SELECT col2 + + col2 + 64 FROM tab0
----
130
228
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + col0 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col2 * col0 * col0 - col1 * col2 * 98 AS col2 FROM tab2 cor0
----
-80703
173850
7852

query I rowsort
SELECT - col2 + col0 * + 77 FROM tab2 AS cor0
----
512
5980
6045

query I rowsort
SELECT ALL + col1 * col2 + - col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 + + CAST ( - col0 AS REAL ) col0 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 + col2 col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - + col0 + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col0 * 47 FROM tab1 AS cor0
----
141
3008
3760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4659
SELECT DISTINCT - col1 DIV - 79 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT - col1 / - 79 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4660
SELECT - - col1 DIV col0 AS col1 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4660
SELECT - - col1 / col0 AS col1 FROM tab0 cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4661
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + col1 + - 83 FROM tab0 AS cor0
----
14
3
8

query I rowsort
SELECT ALL + - cor0.col1 - - col2 * col2 * col0 FROM tab1 AS cor0
----
207926
737267
8722

query I rowsort
SELECT ALL - col0 * col0 + - col1 AS col0 FROM tab0 cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT + - col2 + col1 - + col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + col0 * col2 - col0 * - cor0.col1 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT ALL 98 - - col1 FROM tab0
----
184
189
195

query I rowsort
SELECT DISTINCT + 35 - tab0.col2 FROM tab0
----
-47
2
34

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL col1 * 67 FROM tab2 AS cor0
----
1139
2077
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 24 col2 FROM tab1 AS cor0
----
-240
-312
-624

query I rowsort
SELECT ALL - 27 * col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2236
-2366
-2522

query I rowsort
SELECT DISTINCT + + 17 * col2 + col1 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
120094
51680
6318

query I rowsort
SELECT ALL ( 35 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
245
2730
2765

query I rowsort
SELECT col1 + col1 * col0 AS col2 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT ( col1 ) * + cor0.col1 * - col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT ALL - - ( + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT 47 * + 93 AS col1 FROM tab2, tab2 AS cor0
----
4371

query I rowsort
SELECT DISTINCT - - 19 AS col1 FROM tab1 AS cor0
----
19

query I rowsort
SELECT - + ( col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4681
SELECT DISTINCT - CAST( 65 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-39
-52
-55

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT - CAST ( 65 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-39
-52
-55

query I rowsort
SELECT ( - 18 ) FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL + 10 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT ALL + 79 + + col2 + 72 * col1 DIV + col1 FROM tab0 AS cor0
----
152
184
233

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + 79 + + col2 + 72 * col1 / + col1 FROM tab0 AS cor0
----
152
184
233

query I rowsort
SELECT - 62 + col1 AS col0 FROM tab2 AS cor0
----
-3
-31
-45

query I rowsort
SELECT - + ( col1 ) + - col1 * col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 - - col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col0 + - cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - - 62 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT ALL + 56 * col0 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT ALL col2 + - col1 * + 63 * - col0 AS col1 FROM tab1 AS cor0
----
40377
4968
65616

query I rowsort
SELECT col1 * 3 - col2 AS col0 FROM tab1
----
-27
-57
24

query I rowsort
SELECT ALL ( 34 ) * tab1.col2 AS col1 FROM tab1
----
1836
1938
3264

query I rowsort
SELECT - ( col0 ) + + tab2.col0 * - 44 FROM tab2
----
-315
-3510
-3555

query I rowsort
SELECT + tab0.col1 * col0 + + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - cor0.col1 + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 773ba5cace8a7d36bd64dd8fb384bdc8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4698
SELECT ALL - col1 * col2 + + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1249
-1422
-570

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - col1 * col2 + + col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1249
-1422
-570

query I rowsort
SELECT ALL + col1 + - col0 * 6 FROM tab0 AS cor0
----
-113
-443
-58

query I rowsort
SELECT ALL ( - col2 ) + - 59 * - 88 + cor0.col1 AS col1 FROM tab1 AS cor0
----
5109
5145
5164

query I rowsort
SELECT + 57 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT DISTINCT 82 DIV tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
1
2
82

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT 82 / tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
1
2
82

query I rowsort
SELECT DISTINCT - col0 * + ( - col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + + col1 + cor0.col1 + - 38 FROM tab1 AS cor0
----
-12
-18
14

query I rowsort
SELECT DISTINCT - cor0.col1 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4707
SELECT + col1 DIV col0 + col1 + col2 FROM tab0 AS cor0
----
100
122
174

skipif mysql # not compatible
query I rowsort label-4707
SELECT + col1 / col0 + col1 + col2 FROM tab0 AS cor0
----
100
122
174

query I rowsort
SELECT + 52 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT ALL - col2 + + 0 * + col1 AS col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - col1 + + 43 AS col1 FROM tab1 AS cor0
----
17
30
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT DISTINCT - col2 + col2 DIV col0 FROM tab0 cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-4711
SELECT DISTINCT - col2 + col2 / col0 FROM tab0 cor0
----
-1
-32
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab0.col0 ) + - col1 * col0 col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - 20 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab2, tab2 AS cor0
----
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4715
SELECT + col0 DIV col1 + cor0.col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-4715
SELECT + col0 / col1 + cor0.col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT DISTINCT ( + 87 ) + + col1 * ( col0 ) FROM tab1 AS cor0
----
1127
165
727

query I rowsort
SELECT DISTINCT col2 + - col2 * - col1 FROM tab0 cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4718
SELECT ALL - + ( 59 ) * col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - + ( 59 ) * col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( cor0.col2 ) AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col0 * + col0 * col1 + + 14 * - col1 AS col0 FROM tab1 AS cor0
----
-130
40820
83018

query I rowsort
SELECT ALL - - 46 AS col0 FROM tab2 AS cor0
----
46
46
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4722
SELECT DISTINCT - col0 + CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
1168
1401
506

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - col0 + CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col1 * 15 FROM tab0
----
-1290
-1365
-1455

query I rowsort
SELECT - - col1 + + ( ( + col1 ) ) AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + 42 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

query I rowsort
SELECT DISTINCT col1 * ( tab1.col1 + + tab1.col0 ) FROM tab1
----
1209
740
754

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT - col1 * col0 + col1 + cor0.col1 * - col0 FROM tab1 AS cor0
----
-1270
-130
-2067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 68 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT DISTINCT + 88 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
88

query I rowsort
SELECT ALL ( + col1 ) + col0 * - col1 * col1 FROM tab2
----
-22814
-271459
-6696

query I rowsort
SELECT ALL + ( col0 + + col2 ) * col1 FROM tab1
----
1210
1482
2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
52

query I rowsort
SELECT ALL 23 + - cor0.col1 AS col1 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 888d37498f75c2d846a900e0e43f4faa

query I rowsort
SELECT 44 * col0 * - col0 AS col1 FROM tab2
----
-2156
-267696
-274604

query I rowsort
SELECT DISTINCT + + col2 * col2 + col2 * 98 FROM tab0 AS cor0
----
14760
4323
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4739
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4739
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - - col2 + + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT DISTINCT - col2 * + ( + 92 ) + col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2926
-7364
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT ALL col0 + - cor0.col1 DIV - col2 col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL col0 + - cor0.col1 / - col2 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * - 1 + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT col1 - 7 AS col2 FROM tab0
----
79
84
90

query I rowsort
SELECT ALL col2 + ( - 42 ) AS col0 FROM tab1
----
12
15
54

query I rowsort
SELECT DISTINCT + col0 * 6 * + 84 + - tab1.col0 * + 12 * + tab1.col0 AS col1 FROM tab1
----
-16896
-36480
1404

query I rowsort
SELECT + col0 - ( - tab1.col2 ) AS col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - tab0.col2 * col0 col2 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT tab2.col0 * + ( tab2.col1 * col0 ) + - ( col1 * + col0 ) AS col0 FROM tab2
----
104754
1302
354354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4750
SELECT + col2 + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT + col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + col0 + + col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT col2 + - col0 * col0 AS col2 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT + - col0 * + 41 AS col1 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT col2 * + col2 * + col2 AS col2 FROM tab0 cor0
----
1
35937
551368

query I rowsort
SELECT + tab2.col2 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 cor1, tab1, tab0 cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * - col2 + ( - col1 ) col2 FROM tab2 AS cor0
----
-2165
-2218
-3095

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 - 83 col0 FROM tab0
----
14
2755
7379

onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT - cor0.col1 * - cor0.col2 + 52 DIV + cor0.col1 FROM tab1 AS cor0
----
1252
1406
575

skipif mysql # not compatible
query I rowsort label-4759
SELECT - cor0.col1 * - cor0.col2 + 52 / + cor0.col1 FROM tab1 AS cor0
----
1252
1406
575

onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT + cor0.col0 * - col1 - - ( 58 ) DIV col0 FROM tab0 AS cor0
----
-2062
-3394
-8099

skipif mysql # not compatible
query I rowsort label-4760
SELECT + cor0.col0 * - col1 - - ( 58 ) / col0 FROM tab0 AS cor0
----
-2062
-3394
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4761
SELECT ALL + + 26 DIV col1 col1 FROM tab1 cor0
----
1
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + + 26 / col1 col1 FROM tab1 cor0
----
1
2
2

query I rowsort
SELECT + col0 + - col1 * col0 + + col0 * - col1 FROM tab1 AS cor0
----
-1216
-153
-2000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * + col1 - + ( - col1 * + 51 ) col0 FROM tab0 AS cor0
----
-2821
1548
4850

query I rowsort
SELECT tab1.col1 - + ( - col2 ) * - col1 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ( + 85 * + col2 ) FROM tab1
----
4590
4845
8160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4767
SELECT - 95 * 36 * + tab2.col0 - col1 DIV 38 AS col2 FROM tab2
----
-23940
-266761
-270180

skipif mysql # not compatible
query I rowsort label-4767
SELECT - 95 * 36 * + tab2.col0 - col1 / 38 AS col2 FROM tab2
----
-23940
-266761
-270180

query I rowsort
SELECT DISTINCT - 80 * col0 + col2 FROM tab2
----
-533
-6214
-6282

query I rowsort
SELECT ALL - tab2.col2 + col1 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT 19 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
19

query I rowsort
SELECT + + ( - col1 ) + col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-54

query I rowsort
SELECT ALL + col0 + + col1 - ( - 12 * col2 ) FROM tab0 AS cor0
----
1164
144
506

query I rowsort
SELECT DISTINCT + col2 * - col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + col2 * - col0 + col2 + - 54 AS col2 FROM tab2 cor0
----
-2056
-216
-3018

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 44 col2 FROM tab2
----
103
61
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT - tab1.col2 DIV - col1 + + 42 FROM tab1
----
44
47
49

skipif mysql # not compatible
query I rowsort label-4777
SELECT - tab1.col2 / - col1 + + 42 FROM tab1
----
44
47
49

query I rowsort
SELECT DISTINCT + col2 + - 35 * 82 FROM tab0
----
-2788
-2837
-2869

query I rowsort
SELECT + tab1.col1 - + 72 AS col2 FROM tab1
----
-46
-59
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4780
SELECT DISTINCT - col2 + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT - col2 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4781
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) + tab2.col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) + tab2.col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 * col1 col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - - col1 * + ( + col1 ) + col2 * - col2 FROM tab2 AS cor0
----
-1155
232
2805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) * col0 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT ( + col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - 14 + - col0 * col0 FROM tab2 cor0
----
-6098
-6255
-63

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) * col1 - + 31 AS col2 FROM tab2 cor0
----
1312
186
4571

query I rowsort
SELECT ALL - 13 + + col0 FROM tab2 AS cor0
----
-6
65
66

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL + 80 AS col1 FROM tab1 cor0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT DISTINCT + + col1 DIV cor0.col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + + col1 / cor0.col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - ( - col0 ) * - col2 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * - col1 col1 FROM tab1
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT ALL - col0 DIV col1 - col1 AS col1 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - col0 / col1 - col1 AS col1 FROM tab1 AS cor0
----
-16
-19
-26

query I rowsort
SELECT ALL - - cor0.col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - + 69 * - col0 FROM tab1 cor0
----
207
4416
5520

query I rowsort
SELECT ALL - col2 * - 68 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT DISTINCT + col1 + col0 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - col0 * - ( + tab1.col2 ) AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab2, tab0 AS cor0
----
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4801
SELECT ALL - 75 DIV + tab1.col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL - 75 / + tab1.col2 FROM tab1
----
-1
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4802
SELECT - 57 + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-53
-56
-57

skipif mysql # not compatible
query I rowsort label-4802
SELECT - 57 + col0 / + col1 AS col2 FROM tab2 AS cor0
----
-53
-56
-57

query I rowsort
SELECT ( - col2 ) + col2 * col1 * 57 FROM tab0 AS cor0
----
161733
425252
5528

query I rowsort
SELECT DISTINCT + cor0.col1 + + 40 FROM tab0 AS cor0
----
126
131
137

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4805
SELECT CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4805
SELECT CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4806
SELECT ALL CAST( NULL AS SIGNED ) + col2 / - col0 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-4806
SELECT ALL CAST ( NULL AS INTEGER ) + col2 / - col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * cor0.col0 + cor0.col0 * 12 AS col1 FROM tab1 AS cor0
----
198
4416
8640

query I rowsort
SELECT - 37 * col0 + - 88 * + col1 AS col0 FROM tab0 AS cor0
----
-11301
-8456
-9831

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT ALL - + cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL - + cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 col2 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT ( + 57 ) AS col2 FROM tab1
----
57
57
57

query I rowsort
SELECT - col0 + - 18 - + col0 AS col2 FROM tab2 AS cor0
----
-174
-176
-32

query I rowsort
SELECT DISTINCT col2 * - ( 15 ) FROM tab2 AS cor0
----
-390
-405
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4814
SELECT - col2 DIV + 84 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT - col2 / + 84 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT DISTINCT - col0 DIV 57 + + col0 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - col0 / 57 + + col0 FROM tab0 AS cor0
----
24
35
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - 83 col0 FROM tab1 AS cor0
----
137
140
179

query I rowsort
SELECT col1 * - 74 + - 55 FROM tab0 cor0
----
-6419
-6789
-7233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col2 + + col0 * col2 * - col2 FROM tab0 AS cor0
----
-26103
-34
-598354

onlyif mysql # use DIV operator for integer division
query I rowsort label-4821
SELECT DISTINCT - col1 * col2 DIV col1 col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4821
SELECT DISTINCT - col1 * col2 / col1 col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT col2 DIV 47 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4822
SELECT col2 / 47 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4823
SELECT ALL + - col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT ALL + - col2 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 + col2 + col2 col2 FROM tab1
----
159
165
243

query I rowsort
SELECT col0 * - col0 * col1 + col0 FROM tab2 AS cor0
----
-106018
-1512
-358878

query I rowsort
SELECT ALL - 46 - - col2 AS col1 FROM tab0
----
-13
-45
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4827
SELECT - ( 88 ) * cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4827
SELECT - ( 88 ) * cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col2 * col2 + + col1 AS col1 FROM tab0
----
1175
6815
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4829
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4829
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + + col0 + - cor0.col2 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT col2 + 32 AS col0 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 - - col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + col1 * col0 + + cor0.col2 * cor0.col0 FROM tab2 cor0
----
406
4345
6630

query I rowsort
SELECT 92 + + col1 FROM tab2
----
109
123
151

query I rowsort
SELECT - tab0.col1 * col2 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ( + col0 + + col0 ) FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + 28 * - col2 AS col0 FROM tab2
----
-1064
-728
-756

query I rowsort
SELECT DISTINCT - cor0.col2 * + tab1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
9 values hashing to 6e956995b57dab53690e9e5feefd0b3a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4839
SELECT ALL col0 + col0 DIV col2 AS col0 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL col0 + col0 / col2 AS col0 FROM tab0
----
24
70
90

query I rowsort
SELECT + col2 + - col2 * - col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT col0 + ( - col2 ) FROM tab0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + cor0.col2 + col1 ) col1 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT - col1 * ( 65 ) + + col1 AS col1 FROM tab2 AS cor0
----
-1088
-1984
-3776

query I rowsort
SELECT DISTINCT - col2 - + col1 AS col0 FROM tab1
----
-109
-67
-80

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 / col0 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + col2 col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + col2 * col0 - - col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col1 - + col1 * col1 AS col2 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT + col2 * tab1.col0 + - col2 FROM tab1
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4850
SELECT - col2 * col2 DIV tab1.col1 AS col0 FROM tab1
----
-112
-324
-708

skipif mysql # not compatible
query I rowsort label-4850
SELECT - col2 * col2 / tab1.col1 AS col0 FROM tab1
----
-112
-324
-708

onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT ALL + col1 DIV + tab2.col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL + col1 / + tab2.col1 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT col0 + + tab0.col2 * - col1 - col2 AS col1 FROM tab0
----
-2847
-63
-7455

query I rowsort
SELECT DISTINCT tab0.col2 + col1 + + tab0.col0 AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT col1 / - col2 + col1 AS col0 FROM tab1 WHERE NOT ( - tab1.col0 ) NOT BETWEEN NULL AND col1 * - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4855
SELECT col1 DIV col1 - col2 * col0 DIV col1 FROM tab1
----
-363
-5
-589

skipif mysql # not compatible
query I rowsort label-4855
SELECT col1 / col1 - col2 * col0 / col1 FROM tab1
----
-363
-5
-589

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4856
SELECT - col0 * col2 + CAST( 6 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-156
-3642
-7674

skipif mysql # not compatible
query I rowsort label-4856
SELECT - col0 * col2 + CAST ( 6 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-156
-3642
-7674

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - col0 + - col0 - 81 FROM tab1 AS cor0
----
-209
-241
-87

query I rowsort
SELECT - 6 - + col2 AS col0 FROM tab0 AS cor0
----
-39
-7
-88

query I rowsort
SELECT + col0 + col1 + + col2 FROM tab0 AS cor0
----
133
143
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 * col0 + + col0 + + col2 col1 FROM tab0 AS cor0
----
118861
49593
720982

query I rowsort
SELECT DISTINCT + 76 * cor0.col0 + col0 * col0 FROM tab2 AS cor0
----
12012
12245
581

query I rowsort
SELECT ALL + - 48 * col1 FROM tab1 AS cor0
----
-1248
-480
-624

onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT col1 - col2 * ( + col1 + - col1 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4864
SELECT col1 - col2 * ( + col1 + - col1 ) / + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4865
SELECT ALL - + ( col1 ) DIV cor0.col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - + ( col1 ) / cor0.col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL + 15 + col0 * - col0 AS col2 FROM tab2 cor0
----
-34
-6069
-6226

query I rowsort
SELECT col2 + - col1 + ( ( - col1 ) ) FROM tab0 AS cor0
----
-100
-139
-193

onlyif mysql # use DIV operator for integer division
query I rowsort label-4868
SELECT ALL - cor0.col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL - cor0.col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT ALL + col0 DIV ( - ( col2 ) ) + ( + col1 ) * cor0.col1 FROM tab1 AS cor0
----
169
676
99

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL + col0 / ( - ( col2 ) ) + ( + col1 ) * cor0.col1 FROM tab1 AS cor0
----
169
676
99

query I rowsort
SELECT + + col1 + 27 FROM tab1 AS cor0
----
37
40
53

query I rowsort
SELECT DISTINCT + - col1 * + 15 AS col2 FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT - col2 + 8 FROM tab0 cor0
----
-25
-74
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4873
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT ( col1 ) * 33 DIV 50 AS col2 FROM tab1
----
17
6
8

skipif mysql # not compatible
query I rowsort label-4875
SELECT ( col1 ) * 33 / 50 AS col2 FROM tab1
----
17
6
8

query I rowsort
SELECT DISTINCT 18 * col1 AS col2 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 * col2 + col2 AS col1 FROM tab2 cor0
----
-22572
-24510
-39858

query I rowsort
SELECT ALL + + 98 * - col2 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT ALL + col2 * - col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + ( + col1 ) * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + ( - col0 + col2 ) * col2 * col2 AS col2 FROM tab2
----
-35152
-59204
14580

onlyif mysql # use DIV operator for integer division
query I rowsort label-4882
SELECT col1 DIV - ( + col1 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4882
SELECT col1 / - ( + col1 ) FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * col0 col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 72 + 76 AS col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 0324297ce274fea612cbc79b84931b1e

query I rowsort
SELECT - - col1 + + col0 + 95 * col1 AS col0 FROM tab2 AS cor0
----
1711
2983
5742

query I rowsort
SELECT ALL col2 + + 73 AS col2 FROM tab1 AS cor0
----
127
130
169

query I rowsort
SELECT DISTINCT - + col2 * + col1 + ( + col0 + + col0 ) AS col2 FROM tab2 cor0
----
-1378
-488
-823

query I rowsort
SELECT col1 + - col2 * + 71 FROM tab0 cor0
----
-2257
-5731
26

query I rowsort
SELECT ALL + col0 + col2 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col0 * ( - 60 ) + + cor0.col2 * - col2 * col2 AS col2 FROM tab2 AS cor0
----
-20103
-22256
-59612

query I rowsort
SELECT DISTINCT - + col0 * - ( col1 ) AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col0 + col2 * col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL + col2 * - cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + col0 + 55 AS col2 FROM tab1
----
119
135
58

query I rowsort
SELECT DISTINCT - col2 * 54 FROM tab2
----
-1404
-1458
-2052

query I rowsort
SELECT DISTINCT - + col1 * + ( + col1 ) + cor0.col1 * + cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
116171
4898
50745

query I rowsort
SELECT ALL col0 * ( - col0 ) AS col2 FROM tab2
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4898
SELECT ALL - CAST( col0 + + col1 * + col1 AS SIGNED ) col1 FROM tab1
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL - CAST ( col0 + + col1 * + col1 AS INTEGER ) col1 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT ALL col1 - ( col2 ) FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + 21 - + tab1.col1 AS col0 FROM tab1
----
-5
11
8

query I rowsort
SELECT ALL - + 78 * cor0.col2 FROM tab2 AS cor0
----
-2028
-2106
-2964

query I rowsort
SELECT ALL + + 95 * + col0 AS col1 FROM tab1 cor0
----
285
6080
7600

query I rowsort
SELECT DISTINCT - - 39 * - col2 FROM tab2 AS cor0
----
-1014
-1053
-1482

query I rowsort
SELECT + + col2 * col1 * - 91 FROM tab2 AS cor0
----
-139594
-58786
-76167

onlyif mysql # use DIV operator for integer division
query I rowsort label-4905
SELECT + 70 + + col2 DIV + tab1.col2 col2 FROM tab1
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4905
SELECT + 70 + + col2 / + tab1.col2 col2 FROM tab1
----
71
71
71

query I rowsort
SELECT + tab1.col2 * + col0 * - col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT col1 + ( col0 ) + + tab2.col2 * + 21 FROM tab2
----
605
683
894

query I rowsort
SELECT DISTINCT - tab1.col2 - 93 FROM tab1
----
-147
-150
-189

query I rowsort
SELECT ALL col1 - 84 FROM tab1
----
-58
-71
-74

query I rowsort
SELECT - - 10 FROM tab1 cor0
----
10
10
10

query I rowsort
SELECT DISTINCT - + 29 - col0 FROM tab0 AS cor0
----
-118
-53
-64

query I rowsort
SELECT - + col0 * - col1 + 99 AS col2 FROM tab1 AS cor0
----
1139
177
739

skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 + col2 * - CAST ( col2 AS REAL ) * col2 AS col0 FROM tab2 cor0
----
-17498
-19676
-54793

query I rowsort
SELECT - + cor0.col1 * col1 AS col0 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - 28 * col1 + 47 AS col2 FROM tab2 AS cor0
----
-1605
-429
-821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 - + col0 col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - col2 * col2 * - ( 8 + col0 ) FROM tab2
----
10935
125628
58136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4918
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 66 FROM tab2, tab2 cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 66 FROM tab2, tab2 cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT + tab1.col0 * - col1 * + tab1.col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col1 * col0 + 99 FROM tab2
----
1442
316
4701

query I rowsort
SELECT 91 + col0 AS col2 FROM tab0
----
115
126
180

query I rowsort
SELECT DISTINCT col1 + - col1 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT - col2 * col2 - col1 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT - 10 + + col0 * 76 FROM tab0 AS cor0
----
1814
2650
6754

query I rowsort
SELECT - - cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col1 + - col0 AS col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT col0 * - 78 + 57 - - col2 FROM tab2 cor0
----
-462
-6001
-6067

query I rowsort
SELECT ALL - cor0.col0 * col2 - ( col2 ) * col2 * col0 FROM tab1 AS cor0
----
-211584
-744960
-8910

onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT + + col1 * - col2 + + ( col2 + cor0.col2 ) DIV + col1 FROM tab0 AS cor0
----
-2838
-7461
-97

skipif mysql # not compatible
query I rowsort label-4929
SELECT + + col1 * - col2 + + ( col2 + cor0.col2 ) / + col1 FROM tab0 AS cor0
----
-2838
-7461
-97

query I rowsort
SELECT + 62 * 76 FROM tab2, tab1 AS cor0
----
9 values hashing to 226a51ea39efe02fc5721b007aeb00a1

query I rowsort
SELECT DISTINCT cor0.col2 * + 96 - 43 FROM tab2 cor0
----
2453
2549
3605

query I rowsort
SELECT col0 + ( - cor0.col1 * col0 ) FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - col1 * - col2 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT 1 * - col2 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4935
SELECT - col0 + CAST( - cor0.col2 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-4935
SELECT - col0 + CAST ( - cor0.col2 AS INTEGER ) / col2 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT ALL + ( - col1 ) * + col1 * - col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT DISTINCT 21 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2817
-7441
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4938
SELECT ALL + CAST( + col2 AS SIGNED ) * col0 * + col1 AS col0 FROM tab0 cor0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + CAST ( + col2 AS INTEGER ) * col0 * + col1 AS col0 FROM tab0 cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - col1 * col0 ) col1 FROM tab2 AS cor0
----
119652
51034
5859

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-4941
SELECT - col1 * + ( cor0.col1 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4941
SELECT - col1 * + ( cor0.col1 ) / + col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col1 * 59 AS col0 FROM tab0 AS cor0
----
5074
5369
5723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4943
SELECT CAST( NULL AS SIGNED ) + col1 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT CAST ( NULL AS INTEGER ) + col1 * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4944
SELECT 64 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4944
SELECT 64 / col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( tab1.col0 AS REAL ) + - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to f319d3953aca5920d490aa8e1c5e5788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + + col2 col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT + col2 * - col2 * + col0 + col2 + col0 FROM tab1 AS cor0
----
-207815
-737104
-8691

query I rowsort
SELECT ALL + col2 * cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - col2 + col2 * - cor0.col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL - - ( col0 ) * 84 FROM tab1 AS cor0
----
252
5376
6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 * - col2 + col0 + ( + ( col2 ) * - col0 ) col0 FROM tab2
----
-2277
-416
655

query I rowsort
SELECT - 39 FROM tab2, tab1 cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT - col0 * col0 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4954
SELECT + CAST( 30 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
112
31
63

skipif mysql # not compatible
query I rowsort label-4954
SELECT + CAST ( 30 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
112
31
63

query I rowsort
SELECT DISTINCT col0 + + 6 FROM tab0
----
30
41
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT tab2.col2 - - cor1.col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
9 values hashing to b8b62762005dc0d7237145d0538edb34

query I rowsort
SELECT col2 * - 86 FROM tab1
----
-4644
-4902
-8256

query I rowsort
SELECT col2 * + 90 FROM tab0
----
2970
7380
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4960
SELECT col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 73 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT - cor0.col2 * 10 + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b3b83edb111659994117271044a4f064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4963
SELECT - - col2 * - ( col2 ) + + CAST( - 44 AS SIGNED ) col1 FROM tab2 AS cor0
----
-1488
-720
-773

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4963
SELECT - - col2 * - ( col2 ) + + CAST ( - 44 AS INTEGER ) col1 FROM tab2 AS cor0
----
-1488
-720
-773

query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
59

query I rowsort
SELECT DISTINCT - 69 * 21 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1449

query I rowsort
SELECT ALL - 29 * + col2 FROM tab1 cor0
----
-1566
-1653
-2784

onlyif mysql # use DIV operator for integer division
query I rowsort label-4967
SELECT ALL col2 + + col0 DIV col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL col2 + + col0 / col1 FROM tab1 AS cor0
----
102
54
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4968
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4968
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * ( - col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - col1 - - 9 AS col2 FROM tab1
----
-1
-17
-4

query I rowsort
SELECT + 51 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT col2 * ( col2 ) + - tab0.col2 AS col0 FROM tab0
----
0
1056
6642

query I rowsort
SELECT - cor0.col0 + col0 * - 20 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT + col1 * 14 * + col1 FROM tab2 AS cor0
----
13454
4046
48734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 59 * - col0 col0 FROM tab2 AS cor0
----
-12803
-271518
-79237

query I rowsort
SELECT - col1 + - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL + + cor0.col2 - col0 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT DISTINCT col1 + + cor0.col0 + + col2 DIV col2 FROM tab1 AS cor0
----
30
75
94

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT col1 + + cor0.col0 + + col2 / col2 FROM tab1 AS cor0
----
30
75
94

query I rowsort
SELECT ALL - 10 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT + - 62 * - 64 AS col1 FROM tab1 AS cor0
----
3968
3968
3968

query I rowsort
SELECT col0 * + col2 * col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * - col2 col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT + col0 + cor0.col0 * - cor0.col0 * + 19 AS col0 FROM tab0 AS cor0
----
-10920
-150410
-23240

query I rowsort
SELECT - col1 * + cor0.col0 * + 16 FROM tab1 AS cor0
----
-10240
-1248
-16640

query I rowsort
SELECT 15 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT ALL + col0 * col1 * 81 + + 28 FROM tab2 AS cor0
----
108811
17605
372790

query I rowsort
SELECT - 96 + + col0 FROM tab0 AS cor0
----
-61
-7
-72

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + col1 + + ( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col1 * + col0 + col0 + col1 FROM tab0 AS cor0
----
2174
3527
8279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + 33 col0 FROM tab2 AS cor0
----
-156
-1995
-2969

onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT DISTINCT - + col1 DIV - 83 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT - + col1 / - 83 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col0 * col0 AS col1 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + 57 * col0 FROM tab2
----
399
4446
4503

query I rowsort
SELECT DISTINCT + col1 + tab0.col0 + - col2 FROM tab0
----
131
77
98

query I rowsort
SELECT + ( + 79 ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4999
SELECT DISTINCT + 42 DIV tab1.col1 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT + 42 / tab1.col1 FROM tab1
----
1
3
4

query I rowsort
SELECT + cor0.col1 * - 20 FROM tab2, tab0 AS cor0
----
9 values hashing to 30116bcace0de97104b5f731073070dd

query I rowsort
SELECT 21 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL + cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + ( cor0.col1 ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + 60 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349

query I rowsort
SELECT ALL + col2 * - 16 AS col2 FROM tab1 AS cor0
----
-1536
-864
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-5006
SELECT + ( + col1 ) + col1 DIV 46 FROM tab0 AS cor0
----
87
92
99

skipif mysql # not compatible
query I rowsort label-5006
SELECT + ( + col1 ) + col1 / 46 FROM tab0 AS cor0
----
87
92
99

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 AS col0 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5008
SELECT + 63 * col2 + col2 DIV ( col0 ) FROM tab0 cor0
----
2080
5166
63

skipif mysql # not compatible
query I rowsort label-5008
SELECT + 63 * col2 + col2 / ( col0 ) FROM tab0 cor0
----
2080
5166
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + 85 * - col2 FROM tab1 AS cor0
----
-4590
-4845
-8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + col2 * col1 - 10 col2 FROM tab1 AS cor0
----
1276
1432
598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5012
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 15 + col2 - + col1 FROM tab2 cor0
----
-18
11
36

query I rowsort
SELECT ALL + + 46 * - ( col1 ) FROM tab1 AS cor0
----
-1196
-460
-598

query I rowsort
SELECT DISTINCT + 40 AS col0 FROM tab1 AS cor0
----
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - 51 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - 51 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - col0 + + col2 * col1 * col1 AS col2 FROM tab1 AS cor0
----
23904
36666
9348

onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT ALL - + cor0.col0 * col2 DIV - col1 col2 FROM tab1 AS cor0
----
364
590
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL - + cor0.col0 * col2 / - col1 col2 FROM tab1 AS cor0
----
364
590
6

query I rowsort
SELECT + + col0 + + 20 FROM tab0 AS cor0
----
109
44
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 70 * - col1 col0 FROM tab0 AS cor0
----
-6020
-6370
-6790

query I rowsort
SELECT - ( - col0 ) + - 81 FROM tab1 AS cor0
----
-1
-17
-78

query I rowsort
SELECT 87 + col1 FROM tab0 AS cor0
----
173
178
184

query I rowsort
SELECT ALL + + col0 * col2 * 56 + col2 FROM tab2 AS cor0
----
10611
113594
168150

query I rowsort
SELECT - - 45 * cor0.col2 + ( - ( col1 ) ) FROM tab2 AS cor0
----
1111
1184
1693

query I rowsort
SELECT - 13 * cor0.col0 + + ( + ( - cor0.col1 ) ) FROM tab2 AS cor0
----
-1044
-1073
-122

query I rowsort
SELECT DISTINCT + ( col1 ) + 15 AS col0 FROM tab1 AS cor0
----
25
28
41

query I rowsort
SELECT ALL 49 + col1 AS col1 FROM tab1
----
59
62
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT - 95 DIV - col1 + + col1 FROM tab0 cor0
----
87
92
97

skipif mysql # not compatible
query I rowsort label-5028
SELECT - 95 / - col1 + + col1 FROM tab0 cor0
----
87
92
97

query I rowsort
SELECT - 24 + col1 + + col0 FROM tab1
----
5
50
69

query I rowsort
SELECT ALL - cor0.col1 + 82 * - 67 FROM tab1 AS cor0
----
-5504
-5507
-5520

query I rowsort
SELECT ALL - col2 * - 26 AS col1 FROM tab1 cor0
----
1404
1482
2496

query I rowsort
SELECT ALL + col2 * col1 * 41 AS col1 FROM tab0 AS cor0
----
116358
305942
3977

query I rowsort
SELECT DISTINCT + col0 * ( 75 ) + col0 FROM tab0 cor0
----
1824
2660
6764

query I rowsort
SELECT ALL - col1 + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702

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 ALL - - cor0.col1 + + ( + cor0.col2 ) col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5037
SELECT DISTINCT - col0 DIV 62 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT - col0 / 62 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT - + col2 * 41 AS col1 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT DISTINCT + col2 * + col2 * ( col1 ) FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT - col1 * 95 FROM tab0 AS cor0
----
-8170
-8645
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 46 + + col0 * 81 + col0 * cor0.col0 col0 FROM tab1 AS cor0
----
11902
17296
2736

query I rowsort
SELECT - + ( col2 ) + - col2 - col0 FROM tab2 AS cor0
----
-130
-155
-61

query I rowsort
SELECT + 91 + - 99 + - col0 AS col0 FROM tab1 AS cor0
----
-11
-72
-88

query I rowsort
SELECT - tab1.col0 + tab1.col1 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col0 + ( - 14 ) * + col2 * - col2 AS col2 FROM tab2
----
10213
20295
9542

query I rowsort
SELECT ALL + col1 + col2 * - col1 AS col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT col2 + 21 * - 96 FROM tab0
----
-1934
-1983
-2015

onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT - col1 DIV ( + col0 + col0 ) FROM tab1
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT - col1 / ( + col0 + col0 ) FROM tab1
----
-4
0
0

query I rowsort
SELECT - 88 FROM tab2, tab2 cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT DISTINCT + col0 * - 83 AS col0 FROM tab1
----
-249
-5312
-6640

query I rowsort
SELECT + col1 + ( col0 ) + - 13 AS col0 FROM tab0
----
119
167
97

query I rowsort
SELECT DISTINCT + 30 FROM tab1, tab2, tab2 AS cor0, tab0
----
30

query I rowsort
SELECT DISTINCT + col1 + - tab1.col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + 5 * 56 + col0 + 65 AS col2 FROM tab1 AS cor0
----
348
409
425

query I rowsort
SELECT DISTINCT + + col1 + 18 FROM tab1 cor0
----
28
31
44

query I rowsort
SELECT 8 - - 43 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT ( + tab0.col2 + - col1 ) * col0 AS col2 FROM tab0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT - ( + 56 ) DIV - col2 AS col0 FROM tab0
----
0
1
56

skipif mysql # not compatible
query I rowsort label-5058
SELECT - ( + 56 ) / - col2 AS col0 FROM tab0
----
0
1
56

query I rowsort
SELECT cor0.col1 + col2 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL 61 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT + col0 * + col2 + - 7 FROM tab2
----
182
2021
2995

query I rowsort
SELECT - + 66 * col2 FROM tab2 AS cor0
----
-1716
-1782
-2508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + cor0.col1 + + col0 col0 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-5064
SELECT DISTINCT + col0 * - ( - col2 ) * col1 + + col1 DIV - 53 AS col1 FROM tab1 cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-5064
SELECT DISTINCT + col0 * - ( - col2 ) * col1 + + col1 / - 53 AS col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT + col0 * + 33 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT DISTINCT + col0 * + ( 49 ) + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
13136
3063
6385

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5067
SELECT DISTINCT + col1 + + CAST( 16 AS SIGNED ) * + col0 + - col1 FROM tab2 AS cor0
----
112
1248
1264

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT + col1 + + CAST ( 16 AS INTEGER ) * + col0 + - col1 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT - 93 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5070
SELECT DISTINCT - - col0 DIV + cor0.col1 + col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - - col0 / + cor0.col1 + col1 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT 91 * - col1 * 9 FROM tab0
----
-70434
-74529
-79443

query I rowsort
SELECT ALL 91 * col2 AS col0 FROM tab1
----
4914
5187
8736

query I rowsort
SELECT - - col1 + + col0 * - ( col1 * col2 ) AS col0 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT 18 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5075
SELECT DISTINCT - col1 + CAST( NULL AS DECIMAL ) + col2 * col1 * + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - col1 + CAST ( NULL AS REAL ) + col2 * col1 * + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5076
SELECT DISTINCT - col1 - CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - col1 - CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5077
SELECT cor0.col1 + CAST( 61 + col0 AS SIGNED ) FROM tab2 AS cor0
----
157
198
99

skipif mysql # not compatible
query I rowsort label-5077
SELECT cor0.col1 + CAST ( 61 + col0 AS INTEGER ) FROM tab2 AS cor0
----
157
198
99

query I rowsort
SELECT DISTINCT + ( + tab0.col0 * - col0 ) FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 * col0 * + col0 + cor0.col0 * cor0.col1 * col0 col2 FROM tab2 cor0
----
2811
343238
517081

query I rowsort
SELECT DISTINCT - col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5081
SELECT - 32 DIV + col0 FROM tab1
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-5081
SELECT - 32 / + col0 FROM tab1
----
-10
0
0

query I rowsort
SELECT ( - 30 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5083
SELECT CAST( 14 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-5083
SELECT CAST ( 14 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT + + 79 * cor0.col0 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT + ( + col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 45 + 32 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5087
SELECT tab1.col2 * CAST( 38 AS SIGNED ) * + col0 FROM tab1
----
138624
291840
6156

skipif mysql # not compatible
query I rowsort label-5087
SELECT tab1.col2 * CAST ( 38 AS INTEGER ) * + col0 FROM tab1
----
138624
291840
6156

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab0, tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - 92 AS REAL ) FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT - - col2 + - 7 * col0 FROM tab0 AS cor0
----
-135
-244
-541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col2 col0 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5092
SELECT ALL - col0 * - col2 * + CAST( NULL AS SIGNED ) - col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - col0 * - col2 * + CAST ( NULL AS INTEGER ) - col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 53 * col0 AS col2 FROM tab1
----
-159
-3392
-4240

query I rowsort
SELECT 22 * col1 * + tab2.col0 AS col0 FROM tab2
----
101244
29546
4774

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2183
3493
8272

onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV col0 AS col1 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT CAST ( col1 AS INTEGER ) / col0 AS col1 FROM tab2
----
0
4

query I rowsort
SELECT DISTINCT ( + 60 * + col2 ) FROM tab1
----
3240
3420
5760

query I rowsort
SELECT ALL 82 * - col2 AS col0 FROM tab2 AS cor0
----
-2132
-2214
-3116

onlyif mysql # use DIV operator for integer division
query I rowsort label-5099
SELECT ALL - col1 - + cor0.col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL - col1 - + cor0.col1 / + col2 AS col2 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT DISTINCT + col1 + - col1 * ( col1 ) FROM tab0 AS cor0
----
-7310
-8190
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5101
SELECT DISTINCT - + 84 DIV col2 + + 21 * col0 AS col2 FROM tab1 AS cor0
----
1343
1680
62

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT - + 84 / col2 + + 21 * col0 AS col2 FROM tab1 AS cor0
----
1343
1680
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT DISTINCT 96 * col2 + + col0 DIV 81 FROM tab2
----
2496
2592
3648

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT 96 * col2 + + col0 / 81 FROM tab2
----
2496
2592
3648

query I rowsort
SELECT DISTINCT - col2 + - 83 FROM tab1
----
-137
-140
-179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 - col2 col2 FROM tab1
----
43
622
73

query I rowsort
SELECT ALL tab0.col2 + ( col1 ) AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT tab2.col2 * col0 - - col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT + tab0.col0 + col0 * - 51 AS col0 FROM tab0
----
-1200
-1750
-4450

query I rowsort
SELECT + - 36 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT ALL - 45 * + col1 FROM tab2 AS cor0
----
-1395
-2655
-765

query I rowsort
SELECT ALL - 44 + + col2 FROM tab1 AS cor0
----
10
13
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT DISTINCT + col1 + - col0 DIV + 59 FROM tab1 AS cor0
----
12
26
9

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT + col1 + - col0 / + 59 FROM tab1 AS cor0
----
12
26
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT DISTINCT + col1 DIV - col0 + 26 AS col1 FROM tab0 AS cor0
----
23
24
25

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT + col1 / - col0 + 26 AS col1 FROM tab0 AS cor0
----
23
24
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 * - col0 col1 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5115
SELECT + + col2 DIV - col2 col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5115
SELECT + + col2 / - col2 col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col2 + + col0 * + col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - 76 + col1 AS col2 FROM tab1 AS cor0
----
-50
-63
-66

query I rowsort
SELECT ALL col2 * col0 + 52 FROM tab0 AS cor0
----
7350
844
87

query I rowsort
SELECT + col2 * - ( cor0.col0 ) + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT cor0.col1 + - col1 * 34 AS col2 FROM tab2 cor0
----
-1023
-1947
-561

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917

query I rowsort
SELECT ALL - col2 * - 40 + + col0 AS col2 FROM tab2
----
1087
1118
1599

query I rowsort
SELECT - col2 - + col1 * - col1 AS col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
-27

query I rowsort
SELECT ALL 7 FROM tab2, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ( - col0 ) * - col1 + 21 FROM tab0 AS cor0
----
2085
3416
8120

query I rowsort
SELECT ALL - col2 * 31 + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1674
-1824
-2340

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - 95 AS REAL ) * col0 + - 25 * + col1 col2 FROM tab2 cor0
----
-1440
-7930
-8885

onlyif mysql # use DIV operator for integer division
query I rowsort label-5129
SELECT DISTINCT - - col1 + - col0 - col2 DIV + CAST( col2 AS SIGNED ) col2 FROM tab0 cor0
----
1
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT - - col1 + - col0 - col2 / + CAST ( col2 AS INTEGER ) col2 FROM tab0 cor0
----
1
61

query I rowsort
SELECT DISTINCT col2 * - col2 * col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - col2 * + col1 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5132
SELECT - - CAST( 67 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

skipif mysql # not compatible
query I rowsort label-5132
SELECT - - CAST ( 67 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT ALL + col1 * col1 * - col1 + - col2 FROM tab2
----
-205405
-29818
-4951

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
10
13
26

query I rowsort
SELECT - 14 * tab2.col2 AS col0 FROM tab2
----
-364
-378
-532

query I rowsort
SELECT - tab1.col2 + - col1 * col1 + + col0 FROM tab1
----
-185
-727
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col1 col2 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT ALL - 36 + + col1 FROM tab2
----
-19
-5
23

query I rowsort
SELECT DISTINCT - - col2 * - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NULL <= NULL AND NOT ( NULL ) <> NULL
----

query I rowsort
SELECT cor0.col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 85 * - col1 FROM tab1
----
-1105
-2210
-850

query I rowsort
SELECT ALL col2 + - col1 * + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL - - col0 * col1 * col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT - 2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL - ( 79 ) AS col0 FROM tab1 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL - ( + tab2.col1 ) FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5148
SELECT DISTINCT - tab1.col2 DIV tab1.col1 col1 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT - tab1.col2 / tab1.col1 col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + + 65 + + cor0.col1 AS col2 FROM tab1 cor0
----
75
78
91

query I rowsort
SELECT ALL + 40 * + 35 + + col1 FROM tab1 AS cor0
----
1410
1413
1426

query I rowsort
SELECT DISTINCT + col1 * - 76 FROM tab2 AS cor0
----
-1292
-2356
-4484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL - + ( col2 ) * - cor0.col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - ( + col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + - 31 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - + col1 * - col1 - col0 AS col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT - + 28 + - cor0.col2 FROM tab0 AS cor0
----
-110
-29
-61

query I rowsort
SELECT ALL 72 + + col0 - - col0 AS col1 FROM tab1 AS cor0
----
200
232
78

query I rowsort
SELECT + col1 * col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-5162
SELECT + + 77 DIV - col1 AS col1 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-5162
SELECT + + 77 / - col1 AS col1 FROM tab2 cor0
----
-1
-2
-4

query I rowsort
SELECT + tab1.col0 - - 95 FROM tab1
----
159
175
98

query I rowsort
SELECT ( col1 * + col2 ) - col0 FROM tab2
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + + col2 col1 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL cor0.col0 + + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col0 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT ALL col2 DIV + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL col2 / + col0 + - col0 AS col2 FROM tab0 AS cor0
----
-23
-35
-89

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col1 IN ( - col1 * col0 + - cor0.col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * tab0.col0 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL col2 + col1 * col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col1 + col1 * col1 FROM tab2
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT ALL + col1 DIV col1 + - col2 AS col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL + col1 / col1 + - col2 AS col2 FROM tab1
----
-53
-56
-95

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( tab0.col0 - col2 * + col1 )
----

query I rowsort
SELECT col2 - col2 * col1 * - col1 FROM tab0
----
244101
679124
9410

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col0 + col1 )
----

query I rowsort
SELECT ALL col1 * col0 + col2 * col2 FROM tab2
----
2787
5278
946

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = - col0 + col1
----

query I rowsort
SELECT col1 * tab1.col1 * + tab1.col1 AS col2 FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT col1 * + col0 AS col0 FROM tab1 WHERE NOT ( + col2 / - col0 ) IN ( + col0 - - col2 )
----
1040
640
78

query I rowsort
SELECT - tab2.col0 * - col1 * + col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - col0 * - col0 + col0 * - tab0.col2 AS col2 FROM tab0
----
-216
1190
623

query I rowsort
SELECT - col2 + tab0.col0 + tab0.col0 AS col2 FROM tab0
----
15
69
96

query I rowsort
SELECT - tab2.col2 * tab2.col0 * + col0 + - col1 FROM tab2
----
-1354
-158243
-237175

query I rowsort
SELECT - col2 + - tab2.col0 * + col0 AS col0 FROM tab2
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab0.col0 col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col1 - - col1 * col2 AS col0 FROM tab0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT col0 + - col1 DIV col0 AS col2 FROM tab2
----
3
78
79

skipif mysql # not compatible
query I rowsort label-5191
SELECT col0 + - col1 / col0 AS col2 FROM tab2
----
3
78
79

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL < col2
----

query I rowsort
SELECT DISTINCT - col2 * + col2 + - cor0.col1 * col0 * cor0.col1 FROM tab0 AS cor0
----
-178593
-329316
-743733

onlyif mysql # use DIV operator for integer division
query I rowsort label-5194
SELECT DISTINCT - + col0 DIV col2 + col0 FROM tab0 cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT - + col0 / col2 + col0 FROM tab0 cor0
----
0
24
88

query I rowsort
SELECT ALL - col0 - - col0 * col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab0.col1 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL col1 * + col2 + - col0 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 * 71 * - col2 FROM tab2
----
-13419
-143988
-213142

query I rowsort
SELECT ALL col0 * 69 FROM tab1
----
207
4416
5520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5200
SELECT DISTINCT - col1 * ( col2 + + col1 ) * - CAST( - 9 * - col2 AS SIGNED ) FROM tab0
----
11618334
3039498
85554

skipif mysql # not compatible
query I rowsort label-5200
SELECT DISTINCT - col1 * ( col2 + + col1 ) * - CAST ( - 9 * - col2 AS INTEGER ) FROM tab0
----
11618334
3039498
85554

query I rowsort
SELECT + 40 * 26 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to fa4bb5c43029fb656521b983c5c0e6b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5202
SELECT + col2 DIV 90 - 0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5202
SELECT + col2 / 90 - 0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 + col1 * - ( - col0 ) * col0 FROM tab2 cor0
----
106135
1546
358982

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5204
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 90 AS col0 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 90 AS col0 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT - + ( - cor0.col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + 93 * col2 FROM tab2 cor0
----
2418
2511
3534

query I rowsort
SELECT DISTINCT + - 22 * - col2 + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-5405
-5512
545

query I rowsort
SELECT + 82 + + 8 AS col0 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5209
SELECT CAST( + 18 AS SIGNED ) * - col0 + + ( col0 ) FROM tab0 AS cor0
----
-1513
-408
-595

skipif mysql # not compatible
query I rowsort label-5209
SELECT CAST ( + 18 AS INTEGER ) * - col0 + + ( col0 ) FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT - 66 + - col0 FROM tab0 AS cor0
----
-101
-155
-90

query I rowsort
SELECT col1 * col2 * - ( cor0.col1 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16144
-36501
-5636

query I rowsort
SELECT ALL 5 * tab1.col1 FROM tab1
----
130
50
65

query I rowsort
SELECT + col2 * - col1 + col1 * 70 AS col2 FROM tab1 AS cor0
----
-338
130
416

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5214
SELECT DISTINCT col1 * - col1 + col2 + + CAST( NULL AS SIGNED ) * 42 col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT col1 * - col1 + col2 + + CAST ( NULL AS INTEGER ) * 42 col2 FROM tab1
----
NULL

query I rowsort
SELECT - ( - col0 ) + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col0 + + 94 AS col1 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT DISTINCT - col0 * col0 - - 12 * - col1 FROM tab2 AS cor0
----
-421
-6445
-6792

query I rowsort
SELECT + ( col2 * - col2 ) AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT col2 * 36 AS col2 FROM tab2 AS cor0
----
1368
936
972

query I rowsort
SELECT DISTINCT - - col0 + 66 * col0 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT DISTINCT - - col2 * col1 * - col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col0 + + ( col2 ) * col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT + col1 + + ( col1 ) * + col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 AS col0 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT ALL - col2 DIV 56 AS col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL - col2 / 56 AS col1 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5226
SELECT - + col0 * - CAST( col1 AS SIGNED ) * + col2 + col0 AS col2 FROM tab1 AS cor0
----
36544
4215
99920

skipif mysql # not compatible
query I rowsort label-5226
SELECT - + col0 * - CAST ( col1 AS INTEGER ) * + col2 + col0 AS col2 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col2 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
3298
65274
656656

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-86
-91
-97

query I rowsort
SELECT ALL + tab0.col2 + - col1 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL ( - col0 ) + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5231
SELECT + col2 * 26 * - 27 + col2 DIV col0 FROM tab0 AS cor0
----
-23165
-57564
-702

skipif mysql # not compatible
query I rowsort label-5231
SELECT + col2 * 26 * - 27 + col2 / col0 FROM tab0 AS cor0
----
-23165
-57564
-702

query I rowsort
SELECT DISTINCT col0 + col0 * col2 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5233
SELECT ALL + col2 DIV + col1 + 76 AS col2 FROM tab0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL + col2 / + col1 + 76 AS col2 FROM tab0
----
76
76
76

query I rowsort
SELECT DISTINCT - col1 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - col2 * - cor0.col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT col2 + col2 * + 80 AS col0 FROM tab1
----
4374
4617
7776

query I rowsort
SELECT ALL tab2.col1 - + tab2.col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5238
SELECT ( col0 ) DIV tab0.col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5238
SELECT ( col0 ) / tab0.col2 AS col2 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - cor0.col2 * col0 col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - 44 - + col0 * + 1 FROM tab2 AS cor0
----
-122
-123
-51

query I rowsort
SELECT ALL - + cor0.col1 * - col0 + col0 * col1 FROM tab2 AS cor0
----
2686
434
9204

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5243
SELECT + col0 * - col0 * - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
118825
49536
720811

skipif mysql # not compatible
query I rowsort label-5243
SELECT + col0 * - col0 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-5244
SELECT DISTINCT - - 34 DIV cor0.col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT - - 34 / cor0.col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5245
SELECT DISTINCT - cor0.col0 * + col0 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT - cor0.col0 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + + 73 * + col0 AS col2 FROM tab2 cor0
----
511
5694
5767

query I rowsort
SELECT DISTINCT + 37 * + col2 * col1 + col1 FROM tab2 cor0
----
23919
31000
56817

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5249
SELECT 64 + + col2 DIV col1 FROM tab2
----
64
64
66

skipif mysql # not compatible
query I rowsort label-5249
SELECT 64 + + col2 / col1 FROM tab2
----
64
64
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5250
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( col2 * + 79 + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( col2 * + 79 + col2 ) FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5251
SELECT ALL - tab0.col0 * + CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL - tab0.col0 * + CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT col1 DIV col1 + - 3 * col1 * col0 + + ( - col1 ) * + col0 FROM tab1
----
-2559
-311
-4159

skipif mysql # not compatible
query I rowsort label-5252
SELECT col1 / col1 + - 3 * col1 * col0 + + ( - col1 ) * + col0 FROM tab1
----
-2559
-311
-4159

query I rowsort
SELECT ALL - + ( + cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT 17 * col1 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT DISTINCT - 53 + + col0 FROM tab1 AS cor0
----
-50
11
27

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT tab2.col0 * cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 12930ec3ed2e24e506ebb47d036ed597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + cor0.col1 * - col0 col0 FROM tab0 AS cor0
----
-1375
-3394
-975

query I rowsort
SELECT ALL col0 * + ( - col0 ) AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col0 + + ( + 46 ) FROM tab2
----
-32
-33
39

query I rowsort
SELECT + col0 + ( + col0 ) * col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - 52 + col1 FROM tab2 AS cor0
----
-21
-35
7

query I rowsort
SELECT DISTINCT + - ( - col1 ) + - col1 * + 47 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT ALL - - col2 * 33 + col2 * + col1 FROM tab1 AS cor0
----
2451
3186
4416

query I rowsort
SELECT DISTINCT ( col0 ) + col2 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT + ( ( col0 ) ) + + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT - ( - 46 ) + col0 * + cor0.col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
36526
4258
99886

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 * - col2 + + 5 AS col0 FROM tab0 AS cor0
----
-1117
-6801
3

query I rowsort
SELECT DISTINCT - + 20 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT ( 48 ) + col1 AS col0 FROM tab0 AS cor0
----
134
139
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + + 96 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1439
313
4698

query I rowsort
SELECT ALL - col2 * col2 + - col1 * ( - col1 ) - col1 FROM tab0 cor0
----
1466
6221
9311

query I rowsort
SELECT + 97 + col1 * col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
22696
24645
39981

query I rowsort
SELECT ALL 46 * 22 - - col1 FROM tab2 AS cor0
----
1029
1043
1071

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5276
SELECT DISTINCT CAST( 76 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
1976
2052
2888

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT CAST ( 76 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT DISTINCT cor0.col0 * 93 + + col1 FROM tab1 AS cor0
----
305
5962
7453

query I rowsort
SELECT ALL - ( col2 ) + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - 26 + - col2 * + col1 FROM tab0 AS cor0
----
-123
-2864
-7488

query I rowsort
SELECT ALL - col1 * + 22 + 58 FROM tab1 AS cor0
----
-162
-228
-514

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5281
SELECT ALL + + col1 + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL + + col1 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( - col1 ) * - col2 col0 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT col1 * 88 FROM tab2 AS cor0
----
1496
2728
5192

query I rowsort
SELECT + col1 * - ( - 77 ) FROM tab2 cor0
----
1309
2387
4543

query I rowsort
SELECT - col0 * - 60 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT + cor0.col1 * col2 + col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT + col0 + + 57 AS col2 FROM tab2 AS cor0
----
135
136
64

query I rowsort
SELECT + - 46 + - col0 * col1 FROM tab0 AS cor0
----
-2110
-3441
-8145

onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT + 28 DIV + 32 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5289
SELECT + 28 / + 32 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - col2 * col1 * tab1.col1 AS col0 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT col2 * col0 DIV col1 FROM tab0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-5292
SELECT col2 * col0 / col1 FROM tab0
----
0
80
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 col0 FROM tab2
----
14
156
158

query I rowsort
SELECT + col0 + - ( col1 ) AS col0 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5295
SELECT col0 DIV tab2.col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5295
SELECT col0 / tab2.col0 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 - 18 AS col2 FROM tab0 AS cor0
----
-17
15
64

query I rowsort
SELECT ALL + col2 + + 52 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT ALL - col2 + ( col1 ) AS col0 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT col2 * col0 * + ( + tab1.col1 ) + - col2 FROM tab1
----
36423
4158
99744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 - col2 col2 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT DISTINCT - tab0.col0 + - 47 * - col2 + + col2 FROM tab0
----
13
1560
3847

query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT ALL - ( 18 ) + - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b70dccef2d9ccdbf99a0cdaac3ecba74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT + cor0.col0 DIV ( col2 ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5304
SELECT + cor0.col0 / ( col2 ) FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - + cor0.col0 + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * 2 + col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT DISTINCT col2 * 58 AS col0 FROM tab2
----
1508
1566
2204

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT + col0 * + CAST( NULL AS SIGNED ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT + col0 * + CAST ( NULL AS INTEGER ) + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 75 AS col0 FROM tab1
----
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5310
SELECT + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5310
SELECT + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 95 * - col2 AS col0 FROM tab0
----
-3135
-7790
-95

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 29 * col1 FROM tab0
----
2494
2639
2813

query I rowsort
SELECT - + col1 * - col2 - col2 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5315
SELECT ALL - CAST( NULL AS DECIMAL ) - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL - CAST ( NULL AS REAL ) - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * col0 - + cor0.col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - 61 + col2 * col1 * + col1 FROM tab0 AS cor0
----
244007
678981
9348

query I rowsort
SELECT col1 - - cor0.col2 AS col2 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5319
SELECT DISTINCT col0 + + col0 * 38 DIV - 26 FROM tab0 AS cor0
----
-11
-16
-41

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT col0 + + col0 * 38 / - 26 FROM tab0 AS cor0
----
-11
-16
-41

query I rowsort
SELECT col1 * + col1 + - 12 AS col2 FROM tab0 AS cor0
----
7384
8269
9397

query I rowsort
SELECT DISTINCT - col1 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT - - col2 + - col2 * 49 FROM tab1 cor0
----
-2592
-2736
-4608

query I rowsort
SELECT - - col2 + col2 * + cor0.col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + col1 + + col1 * 65 * + 33 FROM tab2
----
126614
36482
66526

query I rowsort
SELECT ALL - col2 * col0 - - ( col2 + col0 ) AS col0 FROM tab0
----
-7127
-735
1

query I rowsort
SELECT ALL - col2 * col2 + - col2 AS col2 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT ALL - - col0 + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + col1 * + col1 * + 58 FROM tab2 AS cor0
----
16762
201898
55738

query I rowsort
SELECT + col0 * col2 + + ( + cor0.col0 ) * + col0 FROM tab2 AS cor0
----
238
8112
9243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + cor0.col2 * + 65 * - col1 col2 FROM tab0 cor0
----
-184446
-484941
-6270

query I rowsort
SELECT DISTINCT + col2 + - 78 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
1905
2731
7024

query I rowsort
SELECT - cor0.col0 * 96 + + col1 * + col2 FROM tab0 cor0
----
-1082
-3263
534

query I rowsort
SELECT ALL - col1 * ( - col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - col0 * - 95 FROM tab1 AS cor0
----
285
6080
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - ( + ( col2 ) ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 + - ( - 44 ) * col1 FROM tab1 AS cor0
----
1147
504
652

query I rowsort
SELECT - col1 + + 82 AS col1 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT ALL col1 * + col2 + + col2 * col0 - + col1 FROM tab0 AS cor0
----
14669
35
3544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5340
SELECT DISTINCT + - col2 * - CAST( - 24 AS SIGNED ) - cor0.col2 FROM tab2 AS cor0
----
-650
-675
-950

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT + - col2 * - CAST ( - 24 AS INTEGER ) - cor0.col2 FROM tab2 AS cor0
----
-650
-675
-950

query I rowsort
SELECT DISTINCT col2 * - ( + 2 ) + + col1 * - 47 FROM tab0 AS cor0
----
-4108
-4441
-4561

query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 * - ( + col0 ) FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + 82 - col1 FROM tab0
----
-15
-4
-9

query I rowsort
SELECT ALL - col0 * col2 + + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + - col2 * 39 FROM tab0 cor0
----
-1287
-3198
-39

query I rowsort
SELECT ALL + cor0.col1 + col0 * cor0.col1 + + col2 FROM tab0 cor0
----
2183
3493
8272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5347
SELECT - col1 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5347
SELECT - col1 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * + CAST ( col1 AS REAL ) + + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5349
SELECT cor0.col0 DIV + col0 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5349
SELECT cor0.col0 / + col0 AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5350
SELECT ALL + CAST( 18 AS SIGNED ) col1 FROM tab1 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + CAST ( 18 AS INTEGER ) col1 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5351
SELECT DISTINCT - CAST( 29 AS SIGNED ) * cor0.col1 * + col2 + + col2 * + col0 FROM tab1 AS cor0
----
-12882
-28512
-40554

skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - CAST ( 29 AS INTEGER ) * cor0.col1 * + col2 + + col2 * + col0 FROM tab1 AS cor0
----
-12882
-28512
-40554

query I rowsort
SELECT ALL + ( + col2 ) * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5353
SELECT - + CAST( NULL AS SIGNED ) / + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5353
SELECT - + CAST ( NULL AS INTEGER ) / + ( col0 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 + ( + col1 ) FROM tab2 AS cor0
----
20
48
6

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + + col0 / col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT - ( col2 ) + - col2 * + ( + col0 * + col1 ) FROM tab0 AS cor0
----
-3396
-664200
-68145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5357
SELECT ALL col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * ( - col0 ) FROM tab2
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 87 * + col0 col1 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT DISTINCT + 92 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
101
4188
6492

query I rowsort
SELECT ( - 91 ) * - col1 AS col2 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT ALL - col0 * - 45 AS col2 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab2, tab2 AS cor0
----
6

query I rowsort
SELECT ALL ( col2 ) * ( col0 ) FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 + cor0.col1 col0 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT DISTINCT + 94 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2158
3489
8193

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col1 * + CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - cor0.col0 * 54 + - col1 * col2 AS col1 FROM tab1 cor0
----
-1566
-4026
-5568

query I rowsort
SELECT DISTINCT - cor0.col1 + - 29 FROM tab2 AS cor0
----
-46
-60
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT ALL + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL + col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + cor0.col1 + 17 AS col0 FROM tab0 cor0
----
103
108
114

query I rowsort
SELECT - + col2 * 77 FROM tab2 cor0
----
-2002
-2079
-2926

query I rowsort
SELECT - col1 * 88 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT col0 * 21 AS col2 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT ALL tab1.col0 + col0 + - 86 AS col0 FROM tab1
----
-80
42
74

query I rowsort
SELECT DISTINCT + col1 * - 78 AS col2 FROM tab1 cor0
----
-1014
-2028
-780

query I rowsort
SELECT + col0 + + col2 * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL col1 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col1 * - col1 + col2 + - col2 FROM tab2 cor0
----
289
3481
961

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830

query I rowsort
SELECT + 72 + + ( - col2 ) FROM tab0 AS cor0
----
-10
39
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 * + cor0.col2 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
2046
5084
62

query I rowsort
SELECT ALL + ( 79 ) FROM tab0, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT col2 + + ( - col1 ) DIV + col1 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5385
SELECT col2 + + ( - col1 ) / + col1 FROM tab2
----
25
26
37

query I rowsort
SELECT ALL - + 55 + col2 AS col1 FROM tab0 AS cor0
----
-22
-54
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + col2 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + + 3 * - col1 + col0 * col2 FROM tab0 AS cor0
----
-256
534
7025

onlyif mysql # use DIV operator for integer division
query I rowsort label-5389
SELECT ALL 13 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL 13 / + col0 AS col2 FROM tab1 AS cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT DISTINCT + ( - ( col2 ) ) + + 44 DIV col0 FROM tab0
----
-32
-82
0

skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT + ( - ( col2 ) ) + + 44 / col0 FROM tab0
----
-32
-82
0

query I rowsort
SELECT col2 + col0 + tab0.col0 * - col2 AS col0 FROM tab0
----
-7127
-735
1

query I rowsort
SELECT ALL + 88 * - tab1.col2 + - col0 FROM tab1
----
-4755
-5080
-8528

query I rowsort
SELECT + col1 * + tab2.col0 AS col2 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 col0 FROM tab2
----
55
58
85

query I rowsort
SELECT ( - col1 ) + + col0 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT cor0.col0 + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5396
SELECT cor0.col0 + col0 / + col1 AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT DISTINCT - col1 DIV - col0 AS col1 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT - col1 / - col0 AS col1 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT ALL + 23 + + cor0.col1 * - 66 FROM tab2 AS cor0
----
-1099
-2023
-3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col1 FROM tab0
----
-53
-53
-53

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT + 15 * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
150
195
390

query I rowsort
SELECT DISTINCT - col1 * 20 AS col2 FROM tab2 AS cor0
----
-1180
-340
-620

query I rowsort
SELECT ALL + 11 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT + col0 * col2 + - col2 * - cor0.col1 FROM tab2 cor0
----
1026
3562
3648

query I rowsort
SELECT + + col1 * col1 * cor0.col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ( - col1 + - col0 * col1 ) FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT 94 + + 70 AS col0 FROM tab1
----
164
164
164

query I rowsort
SELECT - ( col2 * + col2 ) AS col1 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 * col0 col1 FROM tab0
----
-1992
-2905
-7387

query I rowsort
SELECT DISTINCT - 88 FROM tab2, tab2 AS cor0
----
-88

query I rowsort
SELECT ( + cor0.col0 ) + col0 * + col2 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - ( 60 ) FROM tab2
----
-60
-60
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5413
SELECT ALL + + CAST( + col1 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-5413
SELECT ALL + + CAST ( + col1 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
20
26
52

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5415
SELECT DISTINCT + col2 - + col1 DIV col0 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-5415
SELECT DISTINCT + col2 - + col1 / col0 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT DISTINCT + + ( - 54 ) * - col2 AS col2 FROM tab0 AS cor0
----
1782
4428
54

query I rowsort
SELECT 94 * + col0 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT col0 * col0 - 30 * + col2 FROM tab1 AS cor0
----
-1611
2386
3520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5419
SELECT ALL - col2 * cor0.col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - col2 * cor0.col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col1 ) * 32 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT ALL col2 - + cor0.col0 * ( + ( + col1 ) ) FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 * - col0 col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col1 * col1 + cor0.col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + - col2 + + col2 * + 54 FROM tab2 AS cor0
----
1378
1431
2014

query I rowsort
SELECT - ( 80 ) * - col2 + tab2.col1 AS col0 FROM tab2
----
2139
2191
3057

query I rowsort
SELECT + col2 * col1 - - 91 FROM tab1 AS cor0
----
1339
1495
661

query I rowsort
SELECT - - col2 + 48 FROM tab1 cor0
----
102
105
144

query I rowsort
SELECT DISTINCT - 34 * 84 FROM tab1 AS cor0
----
-2856

query I rowsort
SELECT - cor0.col2 + + 68 * - col2 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT ALL + 37 + - col1 AS col0 FROM tab2 AS cor0
----
-22
20
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5431
SELECT + - CAST( NULL AS SIGNED ) * 74 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT + - CAST ( NULL AS INTEGER ) * 74 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + tab0.col2 * col1 FROM tab0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * - col1 col1 FROM tab2 AS cor0
----
-1457
-2773
-799

query I rowsort
SELECT ALL - 83 * - cor0.col2 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT 45 + cor0.col1 FROM tab1 cor0
----
55
58
71

query I rowsort
SELECT DISTINCT 86 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-258
-5504
-6880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 * ( 57 ) col0 FROM tab2 cor0
----
-10773
-115596
-171114

query I rowsort
SELECT DISTINCT + ( + 38 ) AS col1 FROM tab1
----
38

query I rowsort
SELECT - ( col2 ) + - col1 - col0 AS col1 FROM tab1
----
-131
-189
-83

query I rowsort
SELECT DISTINCT col2 * col1 * - col0 + 5 FROM tab0
----
-3390
-664113
-68107

query I rowsort
SELECT DISTINCT ( - col2 ) + - col1 + - ( + col2 ) FROM tab0
----
-152
-255
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5442
SELECT + CAST( ( col1 ) AS SIGNED ) DIV col0 AS col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5442
SELECT + CAST ( ( col1 ) AS INTEGER ) / col0 AS col0 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT ALL 3 * col1 FROM tab2
----
177
51
93

query I rowsort
SELECT ALL - 57 * 33 AS col0 FROM tab1
----
-1881
-1881
-1881

onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT ALL 25 DIV cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0a35ad941cb1878fb87082ac21ea8241

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL 25 / cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 0a35ad941cb1878fb87082ac21ea8241

query I rowsort
SELECT 45 * - col0 + - col1 FROM tab0
----
-1166
-1672
-4096

query I rowsort
SELECT + - cor0.col0 * - ( 55 ) FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + - 83 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
-1176
-2835
0

query I rowsort
SELECT ALL col0 * col2 * + 53 - cor0.col0 AS col1 FROM tab0 cor0
----
1820
386705
41952

query I rowsort
SELECT + ( + tab2.col2 + - col2 ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - 40 col0 FROM tab0 AS cor0
----
-16
-5
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT - + cor0.col1 * col1 DIV col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5452
SELECT - + cor0.col1 * col1 / col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5453
SELECT + col2 + 52 DIV col0 FROM tab1 AS cor0
----
57
71
96

skipif mysql # not compatible
query I rowsort label-5453
SELECT + col2 + 52 / col0 FROM tab1 AS cor0
----
57
71
96

query I rowsort
SELECT col0 - ( 86 ) FROM tab2
----
-7
-79
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5455
SELECT ALL CAST( NULL AS SIGNED ) + 56 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL CAST ( NULL AS INTEGER ) + 56 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 98 + col0 FROM tab0 AS cor0
----
-63
-74
-9

query I rowsort
SELECT ALL + 2 + 64 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + col1 + - ( + cor0.col1 ) + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + 6 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL - - 13 * - ( col1 ) + col1 + - ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT ALL ( + ( + col2 ) ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + - col1 * col1 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT DISTINCT col1 DIV col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT col1 / col1 + - col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT + + cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL col1 * - col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - - cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * 34 col1 FROM tab2 AS cor0
----
1054
2006
578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 - col1 col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + - col1 * + 11 * - col0 FROM tab0 AS cor0
----
23496
37380
96387

query I rowsort
SELECT + 14 * col0 + - col1 FROM tab2 AS cor0
----
1033
1089
67

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col0 + + col0 * + 56 FROM tab2 cor0
----
385
4290
4345

query I rowsort
SELECT ALL cor0.col0 * - col1 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT col1 * col0 * - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL 76 * + cor0.col1 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT + col2 * cor0.col2 * col2 + + 67 AS col2 FROM tab2 AS cor0
----
17643
19750
54939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col1 * - col1 col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT - col1 - + col1 * col0 * + cor0.col0 FROM tab2 AS cor0
----
-106114
-1550
-359015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - ( col2 ) * col0 col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + - cor0.col1 - + ( - 13 * col0 ) AS col1 FROM tab0 AS cor0
----
1066
226
358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col1 FROM tab2
----
43
43
43

query I rowsort
SELECT + 14 + col0 AS col0 FROM tab1
----
17
78
94

query I rowsort
SELECT DISTINCT - col1 * 74 * tab0.col0 FROM tab0
----
-152736
-251230
-599326

query I rowsort
SELECT 40 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT tab1.col2 * + ( col0 ) + - tab1.col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT ALL - col2 * + col2 + col1 * - col0 * col1 FROM tab1
----
-22736
-4944
-9649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab2.col2 ) + - col0 col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ( - col2 ) * col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - ( 1 ) + - cor0.col0 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5490
SELECT ALL + CAST( 9 AS SIGNED ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-63
-702
-711

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL + CAST ( 9 AS INTEGER ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT ALL + - 70 * col1 FROM tab1 AS cor0
----
-1820
-700
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * - 71 col2 FROM tab2
----
-4473
-4473
-4473

query I rowsort
SELECT DISTINCT cor0.col1 * + 16 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT DISTINCT + 24 + - col1 AS col1 FROM tab2 AS cor0
----
-35
-7
7

query I rowsort
SELECT ALL + - 2 * - col2 + - col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1998
-3393
-7935

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + col1 * cor0.col0 - - col1 FROM tab1 AS cor0
----
266
4298
8733

query I rowsort
SELECT ALL - col0 * col0 * + cor0.col0 + + col0 + col1 FROM tab1 AS cor0
----
-262070
-511907
2

query I rowsort
SELECT col1 * - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT col2 * + col1 * cor0.col2 + - col0 * - col2 FROM tab2 AS cor0
----
22788
27550
41912

query I rowsort
SELECT 22 + - tab0.col0 + col1 * - col0 FROM tab0
----
-2066
-3408
-8166

query I rowsort
SELECT + ( + 5 ) * col0 FROM tab1
----
15
320
400

query I rowsort
SELECT + - col1 + + col0 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT cor0.col0 + - col1 FROM tab1 cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5504
SELECT - col1 * + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5504
SELECT - col1 * + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col1 * + 7 * cor0.col0 FROM tab0 AS cor0
----
14448
23765
56693

query I rowsort
SELECT - col2 * cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL col2 + 19 * cor0.col2 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT DISTINCT col2 + - 4 * + col0 FROM tab0 AS cor0
----
-139
-274
-63

query I rowsort
SELECT ALL - col2 + ( col1 ) * col0 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5510
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + col2 * + col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-35961
-36
-551457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5512
SELECT DISTINCT + - col0 * - CAST( + col2 AS SIGNED ) + col1 - + col1 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT + - col0 * - CAST ( + col2 AS INTEGER ) + col1 - + col1 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5513
SELECT ALL + col0 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + col0 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col1 * cor0.col0 * + ( col1 ) FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT col2 * col1 + col2 - + col2 * + tab2.col1 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 66 ) + - cor0.col0 col2 FROM tab0 AS cor0
----
-23
31
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + - col0 col2 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5520
SELECT col1 DIV - CAST( - col1 AS SIGNED ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5520
SELECT col1 / - CAST ( - col1 AS INTEGER ) FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + tab0.col2 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT + col2 * - col1 + - col1 + col0 * + col0 FROM tab2 AS cor0
----
-819
4491
5578

query I rowsort
SELECT col0 * + col0 * + col0 AS col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT cor0.col1 * + col0 + cor0.col0 + - col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - + col1 * col2 - - col1 * - cor0.col2 FROM tab1 AS cor0
----
-1140
-2496
-2808

query I rowsort
SELECT col0 * - col0 + - cor0.col2 * col1 + col1 FROM tab2 AS cor0
----
-6870
-7559
-855

query I rowsort
SELECT - col1 + - col1 * + col2 FROM tab2
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT IN ( - tab0.col2 * - col2 - col2 * - col1 )
----

query I rowsort
SELECT + cor0.col1 + col0 + - col2 * + col0 FROM tab0 cor0
----
-682
-7118
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5532
SELECT DISTINCT - col1 DIV cor0.col1 AS col1 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5532
SELECT DISTINCT - col1 / cor0.col1 AS col1 FROM tab1 cor0
----
-1

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + cor0.col2 col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT DISTINCT - tab1.col2 DIV col0 AS col2 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT - tab1.col2 / col0 AS col2 FROM tab1
----
-1
-18
0

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + col0 - col0 IN ( col0 + col2 )
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * cor0.col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + + 84 * col2 - col0 FROM tab2 cor0
----
2106
2261
3113

query I rowsort
SELECT - + ( col2 ) + 35 AS col0 FROM tab1 cor0
----
-19
-22
-61

query I rowsort
SELECT ALL - - col0 * 53 + - col1 * - col2 FROM tab0 AS cor0
----
12179
1952
4110

query I rowsort
SELECT + - col1 - - col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + col2 * 8 * col0 FROM tab1 AS cor0
----
1296
29184
61440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 + - col1 * col1 col2 FROM tab1 AS cor0
----
2240
3149
9047

onlyif mysql # use DIV operator for integer division
query I rowsort label-5545
SELECT ALL col2 DIV - 76 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL col2 / - 76 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 + + col0 * cor0.col1 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-5547
SELECT - col0 + 76 * col0 DIV + 61 FROM tab0 AS cor0
----
21
5
8

skipif mysql # not compatible
query I rowsort label-5547
SELECT - col0 + 76 * col0 / + 61 FROM tab0 AS cor0
----
21
5
8

query I rowsort
SELECT - - col1 * col2 + + col2 FROM tab0 cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT col0 + 83 DIV col2 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-5549
SELECT col0 + 83 / col2 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT - + col2 * + col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + ( + 26 ) * col1 FROM tab2 AS cor0
----
1534
442
806

query I rowsort
SELECT ALL - 50 FROM tab1 cor0
----
-50
-50
-50

query I rowsort
SELECT - - ( col0 ) * - 45 AS col2 FROM tab0 AS cor0
----
-1080
-1575
-4005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col0 FROM tab0, tab0 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL col1 * col1 * - col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ( col0 + col0 ) AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL + 72 + + col1 FROM tab0 AS cor0
----
158
163
169

query I rowsort
SELECT + col2 + cor0.col0 * col2 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - 49 AS col2 FROM tab2
----
-49
-49
-49

query I rowsort
SELECT DISTINCT + 80 + cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
178
199
253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col0 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + 2 + col2 + col1 AS col1 FROM tab2 AS cor0
----
57
60
87

query I rowsort
SELECT ALL 67 + + col2 FROM tab1 cor0
----
121
124
163

query I rowsort
SELECT DISTINCT - 48 * col0 + - 17 AS col2 FROM tab0 AS cor0
----
-1169
-1697
-4289

query I rowsort
SELECT DISTINCT col0 * col1 + col0 AS col2 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT + cor0.col0 * col0 AS col0 FROM tab0 cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + cor0.col0 col2 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + 11 * col2 FROM tab2
----
286
297
418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab2
----
27
27
27

query I rowsort
SELECT + ( - col0 ) - + col1 FROM tab2
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5573
SELECT - col1 + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5573
SELECT - col1 + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 * ( + ( cor0.col0 ) ) AS col0 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - col1 * 75 + col0 AS col0 FROM tab1 AS cor0
----
-1947
-686
-895

query I rowsort
SELECT ALL + cor0.col1 * + 47 + + col2 FROM tab1 AS cor0
----
1276
527
707

query I rowsort
SELECT - - cor0.col2 + + ( col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - - ( col1 ) * - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + 18 - col2 FROM tab1 AS cor0
----
-36
-39
-78

query I rowsort
SELECT ALL ( + 2 ) + col2 * - 41 FROM tab0 AS cor0
----
-1351
-3360
-39

query I rowsort
SELECT DISTINCT - tab2.col1 * 87 + 95 AS col1 FROM tab2
----
-1384
-2602
-5038

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5582
SELECT col0 + + CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT col0 + + CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5583
SELECT + col2 * - 12 + col1 + col2 * 74 DIV col2 FROM tab1
----
-1065
-548
-600

skipif mysql # not compatible
query I rowsort label-5583
SELECT + col2 * - 12 + col1 + col2 * 74 / col2 FROM tab1
----
-1065
-548
-600

query I rowsort
SELECT ALL 96 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5585
SELECT col1 DIV col1 - - col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5585
SELECT col1 / col1 - - col2 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5586
SELECT ALL + col1 DIV col1 + + 8 * - tab2.col2 + col0 FROM tab2
----
-129
-208
-224

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + col1 / col1 + + 8 * - tab2.col2 + col0 FROM tab2
----
-129
-208
-224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 6 col2 FROM tab1
----
70
86
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT - 21 + + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-20
-21
14

skipif mysql # not compatible
query I rowsort label-5588
SELECT - 21 + + col0 / col2 AS col1 FROM tab0 AS cor0
----
-20
-21
14

query I rowsort
SELECT DISTINCT - col0 * col0 + - cor0.col1 + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-6221
-6337
-87

query I rowsort
SELECT - 67 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT - col2 * col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT 56 + + 70 + - cor0.col1 AS col2 FROM tab1 cor0
----
100
113
116

query I rowsort
SELECT ALL + ( + col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col0 + col0 * + cor0.col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT 59 * 25 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1492
1506
1534

query I rowsort
SELECT ALL - + col2 * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ( cor0.col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - - col2 * + col1 + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + col1 - col0 * - col1 * + col2 AS col0 FROM tab2 AS cor0
----
119711
51051
5890

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( 54 AS REAL ) + cor0.col1 * CAST ( - col1 + + col1 AS INTEGER ) FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT ALL + - 40 * + col1 AS col0 FROM tab2 AS cor0
----
-1240
-2360
-680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( - cor0.col1 ) col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( ( col1 ) ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 90 AS col1 FROM tab2 cor0
----
90
90
90

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-5606
SELECT ALL + col2 DIV + 83 col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL + col2 / + 83 col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + ( + 27 ) * + tab0.col2 col1 FROM tab0
----
-2296
-28
-924

onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT ALL + col0 DIV + 57 + tab1.col0 * + col2 AS col1 FROM tab1
----
162
3649
7681

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL + col0 / + 57 + tab1.col0 * + col2 AS col1 FROM tab1
----
162
3649
7681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 25 * - col0 col1 FROM tab2
----
168
1872
1896

query I rowsort
SELECT cor0.col2 - 35 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 6d16bd3bb755d8cc69ffb4720362e8a2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 44 col1 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT 49 * + 53 AS col0 FROM tab1 AS cor0
----
2597
2597
2597

query I rowsort
SELECT 82 - col2 FROM tab1 AS cor0
----
-14
25
28

query I rowsort
SELECT col2 + 25 AS col2 FROM tab1
----
121
79
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5615
SELECT - col2 * col0 DIV + col0 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5615
SELECT - col2 * col0 / + col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL col2 * 50 + col1 FROM tab2
----
1359
1381
1917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 49 col2 FROM tab1
----
113
129
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5618
SELECT - CAST( NULL AS SIGNED ) + + ( - col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT - CAST ( NULL AS INTEGER ) + + ( - col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor1.col0 * 50 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 480211018bc0256494927bdfd67e1c61

query I rowsort
SELECT DISTINCT - + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - col1 * col2 + - col1 AS col0 FROM tab2 cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5622
SELECT 64 + - 35 DIV - cor0.col1 col2 FROM tab1 cor0
----
65
66
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5622
SELECT 64 + - 35 / - cor0.col1 col2 FROM tab1 cor0
----
65
66
67

query I rowsort
SELECT ALL + col2 + + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - cor0.col2 + - col1 * - cor0.col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - ( - 69 ) AS col1 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT ALL col0 * - 94 FROM tab1 AS cor0
----
-282
-6016
-7520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + - col2 col1 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5628
SELECT ALL - col1 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5628
SELECT ALL - col1 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + col0 + + col0 - - col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col0 + + 88 AS col0 FROM tab2 cor0
----
10
81
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5631
SELECT CAST( NULL AS SIGNED ) + cor0.col1 * - col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5631
SELECT CAST ( NULL AS INTEGER ) + cor0.col1 * - col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( + col2 ) col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + ( + cor1.col1 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
10
13
26

query I rowsort
SELECT 60 AS col0 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5635
SELECT ALL 16 * col1 - col0 DIV col0 FROM tab0 AS cor0
----
1375
1455
1551

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL 16 * col1 - col0 / col0 FROM tab0 AS cor0
----
1375
1455
1551

query I rowsort
SELECT ALL - + 50 * - col2 * col0 FROM tab2 AS cor0
----
101400
150100
9450

query I rowsort
SELECT + 73 * col0 AS col1 FROM tab0 AS cor0
----
1752
2555
6497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 * col1 - + col1 * + 92 col1 FROM tab1 AS cor0
----
-1900
-2470
-4940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5639
SELECT DISTINCT + col1 / - cor0.col0 + + CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT + col1 / - cor0.col0 + + CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col1 col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + + 6 * - col2 AS col2 FROM tab0 AS cor0
----
-198
-492
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5642
SELECT DISTINCT + col2 - col0 DIV + col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + col2 - col0 / + col2 FROM tab0 AS cor0
----
-34
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT ALL - col1 + + CAST( + 54 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
-10
-13
-25

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - col1 + + CAST ( + 54 AS INTEGER ) / col2 FROM tab1 AS cor0
----
-10
-13
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT ALL - col1 + - col2 DIV col1 FROM tab1 AS cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-5644
SELECT ALL - col1 + - col2 / col1 FROM tab1 AS cor0
----
-15
-20
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT - + col2 * col0 * cor0.col1 + - col0 - + 66 AS col2 FROM tab0 AS cor0
----
-3496
-664273
-68202

query I rowsort
SELECT ALL ( + 13 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - col0 + - col0 * - col1 * col1 AS col1 FROM tab0 cor0
----
177480
329280
736920

query I rowsort
SELECT ALL col0 * + col1 * 54 FROM tab2
----
11718
248508
72522

query I rowsort
SELECT DISTINCT 2 FROM tab1, tab0 cor0, tab1 AS cor1
----
2

query I rowsort
SELECT ALL + 48 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + col2 * + ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + ( 74 ) * col1 * - col2 AS col2 FROM tab0 cor0
----
210012
552188
7178

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5656
SELECT 19 * + ( - col0 * + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5656
SELECT 19 * + ( - col0 * + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5657
SELECT ALL - + CAST( NULL AS SIGNED ) * - ( col2 ) + + col2 * 41 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - + CAST ( NULL AS INTEGER ) * - ( col2 ) + + col2 * 41 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 91 + - cor0.col0 FROM tab1 AS cor0
----
11
27
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + cor0.col1 col2 FROM tab0 AS cor0
----
163
168
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT DISTINCT + 57 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT + 57 / + col1 AS col0 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - 15 + 27 + + col1 FROM tab0
----
103
109
98

query I rowsort
SELECT - col0 * col1 + + ( 40 ) * + cor0.col0 FROM tab0 AS cor0
----
-1104
-1995
-4539

query I rowsort
SELECT + col1 * col2 * - 12 FROM tab2 AS cor0
----
-10044
-18408
-7752

onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT - cor0.col2 * - col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5664
SELECT - cor0.col2 * - col1 / + col1 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - col1 * cor0.col0 * ( col0 ) AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - 9 AS col0 FROM tab1
----
-9
-9
-9

query I rowsort
SELECT + col1 - col1 * col0 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-5668
SELECT DISTINCT + col1 DIV col0 - col0 * col0 AS col0 FROM tab2
----
-45
-6084
-6241

skipif mysql # not compatible
query I rowsort label-5668
SELECT DISTINCT + col1 / col0 - col0 * col0 AS col0 FROM tab2
----
-45
-6084
-6241

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 BETWEEN ( col1 * - col0 ) AND - col2 + + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT - col1 + col2 / col0 FROM tab1 WHERE ( col0 ) >= NULL
----

query I rowsort
SELECT ALL col2 * + col1 + - col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT tab0.col0 + - col1 AS col2 FROM tab0 WHERE NOT - col1 NOT IN ( + col1 * - col0 + col2 * + col2 )
----

query I rowsort
SELECT col1 * tab2.col1 + tab2.col2 + + col0 FROM tab2
----
3585
406
995

query I rowsort
SELECT ALL - 15 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 + 10 col0 FROM tab0, tab1 AS cor0
----
34
45
99

query I rowsort
SELECT ALL + 5 + + col0 * + cor0.col2 FROM tab0 AS cor0
----
40
7303
797

query I rowsort
SELECT DISTINCT - col0 * col2 * col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL col2 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT tab0.col0 + - col2 - + col1 AS col2 FROM tab0
----
-63
-84
-95

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL - col2 * + col2 * - col2 FROM tab0
----
1
35937
551368

query I rowsort
SELECT DISTINCT col0 + - tab2.col0 * col1 + + col1 AS col2 FROM tab2
----
-1247
-179
-4465

query I rowsort
SELECT DISTINCT + col1 + - col2 * + col1 * col0 AS col2 FROM tab1
----
-36470
-4186
-99827

query I rowsort
SELECT col0 + + col2 - - col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) = col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * - col1 + col1 * col0 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 * col2 AS col2 FROM tab2
----
1690
1733
4157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * col1 col2 FROM tab1
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT DISTINCT - col0 DIV + col2 + - col0 AS col2 FROM tab1
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT - col0 / + col2 + - col0 AS col2 FROM tab1
----
-3
-65
-80

query I rowsort
SELECT - col0 - - col2 * col1 * - col2 FROM tab2
----
-22606
-24627
-39962

query I rowsort
SELECT ALL - col0 + - tab1.col2 FROM tab1
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT ALL + col1 DIV tab1.col2 + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL + col1 / tab1.col2 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT - col0 - tab2.col2 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - col0 * col2 * col2 FROM tab0 WHERE col1 IN ( - col0 + tab0.col2 / col1 )
----

query I rowsort
SELECT col0 * + col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND tab2.col2 + - col0 * + col2
----

query I rowsort
SELECT + - 1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * + 29 AS col0 FROM tab0 AS cor0
----
2378
29
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT + CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( - cor0.col1 ) * col1 * + col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5701
SELECT ALL + CAST( col0 AS SIGNED ) + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL + CAST ( col0 AS INTEGER ) + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 95 col1 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT 42 * ( col1 ) + 18 AS col0 FROM tab2 AS cor0
----
1320
2496
732

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5704
SELECT CAST( - cor0.col2 AS SIGNED ) + col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5704
SELECT CAST ( - cor0.col2 AS INTEGER ) + col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5705
SELECT + - CAST( NULL AS SIGNED ) * col0 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT + - CAST ( NULL AS INTEGER ) * col0 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 15 * + col1 + ( cor0.col1 ) * + col1 FROM tab0 AS cor0
----
10864
8686
9646

query I rowsort
SELECT ALL 17 + + col2 AS col1 FROM tab1
----
113
71
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5708
SELECT + + col1 DIV col1 + - ( - col0 ) FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5708
SELECT + + col1 / col1 + - ( - col0 ) FROM tab0 AS cor0
----
25
36
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5709
SELECT ALL - - ( col0 ) * CAST( - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL - - ( col0 ) * CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5710
SELECT ALL - + ( col1 ) * CAST( 80 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
-165120
-271600
-647920

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL - + ( col1 ) * CAST ( 80 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-165120
-271600
-647920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5711
SELECT + ( col2 * + col0 ) + - CAST( + 62 AS SIGNED ) AS col2 FROM tab2
----
127
1966
2940

skipif mysql # not compatible
query I rowsort label-5711
SELECT + ( col2 * + col0 ) + - CAST ( + 62 AS INTEGER ) AS col2 FROM tab2
----
127
1966
2940

query I rowsort
SELECT ALL 24 + col0 FROM tab1
----
104
27
88

query I rowsort
SELECT ALL - 70 FROM tab1, tab1 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT col1 - col2 * col1 * 88 FROM tab2
----
-134933
-56831
-73625

query I rowsort
SELECT DISTINCT col1 * - col0 + col1 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT - col0 * col0 + 48 FROM tab2 AS cor0
----
-1
-6036
-6193

query I rowsort
SELECT ALL col0 * ( col0 ) + col2 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5718
SELECT - - col2 + + CAST( - ( col2 ) * + ( - 62 ) + + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3456
3648
6144

skipif mysql # not compatible
query I rowsort label-5718
SELECT - - col2 + + CAST ( - ( col2 ) * + ( - 62 ) + + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT DISTINCT col1 + - col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + + col1 + 83 FROM tab1 AS cor0
----
109
93
96

query I rowsort
SELECT ALL + col0 + + 19 FROM tab2 AS cor0
----
26
97
98

query I rowsort
SELECT DISTINCT - col1 * + col1 + + 71 * - col1 + + ( 22 ) * col2 FROM tab0 cor0
----
-12776
-12938
-16274

query I rowsort
SELECT - - col0 * + col1 + 5 * - cor0.col2 - ( - cor0.col1 ) FROM tab1 cor0
----
-166
365
573

query I rowsort
SELECT DISTINCT + col0 + - ( + 38 ) + col1 * ( + col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
3392
664169
68098

onlyif mysql # use DIV operator for integer division
query I rowsort label-5725
SELECT col2 + 24 + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
51
51
66

skipif mysql # not compatible
query I rowsort label-5725
SELECT col2 + 24 + col0 / + col1 AS col2 FROM tab2 AS cor0
----
51
51
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - ( col0 ) col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col0 + + 70 FROM tab0 AS cor0
----
105
159
94

query I rowsort
SELECT ALL + - col0 + 57 FROM tab2 AS cor0
----
-21
-22
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT + col2 + col2 DIV + col1 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-5729
SELECT + col2 + col2 / + col1 FROM tab2
----
26
27
40

query I rowsort
SELECT 30 + col2 AS col1 FROM tab1
----
126
84
87

query I rowsort
SELECT - cor0.col1 * + 68 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d0c28b3ac3146e5de87ee8101376f910

query I rowsort
SELECT DISTINCT ( - col2 * + 92 ) FROM tab0
----
-3036
-7544
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5733
SELECT DISTINCT col1 DIV col1 + - col1 AS col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT col1 / col1 + - col1 AS col1 FROM tab2
----
-16
-30
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5734
SELECT ALL col0 + col2 DIV col2 AS col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL col0 + col2 / col2 AS col0 FROM tab1
----
4
65
81

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

query I rowsort
SELECT + col1 + + tab2.col2 + col1 * + col0 AS col0 FROM tab2
----
1398
275
4687

query I rowsort
SELECT col2 + ( 42 ) FROM tab2 AS cor0
----
68
69
80

query I rowsort
SELECT - + cor0.col0 - - ( 73 ) AS col1 FROM tab1 cor0
----
-7
70
9

query I rowsort
SELECT DISTINCT + - col0 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5740
SELECT - col2 / CAST( NULL AS SIGNED ) + col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5740
SELECT - col2 / CAST ( NULL AS INTEGER ) + col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col2 * + 17 AS col0 FROM tab0 cor0
----
-126854
-1649
-48246

onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT col2 * col2 DIV - 57 AS col0 FROM tab0 AS cor0
----
-117
-19
0

skipif mysql # not compatible
query I rowsort label-5742
SELECT col2 * col2 / - 57 AS col0 FROM tab0 AS cor0
----
-117
-19
0

query I rowsort
SELECT - 2 * col1 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
14924
194
5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5744
SELECT - - 14 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5744
SELECT - - 14 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + - 36 * 35 FROM tab2 AS cor0
----
-1286
-1287
-1298

query I rowsort
SELECT - + col0 + - col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT - + col1 * - cor0.col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + col2 * col2 + + ( - col1 * - col0 ) FROM tab2
----
2787
5278
946

query I rowsort
SELECT DISTINCT col1 + + col0 * - col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - + col2 * + col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5751
SELECT DISTINCT + - CAST( cor0.col2 AS SIGNED ) * col0 * 68 AS col0 FROM tab0 AS cor0
----
-2380
-496264
-53856

skipif mysql # not compatible
query I rowsort label-5751
SELECT DISTINCT + - CAST ( cor0.col2 AS INTEGER ) * col0 * 68 AS col0 FROM tab0 AS cor0
----
-2380
-496264
-53856

query I rowsort
SELECT ALL - ( + cor0.col0 ) + + cor0.col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT 21 * + col2 + col1 + col2 AS col2 FROM tab2 AS cor0
----
625
631
853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT ALL CAST( + col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5755
SELECT + + ( - col2 ) * col1 * 99 + + col2 DIV + col1 FROM tab2 AS cor0
----
-151866
-63952
-82863

skipif mysql # not compatible
query I rowsort label-5755
SELECT + + ( - col2 ) * col1 * 99 + + col2 / + col1 FROM tab2 AS cor0
----
-151866
-63952
-82863

query I rowsort
SELECT DISTINCT - 4 + col2 AS col2 FROM tab2 AS cor0
----
22
23
34

query I rowsort
SELECT ALL + - 31 * col2 + col1 FROM tab2 AS cor0
----
-1161
-747
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5758
SELECT ALL tab2.col1 DIV + 29 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL tab2.col1 / + 29 FROM tab2
----
0
1
2

query I rowsort
SELECT ALL + 38 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 * col1 col0 FROM tab1
----
-260
-338
-676

query I rowsort
SELECT col0 + col0 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2112
3465
8277

query I rowsort
SELECT + + 80 AS col2 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT 45 * col2 AS col1 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT + 2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL 79 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT col2 * 74 AS col2 FROM tab0
----
2442
6068
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5767
SELECT - col0 * - CAST( + 39 AS SIGNED ) + - col2 FROM tab1 cor0
----
2439
3024
63

skipif mysql # not compatible
query I rowsort label-5767
SELECT - col0 * - CAST ( + 39 AS INTEGER ) + - col2 FROM tab1 cor0
----
2439
3024
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - 71 col0 FROM tab1 AS cor0
----
-68
-7
9

query I rowsort
SELECT - col0 * col0 + col1 AS col0 FROM tab0 cor0
----
-1128
-490
-7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5770
SELECT - - col1 + - CAST( col0 + col2 AS SIGNED ) FROM tab1 AS cor0
----
-111
-163
-31

skipif mysql # not compatible
query I rowsort label-5770
SELECT - - col1 + - CAST ( col0 + col2 AS INTEGER ) FROM tab1 AS cor0
----
-111
-163
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( + col2 ) col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + col0 - 20 FROM tab1 AS cor0
----
-100
-23
-84

query I rowsort
SELECT + - col0 * + cor0.col0 - - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-10634
-16202
-7972

query I rowsort
SELECT 21 * ( + col2 ) * + 93 + - 53 AS col2 FROM tab2 AS cor0
----
50725
52678
74161

query I rowsort
SELECT + + col2 + + 50 FROM tab1 AS cor0
----
104
107
146

query I rowsort
SELECT - + col1 * 87 + + col1 AS col1 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT DISTINCT col1 * + ( 25 ) FROM tab1 AS cor0
----
250
325
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5778
SELECT ALL - - col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL - - col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5779
SELECT + col2 DIV - ( 19 ) + col2 FROM tab2 AS cor0
----
25
26
36

skipif mysql # not compatible
query I rowsort label-5779
SELECT + col2 / - ( 19 ) + col2 FROM tab2 AS cor0
----
25
26
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5780
SELECT col0 + - col0 DIV cor0.col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5780
SELECT col0 + - col0 / cor0.col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - + col2 * 48 AS col2 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT ALL 64 * - col1 AS col2 FROM tab0
----
-5504
-5824
-6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col1 FROM tab2
----
-20

query I rowsort
SELECT 92 * col0 AS col0 FROM tab0
----
2208
3220
8188

query I rowsort
SELECT ALL - 19 * - col1 AS col0 FROM tab0
----
1634
1729
1843

query I rowsort
SELECT ALL - + col0 * ( + col2 ) * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5787
SELECT - col1 DIV CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5787
SELECT - col1 / CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * + col0 col1 FROM tab0 cor0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5789
SELECT + col2 + + CAST( + col1 * - col2 AS SIGNED ) FROM tab1 AS cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-5789
SELECT + col2 + + CAST ( + col1 * - col2 AS INTEGER ) FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5790
SELECT ALL + col2 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL + col2 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 47 + + col1 col2 FROM tab1 AS cor0
----
57
60
73

query I rowsort
SELECT DISTINCT - 50 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT + cor0.col2 * + col0 AS col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5794
SELECT ALL CAST( - 81 + col2 AS SIGNED ) FROM tab2
----
-43
-54
-55

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL CAST ( - 81 + col2 AS INTEGER ) FROM tab2
----
-43
-54
-55

query I rowsort
SELECT - col0 + - col1 + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
151
1891
2906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 + - 31 * col2 col1 FROM tab2
----
-1095
-723
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT - col2 DIV - col1 - - col0 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5797
SELECT - col2 / - col1 - - col0 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - col2 * - col1 + col1 + - 1 * - col2 FROM tab1
----
1357
1484
637

query I rowsort
SELECT ALL 32 * - col0 + ( + 91 ) * col2 FROM tab1
----
3139
4818
6176

query I rowsort
SELECT + 26 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT col1 + col1 + col1 * - tab2.col0 FROM tab2
----
-1309
-155
-4484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5802
SELECT - - col1 + + col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT - - col1 + + col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab2 cor0
----
6
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT ALL - 32 + + col0 * col2 DIV - col0 + - col1 FROM tab1 AS cor0
----
-112
-141
-99

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - 32 + + col0 * col2 / - col0 + - col1 FROM tab1 AS cor0
----
-112
-141
-99

query I rowsort
SELECT - 95 + + col0 AS col0 FROM tab0 AS cor0
----
-6
-60
-71

query I rowsort
SELECT DISTINCT - col1 * col1 * - cor0.col0 + - col2 FROM tab1 AS cor0
----
13424
1974
6343

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + - col0 + ( + col0 ) * + cor0.col1 FROM tab0 cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5809
SELECT - col1 + col2 + col1 DIV - col0 AS col2 FROM tab0
----
-10
-56
-98

skipif mysql # not compatible
query I rowsort label-5809
SELECT - col1 + col2 + col1 / - col0 AS col2 FROM tab0
----
-10
-56
-98

query I rowsort
SELECT - - cor0.col2 * - col0 + - col1 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT + col0 + 11 FROM tab1 cor0
----
14
75
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5812
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 4 FROM tab2, tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 4 FROM tab2, tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( - col2 * col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL - ( - cor0.col0 ) - col1 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - - ( + col2 ) * col2 - col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT 44 * col1 - col0 FROM tab1 AS cor0
----
1141
376
492

query I rowsort
SELECT - 27 * cor0.col2 AS col2 FROM tab2 cor0
----
-1026
-702
-729

query I rowsort
SELECT DISTINCT 82 * cor0.col2 - col0 FROM tab0 AS cor0
----
2682
47
6635

query I rowsort
SELECT ALL 21 * + col2 + + col0 AS col2 FROM tab2 AS cor0
----
574
624
877

query I rowsort
SELECT DISTINCT + - col2 + col0 * - col1 AS col1 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL + - 47 * - col0 AS col2 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT - 71 FROM tab2 cor0
----
-71
-71
-71

query I rowsort
SELECT ALL - 78 + - col0 AS col0 FROM tab1 AS cor0
----
-142
-158
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT ALL - 23 * + cor0.col0 + col2 DIV 32 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1816

skipif mysql # not compatible
query I rowsort label-5825
SELECT ALL - 23 * + cor0.col0 + col2 / 32 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col1 * + col2 + + col0 - - col0 FROM tab0 AS cor0
----
167
2886
7640

query I rowsort
SELECT + col0 - 2 AS col1 FROM tab1
----
1
62
78

query I rowsort
SELECT + 47 + - col1 FROM tab1
----
21
34
37

query I rowsort
SELECT DISTINCT + 23 FROM tab0, tab2 AS cor0
----
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5831
SELECT ALL tab1.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL tab1.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab0, tab0 AS cor0
----
-40

query I rowsort
SELECT ALL - 47 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

query I rowsort
SELECT + 87 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT ALL + - col1 * col2 - 91 FROM tab2 AS cor0
----
-1625
-737
-928

query I rowsort
SELECT + ( col1 ) * + cor0.col2 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( + col2 ) ) + - col1 col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - + 51 * - 66 AS col2 FROM tab1 AS cor0
----
3366
3366
3366

query I rowsort
SELECT + - col1 * - col0 + - col2 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT - 86 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

onlyif mysql # use DIV operator for integer division
query I rowsort label-5841
SELECT + col2 DIV + ( tab0.col1 ) + - col0 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5841
SELECT + col2 / + ( tab0.col1 ) + - col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col0 + tab1.col2 * col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT col0 + - col0 + + 43 * - 78 FROM tab0 AS cor0
----
-3354
-3354
-3354

query I rowsort
SELECT DISTINCT - + 88 AS col1 FROM tab2 AS cor0
----
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT + + col2 DIV col2 + + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5845
SELECT + + col2 / col2 + + col2 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT DISTINCT + col2 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT + col2 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col2 ) * col2 + - col0 col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL + col1 * col0 + 76 FROM tab1 cor0
----
1116
154
716

query I rowsort
SELECT - col1 * - col1 + col0 + + col0 AS col0 FROM tab0 AS cor0
----
7444
8459
9479

query I rowsort
SELECT DISTINCT - ( - col1 ) * 67 FROM tab2 AS cor0
----
1139
2077
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 + + 90 col2 FROM tab0
----
142
142
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col1 col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + tab0.col0 - 97 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 89502ca13925f5af2acb06a4d809df12

query I rowsort
SELECT + + col1 * + ( col2 ) + col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT - col0 + + 18 * col2 FROM tab1 AS cor0
----
1648
962
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 37 + - 79 col1 FROM tab1 AS cor0
----
1919
2030
3473

query I rowsort
SELECT + 23 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT - col2 * cor0.col0 + + col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col2 * - col0 + 2 AS col0 FROM tab1 AS cor0
----
164
3650
7682

query I rowsort
SELECT ALL - col0 + col1 * col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + col2 + ( + 64 ) * col1 FROM tab2 cor0
----
1126
2011
3802

onlyif mysql # use DIV operator for integer division
query I rowsort label-5862
SELECT - - col0 + + 23 DIV - col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-5862
SELECT - - col0 + + 23 / - col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT + + col2 + col0 + col2 AS col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT 15 + - tab1.col2 + - 26 FROM tab1
----
-107
-65
-68

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + + cor0.col1 * - 16 FROM tab0 cor0
----
-1376
-1456
-1552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + col1 col0 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT col1 * col0 - 53 * + col0 AS col0 FROM tab0
----
1540
3382
792

query I rowsort
SELECT + col1 * col1 + col0 * col0 FROM tab2 AS cor0
----
1010
6530
9565

query I rowsort
SELECT + + cor0.col1 * 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5871
SELECT ALL + CAST( col0 + + col2 AS SIGNED ) FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL + CAST ( col0 + + col2 AS INTEGER ) FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab2, tab2 AS cor0
----
42

query I rowsort
SELECT DISTINCT tab0.col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
86
91
97

query I rowsort
SELECT ALL - + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5875
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col1 col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col1 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5876
SELECT ALL + + col2 DIV - cor0.col0 + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-17
-69
7

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL + + col2 / - cor0.col0 + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-17
-69
7

query I rowsort
SELECT ALL ( + col0 ) + col1 + 41 FROM tab0 AS cor0
----
151
173
221

onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT ALL 28 * col1 DIV + col0 + - ( - col2 ) + col1 FROM tab1 AS cor0
----
113
322
71

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL 28 * col1 / + col0 + - ( - col2 ) + col1 FROM tab1 AS cor0
----
113
322
71

query I rowsort
SELECT ( - col2 + col1 ) * - col2 FROM tab2
----
-108
-858
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT - ( col1 ) + + 87 FROM tab0 AS cor0
----
-10
-4
1

query I rowsort
SELECT + col2 * 90 AS col0 FROM tab1 AS cor0
----
4860
5130
8640

query I rowsort
SELECT ( - cor0.col0 ) + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( - col0 ) + - tab1.col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - + cor0.col0 * - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bf0d47ae26a3f9220ea7f127466fd7da

query I rowsort
SELECT - + ( 85 ) FROM tab1 cor0
----
-85
-85
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5887
SELECT ALL - col0 DIV 95 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL - col0 / 95 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ( col1 ) * + col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col2 * 5 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT ALL - ( - col0 ) * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - - cor0.col0 - col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5892
SELECT ALL - CAST( ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - CAST ( ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - - col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 50 + col0 AS col2 FROM tab1 AS cor0
----
114
130
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT col1 DIV col2 - - col0 * - col0 FROM tab0 AS cor0
----
-1128
-574
-7920

skipif mysql # not compatible
query I rowsort label-5895
SELECT col1 / col2 - - col0 * - col0 FROM tab0 AS cor0
----
-1128
-574
-7920

query I rowsort
SELECT ALL 96 - 15 AS col1 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + col2 * + col0 - cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT 58 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT ALL + - 11 AS col2 FROM tab2 AS cor0
----
-11
-11
-11

query I rowsort
SELECT col2 * + col2 + + 7 AS col2 FROM tab0 AS cor0
----
1096
6731
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5901
SELECT ALL + col1 - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + col1 - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col2 * col1 + 94 FROM tab1
----
1355
1524
674

query I rowsort
SELECT DISTINCT + 66 * col1 - col2 AS col1 FROM tab0
----
5643
5924
6401

query I rowsort
SELECT DISTINCT col1 * - 91 * - col2 AS col2 FROM tab2 cor0
----
139594
58786
76167

query I rowsort
SELECT DISTINCT + col0 * ( - col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - col1 * + ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col0 * ( + tab2.col2 ) * - tab2.col1 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + ( - col2 ) + + cor0.col0 + col0 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT col1 * 7 AS col1 FROM tab2
----
119
217
413

onlyif mysql # use DIV operator for integer division
query I rowsort label-5910
SELECT col2 DIV 8 AS col1 FROM tab1
----
12
6
7

skipif mysql # not compatible
query I rowsort label-5910
SELECT col2 / 8 AS col1 FROM tab1
----
12
6
7

query I rowsort
SELECT + col2 * 93 FROM tab0
----
3069
7626
93

query I rowsort
SELECT - col1 * + col0 * col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0, tab1, tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5914
SELECT ALL + tab0.col2 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL + tab0.col2 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 + + 17 FROM tab1
----
113
71
74

query I rowsort
SELECT col0 - + 19 AS col0 FROM tab0
----
16
5
70

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 + col0 * col1 FROM tab1 AS cor0
----
240
4288
8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col2 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT 63 FROM tab0, tab2 AS cor0
----
63

query I rowsort
SELECT col0 + - ( + 69 ) FROM tab1
----
-5
-66
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + tab0.col1 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b266f8b689a93b61e6ea0be4166767f5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5923
SELECT DISTINCT CAST( + 23 AS SIGNED ) + col0 AS col2 FROM tab0
----
112
47
58

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT CAST ( + 23 AS INTEGER ) + col0 AS col2 FROM tab0
----
112
47
58

query I rowsort
SELECT - 1 * ( + col1 ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 67 + + col2 FROM tab1
----
-10
-13
29

query I rowsort
SELECT col1 * 11 FROM tab0
----
1001
1067
946

query I rowsort
SELECT + 38 * + col1 + + col2 AS col2 FROM tab0
----
3301
3540
3687

onlyif mysql # use DIV operator for integer division
query I rowsort label-5928
SELECT ALL col1 + tab2.col2 DIV + col0 + - ( col2 + tab2.col2 ) * + 56 AS col2 FROM tab2
----
-2853
-2990
-4239

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL col1 + tab2.col2 / + col0 + - ( col2 + tab2.col2 ) * + 56 AS col2 FROM tab2
----
-2853
-2990
-4239

query I rowsort
SELECT ALL 50 + ( + tab2.col1 + 47 ) AS col0 FROM tab2
----
114
128
156

query I rowsort
SELECT - ( col0 ) * + col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ( + 21 ) * - col0 AS col0 FROM tab0 cor0
----
-1869
-504
-735

query I rowsort
SELECT DISTINCT - ( 93 ) AS col0 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT + cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL col2 * 36 + col1 AS col2 FROM tab0 AS cor0
----
1274
133
3043

query I rowsort
SELECT DISTINCT + ( col0 ) + + 50 AS col0 FROM tab0
----
139
74
85

query I rowsort
SELECT - ( + tab1.col2 ) + 34 FROM tab1
----
-20
-23
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT DISTINCT col2 * col2 + tab1.col2 DIV tab1.col0 AS col2 FROM tab1
----
2934
3249
9217

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT col2 * col2 + tab1.col2 / tab1.col0 AS col2 FROM tab1
----
2934
3249
9217

query I rowsort
SELECT + 43 + col1 FROM tab0
----
129
134
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT + col1 + col1 DIV - col0 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-5939
SELECT + col1 + col1 / - col0 FROM tab1
----
10
13
18

query I rowsort
SELECT ALL + ( tab0.col0 ) * tab0.col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL tab1.col2 + + col1 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL col1 * col2 + + ( + col2 * col0 ) FROM tab2
----
1026
3562
3648

query I rowsort
SELECT + 79 * + 72 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to aed7f198c7be8792ca48e4f5850e087e

query I rowsort
SELECT ALL - col0 + col1 * 53 AS col1 FROM tab0 AS cor0
----
4534
4734
5106

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT ALL - - cor0.col0 + col1 DIV - ( - col0 + col2 ) AS col0 FROM tab1 cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - - cor0.col0 + col1 / - ( - col0 + col2 ) AS col0 FROM tab1 cor0
----
3
65
80

query I rowsort
SELECT - + 85 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5947
SELECT DISTINCT + - col0 + - CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-5947
SELECT DISTINCT + - col0 + - CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + col0 + + 20 FROM tab1 AS cor0
----
100
23
84

query I rowsort
SELECT DISTINCT + - col0 * col0 + - cor0.col0 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5950
SELECT DISTINCT + col0 DIV - 45 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT + col0 / - 45 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + col1 * 99 + 74 FROM tab0 AS cor0
----
8588
9083
9677

query I rowsort
SELECT - col0 * - 47 + + col2 * col2 FROM tab2 AS cor0
----
1058
4342
5157

query I rowsort
SELECT ALL cor0.col0 + + col2 AS col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5954
SELECT 64 * + col2 + + col2 DIV col2 FROM tab1
----
3457
3649
6145

skipif mysql # not compatible
query I rowsort label-5954
SELECT 64 * + col2 + + col2 / col2 FROM tab1
----
3457
3649
6145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * 96 + + col0 col1 FROM tab1 AS cor0
----
-1168
-2493
-896

query I rowsort
SELECT + col1 * 97 AS col0 FROM tab2 cor0
----
1649
3007
5723

query I rowsort
SELECT DISTINCT + col2 - ( - 16 ) FROM tab1 cor0
----
112
70
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5958
SELECT - col1 DIV - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5958
SELECT - col1 / - 97 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 89 * - col2 + 90 * + col0 AS col1 FROM tab2
----
10492
3033
9334

query I rowsort
SELECT ALL + + 9 FROM tab2, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT ( + col0 ) + - 11 + + col1 AS col1 FROM tab1
----
18
63
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT - + cor0.col1 DIV col1 + - cor0.col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5962
SELECT - + cor0.col1 / col1 + - cor0.col2 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - 16 * col2 * col1 FROM tab2 AS cor0
----
-10336
-13392
-24544

query I rowsort
SELECT DISTINCT + tab1.col2 * + tab1.col2 FROM tab1, tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL 40 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5966
SELECT + - col0 + CAST( NULL AS SIGNED ) / cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5966
SELECT + - col0 + CAST ( NULL AS INTEGER ) / cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 82 * col2 * + col0 FROM tab2 AS cor0
----
15525
166322
246202

query I rowsort
SELECT DISTINCT ( 28 + + col1 ) FROM tab0
----
114
119
125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5969
SELECT ALL CAST( 30 AS SIGNED ) FROM tab2 AS cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL CAST ( 30 AS INTEGER ) FROM tab2 AS cor0
----
30
30
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5970
SELECT ALL - col1 * + col2 + + col1 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL - col1 * + col2 + + col1 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab0 AS cor0
----
5

query I rowsort
SELECT - col0 - - col1 * + col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5973
SELECT ALL + 38 * + col2 + - CAST( NULL AS SIGNED ) * - 63 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT ALL + 38 * + col2 + - CAST ( NULL AS INTEGER ) * - 63 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT DISTINCT - col1 DIV + col0 AS col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT - col1 / + col0 AS col0 FROM tab1 AS cor0
----
-8
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT + col1 - - col1 DIV col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5975
SELECT + col1 - - col1 / col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL + + 87 + col1 * - col0 FROM tab2 AS cor0
----
-1256
-130
-4515

query I rowsort
SELECT + col2 * - cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - tab1.col0 * col0 + col0 + col0 FROM tab1
----
-3
-3968
-6240

query I rowsort
SELECT - cor0.col0 * + tab2.col2 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 094ec191d4a978f7a19a3ae6fc2135d6

query I rowsort
SELECT + col0 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT 91 - col2 * - 44 FROM tab1
----
2467
2599
4315

query I rowsort
SELECT ALL ( col2 ) - col1 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT ALL + col0 * - col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT - cor0.col0 + ( - col2 ) FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + col1 + + ( col0 ) * cor0.col2 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
-233452
-434
-614374

query I rowsort
SELECT ALL + col2 * + col2 * + 2 AS col1 FROM tab2 AS cor0
----
1352
1458
2888

query I rowsort
SELECT col0 - 29 * + col1 FROM tab1 AS cor0
----
-226
-297
-751

query I rowsort
SELECT ALL + col0 + + ( + col0 ) + + col1 FROM tab2 AS cor0
----
175
215
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT DISTINCT - col0 DIV col1 + col2 + col0 AS col2 FROM tab2 AS cor0
----
103
113
34

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - col0 / col1 + col2 + col0 AS col2 FROM tab2 AS cor0
----
103
113
34

query I rowsort
SELECT + col0 + - ( + 17 ) * + col0 FROM tab2 AS cor0
----
-112
-1248
-1264

query I rowsort
SELECT ALL - col1 - 79 AS col2 FROM tab0 cor0
----
-165
-170
-176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 98 col1 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT ALL + tab2.col1 - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2, tab0, tab1 AS cor0
----
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5996
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5996
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 14 * + col1 AS col1 FROM tab0 AS cor0
----
-1204
-1274
-1358

onlyif mysql # use DIV operator for integer division
query I rowsort label-5998
SELECT - 35 DIV col2 + col1 DIV ( ( cor0.col0 ) ) FROM tab0 AS cor0
----
-33
1
2

skipif mysql # not compatible
query I rowsort label-5998
SELECT - 35 / col2 + col1 / ( ( cor0.col0 ) ) FROM tab0 AS cor0
----
-33
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 col0 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT + 98 + col1 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6000
SELECT + 98 + col1 / cor0.col1 AS col0 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT ALL + ( col0 ) + col1 * + 44 FROM tab1 AS cor0
----
1147
504
652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 17 ) * + col0 col0 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT 84 * + col0 FROM tab0 AS cor0
----
2016
2940
7476

query I rowsort
SELECT ALL - tab1.col2 * + tab1.col1 + col2 FROM tab1
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 + + col0 col1 FROM tab2
----
11
111
58

query I rowsort
SELECT - col1 - + col0 * - col0 AS col0 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT col0 FROM tab1 WHERE ( col1 ) < + col0 + col1
----
3
64
80

query I rowsort
SELECT DISTINCT col2 + - col1 * col1 AS col2 FROM tab1
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6010
SELECT + tab0.col2 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6010
SELECT + tab0.col2 / col0 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL col2 + - col2 * + col2 AS col1 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0 AS cor0 WHERE NULL > col1
----

query I rowsort
SELECT - tab0.col1 + tab0.col2 AS col1 FROM tab0
----
-53
-9
-96

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + col0 * - tab1.col0 )
----

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT col0 * - col0 + col0 AS col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - col1 * col2 * - col0 FROM tab0
----
3395
664118
68112

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT col2 * - col2 * + col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT NULL NOT IN ( tab2.col1 )
----

query I rowsort
SELECT DISTINCT col2 + - col1 + col1 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + col0 * - col0 * col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT - col0 * + col2 + col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT ALL col1 + col1 * + col2 * tab2.col2 AS col2 FROM tab2
----
22630
24565
39943

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( col0 ) BETWEEN col0 AND + col1
----
-57
-96

query I rowsort
SELECT col2 * + col0 + col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT ALL - tab2.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab2
----
3
64
80

query I rowsort
SELECT DISTINCT - - cor0.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 - col0 + col0 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT ALL - - col2 DIV col0 + + col2 FROM tab0 cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6031
SELECT ALL - - col2 / col0 + + col2 FROM tab0 cor0
----
1
34
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - - col0 col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col0 * + col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * col1 NOT IN ( col1 - col2 )
----

query I rowsort
SELECT ALL + col2 * - col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL col0 - col2 * col2 * + col2 FROM tab2 AS cor0
----
-17498
-19676
-54793

query I rowsort
SELECT ALL col2 + + col2 AS col1 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 * col0 + col1 FROM tab2 AS cor0
----
-1292
-158125
-237141

query I rowsort
SELECT DISTINCT - col1 - - col0 * col2 * - col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 > + col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col2 * - 66 * - ( + col0 ) FROM tab2 AS cor0
----
12474
133848
198132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 12 col2 FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT DISTINCT col0 * cor0.col0 AS col1 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6043
SELECT ALL + + col0 * CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL + + col0 * CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT DISTINCT - col2 DIV + cor0.col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT DISTINCT - col2 / + cor0.col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT cor0.col1 + + 55 FROM tab2 cor0
----
114
72
86

query I rowsort
SELECT ALL - col1 * ( col0 ) * - col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT ALL col0 DIV + col2 + + tab1.col2 AS col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-6048
SELECT ALL col0 / + col2 + + tab1.col2 AS col2 FROM tab1
----
54
58
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - col2 + 92 FROM tab1 AS cor0
----
-4
35
38

query I rowsort
SELECT col0 * + ( + cor0.col1 + col0 ) AS col0 FROM tab1 cor0
----
4736
7440
87

query I rowsort
SELECT DISTINCT ( 65 ) FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6053
SELECT DISTINCT + CAST( 82 AS SIGNED ) * + tab2.col1 - - 47 FROM tab2, tab2 AS cor0, tab1, tab2 cor1
----
1441
2589
4885

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT + CAST ( 82 AS INTEGER ) * + tab2.col1 - - 47 FROM tab2, tab2 AS cor0, tab1, tab2 cor1
----
1441
2589
4885

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a

query I rowsort
SELECT DISTINCT + 18 + + col0 FROM tab0 AS cor0
----
107
42
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col1 FROM tab1 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * col1 * + col1 AS col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT + col2 * - col1 - + col2 AS col0 FROM tab2
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT tab1.col0 DIV - col1 AS col2 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6059
SELECT tab1.col0 / - col1 AS col2 FROM tab1
----
-6
-6
0

query I rowsort
SELECT ALL col2 + col0 - col2 * tab0.col1 FROM tab0
----
-2781
-61
-7291

onlyif mysql # use DIV operator for integer division
query I rowsort label-6061
SELECT ALL col1 + col0 DIV col0 - col2 FROM tab1
----
-27
-46
-82

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL col1 + col0 / col0 - col2 FROM tab1
----
-27
-46
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6062
SELECT DISTINCT + 52 DIV + tab0.col1 + col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT + 52 / + tab0.col1 + col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - col1 + - tab0.col1 + 53 * col1 FROM tab0
----
4386
4641
4947

query I rowsort
SELECT + 67 + col1 FROM tab1
----
77
80
93

query I rowsort
SELECT ALL + col1 * col2 + tab1.col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + 70 + - tab2.col2 * col0 * 4 FROM tab2
----
-11938
-686
-8042

query I rowsort
SELECT DISTINCT tab2.col2 * col2 + 3 * col0 * col0 AS col0 FROM tab2
----
18928
20167
876

onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT DISTINCT - cor0.col0 DIV + col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT - cor0.col0 / + col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT 7 * col1 FROM tab2
----
119
217
413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT DISTINCT col2 * + col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT col2 * + col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6071
SELECT - ( - col0 ) DIV + col1 AS col2 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6071
SELECT - ( - col0 ) / + col1 AS col2 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT - + CAST( NULL AS SIGNED ) + + 18 + - cor0.col2 * 7 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT - + CAST ( NULL AS INTEGER ) + + 18 + - cor0.col2 * 7 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + col1 * - col2 * - tab0.col1 AS col0 FROM tab0
----
244068
679042
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6076
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT col0 * + col0 + + col1 * - ( - col2 ) FROM tab1
----
1413
4666
7648

query I rowsort
SELECT + - 34 * 58 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 6434bb622440055a66cc7c19b4778abc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + + col0 col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col2 * 60 AS col2 FROM tab1 cor0
----
3240
3420
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 - 78 col1 FROM tab1 AS cor0
----
-37
-37
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6082
SELECT ALL + 79 DIV - col0 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + 79 / - col0 FROM tab0
----
-2
-3
0

query I rowsort
SELECT DISTINCT + col2 * - col2 + ( ( + col1 ) ) FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * + cor1.col0 col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 3308937e73f3503fa2b2a0ef235eb3c1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT ALL col0 DIV + col1 col0 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6085
SELECT ALL col0 / + col1 col0 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT DISTINCT + col2 DIV 74 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT + col2 / 74 AS col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6087
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + 46 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) + 46 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6088
SELECT ALL col1 * col0 + 21 DIV - cor0.col0 FROM tab2 AS cor0
----
1343
214
4602

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL col1 * col0 + 21 / - cor0.col0 FROM tab2 AS cor0
----
1343
214
4602

query I rowsort
SELECT DISTINCT + - col1 + col0 * cor0.col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + col1 * 99 + - cor0.col2 * + col2 AS col2 FROM tab0 cor0
----
2285
7425
9602

query I rowsort
SELECT + col1 + - ( - col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6092
SELECT col1 + - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-6092
SELECT col1 + - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( + col0 AS REAL ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6094
SELECT - col1 DIV + col0 + col0 * + tab2.col0 * - ( 7 ) FROM tab2
----
-347
-42588
-43687

skipif mysql # not compatible
query I rowsort label-6094
SELECT - col1 / + col0 + col0 * + tab2.col0 * - ( 7 ) FROM tab2
----
-347
-42588
-43687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6095
SELECT col0 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT col0 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6096
SELECT col0 * CAST( 37 AS SIGNED ) - + tab2.col1 FROM tab2
----
228
2827
2906

skipif mysql # not compatible
query I rowsort label-6096
SELECT col0 * CAST ( 37 AS INTEGER ) - + tab2.col1 FROM tab2
----
228
2827
2906

query I rowsort
SELECT + col2 * + 93 + col0 FROM tab2 AS cor0
----
2496
2518
3613

query I rowsort
SELECT ( 57 ) FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT ALL + col1 * - 22 + - col2 + ( + cor0.col0 + col0 ) AS col2 FROM tab0 AS cor0
----
-1877
-1906
-2065

query I rowsort
SELECT DISTINCT 55 - 55 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + 6 * col0 * col1 + 3 FROM tab1 AS cor0
----
3843
471
6243

query I rowsort
SELECT 30 AS col0 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT 17 + - col1 AS col0 FROM tab1 AS cor0
----
-9
4
7

query I rowsort
SELECT col2 + cor0.col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - ( + 72 ) + - col0 * col0 FROM tab0
----
-1297
-648
-7993

query I rowsort
SELECT + 46 * col2 AS col2 FROM tab0 AS cor0
----
1518
3772
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6107
SELECT - col1 * col1 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-6107
SELECT - col1 * col1 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-12

query I rowsort
SELECT col2 * col0 + col0 * col0 FROM tab2 AS cor0
----
238
8112
9243

query I rowsort
SELECT ( tab2.col1 + + 20 ) AS col2 FROM tab2
----
37
51
79

query I rowsort
SELECT DISTINCT - + col1 + + cor0.col0 * - 13 AS col1 FROM tab0 AS cor0
----
-1248
-398
-552

query I rowsort
SELECT + 71 * - 68 + col1 FROM tab2
----
-4769
-4797
-4811

query I rowsort
SELECT col0 + + 68 * col0 AS col1 FROM tab2
----
483
5382
5451

onlyif mysql # use DIV operator for integer division
query I rowsort label-6113
SELECT - col1 * col2 * - col0 + + col2 DIV + col0 AS col2 FROM tab2
----
119652
51034
5862

skipif mysql # not compatible
query I rowsort label-6113
SELECT - col1 * col2 * - col0 + + col2 / + col0 AS col2 FROM tab2
----
119652
51034
5862

query I rowsort
SELECT ALL 42 + 32 FROM tab0
----
74
74
74

query I rowsort
SELECT ALL - 59 * - col2 FROM tab1
----
3186
3363
5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * col0 col2 FROM tab1
----
141
3008
3760

query I rowsort
SELECT ALL + - ( col2 ) + 91 AS col1 FROM tab0 AS cor0
----
58
9
90

query I rowsort
SELECT + + col2 + col1 * col1 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT ALL ( + col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6120
SELECT + cor0.col1 * + col0 * CAST( + 17 AS SIGNED ) col1 FROM tab0 cor0
----
137683
35088
57715

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6120
SELECT + cor0.col1 * + col0 * CAST ( + 17 AS INTEGER ) col1 FROM tab0 cor0
----
137683
35088
57715

query I rowsort
SELECT + col1 - + 99 FROM tab2
----
-40
-68
-82

query I rowsort
SELECT - col0 * col0 + + 46 AS col0 FROM tab1 AS cor0
----
-4050
-6354
37

query I rowsort
SELECT - + col0 + ( col1 ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + - ( + ( + col2 ) ) + + ( col1 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + - col1 + - 99 AS col1 FROM tab0 AS cor0
----
-185
-190
-196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - 47 + col1 AS col0 FROM tab1 AS cor0
----
-21
-34
-37

query I rowsort
SELECT ALL + - 56 + col1 * + col1 FROM tab0 AS cor0
----
7340
8225
9353

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6129
SELECT CAST( NULL AS SIGNED ) + + cor0.col1 * col1 + 82 * col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6129
SELECT CAST ( NULL AS INTEGER ) + + cor0.col1 * col1 + 82 * col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + col1 * + col1 AS col0 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT ALL - col0 * + 49 FROM tab1 AS cor0
----
-147
-3136
-3920

query I rowsort
SELECT + 76 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT 29 * cor0.col1 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-3806
-6023
745

query I rowsort
SELECT DISTINCT + ( 37 ) FROM tab1 AS cor0
----
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6135
SELECT CAST( 34 AS SIGNED ) * - col0 + - CAST( - 12 AS SIGNED ) FROM tab2 cor0
----
-226
-2640
-2674

skipif mysql # not compatible
query I rowsort label-6135
SELECT CAST ( 34 AS INTEGER ) * - col0 + - CAST ( - 12 AS INTEGER ) FROM tab2 cor0
----
-226
-2640
-2674

query I rowsort
SELECT ALL ( - ( + col1 ) ) * - col2 * + col2 + col2 FROM tab1 cor0
----
119904
32547
75870

query I rowsort
SELECT DISTINCT - - 25 - - col1 FROM tab1 cor0
----
35
38
51

query I rowsort
SELECT + ( - col2 ) * - col0 - cor0.col2 * + col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT DISTINCT col1 * + col2 + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + cor0.col2 + cor0.col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL + ( - col2 ) + col1 * + col1 * col1 AS col2 FROM tab1 cor0
----
17522
2101
943

query I rowsort
SELECT DISTINCT + + col1 * col2 * col2 AS col1 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT - 91 * + col0 * col1 + col1 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-187652
-308751
-736827

query I rowsort
SELECT ALL + col2 * 46 AS col0 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT 91 + col1 * cor0.col2 FROM tab1 AS cor0
----
1339
1495
661

query I rowsort
SELECT ALL - 46 * col0 * + col2 AS col0 FROM tab2 AS cor0
----
-138092
-8694
-93288

query I rowsort
SELECT ALL - - ( 44 ) + col1 + 4 FROM tab0 AS cor0
----
134
139
145

query I rowsort
SELECT DISTINCT col1 * cor0.col1 + + 98 AS col2 FROM tab0 AS cor0
----
7494
8379
9507

onlyif mysql # use DIV operator for integer division
query I rowsort label-6149
SELECT DISTINCT - + ( - cor0.col2 ) DIV col1 + - ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-6149
SELECT DISTINCT - + ( - cor0.col2 ) / col1 + - ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT + 77 * cor0.col2 AS col2 FROM tab1 AS cor0
----
4158
4389
7392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6151
SELECT ALL + + col2 * + col2 + + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + + col2 * + col2 + + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT - col2 + 69 - col0 DIV + 16 FROM tab2
----
27
39
42

skipif mysql # not compatible
query I rowsort label-6152
SELECT - col2 + 69 - col0 / + 16 FROM tab2
----
27
39
42

query I rowsort
SELECT ALL - col2 + 8 * + col2 FROM tab1
----
378
399
672

query I rowsort
SELECT + 15 + + col1 * - col1 FROM tab2 cor0
----
-274
-3466
-946

query I rowsort
SELECT - col2 + - cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6156
SELECT ALL - col2 * + CAST( 74 AS SIGNED ) FROM tab0 AS cor0
----
-2442
-6068
-74

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - col2 * + CAST ( 74 AS INTEGER ) FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT - + cor0.col1 * 8 * col2 FROM tab1 AS cor0
----
-11232
-4560
-9984

onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT ALL + - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6158
SELECT ALL + - col2 / - col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + - col0 * - ( + col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 + + 57 * + col2 FROM tab2 AS cor0
----
1541
1570
2183

query I rowsort
SELECT ALL - col1 * - 82 AS col0 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT ALL - col2 * col2 * + col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL col0 + cor0.col0 * 8 FROM tab1 cor0
----
27
576
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 10 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
10

query I rowsort
SELECT DISTINCT ( - ( col1 ) ) + col2 * - col0 + - cor0.col2 FROM tab1 AS cor0
----
-242
-3715
-7789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col2 + + col0 col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - col2 + + col0 * col0 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL col2 + 75 AS col2 FROM tab2
----
101
102
113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6169
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6170
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - 48 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT col2 + - 84 * + 84 FROM tab1
----
-6960
-6999
-7002

query I rowsort
SELECT - col2 + 58 FROM tab0 AS cor0
----
-24
25
57

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + col2 col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - col0 - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6177
SELECT ( + col0 ) * col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT ( + col0 ) * col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - 83 - cor0.col2 * - 14 * - col2 col2 FROM tab1 AS cor0
----
-130103
-42982
-46316

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT ALL ( - 98 ) FROM tab1, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT 66 + 61 FROM tab2 AS cor0
----
127
127
127

query I rowsort
SELECT cor0.col2 * tab2.col0 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 13db62c4f935162dbaa859c1d738cc13

query I rowsort
SELECT DISTINCT - - ( ( col0 ) ) * - 23 * + col1 AS col2 FROM tab2 AS cor0
----
-105846
-30889
-4991

query I rowsort
SELECT - 63 * + col0 AS col0 FROM tab1 AS cor0
----
-189
-4032
-5040

query I rowsort
SELECT + 47 * tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a9bdfe2d71fcc07ab42c13f23f877235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + col1 col2 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6187
SELECT ALL - CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6189
SELECT ALL - col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL - col2 / + col1 AS col0 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - ( 28 * col0 ) FROM tab0
----
-2492
-672
-980

query I rowsort
SELECT + 6 * - col2 FROM tab2 AS cor0
----
-156
-162
-228

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6192
SELECT col0 * CAST( col1 AS SIGNED ) FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6192
SELECT col0 * CAST ( col1 AS INTEGER ) FROM tab1
----
1040
640
78

query I rowsort
SELECT - col2 * 4 AS col2 FROM tab0
----
-132
-328
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col2 ) col1 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 97 ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT tab2.col0 * + ( tab2.col2 ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col2 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT + col2 * col1 + + col2 DIV 42 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-6198
SELECT + col2 * col1 + + col2 / 42 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT + ( col0 ) DIV + col2 col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6199
SELECT + ( col0 ) / + col2 col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 93 * + col1 FROM tab0 cor0
----
7998
8463
9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT ALL - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 * col1 col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + - 48 + col0 FROM tab0 AS cor0
----
-13
-24
41

query I rowsort
SELECT ALL - ( 17 ) FROM tab0 AS cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - tab0.col2 * + 29 * col2 AS col2 FROM tab0
----
-194996
-29
-31581

onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT DISTINCT + cor0.col1 DIV + col0 + col1 FROM tab0 cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT + cor0.col1 / + col0 + col1 FROM tab0 cor0
----
89
92
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT col1 + col2 DIV + 96 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6208
SELECT col1 + col2 / + 96 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col2 * + col1 * col2 + - col1 FROM tab1 AS cor0
----
-119821
-32500
-75842

query I rowsort
SELECT + col0 + + col0 + - col0 FROM tab0 cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT col0 DIV 48 - col2 FROM tab1 AS cor0
----
-54
-56
-95

skipif mysql # not compatible
query I rowsort label-6211
SELECT col0 / 48 - col2 FROM tab1 AS cor0
----
-54
-56
-95

query I rowsort
SELECT - col1 * 92 + cor0.col2 * - col2 FROM tab1 AS cor0
----
-10412
-4169
-5308

query I rowsort
SELECT - 95 FROM tab1, tab2, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 6ddacf7cdc440b47c37bfd544945f3f8

query I rowsort
SELECT DISTINCT + - 71 + + col2 AS col0 FROM tab1 AS cor0
----
-14
-17
25

query I rowsort
SELECT ALL - ( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col0 - + col2 * - col1 * col1 FROM tab2 AS cor0
----
11061
25954
90584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6217
SELECT ALL - col1 DIV 45 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL - col1 / 45 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 + 45 * 37 FROM tab0
----
1666
1698
1747

query I rowsort
SELECT col1 * - col2 + col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT 42 * + cor0.col0 FROM tab1 cor0
----
126
2688
3360

query I rowsort
SELECT ALL + 57 + col2 + - col2 AS col1 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT + col2 * - col2 + ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT 48 * col2 + col2 AS col0 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT ALL + + col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 61 * + tab0.col1 col1 FROM tab0
----
5270
5640
5952

query I rowsort
SELECT - ( 57 ) AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT ALL - + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col2 - col0 col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL ( - 55 ) AS col1 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + tab2.col2 * - tab2.col0 + col0 - col2 FROM tab2
----
-1976
-209
-2961

query I rowsort
SELECT - + col1 * col2 * + 90 + cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
-112144
-126303
-51179

onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT col1 DIV + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-6234
SELECT col1 / + col1 + - col0 AS col2 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT - col1 * col0 + col1 - cor0.col2 * + col1 FROM tab0 AS cor0
----
-15470
-3395
-4816

query I rowsort
SELECT + col0 - + col2 * + ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT 18 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL - 76 + - col0 + 66 AS col1 FROM tab1
----
-13
-74
-90

query I rowsort
SELECT ALL - ( col1 * - 50 ) + + tab1.col2 * + col1 AS col0 FROM tab1
----
1070
1898
2704

query I rowsort
SELECT ALL col0 * col0 + col2 * - col0 + col0 AS col0 FROM tab0
----
-192
1225
712

query I rowsort
SELECT + col1 * 97 + + col2 - col1 * col1 AS col0 FROM tab1 AS cor0
----
1188
1900
927

query I rowsort
SELECT col2 + + col0 + 30 * + col2 FROM tab1
----
1677
1831
3056

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab1 AS cor0, tab1 cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT - 5 DIV + col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6244
SELECT - 5 / + col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL - ( + col0 * - ( + col2 ) ) + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL col2 * col1 + col0 * col1 AS col2 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT 7 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + - cor0.col2 + + ( - col1 + - col1 ) AS col2 FROM tab1 AS cor0
----
-106
-122
-77

query I rowsort
SELECT ALL - - col2 + - ( - 79 ) AS col2 FROM tab0 AS cor0
----
112
161
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6250
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 + 48 * 53 AS col2 FROM tab1 AS cor0
----
2464
2480
2541

onlyif mysql # use DIV operator for integer division
query I rowsort label-6252
SELECT DISTINCT + - col2 * col0 DIV - 52 + col1 * + 70 + col2 AS col2 FROM tab1 AS cor0
----
1153
1877
827

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT + - col2 * col0 / - 52 + col1 * + 70 + col2 AS col2 FROM tab1 AS cor0
----
1153
1877
827

query I rowsort
SELECT + col2 * col1 + + col1 - col2 * col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + ( col1 ) + cor0.col2 + col0 FROM tab1 cor0
----
131
189
83

query I rowsort
SELECT DISTINCT - + ( - col0 ) - + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * - ( col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6257
SELECT ALL cor0.col0 DIV - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL cor0.col0 / - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( 80 ) FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT ALL - 35 + - col2 AS col2 FROM tab0 AS cor0
----
-117
-36
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT ALL + 36 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
36

skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL + 36 / col2 AS col1 FROM tab0 AS cor0
----
0
1
36

query I rowsort
SELECT - ( + 51 ) FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT + ( + col2 ) * - cor0.col1 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6263
SELECT ALL + + CAST( NULL AS SIGNED ) * 11 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + + CAST ( NULL AS INTEGER ) * 11 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col0 col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - cor0.col0 + + col0 * 13 * - col2 AS col2 FROM tab2 cor0
----
-2464
-26442
-39105

query I rowsort
SELECT DISTINCT col0 * + col0 + - 97 FROM tab1 AS cor0
----
-88
3999
6303

query I rowsort
SELECT - 10 + - col0 AS col1 FROM tab2 AS cor0
----
-17
-88
-89

query I rowsort
SELECT DISTINCT 86 + - col2 FROM tab2 AS cor0
----
48
59
60

query I rowsort
SELECT + + col0 + 41 * - 33 + + col0 AS col0 FROM tab2 AS cor0
----
-1195
-1197
-1339

query I rowsort
SELECT - col1 + 66 FROM tab2 AS cor0
----
35
49
7

query I rowsort
SELECT DISTINCT - + cor0.col1 * 61 + + 73 AS col2 FROM tab1 AS cor0
----
-1513
-537
-720

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT col0 * 59 - + col0 FROM tab2
----
406
4524
4582

query I rowsort
SELECT - col2 * col0 - + col0 * col1 AS col0 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT DISTINCT - 52 + + col1 FROM tab0 cor0
----
34
39
45

query I rowsort
SELECT - tab0.col0 * + tab0.col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - + cor0.col2 * tab1.col1 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 00c1773daca8bb01543211c1e358f2df

query I rowsort
SELECT + + col0 * - 64 FROM tab2 AS cor0
----
-448
-4992
-5056

query I rowsort
SELECT + 52 * - col1 * + tab0.col2 AS col1 FROM tab0
----
-147576
-388024
-5044

query I rowsort
SELECT 45 * + col1 * 31 FROM tab0
----
119970
126945
135315

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - 34 + + col1 FROM tab1
----
-21
-24
-8

query I rowsort
SELECT DISTINCT + col2 * + col1 + ( 83 * + col2 ) AS col2 FROM tab1
----
5301
5886
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 + col0 col1 FROM tab2
----
182
196
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + + col1 col2 FROM tab1 AS cor0
----
104
1053
650

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col1 * + col1 * col1 FROM tab1
----
1000
17576
2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT ALL col1 DIV - col0 AS col1 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL col1 / - col0 AS col1 FROM tab2 cor0
----
-4
0
0

query I rowsort
SELECT - tab1.col2 * - col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1456
567
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-6293
SELECT DISTINCT col1 * cor0.col1 + + col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
289
3481
957

skipif mysql # not compatible
query I rowsort label-6293
SELECT DISTINCT col1 * cor0.col1 + + col1 / - col0 AS col1 FROM tab2 AS cor0
----
289
3481
957

query I rowsort
SELECT ALL + col2 * col1 + col0 FROM tab0 cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT ALL tab1.col0 + + col0 DIV col1 AS col2 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL tab1.col0 + + col0 / col1 AS col2 FROM tab1
----
3
70
86

query I rowsort
SELECT ALL col1 * + col2 + - col2 AS col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL + col2 + col1 * col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + 61 * col0 AS col1 FROM tab1 cor0
----
183
3904
4880

onlyif mysql # use DIV operator for integer division
query I rowsort label-6299
SELECT 76 DIV col0 FROM tab1 AS cor0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-6299
SELECT 76 / col0 FROM tab1 AS cor0
----
0
1
25

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( 53 ) FROM tab2
----
53
53
53

query I rowsort
SELECT DISTINCT + 50 AS col2 FROM tab2
----
50

query I rowsort
SELECT ALL + col0 - - col2 * + col1 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL - col1 * + col1 * + tab0.col0 AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT 0 * + tab2.col1 AS col0 FROM tab2
----
0

query I rowsort
SELECT - cor0.col2 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + 18 * col2 FROM tab1
----
1026
1728
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 * col1 + - col2 * - 45 col1 FROM tab0
----
11789
3440
3549

query I rowsort
SELECT DISTINCT ( + tab1.col2 ) + - col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 80 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + cor0.col2 col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6312
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 * col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + 2 AS col2 FROM tab0 cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6314
SELECT ALL - CAST( + 63 AS SIGNED ) DIV col0 AS col0 FROM tab2 AS cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL - CAST ( + 63 AS INTEGER ) / col0 AS col0 FROM tab2 AS cor0
----
-9
0
0

query I rowsort
SELECT cor0.col2 * 6 AS col0 FROM tab2 AS cor0
----
156
162
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - col0 * col0 col2 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6317
SELECT ALL + ( col0 ) * - CAST( + col1 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL + ( col0 ) * - CAST ( + col1 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - 78 * col2 AS col0 FROM tab0 cor0
----
-2574
-6396
-78

query I rowsort
SELECT ALL 5 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-164
-671
-95

query I rowsort
SELECT + col1 * col2 + cor0.col0 * 13 AS col2 FROM tab2 AS cor0
----
1673
2548
928

onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT ALL + col0 DIV + col0 + - 53 + - cor0.col0 FROM tab0 AS cor0
----
-141
-76
-87

skipif mysql # not compatible
query I rowsort label-6321
SELECT ALL + col0 / + col0 + - 53 + - cor0.col0 FROM tab0 AS cor0
----
-141
-76
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + - cor0.col1 col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT col2 * col1 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT DISTINCT 23 * + col0 FROM tab0 AS cor0
----
2047
552
805

query I rowsort
SELECT ALL + cor0.col0 + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + - 47 * col2 AS col2 FROM tab0 cor0
----
-1551
-3854
-47

query I rowsort
SELECT + cor0.col0 * - col2 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL + col0 + - col1 - col1 FROM tab2
----
-40
-55
45

query I rowsort
SELECT ALL ( 19 * + tab0.col0 ) + - ( col2 ) * - col0 + col1 FROM tab0
----
1334
797
9080

query I rowsort
SELECT 70 + col1 * - col2 * col2 + + col0 FROM tab0
----
-611725
-93560
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 + + col0 * + col2 col1 FROM tab0 AS cor0
----
-44
713
7219

query I rowsort
SELECT DISTINCT + 84 + col0 FROM tab0 AS cor0
----
108
119
173

query I rowsort
SELECT DISTINCT - + 93 + col2 FROM tab1 AS cor0
----
-36
-39
3

query I rowsort
SELECT + - 21 AS col1 FROM tab1 AS cor0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 + - CAST ( col0 AS REAL ) col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6336
SELECT + col0 + + CAST( + col2 AS SIGNED ) * + col0 * + col1 FROM tab1 AS cor0
----
36544
4215
99920

skipif mysql # not compatible
query I rowsort label-6336
SELECT + col0 + + CAST ( + col2 AS INTEGER ) * + col0 * + col1 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT ALL + + col0 * + 24 FROM tab1 cor0
----
1536
1920
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col0 col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 39 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
39

query I rowsort
SELECT + col2 * - 23 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT DISTINCT col0 * - ( col0 ) AS col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col0 * col2 * col0 AS col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL - - col0 * + 69 * + col0 AS col1 FROM tab2 AS cor0
----
3381
419796
430629

query I rowsort
SELECT - ( col1 ) * + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT col2 * + ( - col1 ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL 92 FROM tab1, tab0 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT + ( 62 ) * - col0 AS col2 FROM tab1 AS cor0
----
-186
-3968
-4960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT + + 69 DIV - col2 AS col2 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6349
SELECT + + 69 / - col2 AS col2 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6350
SELECT + - CAST( col0 AS SIGNED ) * col1 FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-6350
SELECT + - CAST ( col0 AS INTEGER ) * col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col1 * 13 AS col1 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT ALL + col2 + + cor0.col0 AS col0 FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6353
SELECT col1 DIV + tab0.col1 + + 53 * + tab0.col2 FROM tab0
----
1750
4347
54

skipif mysql # not compatible
query I rowsort label-6353
SELECT col1 / + tab0.col1 + + 53 * + tab0.col2 FROM tab0
----
1750
4347
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT 90 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6354
SELECT 90 / col2 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT + col1 * - 0 + col0 + + tab1.col2 FROM tab1
----
121
176
57

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT + col0 * tab1.col1 + tab1.col1 + + 46 FROM tab1
----
1099
150
696

query I rowsort
SELECT DISTINCT - 19 + tab1.col0 FROM tab1
----
-16
45
61

query I rowsort
SELECT ALL + 2 + 72 AS col2 FROM tab1 cor0
----
74
74
74

query I rowsort
SELECT DISTINCT col2 - + col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT + col1 DIV + 96 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6361
SELECT + col1 / + 96 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 + + tab1.col1 * - 51 FROM tab1
----
-1323
-446
-583

query I rowsort
SELECT col1 * ( 60 ) FROM tab1 cor0
----
1560
600
780

query I rowsort
SELECT ALL - col0 + - col1 + 59 FROM tab0 AS cor0
----
-121
-51
-73

query I rowsort
SELECT col1 * 73 + 0 FROM tab0 cor0
----
6278
6643
7081

query I rowsort
SELECT DISTINCT col2 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT + col1 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT 63 AS col0 FROM tab2, tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT col1 * - 73 * - cor0.col1 + col2 * cor0.col1 FROM tab1 AS cor0
----
13585
50752
7870

query I rowsort
SELECT ALL - - cor0.col0 + + col0 + cor0.col1 FROM tab1 AS cor0
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6371
SELECT - 83 DIV col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 83 / col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + col0 * 92 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT + col2 * - col0 + 61 FROM tab2 AS cor0
----
-128
-1967
-2941

query I rowsort
SELECT DISTINCT - ( - col0 ) * - ( col0 ) AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL + 56 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ( + col1 ) * - col1 * + col2 AS col1 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT DISTINCT 53 * col1 DIV + 64 FROM tab0
----
71
75
80

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT 53 * col1 / + 64 FROM tab0
----
71
75
80

query I rowsort
SELECT 68 * + col1 * + col2 AS col2 FROM tab2
----
104312
43928
56916

query I rowsort
SELECT ALL + - 94 * 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2cd2d9feb29551faab78e3a91a20fd45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col1 * - col0 + col1 col0 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT cor0.col2 + - ( 29 ) + + col0 FROM tab2 AS cor0
----
5
75
88

query I rowsort
SELECT 21 FROM tab0, tab2 AS cor0, tab1, tab2 cor1
----
81 values hashing to 4eecc28c48bfdf162a585f11d1dd0b6c

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col1 AS REAL ) * - col1 * - col2 AS col0 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - ( col0 ) * tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - tab1.col2 + - 38 * - col2 AS col2 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT ALL + ( 12 ) - col2 * ( + col2 * + col2 ) AS col1 FROM tab0 AS cor0
----
-35925
-551356
11

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - 36 AS INTEGER ) * cor0.col1 * CAST ( 30 AS REAL ) FROM tab1 AS cor0
----
-10800
-14040
-28080

query I rowsort
SELECT DISTINCT col1 + + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + 49 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT + + col2 + col1 * cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
22626
24586
39910

query I rowsort
SELECT ALL col0 * - tab2.col2 * ( col1 ) FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + - col1 + - col0 * - 26 FROM tab2 AS cor0
----
151
1969
2037

query I rowsort
SELECT DISTINCT + col1 * col0 * 18 FROM tab1 AS cor0
----
11520
1404
18720

query I rowsort
SELECT - ( tab1.col2 * 72 ) AS col1 FROM tab1
----
-3888
-4104
-6912

query I rowsort
SELECT - + col0 + col1 * col0 AS col2 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT - - col1 + col0 * 20 * - col0 FROM tab2 AS cor0
----
-121621
-124803
-949

query I rowsort
SELECT - col0 + 79 * - col1 * + col2 FROM tab1 AS cor0
----
-110919
-45094
-98672

query I rowsort
SELECT - col1 * col0 + + 9 FROM tab2 AS cor0
----
-1334
-208
-4593

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6399
SELECT + col1 * CAST( 61 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
5246
5551
5917

skipif mysql # not compatible
query I rowsort label-6399
SELECT + col1 * CAST ( 61 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT ALL + col1 * - col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 + 91 * col0 * cor0.col2 col1 FROM tab1 AS cor0
----
16146
332538
700128

query I rowsort
SELECT ALL + col0 + + col1 * - 31 AS col1 FROM tab1 AS cor0
----
-246
-323
-803

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6403
SELECT + + CAST( NULL AS SIGNED ) + - 7 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT + + CAST ( NULL AS INTEGER ) + - 7 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col0 * col0 AS col1 FROM tab1
----
4153
63
6496

query I rowsort
SELECT ( + 59 ) FROM tab2
----
59
59
59

query I rowsort
SELECT col2 * - col1 + - tab1.col2 AS col2 FROM tab1
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6407
SELECT CAST( - 56 AS SIGNED ) + - col1 col1 FROM tab0
----
-142
-147
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6407
SELECT CAST ( - 56 AS INTEGER ) + - col1 col1 FROM tab0
----
-142
-147
-153

query I rowsort
SELECT + 0 * + cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6409
SELECT + CAST( NULL AS SIGNED ) * col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT + CAST ( NULL AS INTEGER ) * col1 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col1 - + col1 * - col1 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + col1 * - col2 * ( - 41 + + col2 ) FROM tab0 AS cor0
----
-305942
22704
3880

query I rowsort
SELECT DISTINCT + + col2 * col1 + - cor0.col1 * + ( col0 ) * - col2 + col0 AS col1 FROM tab0 cor0
----
3527
671669
70974

query I rowsort
SELECT DISTINCT col2 * col2 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT DISTINCT ( + col2 + col0 ) AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT col0 * + tab1.col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL + col0 * col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - 57 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-219
-3705
-7737

query I rowsort
SELECT - - 28 * col1 AS col0 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT ALL 42 + + col1 FROM tab2
----
101
59
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * 7 col0 FROM tab1
----
581
581
581

onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT - 78 DIV + 3 FROM tab1
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-6422
SELECT - 78 / + 3 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT ALL - 66 + col1 FROM tab0
----
20
25
31

query I rowsort
SELECT ( - tab2.col0 ) * - col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - + col0 * - col1 + col0 * col2 * - col0 + + col0 FROM tab2 AS cor0
----
-1099
-153504
-235736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 97 col1 FROM tab2 AS cor0
----
-679
-7566
-7663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( col0 ) ) col2 FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 34 * col0 col2 FROM tab0 AS cor0
----
-1190
-248132
-26928

query I rowsort
SELECT DISTINCT + 30 + - tab2.col1 FROM tab2
----
-1
-29
13

query I rowsort
SELECT DISTINCT 18 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-151
-658
-82

query I rowsort
SELECT + col2 * + col0 + - 40 AS col2 FROM tab1
----
122
3608
7640

query I rowsort
SELECT + - col2 * - ( 34 + col1 ) FROM tab1 AS cor0
----
2508
3240
4512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + 69 col2 FROM tab2 cor0
----
-1794
-1863
-2622

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6434
SELECT - col2 + CAST( - col0 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-216
-3705
-7776

skipif mysql # not compatible
query I rowsort label-6434
SELECT - col2 + CAST ( - col0 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - col0 * col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL col1 * + 38 FROM tab2 AS cor0
----
1178
2242
646

query I rowsort
SELECT ALL + col1 * + 48 AS col2 FROM tab2 AS cor0
----
1488
2832
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6438
SELECT col0 DIV 63 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6438
SELECT col0 / 63 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - col2 + ( col2 ) * cor0.col2 * + 23 AS col0 FROM tab1 AS cor0
----
211872
67014
74670

query I rowsort
SELECT ALL - col0 + cor0.col2 + + 66 * - col1 AS col1 FROM tab2 AS cor0
----
-1163
-2026
-3946

query I rowsort
SELECT ALL + cor0.col2 * col1 + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT - - col2 * col1 * col0 + col2 AS col1 FROM tab1 cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col0 + col2 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - + col0 * + ( col0 ) * - col1 + + cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
118826
50625
727535

query I rowsort
SELECT DISTINCT - - col0 + - 43 AS col0 FROM tab1 cor0
----
-40
21
37

query I rowsort
SELECT col0 * + col2 + + 21 FROM tab0 AS cor0
----
56
7319
813

onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT + - col1 DIV - 13 AS col2 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6447
SELECT + - col1 / - 13 AS col2 FROM tab1 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 82 ) col0 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT - 68 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-68

query I rowsort
SELECT DISTINCT - tab2.col1 + 22 AS col1 FROM tab2, tab1, tab0 AS cor0
----
-37
-9
5

query I rowsort
SELECT - col1 + col0 * 67 AS col1 FROM tab0
----
1522
2248
5872

query I rowsort
SELECT DISTINCT 21 + cor0.col1 FROM tab2 cor0
----
38
52
80

query I rowsort
SELECT ALL - col0 * - col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL - col2 * col2 - ( + cor0.col0 * col0 + + 26 ) FROM tab0 AS cor0
----
-1252
-14671
-1691

query I rowsort
SELECT ALL ( col2 ) + 25 * - 74 AS col2 FROM tab2 AS cor0
----
-1812
-1823
-1824

query I rowsort
SELECT DISTINCT + + col2 + + col0 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - 4 + col2 * - col0 * col1 AS col2 FROM tab0 AS cor0
----
-3399
-664122
-68116

query I rowsort
SELECT 57 + - col1 * 74 AS col1 FROM tab2 AS cor0
----
-1201
-2237
-4309

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6459
SELECT ALL cor0.col1 * + col1 + CAST( 12 AS SIGNED ) - col1 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1067
-458
-716

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL cor0.col1 * + col1 + CAST ( 12 AS INTEGER ) - col1 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1067
-458
-716

query I rowsort
SELECT + - col1 * col1 + - cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-10634
-16202
-7972

query I rowsort
SELECT col2 + 33 FROM tab0
----
115
34
66

query I rowsort
SELECT ALL 40 * col1 + + tab0.col2 + col0 AS col0 FROM tab0
----
3497
3811
3916

query I rowsort
SELECT 73 + + col2 + col2 FROM tab2 AS cor0
----
125
127
149

query I rowsort
SELECT ALL - col2 * col1 + - tab2.col0 AS col1 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ALL cor0.col2 + 4 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fada32f942e7f8b31d7498275f3ed7b

query I rowsort
SELECT - - col1 * + 40 + - ( col0 ) FROM tab1 AS cor0
----
1037
336
440

query I rowsort
SELECT - - col0 + + col0 * + 88 FROM tab2 cor0
----
623
6942
7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-6468
SELECT DISTINCT col2 + col1 DIV - col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT col2 + col1 / - col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - + col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + 76 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-532
-5928
-6004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 * - col0 - col1 col1 FROM tab0 AS cor0
----
154
253
799

query I rowsort
SELECT - + 62 - + col2 AS col1 FROM tab2 cor0
----
-100
-88
-89

query I rowsort
SELECT + col1 * col2 + col2 * ( col0 ) FROM tab2 AS cor0
----
1026
3562
3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6474
SELECT DISTINCT - col0 * - CAST( col2 + col0 AS SIGNED ) FROM tab1
----
14080
171
7744

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT - col0 * - CAST ( col2 + col0 AS INTEGER ) FROM tab1
----
14080
171
7744

query I rowsort
SELECT + col2 * 29 AS col2 FROM tab2 AS cor0
----
1102
754
783

query I rowsort
SELECT ALL 65 * 56 FROM tab0
----
3640
3640
3640

query I rowsort
SELECT DISTINCT + 27 + col1 FROM tab0 AS cor0
----
113
118
124

query I rowsort
SELECT + 73 * - cor0.col0 + ( col0 * + col0 ) AS col1 FROM tab2 AS cor0
----
-462
390
474

query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 + ( + col1 ) + + col0 FROM tab0 AS cor0
----
-2728
-7282
35

query I rowsort
SELECT - + col0 * + col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col0 * - 58 AS col2 FROM tab2
----
-406
-4524
-4582

query I rowsort
SELECT DISTINCT 53 FROM tab1, tab1 cor0
----
53

query I rowsort
SELECT ALL + 2 - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d7ab04ac4699ea32577db97c89c1f604

query I rowsort
SELECT - col0 + + 53 * + 4 AS col0 FROM tab2 AS cor0
----
133
134
205

query I rowsort
SELECT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + - ( col0 ) * col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col0 * 86 FROM tab2 cor0
----
-602
-6708
-6794

query I rowsort
SELECT - cor0.col2 + - col1 + + cor0.col0 AS col1 FROM tab1 cor0
----
-29
-3
-77

query I rowsort
SELECT ALL - 15 FROM tab0, tab2 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 * col2 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + col0 * col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 63 ) * col0 col1 FROM tab0 AS cor0
----
-1512
-2205
-5607

query I rowsort
SELECT DISTINCT - 37 FROM tab1, tab1 AS cor0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col2 FROM tab0
----
2
2
2

query I rowsort
SELECT - - col2 + + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + + ( col2 ) * cor0.col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT + + 74 + col2 FROM tab0 AS cor0
----
107
156
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-45

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
6

query I rowsort
SELECT col1 * + col0 + + 31 FROM tab0 cor0
----
2095
3426
8130

query I rowsort
SELECT + col2 + + 51 FROM tab1 AS cor0
----
105
108
147

query I rowsort
SELECT + col0 * + 7 * 50 + - col2 * - cor0.col1 FROM tab1 AS cor0
----
22970
2454
29248

query I rowsort
SELECT ALL - cor0.col2 + - 49 AS col0 FROM tab0 AS cor0
----
-131
-50
-82

query I rowsort
SELECT - + col0 * - 29 AS col2 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT ALL tab1.col2 * - tab1.col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT 58 * - tab0.col0 AS col1 FROM tab0
----
-1392
-2030
-5162

query I rowsort
SELECT DISTINCT col1 * + 26 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
270
351
702

query I rowsort
SELECT DISTINCT cor0.col2 + 32 * + col2 AS col1 FROM tab0 cor0
----
1089
2706
33

query I rowsort
SELECT ALL - + cor0.col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6510
SELECT - col0 + + CAST( NULL AS SIGNED ) * cor0.col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6510
SELECT - col0 + + CAST ( NULL AS INTEGER ) * cor0.col2 col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6511
SELECT ALL col1 * cor0.col2 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL col1 * cor0.col2 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 * - cor0.col2 FROM tab2 cor0
----
-196
-2106
-3081

query I rowsort
SELECT - + cor0.col1 + col0 * col0 * col2 AS col0 FROM tab0 cor0
----
1128
18922
649431

query I rowsort
SELECT 65 * col1 FROM tab2 AS cor0
----
1105
2015
3835

query I rowsort
SELECT DISTINCT - 0 - - col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL col0 - col0 * col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT - 84 + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-49
708
7214

query I rowsort
SELECT + ( + col1 ) - + col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL 9 * col2 + - col2 * 79 AS col0 FROM tab2
----
-1820
-1890
-2660

query I rowsort
SELECT - col2 + + 53 AS col0 FROM tab2
----
15
26
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-6521
SELECT DISTINCT col1 + + col2 DIV tab0.col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT col1 + + col2 / tab0.col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - 90 + col1 AS col0 FROM tab0
----
-4
1
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * col0 + - 90 col0 FROM tab2
----
372
5058
5124

onlyif mysql # use DIV operator for integer division
query I rowsort label-6524
SELECT - + 93 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-13

skipif mysql # not compatible
query I rowsort label-6524
SELECT - + 93 / + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-13

query I rowsort
SELECT ALL + 0 * - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL tab2.col0 + tab2.col2 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 8a206af99264e378e55b667df888459e

query I rowsort
SELECT ALL col1 * 86 * col1 + + tab2.col0 * col0 FROM tab2
----
305450
31095
82695

query I rowsort
SELECT DISTINCT + + 7 * - col2 AS col0 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT DISTINCT 36 * + col1 AS col2 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT - col0 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT + + 21 * - col0 AS col1 FROM tab2 AS cor0
----
-147
-1638
-1659

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6532
SELECT ALL CAST( 79 AS SIGNED ) FROM tab2 cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL CAST ( 79 AS INTEGER ) FROM tab2 cor0
----
79
79
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6533
SELECT DISTINCT - - CAST( col1 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 25 + ( - col0 + + col0 * - col2 ) col2 FROM tab1 AS cor0
----
-190
-3737
-7785

query I rowsort
SELECT 19 * - 4 FROM tab0 AS cor0
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col0 + - col0 * + col1 * + col2 AS col0 FROM tab0
----
-3360
-664029
-68088

onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT col1 * col2 DIV + col2 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6538
SELECT col1 * col2 / + col2 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT + col2 * + ( + 34 ) + col2 FROM tab1
----
1890
1995
3360

query I rowsort
SELECT ALL col2 * + col1 + 84 * col2 * + col0 AS col0 FROM tab1
----
15012
307002
646368

query I rowsort
SELECT ALL - col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT DISTINCT - + cor0.col2 + - cor0.col2 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT - + cor0.col2 + - cor0.col2 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - 43 col2 FROM tab2 AS cor0
----
-16
-17
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + cor0.col1 ) * col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + cor0.col0 + 6 FROM tab0 cor0
----
30
41
95

query I rowsort
SELECT ALL + col1 * 89 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT - - ( col2 ) * - col2 * col2 AS col1 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT DISTINCT 60 * ( - col0 ) FROM tab1 cor0
----
-180
-3840
-4800

query I rowsort
SELECT + 4 + 52 * - col1 FROM tab2 AS cor0
----
-1608
-3064
-880

query I rowsort
SELECT ALL 80 * 10 AS col1 FROM tab2 AS cor0
----
800
800
800

query I rowsort
SELECT + 45 * + col1 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT DISTINCT ( - col0 * col2 ) AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ( - col2 ) + tab1.col1 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - ( - col2 ) + col0 * ( cor0.col0 ) * cor0.col1 AS col0 FROM tab1 cor0
----
288
41017
83296

query I rowsort
SELECT DISTINCT + - 79 * col0 AS col0 FROM tab0 AS cor0
----
-1896
-2765
-7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-6556
SELECT DISTINCT col2 * col0 DIV cor0.col2 col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT col2 * col0 / cor0.col2 col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 50 + - cor0.col2 * 6 AS col2 FROM tab1 AS cor0
----
-274
-292
-526

query I rowsort
SELECT DISTINCT + + ( + col0 ) + - col2 * + col1 * cor0.col2 AS col0 FROM tab2 cor0
----
-22592
-24469
-39806

query I rowsort
SELECT 34 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
-1098
-2699
1

query I rowsort
SELECT - 8 + - col2 * ( + col2 ) * col0 FROM tab1 cor0
----
-207944
-737288
-8756

query I rowsort
SELECT DISTINCT + - 56 AS col0 FROM tab2 cor0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * 27 col1 FROM tab0 AS cor0
----
1042
2494
734

query I rowsort
SELECT ALL - col0 + col0 * - 87 AS col1 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT 34 + + col1 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT - - 40 + col2 AS col2 FROM tab0 AS cor0
----
122
41
73

query I rowsort
SELECT - 43 + col0 FROM tab1 AS cor0
----
-40
21
37

query I rowsort
SELECT - - col1 - - ( + col1 ) FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 8 col2 FROM tab0 AS cor0
----
32
43
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6570
SELECT ALL - col1 + - col2 * col2 DIV col2 FROM tab0 cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-6570
SELECT ALL - col1 + - col2 * col2 / col2 FROM tab0 cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT ALL + - col1 DIV cor0.col1 - - col1 * cor0.col1 col1 FROM tab2 cor0
----
288
3480
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6571
SELECT ALL + - col1 / cor0.col1 - - col1 * cor0.col1 col1 FROM tab2 cor0
----
288
3480
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 59 + col1 col0 FROM tab0 AS cor0
----
-1861
-4747
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6573
SELECT - CAST( 56 AS SIGNED ) + cor0.col2 * + 93 FROM tab0 AS cor0
----
3013
37
7570

skipif mysql # not compatible
query I rowsort label-6573
SELECT - CAST ( 56 AS INTEGER ) + cor0.col2 * + 93 FROM tab0 AS cor0
----
3013
37
7570

query I rowsort
SELECT ALL - 18 AS col1 FROM tab0 cor0
----
-18
-18
-18

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col2 - col0 * - 16 FROM tab1
----
102
1081
1376

onlyif mysql # use DIV operator for integer division
query I rowsort label-6578
SELECT DISTINCT 42 DIV tab0.col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT 42 / tab0.col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT col1 * col1 + col1 AS col0 FROM tab2
----
306
3540
992

query I rowsort
SELECT + - cor0.col0 + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + col2 * + col2 * + 63 FROM tab0 AS cor0
----
423612
63
68607

onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT col2 DIV ( - col1 ) FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6582
SELECT col2 / ( - col1 ) FROM tab2
----
-2
0
0

query I rowsort
SELECT - col2 * col2 * 98 AS col2 FROM tab1 AS cor0
----
-285768
-318402
-903168

query I rowsort
SELECT ALL + + col1 + col2 * - col0 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( + 76 ) col1 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT DISTINCT + col2 * - 27 + + 62 * col1 FROM tab2 AS cor0
----
1193
28
2956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 52 col0 FROM tab2 AS cor0
----
-364
-4056
-4108

query I rowsort
SELECT + col2 * + 54 AS col0 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT DISTINCT col2 + - ( 17 ) FROM tab2 AS cor0
----
10
21
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT ALL col2 + 76 DIV + col1 FROM tab2 AS cor0
----
27
29
42

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL col2 + 76 / + col1 FROM tab2 AS cor0
----
27
29
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-6591
SELECT DISTINCT col0 DIV 4 + - 96 * - col2 FROM tab0 AS cor0
----
104
3174
7894

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT col0 / 4 + - 96 * - col2 FROM tab0 AS cor0
----
104
3174
7894

query I rowsort
SELECT - + ( cor0.col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - - col2 + + col1 * + col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + + 91 * + col0 + - col0 FROM tab0 cor0
----
2160
3150
8010

query I rowsort
SELECT - ( 30 ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab0, tab1 AS cor0
----
42

query I rowsort
SELECT - ( + col2 + + col1 ) AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + - ( + col1 ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT col0 * cor0.col2 * + col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - - ( col2 ) * cor0.col0 - + col0 * + col1 AS col2 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT DISTINCT - 3 * - col1 AS col2 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT ALL col0 * col1 * col1 - col2 AS col2 FROM tab0 AS cor0
----
177471
329314
736927

onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT DISTINCT - + 15 DIV col2 - col0 FROM tab0 AS cor0
----
-24
-50
-89

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT - + 15 / col2 - col0 FROM tab0 AS cor0
----
-24
-50
-89

query I rowsort
SELECT col2 * - col1 + - col1 * col0 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 * col1 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT - col1 * 61 FROM tab1
----
-1586
-610
-793

query I rowsort
SELECT ALL - ( - 3 * + tab2.col2 ) + + col1 + col1 FROM tab2
----
143
148
196

query I rowsort
SELECT - - col2 * - col0 * col2 AS col2 FROM tab0 cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT - 35 * cor0.col2 + - col0 DIV col2 FROM tab1 AS cor0
----
-1890
-1996
-3360

skipif mysql # not compatible
query I rowsort label-6611
SELECT - 35 * cor0.col2 + - col0 / col2 FROM tab1 AS cor0
----
-1890
-1996
-3360

query I rowsort
SELECT cor0.col0 * + col2 * + cor0.col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT + col0 * - col2 - - col0 * - col0 AS col0 FROM tab0
----
-1260
-1368
-15219

query I rowsort
SELECT col0 * - col1 - - col0 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col0 + + col2 * + col1 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT ALL col0 * + col2 * - 16 AS col1 FROM tab1
----
-122880
-2592
-58368

query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) * col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - col2 + + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL + col0 + col0 * col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + - cor0.col1 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL col2 - - 79 AS col0 FROM tab2
----
105
106
117

onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT ALL - tab0.col0 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - tab0.col0 / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT + tab0.col1 * - col2 + tab0.col2 AS col1 FROM tab0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 7 AS REAL ) + - col1 FROM tab0
----
-104
-93
-98

query I rowsort
SELECT ALL - col0 + 32 * col1 AS col1 FROM tab2
----
1810
465
985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6627
SELECT col1 + 76 DIV col0 AS col1 FROM tab2 cor0
----
17
41
59

skipif mysql # not compatible
query I rowsort label-6627
SELECT col1 + 76 / col0 AS col1 FROM tab2 cor0
----
17
41
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT + ( + 67 ) DIV col2 + - col2 * + cor0.col1 FROM tab0 cor0
----
-2836
-30
-7462

skipif mysql # not compatible
query I rowsort label-6628
SELECT + ( + 67 ) / col2 + - col2 * + cor0.col1 FROM tab0 cor0
----
-2836
-30
-7462

query I rowsort
SELECT ALL - 2 * - 26 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6630
SELECT CAST( + cor0.col0 AS SIGNED ) + + col2 AS col1 FROM tab2 cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6630
SELECT CAST ( + cor0.col0 AS INTEGER ) + + col2 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - col2 + - col2 * 31 * col1 AS col1 FROM tab1 AS cor0
----
-17727
-38784
-43578

query I rowsort
SELECT + col1 + 93 AS col0 FROM tab2 AS cor0
----
110
124
152

query I rowsort
SELECT DISTINCT - col0 * + ( - col2 + - col0 ) FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT - - cor0.col2 + - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 - col0 * - col1 AS col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6636
SELECT ALL col2 * - cor0.col0 + + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL col2 * - cor0.col0 + + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-163
-3649
-7681

query I rowsort
SELECT ALL + cor0.col0 + ( 45 ) * col1 AS col2 FROM tab2 AS cor0
----
1402
2733
844

query I rowsort
SELECT col2 + - col1 * - col1 * - col1 FROM tab1 AS cor0
----
-17522
-2101
-943

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - - col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6641
SELECT + + cor0.col2 * - 26 + ( col2 + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6641
SELECT + + cor0.col2 * - 26 + ( col2 + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + 85 + + 93 FROM tab2 AS cor0
----
2303
2388
3323

query I rowsort
SELECT - + ( + col2 ) * - col2 * - col1 FROM tab2 cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6644
SELECT ALL CAST( 50 AS SIGNED ) * col0 + cor0.col0 FROM tab0 AS cor0
----
1224
1785
4539

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL CAST ( 50 AS INTEGER ) * col0 + cor0.col0 FROM tab0 AS cor0
----
1224
1785
4539

onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT DISTINCT + 69 DIV col2 + + col0 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT + 69 / col2 + + col0 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT DISTINCT - - 61 * col0 AS col2 FROM tab0 AS cor0
----
1464
2135
5429

skipif mysql # not compatible
query I rowsort
SELECT - ( + col1 ) * - col1 * + CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT - 83 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT + ( col2 ) + col1 * col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - + 79 AS col2 FROM tab1 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL - ( + col0 ) * - col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + + col0 + + col0 * - 17 * + col0 FROM tab0 AS cor0
----
-134568
-20790
-9768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6653
SELECT ALL - + col0 + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL - + col0 + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 82 * col2 AS col1 FROM tab1
----
4428
4674
7872

query I rowsort
SELECT ALL - ( col1 ) * 54 + col1 AS col1 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT DISTINCT + 53 + + col2 * - ( - col2 ) FROM tab1 AS cor0
----
2969
3302
9269

query I rowsort
SELECT DISTINCT - 7 + col2 AS col0 FROM tab1 AS cor0
----
47
50
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6658
SELECT + - col1 DIV - col0 + - col2 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-6658
SELECT + - col1 / - col0 + - col2 FROM tab0 AS cor0
----
-30
-81
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT - 23 - + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT - 23 - + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 54 + tab0.col2 FROM tab0
----
136
55
87

query I rowsort
SELECT tab1.col0 + + col0 * - col1 - col2 AS col0 FROM tab1
----
-1056
-129
-633

query I rowsort
SELECT cor0.col1 * + col1 * - col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6663
SELECT - - col0 + col0 DIV col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6663
SELECT - - col0 + col0 / col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL + ( - col1 ) + 80 FROM tab0
----
-11
-17
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT tab1.col1 * + col2 + - tab1.col0 DIV col0 + - col0 FROM tab1
----
1167
1400
505

skipif mysql # not compatible
query I rowsort label-6665
SELECT tab1.col1 * + col2 + - tab1.col0 / col0 + - col0 FROM tab1
----
1167
1400
505

query I rowsort
SELECT ALL col1 * - col2 + col0 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - 92 + col1 FROM tab0
----
-1
-6
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 * - col0 + 81 col1 FROM tab2
----
-108
-2025
-2052

query I rowsort
SELECT ALL - col0 + - col0 * + col2 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT ALL col0 * tab1.col2 + ( col2 ) * col2 AS col0 FROM tab1
----
16896
3078
6897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - ( - col1 ) + - col2 col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT col1 * - col0 * col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT col2 * ( - col2 ) * col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT + tab1.col0 * ( col2 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT col2 * 45 FROM tab0
----
1485
3690
45

query I rowsort
SELECT DISTINCT tab1.col0 * + 58 FROM tab1
----
174
3712
4640

query I rowsort
SELECT + tab0.col1 + + col2 * col2 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT + ( ( + tab2.col2 ) ) FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT ALL + col0 DIV - col1 + col2 * 58 + + 16 AS col0 FROM tab2 AS cor0
----
1523
1582
2216

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL + col0 / - col1 + col2 * 58 + + 16 AS col0 FROM tab2 AS cor0
----
1523
1582
2216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col0 FROM tab2
----
15
15
15

query I rowsort
SELECT DISTINCT + 71 * col1 AS col2 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT DISTINCT + 76 * col2 AS col1 FROM tab2 AS cor0
----
1976
2052
2888

onlyif mysql # use DIV operator for integer division
query I rowsort label-6683
SELECT ALL + col2 + + col1 * 13 DIV col2 AS col0 FROM tab1 cor0
----
59
60
97

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL + col2 + + col1 * 13 / col2 AS col0 FROM tab1 cor0
----
59
60
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - - 8 AS col1 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6686
SELECT - cor0.col0 + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-6686
SELECT - cor0.col0 + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT ALL - 78 + + cor0.col2 FROM tab0 AS cor0
----
-45
-77
4

query I rowsort
SELECT DISTINCT + ( col0 ) * + tab0.col0 AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - 22 * col2 AS col1 FROM tab0 cor0
----
-1804
-22
-726

query I rowsort
SELECT ALL - + col2 * - col1 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - 82 * col1 AS col2 FROM tab1 AS cor0
----
-1066
-2132
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT ALL 20 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL 20 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 34 * - col2 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT - 36 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
133
64
640

query I rowsort
SELECT DISTINCT - - 21 FROM tab1 AS cor0
----
21

query I rowsort
SELECT - - 45 * col1 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT + col1 + 2 AS col1 FROM tab1 AS cor0
----
12
15
28

query I rowsort
SELECT - + col1 + ( col2 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + ( + col1 ) + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + cor0.col1 * ( col2 ) FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6701
SELECT col1 + CAST( NULL AS DECIMAL ) + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT col1 + CAST ( NULL AS REAL ) + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6702
SELECT - CAST( NULL AS SIGNED ) + 40 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6702
SELECT - CAST ( NULL AS INTEGER ) + 40 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - 52 col0 FROM tab0 AS cor0
----
138
143
149

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6704
SELECT - CAST( NULL AS SIGNED ) * - cor0.col1 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT - CAST ( NULL AS INTEGER ) * - cor0.col1 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-6706
SELECT ALL + col1 DIV + col1 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + col1 / + col1 col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - 51 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT ALL - cor0.col2 * + 70 FROM tab0 cor0
----
-2310
-5740
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6709
SELECT DISTINCT col1 + 45 DIV + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6709
SELECT DISTINCT col1 + 45 / + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - ( + col0 ) - cor0.col2 * + col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - cor0.col0 + - 94 AS col2 FROM tab2 AS cor0
----
-101
-172
-173

query I rowsort
SELECT DISTINCT + - 45 + - col0 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
-4077
-51
-6365

query I rowsort
SELECT ALL - 36 - + col1 FROM tab1 cor0
----
-46
-49
-62

query I rowsort
SELECT + ( - col2 ) + + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + col2 * - 43 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT - - 89 + - col0 AS col1 FROM tab2 AS cor0
----
10
11
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + col0 * + col0 col2 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6718
SELECT DISTINCT col1 * + cor0.col0 DIV - col0 + - 14 + - col0 AS col2 FROM tab0 AS cor0
----
-124
-146
-194

skipif mysql # not compatible
query I rowsort label-6718
SELECT DISTINCT col1 * + cor0.col0 / - col0 + - 14 + - col0 AS col2 FROM tab0 AS cor0
----
-124
-146
-194

query I rowsort
SELECT DISTINCT col2 * col1 * - ( + col1 ) FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + cor0.col0 * - col1 + - col0 * + col1 + col1 col0 FROM tab1 AS cor0
----
-286
-41590
-84227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 * - col2 + - cor0.col2 + - col0 col0 FROM tab1 AS cor0
----
207815
737104
8691

onlyif mysql # use DIV operator for integer division
query I rowsort label-6722
SELECT DISTINCT 94 + - col2 * col0 DIV 81 FROM tab2
----
57
69
92

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT 94 + - col2 * col0 / 81 FROM tab2
----
57
69
92

query I rowsort
SELECT 41 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 0460cb0a4638c7341e74500318b00373

query I rowsort
SELECT ALL - col0 * 8 AS col2 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT + + col0 * 28 AS col0 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT + - cor0.col2 * - cor0.col1 AS col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6727
SELECT ALL col1 - CAST( - col0 AS SIGNED ) * - tab0.col1 AS col2 FROM tab0
----
-1978
-3298
-8008

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL col1 - CAST ( - col0 AS INTEGER ) * - tab0.col1 AS col2 FROM tab0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6728
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 22 col1 FROM tab2, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 22 col1 FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT DISTINCT col2 * col0 + col2 + col0 DIV + col1 col1 FROM tab2
----
2055
216
3044

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT col2 * col0 + col2 + col0 / + col1 col1 FROM tab2
----
2055
216
3044

query I rowsort
SELECT col2 + + col0 + + col2 AS col1 FROM tab2
----
130
155
61

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT IN ( tab0.col2 + col2 * + col1 * col1 )
----

query I rowsort
SELECT DISTINCT col2 + col1 + + col1 * + col0 AS col1 FROM tab1
----
1149
158
707

query I rowsort
SELECT ALL - + col0 * col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-6734
SELECT ALL col2 * + col0 + + cor0.col1 DIV col0 AS col2 FROM tab0 AS cor0
----
37
7299
795

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL col2 * + col0 + + cor0.col1 / col0 AS col2 FROM tab0 AS cor0
----
37
7299
795

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT ALL - + col0 DIV + col0 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - + col0 / + col0 col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col1 + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6737
SELECT - col0 + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-6737
SELECT - col0 + col2 / col1 AS col2 FROM tab1 AS cor0
----
-1
-59
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT - col2 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6738
SELECT - col2 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col2 * - col2 * - col2 AS col1 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col1 * + col1 AS col2 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT col1 + col1 * col1 FROM tab2 cor0
----
306
3540
992

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 + col1 * + col2 AND + col1
----

query I rowsort
SELECT ALL - col2 + col2 * + col1 AS col2 FROM tab1 cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6744
SELECT DISTINCT col2 * - col2 DIV + tab0.col2 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT col2 * - col2 / + tab0.col2 AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + - col0 * - col1 * + col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL - col0 - + cor0.col1 AS col2 FROM tab1 cor0
----
-29
-74
-93

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE cor0.col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - cor0.col2 * - col2 + col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 * col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT col0 + - col2 - col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - col2 + + col0 + - col2 * - col2 AS col0 FROM tab1 AS cor0
----
2865
3256
9200

query I rowsort
SELECT + - col2 * col1 + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-1072
-1347
-449

onlyif mysql # use DIV operator for integer division
query I rowsort label-6754
SELECT - col1 + + col1 DIV - col0 AS col2 FROM tab1
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-6754
SELECT - col1 + + col1 / - col0 AS col2 FROM tab1
----
-10
-13
-34

query I rowsort
SELECT ALL + 66 AS col2 FROM tab0
----
66
66
66

query I rowsort
SELECT ALL - col1 + + col1 + + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6757
SELECT DISTINCT - cor0.col2 DIV - col1 - 21 FROM tab1 AS cor0
----
-14
-16
-19

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT - cor0.col2 / - col1 - 21 FROM tab1 AS cor0
----
-14
-16
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 77 + - col2 col1 FROM tab0 AS cor0
----
-110
-159
-78

query I rowsort
SELECT col2 + col2 * - col2 * - col2 FROM tab1
----
157518
185250
884832

query I rowsort
SELECT - 98 + - col2 * 98 FROM tab1 AS cor0
----
-5390
-5684
-9506

query I rowsort
SELECT cor0.col0 * - col1 - 43 * - col2 AS col1 FROM tab2 AS cor0
----
-3484
291
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-6762
SELECT + col2 DIV col2 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6762
SELECT + col2 / col2 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + 45 col1 FROM tab1 AS cor0
----
19
32
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * - col0 col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL col0 * - col2 AS col1 FROM tab1 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT + col2 + col1 + col0 * + tab1.col1 FROM tab1
----
1149
158
707

query I rowsort
SELECT DISTINCT col0 * + tab1.col1 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT - col0 * col0 + col2 AS col0 FROM tab2 WHERE NOT col0 + col2 BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( tab0.col1 * + tab0.col2 * + col2 )
----

query I rowsort
SELECT col2 * - col1 + - col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ALL col0 FROM tab2 WHERE ( NULL ) IN ( col1 )
----

query I rowsort
SELECT ALL + col1 * col1 * + tab1.col2 FROM tab1
----
16224
36504
5700

query III rowsort
SELECT * FROM tab2 WHERE - col0 + col1 NOT IN ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * + tab1.col2 col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - col2 + tab2.col0 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NULL ) <> col0 + + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + col0 + + col1 )
----

query I rowsort
SELECT - tab2.col2 * + col2 AS col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL + col2 + tab1.col0 AS col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT col0 * + tab0.col2 + + col2 DIV + col2 AS col1 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-6780
SELECT col0 * + tab0.col2 + + col2 / + col2 AS col1 FROM tab0
----
36
7299
793

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 < col1
----

query I rowsort
SELECT ALL + col2 + col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 23 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT ALL + col1 * - cor0.col2 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - - cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT col0 * - 64 FROM tab2 AS cor0
----
-448
-4992
-5056

query I rowsort
SELECT + - 16 + 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6788
SELECT + col1 DIV 90 + col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-6788
SELECT + col1 / 90 + col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + col2 - + 70 AS col1 FROM tab0 AS cor0
----
-37
-69
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6790
SELECT DISTINCT + col1 * - 5 + - col2 + col1 * CAST( - ( + col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-207
-330
-860

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT + col1 * - 5 + - col2 + col1 * CAST ( - ( + col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-207
-330
-860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6791
SELECT col1 * CAST( 91 AS SIGNED ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
1196
2392
920

skipif mysql # not compatible
query I rowsort label-6791
SELECT col1 * CAST ( 91 AS INTEGER ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT ALL + tab1.col2 + ( - cor0.col2 ) * 50 FROM tab1, tab1 AS cor0
----
9 values hashing to 346a3b3cb11cfe96c4878fb380f09544

query I rowsort
SELECT DISTINCT ( col0 ) + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + - col0 * + col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + 45 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1399
-631
-684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col0 FROM tab2 AS cor0
----
-86
-86
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT DISTINCT 38 DIV col0 FROM tab1 AS cor0
----
0
12

skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT 38 / col0 FROM tab1 AS cor0
----
0
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col2 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL - + col2 + - cor0.col0 + - col0 * - ( - col0 ) AS col2 FROM tab1 cor0
----
-4217
-6576
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6800
SELECT DISTINCT CAST( 74 AS SIGNED ) FROM tab2, tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT CAST ( 74 AS INTEGER ) FROM tab2, tab2 AS cor0
----
74

query I rowsort
SELECT + 29 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + col2 + ( col0 ) FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 * col1 + - col0 + cor0.col0 col1 FROM tab2 AS cor0
----
1829
527
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT ALL + + 79 - + col0 DIV - col1 FROM tab0 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL + + 79 - + col0 / - col1 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT DISTINCT - - 40 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-6805
SELECT DISTINCT - - 40 / col2 AS col2 FROM tab0 AS cor0
----
0
1
40

query I rowsort
SELECT ALL ( + tab0.col2 * - col1 ) AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 65 * cor0.col2 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT ALL - 55 + + col2 FROM tab1 AS cor0
----
-1
2
41

query I rowsort
SELECT + ( + col2 ) * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + 60 * col0 * col0 FROM tab1 AS cor0
----
245760
384000
540

onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT ALL ( 30 ) DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL ( 30 ) / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + col0 - col2 AS col1 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT - + ( - col1 ) + ( col0 * col1 ) AS col2 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ( col2 ) + 80 * - 87 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-6787
-6841
-6862

query I rowsort
SELECT - - ( - col1 ) * ( + col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT - cor0.col1 + - cor0.col1 DIV col1 col0 FROM tab0 AS cor0
----
-87
-92
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6816
SELECT - cor0.col1 + - cor0.col1 / col1 col0 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT + col2 * + col2 - ( + 20 ) AS col2 FROM tab2 AS cor0
----
1424
656
709

query I rowsort
SELECT + col0 + + col0 * + 68 + col2 FROM tab1 cor0
----
261
4473
5616

query I rowsort
SELECT tab0.col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT DISTINCT cor0.col2 DIV cor0.col0 col0 FROM tab0 cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT cor0.col2 / cor0.col0 col0 FROM tab0 cor0
----
0
1

query I rowsort
SELECT DISTINCT col0 * - tab0.col1 * - col0 - tab0.col2 * + col2 FROM tab0
----
118824
48447
714087

query I rowsort
SELECT DISTINCT 83 AS col2 FROM tab0
----
83

query I rowsort
SELECT DISTINCT 56 * + col1 AS col2 FROM tab2
----
1736
3304
952

query I rowsort
SELECT - col2 * + col0 + col2 * - col1 FROM tab1
----
-1566
-4218
-8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-6825
SELECT ALL - 55 DIV + col2 + col0 FROM tab0 AS cor0
----
-20
23
89

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL - 55 / + col2 + col0 FROM tab0 AS cor0
----
-20
23
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6826
SELECT - col2 DIV col0 + CAST( col1 AS SIGNED ) col1 FROM tab0
----
85
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6826
SELECT - col2 / col0 + CAST ( col1 AS INTEGER ) col1 FROM tab0
----
85
91
97

query I rowsort
SELECT col1 + + col1 * + col1 AS col0 FROM tab2
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6829
SELECT - col2 * - CAST( col1 AS SIGNED ) + col1 * - 69 FROM tab1 AS cor0
----
-120
-390
351

skipif mysql # not compatible
query I rowsort label-6829
SELECT - col2 * - CAST ( col1 AS INTEGER ) + col1 * - 69 FROM tab1 AS cor0
----
-120
-390
351

query I rowsort
SELECT ALL - + col2 * + col1 * col2 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - col2 * 53 * col0 FROM tab1 AS cor0
----
-193344
-407040
-8586

query I rowsort
SELECT col0 * + col2 + 43 AS col1 FROM tab1 AS cor0
----
205
3691
7723

query I rowsort
SELECT DISTINCT - col2 + 31 AS col2 FROM tab2
----
-7
4
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6834
SELECT tab1.col0 DIV ( + col2 ) AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6834
SELECT tab1.col0 / ( + col2 ) AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - col2 * col1 + 38 + + col1 * col0 * 28 FROM tab0 AS cor0
----
219348
54992
95001

query I rowsort
SELECT + col2 * ( col0 ) * - col1 + col0 - col2 FROM tab2 cor0
----
-119600
-50993
-5879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col1 * - 78 + 88 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-6706
-7101
-7575

query I rowsort
SELECT DISTINCT + col2 + - 98 AS col2 FROM tab0 cor0
----
-16
-65
-97

query I rowsort
SELECT ALL - col2 * + 69 AS col0 FROM tab1 AS cor0
----
-3726
-3933
-6624

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT DISTINCT - col1 DIV - CAST( 38 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT - col1 / - CAST ( 38 AS INTEGER ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col0 - - col0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL ( tab0.col0 * - col0 + col2 ) AS col1 FROM tab0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT DISTINCT - 15 DIV col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-2
64
80

skipif mysql # not compatible
query I rowsort label-6844
SELECT DISTINCT - 15 / col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-2
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6845
SELECT 70 + col2 DIV + col2 FROM tab1 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-6845
SELECT 70 + col2 / + col2 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT ALL ( col0 ) - + col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6847
SELECT ALL - - CAST( + col2 AS SIGNED ) * - col2 - 63 AS col0 FROM tab2 AS cor0
----
-1507
-739
-792

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - - CAST ( + col2 AS INTEGER ) * - col2 - 63 AS col0 FROM tab2 AS cor0
----
-1507
-739
-792

query I rowsort
SELECT + cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( + col2 ) * + col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6850
SELECT ALL CAST( + col2 AS SIGNED ) + col1 * - 25 FROM tab1 AS cor0
----
-193
-229
-596

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL CAST ( + col2 AS INTEGER ) + col1 * - 25 FROM tab1 AS cor0
----
-193
-229
-596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col2 col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col1 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + + 87 FROM tab0 cor0
----
87

query I rowsort
SELECT - 96 + col1 AS col1 FROM tab0 AS cor0
----
-10
-5
1

query I rowsort
SELECT ALL col2 + - cor0.col2 * 85 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT + - col2 * - 89 AS col2 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT - 97 + 3 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT ALL - - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab1 AS cor0
----
26

query I rowsort
SELECT DISTINCT - 15 * - col1 AS col2 FROM tab2 cor0
----
255
465
885

query I rowsort
SELECT col2 * - 41 + + col1 * + col2 AS col1 FROM tab0
----
1485
4100
56

query I rowsort
SELECT col1 + ( - col0 ) * - col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL + + cor0.col0 + cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0

query I rowsort
SELECT DISTINCT - 99 + - col2 FROM tab2
----
-125
-126
-137

query I rowsort
SELECT ALL - ( col2 + col2 ) AS col2 FROM tab1
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT DISTINCT - - col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - - col1 / col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 * + cor0.col2 + - col1 * + col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab2 cor0
----
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6869
SELECT DISTINCT col2 * tab0.col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT col2 * tab0.col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * - 42 col0 FROM tab0 AS cor0
----
-1300
-3353
55

query I rowsort
SELECT - 42 + - col1 AS col2 FROM tab0
----
-128
-133
-139

query I rowsort
SELECT DISTINCT col1 + + 10 AS col0 FROM tab1 AS cor0
----
20
23
36

query I rowsort
SELECT - col0 * + 94 FROM tab1 AS cor0
----
-282
-6016
-7520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6874
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) * 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) * 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 13 * col1 FROM tab1 AS cor0
----
-1014
-13520
-8320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT ALL + col2 + + col2 DIV - col0 FROM tab0 cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL + col2 + + col2 / - col0 FROM tab0 cor0
----
1
32
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6878
SELECT 54 DIV + cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ebba3465d7a5fc50b6086ac7729ac487

skipif mysql # not compatible
query I rowsort label-6878
SELECT 54 / + cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ebba3465d7a5fc50b6086ac7729ac487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( cor0.col1 ) * - col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6880
SELECT - CAST( 60 AS SIGNED ) + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-25
7238
732

skipif mysql # not compatible
query I rowsort label-6880
SELECT - CAST ( 60 AS INTEGER ) + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-25
7238
732

query I rowsort
SELECT ALL + + col1 * col0 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT col1 - - col0 DIV cor0.col1 col1 FROM tab1 AS cor0
----
16
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6883
SELECT col1 - - col0 / cor0.col1 col1 FROM tab1 AS cor0
----
16
19
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT + col1 + + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-6884
SELECT + col1 + + col2 / col1 AS col2 FROM tab1 AS cor0
----
15
20
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT ALL + col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL + col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - - col2 * - col0 + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - ( tab1.col0 ) * ( col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 68 * 31 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc4b32f8195ff467abacf14776f139f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6889
SELECT + cor0.col2 + - CAST( NULL AS DECIMAL ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6889
SELECT + cor0.col2 + - CAST ( NULL AS REAL ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab0.col0 * + col0 + - col1 + 20 AS col1 FROM tab0
----
1148
510
7850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6891
SELECT + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col2 * + col1 * + col0 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT - col0 * 97 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-652
-7540
-7625

query I rowsort
SELECT + cor0.col2 * + ( 93 + - col2 ) AS col2 FROM tab2 AS cor0
----
1742
1782
2090

query I rowsort
SELECT 84 * tab2.col1 * + col1 AS col0 FROM tab2
----
24276
292404
80724

query I rowsort
SELECT - 28 AS col1 FROM tab0, tab1 cor0, tab0 cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT - 4 * col1 AS col0 FROM tab2
----
-124
-236
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT + ( + col2 ) DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6898
SELECT + ( + col2 ) / col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * + col2 - col0 col2 FROM tab1
----
1264
1455
563

query I rowsort
SELECT + col2 - 60 FROM tab2
----
-22
-33
-34

query I rowsort
SELECT + ( - col1 ) + - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - + cor0.col0 + + 48 FROM tab2 cor0
----
-30
-31
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT DISTINCT - - 62 DIV col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
5
70
84

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT - - 62 / col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
5
70
84

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 * + ( + 95 * col0 ) FROM tab2 AS cor0
----
-4624
-577921
-592878

query I rowsort
SELECT 82 + + cor0.col2 FROM tab1 AS cor0
----
136
139
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col1 * - 49 * cor0.col1 col2 FROM tab1 AS cor0
----
-33098
-4890
-8268

onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT + col0 * - col1 * + col1 + - cor0.col1 DIV col0 FROM tab2 AS cor0
----
-22831
-271518
-6731

skipif mysql # not compatible
query I rowsort label-6907
SELECT + col0 * - col1 * + col1 + - cor0.col1 / col0 FROM tab2 AS cor0
----
-22831
-271518
-6731

query I rowsort
SELECT col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + - ( + ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL 45 * col1 AS col2 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT + 7 * - col1 - - col0 * 53 FROM tab2 AS cor0
----
154
3721
4068

onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT - ( - ( - col0 ) ) DIV + col0 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6912
SELECT - ( - ( - col0 ) ) / + col0 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT - col0 + 40 DIV - col1 - ( - col1 ) FROM tab1
----
-58
-70
22

skipif mysql # not compatible
query I rowsort label-6913
SELECT - col0 + 40 / - col1 - ( - col1 ) FROM tab1
----
-58
-70
22

query I rowsort
SELECT + ( 92 ) * col1 AS col2 FROM tab1
----
1196
2392
920

query I rowsort
SELECT - - col0 * - 95 AS col2 FROM tab0 AS cor0
----
-2280
-3325
-8455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col1 col0 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col0 * col0 col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT col0 + + ( col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT 6 * + col0 AS col2 FROM tab2
----
42
468
474

query I rowsort
SELECT ALL + cor0.col1 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col1 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + cor0.col1 * - 15 FROM tab2, tab1 cor0
----
-150
-195
-390

query I rowsort
SELECT ALL col1 * - 10 AS col0 FROM tab2
----
-170
-310
-590

query I rowsort
SELECT col2 * 46 AS col0 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT + col1 + - 66 * col0 AS col2 FROM tab0 cor0
----
-1498
-2213
-5783

query I rowsort
SELECT + + ( col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL col2 * ( col2 ) * - col1 AS col0 FROM tab0
----
-611884
-93654
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6928
SELECT + CAST( NULL AS SIGNED ) * + col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT + CAST ( NULL AS INTEGER ) * + col2 / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 63 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
25
36
37

query I rowsort
SELECT DISTINCT + 12 AS col2 FROM tab0 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 * - 37 FROM tab2
----
-1406
-962
-999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6933
SELECT - col2 * CAST( NULL AS SIGNED ) + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT - col2 * CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6934
SELECT DISTINCT - col2 DIV + col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - col2 / + col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL 87 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT + + col1 * - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col2 + 95 * - col2 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT ALL + 34 AS col2 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT ALL + ( 61 ) FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT - col0 * + col0 + col2 AS col1 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-83

query I rowsort
SELECT 4 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT cor0.col2 + col2 * col0 * col1 AS col0 FROM tab0 AS cor0
----
3396
664200
68145

query I rowsort
SELECT - + 17 - - col1 AS col1 FROM tab2 AS cor0
----
0
14
42

query I rowsort
SELECT DISTINCT + col1 * col2 + + 8 FROM tab1
----
1256
1412
578

query I rowsort
SELECT 16 + - col0 FROM tab1 AS cor0
----
-48
-64
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-6947
SELECT - col2 DIV 71 + + 36 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6947
SELECT - col2 / 71 + + 36 / col1 AS col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6948
SELECT cor0.col2 * CAST( cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-6948
SELECT cor0.col2 * CAST ( cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT DISTINCT - col0 DIV - ( - tab1.col1 ) AS col2 FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT - col0 / - ( - tab1.col1 ) AS col2 FROM tab1
----
-6
0

query I rowsort
SELECT col0 + 16 FROM tab2 cor0
----
23
94
95

query I rowsort
SELECT ALL + cor0.col0 + + col2 * col0 * + col2 FROM tab1 AS cor0
----
208000
737360
8751

query I rowsort
SELECT DISTINCT col2 * + 70 + col0 FROM tab0 cor0
----
105
2334
5829

query I rowsort
SELECT DISTINCT - col2 + 21 AS col1 FROM tab2 AS cor0
----
-17
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * + col2 + - col2 col2 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT ALL ( 83 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6956
SELECT + cor0.col2 + 5 * col0 DIV col1 FROM tab0 AS cor0
----
2
34
86

skipif mysql # not compatible
query I rowsort label-6956
SELECT + cor0.col2 + 5 * col0 / col1 FROM tab0 AS cor0
----
2
34
86

query I rowsort
SELECT DISTINCT - + col0 + + col2 * 47 FROM tab2 AS cor0
----
1144
1262
1707

query I rowsort
SELECT ALL + 80 * cor0.col2 + - 50 * + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
2510
5980
6990

query I rowsort
SELECT DISTINCT + - col2 * col1 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT - 5 * + col2 AS col0 FROM tab0 AS cor0
----
-165
-410
-5

query I rowsort
SELECT - 15 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc

query I rowsort
SELECT DISTINCT + ( col1 ) * + 84 + col2 FROM tab1 AS cor0
----
1188
2238
897

query I rowsort
SELECT + ( + col2 ) * ( + col1 ) AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - cor0.col0 * - col1 AS col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6965
SELECT - 43 * col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT - 43 * col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col0 col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL + - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT 6 + + col1 * 30 * - col1 AS col2 FROM tab2 AS cor0
----
-104424
-28824
-8664

query I rowsort
SELECT col1 + - col2 * - col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + cor0.col2 * col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
47

query I rowsort
SELECT + 58 + col2 AS col0 FROM tab2
----
84
85
96

query I rowsort
SELECT DISTINCT - - 7 + - 60 * col2 AS col1 FROM tab1 AS cor0
----
-3233
-3413
-5753

onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT col2 * + col0 + + col2 * col0 DIV - col0 AS col0 FROM tab0 cor0
----
34
7216
759

skipif mysql # not compatible
query I rowsort label-6974
SELECT col2 * + col0 + + col2 * col0 / - col0 AS col0 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT + - ( + 1 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6976
SELECT + CAST( - 44 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-18
-31
-34

skipif mysql # not compatible
query I rowsort label-6976
SELECT + CAST ( - 44 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-18
-31
-34

query I rowsort
SELECT DISTINCT col1 + - 13 FROM tab1
----
-3
0
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-6978
SELECT + col0 DIV col0 + col1 * + col1 AS col0 FROM tab0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-6978
SELECT + col0 / col0 + col1 * + col1 AS col0 FROM tab0
----
7397
8282
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 * col1 col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT 55 + + col1 AS col2 FROM tab1
----
65
68
81

query I rowsort
SELECT - ( tab2.col0 * + col1 ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL ( - col2 + - col1 ) AS col2 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL - 63 AS col0 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT 2 * + col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT - 63 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-6
-9
33

query I rowsort
SELECT - - 26 * col1 FROM tab0 AS cor0
----
2236
2366
2522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col0 FROM tab0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT 24 AS col2 FROM tab2, tab0, tab0 AS cor0
----
24

query I rowsort
SELECT - cor0.col2 + cor0.col1 * 58 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 221380c7d5d039fa25ec044b698faf5c

query I rowsort
SELECT - cor0.col0 + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6991
SELECT ALL + tab2.col0 DIV col1 AS col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL + tab2.col0 / col1 AS col1 FROM tab2
----
0
1
4

query I rowsort
SELECT - 73 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6993
SELECT ALL tab0.col0 + col1 DIV - tab0.col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL tab0.col0 + col1 / - tab0.col1 FROM tab0
----
23
34
88

query I rowsort
SELECT ALL tab0.col0 * + col2 + - col2 + col1 * 8 FROM tab0
----
1447
7944
810

query I rowsort
SELECT 66 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT col1 * - 10 - + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-303
-512
-91

query I rowsort
SELECT DISTINCT - col0 + + col1 + 62 AS col0 FROM tab2 AS cor0
----
0
43
86

query I rowsort
SELECT - 93 - col0 FROM tab2 AS cor0
----
-100
-171
-172

onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT + - col1 DIV col0 + col0 * col1 FROM tab2 AS cor0
----
1343
213
4602

skipif mysql # not compatible
query I rowsort label-6999
SELECT + - col1 / col0 + col0 * col1 FROM tab2 AS cor0
----
1343
213
4602

query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7001
SELECT + ( - col1 ) * - col1 - + CAST( + col1 * + col0 + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1043
-975
751

skipif mysql # not compatible
query I rowsort label-7001
SELECT + ( - col1 ) * - col1 - + CAST ( + col1 * + col0 + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1043
-975
751

query I rowsort
SELECT + tab2.col2 + + col0 + - col1 FROM tab2
----
100
3
45

query I rowsort
SELECT - col2 * - col1 + + col2 - + col1 * col1 AS col0 FROM tab2 AS cor0
----
-1921
-97
395

query I rowsort
SELECT ALL + ( - tab0.col0 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT 75 + cor0.col0 * 63 FROM tab1, tab2 AS cor0
----
9 values hashing to d1866bee195cb724e1a6c3cc41829273

query I rowsort
SELECT ALL + 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT + col0 + 5 FROM tab1 cor0
----
69
8
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT col0 + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-7009
SELECT col0 + col1 / - col0 AS col0 FROM tab2 AS cor0
----
3
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7010
SELECT ALL + tab0.col2 * CAST( - col2 + - col0 AS SIGNED ) FROM tab0
----
-14022
-1881
-36

skipif mysql # not compatible
query I rowsort label-7010
SELECT ALL + tab0.col2 * CAST ( - col2 + - col0 AS INTEGER ) FROM tab0
----
-14022
-1881
-36

query I rowsort
SELECT col2 + 17 * col2 AS col1 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT ALL + 73 * + 83 FROM tab1
----
6059
6059
6059

query I rowsort
SELECT - ( 90 ) FROM tab1
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - 65 * col2 FROM tab0 AS cor0
----
-2145
-5330
-65

query I rowsort
SELECT - col2 * + 99 FROM tab2 AS cor0
----
-2574
-2673
-3762

query I rowsort
SELECT DISTINCT ( col0 ) * + col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT DISTINCT + - ( cor0.col0 ) DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT + - ( cor0.col0 ) / - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - 4 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT + ( - 42 ) * + cor0.col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT ALL 82 * + col0 FROM tab2 cor0
----
574
6396
6478

onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT ALL + + 36 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL + + 36 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7022
SELECT ALL + 97 / col0 + CAST( NULL AS SIGNED ) + + col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL + 97 / col0 + CAST ( NULL AS INTEGER ) + + col0 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT - + cor0.col0 DIV col0 + + ( 8 ) + - col0 FROM tab1 AS cor0
----
-57
-73
4

skipif mysql # not compatible
query I rowsort label-7023
SELECT - + cor0.col0 / col0 + + ( 8 ) + - col0 FROM tab1 AS cor0
----
-57
-73
4

query I rowsort
SELECT - cor0.col1 + col0 + + 31 * - col1 AS col2 FROM tab0 AS cor0
----
-2728
-2823
-3069

query I rowsort
SELECT - + col2 + + col0 * + col0 + col1 * 90 FROM tab0 AS cor0
----
16029
8283
9954

onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT DISTINCT - col2 DIV + col1 AS col2 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - col2 / + col1 AS col2 FROM tab2
----
-2
0

query I rowsort
SELECT - col2 + 32 * - col2 FROM tab1 cor0
----
-1782
-1881
-3168

onlyif mysql # use DIV operator for integer division
query I rowsort label-7028
SELECT col1 * + col1 + col2 * col2 + + col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
3349
3600
9385

skipif mysql # not compatible
query I rowsort label-7028
SELECT col1 * + col1 + col2 * col2 + + col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
3349
3600
9385

query I rowsort
SELECT DISTINCT + col0 * 13 * - 62 AS col0 FROM tab0 AS cor0
----
-19344
-28210
-71734

onlyif mysql # use DIV operator for integer division
query I rowsort label-7030
SELECT DISTINCT - col0 DIV + ( + col2 ) col0 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT - col0 / + ( + col2 ) col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL - col2 * 95 FROM tab0 AS cor0
----
-3135
-7790
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * ( - col2 ) col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL cor0.col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + - cor0.col0 + - 10 * 68 FROM tab0 AS cor0
----
-704
-715
-769

query I rowsort
SELECT + tab2.col1 + - tab2.col2 * - col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT col1 DIV + col1 + + tab1.col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-7036
SELECT col1 / + col1 + + tab1.col1 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL + col2 * + 60 + col2 * cor0.col1 FROM tab0 AS cor0
----
12382
157
4818

query I rowsort
SELECT DISTINCT col0 + - 67 FROM tab0 AS cor0
----
-32
-43
22

query I rowsort
SELECT ALL - cor0.col1 * + 4 FROM tab2 AS cor0
----
-124
-236
-68

query I rowsort
SELECT DISTINCT - + col1 + - 56 * + ( - cor0.col2 * col2 ) AS col0 FROM tab0 AS cor0
----
-41
376453
60898

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT - ( col0 ) + - col2 DIV - CAST( + ( cor0.col0 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-7041
SELECT - ( col0 ) + - col2 / - CAST ( + ( cor0.col0 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
-4
-78
-79

query I rowsort
SELECT - - col1 + + col1 + - cor0.col0 FROM tab0 AS cor0
----
148
159
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7043
SELECT ALL + col1 + + col2 DIV col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL + col1 + + col2 / col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col2 + col2 * - col2 AS col2 FROM tab2 cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL ( + col1 ) * + cor0.col0 * col0 + 79 AS col0 FROM tab0 AS cor0
----
118904
49615
720890

query I rowsort
SELECT ALL ( col0 ) * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT 84 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL + col1 + + col1 + + col0 FROM tab2
----
113
196
69

query I rowsort
SELECT ALL + 61 + col2 FROM tab2 AS cor0
----
87
88
99

query I rowsort
SELECT ALL 43 + col0 AS col1 FROM tab0 AS cor0
----
132
67
78

query I rowsort
SELECT DISTINCT + col1 + - col1 * - cor0.col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-7052
SELECT ALL - col2 * col0 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL - col2 * col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-176
-34
-6

query I rowsort
SELECT - 11 * - col1 FROM tab1 AS cor0
----
110
143
286

onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT DISTINCT 72 DIV + cor0.col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT 72 / + cor0.col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT col2 * + 30 * col1 FROM tab1
----
17100
37440
42120

query I rowsort
SELECT col2 + - tab1.col0 * - col0 * 82 + 5 AS col1 FROM tab1
----
335934
524901
797

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT + 13 DIV tab0.col2 FROM tab0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-7057
SELECT + 13 / tab0.col2 FROM tab0
----
0
0
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) - col1 col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL 41 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT + 40 + + col2 * col2 FROM tab0
----
1129
41
6764

query I rowsort
SELECT - 31 + col0 AS col0 FROM tab2 AS cor0
----
-24
47
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 col2 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT ALL - + col2 - col1 * + 14 AS col2 FROM tab2 AS cor0
----
-276
-461
-852

query I rowsort
SELECT DISTINCT cor0.col0 + - col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT tab2.col0 * + col0 + - 69 + + col2 AS col2 FROM tab2
----
6041
6210
7

query I rowsort
SELECT DISTINCT - 25 + col0 FROM tab1
----
-22
39
55

query I rowsort
SELECT col1 + - tab0.col2 AS col2 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT - - col1 * col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7068
SELECT - - col1 * col2 / + col1 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 - - col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT cor0.col2 * + col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + col2 + + col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7074
SELECT col0 * - col0 + col0 DIV col0 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-7074
SELECT col0 * - col0 + col0 / col0 FROM tab0 AS cor0
----
-1224
-575
-7920

query I rowsort
SELECT - col2 * cor0.col0 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + + col2 + + col0 - col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - col1 + col0 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT - + col2 + + cor0.col2 * + col0 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT ALL + ( col1 ) + col0 + - col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 42 * - col0 FROM tab1 cor0
----
126
2688
3360

query I rowsort
SELECT ALL + + col2 * col0 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - ( col2 ) + - tab0.col1 + col2 * + col1 * + col1 AS col0 FROM tab0
----
243949
678869
9311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT + col1 + col0 * col0 + + col2 * + col0 AS col2 FROM tab1
----
14093
197
7754

query I rowsort
SELECT + cor0.col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-7086
SELECT DISTINCT + col2 * col1 DIV col1 + - col2 + col0 * tab1.col2 AS col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT + col2 * col1 / col1 + - col2 + col0 * tab1.col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE ( NULL ) < ( - col2 + - col0 + col1 * - col2 )
----

query I rowsort
SELECT - col1 * - tab0.col0 + - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + col0 * tab1.col2 * - col0 AS col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL - col1 + - col0 + col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + tab1.col1 * tab1.col1 + + col2 * col0 + col1 FROM tab1
----
3758
7862
864

query I rowsort
SELECT col2 * - col1 + + col0 - col0 AS col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT DISTINCT col1 DIV col1 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT col1 / col1 AS col0 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IN ( col1 + col1 )
----

query I rowsort
SELECT + col1 + col1 + col0 * + col1 AS col1 FROM tab1
----
1066
130
660

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7097
SELECT + col2 * col0 DIV + col0 + col1 * - col1 FROM tab0
----
-7363
-8199
-9408

skipif mysql # not compatible
query I rowsort label-7097
SELECT + col2 * col0 / + col0 + col1 * - col1 FROM tab0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-7098
SELECT DISTINCT col0 + + col1 DIV col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT col0 + + col1 / col2 FROM tab1
----
3
64
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( + col0 * - col1 ) AND ( col1 )
----

query I rowsort
SELECT + col2 * col2 FROM tab0 WHERE col0 * col2 + + col0 / col2 NOT BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT ALL col2 + - col2 + col1 FROM tab2
----
17
31
59

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 + col1 / - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * - tab0.col2 * col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT 20 + col0 FROM tab1 cor0
----
100
23
84

query I rowsort
SELECT - - col0 * col1 + cor0.col1 * + col0 AS col1 FROM tab0 cor0
----
16198
4128
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-7107
SELECT DISTINCT + col2 DIV + col0 + cor0.col2 * col2 + + col1 FROM tab0 AS cor0
----
1176
6815
98

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + col2 / + col0 + cor0.col2 * col2 + + col1 FROM tab0 AS cor0
----
1176
6815
98

query I rowsort
SELECT DISTINCT col0 * + col1 * col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
118826
50625
727535

onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT + 37 DIV col0 + cor0.col2 * + 39 * + col2 col2 FROM tab2 AS cor0
----
26364
28436
56316

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7109
SELECT + 37 / col0 + cor0.col2 * + 39 * + col2 col2 FROM tab2 AS cor0
----
26364
28436
56316

query I rowsort
SELECT ALL tab1.col2 * col0 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT + col0 * col2 + - col2 - col0 * tab2.col0 FROM tab2
----
-3277
-4082
113

query I rowsort
SELECT ALL col2 * - tab1.col1 + + col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT col2 * - col0 + col1 AS col0 FROM tab0
----
-706
-7207
62

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND + col2 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7116
SELECT DISTINCT - tab1.col1 * tab1.col1 + col0 * + col1 DIV + col1 FROM tab1
----
-36
-673
-89

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT - tab1.col1 * tab1.col1 + col0 * + col1 / + col1 FROM tab1
----
-36
-673
-89

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) IN ( + tab2.col0 + col0 )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - tab1.col2 + - col0
----

query I rowsort
SELECT ALL + tab0.col2 * col0 + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT col1 * - col0 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - col0 * + col0 + - col0 * col2 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT ALL - ( col0 * col1 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL - - 15 FROM tab2 cor0
----
15
15
15

query I rowsort
SELECT ALL + col2 + - col0 * 63 FROM tab1 AS cor0
----
-135
-3975
-4944

query I rowsort
SELECT DISTINCT + 57 + cor0.col1 FROM tab1 AS cor0
----
67
70
83

query I rowsort
SELECT DISTINCT - 56 * col1 AS col2 FROM tab1 AS cor0
----
-1456
-560
-728

query I rowsort
SELECT DISTINCT + - 24 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col2 FROM tab2, tab2 cor0
----
54

query I rowsort
SELECT + col0 - tab2.col1 * + col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - tab2.col1 * + col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + col1 * 24 AS col1 FROM tab1
----
240
312
624

query I rowsort
SELECT - tab0.col0 * + tab0.col1 * col1 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT col1 * 4 FROM tab0
----
344
364
388

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7135
SELECT ALL col2 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL col2 - + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + ( ( tab0.col1 ) ) * + ( 76 ) FROM tab0
----
562096
629356
715084

query I rowsort
SELECT + tab0.col2 + col1 * col1 AS col0 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT - tab1.col1 * 46 * tab1.col2 + - col0 * + ( + tab1.col0 ) - col1 FROM tab1
----
-30326
-63821
-64619

query I rowsort
SELECT + - ( col1 ) * col2 + - 18 * - col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
136992
1512
65094

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7140
SELECT CAST( col1 AS SIGNED ) * - col1 + + col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

skipif mysql # not compatible
query I rowsort label-7140
SELECT CAST ( col1 AS INTEGER ) * - col1 + + col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - ( - tab0.col2 ) + tab0.col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT + col1 + - 99 + + col2 FROM tab1 cor0
----
-19
-32
10

query I rowsort
SELECT ALL - + ( - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 29 col2 FROM tab1 AS cor0
----
125
83
86

query I rowsort
SELECT + ( - col0 ) + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + col0 * + 50 AS col2 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT DISTINCT + + 79 * col1 * col2 FROM tab0 AS cor0
----
224202
589498
7663

query I rowsort
SELECT + + cor0.col0 * + ( + cor0.col2 ) * col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT col1 * 38 + + cor0.col0 FROM tab2 AS cor0
----
1185
2320
725

query I rowsort
SELECT - col1 + + col1 * - col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + + col0 * - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL 98 * - col0 * - col2 + 92 AS col1 FROM tab2
----
18614
198836
294288

query I rowsort
SELECT DISTINCT - - ( - 36 ) FROM tab2 AS cor0
----
-36

query I rowsort
SELECT DISTINCT col0 + 67 * - col1 FROM tab1
----
-1739
-606
-791

query I rowsort
SELECT DISTINCT - - 90 + - 74 AS col1 FROM tab0 cor0
----
16

query I rowsort
SELECT - - ( + ( col2 ) ) AS col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7157
SELECT ALL - 25 DIV cor0.col1 + col1 FROM tab2 AS cor0
----
16
31
59

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL - 25 / cor0.col1 + col1 FROM tab2 AS cor0
----
16
31
59

query I rowsort
SELECT - 43 + col2 AS col2 FROM tab2 AS cor0
----
-16
-17
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7159
SELECT - CAST( NULL AS DECIMAL ) * + cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT - CAST ( NULL AS REAL ) * + cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 53 + + col0 * - ( - 87 * - col0 ) FROM tab2 cor0
----
-4316
-529361
-543020

query I rowsort
SELECT + ( col0 ) + + 94 FROM tab0 AS cor0
----
118
129
183

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7163
SELECT + - col0 + + col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT + - col0 + + col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 72 * col0 AS col0 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT DISTINCT col2 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - col1 * col0 + 73 + - col0 AS col2 FROM tab0 AS cor0
----
-2015
-3357
-8115

query I rowsort
SELECT ALL - col1 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7168
SELECT ALL 55 * ( - col2 ) + + CAST( NULL AS SIGNED ) / - 55 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7168
SELECT ALL 55 * ( - col2 ) + + CAST ( NULL AS INTEGER ) / - 55 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 + col2 * col1 AS col0 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7170
SELECT col2 + col1 DIV - col1 AS col2 FROM tab2 cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-7170
SELECT col2 + col1 / - col1 AS col2 FROM tab2 cor0
----
25
26
37

query I rowsort
SELECT ALL 68 AS col1 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT ALL col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + + 94 * col0 AS col1 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT tab0.col1 * + tab0.col0 + + col0 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-7175
SELECT DISTINCT + col2 * - ( - col1 ) + col2 DIV + 72 AS col1 FROM tab0 AS cor0
----
2838
7463
97

skipif mysql # not compatible
query I rowsort label-7175
SELECT DISTINCT + col2 * - ( - col1 ) + col2 / + 72 AS col1 FROM tab0 AS cor0
----
2838
7463
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 + col1 * cor0.col0 col0 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT - col1 * ( - col0 ) AS col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7178
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab2, tab2 AS cor0
----
12

query I rowsort
SELECT - - col0 + + 24 * 34 AS col2 FROM tab1 AS cor0
----
819
880
896

query I rowsort
SELECT - col1 * ( col0 ) + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT ALL col2 + + 17 * - col2 FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT ALL - 8 * col2 AS col2 FROM tab1
----
-432
-456
-768

query I rowsort
SELECT ALL col1 * - col0 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7186
SELECT ALL + - col0 * - CAST( NULL AS SIGNED ) - - 91 / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT ALL + - col0 * - CAST ( NULL AS INTEGER ) - - 91 / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - 58 FROM tab2 AS cor0
----
-51
20
21

query I rowsort
SELECT - cor0.col1 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL - 1 + col0 AS col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT - 44 + col2 * - col1 FROM tab0 AS cor0
----
-141
-2882
-7506

query I rowsort
SELECT 94 * col1 + col2 AS col2 FROM tab2 AS cor0
----
1636
2941
5572

query I rowsort
SELECT ALL tab0.col0 + 85 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 498d143e3da32634429de14c48e202ba

query I rowsort
SELECT ALL - 72 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT + col1 + - 23 AS col0 FROM tab1 AS cor0
----
-10
-13
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col2 col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 + ( col2 ) AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7197
SELECT ALL - 28 * - col0 + - CAST( NULL AS SIGNED ) + col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL - 28 * - col0 + - CAST ( NULL AS INTEGER ) + col0 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7198
SELECT - 67 DIV col1 FROM tab1
----
-2
-5
-6

skipif mysql # not compatible
query I rowsort label-7198
SELECT - 67 / col1 FROM tab1
----
-2
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 78 + col1 col1 FROM tab0 AS cor0
----
-6622
-7007
-7469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7200
SELECT ALL + + col0 * + CAST( + col1 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL + + col0 * + CAST ( + col1 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + + col1 + - col0 + + cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
101
586
973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + - col2 col1 FROM tab1 cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 97 + col1 col0 FROM tab2 AS cor0
----
710
7625
7680

query I rowsort
SELECT + + col0 + 75 FROM tab0 AS cor0
----
110
164
99

query I rowsort
SELECT - col1 - ( col2 * col2 ) FROM tab1 AS cor0
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-7206
SELECT DISTINCT cor0.col0 + 71 DIV 55 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT cor0.col0 + 71 / 55 FROM tab2 cor0
----
79
8
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7207
SELECT DISTINCT CAST( + 12 AS SIGNED ) + col2 FROM tab0 AS cor0
----
13
45
94

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT CAST ( + 12 AS INTEGER ) + col2 FROM tab0 AS cor0
----
13
45
94

query I rowsort
SELECT ALL ( + 69 ) + cor0.col1 FROM tab0 AS cor0
----
155
160
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col2 FROM tab1 cor0
----
37
37
37

query I rowsort
SELECT DISTINCT + col2 * ( col0 + col1 * - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-604586
-62
-92862

query I rowsort
SELECT ALL + - col0 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - 47 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT ( col2 ) + col0 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT + 44 * - 7 AS col1 FROM tab1 cor0
----
-308
-308
-308

query I rowsort
SELECT + - ( col0 ) + - 93 * col0 AS col0 FROM tab2 cor0
----
-658
-7332
-7426

query I rowsort
SELECT DISTINCT - 14 * + col0 + col2 FROM tab0 AS cor0
----
-1164
-303
-489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 58 * col2 + ( col1 ) * col1 col2 FROM tab0 AS cor0
----
13037
9310
9467

query I rowsort
SELECT - 53 * - col0 FROM tab1 AS cor0
----
159
3392
4240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col2 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - col1 * + ( + col2 + + col0 ) AS col0 FROM tab0 cor0
----
-15561
-3492
-4902

query I rowsort
SELECT - + col0 * - 1 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 35 AS col0 FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT DISTINCT tab0.col2 * - 60 * tab0.col0 AS col1 FROM tab0
----
-2100
-437880
-47520

onlyif mysql # use DIV operator for integer division
query I rowsort label-7224
SELECT - col0 DIV + col1 + col2 col2 FROM tab1 cor0
----
51
54
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7224
SELECT - col0 / + col1 + col2 col2 FROM tab1 cor0
----
51
54
90

query I rowsort
SELECT 39 * col0 + col1 FROM tab1 cor0
----
143
2506
3133

query I rowsort
SELECT + tab0.col1 * + col0 + - col2 AS col2 FROM tab0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-7227
SELECT DISTINCT col1 * col1 DIV col0 col1 FROM tab0 AS cor0
----
268
308
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7227
SELECT DISTINCT col1 * col1 / col0 col1 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT - 68 * - col0 AS col1 FROM tab2
----
476
5304
5372

query I rowsort
SELECT - ( - col1 * + tab0.col0 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col0 - - col2 * - 96 * col1 AS col1 FROM tab1 AS cor0
----
-119728
-134781
-54656

query I rowsort
SELECT - + cor0.col0 * cor0.col0 + - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL tab0.col1 + + ( col0 ) AS col2 FROM tab0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7233
SELECT DISTINCT - col2 * + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT - col2 * + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + col0 * - cor0.col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7235
SELECT ALL + - col0 + col0 DIV 43 FROM tab2 cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL + - col0 + col0 / 43 FROM tab2 cor0
----
-7
-77
-78

query I rowsort
SELECT + col0 * + 81 - - col0 * - col1 FROM tab1 AS cor0
----
165
4544
5440

query I rowsort
SELECT ALL - col0 * ( + col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL + + col1 * cor0.col1 + ( col1 ) AS col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - + col2 + + 82 FROM tab2 AS cor0
----
44
55
56

skipif mysql # not compatible
query I rowsort
SELECT ALL - + cor0.col0 * + CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL 75 AS col0 FROM tab1 cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - ( col2 ) ) * col0 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 80 * cor0.col1 + col2 AS col0 FROM tab1 cor0
----
1136
2134
857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7244
SELECT DISTINCT CAST( col1 AS SIGNED ) * + cor0.col1 * + col2 + - cor0.col0 FROM tab0 AS cor0
----
244044
678953
9374

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + cor0.col1 * + col2 + - cor0.col0 FROM tab0 AS cor0
----
244044
678953
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7245
SELECT + - ( col2 ) * col1 + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7245
SELECT + - ( col2 ) * col1 + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 86 + + col2 FROM tab0 AS cor0
----
119
168
87

query I rowsort
SELECT ALL + col0 * - ( + cor0.col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * col1 + - col2 * - col1 * + col1 col2 FROM tab1 AS cor0
----
16926
37908
6240

query I rowsort
SELECT DISTINCT + col0 + - 97 FROM tab1
----
-17
-33
-94

query I rowsort
SELECT ALL + - 14 AS col2 FROM tab2 cor0
----
-14
-14
-14

query I rowsort
SELECT ALL 68 * + cor0.col2 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT ALL - + 67 * col0 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT DISTINCT - col1 - - col0 * ( col2 + + col1 * tab2.col1 ) FROM tab2
----
25816
273487
6885

onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT 0 DIV - tab0.col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7254
SELECT 0 / - tab0.col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + col2 - + col1 * - col2 FROM tab1 cor0
----
1140
2496
2808

query I rowsort
SELECT + 6 + - col1 FROM tab1
----
-20
-4
-7

query I rowsort
SELECT ALL + 73 - col0 AS col1 FROM tab0
----
-16
38
49

query I rowsort
SELECT DISTINCT 33 * + col1 - - 53 * col2 FROM tab2
----
2454
2575
3325

query I rowsort
SELECT col0 * - ( 42 ) + - col1 * - 38 AS col2 FROM tab1 AS cor0
----
-2308
-2866
862

query I rowsort
SELECT + col2 * 45 AS col2 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT ALL + col0 * + 33 + col2 FROM tab2
----
258
2600
2645

onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT - col2 DIV + ( - col2 ) AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7262
SELECT - col2 / + ( - col2 ) AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL tab1.col0 + ( col1 ) * col2 * col2 FROM tab1
----
119888
32554
75819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * 33 + + col2 col1 FROM tab2
----
1050
1973
599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - - col1 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + 23 FROM tab2 AS cor0
----
101
102
30

query I rowsort
SELECT DISTINCT - cor0.col0 + 14 * - col1 FROM tab0 AS cor0
----
-1228
-1363
-1393

query I rowsort
SELECT col0 * + ( 82 * + col2 ) FROM tab2
----
15498
166296
246164

query I rowsort
SELECT ALL + col2 - 98 FROM tab0 AS cor0
----
-16
-65
-97

query I rowsort
SELECT - ( + col1 ) + + col1 * + ( + col2 ) FROM tab1
----
1235
1378
560

query I rowsort
SELECT + - col1 * 50 AS col0 FROM tab2 AS cor0
----
-1550
-2950
-850

query I rowsort
SELECT DISTINCT + ( col2 ) * ( col1 ) FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 35 * - col0 col0 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT ALL + col0 * col1 + - col0 AS col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + col0 - + col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + col1 + - col1 - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( - col2 ) + + 4 AS col0 FROM tab2
----
30
31
42

query I rowsort
SELECT + col0 * + col1 * + cor0.col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - col0 + + col1 * cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 81 + + col1 AS col1 FROM tab2 cor0
----
112
140
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7282
SELECT - + CAST( + 70 AS SIGNED ) FROM tab2 AS cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-7282
SELECT - + CAST ( + 70 AS INTEGER ) FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ( - ( col0 ) ) * cor0.col0 * 2 FROM tab0 AS cor0
----
-1152
-15842
-2450

query I rowsort
SELECT ALL - 34 AS col0 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL + col0 + - col1 - - col1 FROM tab1 cor0
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

query I rowsort
SELECT + ( 48 ) * col0 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT - - cor0.col2 + + col2 * - col0 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 80 col0 FROM tab1
----
106
90
93

query I rowsort
SELECT - - col2 + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - 77 + - col1 * col1 FROM tab0 AS cor0
----
-7473
-8358
-9486

query I rowsort
SELECT + ( cor0.col0 ) AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - cor0.col1 + + cor0.col0 * + 37 FROM tab2 AS cor0
----
228
2827
2906

query I rowsort
SELECT col0 * col2 * - 24 + 39 FROM tab0
----
-175113
-18969
-801

query I rowsort
SELECT DISTINCT + col0 + - 88 * col1 AS col1 FROM tab2 AS cor0
----
-1417
-2721
-5114

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 - + 31 AS col0 FROM tab0 AS cor0
----
-2095
-3426
-8130

query I rowsort
SELECT ALL cor0.col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7298
SELECT DISTINCT + + cor0.col2 + - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT + + cor0.col2 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - ( + cor0.col1 * + col0 ) col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-7301
SELECT DISTINCT col0 - 85 DIV col1 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT col0 - 85 / col1 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - 83 AS col2 FROM tab2 AS cor0
----
-83
-83
-83

query I rowsort
SELECT - cor0.col2 + - ( col2 ) * cor0.col0 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL - + 65 AS col0 FROM tab2 AS cor0
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + 57 col2 FROM tab2 AS cor0
----
-1482
-1539
-2166

onlyif mysql # use DIV operator for integer division
query I rowsort label-7306
SELECT DISTINCT - + cor0.col2 + 23 DIV + col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - + cor0.col2 + 23 / + col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + 51 * col0 AS col1 FROM tab2 AS cor0
----
357
3978
4029

query I rowsort
SELECT ALL + ( col2 ) * + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT ALL 89 * tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8236cf9ab6bad07e17b703f5b8641825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 - col0 * + 38 col0 FROM tab2
----
-2713
517
695

query I rowsort
SELECT + 70 * col1 FROM tab1 AS cor0
----
1820
700
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT + + col1 * + cor0.col2 * cor0.col2 + 18 - col0 AS col0 FROM tab1 AS cor0
----
119746
32444
75831

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7314
SELECT col0 * + col0 + - CAST( NULL AS SIGNED ) + 34 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT col0 * + col0 + - CAST ( NULL AS INTEGER ) + 34 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 74 - + col0 * 39 AS col2 FROM tab1 AS cor0
----
-2422
-3046
-43

query I rowsort
SELECT - 48 * cor0.col1 + + ( - ( + cor0.col0 ) ) FROM tab1 AS cor0
----
-1251
-544
-704

query I rowsort
SELECT - - ( 47 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT 54 DIV col2 + col0 FROM tab1 AS cor0
----
4
64
80

skipif mysql # not compatible
query I rowsort label-7318
SELECT 54 / col2 + col0 FROM tab1 AS cor0
----
4
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT - ( col0 ) DIV + col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7319
SELECT - ( col0 ) / + col1 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7320
SELECT col1 + + col0 DIV col0 - - col1 AS col0 FROM tab0 cor0
----
173
183
195

skipif mysql # not compatible
query I rowsort label-7320
SELECT col1 + + col0 / col0 - - col1 AS col0 FROM tab0 cor0
----
173
183
195

query I rowsort
SELECT 81 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

onlyif mysql # use DIV operator for integer division
query I rowsort label-7322
SELECT col0 DIV ( col0 ) + col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-7322
SELECT col0 / ( col0 ) + col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + col2 + + 34 * col1 FROM tab2 cor0
----
1081
2032
616

onlyif mysql # use DIV operator for integer division
query I rowsort label-7324
SELECT - col1 + + 70 * col1 DIV col2 FROM tab1 AS cor0
----
-4
2
7

skipif mysql # not compatible
query I rowsort label-7324
SELECT - col1 + + 70 * col1 / col2 FROM tab1 AS cor0
----
-4
2
7

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1 AS cor1, tab1, tab1 cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac

query I rowsort
SELECT - - col0 * - 66 + + col1 FROM tab2 AS cor0
----
-431
-5089
-5197

query I rowsort
SELECT ALL col0 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT ( + 94 ) + col0 - 61 * - tab1.col0 FROM tab1
----
280
4062
5054

onlyif mysql # use DIV operator for integer division
query I rowsort label-7329
SELECT - cor0.col1 DIV + 44 FROM tab0 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7329
SELECT - cor0.col1 / + 44 FROM tab0 cor0
----
-1
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7330
SELECT - ( 85 ) DIV - col1 AS col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-7330
SELECT - ( 85 ) / - col1 AS col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT DISTINCT - col2 * + 91 * col1 FROM tab1 AS cor0
----
-113568
-127764
-51870

query I rowsort
SELECT ALL - 28 + col0 * - cor0.col0 FROM tab1 AS cor0
----
-37
-4124
-6428

query I rowsort
SELECT 88 + + col0 AS col0 FROM tab0
----
112
123
177

query I rowsort
SELECT - 68 * + col0 + - col2 FROM tab0 AS cor0
----
-1665
-2381
-6134

query I rowsort
SELECT DISTINCT + 26 * col2 AS col0 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT DISTINCT + - 97 * col0 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT - 83 * col2 * + tab1.col0 FROM tab1
----
-13446
-302784
-637440

query I rowsort
SELECT ALL + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 + + 75 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT + col2 * + 11 AS col0 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT DISTINCT + col0 + + col1 * 73 AS col1 FROM tab1 AS cor0
----
1029
1901
794

query I rowsort
SELECT ALL - cor0.col0 * - 61 FROM tab2 cor0
----
427
4758
4819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + 32 col2 FROM tab2 AS cor0
----
2060
221
3034

query I rowsort
SELECT ALL + cor0.col0 + ( col2 ) * - col1 * + 35 + col0 AS col1 FROM tab1 AS cor0
----
-19822
-43520
-49134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 84 ) + + cor0.col0 * col0 * + col0 col0 FROM tab1 cor0
----
111
262228
512084

query I rowsort
SELECT ALL + ( 41 ) + col2 AS col2 FROM tab1 AS cor0
----
137
95
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7347
SELECT ALL col0 DIV - ( + col0 * col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL col0 / - ( + col0 * col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL ( + col0 ) + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT 23 * - 46 * col1 AS col2 FROM tab2 cor0
----
-17986
-32798
-62422

query I rowsort
SELECT ALL 47 * - col1 + + cor0.col2 + + ( col0 ) FROM tab0 AS cor0
----
-3985
-4106
-4523

query I rowsort
SELECT ALL + - 16 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7412
-8297
-9425

query I rowsort
SELECT - tab2.col2 + 95 FROM tab2
----
57
68
69

query I rowsort
SELECT col2 + - col1 * col1 AS col1 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT ALL 67 + tab2.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5e164dbaaf2ae1211d6899dcefebc58b

query I rowsort
SELECT ALL + + 26 + 48 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - ( col0 ) + col1 * + col1 FROM tab2 AS cor0
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - 60 * + col2 col2 FROM tab2 AS cor0
----
-1482
-1613
-2201

query I rowsort
SELECT + + 49 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7359
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7359
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - 50 + col2 AS col2 FROM tab1 cor0
----
4
46
7

query I rowsort
SELECT ( + col2 ) + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - tab0.col1 + - 78 AS col1 FROM tab0
----
-164
-169
-175

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7363
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col1 - col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT CAST ( NULL AS REAL ) * + col1 - col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( + col2 ) + col0 AS col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 - + col0 col0 FROM tab1
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7366
SELECT ALL col1 * + CAST( cor0.col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL col1 * + CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + cor0.col1 * ( + 80 ) AS col2 FROM tab2 cor0
----
-1360
-2480
-4720

query I rowsort
SELECT DISTINCT + 44 + col1 AS col1 FROM tab2
----
103
61
75

query I rowsort
SELECT ALL 39 + col1 + 26 * + col0 FROM tab2
----
2110
2126
252

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7370
SELECT + tab1.col1 + + col2 + + CAST( NULL AS SIGNED ) * col2 / + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT + tab1.col1 + + col2 + + CAST ( NULL AS INTEGER ) * col2 / + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 60 + col2 FROM tab2
----
86
87
98

query I rowsort
SELECT ALL - col1 * - col0 * + col2 + 73 AS col1 FROM tab1
----
36553
4285
99913

onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT ALL 27 DIV + col0 + + 90 * ( col2 * col2 ) AS col0 FROM tab1
----
262449
292410
829440

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL 27 / + col0 + + 90 * ( col2 * col2 ) AS col0 FROM tab1
----
262449
292410
829440

query I rowsort
SELECT col0 * + col2 + - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 30 col0 FROM tab2 cor0
----
1770
510
930

query I rowsort
SELECT + - col0 * + 32 + 80 * cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
20592
275984
76656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + 54 col2 FROM tab1 AS cor0
----
216
3702
7734

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7378
SELECT DISTINCT + - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT + - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * ( 15 ) FROM tab0 AS cor0
----
1290
1365
1455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7380
SELECT ALL - col0 - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL - col0 - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + cor0.col2 * + 94 + - col0 AS col2 FROM tab2 AS cor0
----
2366
2531
3493

query I rowsort
SELECT ALL + + col0 * col1 + - cor0.col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT DISTINCT - cor0.col2 - col0 DIV + ( col0 ) AS col1 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT - cor0.col2 - col0 / + ( col0 ) AS col1 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT cor0.col2 * ( + 8 ) FROM tab0, tab1, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to b3cc505eab83c555b7f6b3b95d58f4b7

query I rowsort
SELECT ALL 26 * col1 * 94 AS col0 FROM tab0
----
210184
222404
237068

query I rowsort
SELECT ALL + ( + col2 + - col0 ) AS col0 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 * cor0.col2 col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col1 * - ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - ( col2 * + 6 ) FROM tab0
----
-198
-492
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7391
SELECT col1 * - col0 DIV + col0 + col1 DIV col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7391
SELECT col1 * - col0 / + col0 + col1 / col2 FROM tab1
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7392
SELECT - 82 + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7392
SELECT - 82 + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - - col1 - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - - 98 + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7494
8379
9507

onlyif mysql # use DIV operator for integer division
query I rowsort label-7396
SELECT ALL + + col1 * + col1 + - cor0.col1 DIV col0 + + ( - col1 ) FROM tab0 AS cor0
----
7307
8189
9310

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL + + col1 * + col1 + - cor0.col1 / col0 + + ( - col1 ) FROM tab0 AS cor0
----
7307
8189
9310

query I rowsort
SELECT + col1 * + col0 + - cor0.col2 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - cor0.col0 * 88 * + col2 FROM tab1 cor0
----
-14256
-321024
-675840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7399
SELECT + 14 + ( col1 * + CAST( col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
2078
3409
8113

skipif mysql # not compatible
query I rowsort label-7399
SELECT + 14 + ( col1 * + CAST ( col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
2078
3409
8113

query I rowsort
SELECT ALL - - col0 + - col0 * + col1 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-7401
SELECT ALL + col0 + cor0.col0 DIV col2 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL + col0 + cor0.col0 / col2 FROM tab0 AS cor0
----
24
70
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7402
SELECT DISTINCT - - col0 DIV cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT - - col0 / cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-88
0

query I rowsort
SELECT ALL 9 + - col1 FROM tab1 AS cor0
----
-1
-17
-4

query I rowsort
SELECT DISTINCT cor0.col2 * col2 - + col0 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT + col2 DIV + col0 + + col2 AS col0 FROM tab1
----
57
72
97

skipif mysql # not compatible
query I rowsort label-7405
SELECT + col2 / + col0 + + col2 AS col0 FROM tab1
----
57
72
97

query I rowsort
SELECT ALL col1 + + 23 AS col1 FROM tab2
----
40
54
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7407
SELECT + CAST( NULL AS SIGNED ) - + ( col0 * + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT + CAST ( NULL AS INTEGER ) - + ( col0 * + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * cor0.col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
406
4345
6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-7409
SELECT DISTINCT + ( - col0 ) DIV col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + ( - col0 ) / col1 AS col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT ALL + 60 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT - ( col1 ) * - cor0.col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT 3 + cor0.col0 * - ( 72 ) FROM tab0 AS cor0
----
-1725
-2517
-6405

query I rowsort
SELECT col0 * col1 * - 11 FROM tab2 AS cor0
----
-14773
-2387
-50622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 3 - col1 * - 89 col1 FROM tab0 AS cor0
----
7657
8102
8636

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7415
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - ( col2 ) + + col0 * col0 AS col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + 2 + col2 AS col0 FROM tab0
----
3
35
84

query I rowsort
SELECT - 93 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT + - 1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - col0 * col1 * - col0 AS col2 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT + 74 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT + cor0.col2 DIV - 89 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7422
SELECT + cor0.col2 / - 89 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - ( - 80 ) AS col2 FROM tab2 AS cor0
----
80
80
80

query I rowsort
SELECT ALL - 14 * col0 FROM tab2
----
-1092
-1106
-98

query I rowsort
SELECT col1 * + 29 * + tab1.col2 AS col0 FROM tab1
----
16530
36192
40716

onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT 76 + + col1 DIV + col2 - 84 DIV - col2 AS col0 FROM tab0
----
257
78
80

skipif mysql # not compatible
query I rowsort label-7426
SELECT 76 + + col1 / + col2 - 84 / - col2 AS col0 FROM tab0
----
257
78
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7427
SELECT + col2 * ( + col1 ) + ( - col2 ) * + col1 + + CAST( + col2 + cor0.col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-7427
SELECT + col2 * ( + col1 ) + ( - col2 ) * + col1 + + CAST ( + col2 + cor0.col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - 70 * - col2 + col1 + col1 FROM tab2 AS cor0
----
1938
1952
2694

query I rowsort
SELECT DISTINCT - col0 * 65 AS col0 FROM tab0 cor0
----
-1560
-2275
-5785

query I rowsort
SELECT ALL + 75 * 39 AS col1 FROM tab0 cor0
----
2925
2925
2925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7431
SELECT DISTINCT CAST( col1 AS SIGNED ) * col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-7431
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + + ( col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col1 + col2 * col2 + col0 AS col2 FROM tab1 cor0
----
2893
3303
9283

query I rowsort
SELECT ALL + ( 10 ) * - col2 - col1 FROM tab1 AS cor0
----
-566
-580
-973

query I rowsort
SELECT ALL + ( col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + + col2 * - ( col2 ) * 22 FROM tab1 AS cor0
----
-202752
-64152
-71478

query I rowsort
SELECT col0 * - 45 + tab2.col2 FROM tab2
----
-288
-3484
-3517

onlyif mysql # use DIV operator for integer division
query I rowsort label-7438
SELECT + col2 + - 22 DIV col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7438
SELECT + col2 + - 22 / col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + 88 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
243 values hashing to fcc118615fb2799d7d418f949644d6cb

query I rowsort
SELECT ALL - - ( col2 ) * - col2 + 99 + col0 FROM tab0 AS cor0
----
-6536
-966
133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7441
SELECT CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7441
SELECT CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT DISTINCT + col1 - ( col0 ) * - col0 DIV + ( col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT + col1 - ( col0 ) * - col0 / + ( col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 col2 FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT + + col1 + ( + col1 ) FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL - + col2 * - cor0.col1 + - col2 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7446
SELECT DISTINCT + CAST( + col2 AS SIGNED ) - + col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) - + col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7447
SELECT ALL col1 + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-7447
SELECT ALL col1 + col2 / col2 AS col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT col1 + ( - col1 ) * - 56 AS col1 FROM tab0 AS cor0
----
4902
5187
5529

query I rowsort
SELECT DISTINCT - ( 1 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + + 6 AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - 72 - - col2 * col0 FROM tab0
----
-37
720
7226

onlyif mysql # use DIV operator for integer division
query I rowsort label-7452
SELECT DISTINCT - col1 DIV col0 + + col1 AS col1 FROM tab1
----
10
13
18

skipif mysql # not compatible
query I rowsort label-7452
SELECT DISTINCT - col1 / col0 + + col1 AS col1 FROM tab1
----
10
13
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-7453
SELECT DISTINCT tab1.col0 DIV col1 + + col1 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT tab1.col0 / col1 + + col1 FROM tab1
----
16
19
26

query I rowsort
SELECT ALL - 75 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT + 75 * col1 * - col1 FROM tab1 AS cor0
----
-12675
-50700
-7500

query I rowsort
SELECT - + cor0.col2 + cor0.col2 * 16 FROM tab2 AS cor0
----
390
405
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col0 col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7458
SELECT + col2 * col2 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7458
SELECT + col2 * col2 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 + - CAST ( 70 AS REAL ) * cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
-107439
-45237
-58621

query I rowsort
SELECT ALL - col0 * col1 - + col0 AS col1 FROM tab1 cor0
----
-1120
-704
-81

query I rowsort
SELECT - col0 * + 56 + col1 AS col0 FROM tab0 AS cor0
----
-1258
-1863
-4893

query I rowsort
SELECT - col0 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 78 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT ALL + - col2 + - ( - col2 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - col0 * col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL + - cor0.col0 - - col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - col0 * - cor0.col0 - col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - cor0.col0 + cor0.col2 * col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7470
SELECT - col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7470
SELECT - col0 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col1 * - 62 + col1 * col1 AS col2 FROM tab1 AS cor0
----
2288
720
975

query I rowsort
SELECT + + col0 * 45 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT - - col1 + + ( - col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7474
SELECT + col0 + CAST( 78 AS SIGNED ) + - col0 * col1 FROM tab1 AS cor0
----
-498
-882
3

skipif mysql # not compatible
query I rowsort label-7474
SELECT + col0 + CAST ( 78 AS INTEGER ) + - col0 * col1 FROM tab1 AS cor0
----
-498
-882
3

query I rowsort
SELECT ALL + cor0.col0 * ( col2 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col2 * + ( + col0 + - col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - + col2 + + col2 * - 6 FROM tab1 AS cor0
----
-378
-399
-672

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7478
SELECT cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7478
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7479
SELECT + col1 * 82 DIV + col1 FROM tab2 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-7479
SELECT + col1 * 82 / + col1 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT + cor1.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-7481
SELECT 52 DIV + cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4650003ffa5d766d08d3882d1381b954

skipif mysql # not compatible
query I rowsort label-7481
SELECT 52 / + cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4650003ffa5d766d08d3882d1381b954

query I rowsort
SELECT ALL + + 70 + ( col1 ) * + 26 AS col1 FROM tab2 AS cor0
----
1604
512
876

query I rowsort
SELECT DISTINCT - - col0 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT 14 + col0 * col2 AS col0 FROM tab0 AS cor0
----
49
7312
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7485
SELECT - + 88 DIV 21 FROM tab2 cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-7485
SELECT - + 88 / 21 FROM tab2 cor0
----
-4
-4
-4

query I rowsort
SELECT ALL + 40 + cor0.col0 FROM tab2 AS cor0
----
118
119
47

query I rowsort
SELECT col0 + - 15 AS col1 FROM tab0
----
20
74
9

query I rowsort
SELECT - + col1 + col2 * col0 * - ( col1 ) FROM tab1 AS cor0
----
-36490
-4238
-99853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 * col0 + + cor0.col2 col2 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT ALL + - col1 + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT 16 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL 71 - - col2 * col2 AS col0 FROM tab1
----
2987
3320
9287

query I rowsort
SELECT ALL - ( + col1 ) * - 5 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT ALL col2 * col0 + ( 17 ) FROM tab1
----
179
3665
7697

query I rowsort
SELECT - col2 + - 26 AS col0 FROM tab1 AS cor0
----
-122
-80
-83

query I rowsort
SELECT + col1 + col0 + + ( col1 ) FROM tab2
----
113
196
69

query I rowsort
SELECT ALL + tab0.col2 * col2 * + ( col0 * - col1 ) + 3 FROM tab0
----
-2247693
-3392
-54457673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 + 41 * col1 col0 FROM tab0
----
3464
3729
3915

query I rowsort
SELECT ALL - 39 + + col2 FROM tab1
----
15
18
57

query I rowsort
SELECT 85 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1529
761
814

query I rowsort
SELECT - ( col2 ) * cor0.col2 + col1 * + col2 * col0 FROM tab2 AS cor0
----
118976
49590
5130

onlyif mysql # use DIV operator for integer division
query I rowsort label-7502
SELECT + col0 DIV 24 FROM tab2
----
0
3
3

skipif mysql # not compatible
query I rowsort label-7502
SELECT + col0 / 24 FROM tab2
----
0
3
3

query I rowsort
SELECT DISTINCT + col0 + 67 FROM tab2
----
145
146
74

query I rowsort
SELECT ALL + col1 * ( + col2 ) + col0 * 60 FROM tab0
----
12802
2197
4278

query I rowsort
SELECT ALL col0 + col1 * col2 * tab1.col1 + tab1.col1 FROM tab1
----
16317
36533
5774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 + col0 col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col0 * 70 + 48 * - col1 AS col2 FROM tab2 AS cor0
----
-998
2628
4714

query I rowsort
SELECT col0 * - col2 * + col0 - + col0 FROM tab2 cor0
----
-1330
-158262
-237237

query I rowsort
SELECT DISTINCT ( - col1 ) + + col1 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7510
SELECT ALL + ( - col2 ) DIV + col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL + ( - col2 ) / + col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 98 + col1 * + col0 * + 98 AS col0 FROM tab0 AS cor0
----
202174
332612
793604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7512
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) + - 95 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) + - 95 AS col1 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7513
SELECT + col1 * col2 + tab1.col1 * - col1 DIV ( col1 ) + tab1.col1 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-7513
SELECT + col1 * col2 + tab1.col1 * - col1 / ( col1 ) + tab1.col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col2 + + col2 + - col0 FROM tab2
----
-26
-3
47

query I rowsort
SELECT - 71 * + col2 + col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT - - ( 36 ) - cor0.col0 AS col1 FROM tab0 AS cor0
----
-53
1
12

query I rowsort
SELECT + ( + 60 ) AS col0 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT + + col1 + ( + col2 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( ( col2 ) ) * ( - col2 ) - - col0 * 47 col2 FROM tab2 cor0
----
1058
4342
5157

query I rowsort
SELECT ( + col0 ) - col2 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col0 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col0 col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT DISTINCT col0 + 55 - col2 FROM tab1
----
39
4
62

query I rowsort
SELECT ALL - 43 * + col1 - col0 FROM tab2
----
-1340
-2615
-810

query I rowsort
SELECT + 19 AS col2 FROM tab2 cor0
----
19
19
19

query I rowsort
SELECT ALL - cor0.col0 * 81 AS col1 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT DISTINCT 83 + 39 * col0 AS col1 FROM tab1 cor0
----
200
2579
3203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 79 * - col2 + col1 * col2 col2 FROM tab0 AS cor0
----
18
231
984

query I rowsort
SELECT 23 * - col0 FROM tab2 AS cor0
----
-161
-1794
-1817

onlyif mysql # use DIV operator for integer division
query I rowsort label-7530
SELECT + + 8 DIV + col1 + 42 * col0 col1 FROM tab2 AS cor0
----
294
3276
3318

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7530
SELECT + + 8 / + col1 + 42 * col0 col1 FROM tab2 AS cor0
----
294
3276
3318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - - ( - col2 ) + - col0 * col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + 43 FROM tab1 cor0
----
43
43
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT cor0.col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7534
SELECT cor0.col1 / + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + ( col2 ) * - col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT 38 + - 5 - col2 AS col1 FROM tab2
----
-5
6
7

query I rowsort
SELECT DISTINCT col1 * + col2 + + col1 - + ( col0 ) FROM tab1
----
1181
1427
516

query I rowsort
SELECT ALL + ( tab1.col1 ) * - 52 - + 73 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1683c8be6b8e3a4cc08d7c37fe02e327

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col2 FROM tab2
----
62
62
62

query I rowsort
SELECT ALL - col0 * - col0 + 48 FROM tab1 cor0
----
4144
57
6448

query I rowsort
SELECT ALL + + col0 + - 84 * - col0 AS col2 FROM tab2 AS cor0
----
595
6630
6715

query I rowsort
SELECT DISTINCT col0 * - 48 FROM tab0 AS cor0
----
-1152
-1680
-4272

query I rowsort
SELECT col0 * cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL + 0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 65 + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1160
-511
-7856

onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT DISTINCT + - 43 DIV col0 - ( 35 ) * col2 FROM tab1 cor0
----
-1904
-1995
-3360

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT + - 43 / col0 - ( 35 ) * col2 FROM tab1 cor0
----
-1904
-1995
-3360

query I rowsort
SELECT - col1 + col1 + col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL col2 + + col2 * + 32 * - col2 FROM tab2 AS cor0
----
-21606
-23301
-46170

query I rowsort
SELECT ALL + 93 - col1 AS col1 FROM tab0 AS cor0
----
-4
2
7

query I rowsort
SELECT DISTINCT + 93 * col2 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT - - 46 * - col2 FROM tab0 AS cor0
----
-1518
-3772
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-7552
SELECT DISTINCT - col0 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT - col0 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - ( + 27 ) AS col1 FROM tab0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col1 * col2 + col1 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL + - 84 + col1 AS col1 FROM tab0 AS cor0
----
13
2
7

query I rowsort
SELECT ALL + + col2 * + col2 + - col1 * ( + col2 * col1 ) FROM tab0 AS cor0
----
-242979
-672318
-9408

query I rowsort
SELECT DISTINCT - 21 * col2 + cor0.col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-543
-565
-860

query I rowsort
SELECT - + col0 * + col2 + + col2 AS col2 FROM tab0 cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-7559
SELECT DISTINCT - - col1 * cor0.col0 + col1 DIV col0 + col1 DIV - 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-7559
SELECT DISTINCT - - col1 * cor0.col0 + col1 / col0 + col1 / - col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7560
SELECT - col2 * - col0 * CAST( NULL AS SIGNED ) + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7560
SELECT - col2 * - col0 * CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 55 + col2 FROM tab0 AS cor0
----
-22
-54
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * cor0.col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - - col2 + - col2 + col0 FROM tab0 AS cor0
----
24
35
89

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to a8f0522dfcc0ffd1116145dd0d0134ff

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7565
SELECT ALL + - col1 + + col1 * cor0.col1 * + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL + - col1 + + col1 * cor0.col1 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-49

query I rowsort
SELECT - - ( cor1.col0 ) + - 56 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0d3ba894530306b5c9fb5286b21215cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7568
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7569
SELECT + ( - 32 ) + tab2.col1 DIV 90 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

skipif mysql # not compatible
query I rowsort label-7569
SELECT + ( - 32 ) + tab2.col1 / 90 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

query I rowsort
SELECT + ( 94 ) + col0 FROM tab2
----
101
172
173

query I rowsort
SELECT DISTINCT col0 * 92 + + col0 FROM tab1
----
279
5952
7440

query I rowsort
SELECT ALL col2 * + col2 + - tab1.col2 AS col0 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT + 59 * + 8 * - col2 AS col2 FROM tab1
----
-25488
-26904
-45312

query I rowsort
SELECT DISTINCT + + 1 + - col2 + + col0 FROM tab0 AS cor0
----
-8
35
8

query I rowsort
SELECT DISTINCT - 19 * + col2 + - col1 FROM tab2 AS cor0
----
-544
-553
-739

query I rowsort
SELECT - + cor0.col2 * - col0 + + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - 58 * 85 AS col1 FROM tab1
----
-4930
-4930
-4930

query I rowsort
SELECT DISTINCT ( - col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7579
SELECT DISTINCT CAST( - ( col0 ) AS SIGNED ) DIV col2 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT CAST ( - ( col0 ) AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL - - ( - 77 ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT + - 53 + - 82 + col2 FROM tab2 AS cor0
----
-108
-109
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7582
SELECT col2 + + col0 DIV - col1 FROM tab2 cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-7582
SELECT col2 + + col0 / - col1 FROM tab2 cor0
----
25
27
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col0 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7584
SELECT DISTINCT col2 DIV col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT col2 / col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT 92 + col2 FROM tab1 AS cor0
----
146
149
188

query I rowsort
SELECT + 19 + col0 AS col0 FROM tab2 AS cor0
----
26
97
98

query I rowsort
SELECT - 96 * col2 + - col0 FROM tab2 cor0
----
-2574
-2599
-3727

query I rowsort
SELECT ALL col0 * col1 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + + 80 * cor0.col1 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
71

query I rowsort
SELECT ALL - cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort
SELECT + - col2 + + CAST ( + col0 AS REAL ) * + col1 FROM tab0 cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-7593
SELECT ALL - 28 DIV - cor0.col0 + col1 FROM tab1 cor0
----
10
13
35

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL - 28 / - cor0.col0 + col1 FROM tab1 cor0
----
10
13
35

query I rowsort
SELECT 45 - 94 AS col1 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL - 33 + - col1 AS col2 FROM tab2 AS cor0
----
-50
-64
-92

query I rowsort
SELECT DISTINCT + 37 * 23 AS col2 FROM tab1 AS cor0
----
851

query I rowsort
SELECT DISTINCT + 36 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1944
2052
3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT ALL - 40 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL - 40 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT + - 44 + 44 * + col1 AS col0 FROM tab1 AS cor0
----
1100
396
528

query I rowsort
SELECT DISTINCT + col0 + 96 * - col2 FROM tab2 AS cor0
----
-2418
-2585
-3569

query I rowsort
SELECT DISTINCT 11 * - cor0.col1 FROM tab2, tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT - col1 + col2 * - col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT tab2.col1 * ( ( - col1 ) ) * col2 FROM tab2
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7604
SELECT + tab1.col0 + + CAST( 85 AS SIGNED ) * - col1 FROM tab1
----
-1025
-2207
-786

skipif mysql # not compatible
query I rowsort label-7604
SELECT + tab1.col0 + + CAST ( 85 AS INTEGER ) * - col1 FROM tab1
----
-1025
-2207
-786

query I rowsort
SELECT ( - 69 ) * tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 3c2cf32686a3cf51d385ede68cdd5694

query I rowsort
SELECT DISTINCT 38 + 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
104

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT - cor0.col2 DIV + 5 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-35
-7314
-798

skipif mysql # not compatible
query I rowsort label-7608
SELECT - cor0.col2 / + 5 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-35
-7314
-798

query I rowsort
SELECT + ( tab0.col2 ) + + 30 + col2 FROM tab0
----
194
32
96

query I rowsort
SELECT ALL - 87 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT 34 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT + col1 * + ( col1 ) AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab0, tab2 cor0
----
71

query I rowsort
SELECT - - col2 + + cor0.col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT col0 * col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7617
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + ( - col0 * + ( ( col2 ) ) ) col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT + CAST ( NULL AS REAL ) * + ( - col0 * + ( ( col2 ) ) ) col0 FROM tab0
----
NULL

query I rowsort
SELECT + ( + col1 ) * 53 FROM tab2 cor0
----
1643
3127
901

query I rowsort
SELECT ( col1 ) + col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT 85 * col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
175440
288575
688415

query I rowsort
SELECT DISTINCT - ( col0 ) + + ( col2 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7622
SELECT ( col2 ) * tab1.col1 DIV col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7622
SELECT ( col2 ) * tab1.col1 / col2 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT DISTINCT - tab0.col0 DIV 84 FROM tab0, tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT - tab0.col0 / 84 FROM tab0, tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab1 cor0
----
82
82
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7626
SELECT ALL col0 DIV col2 col1 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL col0 / col2 col1 FROM tab1
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT ALL - 8 * col0 DIV 88 FROM tab1
----
-5
-7
0

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - 8 * col0 / 88 FROM tab1
----
-5
-7
0

query I rowsort
SELECT cor0.col2 * - col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT 77 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT + - col0 + col2 * - col1 AS col0 FROM tab2 cor0
----
-1612
-725
-844

skipif mysql # not compatible
query I rowsort
SELECT + + col2 + - CAST ( + col2 AS REAL ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 * col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT cor0.col1 * 34 AS col1 FROM tab2 AS cor0
----
1054
2006
578

onlyif mysql # use DIV operator for integer division
query I rowsort label-7634
SELECT col2 DIV col0 - + col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-7634
SELECT col2 / col0 - + col0 AS col1 FROM tab0 AS cor0
----
-23
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col1 FROM tab2
----
-7
-7
-7

query I rowsort
SELECT ALL col1 * col0 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col0 + 38 FROM tab1 AS cor0
----
102
118
41

query I rowsort
SELECT ALL col0 + + col2 * col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + col1 * 22 FROM tab2 AS cor0
----
1298
374
682

onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT DISTINCT - col1 + 42 DIV + col0 AS col0 FROM tab0 AS cor0
----
-85
-91
-96

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT - col1 + 42 / + col0 AS col0 FROM tab0 AS cor0
----
-85
-91
-96

query I rowsort
SELECT ( col2 ) * + col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - + ( 42 ) + - col1 AS col0 FROM tab0 AS cor0
----
-128
-133
-139

query I rowsort
SELECT 83 - + col1 AS col0 FROM tab1
----
57
70
73

query I rowsort
SELECT - col1 * col0 * col1 - + col1 * - 69 FROM tab1
----
-12623
-234
-5710

query I rowsort
SELECT + ( col0 ) * col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL - + col1 + 44 AS col1 FROM tab1 cor0
----
18
31
34

query I rowsort
SELECT - col0 + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7648
SELECT ALL - + CAST( + col1 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - + CAST ( + col1 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT + ( ( - col1 ) ) * ( - col0 ) + col1 DIV + col2 + col0 FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort label-7649
SELECT + ( ( - col1 ) ) * ( - col0 ) + col1 / + col2 + col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7650
SELECT - col1 + + ( col2 ) * - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7650
SELECT - col1 + + ( col2 ) * - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7651
SELECT - 28 + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-30
-33
-35

skipif mysql # not compatible
query I rowsort label-7651
SELECT - 28 + - col2 / col1 AS col2 FROM tab1 AS cor0
----
-30
-33
-35

query I rowsort
SELECT ALL - 31 * col0 AS col1 FROM tab2 AS cor0
----
-217
-2418
-2449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 + col1 * - col1 col1 FROM tab0 AS cor0
----
-10234
-15743
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7654
SELECT + col0 DIV col0 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-7654
SELECT + col0 / col0 col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7655
SELECT cor0.col2 + + col1 DIV - ( 53 ) col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7655
SELECT cor0.col2 + + col1 / - ( 53 ) col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL ( ( + tab2.col1 ) ) FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - 25 FROM tab1, tab1 AS cor0
----
-25

query I rowsort
SELECT ALL - + cor0.col1 * - 46 AS col1 FROM tab0 cor0
----
3956
4186
4462

query I rowsort
SELECT - 91 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # use DIV operator for integer division
query I rowsort label-7660
SELECT DISTINCT cor0.col0 DIV - col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT cor0.col0 / - col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7661
SELECT + 21 * - col1 DIV col1 + + 50 AS col0 FROM tab0 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-7661
SELECT + 21 * - col1 / col1 + + 50 AS col0 FROM tab0 AS cor0
----
29
29
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7662
SELECT CAST( NULL AS DECIMAL ) * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7662
SELECT CAST ( NULL AS REAL ) * col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 * 77 * col1 FROM tab1 cor0
----
49280
6006
80080

query I rowsort
SELECT + col0 * col2 * col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7665
SELECT ALL - CAST( NULL AS SIGNED ) * + 25 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL - CAST ( NULL AS INTEGER ) * + 25 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 63 FROM tab0 cor0
----
63

query I rowsort
SELECT DISTINCT col2 + ( - col0 ) * col2 FROM tab2
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL + 94 + - 36 * + col0 FROM tab2 AS cor0
----
-158
-2714
-2750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * cor0.col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + cor0.col0 + - col1 * - col0 * 75 AS col1 FROM tab1 AS cor0
----
48064
5853
78080

onlyif mysql # use DIV operator for integer division
query I rowsort label-7672
SELECT ALL 13 + col2 DIV col1 FROM tab2 cor0
----
13
13
15

skipif mysql # not compatible
query I rowsort label-7672
SELECT ALL 13 + col2 / col1 FROM tab2 cor0
----
13
13
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7673
SELECT DISTINCT - 71 / col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT - 71 / col0 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 84 * + col2 FROM tab0 AS cor0
----
2772
6888
84

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 + - col1 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1513
-2134
-727

onlyif mysql # use DIV operator for integer division
query I rowsort label-7676
SELECT DISTINCT - 74 DIV 38 AS col1 FROM tab1, tab0, tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT - 74 / 38 AS col1 FROM tab1, tab0, tab2 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7677
SELECT ALL + CAST( ( col2 ) AS SIGNED ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + CAST ( ( col2 ) AS INTEGER ) FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - 1 + col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT ALL col2 * col0 + + col0 * - 63 FROM tab2 cor0
----
-1975
-252
-2886

query I rowsort
SELECT - 94 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT ALL - 57 + col1 AS col0 FROM tab1 AS cor0
----
-31
-44
-47

query I rowsort
SELECT DISTINCT - + col0 + + col1 AS col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL + col1 * - 34 AS col0 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT ALL col1 * ( col2 + col2 ) FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT - col0 * ( + col0 ) FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7686
SELECT - col0 * - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-7686
SELECT - col0 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - - col0 + + ( + col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col1 * - col1 * col1 + col1 AS col1 FROM tab2
----
205438
29822
4930

query I rowsort
SELECT + cor0.col0 * 65 AS col0 FROM tab1 AS cor0
----
195
4160
5200

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0 WHERE NOT NULL NOT IN ( - tab1.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab0.col0 + - ( + col2 ) FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - + col2 + 74 AS col0 FROM tab1 AS cor0
----
-22
17
20

query I rowsort
SELECT - col1 - - 78 AS col0 FROM tab0 AS cor0
----
-13
-19
-8

query I rowsort
SELECT + col0 - 40 FROM tab1 AS cor0
----
-37
24
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-7696
SELECT ALL + col0 DIV CAST( + 60 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL + col0 / CAST ( + 60 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT - 91 + col2 * + col1 AS col0 FROM tab1
----
1157
1313
479

query I rowsort
SELECT - col1 * col0 + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT - 14 + col2 FROM tab1
----
40
43
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7700
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + ( col0 ) + + ( + col2 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - cor0.col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 + ( ( col0 ) ) * - col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 23 * - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 89fc03b78564c5284a06c13e7d25f5a1

query I rowsort
SELECT DISTINCT - + col1 + col0 * + 50 * + 21 FROM tab2 AS cor0
----
7319
81841
82933

query I rowsort
SELECT 24 + col2 FROM tab1
----
120
78
81

query I rowsort
SELECT - ( 4 ) AS col0 FROM tab2
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT - 86 DIV ( + col0 ) FROM tab1 AS cor0
----
-1
-1
-28

skipif mysql # not compatible
query I rowsort label-7708
SELECT - 86 / ( + col0 ) FROM tab1 AS cor0
----
-1
-1
-28

query I rowsort
SELECT + col2 * 54 + col2 FROM tab0 cor0
----
1815
4510
55

query I rowsort
SELECT - col1 + + ( col2 ) AS col0 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + - col1 * col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT 20 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
20

query I rowsort
SELECT - col0 + 76 FROM tab0 AS cor0
----
-13
41
52

query I rowsort
SELECT ALL ( - 78 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7715
SELECT - col1 + + CAST( NULL AS SIGNED ) + - col0 * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7715
SELECT - col1 + + CAST ( NULL AS INTEGER ) + - col0 * col1 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col2 * 85 + col2 FROM tab0 AS cor0
----
2814
51
6963

onlyif mysql # use DIV operator for integer division
query I rowsort label-7717
SELECT + - col1 DIV + col0 col1 FROM tab1 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7717
SELECT + - col1 / + col0 col1 FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7718
SELECT - col0 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7718
SELECT - col0 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - 67 * 86 FROM tab2 AS cor0
----
-5762
-5762
-5762

onlyif mysql # use DIV operator for integer division
query I rowsort label-7720
SELECT DISTINCT + col0 * - col0 DIV - tab1.col0 col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT + col0 * - col0 / - tab1.col0 col2 FROM tab1
----
3
64
80

query I rowsort
SELECT 85 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT ALL col0 * 84 AS col1 FROM tab1
----
252
5376
6720

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + 45 * 35 FROM tab1 cor0
----
1575
1575
1575

query I rowsort
SELECT ALL + cor0.col1 - col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + + col2 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + + col1 * col1 + cor0.col1 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT ALL - + col0 * - col1 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT ALL - 97 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7730
SELECT ALL col0 * + CAST( NULL AS DECIMAL ) / col2 + - tab1.col0 * + col1 / col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL col0 * + CAST ( NULL AS REAL ) / col2 + - tab1.col0 * + col1 / col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT - 55 + + col0 FROM tab0
----
-20
-31
34

query I rowsort
SELECT + 73 + + 7 FROM tab1
----
80
80
80

query I rowsort
SELECT ( - 84 ) AS col0 FROM tab1 AS cor0
----
-84
-84
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7735
SELECT col0 + 62 DIV - tab0.col0 AS col0 FROM tab0
----
22
34
89

skipif mysql # not compatible
query I rowsort label-7735
SELECT col0 + 62 / - tab0.col0 AS col0 FROM tab0
----
22
34
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT DISTINCT - 73 DIV col0 AS col2 FROM tab2
----
-10
0

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT - 73 / col0 AS col2 FROM tab2
----
-10
0

query I rowsort
SELECT - 91 * col2 * + col1 AS col1 FROM tab0
----
-258258
-679042
-8827

onlyif mysql # use DIV operator for integer division
query I rowsort label-7738
SELECT DISTINCT 39 DIV col0 FROM tab2
----
0
5

skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT 39 / col0 FROM tab2
----
0
5

query I rowsort
SELECT DISTINCT 98 * col2 FROM tab1
----
5292
5586
9408

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab1, tab2, tab0 AS cor0
----
-46

query I rowsort
SELECT col0 + + col2 + 96 AS col0 FROM tab0
----
132
153
267

query I rowsort
SELECT ( col0 ) - col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7743
SELECT + ( + col0 ) DIV + ( col2 ) AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7743
SELECT + ( + col0 ) / + ( col2 ) AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - 12 * + col0 - + 7 AS col2 FROM tab0
----
-1075
-295
-427

onlyif mysql # use DIV operator for integer division
query I rowsort label-7745
SELECT - col1 * col1 + - 56 DIV col1 FROM tab2 AS cor0
----
-292
-3481
-962

skipif mysql # not compatible
query I rowsort label-7745
SELECT - col1 * col1 + - 56 / col1 FROM tab2 AS cor0
----
-292
-3481
-962

query I rowsort
SELECT + col2 * - cor0.col0 + + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + col2 + ( ( col2 ) ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + + cor0.col1 + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - col2 * 84 + + 7 AS col2 FROM tab0 AS cor0
----
-2765
-6881
-77

query I rowsort
SELECT DISTINCT + col1 * ( + col2 ) + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7751
SELECT ALL cor0.col2 + - 20 - + col0 DIV + col1 FROM tab0 AS cor0
----
-19
13
62

skipif mysql # not compatible
query I rowsort label-7751
SELECT ALL cor0.col2 + - 20 - + col0 / + col1 FROM tab0 AS cor0
----
-19
13
62

query I rowsort
SELECT DISTINCT + - col2 + - 70 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
-46
513
874

onlyif mysql # use DIV operator for integer division
query I rowsort label-7753
SELECT + + col2 + - col2 DIV 69 AS col1 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-7753
SELECT + + col2 + - col2 / 69 AS col1 FROM tab0 AS cor0
----
1
33
81

query I rowsort
SELECT - col1 + ( + col1 ) * col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + col1 * col0 * col2 + - col0 * - col0 AS col1 FROM tab1 AS cor0
----
106240
40576
4221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7756
SELECT + 48 * + col2 * + CAST( NULL AS SIGNED ) - + tab2.col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT + 48 * + col2 * + CAST ( NULL AS INTEGER ) - + tab2.col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 - - col1 AS col0 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-7758
SELECT DISTINCT + 34 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT + 34 / col2 FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7759
SELECT - cor0.col0 - - CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-7759
SELECT - cor0.col0 - - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT - col2 * 80 * - col1 FROM tab2 AS cor0
----
122720
51680
66960

query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + - 2 + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 287fd68784f3dc64041ba9465bf725dc

query I rowsort
SELECT + + col1 * + 24 + col2 AS col0 FROM tab0 AS cor0
----
2097
2266
2329

query I rowsort
SELECT cor0.col2 - + col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col0 * 5 * col0 AS col1 FROM tab0 cor0
----
-2880
-39605
-6125

query I rowsort
SELECT ALL - + col0 + col1 FROM tab0 cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7767
SELECT + - col0 + - CAST( col2 * + cor0.col0 AS SIGNED ) + 58 AS col1 FROM tab1 cor0
----
-107
-3654
-7702

skipif mysql # not compatible
query I rowsort label-7767
SELECT + - col0 + - CAST ( col2 * + cor0.col0 AS INTEGER ) + 58 AS col1 FROM tab1 cor0
----
-107
-3654
-7702

query I rowsort
SELECT ALL + col1 * ( + col0 ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col2 * col2 + + 17 AS col1 FROM tab0
----
1106
18
6741

onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT + + cor0.col2 + cor0.col0 DIV 15 AS col0 FROM tab0 AS cor0
----
3
34
87

skipif mysql # not compatible
query I rowsort label-7770
SELECT + + cor0.col2 + cor0.col0 / 15 AS col0 FROM tab0 AS cor0
----
3
34
87

query I rowsort
SELECT - cor0.col2 + 78 AS col2 FROM tab2 cor0
----
40
51
52

query I rowsort
SELECT DISTINCT col2 + 76 * - ( - col2 ) AS col0 FROM tab0 cor0
----
2541
6314
77

query I rowsort
SELECT DISTINCT + col0 + ( + col0 * - col0 ) + col0 * + col1 FROM tab0 AS cor0
----
1512
2205
267

query I rowsort
SELECT ALL - col1 + + 38 FROM tab2 AS cor0
----
-21
21
7

query I rowsort
SELECT DISTINCT - col1 + ( + col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL - - col1 + 78 + col2 * col2 AS col0 FROM tab1 cor0
----
3020
3337
9307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col0 + cor0.col0 * + col1 col2 FROM tab2 AS cor0
----
-1659
2574
28

query I rowsort
SELECT + col0 * cor0.col1 - 48 AS col1 FROM tab1 AS cor0
----
30
592
992

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col1 )
----

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL > + col0 - - col0 * + col2 * + col0
----

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - col0 + + tab2.col2 * + col2 FROM tab2
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT DISTINCT + col2 + col1 DIV col0 AS col2 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT + col2 + col1 / col0 AS col2 FROM tab2
----
26
31
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 * + col0 col0 FROM tab2 AS cor0
----
238
2652
2686

onlyif mysql # use DIV operator for integer division
query I rowsort label-7785
SELECT - 51 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7785
SELECT - 51 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 * cor0.col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col2 + - col1 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT col2 + col0 * - col1 * cor0.col0 FROM tab2 AS cor0
----
-106059
-1492
-358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-7789
SELECT - col0 + + col2 + col0 DIV col0 FROM tab0
----
-33
-6
10

skipif mysql # not compatible
query I rowsort label-7789
SELECT - col0 + + col2 + col0 / col0 FROM tab0
----
-33
-6
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7790
SELECT ALL + col1 DIV col0 + + col0 col1 FROM tab0 cor0
----
27
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL + col1 / col0 + + col0 col1 FROM tab0 cor0
----
27
37
90

query I rowsort
SELECT DISTINCT - 89 * col2 * + col1 - col1 AS col0 FROM tab1 AS cor0
----
-111085
-124982
-50740

query I rowsort
SELECT - cor0.col2 + col1 * ( col0 ) AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + col1 * + col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col1 * col0 + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT DISTINCT + + cor0.col0 - cor0.col1 * - 40 FROM tab1 AS cor0
----
1043
464
600

query I rowsort
SELECT ALL + cor0.col2 * col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + + col1 * - col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 cor0, tab1 cor1
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

onlyif mysql # use DIV operator for integer division
query I rowsort label-7799
SELECT - + col1 + col1 DIV CAST( 14 AS SIGNED ) col1 FROM tab1 AS cor0
----
-10
-13
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7799
SELECT - + col1 + col1 / CAST ( 14 AS INTEGER ) col1 FROM tab1 AS cor0
----
-10
-13
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab2.col1 col2 FROM tab2
----
118
34
62

query I rowsort
SELECT col2 * col0 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + ( ( + col1 ) ) + col0 * - 89 AS col1 FROM tab1 AS cor0
----
-241
-5686
-7107

query I rowsort
SELECT DISTINCT + + ( col2 ) - - col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL ( + col1 ) + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL - col1 + ( col0 ) AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT col1 * col0 + col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + 29 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT + col2 * + 15 FROM tab1
----
1440
810
855

query I rowsort
SELECT col0 + + 94 * + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
60224
7335
97840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7812
SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7812
SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - 80 + col2 * cor0.col0 FROM tab1 AS cor0
----
3568
7600
82

query I rowsort
SELECT DISTINCT + ( col1 + col0 ) AS col2 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - col2 col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + 78 + col1 * col2 FROM tab1 AS cor0
----
1326
1482
648

query I rowsort
SELECT DISTINCT - - col1 * - 7 FROM tab0 cor0
----
-602
-637
-679

query I rowsort
SELECT ALL + - 77 * 15 * - col0 FROM tab1 AS cor0
----
3465
73920
92400

query I rowsort
SELECT + + 62 + + col1 AS col1 FROM tab2 AS cor0
----
121
79
93

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 48 AS REAL ) FROM tab1
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-7821
SELECT - 25 DIV 63 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT - 25 / 63 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * col0 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7823
SELECT 48 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7823
SELECT 48 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 6 * + col0 + + tab2.col1 AS col2 FROM tab2
----
491
527
73

query I rowsort
SELECT ALL - ( 46 ) FROM tab2
----
-46
-46
-46

query I rowsort
SELECT col2 * - 18 AS col1 FROM tab1
----
-1026
-1728
-972

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 + col1 + + col0 FROM tab1 AS cor0
----
2945
3323
9309

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > - col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( NULL ) <= col2
----

query I rowsort
SELECT col0 + + col1 * col2 + col2 FROM tab1 AS cor0
----
1424
1461
691

onlyif mysql # use DIV operator for integer division
query I rowsort label-7834
SELECT DISTINCT col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT col1 / + col0 AS col2 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7835
SELECT ALL - col2 DIV + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - col2 / + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col0 * - col1 * col0 + col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT + col0 - + col0 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN col0 AND col0
----

query I rowsort
SELECT ALL + tab2.col1 * col0 + col1 * + col1 FROM tab2
----
1178
1632
8083

query I rowsort
SELECT col2 * + tab0.col1 - col0 AS col1 FROM tab0
----
2814
62
7373

query I rowsort
SELECT ALL - col0 * col0 * col0 AS col0 FROM tab0
----
-13824
-42875
-704969

query I rowsort
SELECT DISTINCT tab2.col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + + col2 >= - col2 + - col1 + col2 / col1
----

query I rowsort
SELECT col2 * + tab1.col2 + + tab1.col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT col0 * tab1.col0 * col2 AS col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - col0 * - col1 + - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT col1 + col0 * - col2 + - col2 FROM tab0
----
-7289
-739
61

query I rowsort
SELECT DISTINCT + col2 * + col1 * col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7852
SELECT ALL - - col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - - col0 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 + col0 AS col1 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL col2 * col0 - col0 AS col1 FROM tab1
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 + + col2 col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT - col1 - - tab0.col0 FROM tab0
----
-2
-62

query I rowsort
SELECT col1 * col0 + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + col2 FROM tab2 cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7859
SELECT DISTINCT + 16 * col1 DIV col2 - col1 * - col0 FROM tab0 AS cor0
----
2105
4947
8116

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT + 16 * col1 / col2 - col1 * - col0 FROM tab0 AS cor0
----
2105
4947
8116

query I rowsort
SELECT ALL col1 * + 84 AS col1 FROM tab2 AS cor0
----
1428
2604
4956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) * - col0 * 87 col1 FROM tab0 AS cor0
----
-179568
-295365
-704613

query I rowsort
SELECT + 13 + col1 AS col1 FROM tab2
----
30
44
72

query I rowsort
SELECT 34 * col2 + tab2.col0 * + col2 FROM tab2
----
1107
2912
4294

query I rowsort
SELECT - + ( col0 ) * cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7865
SELECT ALL + 14 DIV - ( col0 ) FROM tab1
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + 14 / - ( col0 ) FROM tab1
----
-4
0
0

query I rowsort
SELECT col0 * tab0.col2 + col1 FROM tab0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7867
SELECT ALL col1 * + ( col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL col1 * + ( col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 + + col0 col0 FROM tab2
----
131
132
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( col0 ) col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col1 + 50 FROM tab2 cor0
----
-9
19
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-7871
SELECT ALL + col1 + - col2 * col1 - - col2 DIV - col2 FROM tab1 AS cor0
----
-1236
-1379
-561

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL + col1 + - col2 * col1 - - col2 / - col2 FROM tab1 AS cor0
----
-1236
-1379
-561

onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT ALL - - col2 DIV + 97 + col0 * col0 FROM tab2 cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL - - col2 / + 97 + col0 * col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - - col0 * col1 * - col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - ( - col1 ) + + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + ( col1 ) + ( + col1 ) FROM tab0
----
172
182
194

query I rowsort
SELECT 5 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT + + col2 + + col0 * 62 AS col1 FROM tab2 AS cor0
----
461
4862
4936

query I rowsort
SELECT DISTINCT + col0 + + ( + col0 ) AS col2 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT DISTINCT - col0 DIV col1 + ( - col0 ) FROM tab2 cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT - col0 / col1 + ( - col0 ) FROM tab2 cor0
----
-7
-79
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7880
SELECT ALL + col0 DIV - 85 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL + col0 / - 85 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7881
SELECT ALL col2 + ( 45 ) DIV + col0 FROM tab2 cor0
----
26
33
38

skipif mysql # not compatible
query I rowsort label-7881
SELECT ALL col2 + ( 45 ) / + col0 FROM tab2 cor0
----
26
33
38

query I rowsort
SELECT + col0 + 62 AS col1 FROM tab1 AS cor0
----
126
142
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT DISTINCT + cor0.col0 DIV - col1 + 6 AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT + cor0.col0 / - col1 + 6 AS col0 FROM tab0 cor0
----
6

query I rowsort
SELECT + col0 + 75 FROM tab1
----
139
155
78

query I rowsort
SELECT col1 * + 12 AS col1 FROM tab0
----
1032
1092
1164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 16 col0 FROM tab0
----
1312
16
528

query I rowsort
SELECT ALL - 46 AS col1 FROM tab0, tab1, tab2 AS cor0, tab0 cor1
----
81 values hashing to ae4d442ff589a18fe7c7777464d5970c

query I rowsort
SELECT ALL - col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7889
SELECT - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7889
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 AS col1 FROM tab2
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7891
SELECT col1 * - CAST( - col0 AS SIGNED ) FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7891
SELECT col1 * - CAST ( - col0 AS INTEGER ) FROM tab1
----
1040
640
78

query I rowsort
SELECT 55 * cor0.col0 AS col2 FROM tab2 AS cor0
----
385
4290
4345

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7893
SELECT DISTINCT CAST( - 88 AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
4752
5016
8448

skipif mysql # not compatible
query I rowsort label-7893
SELECT DISTINCT CAST ( - 88 AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
4752
5016
8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 * col2 + col2 * + 58 col2 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT col1 + 27 AS col0 FROM tab1 AS cor0
----
37
40
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col1 ) + col2 col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 * col0 + col2 col1 FROM tab2 AS cor0
----
1508
1539
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 col0 FROM tab2 cor0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + col2 * col2 col0 FROM tab2 AS cor0
----
17576
19683
54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT - 57 * - col1 DIV col1 + 22 * + col1 - + col2 AS col2 FROM tab1 AS cor0
----
220
247
575

skipif mysql # not compatible
query I rowsort label-7900
SELECT - 57 * - col1 / col1 + 22 * + col1 - + col2 AS col2 FROM tab1 AS cor0
----
220
247
575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + col2 * - ( col0 ) col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + + 23 AS col2 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - col2 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7905
SELECT DISTINCT + 6 * col1 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT + 6 * col1 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7906
SELECT + - col1 + - cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-7906
SELECT + - col1 + - cor0.col1 / - col0 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT + - col2 - - col1 AS col1 FROM tab0 cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col1 col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT DISTINCT + + col2 * col1 + - col2 * 33 * - col0 + 0 * cor0.col2 DIV - col1 FROM tab0 AS cor0
----
1252
248296
28974

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT + + col2 * col1 + - col2 * 33 * - col0 + 0 * cor0.col2 / - col1 FROM tab0 AS cor0
----
1252
248296
28974

query I rowsort
SELECT 98 + + col1 * + 25 FROM tab1 AS cor0
----
348
423
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - col1 * col0 col0 FROM tab0 cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT - + ( - col1 ) * + cor0.col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - + col1 + - col1 * 85 AS col2 FROM tab0 AS cor0
----
-7396
-7826
-8342

query I rowsort
SELECT ALL - - 68 * col2 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT ALL + 54 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4042
-6346
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7916
SELECT + + col0 * + col1 + ( col1 ) DIV + col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7916
SELECT + + col0 * + col1 + ( col1 ) / + col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + 56 + - col0 AS col2 FROM tab2 AS cor0
----
-22
-23
49

query I rowsort
SELECT ALL + cor0.col2 - - col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 * - col0 + + col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-15308
-2832
-3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col1 ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + 9 * + col0 + ( cor0.col1 * + col2 + 5 * - col2 ) FROM tab2 AS cor0
----
1167
2106
765

query I rowsort
SELECT + 76 + + col1 AS col2 FROM tab0 cor0
----
162
167
173

query I rowsort
SELECT + 19 + - cor0.col1 + - 27 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to fadd3795d2dde4906ddb5b4ae4d1807b

query I rowsort
SELECT ( + col2 ) * tab1.col2 AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - ( + col0 * + col1 ) AS col1 FROM tab1
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7926
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + 52 + col0 * cor0.col2 + cor0.col2 AS col2 FROM tab0 cor0
----
7432
877
88

query I rowsort
SELECT DISTINCT - tab1.col2 + col0 * - col0 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT col2 + ( - 46 ) FROM tab0
----
-13
-45
36

query I rowsort
SELECT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7931
SELECT col2 DIV 25 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7931
SELECT col2 / 25 AS col2 FROM tab0
----
0
1
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT - tab1.col1 DIV + 28 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT - tab1.col1 / + 28 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 + - ( col1 ) + + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * - tab2.col0 AS col0 FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7935
SELECT col0 DIV 90 - + col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7935
SELECT col0 / 90 - + col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT 33 * + col1 AS col0 FROM tab2
----
1023
1947
561

query I rowsort
SELECT - + cor0.col0 + col0 * col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - 46 * col1 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT ALL + 0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7940
SELECT ALL + ( + tab0.col2 * col2 ) - - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL + ( + tab0.col2 * col2 ) - - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7941
SELECT col0 DIV tab2.col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7941
SELECT col0 / tab2.col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + - 64 * col1 AS col2 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT + col2 * - 80 FROM tab2 AS cor0
----
-2080
-2160
-3040

query I rowsort
SELECT ALL cor0.col1 * + 41 AS col1 FROM tab2 cor0
----
1271
2419
697

query I rowsort
SELECT - cor0.col0 * + col1 * + col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + - col0 + + col0 * - col1 * - ( col2 ) FROM tab1 AS cor0
----
36416
4209
99760

query I rowsort
SELECT 26 + cor0.col2 * ( 6 ) AS col2 FROM tab1 AS cor0
----
350
368
602

query I rowsort
SELECT ALL - - col0 * col1 + col2 * col2 FROM tab0 AS cor0
----
14823
3153
3396

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7949
SELECT DISTINCT - 91 + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT - 91 + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT 14 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7951
SELECT DISTINCT + col0 + + col1 DIV + cor0.col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7951
SELECT DISTINCT + col0 + + col1 / + cor0.col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7952
SELECT 21 * col0 DIV 48 + - col2 + + col1 FROM tab0 cor0
----
111
47
63

skipif mysql # not compatible
query I rowsort label-7952
SELECT 21 * col0 / 48 + - col2 + + col1 FROM tab0 cor0
----
111
47
63

query I rowsort
SELECT ALL + col1 * - col2 + + ( col0 + col2 ) FROM tab1 AS cor0
----
-1072
-1347
-449

query I rowsort
SELECT DISTINCT col2 * + 18 FROM tab0
----
1476
18
594

query I rowsort
SELECT ALL + 77 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

onlyif mysql # use DIV operator for integer division
query I rowsort label-7956
SELECT col2 * ( + 3 ) DIV col0 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-7956
SELECT col2 * ( + 3 ) / col0 FROM tab0 AS cor0
----
0
2
4

query I rowsort
SELECT ALL col1 * + cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL + 97 * 5 FROM tab1 AS cor0
----
485
485
485

query I rowsort
SELECT DISTINCT + - 4 AS col1 FROM tab2 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - col2 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + cor0.col2 * 40 AS col2 FROM tab0 AS cor0
----
1320
3280
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-7962
SELECT ALL col1 DIV + ( col1 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL col1 / + ( col1 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + ( 38 ) * col0 AS col2 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT - + 44 + + ( col2 ) * - col0 FROM tab1 AS cor0
----
-206
-3692
-7724

query I rowsort
SELECT 8 + + col1 AS col0 FROM tab0 AS cor0
----
105
94
99

query I rowsort
SELECT ALL - - 72 + col2 AS col1 FROM tab0 AS cor0
----
105
154
73

query I rowsort
SELECT col0 * col1 * col1 AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - 13 * col1 FROM tab0
----
-1118
-1183
-1261

onlyif mysql # use DIV operator for integer division
query I rowsort label-7969
SELECT - 65 DIV 79 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-7969
SELECT - 65 / 79 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL col1 + + col0 * ( - col0 * col1 ) AS col0 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT DISTINCT + - 90 AS col0 FROM tab2 AS cor0
----
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7972
SELECT ALL - 4 + + col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2834
7458
93

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL - 4 + + col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2834
7458
93

query I rowsort
SELECT + + col0 + + cor0.col2 * col1 + + cor0.col1 FROM tab2 AS cor0
----
1671
742
875

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7974
SELECT col1 * CAST( 8 AS SIGNED ) col2 FROM tab2 AS cor0
----
136
248
472

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7974
SELECT col1 * CAST ( 8 AS INTEGER ) col2 FROM tab2 AS cor0
----
136
248
472

query I rowsort
SELECT - + col0 * - cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * 56 col2 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT + - col2 + ( col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - + col1 + - ( + 61 ) FROM tab1 AS cor0
----
-71
-74
-87

query I rowsort
SELECT DISTINCT col2 * 15 FROM tab0 cor0
----
1230
15
495

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7980
SELECT + col2 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-7980
SELECT + col2 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT DISTINCT 85 * col0 DIV + col1 AS col0 FROM tab0
----
23
30
83

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT 85 * col0 / + col1 AS col0 FROM tab0
----
23
30
83

query I rowsort
SELECT col1 * col0 + + col1 * + ( + cor0.col2 ) FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT cor0.col1 * col0 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT col0 - col1 * + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - + 63 * ( - col1 ) + ( - 58 ) AS col2 FROM tab1 AS cor0
----
1580
572
761

query I rowsort
SELECT + + 8 - 1 AS col1 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT - - col1 + - 45 * cor0.col2 FROM tab2 AS cor0
----
-1111
-1184
-1693

query I rowsort
SELECT DISTINCT - 57 + col0 FROM tab2 AS cor0
----
-50
21
22

query I rowsort
SELECT - cor0.col2 * - 10 + - col0 AS col1 FROM tab0 AS cor0
----
-25
306
731

query I rowsort
SELECT tab2.col0 + ( ( - col0 ) * - tab2.col1 ) + - col2 AS col2 FROM tab2
----
1384
197
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-7991
SELECT + col1 DIV + 84 + - col1 AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7991
SELECT + col1 / + 84 + - col1 AS col1 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7992
SELECT ALL - + 67 DIV + 61 + col0 col0 FROM tab1 AS cor0
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL - + 67 / + 61 + col0 col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT ALL + 98 * col2 - col0 * 66 * 72 FROM tab0 AS cor0
----
-110814
-166222
-414892

onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT ALL col0 DIV + 72 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL col0 / + 72 AS col1 FROM tab2
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT + col1 DIV 63 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7995
SELECT + col1 / 63 AS col0 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7996
SELECT ALL tab1.col0 - + CAST( - col0 AS SIGNED ) FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL tab1.col0 - + CAST ( - col0 AS INTEGER ) FROM tab1
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7997
SELECT CAST( + col0 AS SIGNED ) * + col2 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7997
SELECT CAST ( + col0 AS INTEGER ) * + col2 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 62 * col2 FROM tab0 AS cor0
----
-2046
-5084
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7999
SELECT ALL + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - ( + cor0.col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8001
SELECT ALL - ( + cor0.col1 ) + cor0.col0 * - CAST( - ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL - ( + cor0.col1 ) + cor0.col0 * - CAST ( - ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT 0 * - col2 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL tab0.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL 23 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT col1 * col2 + col0 + col1 AS col2 FROM tab2
----
1671
742
875

query I rowsort
SELECT DISTINCT + 70 + + col1 FROM tab2
----
101
129
87

query I rowsort
SELECT 94 * col1 + 71 FROM tab2 AS cor0
----
1669
2985
5617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col2 FROM tab2 AS cor0
----
92
92
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8009
SELECT ( - col0 ) * + CAST( + 0 AS SIGNED ) DIV col1 - ( + col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8009
SELECT ( - col0 ) * + CAST ( + 0 AS INTEGER ) / col1 - ( + col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8010
SELECT ALL - CAST( col2 AS SIGNED ) * col1 + col1 FROM tab0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - CAST ( col2 AS INTEGER ) * col1 + col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8011
SELECT 98 DIV 94 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8011
SELECT 98 / 94 AS col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 95 col2 FROM tab1
----
149
152
191

query I rowsort
SELECT 71 + cor0.col0 FROM tab1 AS cor0
----
135
151
74

query I rowsort
SELECT + 20 * col1 + col2 AS col2 FROM tab2 AS cor0
----
1206
378
647

query I rowsort
SELECT ALL + 74 - cor0.col1 * col0 FROM tab1 AS cor0
----
-4
-566
-966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col2 + + col0 col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + 27 * col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT - cor0.col1 + col1 * + ( ( + col0 ) + - col2 ) AS col2 FROM tab1 AS cor0
----
-1352
-221
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8019
SELECT DISTINCT col2 * CAST( + 55 * - col2 AS SIGNED ) FROM tab1
----
-160380
-178695
-506880

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT col2 * CAST ( + 55 * - col2 AS INTEGER ) FROM tab1
----
-160380
-178695
-506880

query I rowsort
SELECT ALL - col1 * - 70 FROM tab0
----
6020
6370
6790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8021
SELECT - CAST( 56 AS SIGNED ) FROM tab1, tab1 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

skipif mysql # not compatible
query I rowsort label-8021
SELECT - CAST ( 56 AS INTEGER ) FROM tab1, tab1 cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT + col1 * + col1 + - ( col1 * + col1 ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( + col2 ) col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL + + col1 * 16 FROM tab0 cor0
----
1376
1456
1552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 73 * col1 col1 FROM tab1 AS cor0
----
12337
49348
7300

query I rowsort
SELECT ALL + + col2 * 73 AS col2 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT col1 * ( col0 ) FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8028
SELECT ALL + col2 DIV + CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + col2 / + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT cor0.col2 + + 53 * cor0.col0 AS col2 FROM tab2 AS cor0
----
398
4160
4225

query I rowsort
SELECT ALL ( + cor0.col1 ) * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT ( - col1 ) * col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ( 88 ) + + col0 * 83 AS col1 FROM tab0 AS cor0
----
2080
2993
7475

query I rowsort
SELECT DISTINCT col0 * col0 - col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8036
SELECT - - ( col1 ) + - col0 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-4086
-6387
17

skipif mysql # not compatible
query I rowsort label-8036
SELECT - - ( col1 ) + - col0 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-8037
SELECT - 64 DIV - col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8037
SELECT - 64 / - col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - 49 * col1 FROM tab1 AS cor0
----
-1274
-490
-637

query I rowsort
SELECT ALL + 32 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + col2 + + 71 AS col2 FROM tab0 AS cor0
----
104
153
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 23 + col1 * - col0 col1 FROM tab2 AS cor0
----
-3160
-378
-6396

query I rowsort
SELECT ALL + col0 * ( + 71 ) FROM tab2 AS cor0
----
497
5538
5609

onlyif mysql # use DIV operator for integer division
query I rowsort label-8043
SELECT DISTINCT + + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT + + col0 / - col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 69 + col1 * - ( + 12 * col1 ) AS col0 FROM tab1
----
-1131
-1959
-8043

query I rowsort
SELECT col1 * col1 - col2 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8046
SELECT + - cor0.col1 + CAST( - 2 AS SIGNED ) FROM tab2 AS cor0
----
-19
-33
-61

skipif mysql # not compatible
query I rowsort label-8046
SELECT + - cor0.col1 + CAST ( - 2 AS INTEGER ) FROM tab2 AS cor0
----
-19
-33
-61

query I rowsort
SELECT col2 + ( col0 + col2 ) * + col0 FROM tab2 AS cor0
----
265
8138
9281

query I rowsort
SELECT + col1 + - 77 - - 55 AS col2 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT ALL - + 89 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
2222
3212
8012

query I rowsort
SELECT - col2 + 31 FROM tab2 AS cor0
----
-7
4
5

query I rowsort
SELECT col1 * + 88 AS col2 FROM tab0
----
7568
8008
8536

query I rowsort
SELECT + 86 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + col0 + - col0 * + cor0.col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + + 95 + col1 FROM tab0 AS cor0
----
181
186
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-8055
SELECT + col1 DIV 93 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8055
SELECT + col1 / 93 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT ALL + 84 - - cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a97e380ad2ddaddd58c41bd10027b877

query I rowsort
SELECT DISTINCT + 32 * col1 * + col0 AS col1 FROM tab0
----
108640
259168
66048

query I rowsort
SELECT - - col2 + col2 * + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + col1 * + col2 * - col0 - col2 AS col0 FROM tab0
----
-3396
-664200
-68145

query I rowsort
SELECT DISTINCT + col1 - + ( col2 ) FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - col0 - + 77 AS col0 FROM tab1
----
-141
-157
-80

query I rowsort
SELECT + col2 * - col1 + + col2 - - col2 * col2 AS col2 FROM tab1
----
1566
2736
8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - col2 + + 72 FROM tab1 AS cor0
----
-24
15
18

query I rowsort
SELECT DISTINCT col0 * - 41 + col2 - + col0 FROM tab0 cor0
----
-1469
-3656
-975

query I rowsort
SELECT ALL + col2 + + 85 AS col0 FROM tab1 AS cor0
----
139
142
181

query I rowsort
SELECT + 3 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + - col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT tab2.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8071
SELECT ALL ( tab1.col1 ) * col2 + 4 DIV 48 + tab1.col2 FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL ( tab1.col1 ) * col2 + 4 / 48 + tab1.col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL + col2 + + col2 * col0 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT - + cor0.col2 * 94 + col2 FROM tab2 AS cor0
----
-2418
-2511
-3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * col0 col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT 48 + + col0 FROM tab1 cor0
----
112
128
51

query I rowsort
SELECT + - col1 + + col0 * - 30 * + col2 FROM tab1 AS cor0
----
-109450
-230413
-4886

query I rowsort
SELECT - col2 * - 44 AS col1 FROM tab0
----
1452
3608
44

query I rowsort
SELECT ALL ( col1 ) * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 * col0 * + 98 FROM tab1 AS cor0
----
15876
357504
752640

query I rowsort
SELECT DISTINCT - + 28 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT + 13 + col0 * 73 FROM tab0 cor0
----
1765
2568
6510

query I rowsort
SELECT ALL + 31 + + col0 - - col1 FROM tab1 AS cor0
----
105
124
60

query I rowsort
SELECT 87 AS col1 FROM tab0 AS cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 * + col2 col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + col1 * + col1 * + col1 AS col2 FROM tab1
----
1000
17576
2197

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + col0 * col0 * + col1 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col2 col2 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - col1 * col0 * + col2 AS col1 FROM tab2
----
-119652
-51034
-5859

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 <> ( NULL )
----

query I rowsort
SELECT col2 * col1 * col1 + col0 AS col1 FROM tab1
----
16304
36507
5764

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE ( NULL ) > ( - col2 * col2 * + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8093
SELECT col1 DIV col2 + + col2 col2 FROM tab0
----
35
83
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8093
SELECT col1 / col2 + + col2 col2 FROM tab0
----
35
83
98

query I rowsort
SELECT - col1 * col2 + col1 FROM tab0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab1.col0 * col0 + col1 col1 FROM tab1
----
233482
512
614413

query I rowsort
SELECT DISTINCT + col0 * + col0 * + col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT - col0 + col0 AS col1 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT ( col1 ) + cor0.col0 DIV 50 FROM tab2 AS cor0
----
18
31
60

skipif mysql # not compatible
query I rowsort label-8098
SELECT ( col1 ) + cor0.col0 / 50 FROM tab2 AS cor0
----
18
31
60

query I rowsort
SELECT cor0.col2 + - col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT col2 * - cor0.col1 * CAST ( + col2 AS REAL ) + - col0 * col0 FROM tab2 AS cor0
----
-22648
-30789
-45968

query I rowsort
SELECT - col2 * cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + 46 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1389
263
4648

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 WHERE - col2 BETWEEN ( col1 / + col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 WHERE NOT NULL IN ( + col1 * col0 )
----

query I rowsort
SELECT col0 + col2 * col1 + + col2 AS col2 FROM tab0
----
133
2895
7633

onlyif mysql # use DIV operator for integer division
query I rowsort label-8107
SELECT DISTINCT col0 + tab0.col2 DIV col2 col0 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT col0 + tab0.col2 / col2 col0 FROM tab0
----
25
36
90

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT DISTINCT col2 * + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT col2 * + col0 / + col0 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 * - col0 col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * + col2 + + col2 col1 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT ALL col1 + - col0 * + col0 + col1 DIV col1 FROM tab0
----
-1127
-489
-7829

skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL col1 + - col0 * + col0 + col1 / col1 FROM tab0
----
-1127
-489
-7829

query I rowsort
SELECT ALL + col2 + col0 FROM tab1 WHERE NOT col2 NOT BETWEEN - col1 + col0 AND NULL
----

query I rowsort
SELECT - tab2.col1 + tab2.col0 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT + col1 * tab1.col2 + - col2 FROM tab1
----
1152
1350
513

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col1 + col1 * - tab1.col1 * + col2 + col2 )
----

query I rowsort
SELECT - col1 + + tab0.col1 - - col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + ( - 61 ) + - col2 * col1 FROM tab1 AS cor0
----
-1309
-1465
-631

query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab2, tab0 AS cor0
----
-74

query I rowsort
SELECT DISTINCT + cor0.col1 + 58 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
117
75
89

query I rowsort
SELECT - ( - col2 ) * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-8124
SELECT tab1.col0 DIV - ( col1 ) FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-8124
SELECT tab1.col0 / - ( col1 ) FROM tab1
----
-6
-6
0

query I rowsort
SELECT ALL tab2.col0 * - tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to b0121644d0817627bc8036c50f8e780d

onlyif mysql # use DIV operator for integer division
query I rowsort label-8126
SELECT - - col1 DIV - cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-8126
SELECT - - col1 / - cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT col2 * col0 + - cor0.col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL + ( - col1 ) * col2 * col0 + - col2 AS col2 FROM tab1
----
-36537
-4266
-99936

query I rowsort
SELECT ALL + 22 FROM tab1, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL ( - 30 ) AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - tab2.col2 col1 FROM tab2
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8132
SELECT ALL col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8133
SELECT ALL - col2 + cor0.col2 DIV - col1 FROM tab1 AS cor0
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL - col2 + cor0.col2 / - col1 FROM tab1 AS cor0
----
-103
-56
-62

query I rowsort
SELECT 84 * - 50 * tab2.col2 + + tab2.col1 AS col2 FROM tab2
----
-109141
-113369
-159583

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col2 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL 6 * + 49 FROM tab2
----
294
294
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 col1 FROM tab0
----
24
24
24

query I rowsort
SELECT + cor0.col0 * 6 FROM tab1 AS cor0
----
18
384
480

onlyif mysql # use DIV operator for integer division
query I rowsort label-8139
SELECT + - col1 DIV ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8139
SELECT + - col1 / ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - 1 * - col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - 76 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT - 75 + col1 * col2 FROM tab2 AS cor0
----
1459
571
762

query I rowsort
SELECT + col2 * col2 - col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT - 95 + col1 AS col1 FROM tab0 cor0
----
-4
-9
2

query I rowsort
SELECT DISTINCT - 19 + + col2 FROM tab2 AS cor0
----
19
7
8

query I rowsort
SELECT - + cor0.col0 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - 14 - col0 FROM tab2 AS cor0
----
-21
-92
-93

query I rowsort
SELECT ALL - ( - col0 ) * col1 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8149
SELECT DISTINCT - col0 + - col2 DIV col1 FROM tab1 AS cor0
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT - col0 + - col2 / col1 FROM tab1 AS cor0
----
-5
-69
-87

query I rowsort
SELECT col0 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * - col0 col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * - col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - col1 + - col2 * + col1 * col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT - 19 * col2 * - col2 FROM tab1 AS cor0
----
175104
55404
61731

query I rowsort
SELECT DISTINCT + 28 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT - + col2 * + 94 FROM tab0 cor0
----
-3102
-7708
-94

query I rowsort
SELECT + col0 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col2 * + ( - col0 ) * - col2 + col2 * col2 AS col0 FROM tab2 cor0
----
115520
53404
5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + ( - ( col1 ) ) col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col2 * + 63 AS col1 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT - + col2 * - ( col1 * + cor0.col2 ) FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT 11 AS col0 FROM tab1, tab1 AS cor0
----
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT ALL + cor0.col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL + cor0.col0 / - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 28 ) col0 FROM tab1 AS cor0
----
28
28
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 7 col0 FROM tab1 cor0
----
7

query I rowsort
SELECT + - 77 * ( col0 + - cor0.col1 ) * col1 AS col2 FROM tab1 AS cor0
----
-41580
-67067
46046

query I rowsort
SELECT - col0 * cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT - 64 FROM tab2, tab1 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT + 5 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT col1 + + col1 * col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL + col1 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8172
SELECT ALL - col0 DIV col0 + - col2 DIV cor0.col2 + + col2 FROM tab0 AS cor0
----
-1
31
80

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL - col0 / col0 + - col2 / cor0.col2 + + col2 FROM tab0 AS cor0
----
-1
31
80

query I rowsort
SELECT - - col1 * col1 + - col0 + cor0.col1 AS col1 FROM tab0 cor0
----
7458
8283
9471

query I rowsort
SELECT ALL - + col2 + col1 AS col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT + col1 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
106
122
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col0 * col0 col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - + col1 + col2 + - col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
1
2785
7453

query I rowsort
SELECT DISTINCT - col2 + - col2 + + col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + col1 + + col1 * - tab1.col1 AS col2 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT col0 + col1 + - col2 * tab2.col0 AS col1 FROM tab2
----
-151
-1891
-2906

query I rowsort
SELECT + col2 * + cor0.col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col1 + - col0 * col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 + - col0 AS col1 FROM tab0 AS cor0
----
-134
-167
-269

query I rowsort
SELECT ALL - + cor0.col2 * - col0 + col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
16909
3104
6907

query I rowsort
SELECT + col2 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * col2 * tab0.col2 col2 FROM tab0
----
-611795
-62
-93630

query I rowsort
SELECT tab1.col2 + tab1.col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT + cor0.col0 - col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8189
SELECT col2 + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-8189
SELECT col2 + col0 / - col0 AS col1 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL + - col1 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - 32 * col0 - - col2 * tab2.col1 AS col0 FROM tab2
----
-1882
-962
613

query I rowsort
SELECT ALL - tab0.col1 + col2 * + tab0.col2 * col0 FROM tab0
----
-62
26050
598345

onlyif mysql # use DIV operator for integer division
query I rowsort label-8193
SELECT ALL - col0 + + col0 DIV + col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL - col0 + + col0 / + col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT - tab1.col1 * + col2 - col2 AS col0 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT ALL tab2.col0 + col2 * + col2 * - col2 + + col1 * col0 FROM tab2
----
-12896
-19459
-53450

query I rowsort
SELECT + col2 + - col0 + - col2 FROM tab1
----
-3
-64
-80

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 WHERE NULL NOT IN ( - cor0.col1 )
----

query I rowsort
SELECT col2 + - col0 * - col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL + - col0 * + col0 * col2 FROM tab2 cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-8200
SELECT + - col1 DIV 22 + + 38 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-8200
SELECT + - col1 / 22 + + 38 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8201
SELECT ALL - tab2.col2 + + 31 DIV 67 AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL - tab2.col2 + + 31 / 67 AS col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8202
SELECT DISTINCT - - col2 * col0 DIV 30 AS col0 FROM tab1 AS cor0
----
121
256
5

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT - - col2 * col0 / 30 AS col0 FROM tab1 AS cor0
----
121
256
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8203
SELECT - col1 DIV ( cor0.col0 + col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8203
SELECT - col1 / ( cor0.col0 + col0 ) AS col2 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT - + cor0.col0 + col2 * col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - - col2 + - 63 AS col1 FROM tab2 AS cor0
----
-25
-36
-37

query I rowsort
SELECT ALL + col0 + + col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-8207
SELECT DISTINCT cor0.col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT cor0.col2 / + col1 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8208
SELECT col2 DIV 25 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8208
SELECT col2 / 25 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8209
SELECT ALL - - cor0.col2 + CAST( col2 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-8209
SELECT ALL - - cor0.col2 + CAST ( col2 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - 83 * + ( col1 ) FROM tab0
----
-7138
-7553
-8051

query I rowsort
SELECT DISTINCT + 49 * col1 AS col1 FROM tab0
----
4214
4459
4753

query I rowsort
SELECT ALL - 95 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT ALL - col2 - + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL + + col0 + + col1 + + col2 AS col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT + + 16 AS col1 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-8216
SELECT DISTINCT ( 10 ) * - cor0.col2 + 72 DIV col0 AS col2 FROM tab1 AS cor0
----
-516
-569
-960

skipif mysql # not compatible
query I rowsort label-8216
SELECT DISTINCT ( 10 ) * - cor0.col2 + 72 / col0 AS col2 FROM tab1 AS cor0
----
-516
-569
-960

query I rowsort
SELECT - 7 * + 10 * col0 + + ( 20 ) FROM tab0
----
-1660
-2430
-6210

query I rowsort
SELECT ALL tab1.col0 * + cor0.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e129c9542667cbb8c5055c93f97048ef

query I rowsort
SELECT ( - col2 ) * - col1 + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT + ( + 20 ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT DISTINCT + ( - 42 ) * - col2 FROM tab2
----
1092
1134
1596

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8222
SELECT DISTINCT col1 * + col1 * - CAST( NULL AS DECIMAL ) + + 25 / col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT col1 * + col1 * - CAST ( NULL AS REAL ) + + 25 / col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col1 * col2 - - col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8225
SELECT DISTINCT + col2 DIV col2 + 89 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT + col2 / col2 + 89 FROM tab1 AS cor0
----
90

query I rowsort
SELECT - 18 AS col0 FROM tab0 cor0
----
-18
-18
-18

query I rowsort
SELECT ALL - 12 AS col0 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT DISTINCT - + 94 * + col1 AS col2 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT ( - cor0.col2 ) * + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + 14 * col0 + - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT ALL 27 * col1 AS col2 FROM tab2 AS cor0
----
1593
459
837

query I rowsort
SELECT - 70 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT + col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + col0 col0 FROM tab0
----
135
70
81

query I rowsort
SELECT DISTINCT - 71 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-71

query I rowsort
SELECT - 54 + col2 FROM tab1
----
0
3
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-8237
SELECT col2 DIV + 39 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8237
SELECT col2 / + 39 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8238
SELECT - CAST( NULL AS SIGNED ) * + 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT - CAST ( NULL AS INTEGER ) * + 72 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 61 AS col0 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT ALL - col2 * ( col1 * + col2 ) FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + + ( 14 ) * - col2 FROM tab0 cor0
----
-1148
-14
-462

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 + + col0 FROM tab2 cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-8243
SELECT DISTINCT - + col2 + 6 * col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
-3
-34
-87

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT - + col2 + 6 * col0 / - col1 AS col1 FROM tab0 AS cor0
----
-3
-34
-87

query I rowsort
SELECT ALL + 98 + 77 * + col2 AS col2 FROM tab0 AS cor0
----
175
2639
6412

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8245
SELECT + + CAST( + col1 AS SIGNED ) + cor0.col2 * col2 FROM tab2 AS cor0
----
1461
735
760

skipif mysql # not compatible
query I rowsort label-8245
SELECT + + CAST ( + col1 AS INTEGER ) + cor0.col2 * col2 FROM tab2 AS cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8246
SELECT DISTINCT 38 DIV - 7 FROM tab1, tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT 38 / - 7 FROM tab1, tab0 AS cor0
----
-5

query I rowsort
SELECT cor0.col1 * + cor0.col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - ( + cor0.col2 ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
38

query I rowsort
SELECT + col0 + + col2 + col0 * col0 AS col2 FROM tab1 AS cor0
----
4217
6576
66

query I rowsort
SELECT DISTINCT + cor0.col2 * - 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-312
-324
-456

onlyif mysql # use DIV operator for integer division
query I rowsort label-8252
SELECT ALL + col0 DIV 52 + col0 FROM tab1 AS cor0
----
3
65
81

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL + col0 / 52 + col0 FROM tab1 AS cor0
----
3
65
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8253
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 54 * - col0 - + col0 AS col0 FROM tab2 AS cor0
----
371
4134
4187

query I rowsort
SELECT ALL + col1 + + 79 AS col1 FROM tab1
----
105
89
92

query I rowsort
SELECT DISTINCT ( + 21 * tab2.col1 ) AS col0 FROM tab2, tab1 AS cor0
----
1239
357
651

query I rowsort
SELECT DISTINCT col1 * 86 + cor0.col2 AS col2 FROM tab1 AS cor0
----
1214
2290
917

query I rowsort
SELECT + + 44 AS col2 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT + col1 * - 24 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT + + 4 * col0 AS col0 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT + - col2 * col1 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT + + 21 + cor0.col0 AS col2 FROM tab2 AS cor0
----
100
28
99

query I rowsort
SELECT + cor0.col2 * - col0 - - 85 * 66 FROM tab0 AS cor0
----
-1688
4818
5575

query I rowsort
SELECT + 94 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT + col1 + ( + 18 ) * col1 AS col0 FROM tab2 cor0
----
1121
323
589

onlyif mysql # use DIV operator for integer division
query I rowsort label-8266
SELECT + col2 DIV + 4 + + 63 FROM tab2 cor0
----
69
69
72

skipif mysql # not compatible
query I rowsort label-8266
SELECT + col2 / + 4 + + 63 FROM tab2 cor0
----
69
69
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 92 * + col1 - + col2 col1 FROM tab2 AS cor0
----
1509
2794
5343

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8268
SELECT DISTINCT col2 + - CAST( - ( + col1 ) AS SIGNED ) * - 13 FROM tab1
----
-284
-73

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT col2 + - CAST ( - ( + col1 ) AS INTEGER ) * - 13 FROM tab1
----
-284
-73

query I rowsort
SELECT DISTINCT col2 * - col1 + + 0 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col0 * 4 * col0 FROM tab0 AS cor0
----
2304
31684
4900

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8272
SELECT DISTINCT - + col0 * - CAST( NULL AS SIGNED ) + - cor0.col2 * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT - + col0 * - CAST ( NULL AS INTEGER ) + - cor0.col2 * + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * 31 + + col1 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT - - col1 * col1 - - col0 * col1 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT - - col2 * col0 + + col0 + col0 FROM tab1 AS cor0
----
168
3776
7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8276
SELECT col1 + + col1 DIV col0 AS col2 FROM tab0 cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-8276
SELECT col1 + + col1 / col0 AS col2 FROM tab0 cor0
----
89
92
99

query I rowsort
SELECT ALL col1 * + ( col1 ) + - cor0.col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT ALL - + ( col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT ( 80 ) AS col2 FROM tab2 cor0
----
80

query I rowsort
SELECT + 75 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT 21 + + col1 FROM tab1 AS cor0
----
31
34
47

query I rowsort
SELECT - - ( ( + col0 ) ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + 61 + - 28 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT tab1.col1 + + col2 * tab1.col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL + col2 + + ( + ( - col2 ) + col0 ) AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT col1 + - 80 * - 87 FROM tab2
----
6977
6991
7019

query I rowsort
SELECT - ( + cor0.col2 ) * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT 73 * + cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 55be30bc2b958e8f9197b680578bbe23

query I rowsort
SELECT ALL + - 49 * col1 AS col0 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT + + 58 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT 84 * + col0 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT DISTINCT 72 * - cor0.col0 FROM tab2 AS cor0
----
-504
-5616
-5688

query I rowsort
SELECT + 47 + + col1 AS col0 FROM tab2
----
106
64
78

query I rowsort
SELECT + 4 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT 9 * + col1 AS col0 FROM tab2
----
153
279
531

onlyif mysql # use DIV operator for integer division
query I rowsort label-8296
SELECT 60 * col1 DIV + 22 AS col1 FROM tab1
----
27
35
70

skipif mysql # not compatible
query I rowsort label-8296
SELECT 60 * col1 / + 22 AS col1 FROM tab1
----
27
35
70

query I rowsort
SELECT 99 * + cor0.col2 + col0 - col2 FROM tab0 AS cor0
----
133
3258
8125

query I rowsort
SELECT DISTINCT col2 - col2 * 46 AS col1 FROM tab2
----
-1170
-1215
-1710

query I rowsort
SELECT ALL + + col0 * ( col0 ) FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT 8 + col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1240
-1396
-562

onlyif mysql # use DIV operator for integer division
query I rowsort label-8302
SELECT ALL - CAST( + ( - col0 ) AS SIGNED ) DIV 53 AS col0 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL - CAST ( + ( - col0 ) AS INTEGER ) / 53 AS col0 FROM tab1 cor0
----
0
1
1

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 # support for MySQL specific system types and syntax
query I rowsort label-8304
SELECT DISTINCT + CAST( ( - col2 ) AS SIGNED ) + + 29 AS col0 FROM tab1 AS cor0
----
-25
-28
-67

skipif mysql # not compatible
query I rowsort label-8304
SELECT DISTINCT + CAST ( ( - col2 ) AS INTEGER ) + + 29 AS col0 FROM tab1 AS cor0
----
-25
-28
-67

query I rowsort
SELECT + + 67 AS col2 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT ALL - + 35 AS col2 FROM tab1 cor0
----
-35
-35
-35

query I rowsort
SELECT col0 + 80 * - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-227016
-596871
-7725

onlyif mysql # use DIV operator for integer division
query I rowsort label-8308
SELECT ALL - + 2 DIV - col2 + - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL - + 2 / - col2 + - cor0.col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8309
SELECT - col0 DIV 22 FROM tab1 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT - col0 / 22 FROM tab1 AS cor0
----
-2
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8310
SELECT + + 23 DIV + 32 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8310
SELECT + + 23 / + 32 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 11 + col2 AS col2 FROM tab2 AS cor0
----
15
16
27

query I rowsort
SELECT col0 + + col0 * col1 * + col1 FROM tab2 AS cor0
----
22910
271596
6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col2 FROM tab1
----
-1040
-640
-78

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query I rowsort
SELECT + + col2 + 58 AS col0 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT - col1 + + ( col1 ) * cor0.col2 + - 65 * ( - cor0.col1 ) AS col1 FROM tab0 cor0
----
13286
6305
8342

query I rowsort
SELECT DISTINCT col2 * - 43 + + 34 + + col2 AS col1 FROM tab2 AS cor0
----
-1058
-1100
-1562

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - ( - col2 * + col1 ) col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL - 62 + tab0.col0 FROM tab0
----
-27
-38
27

query I rowsort
SELECT ALL - col2 * + tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col0 + 45 FROM tab0
----
134
69
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8322
SELECT - col2 DIV col1 + + col1 AS col2 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-8322
SELECT - col2 / col1 + + col1 AS col2 FROM tab1
----
24
5
6

query I rowsort
SELECT ALL - col0 * - 93 AS col2 FROM tab1
----
279
5952
7440

query I rowsort
SELECT DISTINCT + col1 + - 93 + col1 FROM tab1 AS cor0
----
-41
-67
-73

query I rowsort
SELECT ALL - col0 * - 62 FROM tab0 AS cor0
----
1488
2170
5518

query I rowsort
SELECT ALL + - col0 * 91 FROM tab1 AS cor0
----
-273
-5824
-7280

query I rowsort
SELECT ALL - col1 * + 3 AS col2 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT DISTINCT - 14 + - 12 FROM tab2 AS cor0
----
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8329
SELECT col1 DIV + 9 + - cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8329
SELECT col1 / + 9 + - cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT 97 * - 50 FROM tab2, tab0 AS cor0
----
9 values hashing to 55da0eb5bc14128bbdeea89138fe581f

query I rowsort
SELECT ALL ( 82 ) + - col0 * + col1 FROM tab1
----
-558
-958
4

query I rowsort
SELECT ALL + 1 + tab1.col2 AS col0 FROM tab1
----
55
58
97

query I rowsort
SELECT col2 + - 82 FROM tab0 AS cor0
----
-49
-81
0

query I rowsort
SELECT + 17 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1208
-559
-7904

query I rowsort
SELECT ALL - 75 AS col1 FROM tab2
----
-75
-75
-75

query I rowsort
SELECT + 94 * - col2 * 88 FROM tab2
----
-215072
-223344
-314336

query I rowsort
SELECT + 79 * - col0 - cor0.col0 FROM tab2 cor0
----
-560
-6240
-6320

query I rowsort
SELECT col1 + + ( - col0 ) * col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT - col2 * + 0 + + 71 AS col0 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT + col2 * - col0 + + col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT cor0.col0 - ( col1 ) AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - col1 + col2 * 15 AS col1 FROM tab2
----
331
374
553

query I rowsort
SELECT - - 78 + cor0.col2 + ( + col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
-112
-1227
-4498

query I rowsort
SELECT ALL ( col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - ( col2 ) * - 98 + - col2 FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT DISTINCT - + col1 * - col1 + - ( 25 ) FROM tab1 AS cor0
----
144
651
75

query I rowsort
SELECT col0 * + col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - + col2 + - col1 * 80 + col2 AS col1 FROM tab1 AS cor0
----
-1040
-2080
-800

query I rowsort
SELECT - - col0 + col0 * col2 * cor0.col0 AS col0 FROM tab2 cor0
----
1330
158262
237237

query I rowsort
SELECT DISTINCT - 0 * + col0 * - col2 AS col0 FROM tab0
----
0

query I rowsort
SELECT - - col1 + + 65 * col1 AS col2 FROM tab2 cor0
----
1122
2046
3894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8353
SELECT 54 DIV - col0 + ( 37 ) * col2 AS col1 FROM tab0
----
1219
3034
36

skipif mysql # not compatible
query I rowsort label-8353
SELECT 54 / - col0 + ( 37 ) * col2 AS col1 FROM tab0
----
1219
3034
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-8354
SELECT ALL + tab2.col1 DIV col0 + ( + 55 ) FROM tab2
----
55
55
59

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL + tab2.col1 / col0 + ( + 55 ) FROM tab2
----
55
55
59

query I rowsort
SELECT ALL - col0 * - tab2.col2 + + 74 AS col0 FROM tab2
----
2102
263
3076

onlyif mysql # use DIV operator for integer division
query I rowsort label-8356
SELECT DISTINCT col0 * col2 DIV + 8 + ( - col2 ) + - ( - col2 ) FROM tab0
----
4
912
99

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT col0 * col2 / + 8 + ( - col2 ) + - ( - col2 ) FROM tab0
----
4
912
99

query I rowsort
SELECT ALL col0 + col2 * - col2 * 75 AS col0 FROM tab1
----
-218697
-243611
-691120

query I rowsort
SELECT 95 * - col1 AS col1 FROM tab2
----
-1615
-2945
-5605

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab1 AS cor0
----
22

query I rowsort
SELECT ALL - 42 * + col1 * col1 + cor0.col0 FROM tab0 AS cor0
----
-310608
-347713
-395143

query I rowsort
SELECT 26 + - col2 * + col1 FROM tab1 AS cor0
----
-1222
-1378
-544

query I rowsort
SELECT DISTINCT - 18 + - col2 * - cor0.col1 FROM tab0 AS cor0
----
2820
7444
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col1 + cor0.col2 col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL col1 + - 77 AS col1 FROM tab1 AS cor0
----
-51
-64
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8365
SELECT - + col1 * 54 + col1 - + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8365
SELECT - + col1 * 54 + col1 - + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 87 * - col1 * col1 + - col0 * + col0 col0 FROM tab1 AS cor0
----
-12796
-21103
-58821

query I rowsort
SELECT ALL - ( col0 ) + + col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + 14 + - 96 * col0 AS col1 FROM tab1 AS cor0
----
-274
-6130
-7666

query I rowsort
SELECT - - 65 + col2 * col0 FROM tab0 AS cor0
----
100
7363
857

onlyif mysql # use DIV operator for integer division
query I rowsort label-8370
SELECT ALL ( - 88 ) DIV col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL ( - 88 ) / col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col0 - + col1 * cor0.col1 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8372
SELECT CAST( - col1 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-8372
SELECT CAST ( - col1 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - ( + 41 * - col0 ) - + col1 AS col1 FROM tab1
----
2614
3267
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8374
SELECT CAST( NULL AS DECIMAL ) * 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8374
SELECT CAST ( NULL AS REAL ) * 6 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8375
SELECT col1 * col0 DIV col0 - - col2 AS col2 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-8375
SELECT col1 * col0 / col0 - - col2 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT + col2 - + col1 * - col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8377
SELECT - ( - 28 + col2 ) * CAST( - col0 AS SIGNED ) col2 FROM tab2
----
-156
-7
790

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8377
SELECT - ( - 28 + col2 ) * CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
-156
-7
790

query I rowsort
SELECT ALL + 16 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT 96 * col0 * - col2 + + ( + col2 + col2 ) AS col1 FROM tab0
----
-3358
-700444
-75966

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 * + col1 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + cor0.col0 + col2 * - ( - 20 * col0 + - cor0.col0 ) FROM tab1 AS cor0
----
161360
3405
76672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col1 * + col1 col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - col1 + + col2 * - 21 FROM tab0 AS cor0
----
-118
-1813
-779

query I rowsort
SELECT DISTINCT 92 * cor0.col1 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT - - 48 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT - 49 - col2 FROM tab0 AS cor0
----
-131
-50
-82

query I rowsort
SELECT + + col2 * - col1 * col1 + + 84 * + col1 FROM tab0 AS cor0
----
-1261
-236844
-671398

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 - + 36 FROM tab0 cor0
----
-1125
-37
-6760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * cor0.col1 col0 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT ALL + col1 + - cor0.col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL 3 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-21
-32
-86

query I rowsort
SELECT ALL - col0 - + cor0.col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 * ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8395
SELECT ALL + - col1 + col2 + + CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-7
23
59

skipif mysql # not compatible
query I rowsort label-8395
SELECT ALL + - col1 + col2 + + CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT ALL - + col1 + col0 * 28 AS col1 FROM tab1 AS cor0
----
1782
2227
58

query I rowsort
SELECT DISTINCT ( cor0.col0 ) - + col0 * 81 FROM tab0 cor0
----
-1920
-2800
-7120

query I rowsort
SELECT - col1 + col2 * + 70 FROM tab0 AS cor0
----
-27
2224
5649

query I rowsort
SELECT DISTINCT 27 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8400
SELECT DISTINCT + col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT + col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + 22 * col0 FROM tab2 AS cor0
----
1742
1776
181

query I rowsort
SELECT ALL - - col2 + 29 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1796
548
957

query I rowsort
SELECT + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8404
SELECT DISTINCT col1 - 76 * col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-17
-45
-59

skipif mysql # not compatible
query I rowsort label-8404
SELECT DISTINCT col1 - 76 * col1 / + cor0.col1 FROM tab2 AS cor0
----
-17
-45
-59

query I rowsort
SELECT ALL + + col2 + 35 FROM tab2 AS cor0
----
61
62
73

query I rowsort
SELECT DISTINCT + col1 + + 48 AS col0 FROM tab2 AS cor0
----
107
65
79

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - 4 + + col1 FROM tab2 AS cor0
----
13
27
55

query I rowsort
SELECT DISTINCT 39 * - col1 AS col2 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT + - col0 + 70 AS col0 FROM tab2 AS cor0
----
-8
-9
63

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col1 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + cor0.col1 DIV + 50 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + cor0.col1 / + 50 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL - + ( 41 ) FROM tab1 AS cor0
----
-41
-41
-41

query I rowsort
SELECT - col2 + - 15 FROM tab0 AS cor0
----
-16
-48
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8416
SELECT DISTINCT + + CAST( + ( col1 ) AS SIGNED ) DIV ( + 4 * + col2 ) FROM tab0 AS cor0
----
0
24

skipif mysql # not compatible
query I rowsort label-8416
SELECT DISTINCT + + CAST ( + ( col1 ) AS INTEGER ) / ( + 4 * + col2 ) FROM tab0 AS cor0
----
0
24

query I rowsort
SELECT - + 91 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
139594
58786
76167

query I rowsort
SELECT DISTINCT 91 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * col0 - + col1 * ( col1 ) * + 91 col2 FROM tab0 AS cor0
----
-675100
-761670
-859614

query I rowsort
SELECT + col0 + col1 * 40 FROM tab2 AS cor0
----
1247
2438
759

query I rowsort
SELECT DISTINCT col1 * + col1 + + col1 * ( col2 ) AS col0 FROM tab1 AS cor0
----
1417
2080
670

onlyif mysql # use DIV operator for integer division
query I rowsort label-8422
SELECT ALL + cor0.col1 DIV + cor0.col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL + cor0.col1 / + cor0.col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 97 + cor0.col0 FROM tab0 AS cor0
----
-62
-73
-8

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( - col0 ) + 44 FROM tab1 AS cor0
----
-20
-36
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-8426
SELECT DISTINCT - - col2 + - col0 DIV + cor0.col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT - - col2 + - col0 / + cor0.col2 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT DISTINCT ( + 39 ) FROM tab0, tab0 AS cor0
----
39

query I rowsort
SELECT + cor0.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8429
SELECT col1 + 67 DIV + col1 FROM tab1 AS cor0
----
16
18
28

skipif mysql # not compatible
query I rowsort label-8429
SELECT col1 + 67 / + col1 FROM tab1 AS cor0
----
16
18
28

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8431
SELECT ALL col1 - + col0 DIV cor0.col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL col1 - + col0 / cor0.col0 FROM tab0 AS cor0
----
85
90
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8432
SELECT DISTINCT - cor0.col2 + CAST( 96 AS SIGNED ) FROM tab2 AS cor0
----
58
69
70

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - cor0.col2 + CAST ( 96 AS INTEGER ) FROM tab2 AS cor0
----
58
69
70

query I rowsort
SELECT col0 * col2 + 72 AS col1 FROM tab2
----
2100
261
3074

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8434
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * + 30 + + ( - col2 ) * - col0 FROM tab2 AS cor0
----
-741
2492
258

query I rowsort
SELECT - col0 * - cor0.col2 + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + ( + 72 ) AS col1 FROM tab2 AS cor0
----
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-8439
SELECT - cor0.col0 + - col1 DIV - col2 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-8439
SELECT - cor0.col0 + - col1 / - col2 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT col0 * - col2 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT col1 + + col2 - - col2 * col2 AS col1 FROM tab0
----
1208
6897
99

query I rowsort
SELECT - col0 + col2 * + col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - + col1 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8444
SELECT ALL col2 DIV col2 + + col0 * + 33 AS col2 FROM tab1
----
100
2113
2641

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL col2 / col2 + + col0 * + 33 AS col2 FROM tab1
----
100
2113
2641

query I rowsort
SELECT + 51 + col2 AS col1 FROM tab1
----
105
108
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT - cor0.col1 DIV - col1 + - ( col2 * + col2 ) AS col0 FROM tab2 AS cor0
----
-1443
-675
-728

skipif mysql # not compatible
query I rowsort label-8446
SELECT - cor0.col1 / - col1 + - ( col2 * + col2 ) AS col0 FROM tab2 AS cor0
----
-1443
-675
-728

query I rowsort
SELECT + 60 + - col2 FROM tab1 cor0
----
-36
3
6

query I rowsort
SELECT ALL + 40 AS col2 FROM tab2, tab1, tab0 cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8449
SELECT ALL - CAST( col1 AS SIGNED ) DIV col0 + ( 46 * - tab0.col0 ) AS col0 FROM tab0
----
-1107
-1612
-4095

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL - CAST ( col1 AS INTEGER ) / col0 + ( 46 * - tab0.col0 ) AS col0 FROM tab0
----
-1107
-1612
-4095

query I rowsort
SELECT col0 * col1 + + col1 + - col0 AS col1 FROM tab2
----
1281
241
4583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 93 * - col2 + - ( ( + col1 ) ) col2 FROM tab1
----
5050
5348
9011

query I rowsort
SELECT + + col0 + + col1 * ( - col2 * + col1 ) AS col1 FROM tab2 AS cor0
----
-10903
-25940
-90428

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab2, tab2 AS cor0
----
-91

query I rowsort
SELECT DISTINCT - 28 + 44 FROM tab1, tab1 cor0
----
16

query I rowsort
SELECT DISTINCT + 57 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8456
SELECT + col2 * col1 DIV - col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8456
SELECT + col2 * col1 / - col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + - cor1.col1 + 29 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to baeaa526374979186c41eb5f216ac36f

query I rowsort
SELECT 33 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + col0 + 60 FROM tab2
----
138
139
67

query I rowsort
SELECT DISTINCT + col2 + - col2 * + ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT col0 * + ( - col2 ) * - col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL - ( + col2 ) + + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT 87 * 14 FROM tab2 AS cor0
----
1218
1218
1218

query I rowsort
SELECT ALL + + ( cor0.col1 ) * cor0.col2 + 31 * - col0 - - col0 FROM tab0 AS cor0
----
-953
2118
4792

query I rowsort
SELECT DISTINCT - + col0 * + 82 AS col0 FROM tab1 AS cor0
----
-246
-5248
-6560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8466
SELECT 27 DIV tab0.col2 FROM tab0
----
0
0
27

skipif mysql # not compatible
query I rowsort label-8466
SELECT 27 / tab0.col2 FROM tab0
----
0
0
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-8467
SELECT CAST( col2 AS SIGNED ) DIV - col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8467
SELECT CAST ( col2 AS INTEGER ) / - col2 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + 78 AS col1 FROM tab0 cor0
----
78
78
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8469
SELECT col0 * col1 DIV - col0 AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8469
SELECT col0 * col1 / - col0 AS col1 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( col0 ) col2 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 - + col0 col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 * + col2 - 59 AS col2 FROM tab1
----
-2975
-3308
-9275

query I rowsort
SELECT cor0.col1 * ( col2 ) AS col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8474
SELECT DISTINCT - col0 * + CAST( - ( - col1 ) + CAST( - 76 AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
150
4224
5040

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT - col0 * + CAST ( - ( - col1 ) + CAST ( - 76 AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
150
4224
5040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8475
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( 81 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT DISTINCT + + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col1 + 59 AS col2 FROM tab1 AS cor0
----
69
72
85

query I rowsort
SELECT - col1 * ( 65 ) + col1 AS col0 FROM tab1 AS cor0
----
-1664
-640
-832

query I rowsort
SELECT - col2 * + ( 36 + col1 ) AS col0 FROM tab1 AS cor0
----
-2622
-3348
-4704

query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8482
SELECT ALL - cor0.col0 + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - cor0.col0 + col0 / + col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 8 * - col1 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT ALL - + col0 * 32 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-147264
-42976
-6944

query I rowsort
SELECT cor0.col0 * - 44 FROM tab0 AS cor0
----
-1056
-1540
-3916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8486
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8487
SELECT - col1 DIV col0 + col0 FROM tab2 cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-8487
SELECT - col1 / col0 + col0 FROM tab2 cor0
----
3
78
79

query I rowsort
SELECT + + col2 * - col0 + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-8489
SELECT ALL cor0.col1 DIV 11 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL cor0.col1 / 11 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT ALL - col2 + col2 + col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8491
SELECT ALL - CAST( + col1 AS SIGNED ) * cor0.col1 - col2 * col2 FROM tab2 AS cor0
----
-1690
-1733
-4157

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - CAST ( + col1 AS INTEGER ) * cor0.col1 - col2 * col2 FROM tab2 AS cor0
----
-1690
-1733
-4157

query I rowsort
SELECT DISTINCT 58 + - 53 AS col2 FROM tab2 AS cor0
----
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8493
SELECT tab1.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8493
SELECT tab1.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 9 * + 85 + + col0 FROM tab1 AS cor0
----
768
829
845

query I rowsort
SELECT DISTINCT - - 89 AS col0 FROM tab2 AS cor0
----
89

query I rowsort
SELECT + 49 * + col0 FROM tab1 AS cor0
----
147
3136
3920

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + + col2 * + col0 + 10 * 69 * col0 FROM tab1 cor0
----
2232
47808
62880

query I rowsort
SELECT + 60 * col0 AS col0 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT DISTINCT + 96 + - col2 * + col0 FROM tab1 AS cor0
----
-3552
-66
-7584

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 32 * + cor0.col1 + - cor1.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6ca3f42e646453ed45b0f5742e215854

query I rowsort
SELECT DISTINCT - col1 + - ( + col2 ) * + col0 AS col0 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
19

query I rowsort
SELECT ALL - col1 + 9 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-14
63
76

query I rowsort
SELECT DISTINCT - col0 + 25 * 83 FROM tab1 AS cor0
----
1995
2011
2072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8507
SELECT ALL + col0 * + CAST( + 42 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
1373
3647
922

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL + col0 * + CAST ( + 42 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
1373
3647
922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8508
SELECT DISTINCT - cor0.col2 * CAST( - ( + col1 ) AS SIGNED ) + + 40 col2 FROM tab0 AS cor0
----
137
2878
7502

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT - cor0.col2 * CAST ( - ( + col1 ) AS INTEGER ) + + 40 col2 FROM tab0 AS cor0
----
137
2878
7502

query I rowsort
SELECT ALL - col0 + + ( - col0 ) * col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-8510
SELECT - col2 DIV + 1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-8510
SELECT - col2 / + 1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8511
SELECT DISTINCT - col1 * ( col1 + col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-18818
-201
-448

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - col1 * ( col1 + col1 ) / col2 AS col1 FROM tab0 AS cor0
----
-18818
-201
-448

query I rowsort
SELECT ALL col1 * col1 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT col2 * 59 AS col2 FROM tab2 AS cor0
----
1534
1593
2242

query I rowsort
SELECT DISTINCT + col1 * ( + col0 + - col0 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col2 + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT 41 FROM tab1, tab2 AS cor0
----
41

query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - col2 * col0 - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL + col1 * ( - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT + + cor0.col0 DIV 79 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8520
SELECT + + cor0.col0 / 79 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - - cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col0 * 49 AS col0 FROM tab0 AS cor0
----
1176
1715
4361

skipif mysql # not compatible
query I rowsort
SELECT - + col0 * CAST ( 8 AS REAL ) AS col1 FROM tab0 cor0
----
-192
-280
-712

query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT ALL + col0 DIV - tab2.col0 + col0 col1 FROM tab2
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + col0 / - tab2.col0 + col0 col1 FROM tab2
----
6
77
78

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - col2 * + 85 - col1 AS col0 FROM tab2
----
-2269
-2326
-3247

query I rowsort
SELECT + + col0 * - col1 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8529
SELECT + CAST( NULL AS SIGNED ) + + 47 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT + CAST ( NULL AS INTEGER ) + + 47 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - cor0.col2 + - col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT + col0 * col1 - + ( col0 ) FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 + col2 col2 FROM tab0
----
131
180
99

query I rowsort
SELECT + col0 * tab0.col2 * - col0 + + ( col2 ) FROM tab0
----
-1224
-18975
-649440

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + 56 AS col2 FROM tab0 AS cor0
----
142
147
153

query I rowsort
SELECT DISTINCT + col2 * col1 - - 28 FROM tab0 AS cor0
----
125
2866
7490

query I rowsort
SELECT + 70 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT + + 13 * - col1 + 40 FROM tab2 AS cor0
----
-181
-363
-727

query I rowsort
SELECT DISTINCT - col2 + col1 * - 13 FROM tab0 cor0
----
-1151
-1262
-1265

query I rowsort
SELECT DISTINCT + col1 * + col0 - col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-8540
SELECT + col2 + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-8540
SELECT + col2 + col0 / col2 AS col1 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT 49 + - col1 FROM tab0
----
-37
-42
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-8542
SELECT ALL - col0 DIV tab0.col2 + - col2 AS col0 FROM tab0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - col0 / tab0.col2 + - col2 AS col0 FROM tab0
----
-33
-36
-83

query I rowsort
SELECT 12 * - col0 FROM tab2 cor0
----
-84
-936
-948

onlyif mysql # use DIV operator for integer division
query I rowsort label-8544
SELECT - - col0 * - col0 + - 24 DIV - col0 AS col2 FROM tab1 AS cor0
----
-1
-4096
-6400

skipif mysql # not compatible
query I rowsort label-8544
SELECT - - col0 * - col0 + - 24 / - col0 AS col2 FROM tab1 AS cor0
----
-1
-4096
-6400

query I rowsort
SELECT ALL + 9 * - col0 FROM tab0
----
-216
-315
-801

query I rowsort
SELECT tab2.col2 + 63 FROM tab2
----
101
89
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8547
SELECT + CAST( NULL AS SIGNED ) * + col0 + + col1 * CAST( + 88 AS DECIMAL ) / col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT + CAST ( NULL AS INTEGER ) * + col0 + + col1 * CAST ( + 88 AS REAL ) / col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - + col1 * col0 + - ( col0 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT col2 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL 69 * col0 * + col0 + + cor0.col1 FROM tab0 AS cor0
----
39830
546640
84622

query I rowsort
SELECT DISTINCT - - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT 61 + - col1 AS col1 FROM tab1 AS cor0
----
35
48
51

query I rowsort
SELECT ALL - - col1 * col2 + col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT ALL - + col2 + + 99 FROM tab1 AS cor0
----
3
42
45

query I rowsort
SELECT DISTINCT cor0.col1 * ( + col0 + col0 * + col0 ) FROM tab2 cor0
----
107440
1736
363558

query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col2 * + 77 + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1452
-76
410

query I rowsort
SELECT ALL 49 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - col2 * 5 AS col0 FROM tab2 cor0
----
-130
-135
-190

query I rowsort
SELECT ALL + + ( col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + col0 * + col1 col1 FROM tab0 AS cor0
----
2111
3442
8146

query I rowsort
SELECT 28 + - 55 * col1 FROM tab0 AS cor0
----
-4702
-4977
-5307

query I rowsort
SELECT - - col2 * ( col0 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 94 * + 9 * col2 AS col1 FROM tab0 AS cor0
----
-27918
-69372
-846

query I rowsort
SELECT col0 + + col0 * + col0 * - 15 FROM tab0 AS cor0
----
-118726
-18340
-8616

query I rowsort
SELECT - + 26 * ( cor0.col2 ) FROM tab2 cor0
----
-676
-702
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * col1 + col2 col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - - col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + - 29 + - col2 FROM tab1 AS cor0
----
-125
-83
-86

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT 87 + col0 * - 58 FROM tab0 AS cor0
----
-1305
-1943
-5075

query I rowsort
SELECT ALL - 62 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

query I rowsort
SELECT + + cor0.col0 * - 76 + - col1 + col1 FROM tab1 AS cor0
----
-228
-4864
-6080

query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8577
SELECT + col1 + CAST( col2 AS SIGNED ) * + col0 AS col0 FROM tab1 cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-8577
SELECT + col1 + CAST ( col2 AS INTEGER ) * + col0 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL 3 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ( cor0.col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT tab0.col1 * col2 * col0 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT col2 * - 52 FROM tab0
----
-1716
-4264
-52

query I rowsort
SELECT 38 + 50 FROM tab2, tab1 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-8583
SELECT ALL - col0 * col1 DIV col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL - col0 * col1 / col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + + ( + cor1.col0 ) AS col2 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT + col1 + 62 FROM tab1
----
72
75
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8587
SELECT DISTINCT col0 DIV - ( - col2 ) + + tab0.col1 - ( 33 * col1 ) FROM tab0
----
-2752
-2911
-3069

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT col0 / - ( - col2 ) + + tab0.col1 - ( 33 * col1 ) FROM tab0
----
-2752
-2911
-3069

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8588
SELECT col2 + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT col2 + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 99 FROM tab2
----
116
130
158

query I rowsort
SELECT DISTINCT + tab1.col2 + + col1 * col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT DISTINCT + tab0.col0 + 37 + ( - col2 ) FROM tab0
----
28
44
71

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + col0 * - col2 + 42 AS col1 FROM tab1 AS cor0
----
-120
-3606
-7638

query I rowsort
SELECT ALL + 55 FROM tab2, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT - - col0 * col0 + col2 FROM tab1 AS cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - ( col0 ) col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + 24 + - col1 FROM tab1
----
-2
11
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8598
SELECT - CAST( cor0.col0 * + cor0.col2 AS SIGNED ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 8e23e17c36b823f4c429aaf1de1c2457

skipif mysql # not compatible
query I rowsort label-8598
SELECT - CAST ( cor0.col0 * + cor0.col2 AS INTEGER ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 8e23e17c36b823f4c429aaf1de1c2457

query I rowsort
SELECT DISTINCT + tab0.col1 + col0 AS col0 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8600
SELECT + col1 * + col0 DIV col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8600
SELECT + col1 * + col0 / col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8601
SELECT + ( col0 ) + cor0.col2 * CAST( + ( col2 ) + 90 AS SIGNED ) col0 FROM tab0 AS cor0
----
126
14193
4083

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8601
SELECT + ( col0 ) + cor0.col2 * CAST ( + ( col2 ) + 90 AS INTEGER ) col0 FROM tab0 AS cor0
----
126
14193
4083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8602
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 79 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
1
72

query I rowsort
SELECT ALL - col2 * col2 + - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL - 20 * - col2 + 44 + - col0 * - col2 FROM tab1 AS cor0
----
1286
4832
9644

query I rowsort
SELECT - 46 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1518
-3772
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 - + col2 * 9 col0 FROM tab2 AS cor0
----
-274
-293
-359

query I rowsort
SELECT ALL - cor0.col0 * - col2 + + col1 AS col1 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT - 43 * - 71 AS col2 FROM tab1
----
3053
3053
3053

query I rowsort
SELECT - 45 * + col2 + cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-2268
1083
3360

query I rowsort
SELECT DISTINCT + 20 * + cor0.col0 + ( - 38 * col2 ) FROM tab0 AS cor0
----
-1336
-774
662

query I rowsort
SELECT DISTINCT + + 41 - + col0 FROM tab2 AS cor0
----
-37
-38
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col2 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8614
SELECT DISTINCT + 48 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT + 48 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + + 99 * - col0 FROM tab2 AS cor0
----
-693
-7722
-7821

query I rowsort
SELECT + 32 * + col2 FROM tab2
----
1216
832
864

query I rowsort
SELECT DISTINCT 96 * + col0 AS col2 FROM tab0
----
2304
3360
8544

query I rowsort
SELECT ALL + col2 + col0 * ( + col2 * + col2 ) FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT ALL - tab2.col2 + - 37 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to b095edfc623c378f38f362034939e16c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8620
SELECT ALL + col0 * CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-8620
SELECT ALL + col0 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT cor0.col1 + - 38 - - cor0.col1 FROM tab1 AS cor0
----
-12
-18
14

query I rowsort
SELECT col0 * - 37 AS col1 FROM tab0 AS cor0
----
-1295
-3293
-888

query I rowsort
SELECT + - col2 * col0 + - 50 AS col2 FROM tab2 AS cor0
----
-2078
-239
-3052

query I rowsort
SELECT 84 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

onlyif mysql # use DIV operator for integer division
query I rowsort label-8625
SELECT 70 + - cor0.col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-27
68
69

skipif mysql # not compatible
query I rowsort label-8625
SELECT 70 + - cor0.col1 / + col2 AS col1 FROM tab0 AS cor0
----
-27
68
69

query I rowsort
SELECT ALL - cor0.col1 * col0 + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 + + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT - + col2 * + 21 FROM tab1 AS cor0
----
-1134
-1197
-2016

query I rowsort
SELECT DISTINCT - col1 + 7 FROM tab0 AS cor0
----
-79
-84
-90

query I rowsort
SELECT - ( + col0 ) + col0 * ( - col0 ) FROM tab2 cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-8631
SELECT - col2 DIV - 95 - - col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-8631
SELECT - col2 / - 95 - - col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ( + 12 ) * col0 + + col0 * - col2 FROM tab1 AS cor0
----
-126
-2880
-6720

query I rowsort
SELECT - 23 * + ( + col0 ) + col0 * - ( col0 * - ( col0 ) ) AS col0 FROM tab2 cor0
----
182
472758
491222

query I rowsort
SELECT ALL - ( 18 ) * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT + col0 + + 23 - - 76 * + col2 * - ( + col1 ) FROM tab1
----
-106678
-43233
-94745

query I rowsort
SELECT DISTINCT tab2.col0 - - ( col2 ) * - col2 AS col0 FROM tab2
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 42 col2 FROM tab2
----
-11
-25
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8638
SELECT + CAST( NULL AS SIGNED ) * col0 * cor0.col1 - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT + CAST ( NULL AS INTEGER ) * col0 * cor0.col1 - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 56 * col2 FROM tab1 AS cor0
----
-3024
-3192
-5376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8640
SELECT ALL tab1.col1 - + CAST( NULL AS SIGNED ) * col0 * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL tab1.col1 - + CAST ( NULL AS INTEGER ) * col0 * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab2.col0 + + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - col1 + ( col2 ) * 54 FROM tab2 cor0
----
1345
1427
2035

query I rowsort
SELECT - - col0 + 44 AS col0 FROM tab1 AS cor0
----
108
124
47

query I rowsort
SELECT - ( 82 ) AS col2 FROM tab2 AS cor0
----
-82
-82
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8645
SELECT col2 DIV 49 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8645
SELECT col2 / 49 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8646
SELECT + col1 * + ( - 30 ) * + col2 + cor0.col0 * ( + col1 ) + - col1 DIV col0 FROM tab1 AS cor0
----
-16460
-36400
-42050

skipif mysql # not compatible
query I rowsort label-8646
SELECT + col1 * + ( - 30 ) * + col2 + cor0.col0 * ( + col1 ) + - col1 / col0 FROM tab1 AS cor0
----
-16460
-36400
-42050

query I rowsort
SELECT ALL + col2 * 53 FROM tab1 cor0
----
2862
3021
5088

query I rowsort
SELECT col2 + - 0 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col1 + 65 FROM tab1 AS cor0
----
75
78
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT col1 + col1 DIV - col2 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-8650
SELECT col1 + col1 / - col2 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT + 2 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 61 col1 FROM tab0 AS cor0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-8653
SELECT col1 * 81 DIV 21 AS col2 FROM tab1
----
100
38
50

skipif mysql # not compatible
query I rowsort label-8653
SELECT col1 * 81 / 21 AS col2 FROM tab1
----
100
38
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-8654
SELECT DISTINCT - col0 DIV ( - col1 ) AS col0 FROM tab1 cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - col0 / ( - col1 ) AS col0 FROM tab1 cor0
----
0
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8655
SELECT col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + tab0.col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - cor0.col1 ) * - ( 58 ) col1 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT DISTINCT - 1 * + col1 AS col2 FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8660
SELECT DISTINCT - col1 + + col2 DIV ( + col0 ) AS col0 FROM tab1 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT - col1 + + col2 / ( + col0 ) AS col0 FROM tab1 AS cor0
----
-10
-12
-8

query I rowsort
SELECT ALL - 0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 58 FROM tab2 cor0
----
-58
-58
-58

query I rowsort
SELECT - col1 * cor0.col2 + - 9 * + col0 * col0 AS col0 FROM tab0 AS cor0
----
-11122
-78751
-8022

query I rowsort
SELECT col1 + ( 57 ) FROM tab2 AS cor0
----
116
74
88

query I rowsort
SELECT cor0.col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + + col2 * ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ( 50 ) * + cor0.col0 FROM tab2 AS cor0
----
350
3900
3950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + 6 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT 18 * - col1 FROM tab0
----
-1548
-1638
-1746

query I rowsort
SELECT - + col0 + + col1 * + col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT col2 * - col0 * cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + + ( + col1 ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col1 * col1 * - ( - col0 ) FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8675
SELECT DISTINCT - col1 DIV - 45 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT - col1 / - 45 FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8676
SELECT ALL CAST( col2 AS SIGNED ) * col2 AS col2 FROM tab2
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL CAST ( col2 AS INTEGER ) * col2 AS col2 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab2.col2 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT + - 69 * 69 FROM tab1 AS cor0
----
-4761
-4761
-4761

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 * - ( - col2 ) + col0 * + col1 AS col2 FROM tab0 AS cor0
----
-656019
-66048
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8681
SELECT - + CAST( 46 AS SIGNED ) * col0 + + col2 + + col2 FROM tab1 AS cor0
----
-2830
-30
-3488

skipif mysql # not compatible
query I rowsort label-8681
SELECT - + CAST ( 46 AS INTEGER ) * col0 + + col2 + + col2 FROM tab1 AS cor0
----
-2830
-30
-3488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 * - ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT col2 - - ( + col1 + tab0.col1 ) FROM tab0
----
195
205
264

onlyif mysql # use DIV operator for integer division
query I rowsort label-8684
SELECT ALL - tab2.col0 DIV tab2.col1 AS col0 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL - tab2.col0 / tab2.col1 AS col0 FROM tab2
----
-1
-4
0

query I rowsort
SELECT DISTINCT + 93 * + col2 * col0 FROM tab0
----
3255
678714
73656

query I rowsort
SELECT + 35 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col0 + + cor0.col0 col2 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8688
SELECT ALL - CAST( NULL AS SIGNED ) * + 87 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8688
SELECT ALL - CAST ( NULL AS INTEGER ) * + 87 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 37 + - col2 * col2 FROM tab2
----
-1481
-713
-766

query I rowsort
SELECT - col1 * col0 - 20 * + ( + tab2.col1 * col1 ) AS col2 FROM tab2
----
-19437
-7123
-74222

query I rowsort
SELECT DISTINCT - 5 * + col0 * + ( - col0 ) - col0 FROM tab2
----
238
30342
31126

query I rowsort
SELECT DISTINCT col0 * + col0 - - col0 * + col2 * col0 AS col1 FROM tab1
----
237568
495
620800

query I rowsort
SELECT - col1 * - col0 + + 93 * - col2 AS col1 FROM tab1 AS cor0
----
-4661
-4944
-7888

query I rowsort
SELECT col0 * - 69 + - 14 FROM tab1 AS cor0
----
-221
-4430
-5534

query I rowsort
SELECT - + cor0.col1 * - 7 FROM tab1 AS cor0
----
182
70
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-8696
SELECT + col1 + col0 DIV - cor0.col1 col1 FROM tab1 AS cor0
----
26
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8696
SELECT + col1 + col0 / - cor0.col1 col1 FROM tab1 AS cor0
----
26
4
7

query I rowsort
SELECT + + col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - - col2 * col1 + - 17 AS col0 FROM tab0 cor0
----
2821
7445
80

query I rowsort
SELECT DISTINCT - + col1 - col2 * - col2 FROM tab0 AS cor0
----
-96
1003
6633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8700
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) + - ( col2 ) / - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8700
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) + - ( col2 ) / - col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8701
SELECT cor0.col0 + - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-8701
SELECT cor0.col0 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col0 * ( 99 ) + + cor0.col2 FROM tab1 AS cor0
----
351
6393
8016

query I rowsort
SELECT ALL - col1 + - 60 * col2 + col2 FROM tab0 AS cor0
----
-156
-2033
-4929

onlyif mysql # use DIV operator for integer division
query I rowsort label-8704
SELECT ALL - col2 * ( cor0.col1 ) DIV col1 + - col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - col2 * ( cor0.col1 ) / col1 + - col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col0 * + col1 + 12 AS col1 FROM tab1 AS cor0
----
1052
652
90

query I rowsort
SELECT ALL + cor0.col0 + - 95 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1403d1e1e79ef6f89382adde228ea769

query I rowsort
SELECT col1 * tab0.col0 * 54 FROM tab0
----
111456
183330
437346

query I rowsort
SELECT ALL + col2 * - col2 + - col0 AS col0 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT - + col2 + + col0 * + col0 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8711
SELECT DISTINCT + col0 * + CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT + col0 * + CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + + 78 * cor0.col0 FROM tab0 cor0
----
1872
2730
6942

query I rowsort
SELECT ALL + 88 + + col1 AS col0 FROM tab0 AS cor0
----
174
179
185

query I rowsort
SELECT + 75 * + col2 + col0 FROM tab0 AS cor0
----
110
2499
6239

query I rowsort
SELECT ALL + 91 + + 9 AS col0 FROM tab2 AS cor0
----
100
100
100

query I rowsort
SELECT 91 AS col1 FROM tab2 cor0
----
91
91
91

query I rowsort
SELECT ALL + col1 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + 82 + + col0 FROM tab0 AS cor0
----
106
117
171

query I rowsort
SELECT ALL - + 16 * col2 + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
6868
6969
9393

query I rowsort
SELECT ALL + 84 + 42 FROM tab1 AS cor0
----
126
126
126

query I rowsort
SELECT DISTINCT + - col0 + + col1 * col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
22592
24469
39806

onlyif mysql # use DIV operator for integer division
query I rowsort label-8722
SELECT DISTINCT col2 DIV + 10 + ( - col2 + - col1 * - 1 ) AS col1 FROM tab1
----
-23
-42
-74

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT col2 / + 10 + ( - col2 + - col1 * - 1 ) AS col1 FROM tab1
----
-23
-42
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8723
SELECT ALL + + CAST( + col2 AS SIGNED ) * + col1 + + col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
1026
3562
3648

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL + + CAST ( + col2 AS INTEGER ) * + col1 + + col2 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT DISTINCT 54 * col2 + - col2 * - 35 AS col1 FROM tab1 AS cor0
----
4806
5073
8544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8725
SELECT ALL - 63 + + 2 * col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL - 63 + + 2 * col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - 24 ) * + cor0.col2 FROM tab2 cor0
----
-624
-648
-912

query I rowsort
SELECT ALL + 47 * cor0.col0 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT col1 * col1 + col0 FROM tab2 cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-8729
SELECT ALL + - 63 DIV - col1 FROM tab1 AS cor0
----
2
4
6

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL + - 63 / - col1 FROM tab1 AS cor0
----
2
4
6

query I rowsort
SELECT DISTINCT + col1 * col2 * 18 AS col1 FROM tab1 AS cor0
----
10260
22464
25272

query I rowsort
SELECT DISTINCT + cor1.col2 + - 29 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
25
28
67

query I rowsort
SELECT - col1 + + col1 * + ( + col2 + col2 * + cor0.col2 ) FROM tab2 AS cor0
----
23405
25177
41359

query I rowsort
SELECT ALL 25 + + col0 * + col2 * col0 FROM tab2 AS cor0
----
1348
158209
237183

query I rowsort
SELECT DISTINCT + 80 * col0 * - cor0.col2 FROM tab2 cor0
----
-15120
-162240
-240160

query I rowsort
SELECT ALL - 65 + col2 FROM tab0 AS cor0
----
-32
-64
17

query I rowsort
SELECT 17 FROM tab0 cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT - + col0 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8738
SELECT - + col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8739
SELECT DISTINCT ( col0 ) DIV + 38 AS col2 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT ( col0 ) / + 38 AS col2 FROM tab2 AS cor0
----
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8740
SELECT + ( + cor0.col0 ) + CAST( cor0.col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8740
SELECT + ( + cor0.col0 ) + CAST ( cor0.col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8741
SELECT - col2 DIV - cor0.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-8741
SELECT - col2 / - cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8743
SELECT + col2 * - col0 + - ( + cor0.col0 ) * CAST( NULL AS SIGNED ) * - col1 - cor0.col1 * CAST( + col1 * + col2 AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT + col2 * - col0 + - ( + cor0.col0 ) * CAST ( NULL AS INTEGER ) * - col1 - cor0.col1 * CAST ( + col1 * + col2 AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col1 * + col0 - 77 AS col1 FROM tab0
----
2011
3353
8111

onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT DISTINCT + - col2 + - col2 DIV - 75 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT + - col2 + - col2 / - 75 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col0 + + ( + col0 + cor0.col2 ) * 27 FROM tab0 cor0
----
1007
1563
4706

query I rowsort
SELECT ALL col0 * - 25 + - col1 AS col2 FROM tab1 AS cor0
----
-101
-1610
-2013

onlyif mysql # use DIV operator for integer division
query I rowsort label-8748
SELECT ALL - col0 DIV + col1 - + col2 FROM tab2
----
-27
-27
-42

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - col0 / + col1 - + col2 FROM tab2
----
-27
-27
-42

query I rowsort
SELECT + col2 * col0 + - 19 + - col1 * + col1 * tab2.col1 AS col1 FROM tab2
----
-1930
-203370
-29621

query I rowsort
SELECT ALL col2 * col2 + + col0 - col2 AS col0 FROM tab2
----
1485
709
728

query I rowsort
SELECT DISTINCT 64 AS col0 FROM tab2, tab0 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 14 * col2 ) col1 FROM tab0
----
-1148
-14
-462

query I rowsort
SELECT + - cor0.col2 * - col0 * - cor0.col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT - cor1.col2 * - 27 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
1458
1539
2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - 65 * col1 AS col0 FROM tab1 cor0
----
-1690
-650
-845

onlyif mysql # use DIV operator for integer division
query I rowsort label-8757
SELECT col0 DIV + 82 + col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8757
SELECT col0 / + 82 + col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL 74 FROM tab1, tab2 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT + col0 + col2 * + 14 FROM tab2 AS cor0
----
385
442
611

query I rowsort
SELECT - col2 + col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - col0 * - 91 + col2 AS col2 FROM tab0 cor0
----
2217
3186
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + 91 col1 FROM tab0 AS cor0
----
3003
7462
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-8763
SELECT col0 * + cor0.col2 + col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-62
7297
790

skipif mysql # not compatible
query I rowsort label-8763
SELECT col0 * + cor0.col2 + col1 / - col2 AS col1 FROM tab0 AS cor0
----
-62
7297
790

query I rowsort
SELECT - col2 * - ( + col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - col0 + 43 FROM tab2 AS cor0
----
121
122
50

query I rowsort
SELECT + col0 + - ( - col0 ) FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT col1 * - 20 + col0 * col1 FROM tab2 AS cor0
----
-403
1003
3422

query I rowsort
SELECT ALL 53 * - 5 FROM tab2, tab0 AS cor0
----
9 values hashing to 00e563c6e4766680f6aa174b56e26791

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab1, tab1 AS cor0
----
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-8770
SELECT - 93 + col2 DIV + col2 + + 84 DIV + col0 AS col0 FROM tab0 AS cor0
----
-89
-90
-92

skipif mysql # not compatible
query I rowsort label-8770
SELECT - 93 + col2 / + col2 + + 84 / + col0 AS col0 FROM tab0 AS cor0
----
-89
-90
-92

query I rowsort
SELECT DISTINCT 5 * col1 AS col0 FROM tab2 cor0
----
155
295
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8772
SELECT 20 DIV + col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8772
SELECT 20 / + col1 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + ( + col2 ) * col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT + 79 + + col0 FROM tab0 AS cor0
----
103
114
168

query I rowsort
SELECT - 17 * col2 + - col0 FROM tab2 AS cor0
----
-466
-520
-725

query I rowsort
SELECT ALL + ( + tab2.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT col0 + 96 AS col0 FROM tab0 AS cor0
----
120
131
185

onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT + 33 DIV - col2 FROM tab0 AS cor0
----
-1
-33
0

skipif mysql # not compatible
query I rowsort label-8778
SELECT + 33 / - col2 FROM tab0 AS cor0
----
-1
-33
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * cor0.col0 + + 72 col0 FROM tab0 cor0
----
1297
648
7993

onlyif mysql # use DIV operator for integer division
query I rowsort label-8780
SELECT ( - 37 ) DIV - col2 + + 98 * + col2 col1 FROM tab0
----
135
3235
8036

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8780
SELECT ( - 37 ) / - col2 + + 98 * + col2 col1 FROM tab0
----
135
3235
8036

query I rowsort
SELECT - col0 * tab2.col2 + col0 FROM tab2
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-8782
SELECT 59 DIV col1 FROM tab1
----
2
4
5

skipif mysql # not compatible
query I rowsort label-8782
SELECT 59 / col1 FROM tab1
----
2
4
5

query I rowsort
SELECT ALL + col2 * + ( col0 ) - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - col2 + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT - col2 + 13 AS col2 FROM tab2 AS cor0
----
-13
-14
-25

onlyif mysql # use DIV operator for integer division
query I rowsort label-8786
SELECT col2 * + ( col1 ) - + col1 DIV - col1 AS col2 FROM tab2
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-8786
SELECT col2 * + ( col1 ) - + col1 / - col1 AS col2 FROM tab2
----
1535
647
838

query I rowsort
SELECT col2 + col1 + - col1 FROM tab2
----
26
27
38

query I rowsort
SELECT + col1 * - ( col2 ) + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT 17 + - col0 * - col1 FROM tab2
----
1360
234
4619

query I rowsort
SELECT + ( col0 ) * col2 + col0 * col1 AS col0 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT ALL col2 * + col2 * col0 + + col0 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT + 96 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
291
6208
7760

query I rowsort
SELECT 55 + col0 AS col2 FROM tab1 AS cor0
----
119
135
58

query I rowsort
SELECT 95 * col1 * + col0 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
60857
7464
98896

query I rowsort
SELECT + + 2 + - col2 FROM tab0 AS cor0
----
-31
-80
1

query I rowsort
SELECT ALL + - cor0.col2 + col2 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col1 + 56 FROM tab1 cor0
----
30
43
46

query I rowsort
SELECT DISTINCT - + col0 * col0 - + col0 FROM tab0 AS cor0
----
-1260
-600
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8799
SELECT + col0 / CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT + col0 / CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + 35 FROM tab0 AS cor0
----
121
126
132

onlyif mysql # use DIV operator for integer division
query I rowsort label-8801
SELECT ALL col0 * + ( col1 ) + - col2 * col2 DIV + col0 FROM tab1 AS cor0
----
-894
590
925

skipif mysql # not compatible
query I rowsort label-8801
SELECT ALL col0 * + ( col1 ) + - col2 * col2 / + col0 FROM tab1 AS cor0
----
-894
590
925

query I rowsort
SELECT ALL - - col2 * 62 + col0 FROM tab1 AS cor0
----
3351
3598
6032

query I rowsort
SELECT ALL - 8 * + cor0.col1 FROM tab2 cor0
----
-136
-248
-472

query I rowsort
SELECT - 91 + col0 FROM tab1 AS cor0
----
-11
-27
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-8806
SELECT DISTINCT col1 DIV + 64 - + col0 AS col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT col1 / + 64 - + col0 AS col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + 6 + 77 + tab2.col0 AS col2 FROM tab2
----
161
162
90

query I rowsort
SELECT 36 * + ( col2 ) + - col0 * + tab0.col2 FROM tab0
----
-4346
1
396

onlyif mysql # use DIV operator for integer division
query I rowsort label-8809
SELECT + 96 DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-8809
SELECT + 96 / col0 AS col0 FROM tab0 AS cor0
----
1
2
4

query I rowsort
SELECT ALL - + cor0.col2 * - col0 * + 25 FROM tab1 cor0
----
192000
4050
91200

onlyif mysql # use DIV operator for integer division
query I rowsort label-8811
SELECT DISTINCT - + col1 * col1 DIV col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - + col1 * col1 / col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8812
SELECT + 60 DIV tab2.col0 AS col0 FROM tab2
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8812
SELECT + 60 / tab2.col0 AS col0 FROM tab2
----
0
0
8

query I rowsort
SELECT DISTINCT - 9 * 4 + + col1 * - col1 AS col2 FROM tab2
----
-325
-3517
-997

query I rowsort
SELECT ( ( + col1 ) ) * col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT - 15 + - col0 * - col1 AS col1 FROM tab1 AS cor0
----
1025
625
63

query I rowsort
SELECT 27 * - col1 FROM tab2
----
-1593
-459
-837

query I rowsort
SELECT col1 + 41 * col0 + - col0 AS col0 FROM tab0
----
1046
1497
3651

query I rowsort
SELECT + cor0.col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8819
SELECT - col2 + col0 * + ( - col2 + + col0 * - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT - col2 + col0 * + ( - col2 + + col0 * - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab2.col2 + - col1 - - col2 FROM tab2
----
-7
23
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8821
SELECT DISTINCT col0 DIV tab1.col1 + tab1.col0 * col2 FROM tab1
----
162
3654
7686

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT col0 / tab1.col1 + tab1.col0 * col2 FROM tab1
----
162
3654
7686

query I rowsort
SELECT ALL + tab2.col1 + ( + 97 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 168f04f79bf0fe53ef77f40c5e1714f6

query I rowsort
SELECT - ( - cor0.col2 ) + ( col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT tab1.col1 + 17 FROM tab1
----
27
30
43

query I rowsort
SELECT + col0 * - 94 FROM tab0 cor0
----
-2256
-3290
-8366

onlyif mysql # use DIV operator for integer division
query I rowsort label-8826
SELECT DISTINCT - col1 * + col1 * - col0 + col2 DIV - cor0.col0 FROM tab1 AS cor0
----
13519
2010
6400

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT - col1 * + col1 * - col0 + col2 / - cor0.col0 FROM tab1 AS cor0
----
13519
2010
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8827
SELECT ALL - col2 * col0 - col2 DIV col0 col0 FROM tab1 AS cor0
----
-180
-3648
-7681

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL - col2 * col0 - col2 / col0 col0 FROM tab1 AS cor0
----
-180
-3648
-7681

query I rowsort
SELECT DISTINCT - + col2 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL + - col1 - - 25 AS col2 FROM tab0 AS cor0
----
-61
-66
-72

query I rowsort
SELECT tab0.col1 + 94 * 10 FROM tab0
----
1026
1031
1037

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8831
SELECT ALL + CAST( col0 AS SIGNED ) + col2 * col0 * + cor0.col1 FROM tab1 AS cor0
----
36544
4215
99920

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL + CAST ( col0 AS INTEGER ) + col2 * col0 * + cor0.col1 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT - 48 * col1 FROM tab2 AS cor0
----
-1488
-2832
-816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8833
SELECT ALL - CAST( 56 AS SIGNED ) + - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1590
-702
-893

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - CAST ( 56 AS INTEGER ) + - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1590
-702
-893

query I rowsort
SELECT - 98 * cor0.col2 AS col0 FROM tab1 cor0
----
-5292
-5586
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-8835
SELECT DISTINCT - col0 DIV col1 + - col2 * 71 FROM tab1 AS cor0
----
-3834
-4053
-6822

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT - col0 / col1 + - col2 * 71 FROM tab1 AS cor0
----
-3834
-4053
-6822

query I rowsort
SELECT DISTINCT 83 * + 45 AS col1 FROM tab0 AS cor0
----
3735

query I rowsort
SELECT ALL + col1 * col1 + col1 + 29 * + col2 FROM tab1 AS cor0
----
1763
2268
2966

onlyif mysql # use DIV operator for integer division
query I rowsort label-8838
SELECT DISTINCT - col2 DIV + col1 FROM tab2 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - col2 / + col1 FROM tab2 cor0
----
-2
0

query I rowsort
SELECT ALL + cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + ( + col1 ) + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col1 - - col1 AS col1 FROM tab2
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab2 AS cor0
----
76
76
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 + + cor0.col0 col1 FROM tab2 AS cor0
----
101
172
173

query I rowsort
SELECT ALL + cor0.col2 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - + col2 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - 12 AS col2 FROM tab0 AS cor0
----
-12
-12
-12

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT IN ( tab2.col2 )
----

query I rowsort
SELECT ALL + col1 * + col2 + col0 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col2 + - tab2.col0 AS col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + col2 * col2 + col1 * + col0 AS col2 FROM tab1
----
10256
2994
3889

onlyif mysql # use DIV operator for integer division
query I rowsort label-8851
SELECT - col0 + + col1 DIV tab2.col0 AS col2 FROM tab2
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-8851
SELECT - col0 + + col1 / tab2.col0 AS col2 FROM tab2
----
-3
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 + col1 col0 FROM tab0 WHERE - col2 NOT BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * col0 + + col2 AS col1 FROM tab0
----
-1224
-543
-7839

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT - tab0.col1 + - col2 * col2 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT + tab2.col2 * tab2.col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT - col0 + - col0 + - col1 FROM tab2
----
-175
-215
-45

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col0 + - tab0.col0 / col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8860
SELECT DISTINCT col1 DIV col0 - col0 FROM tab2
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT col1 / col0 - col0 FROM tab2
----
-3
-78
-79

query I rowsort
SELECT col0 + col0 + + col2 FROM tab2
----
182
196
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-8862
SELECT col1 + + col1 - col1 DIV - col0 FROM tab1
----
20
26
60

skipif mysql # not compatible
query I rowsort label-8862
SELECT col1 + + col1 - col1 / - col0 FROM tab1
----
20
26
60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT IN ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col1 + col2 + + col2 AS col2 FROM tab2
----
111
85
93

query I rowsort
SELECT - cor0.col1 * col0 + cor0.col2 * - col0 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT DISTINCT - + col2 + - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - col0 + col2 AS col1 FROM tab0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT + col0 * + col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - col0 + col0 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col2 + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= col0 / - col1
----

query I rowsort
SELECT col0 * - col1 * col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - tab0.col0 * - col1 * col2 + tab0.col1 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT col1 + col0 * col0 * + col1 FROM tab2
----
106114
1550
359015

query I rowsort
SELECT col0 * + col1 + tab2.col2 + - col2 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL col2 - - tab2.col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - col0 * - 31 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT ALL col0 * ( col2 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - col1 * + 75 FROM tab2 cor0
----
-1275
-2325
-4425

query I rowsort
SELECT - col2 + 56 + + col2 * col2 AS col0 FROM tab1 cor0
----
2918
3248
9176

onlyif mysql # use DIV operator for integer division
query I rowsort label-8881
SELECT - col0 DIV ( - col2 ) AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-8881
SELECT - col0 / ( - col2 ) AS col2 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col2 - cor0.col2 * ( - 14 ) col1 FROM tab2 AS cor0
----
1216
1242
1924

query I rowsort
SELECT - cor0.col0 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT - + col1 * + col2 * + col0 + col2 + col2 FROM tab1 cor0
----
-36366
-4104
-99648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + + 68 col2 FROM tab2 AS cor0
----
30
41
42

query I rowsort
SELECT - 15 * - 93 + col0 * 92 AS col0 FROM tab1 AS cor0
----
1671
7283
8755

query I rowsort
SELECT ALL - - col0 * + 83 + col2 AS col2 FROM tab0 AS cor0
----
2025
2906
7469

query I rowsort
SELECT + ( col1 ) + cor0.col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 41 - + 28 col0 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT - cor0.col1 - cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 822c2df270733c1079ccc0b8e544f81e

query I rowsort
SELECT + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col1 * + ( col1 ) AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + 9 * - col2 AS col1 FROM tab1 AS cor0
----
-486
-513
-864

query I rowsort
SELECT + col1 * + col1 + - col2 AS col2 FROM tab1 WHERE - col2 NOT BETWEEN - col0 AND NULL
----
622
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN + col1 / - col1 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col2 FROM tab2 WHERE NULL BETWEEN col0 + col1 * col2 AND NULL
----

query I rowsort
SELECT - col2 - - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8898
SELECT 62 DIV tab2.col1 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8898
SELECT 62 / tab2.col1 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT 17 + - 79 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

query I rowsort
SELECT + tab1.col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - col0 - + 47 FROM tab0
----
-136
-71
-82

query I rowsort
SELECT col1 * - col1 * + col0 - col2 AS col2 FROM tab0 cor0
----
-177537
-329316
-737091

query I rowsort
SELECT ALL - + col2 * ( - col2 ) * col1 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8905
SELECT ALL - col0 + col2 DIV cor0.col0 FROM tab2 cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL - col0 + col2 / cor0.col0 FROM tab2 cor0
----
-4
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8906
SELECT + col0 * CAST( col0 AS SIGNED ) * col2 + - col0 FROM tab1
----
233408
483
614320

skipif mysql # not compatible
query I rowsort label-8906
SELECT + col0 * CAST ( col0 AS INTEGER ) * col2 + - col0 FROM tab1
----
233408
483
614320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - col2 * - col0 col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + 74 * - 43 * col1 + + col2 * + cor0.col1 FROM tab1 cor0
----
-31250
-40118
-81328

query I rowsort
SELECT DISTINCT + ( - col0 ) + - cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT + + 80 * col0 * cor0.col1 + + col2 + col0 FROM tab1 AS cor0
----
51321
6297
83376

onlyif mysql # use DIV operator for integer division
query I rowsort label-8911
SELECT + col0 + - cor0.col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8911
SELECT + col0 + - cor0.col2 / - col1 AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT ALL + col2 + + tab2.col1 DIV col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL + col2 + + tab2.col1 / col1 FROM tab2
----
27
28
39

query I rowsort
SELECT ALL ( col1 ) + col1 + col1 * + col2 * col2 FROM tab1
----
119834
32510
75868

query I rowsort
SELECT - + col0 + - 19 AS col0 FROM tab2 AS cor0
----
-26
-97
-98

query I rowsort
SELECT ALL + 72 * cor0.col0 AS col2 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT ALL - ( + ( + cor0.col0 ) ) * - col1 * col2 + + col0 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT ALL - col0 * + cor0.col1 + - col0 * col1 FROM tab2 AS cor0
----
-2686
-434
-9204

onlyif mysql # use DIV operator for integer division
query I rowsort label-8918
SELECT ALL cor0.col0 * col2 + + col2 DIV + col2 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL cor0.col0 * col2 + + col2 / + col2 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT + 99 * + 4 + - col0 FROM tab2 AS cor0
----
317
318
389

query I rowsort
SELECT DISTINCT cor0.col1 - col0 * col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-8921
SELECT ALL + + col0 + - col2 + - col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
-16
41
52

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL + + col0 + - col2 + - col1 / - col0 AS col1 FROM tab2 AS cor0
----
-16
41
52

query I rowsort
SELECT + col1 + - col1 * 16 AS col1 FROM tab2 AS cor0
----
-255
-465
-885

query I rowsort
SELECT ALL - col0 + cor0.col2 * col0 AS col2 FROM tab2 cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-8924
SELECT ALL + col1 * col2 DIV - ( + col2 ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL + col1 * col2 / - ( + col2 ) FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 60 col2 FROM tab2 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - - ( col2 ) col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col0 * col0 * + col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT col1 - 90 FROM tab1 AS cor0
----
-64
-77
-80

query I rowsort
SELECT DISTINCT - + col2 * + col0 + ( + cor0.col0 ) FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT ALL - cor0.col0 DIV - col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL - cor0.col0 / - col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT DISTINCT col1 * - cor0.col1 + - col1 DIV col0 FROM tab1 AS cor0
----
-100
-169
-684

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT col1 * - cor0.col1 + - col1 / col0 FROM tab1 AS cor0
----
-100
-169
-684

query I rowsort
SELECT ALL - col0 * + cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT ALL col1 * cor0.col2 * + col0 + cor0.col1 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT ALL + col2 * + 57 + - ( - col0 ) * col2 AS col2 FROM tab0 AS cor0
----
11972
2673
92

query I rowsort
SELECT DISTINCT col2 + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col0 * col2 * - col0 - col0 * col1 AS col2 FROM tab1 AS cor0
----
-234112
-564
-615440

query I rowsort
SELECT col2 * + cor0.col1 * + col2 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT + col0 + col2 * + col1 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-8939
SELECT + col0 * col0 + col1 DIV tab2.col0 FROM tab2
----
53
6084
6241

skipif mysql # not compatible
query I rowsort label-8939
SELECT + col0 * col0 + col1 / tab2.col0 FROM tab2
----
53
6084
6241

query I rowsort
SELECT + + col2 - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + col2 * + col1 - + col2 AS col2 FROM tab0
----
2805
7380
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col0 ) AND NULL OR NOT col1 >= ( - col0 + + col2 )
----
3
26
54
80
13
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8943
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 + + col2 * + tab2.col0 / + col1 + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 + + col2 * + tab2.col0 / + col1 + col2 FROM tab2
----
NULL

query I rowsort
SELECT - col0 * col0 + - col0 + - col1 * - col2 * col1 FROM tab1 cor0
----
1540
36492
9744

query I rowsort
SELECT DISTINCT 83 + col0 * + col1 FROM tab0
----
2147
3478
8182

query I rowsort
SELECT DISTINCT - 42 * col2 + - col2 AS col0 FROM tab0
----
-1419
-3526
-43

query I rowsort
SELECT - col1 + + col0 + col2 AS col0 FROM tab1 cor0
----
111
163
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-8948
SELECT ALL - 33 DIV col1 + - tab1.col1 * col0 AS col2 FROM tab1
----
-1042
-643
-79

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - 33 / col1 + - tab1.col1 * col0 AS col2 FROM tab1
----
-1042
-643
-79

query I rowsort
SELECT col1 + - col1 * tab0.col2 + col0 FROM tab0
----
-2728
-7282
35

query I rowsort
SELECT DISTINCT + tab2.col0 + - tab2.col0 * col1 AS col1 FROM tab2
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col2 FROM tab0
----
53
9
96

query I rowsort
SELECT - 33 + col0 AS col0 FROM tab2
----
-26
45
46

query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) + col1 * cor0.col1 + col0 FROM tab1 AS cor0
----
221
345
733

query I rowsort
SELECT DISTINCT col1 * + col2 - col0 * cor0.col0 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT DISTINCT + 15 + cor0.col2 AS col0 FROM tab1 AS cor0
----
111
69
72

query I rowsort
SELECT DISTINCT - - 35 FROM tab2 cor0
----
35

query I rowsort
SELECT ALL - col1 * col2 + - col2 * - cor0.col0 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT cor0.col2 + + col1 * + col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - 9 AS col0 FROM tab0 cor0
----
-9
-9
-9

query I rowsort
SELECT - cor0.col0 * - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9337cab14248fdf0584f0cfce23b6e23

query I rowsort
SELECT - - col2 * - col2 + + cor0.col0 * col2 FROM tab0 cor0
----
-297
34
574

onlyif mysql # use DIV operator for integer division
query I rowsort label-8964
SELECT ALL + col1 + col2 DIV col0 + - ( - col0 ) * + col2 FROM tab0
----
132
7389
879

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + col1 + col2 / col0 + - ( - col0 ) * + col2 FROM tab0
----
132
7389
879

query I rowsort
SELECT - - ( + col0 ) * col0 + 37 FROM tab1 AS cor0
----
4133
46
6437

onlyif mysql # use DIV operator for integer division
query I rowsort label-8966
SELECT - ( col2 ) + - 72 DIV col1 AS col1 FROM tab2 AS cor0
----
-27
-29
-42

skipif mysql # not compatible
query I rowsort label-8966
SELECT - ( col2 ) + - 72 / col1 AS col1 FROM tab2 AS cor0
----
-27
-29
-42

query I rowsort
SELECT ( - tab2.col1 ) FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8968
SELECT col1 DIV - ( - col2 ) + tab1.col0 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8968
SELECT col1 / - ( - col2 ) + tab1.col0 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT cor0.col0 * - 18 + col2 AS col2 FROM tab2 cor0
----
-1378
-1384
-99

query I rowsort
SELECT col2 * col2 + tab2.col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT col0 * 64 AS col0 FROM tab1
----
192
4096
5120

query I rowsort
SELECT ALL - 70 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8973
SELECT ALL - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - ( + col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - ( 25 * - col0 ) AS col1 FROM tab1
----
1600
2000
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-8976
SELECT + col2 + cor0.col1 - + col1 DIV - 89 FROM tab0 cor0
----
119
174
99

skipif mysql # not compatible
query I rowsort label-8976
SELECT + col2 + cor0.col1 - + col1 / - 89 FROM tab0 cor0
----
119
174
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT col1 DIV 28 AS col1 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8977
SELECT col1 / 28 AS col1 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT - 65 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT + tab2.col0 + - 58 * - col2 AS col0 FROM tab2
----
1573
1586
2283

query I rowsort
SELECT 33 AS col2 FROM tab1
----
33
33
33

query I rowsort
SELECT ALL ( - col0 ) * col0 + - ( col2 + + cor0.col0 ) FROM tab2 cor0
----
-6188
-6358
-83

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + + col1 * col2 + 75 FROM tab2 AS cor0
----
1609
721
912

query I rowsort
SELECT ALL - + ( - col2 ) - + ( + col1 + col0 ) FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT + ( cor0.col2 ) + ( + col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + + 87 + col0 FROM tab2 AS cor0
----
165
166
94

query I rowsort
SELECT - col1 * + col0 - cor0.col1 FROM tab1 cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 84 + col0 FROM tab0 AS cor0
----
-49
-60
5

query I rowsort
SELECT + + cor0.col0 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8991
SELECT - col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT - col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

onlyif mysql # use DIV operator for integer division
query I rowsort label-8993
SELECT + tab0.col2 * ( col1 ) DIV - col1 + - ( + col1 ) AS col0 FROM tab0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-8993
SELECT + tab0.col2 * ( col1 ) / - col1 + - ( + col1 ) AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT + cor0.col0 * - ( 31 ) AS col0 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT + col1 * 21 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
170168
43368
71330

query I rowsort
SELECT DISTINCT + - col0 * - 83 FROM tab0 AS cor0
----
1992
2905
7387

query I rowsort
SELECT cor0.col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + + col1 * col0 * + 0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 * - 73 + col1 AS col1 FROM tab1 AS cor0
----
245
4682
5853

onlyif mysql # use DIV operator for integer division
query I rowsort label-9000
SELECT cor0.col0 DIV 93 + + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9000
SELECT cor0.col0 / 93 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL col2 - + 12 FROM tab1 AS cor0
----
42
45
84

query I rowsort
SELECT DISTINCT - 41 * cor0.col0 FROM tab1 AS cor0
----
-123
-2624
-3280

query I rowsort
SELECT DISTINCT + - 65 * col2 + - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-1944
-3718
-5472

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col0 + - col2 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1352
-1558
540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + 96 * - col1 + col0 + col1 AS col1 FROM tab2 cor0
----
-1536
-2938
-5527

query I rowsort
SELECT ALL - - ( 54 ) AS col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT + + cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col1 * ( + col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT - col1 * - 61 + cor0.col2 FROM tab1 AS cor0
----
1640
667
889

query I rowsort
SELECT ALL 91 * - col2 * 21 FROM tab1
----
-103194
-108927
-183456

query I rowsort
SELECT ALL 2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT - 8 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 50 ) col0 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9015
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * + 42 AS col2 FROM tab2 AS cor0
----
1092
1134
1596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 52 col2 FROM tab1 AS cor0
----
156
3328
4160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9018
SELECT DISTINCT - col2 + CAST( NULL AS DECIMAL ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - col2 + CAST ( NULL AS REAL ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9019
SELECT + - col0 DIV + ( + col2 ) FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-9019
SELECT + - col0 / + ( + col2 ) FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT - - cor0.col0 * ( - col0 + - col1 ) AS col0 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT col0 + - col0 * col0 AS col0 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT + 38 * - col1 + col1 FROM tab0 AS cor0
----
-3182
-3367
-3589

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9023
SELECT + - CAST( NULL AS SIGNED ) + 47 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9023
SELECT + - CAST ( NULL AS INTEGER ) + 47 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 72 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT + - 24 * - col0 AS col2 FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + 73 * - col1 AS col0 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT col1 * col0 * + 96 FROM tab0 cor0
----
198144
325920
777504

query I rowsort
SELECT - 59 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 + col1 col1 FROM tab1 AS cor0
----
104
107
120

query I rowsort
SELECT DISTINCT + + col2 + + col1 + 45 FROM tab1 AS cor0
----
112
125
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-9032
SELECT ALL + col0 + cor0.col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL + col0 + cor0.col2 / - col0 AS col0 FROM tab0 AS cor0
----
23
35
89

query I rowsort
SELECT 89 * col1 FROM tab1 AS cor0
----
1157
2314
890

query I rowsort
SELECT DISTINCT - 71 * col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-6020
-6370
-6790

query I rowsort
SELECT ALL - ( - col0 ) + + cor0.col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9036
SELECT - cor0.col0 DIV cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-9036
SELECT - cor0.col0 / cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9037
SELECT - 84 + col2 * CAST( - 86 AS SIGNED ) * - col1 col2 FROM tab2 AS cor0
----
131840
55472
71898

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9037
SELECT - 84 + col2 * CAST ( - 86 AS INTEGER ) * - col1 col2 FROM tab2 AS cor0
----
131840
55472
71898

query I rowsort
SELECT ALL - 60 - - col2 AS col2 FROM tab1 AS cor0
----
-3
-6
36

query I rowsort
SELECT DISTINCT + 62 * - col1 AS col2 FROM tab2 AS cor0
----
-1054
-1922
-3658

query I rowsort
SELECT + - 13 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT ALL col2 * col1 - ( + 42 ) FROM tab2 AS cor0
----
1492
604
795

query I rowsort
SELECT ALL - - col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 + - 44 FROM tab2 cor0
----
145
1984
2958

query I rowsort
SELECT + + col1 + - ( col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT cor0.col2 + 62 * - 33 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1, tab1 cor2
----
-1950
-1989
-1992

query I rowsort
SELECT DISTINCT - cor0.col1 - 2 AS col2 FROM tab2 AS cor0
----
-19
-33
-61

query I rowsort
SELECT ALL + cor0.col2 * col1 + + col2 + cor0.col1 * - 3 AS col1 FROM tab0 cor0
----
-193
2613
7271

query I rowsort
SELECT ALL + col1 * col0 + + col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT - 95 + col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2159
-3490
-8194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9050
SELECT CAST( - 77 AS SIGNED ) * - col0 + 73 FROM tab1 AS cor0
----
304
5001
6233

skipif mysql # not compatible
query I rowsort label-9050
SELECT CAST ( - 77 AS INTEGER ) * - col0 + 73 FROM tab1 AS cor0
----
304
5001
6233

query I rowsort
SELECT DISTINCT - - col0 * + col1 * + col1 AS col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9052
SELECT + CAST( ( cor0.col0 ) AS SIGNED ) + cor0.col0 FROM tab0 cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-9052
SELECT + CAST ( ( cor0.col0 ) AS INTEGER ) + cor0.col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL + col1 * col0 + col2 FROM tab1 cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9054
SELECT CAST( NULL AS SIGNED ) * + ( + col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT CAST ( NULL AS INTEGER ) * + ( + col1 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 29 * cor0.col1 FROM tab2 AS cor0
----
-1711
-493
-899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col2 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT - tab0.col2 + + 47 FROM tab0
----
-35
14
46

query I rowsort
SELECT col1 * 97 * tab2.col1 AS col2 FROM tab2
----
28033
337657
93217

query I rowsort
SELECT DISTINCT - 84 * + tab0.col1 + + col1 AS col2 FROM tab0
----
-7138
-7553
-8051

query I rowsort
SELECT - + 52 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9061
SELECT CAST( NULL AS SIGNED ) + 51 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT CAST ( NULL AS INTEGER ) + 51 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 93 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL - 20 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT cor0.col0 * - col1 * - col0 AS col1 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT + - col1 + 56 * 31 AS col1 FROM tab0 AS cor0
----
1639
1645
1650

query I rowsort
SELECT - + cor0.col0 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 69 * - col2 - col1 FROM tab1 AS cor0
----
3700
3923
6611

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9068
SELECT CAST( col0 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-9068
SELECT CAST ( col0 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL 32 + - col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
1072
110
672

query I rowsort
SELECT - - 89 - + 80 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-471
-6151
-6231

query I rowsort
SELECT DISTINCT - 45 + + col2 + col0 * ( - col2 ) FROM tab1 AS cor0
----
-153
-3636
-7629

query I rowsort
SELECT + col2 + + 29 FROM tab1
----
125
83
86

query I rowsort
SELECT - 57 + 2 + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1589
-701
-892

query I rowsort
SELECT 56 - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2860
-3193
-9160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9075
SELECT + CAST( + col0 AS SIGNED ) col2 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9075
SELECT + CAST ( + col0 AS INTEGER ) col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL - col2 * - 8 FROM tab0
----
264
656
8

query I rowsort
SELECT DISTINCT 38 FROM tab0, tab2 AS cor0
----
38

query I rowsort
SELECT ALL 64 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT + tab2.col2 * col1 * - col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT 78 FROM tab2, tab0 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ( - col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col1 + col0 * + col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT 3 * - 7 FROM tab1
----
-21
-21
-21

onlyif mysql # use DIV operator for integer division
query I rowsort label-9084
SELECT DISTINCT + ( - col0 + col2 ) DIV 28 col1 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT + ( - col0 + col2 ) / 28 col1 FROM tab0
----
-1
0

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ALL + col1 + col0 * + ( + col1 ) AS col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9087
SELECT DISTINCT - 28 DIV col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - 28 / col1 FROM tab2 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 14 * - col0 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - ( + col2 ) * ( col1 ) + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT 66 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT ALL + col1 + 73 * + col0 FROM tab2 AS cor0
----
542
5753
5784

query I rowsort
SELECT DISTINCT - cor0.col1 * 58 * col2 FROM tab2 AS cor0
----
-37468
-48546
-88972

query I rowsort
SELECT col1 + col1 * + 98 AS col0 FROM tab1 cor0
----
1287
2574
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-9096
SELECT + - col1 DIV - ( 17 ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9096
SELECT + - col1 / - ( 17 ) FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col0 * + col2 * + 72 - + col0 AS col0 FROM tab0
----
-2555
-525545
-57048

query I rowsort
SELECT ALL + 90 + + col0 AS col0 FROM tab0
----
114
125
179

query I rowsort
SELECT ALL + 10 * - cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2595a28433b465f0a1a88d4dcc215003

query I rowsort
SELECT - 74 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5a477330c946251f814fbbfd08e77c28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9101
SELECT DISTINCT 95 + + tab1.col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT 95 + + tab1.col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col2 + - col0 * 77 * col1 AS col1 FROM tab0
----
-158961
-261416
-623705

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9103
SELECT DISTINCT col2 * + CAST( 72 * - tab0.col2 AS SIGNED ) AS col1 FROM tab0
----
-484128
-72
-78408

skipif mysql # not compatible
query I rowsort label-9103
SELECT DISTINCT col2 * + CAST ( 72 * - tab0.col2 AS INTEGER ) AS col1 FROM tab0
----
-484128
-72
-78408

query I rowsort
SELECT ALL - col1 + ( - 71 ) FROM tab2 AS cor0
----
-102
-130
-88

query I rowsort
SELECT - cor0.col2 + col0 + - col2 AS col2 FROM tab2 cor0
----
-47
26
3

query I rowsort
SELECT + col0 * col2 * cor0.col1 - col2 FROM tab1 AS cor0
----
36423
4158
99744

query I rowsort
SELECT + + 18 + - 29 AS col0 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - - col2 * + col1 + col2 * - cor0.col0 * - col0 FROM tab2 AS cor0
----
159718
2160
237804

query I rowsort
SELECT ( col2 ) + ( 58 ) FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT DISTINCT + - 23 + + col2 AS col2 FROM tab1 AS cor0
----
31
34
73

query I rowsort
SELECT ALL 89 * - cor0.col2 + + col2 * col0 * - col1 AS col0 FROM tab0 AS cor0
----
-3484
-671416
-71049

query I rowsort
SELECT ALL - - 67 FROM tab2 cor0
----
67
67
67

query I rowsort
SELECT ALL 17 + - col2 FROM tab0 AS cor0
----
-16
-65
16

query I rowsort
SELECT DISTINCT - - 38 FROM tab1 AS cor0
----
38

query I rowsort
SELECT ALL + + col1 * - 30 FROM tab2 AS cor0
----
-1770
-510
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) - - col0 AS col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 + col2 col1 FROM tab0 AS cor0
----
38
6
87

query I rowsort
SELECT - - 64 * col1 * cor0.col2 FROM tab2 AS cor0
----
41344
53568
98176

query I rowsort
SELECT + 25 * 4 + - col0 * 68 * col1 + col2 FROM tab0 AS cor0
----
-140219
-230759
-550550

query I rowsort
SELECT DISTINCT col2 + + 82 + - col0 FROM tab1
----
133
75
98

query I rowsort
SELECT + ( + 93 ) * - col0 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT ALL - + 92 * - 26 AS col0 FROM tab1 cor0
----
2392
2392
2392

query I rowsort
SELECT DISTINCT - col0 * 41 + col0 FROM tab2 AS cor0
----
-280
-3120
-3160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9125
SELECT DISTINCT + + CAST( + 21 AS SIGNED ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9125
SELECT DISTINCT + + CAST ( + 21 AS INTEGER ) FROM tab1 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col2 col0 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT - 66 * + col2 * tab0.col1 + + 64 AS col2 FROM tab0
----
-187244
-492428
-6338

query I rowsort
SELECT DISTINCT - ( ( tab2.col2 ) ) * col2 AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + - cor0.col2 + + cor0.col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col0 * - ( col0 * col1 ) FROM tab0 AS cor0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 17 * + cor0.col2 * + col1 col2 FROM tab2 AS cor0
----
-10903
-14222
-26000

onlyif mysql # use DIV operator for integer division
query I rowsort label-9132
SELECT ALL - 55 DIV + col1 + ( + col0 ) - tab1.col0 FROM tab1
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-9132
SELECT ALL - 55 / + col1 + ( + col0 ) - tab1.col0 FROM tab1
----
-2
-4
-5

query I rowsort
SELECT - 95 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT - tab0.col2 + + ( + 44 ) AS col1 FROM tab0
----
-38
11
43

query I rowsort
SELECT ALL + tab2.col2 + - col1 * - col1 FROM tab2
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9136
SELECT col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9136
SELECT col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + 36 * - col2 + col2 * ( + 49 ) FROM tab1
----
1235
676
731

query I rowsort
SELECT + col1 + col0 * - ( + col0 ) * ( - 16 ) AS col1 FROM tab2
----
815
97403
99873

query I rowsort
SELECT DISTINCT + col0 + - ( col1 ) FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL - 25 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT - tab1.col0 - + col0 AS col2 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT col0 * 45 FROM tab0
----
1080
1575
4005

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9143
SELECT DISTINCT cor0.col2 * CAST( col1 AS SIGNED ) * - col2 + - 32 AS col1 FROM tab2 AS cor0
----
-22631
-24580
-39916

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT cor0.col2 * CAST ( col1 AS INTEGER ) * - col2 + - 32 AS col1 FROM tab2 AS cor0
----
-22631
-24580
-39916

query I rowsort
SELECT + col1 * - 78 + - col1 AS col2 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT ALL col2 * col0 + 55 * - col0 + 38 FROM tab2
----
-1305
-158
-2224

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT ALL + + col1 * 96 AS col2 FROM tab2 AS cor0
----
1632
2976
5664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9148
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + + col0 / col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + + col0 / col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col2 + + 48 * cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
30777
3798
50016

query I rowsort
SELECT ALL col0 + - col2 * 90 FROM tab2
----
-2262
-2423
-3341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 0 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9152
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 36 * - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 36 * - col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 52 * - col0 + - col1 + 83 col2 FROM tab2 AS cor0
----
11336
239328
69902

query I rowsort
SELECT 37 * col1 * tab0.col0 FROM tab0
----
125615
299663
76368

query I rowsort
SELECT + col0 * + col2 + + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - 17 * col0 + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
0
3276
98

query I rowsort
SELECT ALL + 89 * + col1 + col1 AS col0 FROM tab2 cor0
----
1530
2790
5310

query I rowsort
SELECT ALL - 56 * + col1 + - cor0.col1 * col1 * 79 + - col0 AS col2 FROM tab0 AS cor0
----
-589124
-659384
-748778

query I rowsort
SELECT - 70 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT ALL 56 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT + 37 + + col0 AS col1 FROM tab1
----
101
117
40

query I rowsort
SELECT - col2 + + col2 * - col1 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT - cor0.col1 + ( + tab1.col1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to d7e632a100c1d4cc2dc87e3e95c20f13

query I rowsort
SELECT + 39 + col2 FROM tab0
----
121
40
72

query I rowsort
SELECT col0 * + col1 * + col1 AS col0 FROM tab0 cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + col0 + col0 * col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT + 50 + - col1 * 90 FROM tab0 cor0
----
-7690
-8140
-8680

query I rowsort
SELECT ALL + ( col1 ) - + 3 * + ( col1 ) AS col2 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - 52 * col1 FROM tab1 AS cor0
----
-1352
-520
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - 85 - - 61 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d1286a9c27d434635ecef01106d538f7

query I rowsort
SELECT ALL col0 * col1 * - 22 AS col2 FROM tab2 AS cor0
----
-101244
-29546
-4774

query I rowsort
SELECT + col0 * ( - ( + col0 ) ) + col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT - col1 - - 96 AS col1 FROM tab1 AS cor0
----
70
83
86

query I rowsort
SELECT + col1 * col1 * cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
1064
17579
2277

query I rowsort
SELECT col1 * - ( - 62 ) + col0 + 77 FROM tab2 AS cor0
----
1210
2006
3813

query I rowsort
SELECT DISTINCT - col1 + col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - - col1 + 19 AS col2 FROM tab2 AS cor0
----
36
50
78

query I rowsort
SELECT - - cor0.col1 - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 + 38 * + col1 col2 FROM tab1 AS cor0
----
-3268
-7186
826

query I rowsort
SELECT ALL + col2 - col1 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT col0 - + tab2.col2 * col2 * col1 AS col2 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT tab1.col1 + col0 * + 7 * - col2 FROM tab1
----
-1108
-25526
-53747

query I rowsort
SELECT DISTINCT + 49 * col2 - + 61 AS col1 FROM tab2
----
1213
1262
1801

onlyif mysql # use DIV operator for integer division
query I rowsort label-9184
SELECT 26 DIV col0 + 71 AS col0 FROM tab1
----
71
71
79

skipif mysql # not compatible
query I rowsort label-9184
SELECT 26 / col0 + 71 AS col0 FROM tab1
----
71
71
79

query I rowsort
SELECT + tab1.col2 * - col1 AS col0 FROM tab1
----
-1248
-1404
-570

query III rowsort
SELECT * FROM tab0 WHERE - col0 / col2 = NULL
----

query I rowsort
SELECT - + col1 * - cor0.col2 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col1 * + col1 + + col0 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT + col0 + col1 * tab1.col2 AS col0 FROM tab1
----
1328
1407
634

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN cor0.col2 * + col2 + col1 AND NULL
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col1 + - tab2.col0 + col1 FROM tab2
----
-45
40
55

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col2 * + col1 )
----

query I rowsort
SELECT DISTINCT col2 + + col1 * tab0.col0 AS col0 FROM tab0
----
2097
3396
8181

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <= NULL
----

query I rowsort
SELECT - col1 * col2 AS col0 FROM tab2 AS cor0 WHERE col1 * + col2 NOT IN ( col2 )
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9197
SELECT col2 + - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-9197
SELECT col2 + - col2 / col2 AS col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + + col1 * - col1 + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-1010
-6530
-9565

onlyif mysql # use DIV operator for integer division
query I rowsort label-9199
SELECT - col2 * + col1 + col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
-2835
-7461
-95

skipif mysql # not compatible
query I rowsort label-9199
SELECT - col2 * + col1 + col1 / + col0 AS col0 FROM tab0 AS cor0
----
-2835
-7461
-95

query I rowsort
SELECT + - col1 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9201
SELECT ALL + - col2 * col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
104
18
8

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + - col2 * col2 / - col0 AS col1 FROM tab2 AS cor0
----
104
18
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9202
SELECT DISTINCT col0 + - col0 DIV col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT col0 + - col0 / col0 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 col1 FROM tab2, tab1 AS cor0
----
26
27
38

query I rowsort
SELECT + 0 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab2 cor2
----
243 values hashing to fa3d5b69e444df969b60da5e4c5c3507

query I rowsort
SELECT 67 * col2 AS col2 FROM tab2
----
1742
1809
2546

query I rowsort
SELECT - 33 * col2 + 32 FROM tab1 AS cor0
----
-1750
-1849
-3136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col0 ) + col0 * cor0.col2 col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - col1 - + tab1.col2 * tab1.col2 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT - - 58 + + col1 * - col0 FROM tab2 AS cor0
----
-1285
-159
-4544

query I rowsort
SELECT ALL + + 29 FROM tab1 cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - 9 * col0 AS col1 FROM tab1 AS cor0
----
-27
-576
-720

onlyif mysql # use DIV operator for integer division
query I rowsort label-9212
SELECT - - col0 * - col0 + + col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-4090
-6394
-9

skipif mysql # not compatible
query I rowsort label-9212
SELECT - - col0 * - col0 + + col0 / cor0.col1 AS col1 FROM tab1 AS cor0
----
-4090
-6394
-9

query I rowsort
SELECT 7 + - col0 * 68 AS col1 FROM tab2 AS cor0
----
-469
-5297
-5365

query I rowsort
SELECT ALL + col1 * col2 - 92 FROM tab1 cor0
----
1156
1312
478

query I rowsort
SELECT + tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - tab2.col2 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL + 77 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

onlyif mysql # use DIV operator for integer division
query I rowsort label-9218
SELECT + tab2.col1 * col0 + col1 DIV col1 AS col1 FROM tab2
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-9218
SELECT + tab2.col1 * col0 + col1 / col1 AS col1 FROM tab2
----
1344
218
4603

query I rowsort
SELECT - cor0.col2 * + 69 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 67c4c71905fce3565e1e5bd7a28a8850

query I rowsort
SELECT ALL + col1 * 17 AS col0 FROM tab2 AS cor0
----
1003
289
527

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9221
SELECT + col2 + + CAST( col1 + col0 AS SIGNED ) FROM tab2 AS cor0
----
134
163
65

skipif mysql # not compatible
query I rowsort label-9221
SELECT + col2 + + CAST ( col1 + col0 AS INTEGER ) FROM tab2 AS cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + + col1 * + col1 * tab0.col0 col0 FROM tab0
----
177537
329316
737091

query I rowsort
SELECT ALL + tab1.col0 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col1 FROM tab2
----
15
15
15

query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1 WHERE NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col2 FROM tab2
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + tab0.col2 * col2 col2 FROM tab0
----
14022
1881
36

query I rowsort
SELECT DISTINCT + col1 * - tab0.col1 * col0 AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL col1 * + tab2.col2 * col2 AS col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT col1 + + tab1.col2 * + tab1.col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT - tab0.col2 + - col2 * col0 - tab0.col1 FROM tab0
----
-133
-7471
-911

query I rowsort
SELECT col1 * col2 + + col0 * - col2 AS col2 FROM tab2
----
-2356
-494
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT ALL + col0 - tab1.col1 DIV col0 col0 FROM tab1
----
-5
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9233
SELECT ALL + col0 - tab1.col1 / col0 col0 FROM tab1
----
-5
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * - col0 - + col1 * col0 col1 FROM tab1
----
-102
-1223
-1984

onlyif mysql # use DIV operator for integer division
query I rowsort label-9235
SELECT DISTINCT - tab2.col0 * tab2.col1 DIV - col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - tab2.col0 * tab2.col1 / - col0 FROM tab2
----
17
31
59

query I rowsort
SELECT tab0.col2 * col0 + + col1 * - col1 FROM tab0
----
-6604
-9374
-983

query I rowsort
SELECT ALL - col1 * - col1 * tab0.col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col1 AS col0 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 + col2 col1 FROM tab0
----
63
84
95

query I rowsort
SELECT col1 + tab0.col0 + + col1 * + col1 FROM tab0
----
7506
8461
9541

query I rowsort
SELECT - ( - col2 ) + - col0 + + 72 AS col1 FROM tab0
----
38
65
81

query I rowsort
SELECT - col1 * tab1.col0 * + 4 + col2 * tab1.col1 FROM tab1
----
-1990
-2912
1092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * col2 - - tab0.col2 col1 FROM tab0
----
611966
93687
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9244
SELECT DISTINCT + col0 * col0 / + CAST( NULL AS SIGNED ) + + col2 * col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9244
SELECT DISTINCT + col0 * col0 / + CAST ( NULL AS INTEGER ) + + col2 * col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 52 * + col0 FROM tab0
----
1248
1820
4628

query I rowsort
SELECT ( - col1 ) * - col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - - col1 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + cor0.col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - 43 * - col1 AS col2 FROM tab1 cor0
----
1118
430
559

query I rowsort
SELECT DISTINCT - - 37 * col0 * + cor0.col1 FROM tab1 AS cor0
----
23680
2886
38480

onlyif mysql # use DIV operator for integer division
query I rowsort label-9252
SELECT col2 DIV 51 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9252
SELECT col2 / 51 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 * ( 68 * col1 + cor0.col0 ) FROM tab0 AS cor0
----
504992
571207
643207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9254
SELECT ALL + col1 * - CAST( + cor0.col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + col1 * - CAST ( + cor0.col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT - col0 DIV 87 + col2 * + col0 + col0 * col1 AS col0 FROM tab2 AS cor0
----
406
4345
6630

skipif mysql # not compatible
query I rowsort label-9255
SELECT - col0 / 87 + col2 * + col0 + col0 * col1 AS col0 FROM tab2 AS cor0
----
406
4345
6630

onlyif mysql # use DIV operator for integer division
query I rowsort label-9256
SELECT ALL - + col2 + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - + col2 + col0 / col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9257
SELECT DISTINCT - col1 DIV - 99 + 73 AS col2 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT - col1 / - 99 + 73 AS col2 FROM tab1 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 - - cor0.col2 * col0 col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + + col2 * ( col1 ) * - col0 + col0 AS col2 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT cor0.col0 * + 10 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9262
SELECT DISTINCT col2 DIV + col0 + tab2.col0 DIV col0 AS col2 FROM tab2
----
1
4

skipif mysql # not compatible
query I rowsort label-9262
SELECT DISTINCT col2 / + col0 + tab2.col0 / col0 AS col2 FROM tab2
----
1
4

query I rowsort
SELECT ( + tab0.col2 ) + col2 * + col2 AS col0 FROM tab0
----
1122
2
6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9264
SELECT + ( + col2 ) * CAST( NULL AS SIGNED ) + - tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT + ( + col2 ) * CAST ( NULL AS INTEGER ) + - tab2.col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 * + col2 ) FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + + col1 + + 94 * + col2 AS col0 FROM tab0 AS cor0
----
191
3188
7799

query I rowsort
SELECT + col1 * + 51 * col1 AS col1 FROM tab2 AS cor0
----
14739
177531
49011

query I rowsort
SELECT ALL - col1 * - cor0.col2 - - col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + col2 * + ( cor0.col1 ) AS col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9270
SELECT DISTINCT - col2 + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-52
-89

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - col2 + col2 / col1 AS col2 FROM tab1 AS cor0
----
-52
-89

query I rowsort
SELECT ALL + + cor0.col0 * + 59 AS col0 FROM tab2 AS cor0
----
413
4602
4661

query I rowsort
SELECT DISTINCT col2 + + 68 * col2 + 47 * - col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-27740
-37476
-70304

query I rowsort
SELECT - 76 * + 85 FROM tab0 AS cor0
----
-6460
-6460
-6460

query I rowsort
SELECT DISTINCT 41 * col2 FROM tab2 AS cor0
----
1066
1107
1558

onlyif mysql # use DIV operator for integer division
query I rowsort label-9275
SELECT DISTINCT + col1 DIV + 65 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT + col1 / + 65 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + + 4 + + col0 AS col1 FROM tab0 AS cor0
----
28
39
93

query I rowsort
SELECT DISTINCT + - ( 6 ) FROM tab1 AS cor0
----
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT DISTINCT - ( col2 ) DIV - col2 AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT - ( col2 ) / - col2 AS col2 FROM tab1 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9279
SELECT DISTINCT + ( + col0 ) + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + ( + col0 ) + col0 / col2 AS col2 FROM tab1 AS cor0
----
3
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col2 col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL col1 * col2 - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT DISTINCT ( - 65 ) * col0 FROM tab2 AS cor0
----
-455
-5070
-5135

query I rowsort
SELECT ALL + ( - ( col0 ) ) * col1 * + col0 - + col1 FROM tab0 AS cor0
----
-118922
-49622
-720902

query I rowsort
SELECT + ( col1 ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - - col2 * col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT - col1 * col1 + 21 FROM tab0 AS cor0
----
-7375
-8260
-9388

query I rowsort
SELECT ALL + + 68 + col0 AS col2 FROM tab2 AS cor0
----
146
147
75

query I rowsort
SELECT - cor0.col2 * - 86 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to bb3503b5a000edf5bf7db0d3489b5d2a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9289
SELECT + + col2 DIV + col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9289
SELECT + + col2 / + col1 + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9290
SELECT DISTINCT - + col1 + + cor0.col1 DIV col2 + - col0 AS col2 FROM tab0 AS cor0
----
-108
-179
-35

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT - + col1 + + cor0.col1 / col2 + - col0 AS col2 FROM tab0 AS cor0
----
-108
-179
-35

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT ALL - cor1.col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5

query I rowsort
SELECT ALL + tab1.col1 - + col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + col2 + col0 + - col0 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 - col2 col1 FROM tab1
----
-125
-83
-86

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf

query I rowsort
SELECT + - col0 - + col2 * col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - col2 + col0 - col2 AS col1 FROM tab2 AS cor0
----
-47
26
3

query I rowsort
SELECT ALL - + 82 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT + cor0.col2 - - cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + 78 + col1 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
235
343
808

query I rowsort
SELECT ( - col2 ) * col1 * + col0 + - col1 + col0 AS col2 FROM tab2 AS cor0
----
-119633
-50972
-5883

query I rowsort
SELECT ( + col1 + + tab1.col2 ) FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9304
SELECT DISTINCT + col2 DIV + 55 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT + col2 / + 55 AS col0 FROM tab2
----
0

query I rowsort
SELECT col2 * tab2.col1 * + col0 + col0 + col1 AS col0 FROM tab2
----
119789
51130
5897

query I rowsort
SELECT DISTINCT - col2 * + col2 + - tab2.col0 * col1 + col2 FROM tab2
----
-2749
-5252
-919

onlyif mysql # use DIV operator for integer division
query I rowsort label-9307
SELECT + cor0.col2 DIV col2 + cor0.col1 - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1234
-1377
-559

skipif mysql # not compatible
query I rowsort label-9307
SELECT + cor0.col2 / col2 + cor0.col1 - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1234
-1377
-559

query I rowsort
SELECT ALL - col2 + col0 * + cor0.col2 * col1 FROM tab1 AS cor0
----
36423
4158
99744

query I rowsort
SELECT cor0.col0 - col0 * col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT col0 * 60 - - 34 FROM tab0
----
1474
2134
5374

query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL + + ( - cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - tab0.col1 + - ( ( col2 ) ) FROM tab0
----
-119
-173
-98

query I rowsort
SELECT - tab2.col2 - + 2 FROM tab2, tab2 cor0
----
9 values hashing to 49fa82bf64a1ddb317e19fbb266e7b59

query I rowsort
SELECT DISTINCT + 90 * + col0 AS col2 FROM tab0
----
2160
3150
8010

query I rowsort
SELECT ( 31 + - col0 ) AS col0 FROM tab0
----
-4
-58
7

query I rowsort
SELECT DISTINCT + col0 * ( cor0.col1 ) * + col1 AS col2 FROM tab1 cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9319
SELECT + 64 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
2
4
6

skipif mysql # not compatible
query I rowsort label-9319
SELECT + 64 / cor0.col1 AS col1 FROM tab1 AS cor0
----
2
4
6

query I rowsort
SELECT - col0 * - 2 AS col2 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9321
SELECT ALL CAST( col2 AS SIGNED ) * col0 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL CAST ( col2 AS INTEGER ) * col0 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col2 col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - cor0.col0 + - 73 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e16f2dcf5b35bdf4af12858788454aac

query I rowsort
SELECT + 83 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9325
SELECT - CAST( + col0 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort label-9325
SELECT - CAST ( + col0 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL 49 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL col1 + - 1 + - tab0.col2 AS col1 FROM tab0
----
52
8
95

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 cor0, tab0 cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT ALL + cor0.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + - col0 + + ( col1 ) col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col0 FROM tab0, tab0 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * + col1 col2 FROM tab2
----
1711
493
899

query I rowsort
SELECT + cor0.col0 * - col2 * ( col1 * + col0 ) - + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-118824
-1634655
-59106420

query I rowsort
SELECT - col0 * - col2 * col0 + + cor0.col0 * 2 FROM tab0 AS cor0
----
1295
19056
649700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + 59 col2 FROM tab2 AS cor0
----
0
28
42

query I rowsort
SELECT + - col0 + - ( col1 * - cor0.col0 ) FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + col0 + + col2 * tab1.col0 AS col2 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9338
SELECT col2 - + col0 DIV 1 FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-9338
SELECT col2 - + col0 / 1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT col2 * - tab1.col2 + + col2 - tab1.col2 AS col1 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 - + col1 * col0 col2 FROM tab0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT DISTINCT tab1.col0 DIV 47 + col1 - + tab1.col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT tab1.col0 / 47 + col1 - + tab1.col1 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT col2 + + col0 * 63 * col2 FROM tab1
----
10260
229881
483936

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9344
SELECT ALL col1 * CAST( - 82 AS SIGNED ) FROM tab1 AS cor0
----
-1066
-2132
-820

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL col1 * CAST ( - 82 AS INTEGER ) FROM tab1 AS cor0
----
-1066
-2132
-820

query I rowsort
SELECT col0 * ( + col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT + 41 + + col1 AS col0 FROM tab0 AS cor0
----
127
132
138

query I rowsort
SELECT DISTINCT + + 92 * ( + col2 ) FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT col1 * - col2 * + col1 + + 52 FROM tab0 AS cor0
----
-244016
-678990
-9357

query I rowsort
SELECT - cor0.col2 * col2 + - col0 * col0 * + col2 FROM tab2 AS cor0
----
-158860
-2052
-238602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9351
SELECT ALL - CAST( col2 AS SIGNED ) + col0 col1 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL - CAST ( col2 AS INTEGER ) + col0 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + cor0.col2 - col2 * cor0.col0 * + ( 23 * - col2 ) FROM tab1 cor0
----
16957536
201258
4782585

query I rowsort
SELECT DISTINCT ( 20 ) + col2 FROM tab2 AS cor0
----
46
47
58

query I rowsort
SELECT ALL - + 65 * 70 AS col2 FROM tab2 cor0
----
-4550
-4550
-4550

query I rowsort
SELECT DISTINCT + ( + col2 ) * col2 + + col1 + col1 AS col2 FROM tab2 AS cor0
----
1478
791
794

query I rowsort
SELECT ( 21 ) * + col1 + cor0.col2 AS col2 FROM tab0 cor0
----
1839
1993
2038

query I rowsort
SELECT DISTINCT col0 * col0 * + col2 - col0 FROM tab0
----
1190
18984
649433

onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT ALL - + col1 * - ( col0 ) + - col0 DIV + col1 + + col1 DIV ( - col1 ) FROM tab1 AS cor0
----
1033
633
77

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL - + col1 * - ( col0 ) + - col0 / + col1 + + col1 / ( - col1 ) FROM tab1 AS cor0
----
1033
633
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9359
SELECT + CAST( col0 AS SIGNED ) * col2 + 16 DIV - col1 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-9359
SELECT + CAST ( col0 AS INTEGER ) * col2 + 16 / - col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT 67 * + cor0.col2 + - cor0.col1 FROM tab2 AS cor0
----
1683
1778
2529

query I rowsort
SELECT DISTINCT - 28 FROM tab0, tab0 AS cor0
----
-28

query I rowsort
SELECT DISTINCT - - 76 * + col0 + + col1 AS col0 FROM tab0 AS cor0
----
1910
2757
6855

query I rowsort
SELECT + - cor0.col1 + - col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + - 26 AS col1 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT ( 90 + col2 ) FROM tab1
----
144
147
186

query I rowsort
SELECT ALL + cor0.col0 * - col1 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT + ( cor0.col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9368
SELECT DISTINCT + col0 * col0 DIV 12 FROM tab0 AS cor0
----
102
48
660

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT + col0 * col0 / 12 FROM tab0 AS cor0
----
102
48
660

query I rowsort
SELECT cor0.col0 + + 96 FROM tab0 AS cor0
----
120
131
185

query I rowsort
SELECT DISTINCT + col1 + col2 * col2 * col0 AS col2 FROM tab1 AS cor0
----
207946
737293
8774

query I rowsort
SELECT DISTINCT + col1 * - tab0.col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9372
SELECT col2 DIV col1 + + col1 * 57 AS col1 FROM tab0
----
4902
5187
5529

skipif mysql # not compatible
query I rowsort label-9372
SELECT col2 / col1 + + col1 * 57 AS col1 FROM tab0
----
4902
5187
5529

query I rowsort
SELECT ALL - 60 + - col1 - col2 AS col1 FROM tab1
----
-127
-140
-169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col0 * - 67 * 21 col0 FROM tab0 AS cor0
----
-125141
-33735
-49244

query I rowsort
SELECT - 54 AS col2 FROM tab1 AS cor0
----
-54
-54
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9376
SELECT ALL - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 4 + + tab0.col2 ) * col0 AS col2 FROM tab0
----
175
7654
888

query I rowsort
SELECT + col0 + col0 + col2 AS col2 FROM tab0
----
260
71
81

query I rowsort
SELECT DISTINCT 25 + + col0 * - col0 AS col0 FROM tab2
----
-24
-6059
-6216

query I rowsort
SELECT DISTINCT + + 25 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-2236
-2366
-2522

query I rowsort
SELECT + 21 - - col2 FROM tab0 AS cor0
----
103
22
54

query I rowsort
SELECT ALL 80 + + col1 * + col2 FROM tab0 cor0
----
177
2918
7542

query I rowsort
SELECT DISTINCT + + ( - col0 ) + 50 FROM tab1 AS cor0
----
-14
-30
47

query I rowsort
SELECT ALL cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - - 87 * col2 FROM tab0 AS cor0
----
2871
7134
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9386
SELECT + col0 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT + col0 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9387
SELECT DISTINCT - + col2 DIV - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT - + col2 / - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT DISTINCT col0 * col1 + 64 * col0 AS col2 FROM tab0 AS cor0
----
13795
3600
5635

query I rowsort
SELECT col2 * 41 + tab0.col0 FROM tab0
----
1377
3451
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9390
SELECT + - col1 + - CAST( col2 AS SIGNED ) FROM tab2 cor0
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-9390
SELECT + - col1 + - CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9391
SELECT DISTINCT cor0.col1 + + col1 DIV + 11 + - col2 * + col1 col0 FROM tab2 AS cor0
----
-1470
-628
-804

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT cor0.col1 + + col1 / + 11 + - col2 * + col1 col0 FROM tab2 AS cor0
----
-1470
-628
-804

query I rowsort
SELECT DISTINCT col2 * 21 AS col1 FROM tab1 cor0
----
1134
1197
2016

onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT DISTINCT + col0 - 5 DIV - 99 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT + col0 - 5 / - 99 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9394
SELECT DISTINCT + col0 * - ( + col1 ) + + col2 DIV + ( col1 ) + col0 * col1 * - 71 AS col1 FROM tab1 AS cor0
----
-46075
-5614
-74873

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT + col0 * - ( + col1 ) + + col2 / + ( col1 ) + col0 * col1 * - 71 AS col1 FROM tab1 AS cor0
----
-46075
-5614
-74873

query I rowsort
SELECT ALL cor0.col2 * - col1 - - 22 FROM tab2 AS cor0
----
-1512
-624
-815

query I rowsort
SELECT ALL ( col2 ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT DISTINCT ( 95 ) AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
95

query I rowsort
SELECT DISTINCT + 46 * + ( col0 ) AS col1 FROM tab2 cor0
----
322
3588
3634

query I rowsort
SELECT DISTINCT + - 73 * col0 AS col0 FROM tab0 AS cor0
----
-1752
-2555
-6497

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9401
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * + 58 AS col0 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT DISTINCT - + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col2 * col1 + - col1 AS col1 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT 89 + - col0 AS col1 FROM tab2 AS cor0
----
10
11
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9407
SELECT CAST( - 45 AS SIGNED ) + col0 col1 FROM tab2 cor0
----
-38
33
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9407
SELECT CAST ( - 45 AS INTEGER ) + col0 col1 FROM tab2 cor0
----
-38
33
34

query I rowsort
SELECT - col2 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL col1 * cor0.col1 - - col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ( - 52 ) FROM tab2 cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 + cor0.col1 col1 FROM tab1 AS cor0
----
-4
-7
9

query I rowsort
SELECT ALL - - cor0.col1 + col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9413
SELECT ALL CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL CAST ( NULL AS REAL ) * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 39 + - 61 AS col1 FROM tab1 AS cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 - - col0 col2 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT + - ( col0 ) * col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 76 * - col1 AS col1 FROM tab1 AS cor0
----
-1976
-760
-988

query I rowsort
SELECT - + ( - col1 ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + - 1 * col2 * + col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT cor0.col0 * - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT 40 + + col0 FROM tab2 AS cor0
----
118
119
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col2 FROM tab1 AS cor0
----
-37
-37
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-9424
SELECT + 68 * cor0.col0 + 52 DIV 16 col0 FROM tab1, tab2 cor0, tab2, tab0 AS cor1
----
81 values hashing to d609c496bbb1d8ff9f5ba8db6fe65a73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9424
SELECT + 68 * cor0.col0 + 52 / 16 col0 FROM tab1, tab2 cor0, tab2, tab0 AS cor1
----
81 values hashing to d609c496bbb1d8ff9f5ba8db6fe65a73

query I rowsort
SELECT DISTINCT 43 FROM tab0, tab1 AS cor0, tab1 cor1
----
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9426
SELECT ALL CAST( ( + col0 ) AS SIGNED ) * - col2 FROM tab2
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL CAST ( ( + col0 ) AS INTEGER ) * - col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL 8 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT + col2 + - col0 * + col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-9429
SELECT cor0.col0 + - col1 DIV 4 col0 FROM tab1 cor0
----
-3
62
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9429
SELECT cor0.col0 + - col1 / 4 col0 FROM tab1 cor0
----
-3
62
77

query I rowsort
SELECT ALL - col1 + - 79 FROM tab0 AS cor0
----
-165
-170
-176

query I rowsort
SELECT + 48 * cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d2ac90c6470cf978123c34f95db5d8

query I rowsort
SELECT - col0 * - col1 + + 7 FROM tab0 AS cor0
----
2071
3402
8106

query I rowsort
SELECT DISTINCT - col0 * 3 AS col1 FROM tab2
----
-21
-234
-237

query I rowsort
SELECT - col1 * col1 + + 50 * col1 AS col0 FROM tab2 AS cor0
----
-531
561
589

query I rowsort
SELECT DISTINCT + - col1 + + col0 * - col1 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9437
SELECT DISTINCT + + cor0.col2 DIV - 28 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT + + cor0.col2 / - 28 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT + col1 * 58 + - tab0.col1 AS col2 FROM tab0
----
4902
5187
5529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 46 ) col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT - + cor0.col2 + - col1 * 94 * + 28 FROM tab0 cor0
----
-226385
-239594
-255305

query I rowsort
SELECT col1 + + col1 * 94 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT - col0 * + col2 * col0 - - col2 FROM tab0 AS cor0
----
-1224
-18975
-649440

onlyif mysql # use DIV operator for integer division
query I rowsort label-9443
SELECT cor0.col0 + + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-9443
SELECT cor0.col0 + + col2 / - col2 AS col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL - col1 + col2 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1501
667
833

query I rowsort
SELECT + ( 61 ) * col1 FROM tab0
----
5246
5551
5917

query I rowsort
SELECT col1 * cor0.col1 + 2 AS col0 FROM tab1 AS cor0
----
102
171
678

onlyif mysql # use DIV operator for integer division
query I rowsort label-9447
SELECT col0 * - col0 + + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1322
-578
-7922

skipif mysql # not compatible
query I rowsort label-9447
SELECT col0 * - col0 + + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-1322
-578
-7922

query I rowsort
SELECT ALL col2 * + col0 * cor0.col0 - + col1 AS col1 FROM tab1 cor0
----
233462
460
614387

query I rowsort
SELECT cor0.col2 * - col0 + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - col1 * + 95 col2 FROM tab2 AS cor0
----
-1577
-2918
-5579

query I rowsort
SELECT DISTINCT + col0 * col0 + 52 FROM tab0 AS cor0
----
1277
628
7973

query I rowsort
SELECT - col0 + col2 * - col0 * - col0 FROM tab0 cor0
----
1190
18984
649433

query I rowsort
SELECT + 61 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT ALL 55 - col2 FROM tab0
----
-27
22
54

query I rowsort
SELECT - col1 * col2 * - ( + ( + col0 ) * col1 ) AS col2 FROM tab1
----
109512
1297920
364800

query I rowsort
SELECT ALL + 49 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # use DIV operator for integer division
query I rowsort label-9457
SELECT + + 61 DIV + col0 FROM tab2 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9457
SELECT + + 61 / + col0 FROM tab2 AS cor0
----
0
0
8

query I rowsort
SELECT + + 62 * col0 FROM tab2 AS cor0
----
434
4836
4898

onlyif mysql # use DIV operator for integer division
query I rowsort label-9459
SELECT ALL - ( + col1 ) + - col0 DIV col2 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - ( + col1 ) + - col0 / col2 FROM tab1 AS cor0
----
-11
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9460
SELECT ALL + col1 DIV - tab1.col0 AS col1 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + col1 / - tab1.col0 AS col1 FROM tab1
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col0 FROM tab2
----
46
46
46

query I rowsort
SELECT ALL ( - 28 ) AS col0 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT col2 * col2 * col2 AS col0 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT ALL col2 * 70 AS col0 FROM tab2
----
1820
1890
2660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) + + col2 col0 FROM tab1
----
121
176
57

query I rowsort
SELECT col0 + + 3 * + tab1.col0 * - ( - 90 ) FROM tab1
----
17344
21680
813

query I rowsort
SELECT DISTINCT + 17 AS col2 FROM tab1, tab0 AS cor0
----
17

query I rowsort
SELECT - col0 * col0 + 20 - - 39 FROM tab0 AS cor0
----
-1166
-517
-7862

query I rowsort
SELECT DISTINCT + col2 * col0 + 78 FROM tab0
----
113
7376
870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9470
SELECT - col0 * tab0.col0 + CAST( NULL AS DECIMAL ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT - col0 * tab0.col0 + CAST ( NULL AS REAL ) + - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 77 + col2 AS col1 FROM tab1 AS cor0
----
-20
-23
19

query I rowsort
SELECT DISTINCT col1 * col1 + + 93 FROM tab2 AS cor0
----
1054
3574
382

query I rowsort
SELECT ALL + - 91 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-2184
-3185
-8099

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col2 + + col2 * col2 * col0 FROM tab2 AS cor0
----
114114
5130
52754

query I rowsort
SELECT ALL - - col2 * - col1 + 46 * col0 * 3 AS col2 FROM tab0 AS cor0
----
4733
474
4820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9477
SELECT DISTINCT + col1 + - CAST( - col2 AS SIGNED ) * col0 AS col0 FROM tab0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-9477
SELECT DISTINCT + col1 + - CAST ( - col2 AS INTEGER ) * col0 AS col0 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-9478
SELECT col2 + + col0 DIV + cor0.col2 FROM tab1 cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-9478
SELECT col2 + + col0 / + cor0.col2 FROM tab1 cor0
----
54
58
96

query I rowsort
SELECT ALL + - ( + col1 ) - - col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT ( - col1 ) * - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9481
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) / - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT - - CAST ( NULL AS REAL ) / - col1 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9482
SELECT DISTINCT - cor0.col0 + - col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT - cor0.col0 + - col0 / - col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab2 AS cor0
----
40

query I rowsort
SELECT DISTINCT col0 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL 6 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

onlyif mysql # use DIV operator for integer division
query I rowsort label-9486
SELECT DISTINCT + col1 DIV - col0 + col2 FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-9486
SELECT DISTINCT + col1 / - col0 + col2 FROM tab1 AS cor0
----
46
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9487
SELECT - - CAST( - ( - col0 ) AS SIGNED ) * + ( + 68 * - col2 ) AS col1 FROM tab0 AS cor0
----
-2380
-496264
-53856

skipif mysql # not compatible
query I rowsort label-9487
SELECT - - CAST ( - ( - col0 ) AS INTEGER ) * + ( + 68 * - col2 ) AS col1 FROM tab0 AS cor0
----
-2380
-496264
-53856

query I rowsort
SELECT DISTINCT + 92 + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
127
7390
884

query I rowsort
SELECT ALL + ( 7 ) * cor0.col2 FROM tab1 AS cor0
----
378
399
672

onlyif mysql # use DIV operator for integer division
query I rowsort label-9490
SELECT col2 * 94 DIV - col1 AS col1 FROM tab0 AS cor0
----
-36
-84
0

skipif mysql # not compatible
query I rowsort label-9490
SELECT col2 * 94 / - col1 AS col1 FROM tab0 AS cor0
----
-36
-84
0

query I rowsort
SELECT ALL - col1 * - ( + col2 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9492
SELECT DISTINCT + col0 DIV ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9492
SELECT DISTINCT + col0 / ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + + 81 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT + - col0 * 83 AS col1 FROM tab2 AS cor0
----
-581
-6474
-6557

query I rowsort
SELECT + col0 * + 25 FROM tab1 AS cor0
----
1600
2000
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT col1 DIV - col0 + col2 AS col1 FROM tab0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-9496
SELECT col1 / - col0 + col2 AS col1 FROM tab0
----
-1
30
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9497
SELECT col1 DIV + col0 + + col0 AS col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-9497
SELECT col1 / + col0 + + col0 AS col0 FROM tab2 AS cor0
----
11
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9498
SELECT ALL - col2 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL - col2 - + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col0 + 77 FROM tab2
----
111
181
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col2 * - col0 * col2 + + col2 AS col2 FROM tab2
----
-114038
-5076
-52702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col0 FROM tab2, tab1 AS cor0
----
-17

query I rowsort
SELECT DISTINCT col2 + - col1 + - col0 * 17 * ( + col0 ) FROM tab1
----
-108717
-125
-69585

query I rowsort
SELECT DISTINCT - + col2 + col2 * - col2 FROM tab2 cor0
----
-1482
-702
-756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9505
SELECT ALL + + 92 + - cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + + 92 + - cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col2 + - col1 + + col2 FROM tab0
----
-1142
-6733
-97

query I rowsort
SELECT DISTINCT - 39 FROM tab0, tab1, tab1 cor0
----
-39

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) * + col0 * + col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT 43 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 AS cor0 WHERE NULL NOT IN ( tab0.col2 )
----

query I rowsort
SELECT ALL 91 + 54 FROM tab0
----
145
145
145

query I rowsort
SELECT col0 * - col1 + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT - 15 + cor0.col1 FROM tab2 AS cor0
----
16
2
44

query I rowsort
SELECT ALL + 78 * col1 AS col1 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT DISTINCT - + 60 AS col2 FROM tab2 cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9517
SELECT + col1 + cor0.col1 * + col1 + - col2 DIV - cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506

skipif mysql # not compatible
query I rowsort label-9517
SELECT + col1 + cor0.col1 * + col1 + - col2 / - cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 * - cor0.col0 FROM tab2 cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-9519
SELECT DISTINCT + col1 DIV - col1 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9519
SELECT DISTINCT + col1 / - col1 AS col2 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab2
----
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT ALL - + col2 DIV + cor0.col1 + + ( - col2 + - col2 ) AS col0 FROM tab1 AS cor0
----
-110
-119
-199

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - + col2 / + cor0.col1 + + ( - col2 + - col2 ) AS col0 FROM tab1 AS cor0
----
-110
-119
-199

query I rowsort
SELECT ALL 89 AS col1 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT - tab1.col0 * + col1 * - 69 FROM tab1
----
44160
5382
71760

query I rowsort
SELECT + col0 * - 12 * + col2 AS col0 FROM tab1 cor0
----
-1944
-43776
-92160

query I rowsort
SELECT DISTINCT col1 * ( col1 ) AS col2 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col2 FROM tab0, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9527
SELECT - - col0 DIV + col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9527
SELECT - - col0 / + col0 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + 44 col2 FROM tab2 AS cor0
----
148
161
78

query I rowsort
SELECT - + col0 + + ( + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9530
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 93 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 93 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT ( tab2.col0 + col1 * tab2.col1 ) FROM tab2
----
3559
368
968

query I rowsort
SELECT ( - col1 ) - + col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL + + col1 + col0 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + col0 + + ( col0 ) AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - 18 + - col0 AS col2 FROM tab0 cor0
----
-107
-42
-53

query I rowsort
SELECT DISTINCT col0 * 30 AS col1 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT + + cor0.col2 * + col1 + + 41 + col2 * col0 AS col2 FROM tab0 AS cor0
----
14801
173
3671

query I rowsort
SELECT + + ( + col2 ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9541
SELECT ( 51 ) DIV - col0 FROM tab2
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-9541
SELECT ( 51 ) / - col0 FROM tab2
----
-7
0
0

query I rowsort
SELECT + cor0.col1 + cor0.col0 * 13 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 52e0d3a368495526d1f05888f4596072

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9543
SELECT DISTINCT CAST( NULL AS SIGNED ) + tab1.col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT CAST ( NULL AS INTEGER ) + tab1.col0 FROM tab1
----
NULL

query I rowsort
SELECT - - col2 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 * 1 + col0 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT + 21 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-9547
SELECT - col1 * 39 DIV col2 - + tab1.col2 * col0 col2 FROM tab1
----
-180
-3654
-7685

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9547
SELECT - col1 * 39 / col2 - + tab1.col2 * col0 col2 FROM tab1
----
-180
-3654
-7685

query I rowsort
SELECT - + cor0.col0 + col0 * col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - + col2 * 43 AS col0 FROM tab0 AS cor0
----
-1419
-3526
-43

query I rowsort
SELECT - cor0.col0 + cor0.col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - cor0.col0 * - 81 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1d133675d4a169d1d72f25d8f68a4292

query I rowsort
SELECT + - 26 + col0 AS col1 FROM tab2 AS cor0
----
-19
52
53

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT - - col1 * col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT + + 52 + cor0.col2 FROM tab2 AS cor0
----
78
79
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL + col1 * - 25 AS col0 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT DISTINCT 9 * tab2.col1 AS col0 FROM tab2
----
153
279
531

query I rowsort
SELECT DISTINCT 68 * - tab1.col1 AS col2 FROM tab1
----
-1768
-680
-884

query I rowsort
SELECT ALL col0 + 13 * - col1 + - col1 FROM tab2 AS cor0
----
-159
-427
-748

query I rowsort
SELECT ALL - col2 + + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT 57 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9564
SELECT DISTINCT col2 DIV - 58 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT col2 / - 58 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL + col1 * - cor0.col2 + + col0 * col2 * ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
156650
236512
486

query I rowsort
SELECT ALL + col0 * - 71 * + col0 FROM tab1 AS cor0
----
-290816
-454400
-639

query I rowsort
SELECT + 17 + 3 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 8550664862df5be7a3d3f6037537d2d8

query I rowsort
SELECT DISTINCT - 83 FROM tab1, tab2 AS cor0
----
-83

query I rowsort
SELECT tab2.col0 - col2 * 7 FROM tab2
----
-104
-182
-187

onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT ALL - tab0.col0 DIV - 61 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL - tab0.col0 / - 61 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT - col0 + ( + col1 ) * + col0 AS col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - col0 * - col2 * - 5 AS col2 FROM tab0 AS cor0
----
-175
-36490
-3960

query I rowsort
SELECT ALL + col0 + ( - ( + col0 ) ) * + col1 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL - 9 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT ALL col1 * 98 AS col2 FROM tab1
----
1274
2548
980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9577
SELECT CAST( NULL AS SIGNED ) * - col1 col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9577
SELECT CAST ( NULL AS INTEGER ) * - col1 col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9578
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL + + col0 * - col0 + + 72 * 6 AS col1 FROM tab2 cor0
----
-5652
-5809
383

query I rowsort
SELECT DISTINCT 77 + - col0 AS col0 FROM tab0
----
-12
42
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9581
SELECT col0 * tab0.col1 + + col0 * + CAST( col1 AS SIGNED ) / col0 + CAST( NULL AS SIGNED ) * ( + tab0.col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT col0 * tab0.col1 + + col0 * + CAST ( col1 AS INTEGER ) / col0 + CAST ( NULL AS INTEGER ) * ( + tab0.col0 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 74 + 14 AS col1 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT 51 + - col2 + col0 * - ( 45 + col0 ) AS col2 FROM tab1
----
-10045
-147
-6982

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT 54 + col1 * col2 AS col2 FROM tab0
----
151
2892
7516

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9586
SELECT + ( + col2 ) * + ( cor0.col0 ) + - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT + ( + col2 ) * + ( cor0.col0 ) + - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col0 * + col1 * col2 AS col2 FROM tab1 AS cor0
----
-36537
-4266
-99936

query I rowsort
SELECT - 63 * - col1 * - 13 + + col0 * col1 * col0 AS col1 FROM tab0 AS cor0
----
-20898
39382
646282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9589
SELECT - - col1 + - col0 + CAST( 49 AS SIGNED ) FROM tab1 AS cor0
----
-18
-5
72

skipif mysql # not compatible
query I rowsort label-9589
SELECT - - col1 + - col0 + CAST ( 49 AS INTEGER ) FROM tab1 AS cor0
----
-18
-5
72

query I rowsort
SELECT ALL + cor0.col1 * col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - + col1 * col1 + cor0.col2 * col1 AS col2 FROM tab1 cor0
----
1079
470
728

query I rowsort
SELECT ALL + cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 + + col1 col1 FROM tab0 AS cor0
----
104
110
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9594
SELECT ALL + col2 DIV - col0 col2 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL + col2 / - col0 col2 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + + 20 * col1 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT ALL - 77 AS col0 FROM tab0 cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9598
SELECT ALL col1 * ( col1 ) + - col0 DIV 5 FROM tab0 AS cor0
----
7392
8264
9402

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL col1 * ( col1 ) + - col0 / 5 FROM tab0 AS cor0
----
7392
8264
9402

query I rowsort
SELECT + ( col2 + - col1 ) FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9600
SELECT ALL + col2 DIV col0 - - cor0.col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-9600
SELECT ALL + col2 / col0 - - cor0.col1 FROM tab2 AS cor0
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9601
SELECT DISTINCT + + col2 - - col2 * col0 DIV 10 FROM tab0 cor0
----
112
4
811

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT + + col2 - - col2 * col0 / 10 FROM tab0 cor0
----
112
4
811

query I rowsort
SELECT + + ( 72 ) * - col2 + cor0.col0 * col0 * - col1 FROM tab2 AS cor0
----
-108833
-3463
-360828

query I rowsort
SELECT ALL + cor0.col0 * 64 + + col0 AS col1 FROM tab0 AS cor0
----
1560
2275
5785

query I rowsort
SELECT + ( + col1 ) * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 - + col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - 27 + - ( col0 ) * - col2 * - col0 FROM tab1 cor0
----
-233499
-513
-614427

query I rowsort
SELECT DISTINCT + cor0.col0 * 15 + col0 AS col1 FROM tab0 cor0
----
1424
384
560

query I rowsort
SELECT ALL - 97 * col1 + + col2 * col1 * - cor0.col1 FROM tab2 AS cor0
----
-12631
-28954
-96229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 22 - col1 col0 FROM tab0 AS cor0
----
-64
-69
-75

query I rowsort
SELECT - - col2 * col1 * + ( 76 ) FROM tab0 AS cor0
----
215688
567112
7372

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9611
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab2, tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab1, tab2, tab2 cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 col0 FROM tab2
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9614
SELECT - cor0.col0 + + ( 39 + col0 ) DIV + col0 FROM tab0 AS cor0
----
-22
-33
-88

skipif mysql # not compatible
query I rowsort label-9614
SELECT - cor0.col0 + + ( 39 + col0 ) / + col0 FROM tab0 AS cor0
----
-22
-33
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9615
SELECT - col0 + CAST( 24 * + col2 AS SIGNED ) + 94 FROM tab0 cor0
----
1973
83
862

skipif mysql # not compatible
query I rowsort label-9615
SELECT - col0 + CAST ( 24 * + col2 AS INTEGER ) + 94 FROM tab0 cor0
----
1973
83
862

onlyif mysql # use DIV operator for integer division
query I rowsort label-9616
SELECT DISTINCT - col1 DIV col1 + + col1 * - col1 * col0 - + col0 FROM tab2 AS cor0
----
-22911
-271597
-6735

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT - col1 / col1 + + col1 * - col1 * col0 - + col0 FROM tab2 AS cor0
----
-22911
-271597
-6735

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9617
SELECT DISTINCT - + col2 / CAST( NULL AS SIGNED ) - 73 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT DISTINCT - + col2 / CAST ( NULL AS INTEGER ) - 73 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - col2 + + 25 FROM tab2 cor0
----
-1
-13
-2

query I rowsort
SELECT - col0 * + col1 * col2 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT col2 + + 23 * + col1 AS col1 FROM tab0 AS cor0
----
2011
2175
2232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col0 FROM tab2 cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * ( - 88 ) col2 FROM tab1 AS cor0
----
1144
2288
880

onlyif mysql # use DIV operator for integer division
query I rowsort label-9623
SELECT - 70 DIV col1 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-9623
SELECT - 70 / col1 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT DISTINCT col2 * 78 AS col2 FROM tab2 AS cor0
----
2028
2106
2964

query I rowsort
SELECT ALL tab0.col0 * col0 - 14 AS col1 FROM tab0
----
1211
562
7907

query I rowsort
SELECT DISTINCT + 78 - cor0.col1 FROM tab1, tab0 cor0
----
-13
-19
-8

query I rowsort
SELECT - col2 * + ( - tab1.col0 * tab1.col1 ) + + col2 * col1 AS col2 FROM tab1
----
101088
37050
5616

query I rowsort
SELECT + + col1 + ( 82 ) * + col2 AS col2 FROM tab1 AS cor0
----
4454
4684
7885

query I rowsort
SELECT ALL 41 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9630
SELECT DISTINCT 17 DIV cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
0
2

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT 17 / cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
0
2

query I rowsort
SELECT + 68 + + cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4028
-6332
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9632
SELECT + ( + cor0.col1 ) DIV + col0 AS col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9632
SELECT + ( + cor0.col1 ) / + col0 AS col0 FROM tab1 cor0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9633
SELECT - - ( 42 ) DIV - col0 FROM tab2 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-9633
SELECT - - ( 42 ) / - col0 FROM tab2 AS cor0
----
-6
0
0

query I rowsort
SELECT ALL - col1 * + ( + col2 ) FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9635
SELECT - col2 DIV - col1 + + col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-9635
SELECT - col2 / - col1 + + col1 FROM tab2
----
19
31
59

query I rowsort
SELECT DISTINCT + col2 * + ( col1 + col2 ) FROM tab2
----
1566
2090
2210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col2 FROM tab0, tab0 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 * tab2.col0 * col0 col2 FROM tab2
----
4606
571896
586654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col2 FROM tab1 cor0
----
26

query I rowsort
SELECT - col2 + 12 * - col2 FROM tab1 AS cor0
----
-1248
-702
-741

onlyif mysql # use DIV operator for integer division
query I rowsort label-9641
SELECT DISTINCT - col0 DIV + col0 + 60 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT - col0 / + col0 + 60 FROM tab0 AS cor0
----
59

query I rowsort
SELECT ALL + 80 * col1 + ( - col1 ) FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT DISTINCT + col1 * col2 + 30 + - col1 FROM tab2 AS cor0
----
1505
659
836

query I rowsort
SELECT ALL - - 73 + - col1 * - col1 * col2 AS col1 FROM tab0 AS cor0
----
244141
679115
9482

query I rowsort
SELECT DISTINCT + 46 + col0 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT ALL - col1 + - col2 * - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - col0 - col1 * col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + col2 * col2 + col1 * + col1 AS col0 FROM tab1 cor0
----
3349
3592
9385

query I rowsort
SELECT + - col2 + - ( - 14 ) * col1 FROM tab0 AS cor0
----
1171
1192
1357

onlyif mysql # use DIV operator for integer division
query I rowsort label-9650
SELECT + col2 DIV - 50 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9650
SELECT + col2 / - 50 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 + col2 * + col2 + - col1 * + ( - col1 ) FROM tab0 AS cor0
----
15094
8509
9445

query I rowsort
SELECT ALL + col2 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col0 * ( col1 ) + - col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - - col0 * 60 AS col2 FROM tab2 AS cor0
----
420
4680
4740

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + col0 + + CAST ( + col2 AS REAL ) FROM tab1
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 + col2 col1 FROM tab2
----
130
155
61

query I rowsort
SELECT DISTINCT 10 + - tab1.col2 * ( - col1 ) FROM tab1
----
1258
1414
580

query I rowsort
SELECT 56 AS col0 FROM tab0
----
56
56
56

query I rowsort
SELECT DISTINCT + ( tab0.col2 * + col1 ) + - col1 * + col2 * + 98 AS col2 FROM tab0
----
-275286
-723814
-9409

query I rowsort
SELECT ALL - col2 * + ( col0 ) AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT cor0.col1 + 96 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to a57e01bf57fe3105170d162df51f15db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # use DIV operator for integer division
query I rowsort label-9663
SELECT DISTINCT + cor0.col0 DIV col0 col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + cor0.col0 / col0 col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + + col0 * - ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9665
SELECT col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 90 col0 FROM tab2 AS cor0
----
168
169
97

query I rowsort
SELECT - + cor0.col1 * - 39 * col2 AS col2 FROM tab0 AS cor0
----
110682
291018
3783

skipif mysql # not compatible
query I rowsort
SELECT + col0 * CAST ( + 62 AS REAL ) FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT 33 - + col1 FROM tab0 AS cor0
----
-53
-58
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - cor0.col1 ) + - col1 * 80 col0 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT - + 77 + + 89 AS col1 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT - col1 + - 28 FROM tab0 AS cor0
----
-114
-119
-125

query I rowsort
SELECT DISTINCT - col0 * col2 + + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - ( + 88 ) * + col2 AS col0 FROM tab2
----
-2288
-2376
-3344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col2 ) col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + cor0.col0 * col1 - col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 85 * col2 + cor0.col2 FROM tab0 cor0
----
-2772
-6888
-84

query I rowsort
SELECT ALL - + 16 + cor0.col1 FROM tab0 AS cor0
----
70
75
81

query I rowsort
SELECT + 28 + + col2 FROM tab1 cor0
----
124
82
85

query I rowsort
SELECT ALL + - ( + cor0.col0 ) * - 39 FROM tab0 AS cor0
----
1365
3471
936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - tab2.col0 col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT cor0.col1 * + 35 FROM tab1, tab2 AS cor0
----
9 values hashing to 12fe836cfdec4b594740ca0729e43eb0

query I rowsort
SELECT DISTINCT + - col0 + col1 - col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 16 - - col1 FROM tab2 AS cor0
----
1
15
43

query I rowsort
SELECT - + 66 + col0 FROM tab1 AS cor0
----
-2
-63
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9687
SELECT + 51 * - col0 + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1248
-1820
-4628

skipif mysql # not compatible
query I rowsort label-9687
SELECT + 51 * - col0 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1248
-1820
-4628

query I rowsort
SELECT ALL - - ( + col1 ) + cor0.col0 * - 58 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1273
-1932
-4989

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + - ( + col2 ) AS col2 FROM tab0 cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * col2 + 24 col2 FROM tab0 AS cor0
----
2037
5026
85

query I rowsort
SELECT ALL + - col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL cor0.col2 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 * + ( - ( + cor0.col1 ) ) FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + col2 * + 70 AS col1 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT ALL col1 * 25 - - 66 AS col1 FROM tab2 AS cor0
----
1541
491
841

onlyif mysql # use DIV operator for integer division
query I rowsort label-9696
SELECT DISTINCT + col1 DIV col1 + + col2 AS col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-9696
SELECT DISTINCT + col1 / col1 + + col2 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT DISTINCT + col2 + 6 * + ( + col2 + 94 ) FROM tab1 cor0
----
1236
942
963

query I rowsort
SELECT + cor0.col1 * + 98 FROM tab1 AS cor0
----
1274
2548
980

query I rowsort
SELECT col0 + - 88 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2880
-53
-7127

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9700
SELECT DISTINCT + col0 * CAST( 4 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
313
416
66

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT + col0 * CAST ( 4 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
313
416
66

query I rowsort
SELECT + tab1.col2 - - col1 * + ( col2 ) FROM tab1
----
1344
1458
627

query I rowsort
SELECT - - col0 * 42 + col2 + cor0.col1 FROM tab1 AS cor0
----
206
2755
3469

query I rowsort
SELECT + ( col0 ) + + col0 * + 19 FROM tab2 AS cor0
----
140
1560
1580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9704
SELECT DISTINCT CAST( + 72 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1872
720
936

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT CAST ( + 72 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1872
720
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-9705
SELECT - - 20 + + 48 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
20
20
20

skipif mysql # not compatible
query I rowsort label-9705
SELECT - - 20 + + 48 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT ALL + 67 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT ALL + col0 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col2 + + ( + col0 ) * ( + col1 ) + - col0 FROM tab0 AS cor0
----
2007
3359
7928

query I rowsort
SELECT DISTINCT - ( - col1 ) + cor0.col1 + + col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + + col0 + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT ( 25 ) + - cor0.col0 * 57 FROM tab1 AS cor0
----
-146
-3623
-4535

query I rowsort
SELECT ALL + tab0.col0 - - tab0.col2 * + col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL ( + col1 ) + + col0 - - col2 AS col0 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT tab2.col0 - 84 AS col0 FROM tab2
----
-5
-6
-77

query I rowsort
SELECT - col2 + ( col0 ) AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT + 80 + col1 * + 56 AS col2 FROM tab1 AS cor0
----
1536
640
808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 + col0 col0 FROM tab0 AS cor0
----
18
7
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 * col2 col0 FROM tab1 AS cor0
----
3510
3705
6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-9719
SELECT - - col1 DIV col2 + + col1 * col0 col2 FROM tab0 AS cor0
----
2066
3492
8100

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9719
SELECT - - col1 / col2 + + col1 * col0 col2 FROM tab0 AS cor0
----
2066
3492
8100

query I rowsort
SELECT ( + col1 * col0 ) AS col1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9721
SELECT col2 DIV col0 + + col0 + col2 * col0 FROM tab1
----
183
3712
7761

skipif mysql # not compatible
query I rowsort label-9721
SELECT col2 / col0 + + col0 + col2 * col0 FROM tab1
----
183
3712
7761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 33 ) col0 FROM tab1
----
33
33
33

query I rowsort
SELECT 81 + + 39 * tab1.col2 AS col0 FROM tab1
----
2187
2304
3825

onlyif mysql # use DIV operator for integer division
query I rowsort label-9724
SELECT DISTINCT col0 + tab1.col0 DIV col2 AS col2 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT col0 + tab1.col0 / col2 AS col2 FROM tab1
----
3
65
80

query I rowsort
SELECT DISTINCT col0 + 38 AS col1 FROM tab1
----
102
118
41

query I rowsort
SELECT DISTINCT 42 + col1 * col1 AS col0 FROM tab2
----
1003
331
3523

query I rowsort
SELECT + + cor0.col0 * + col1 + 44 FROM tab1 AS cor0
----
1084
122
684

query I rowsort
SELECT ALL - - col2 * col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT ALL + col1 * - ( + col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 * + 27 AS col2 FROM tab0 AS cor0
----
-201474
-2619
-76626

query I rowsort
SELECT ALL - 47 FROM tab0, tab2 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT ALL ( - 95 ) * col0 * + col1 FROM tab0
----
-196080
-322525
-769405

query I rowsort
SELECT ALL + + 22 * 85 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-48620
-50490
-71060

onlyif mysql # use DIV operator for integer division
query I rowsort label-9734
SELECT ALL - - ( col2 ) DIV col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - - ( col2 ) / col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - + 43 + 13 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT - col1 + 58 AS col0 FROM tab2 AS cor0
----
-1
27
41

query I rowsort
SELECT - tab2.col1 * col0 + + 41 * col0 FROM tab2
----
-1404
1896
70

query I rowsort
SELECT DISTINCT - - 73 - col2 FROM tab1 cor0
----
-23
16
19

query I rowsort
SELECT + cor0.col0 * - col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 21 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT - tab0.col2 + + col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT 52 + col0 * - 89 AS col0 FROM tab0
----
-2084
-3063
-7869

query I rowsort
SELECT ALL + + 15 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT ALL - - col2 * col1 + 23 - col0 * + col0 * col1 FROM tab1 AS cor0
----
-40367
-81929
1193

query I rowsort
SELECT DISTINCT 74 + + col0 FROM tab1 AS cor0
----
138
154
77

query I rowsort
SELECT DISTINCT - - col2 + - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT + col1 - + col2 * + col0 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + col0 + 81 * + col2 FROM tab2 AS cor0
----
2184
2194
3157

query I rowsort
SELECT + cor0.col0 * - 51 AS col0 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT ALL + col2 + 59 * col1 AS col2 FROM tab2 AS cor0
----
1041
1856
3507

query I rowsort
SELECT ALL - col2 * cor0.col0 * + col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - ( - tab0.col1 ) FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + col1 * col2 + 12 AS col0 FROM tab1 AS cor0
----
1260
1416
582

query I rowsort
SELECT ALL col2 * col0 - - col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - - col1 * 93 + + cor0.col2 * - 78 AS col2 FROM tab1 AS cor0
----
-1794
-3516
-6279

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9756
SELECT + CAST( NULL AS DECIMAL ) * cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT + CAST ( NULL AS REAL ) * cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + 50 * 50 FROM tab2, tab2 AS cor0
----
9 values hashing to 5711488e8458f72536baffe5a44b3736

query I rowsort
SELECT + - ( - col2 ) + - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9760
SELECT - cor0.col1 DIV - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9760
SELECT - cor0.col1 / - col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 26 * col0 * - col1 FROM tab0
----
-210574
-53664
-88270

query I rowsort
SELECT col1 * 69 AS col1 FROM tab2
----
1173
2139
4071

query I rowsort
SELECT ALL 84 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL - + 40 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT - 28 * + col2 - col1 AS col2 FROM tab0 AS cor0
----
-1010
-125
-2387

query I rowsort
SELECT DISTINCT - 84 - - col1 FROM tab2 AS cor0
----
-25
-53
-67

query I rowsort
SELECT ALL + 83 + - col1 FROM tab1 cor0
----
57
70
73

query I rowsort
SELECT - - 36 * - col1 AS col2 FROM tab1 AS cor0
----
-360
-468
-936

query I rowsort
SELECT ALL + 68 AS col0 FROM tab1
----
68
68
68

query I rowsort
SELECT + col1 * - col0 * col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + + ( 73 ) * cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
480
5635
5750

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - ( + 15 ) AS col0 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT - 15 * - col2 FROM tab2 cor0
----
390
405
570

query I rowsort
SELECT DISTINCT - col1 * + col2 * col2 - + col1 * ( col1 ) FROM tab2 AS cor0
----
-23560
-24837
-43365

query I rowsort
SELECT DISTINCT - cor0.col1 + 12 FROM tab2 AS cor0
----
-19
-47
-5

query I rowsort
SELECT + col2 + 72 * - col2 * + 2 AS col2 FROM tab0 cor0
----
-11726
-143
-4719

query I rowsort
SELECT col2 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - + ( + col0 ) + col0 * col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL - - col1 * + 20 AS col0 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT - tab2.col2 * + 35 FROM tab2
----
-1330
-910
-945

query I rowsort
SELECT + 55 * - 20 + - tab0.col2 AS col0 FROM tab0
----
-1101
-1133
-1182

query I rowsort
SELECT col1 + col2 * col1 * col1 FROM tab2 AS cor0
----
10999
25978
90565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col1 ) * col1 + - col2 col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL col1 + - 75 AS col1 FROM tab0 AS cor0
----
11
16
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-9786
SELECT - col0 DIV col1 + cor0.col1 AS col0 FROM tab1 cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-9786
SELECT - col0 / col1 + cor0.col1 AS col0 FROM tab1 cor0
----
26
4
7

query I rowsort
SELECT - ( + 55 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT DISTINCT - tab1.col1 + 82 FROM tab1, tab1 AS cor0
----
56
69
72

query I rowsort
SELECT col2 * + col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - + col1 * + 54 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
-3
-64
-80

query I rowsort
SELECT ALL + tab0.col2 + col1 * col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - col1 * - 70 - col1 FROM tab1
----
1794
690
897

query I rowsort
SELECT + col2 * 64 - ( cor0.col0 ) FROM tab1 AS cor0
----
3453
3584
6064

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) + + cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
4196
6569
685

query I rowsort
SELECT cor0.col2 * - cor0.col0 + 12 * col1 AS col2 FROM tab0 AS cor0
----
-6206
1129
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - ( 8 + - col0 ) col0 FROM tab1 AS cor0
----
-270
3192
6912

query I rowsort
SELECT ALL - col1 + + col2 AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT + - col0 + - cor0.col0 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 + 36 FROM tab1 AS cor0
----
-126
-3612
-7644

query I rowsort
SELECT ALL + 0 * + tab1.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL col2 * 84 * 26 + col1 AS col0 FROM tab0
----
179179
2281
72158

query I rowsort
SELECT 49 + - 1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT ALL - 53 AS col2 FROM tab2 AS cor0
----
-53
-53
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-9805
SELECT DISTINCT + 37 DIV col0 AS col0 FROM tab2 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT + 37 / col0 AS col0 FROM tab2 AS cor0
----
0
5

query I rowsort
SELECT col1 * + col0 + cor0.col0 + col0 FROM tab1 AS cor0
----
1200
768
84

query I rowsort
SELECT DISTINCT + cor1.col0 * + 10 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
240
350
890

onlyif mysql # use DIV operator for integer division
query I rowsort label-9808
SELECT - col2 DIV - col0 + col1 AS col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-9808
SELECT - col2 / - col0 + col1 AS col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT DISTINCT - 78 + - col0 AS col0 FROM tab2 cor0
----
-156
-157
-85

query I rowsort
SELECT DISTINCT + + 40 * - 16 + + col2 AS col1 FROM tab0 AS cor0
----
-558
-607
-639

query I rowsort
SELECT - col1 * 9 + + col2 FROM tab1 AS cor0
----
-180
-21
-33

query I rowsort
SELECT + + col1 * + col0 - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT - - cor0.col2 + + 96 FROM tab1 AS cor0
----
150
153
192

query I rowsort
SELECT + cor0.col0 * cor0.col1 + cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT DISTINCT - + 91 * col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT - ( + col0 ) + + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + - col2 * - 31 + cor0.col0 FROM tab1 AS cor0
----
1677
1831
3056

onlyif mysql # use DIV operator for integer division
query I rowsort label-9818
SELECT - col0 DIV + col0 - + 41 AS col2 FROM tab2
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-9818
SELECT - col0 / + col0 - + 41 AS col2 FROM tab2
----
-42
-42
-42

query I rowsort
SELECT ALL 42 + col1 AS col0 FROM tab1 AS cor0
----
52
55
68

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * + 83 + - col0 - + col1 FROM tab0 cor0
----
101543
47698
657263

query I rowsort
SELECT ALL - col0 * + cor0.col0 * col2 + - col1 * col2 AS col0 FROM tab0 AS cor0
----
-1322
-21846
-656984

query I rowsort
SELECT col0 * + 10 AS col2 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT ALL + col2 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - col2 * col0 + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT 65 * cor0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7711138caced17bf66c8cb5f4cf93a4e

query I rowsort
SELECT - col2 * cor0.col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9827
SELECT ALL col2 * CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL col2 * CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col2 + + 45 FROM tab1 AS cor0
----
102
141
99

query I rowsort
SELECT DISTINCT - + col2 * + ( col2 * col0 + ( - cor0.col2 ) * - col0 ) FROM tab0 AS cor0
----
-1196872
-52272
-70

query I rowsort
SELECT DISTINCT col1 * - 49 + - ( col2 ) FROM tab0 AS cor0
----
-4247
-4541
-4754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + + cor0.col0 col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - - col0 + + 44 * + col0 FROM tab0 AS cor0
----
1080
1575
4005

onlyif mysql # use DIV operator for integer division
query I rowsort label-9833
SELECT ALL - col2 - ( + col2 + col2 ) DIV col0 AS col0 FROM tab1 cor0
----
-58
-90
-98

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL - col2 - ( + col2 + col2 ) / col0 AS col0 FROM tab1 cor0
----
-58
-90
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9834
SELECT DISTINCT - col1 + col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - col1 + col2 / - col2 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT - col0 + col1 * ( 19 ) * - col0 AS col0 FROM tab0 AS cor0
----
-153970
-39240
-64540

query I rowsort
SELECT col2 + + col2 - col0 * - col1 AS col0 FROM tab1 cor0
----
1232
186
754

query I rowsort
SELECT - ( col1 ) + + col0 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9838
SELECT ALL - col0 DIV col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL - col0 / col0 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9839
SELECT + tab0.col2 DIV col2 col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9839
SELECT + tab0.col2 / col2 col2 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + tab2.col2 * col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT col2 + tab2.col1 * col0 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-9842
SELECT col2 * col1 DIV - col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-9842
SELECT col2 * col1 / - col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + 7 * 37 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6af0861f9050488332f316f79f42e172

query I rowsort
SELECT DISTINCT + 82 * + col2 AS col0 FROM tab2 AS cor0
----
2132
2214
3116

query I rowsort
SELECT DISTINCT + col2 * col2 + ( - 75 ) FROM tab2 cor0
----
1369
601
654

query I rowsort
SELECT - + col2 * col1 + ( col2 ) FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT col0 + + col1 * 32 FROM tab2 AS cor0
----
1966
623
999

query I rowsort
SELECT col2 + 20 AS col0 FROM tab2
----
46
47
58

query I rowsort
SELECT 5 * 1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL - 15 FROM tab1, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT ALL + - col2 + + col1 * - 31 AS col0 FROM tab0 cor0
----
-2699
-2903
-3008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9852
SELECT ALL col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( tab0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9854
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT DISTINCT - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 89 + col1 AS col1 FROM tab1 AS cor0
----
102
115
99

query I rowsort
SELECT DISTINCT - - ( 89 ) * + col0 AS col1 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col0 + col2 AS col2 FROM tab0 AS cor0
----
-69
-7305
-783

query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 + + col0 AS col0 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT - 3 * col1 FROM tab0 AS cor0
----
-258
-273
-291

onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT 4 + ( - cor0.col1 ) DIV - 73 FROM tab2 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9860
SELECT 4 + ( - cor0.col1 ) / - 73 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT ALL 47 * col1 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT DISTINCT + cor0.col0 + 42 * col0 * col2 AS col2 FROM tab2 cor0
----
126163
7945
85254

onlyif mysql # use DIV operator for integer division
query I rowsort label-9863
SELECT + - cor0.col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9863
SELECT + - cor0.col0 / + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9864
SELECT - CAST( + 40 AS SIGNED ) * + col1 AS col1 FROM tab0 cor0
----
-3440
-3640
-3880

skipif mysql # not compatible
query I rowsort label-9864
SELECT - CAST ( + 40 AS INTEGER ) * + col1 AS col1 FROM tab0 cor0
----
-3440
-3640
-3880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9865
SELECT CAST( - col0 AS SIGNED ) + col0 * - ( - col0 * col0 ) FROM tab0 AS cor0
----
13800
42840
704880

skipif mysql # not compatible
query I rowsort label-9865
SELECT CAST ( - col0 AS INTEGER ) + col0 * - ( - col0 * col0 ) FROM tab0 AS cor0
----
13800
42840
704880

query I rowsort
SELECT ALL - ( 43 ) FROM tab1
----
-43
-43
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9867
SELECT DISTINCT CAST( col0 + - col1 AS SIGNED ) * ( + 30 ) col1 FROM tab0
----
-1860
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT CAST ( col0 + - col1 AS INTEGER ) * ( + 30 ) col1 FROM tab0
----
-1860
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-9868
SELECT DISTINCT 0 DIV + col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT 0 / + col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT - + 40 FROM tab1 cor0
----
-40
-40
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9870
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT DISTINCT - col0 DIV - col2 + - col0 DIV + col0 col2 FROM tab0 AS cor0
----
-1
0
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT - col0 / - col2 + - col0 / + col0 col2 FROM tab0 AS cor0
----
-1
0
34

query I rowsort
SELECT 85 FROM tab2, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - + 22 * col2 FROM tab2 AS cor0
----
-572
-594
-836

query I rowsort
SELECT ALL - ( 92 ) AS col1 FROM tab1
----
-92
-92
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-9875
SELECT - ( col1 ) DIV - col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT - ( col1 ) / - col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col1 * col1 + + ( col2 ) FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9877
SELECT + - col0 + - CAST( - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9877
SELECT + - col0 + - CAST ( - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col1 * - 97 AS col1 FROM tab2 cor0
----
-1649
-3007
-5723

query I rowsort
SELECT ALL + col2 * 89 + col2 * col1 * 58 AS col2 FROM tab1 AS cor0
----
38133
80928
86238

query I rowsort
SELECT + col0 * 67 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT + col1 * 47 + col2 FROM tab2 AS cor0
----
1484
2799
837

query I rowsort
SELECT - col0 + - 66 * cor0.col0 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT + col1 * ( - 82 ) + - col2 FROM tab0
----
-7085
-7544
-7955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col1 + - 10 * + col0 * - col2 FROM tab0 cor0
----
253
72889
7834

query I rowsort
SELECT ( - 39 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT - col2 * - tab2.col1 * ( - col1 ) FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT - col0 * + col1 + 25 AS col2 FROM tab2
----
-1318
-192
-4577

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9889
SELECT DISTINCT + ( - col2 ) + CAST( NULL AS SIGNED ) * ( + tab1.col1 ) * + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + ( - col2 ) + CAST ( NULL AS INTEGER ) * ( + tab1.col1 ) * + col0 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9890
SELECT 33 * tab2.col0 + - CAST( NULL AS DECIMAL ) - + 36 * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT 33 * tab2.col0 + - CAST ( NULL AS REAL ) - + 36 * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col0 * col0 - + col2 FROM tab1
----
-19
4049
6317

query I rowsort
SELECT + 64 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT 36 + cor0.col0 * col2 FROM tab0 AS cor0
----
71
7334
828

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9894
SELECT DISTINCT - - col0 * + CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT DISTINCT - - col0 * + CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - cor0.col2 + + col1 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - col2 + col0 * 92 AS col0 FROM tab2 AS cor0
----
617
7150
7230

query I rowsort
SELECT ALL - col2 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9898
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * + 6 + ( + col1 ) + + col2 AS col0 FROM tab2 AS cor0
----
-128
-269
-47

query I rowsort
SELECT - col2 + col2 + 25 AS col0 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT ALL - col2 + + col2 * + col0 * + col2 AS col0 FROM tab2 AS cor0
----
114038
5076
52702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9902
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - col0 + 25 FROM tab2 AS cor0
----
-53
-54
18

query I rowsort
SELECT + col1 + + ( + ( - col2 ) ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col0 * + 9 + col0 AS col2 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT col2 * col0 - tab1.col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT ALL + ( col0 ) - tab2.col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT - 23 FROM tab2, tab0, tab1 AS cor0
----
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-9910
SELECT DISTINCT - col0 - - col1 DIV col0 FROM tab0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT - col0 - - col1 / col0 FROM tab0
----
-21
-33
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9911
SELECT DISTINCT - + col1 DIV - 37 - col2 FROM tab2 AS cor0
----
-25
-27
-38

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT - + col1 / - 37 - col2 FROM tab2 AS cor0
----
-25
-27
-38

query I rowsort
SELECT + col1 + - ( col0 + col1 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + col0 * 54 + - cor0.col1 + - col2 AS col0 FROM tab2 AS cor0
----
320
4127
4211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * - col0 col1 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT + 51 * col1 FROM tab0 AS cor0
----
4386
4641
4947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9916
SELECT CAST( col1 AS SIGNED ) * col1 * - 74 AS col1 FROM tab2 AS cor0
----
-21386
-257594
-71114

skipif mysql # not compatible
query I rowsort label-9916
SELECT CAST ( col1 AS INTEGER ) * col1 * - 74 AS col1 FROM tab2 AS cor0
----
-21386
-257594
-71114

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9917
SELECT ALL + ( col2 ) * + col1 + CAST( NULL AS SIGNED ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + ( col2 ) * + col1 + CAST ( NULL AS INTEGER ) / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 95 FROM tab1 cor0
----
-95
-95
-95

query I rowsort
SELECT + + 63 AS col1 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT ( + tab2.col0 * 44 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5a8860d4a95829f507a4566f891e09c1

query I rowsort
SELECT DISTINCT - col0 + col1 * - 20 AS col1 FROM tab1 AS cor0
----
-264
-340
-523

query I rowsort
SELECT + 85 * col1 + + col0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
2824
4447
7043

query I rowsort
SELECT DISTINCT - col0 * - col1 + 95 AS col2 FROM tab2 AS cor0
----
1438
312
4697

query I rowsort
SELECT ALL - 50 * col1 * + col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
-160341
-396669
-95804

query I rowsort
SELECT - - 92 AS col2 FROM tab2 cor0
----
92
92
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9926
SELECT + CAST( col2 * + col1 AS SIGNED ) col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9926
SELECT + CAST ( col2 * + col1 AS INTEGER ) col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL 4 FROM tab1, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT 30 AS col0 FROM tab2
----
30
30
30

query I rowsort
SELECT DISTINCT + + 44 AS col1 FROM tab2 AS cor0
----
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-9930
SELECT - - col1 + + col2 DIV col1 col2 FROM tab1 AS cor0
----
15
20
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9930
SELECT - - col1 + + col2 / col1 col2 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT ALL + ( - col1 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col0 + cor0.col2 * 15 FROM tab0 AS cor0
----
1319
50
519

query I rowsort
SELECT ALL - cor0.col0 + - col1 * 43 FROM tab0 AS cor0
----
-3722
-4002
-4206

query I rowsort
SELECT DISTINCT + 86 * col2 FROM tab0 AS cor0
----
2838
7052
86

query I rowsort
SELECT ALL + 0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9936
SELECT - 94 DIV col0 FROM tab1
----
-1
-1
-31

skipif mysql # not compatible
query I rowsort label-9936
SELECT - 94 / col0 FROM tab1
----
-1
-1
-31

query I rowsort
SELECT DISTINCT + + col0 * col0 - + col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT ALL + + 91 + + cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
3007
3340
9307

query I rowsort
SELECT ALL col1 + col0 + - cor0.col2 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT ALL + + col2 + - cor0.col2 * + cor0.col2 * - 32 FROM tab2 cor0
----
21658
23355
46246

query I rowsort
SELECT DISTINCT - col0 + - col2 * ( - 92 ) AS col1 FROM tab0 AS cor0
----
3012
57
7455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 + - col1 col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT 56 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + tab2.col0 col1 FROM tab2
----
104
117
34

query I rowsort
SELECT + col2 * - 21 + - col1 + col0 FROM tab0 AS cor0
----
-1724
-755
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9946
SELECT cor0.col0 DIV 53 + col2 AS col1 FROM tab2 AS cor0
----
27
27
39

skipif mysql # not compatible
query I rowsort label-9946
SELECT cor0.col0 / 53 + col2 AS col1 FROM tab2 AS cor0
----
27
27
39

query I rowsort
SELECT DISTINCT - col1 * col2 + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-1671
-742
-875

onlyif mysql # use DIV operator for integer division
query I rowsort label-9948
SELECT DISTINCT col1 DIV 69 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT col1 / 69 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + - ( 68 ) + col2 + 8 FROM tab2 AS cor0
----
-22
-33
-34

query I rowsort
SELECT DISTINCT - + col1 * - 0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab2, tab0 AS cor0
----
-80

query I rowsort
SELECT DISTINCT + 18 * + 55 + col2 FROM tab0 AS cor0
----
1023
1072
991

query I rowsort
SELECT DISTINCT col1 - col2 * - col0 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-9955
SELECT DISTINCT + col0 DIV + cor0.col2 + cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3360
-8098

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT + col0 / + cor0.col2 + cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3360
-8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * 16 col1 FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT col0 + - ( cor0.col1 ) * - col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL + + cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + col2 * - col2 - - 60 FROM tab2 AS cor0
----
-1384
-616
-669

query I rowsort
SELECT col1 * - col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT cor0.col0 * + 14 FROM tab2 cor0
----
1092
1106
98

query I rowsort
SELECT col2 + - 52 AS col0 FROM tab2 AS cor0
----
-14
-25
-26

query I rowsort
SELECT + col2 + + 19 * + col1 FROM tab2 cor0
----
1147
361
616

query I rowsort
SELECT col1 * - col0 + col1 AS col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT + - cor0.col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + col2 * + col0 + - 58 FROM tab0
----
-23
7240
734

query I rowsort
SELECT + + col2 * col2 + - 25 FROM tab0 AS cor0
----
-24
1064
6699

query I rowsort
SELECT - 23 * col1 * - col2 + - cor0.col2 FROM tab1 AS cor0
----
13053
28608
32238

onlyif mysql # use DIV operator for integer division
query I rowsort label-9969
SELECT ALL - col0 + ( + tab1.col2 ) DIV + ( tab1.col2 ) FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL - col0 + ( + tab1.col2 ) / + ( tab1.col2 ) FROM tab1
----
-2
-63
-79

query I rowsort
SELECT ALL + 7 * col0 * + col2 + - ( 7 ) FROM tab1
----
1127
25529
53753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 * col0 col1 FROM tab0
----
1015
2581
696

onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT DISTINCT 6 + col2 + - 15 DIV + 4 FROM tab2 AS cor0
----
29
30
41

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT 6 + col2 + - 15 / + 4 FROM tab2 AS cor0
----
29
30
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-9973
SELECT ALL - 89 * col2 - 57 DIV - col0 FROM tab0 AS cor0
----
-2935
-7298
-88

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL - 89 * col2 - 57 / - col0 FROM tab0 AS cor0
----
-2935
-7298
-88

query I rowsort
SELECT ALL cor0.col1 - col2 AS col2 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9975
SELECT DISTINCT 72 * col1 + + CAST( 60 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1932
780
996

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT 72 * col1 + + CAST ( 60 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1932
780
996

query I rowsort
SELECT - 5 AS col2 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT ALL ( col1 + col1 ) * col1 AS col0 FROM tab0
----
14792
16562
18818

query I rowsort
SELECT DISTINCT 85 * - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-2805
-6970
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9979
SELECT tab2.col0 * col2 - col1 DIV col0 FROM tab2
----
185
2028
3002

skipif mysql # not compatible
query I rowsort label-9979
SELECT tab2.col0 * col2 - col1 / col0 FROM tab2
----
185
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9980
SELECT DISTINCT + col0 DIV + 40 col0 FROM tab0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT + col0 / + 40 col0 FROM tab0
----
0
2

query I rowsort
SELECT 84 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT + col1 + - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9983
SELECT DISTINCT - col1 DIV + 46 FROM tab0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT - col1 / + 46 FROM tab0
----
-1
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9984
SELECT col1 DIV col0 AS col1 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9984
SELECT col1 / col0 AS col1 FROM tab1 cor0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9985
SELECT - col1 DIV 47 + + col2 AS col0 FROM tab0 cor0
----
-1
32
81

skipif mysql # not compatible
query I rowsort label-9985
SELECT - col1 / 47 + + col2 AS col0 FROM tab0 cor0
----
-1
32
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9986
SELECT CAST( 35 AS SIGNED ) * - tab2.col1 AS col1 FROM tab2
----
-1085
-2065
-595

skipif mysql # not compatible
query I rowsort label-9986
SELECT CAST ( 35 AS INTEGER ) * - tab2.col1 AS col1 FROM tab2
----
-1085
-2065
-595

query I rowsort
SELECT + - col1 * - ( - col2 ) + - cor0.col2 * cor0.col0 FROM tab0 cor0
----
-132
-14760
-3630

query I rowsort
SELECT col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - ( + col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col0 * col2 + 55 * cor0.col1 FROM tab2 AS cor0
----
-2067
1217
1516

query I rowsort
SELECT 31 + + col1 AS col0 FROM tab0 cor0
----
117
122
128

onlyif mysql # use DIV operator for integer division
query I rowsort label-9992
SELECT - cor0.col0 + cor0.col0 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-9992
SELECT - cor0.col0 + cor0.col0 / - col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - tab2.col0 * - 83 AS col1 FROM tab2
----
581
6474
6557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 + 74 col1 FROM tab1
----
-6

query I rowsort
SELECT - 3 + col2 FROM tab2 AS cor0
----
23
24
35

query I rowsort
SELECT - - ( + col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + + col2 * col0 FROM tab1 cor0
----
1566
4218
8928

query I rowsort
SELECT + cor0.col2 + + col1 - col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + - cor0.col2 * col0 + col2 + - col0 FROM tab0 AS cor0
----
-69
-7305
-783

