sqllogictest
Artifact Content
Not logged in

Artifact c9f8ddec6eae21d4d45ab3e6cf03c0f0afe6cf84:


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 ALL + col2 - - col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - 44 * - col1 FROM tab1 AS cor0
----
1144
440
572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 * 23 col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
598
621
874

onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT + col2 DIV + col0 + - CAST( + ( + col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-3
SELECT + col2 / + col0 + - CAST ( + ( + col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-36
-57
-95

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

query I rowsort
SELECT ALL - - cor0.col1 * col0 + - 52 * + col0 FROM tab1 AS cor0
----
-2688
-3120
-78

query I rowsort
SELECT tab0.col2 + ( 59 ) AS col1 FROM tab0
----
141
60
92

query I rowsort
SELECT DISTINCT 40 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
40

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

skipif mysql # not compatible
query I rowsort label-8
SELECT + + col0 * ( cor0.col2 + - col0 ) * CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-115430
-56693
18576

query I rowsort
SELECT - col0 * + 79 AS col2 FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT ALL - col0 + + 38 FROM tab0 AS cor0
----
-51
14
3

query I rowsort
SELECT DISTINCT - col1 * 15 AS col0 FROM tab1 AS cor0
----
-150
-195
-390

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 55 ) + + col1 * col0 col0 FROM tab2 AS cor0
----
1398
272
4657

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

query I rowsort
SELECT DISTINCT ( - cor0.col2 + + 26 ) FROM tab1, tab1 AS cor0
----
-28
-31
-70

query I rowsort
SELECT - + ( - 64 ) * + cor0.col1 FROM tab1 AS cor0
----
1664
640
832

query I rowsort
SELECT ALL - + 4 + col1 FROM tab1 AS cor0
----
22
6
9

query I rowsort
SELECT ALL 13 FROM tab2, tab0 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67

query I rowsort
SELECT ALL ( 47 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL - - 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-23
SELECT DISTINCT 13 * col1 DIV - col1 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT 13 * col1 / - col1 FROM tab1 AS cor0
----
-13

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

query I rowsort
SELECT col0 + + col2 * 57 FROM tab2
----
1546
1560
2245

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

query I rowsort
SELECT - col1 + + col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1501
667
833

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

query I rowsort
SELECT - - col1 + col0 * 64 FROM tab1 AS cor0
----
218
4106
5133

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

query I rowsort
SELECT ALL + + 26 * col0 AS col1 FROM tab1 AS cor0
----
1664
2080
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 * col0 col1 FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT DISTINCT 65 DIV col0 + 1 FROM tab1 AS cor0
----
1
2
22

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT 65 / col0 + 1 FROM tab1 AS cor0
----
1
2
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-34
SELECT DISTINCT 89 * cor0.col0 * CAST( col0 * col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
135191
31947084
9442633

skipif mysql # not compatible
query I rowsort label-34
SELECT DISTINCT 89 * cor0.col0 * CAST ( col0 * col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
135191
31947084
9442633

onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT ALL 55 + + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
55
55
63

skipif mysql # not compatible
query I rowsort label-35
SELECT ALL 55 + + col1 / col0 AS col1 FROM tab1 AS cor0
----
55
55
63

query I rowsort
SELECT ALL + + col0 * col1 + - col1 * - col2 FROM tab1 AS cor0
----
1210
1482
2288

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

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

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

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

query I rowsort
SELECT 99 * 57 + col2 FROM tab1 cor0
----
5697
5700
5739

query I rowsort
SELECT ALL col2 + + 86 * - cor0.col1 FROM tab2 cor0
----
-1424
-2639
-5048

onlyif mysql # use DIV operator for integer division
query I rowsort label-41
SELECT DISTINCT + + col2 + - cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT + + col2 + - cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT + col0 * - 2 AS col2 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT cor1.col0 FROM tab1 cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT tab2.col2 * 2 + + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to af27384311fa29801835eb53e5d73905

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

query I rowsort
SELECT ALL tab2.col2 * 5 * col0 + col0 + - tab2.col0 FROM tab2
----
10140
15010
945

query I rowsort
SELECT DISTINCT + 99 * - col1 AS col2 FROM tab2 AS cor0
----
-1683
-3069
-5841

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

query I rowsort
SELECT 88 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( ( col1 ) AS REAL ) * + 17 + col2 * + col2 col2 FROM tab1
----
3358
3419
9437

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + tab2.col0 * - col2 col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - ( + ( - col0 ) ) * tab2.col1 + - 67 FROM tab2
----
1276
150
4535

query I rowsort
SELECT col2 + 75 FROM tab2
----
101
102
113

query I rowsort
SELECT - col2 + col1 * - col2 * ( 54 ) FROM tab2
----
-34922
-45225
-82862

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-58
SELECT DISTINCT 33 DIV col2 FROM tab0
----
0
1
33

skipif mysql # not compatible
query I rowsort label-58
SELECT DISTINCT 33 / col2 FROM tab0
----
0
1
33

query I rowsort
SELECT ( - col0 ) * + col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT 88 * col2 + 33 * col2 AS col0 FROM tab1
----
11616
6534
6897

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

query I rowsort
SELECT ALL - + col0 * - col0 + col2 * ( - col0 ) * + 60 FROM tab0 AS cor0
----
-429959
-46944
-875

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

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

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab2 AS cor0
----
70

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 + - 35 col2 FROM tab2, tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT col0 + + col0 * ( + col0 ) FROM tab2 cor0
----
56
6162
6320

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

query I rowsort
SELECT ALL + col0 * col0 - 70 FROM tab2 AS cor0
----
-21
6014
6171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * ( 78 + - cor0.col0 ) col2 FROM tab0 cor0
----
-902
1782
43

query I rowsort
SELECT ALL 78 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # use DIV operator for integer division
query I rowsort label-76
SELECT ALL - - col0 * 17 DIV + col2 FROM tab0 AS cor0
----
12
18
595

skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - - col0 * 17 / + col2 FROM tab0 AS cor0
----
12
18
595

query I rowsort
SELECT DISTINCT + col1 + 55 FROM tab0 cor0
----
141
146
152

query I rowsort
SELECT ALL - cor0.col2 * 42 * col0 FROM tab0 AS cor0
----
-1470
-306516
-33264

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-80
SELECT col2 DIV + 73 + + col1 AS col2 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-80
SELECT col2 / + 73 + + col1 AS col2 FROM tab0 AS cor0
----
86
92
97

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-83
SELECT ALL - + col2 * ( cor0.col1 ) - col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL - + col2 * ( cor0.col1 ) - col1 / col1 AS col0 FROM tab0 AS cor0
----
-2839
-7463
-98

query I rowsort
SELECT + 86 * col1 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT 8 + col2 AS col1 FROM tab0 AS cor0
----
41
9
90

query I rowsort
SELECT DISTINCT - 62 * - col0 FROM tab1 AS cor0
----
186
3968
4960

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-88
SELECT col2 * - col2 * + 68 + tab0.col0 DIV - col0 AS col2 FROM tab0
----
-457233
-69
-74053

skipif mysql # not compatible
query I rowsort label-88
SELECT col2 * - col2 * + 68 + tab0.col0 / - col0 AS col2 FROM tab0
----
-457233
-69
-74053

query I rowsort
SELECT 11 - - cor0.col2 FROM tab1 AS cor0
----
107
65
68

query I rowsort
SELECT DISTINCT 17 + 46 FROM tab0 AS cor0
----
63

query I rowsort
SELECT - + ( 10 ) * col1 + - cor0.col0 * ( cor0.col0 ) AS col2 FROM tab1 cor0
----
-269
-4196
-6530

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

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT col1 / 41 FROM tab2 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT DISTINCT 43 DIV 1 + + cor0.col2 + col1 FROM tab1 AS cor0
----
110
123
152

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT 43 / 1 + + cor0.col2 + col1 FROM tab1 AS cor0
----
110
123
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT col0 + + CAST( col2 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-94
SELECT col0 + + CAST ( col2 AS INTEGER ) / col0 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT - + col2 * 71 + - 59 AS col1 FROM tab2 AS cor0
----
-1905
-1976
-2757

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * 27 AS col2 FROM tab1
----
270
351
702

query I rowsort
SELECT + tab2.col0 * + 35 FROM tab2
----
245
2730
2765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT col0 * + col1 + - tab0.col1 * col1 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT - 52 AS col2 FROM tab2
----
-52
-52
-52

query I rowsort
SELECT + - ( - 98 ) AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT col0 * col2 + 97 * - col2 + col0 FROM tab1
----
-1552
-1817
-5073

query I rowsort
SELECT ALL - col0 * + col2 + ( - tab2.col1 ) * tab2.col0 AS col1 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT ALL + 2 * col2 + col1 * 21 FROM tab1 AS cor0
----
324
465
654

query I rowsort
SELECT + 34 + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 972cdb8b21ea65b385c520150e756cae

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-111
SELECT DISTINCT 2 + col0 * CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
11
4098
6402

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT 2 + col0 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
11
4098
6402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT + col0 * 12 + col1 FROM tab1 cor0
----
62
778
973

query I rowsort
SELECT ALL col2 + col1 - + cor0.col0 FROM tab2 AS cor0
----
-24
51
7

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

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

query I rowsort
SELECT DISTINCT + col0 + 24 * - 59 AS col1 FROM tab0 AS cor0
----
-1327
-1381
-1392

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

query I rowsort
SELECT + col1 * + col0 + col2 * col2 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT ALL - tab0.col2 - 47 * 5 FROM tab0
----
-236
-268
-317

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

query I rowsort
SELECT + col1 * 25 - + 66 FROM tab0 AS cor0
----
2084
2209
2359

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

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

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

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

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

query I rowsort
SELECT - col1 * - 92 AS col2 FROM tab0 AS cor0
----
7912
8372
8924

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

query I rowsort
SELECT DISTINCT + tab0.col1 + 58 * col2 AS col2 FROM tab0
----
155
2000
4847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT 81 + col1 AS col2 FROM tab0 AS cor0
----
167
172
178

query I rowsort
SELECT 4 + + col0 AS col0 FROM tab2 AS cor0
----
11
82
83

query I rowsort
SELECT DISTINCT - cor1.col2 * - 79 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
2607
6478
79

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

query I rowsort
SELECT DISTINCT col0 * col1 * + ( col1 ) - + col1 AS col2 FROM tab2 AS cor0
----
22814
271459
6696

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

query I rowsort
SELECT col0 * + 91 FROM tab2
----
637
7098
7189

query I rowsort
SELECT DISTINCT col2 + + 33 FROM tab0
----
115
34
66

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

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

query I rowsort
SELECT 11 + col0 * col0 * - ( 45 ) AS col1 FROM tab1 AS cor0
----
-184309
-287989
-394

query I rowsort
SELECT DISTINCT - col1 + 25 * col0 * col2 FROM tab0
----
182359
19714
778

onlyif mysql # use DIV operator for integer division
query I rowsort label-142
SELECT ALL + tab1.col0 + tab1.col0 DIV - 94 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + tab1.col0 + tab1.col0 / - 94 FROM tab1
----
3
64
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-143
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - col0 * ( cor0.col2 ) * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-147
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

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

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

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

query I rowsort
SELECT ALL 0 * 39 - + col1 * - cor0.col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + 92 FROM tab0, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL 67 AS col1 FROM tab2
----
67
67
67

query I rowsort
SELECT - + 76 + cor0.col1 FROM tab1 AS cor0
----
-50
-63
-66

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

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

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

query I rowsort
SELECT DISTINCT - ( - 56 ) * cor0.col1 FROM tab1 AS cor0
----
1456
560
728

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

skipif mysql # not compatible
query I rowsort label-157
SELECT ALL + col0 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 19 + col1 FROM tab2 AS cor0
----
36
50
78

query I rowsort
SELECT ALL + cor0.col1 + 91 + col1 FROM tab0 AS cor0
----
263
273
285

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

query I rowsort
SELECT DISTINCT - 58 * col1 + + col2 AS col0 FROM tab2
----
-1771
-3396
-948

onlyif mysql # use DIV operator for integer division
query I rowsort label-162
SELECT DISTINCT + + 35 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT + + 35 / col1 AS col0 FROM tab2 AS cor0
----
0
1
2

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

skipif mysql # not compatible
query I rowsort label-163
SELECT DISTINCT - + 59 + cor0.col0 * CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 25 + - col2 FROM tab0 AS cor0
----
-57
-8
24

query I rowsort
SELECT DISTINCT col2 + col0 + cor0.col1 * - col0 FROM tab1 AS cor0
----
-21
-519
-864

query I rowsort
SELECT - - col1 * 70 AS col0 FROM tab1 AS cor0
----
1820
700
910

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

query I rowsort
SELECT DISTINCT + col2 * + 91 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT ALL - - col0 * col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776

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

query I rowsort
SELECT ALL - col0 * + 80 * cor0.col1 FROM tab1 AS cor0
----
-51200
-6240
-83200

query I rowsort
SELECT - 91 * - col1 + + col0 * col0 + col0 * col0 * - col2 AS col2 FROM tab1
----
-228466
-606817
1889

query I rowsort
SELECT DISTINCT + 44 * + 48 AS col0 FROM tab2, tab2 AS cor0
----
2112

query I rowsort
SELECT DISTINCT col0 + - 19 * col1 FROM tab0 AS cor0
----
-1610
-1640
-1808

query I rowsort
SELECT - + col2 + 52 FROM tab1 AS cor0
----
-2
-44
-5

query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 * + 92 AS col0 FROM tab0 AS cor0
----
112700
52992
728732

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

skipif mysql # not compatible
query I rowsort label-177
SELECT + col0 + CAST ( + col2 AS INTEGER ) + col2 * - 37 FROM tab2 AS cor0
----
-1289
-858
-965

onlyif mysql # use DIV operator for integer division
query I rowsort label-178
SELECT DISTINCT - - col0 DIV - 56 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT - - col0 / - 56 FROM tab2 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-179
SELECT + - col0 DIV 3 + col1 + col0 AS col2 FROM tab0 AS cor0
----
102
121
151

skipif mysql # not compatible
query I rowsort label-179
SELECT + - col0 / 3 + col1 + col0 AS col2 FROM tab0 AS cor0
----
102
121
151

query I rowsort
SELECT - + col2 * 64 * - col1 + col1 + + col2 AS col2 FROM tab0 AS cor0
----
181751
477741
6306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT cor0.col0 - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - - col2 - 59 AS col0 FROM tab2 AS cor0
----
-21
-32
-33

query I rowsort
SELECT col1 * - col0 + cor0.col1 * - col1 - cor0.col2 FROM tab0 cor0
----
-12805
-16462
-9493

query I rowsort
SELECT + + 65 + - col1 FROM tab2 AS cor0
----
34
48
6

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( - col0 ) * 90 AS col0 FROM tab1 AS cor0
----
-270
-5760
-7200

query I rowsort
SELECT DISTINCT 79 * col2 FROM tab0
----
2607
6478
79

query I rowsort
SELECT + tab1.col2 + col0 * tab1.col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + 85 * - col2 + + col0 FROM tab1
----
-4587
-4781
-8080

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-199
SELECT tab2.col1 DIV + 46 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-199
SELECT tab2.col1 / + 46 AS col1 FROM tab2
----
0
0
1

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

query I rowsort
SELECT + 70 * + cor0.col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
1006
1874
757

query I rowsort
SELECT 37 * col2 - + col2 FROM tab1
----
1944
2052
3456

query I rowsort
SELECT ALL col1 * col2 - - 29 AS col2 FROM tab1
----
1277
1433
599

onlyif mysql # use DIV operator for integer division
query I rowsort label-204
SELECT DISTINCT 84 * tab1.col1 DIV ( + tab1.col0 ) - col1 * 55 col1 FROM tab1
----
-537
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT 84 * tab1.col1 / ( + tab1.col0 ) - col1 * 55 col1 FROM tab1
----
-537
-702

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

query I rowsort
SELECT - - 88 + cor0.col1 FROM tab1 AS cor0
----
101
114
98

query I rowsort
SELECT - 64 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

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

query I rowsort
SELECT DISTINCT + - col0 * col0 + + ( col0 ) FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT col1 * cor0.col1 + + col0 AS col2 FROM tab2 AS cor0
----
3559
368
968

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

query I rowsort
SELECT - 53 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

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

query I rowsort
SELECT ALL - col0 * 58 * col2 FROM tab0
----
-2030
-423284
-45936

query I rowsort
SELECT DISTINCT + 88 + 38 FROM tab1, tab2 AS cor0
----
126

query I rowsort
SELECT col0 * 41 + col1 * col1 FROM tab0 AS cor0
----
10844
11930
8380

query I rowsort
SELECT - col2 + - 6 AS col0 FROM tab0 AS cor0
----
-39
-7
-88

query I rowsort
SELECT - + col1 * - col2 + - 16 FROM tab0 AS cor0
----
2822
7446
81

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

query I rowsort
SELECT 78 AS col1 FROM tab2 cor0
----
78
78
78

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

query I rowsort
SELECT - - 47 * - ( col0 ) + + ( col2 ) AS col0 FROM tab2 AS cor0
----
-302
-3640
-3675

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

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

query I rowsort
SELECT + col0 + 13 * cor0.col2 FROM tab1 AS cor0
----
1328
705
805

query I rowsort
SELECT + 92 * 12 AS col1 FROM tab1 AS cor0
----
1104
1104
1104

query I rowsort
SELECT ALL ( ( col0 ) ) * + 30 FROM tab0 AS cor0
----
1050
2670
720

onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT DISTINCT + + 93 DIV + col0 AS col1 FROM tab2 AS cor0
----
1
13

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT + + 93 / + col0 AS col1 FROM tab2 AS cor0
----
1
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-228
SELECT ALL tab1.col0 DIV + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-228
SELECT ALL tab1.col0 / + col2 FROM tab1
----
0
0
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + col1 col0 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-231
SELECT ALL - - ( col2 ) DIV col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL - - ( col2 ) / col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 8 * 13 AS col1 FROM tab1
----
104

onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT ALL + tab0.col0 DIV + col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-233
SELECT ALL + tab0.col0 / + col0 AS col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-234
SELECT ALL - cor0.col1 DIV col1 + col2 AS col2 FROM tab0 cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-234
SELECT ALL - cor0.col1 / col1 + col2 AS col2 FROM tab0 cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 81 col2 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT + col0 * - 24 + 29 FROM tab1 AS cor0
----
-1507
-1891
-43

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-238
SELECT ALL + + col0 * - col2 + + 76 DIV + col2 FROM tab0 cor0
----
-7298
-790
41

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + + col0 * - col2 + + 76 / + col2 FROM tab0 cor0
----
-7298
-790
41

query I rowsort
SELECT ALL - col2 + - 90 + cor0.col1 FROM tab2 AS cor0
----
-111
-57
-86

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

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

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

query I rowsort
SELECT 57 * col1 FROM tab2
----
1767
3363
969

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

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

query I rowsort
SELECT DISTINCT + tab0.col1 * - 32 + - col0 FROM tab0
----
-2776
-3001
-3139

query I rowsort
SELECT - col1 + + ( - cor0.col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
1475
629
806

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * col1 col0 FROM tab1 AS cor0
----
110
182
702

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

query I rowsort
SELECT - 49 - col0 AS col0 FROM tab2 AS cor0
----
-127
-128
-56

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

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

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL cor0.col1 / - col0 + col2 FROM tab1 cor0
----
46
57
96

query I rowsort
SELECT col2 * + col1 * tab0.col2 + tab0.col1 * - col2 * - tab0.col1 - col1 * - col1 FROM tab0
----
1299207
18915
345118

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-257
SELECT ALL + + col1 * col1 DIV col0 AS col2 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-257
SELECT ALL + + col1 * col1 / col0 AS col2 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT ALL 3 + col0 * - col1 FROM tab2 AS cor0
----
-1340
-214
-4599

onlyif mysql # use DIV operator for integer division
query I rowsort label-259
SELECT ALL col0 * + col0 + col0 DIV col0 AS col2 FROM tab2 cor0
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL col0 * + col0 + col0 / col0 AS col2 FROM tab2 cor0
----
50
6085
6242

query I rowsort
SELECT - - col1 * col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 + col0 * - col0 col1 FROM tab2 AS cor0
----
-4797
-5408
680

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT ALL - + col1 * + col1 + col2 DIV col2 FROM tab1 cor0
----
-168
-675
-99

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL - + col1 * + col1 + col2 / col2 FROM tab1 cor0
----
-168
-675
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT - 39 * + 67 + tab1.col1 DIV + col2 + col2 * col0 AS col2 FROM tab1
----
-2451
1035
5067

skipif mysql # not compatible
query I rowsort label-264
SELECT - 39 * + 67 + tab1.col1 / + col2 + col2 * col0 AS col2 FROM tab1
----
-2451
1035
5067

onlyif mysql # use DIV operator for integer division
query I rowsort label-265
SELECT DISTINCT + col1 DIV col0 - + col1 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT + col1 / col0 - + col1 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT 42 + 98 * + col0 * - col2 AS col2 FROM tab0
----
-3388
-715162
-77574

onlyif mysql # use DIV operator for integer division
query I rowsort label-267
SELECT 87 DIV 55 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-267
SELECT 87 / 55 FROM tab1
----
1
1
1

query I rowsort
SELECT - 35 * col0 FROM tab2
----
-245
-2730
-2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-269
SELECT + 38 * + col2 - col1 DIV + col0 AS col2 FROM tab0
----
1251
3115
36

skipif mysql # not compatible
query I rowsort label-269
SELECT + 38 * + col2 - col1 / + col0 AS col2 FROM tab0
----
1251
3115
36

query I rowsort
SELECT ( col2 ) * col0 + + col2 * col2 FROM tab0
----
14022
1881
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 - + col1 col1 FROM tab0
----
-100
-139
-193

query I rowsort
SELECT + 28 * + col0 * col2 + + col2 AS col1 FROM tab2
----
5319
56810
84094

query I rowsort
SELECT DISTINCT ( - tab0.col2 ) * col2 + col2 AS col0 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT 75 * col2 + col2 FROM tab2
----
1976
2052
2888

query I rowsort
SELECT DISTINCT - 50 + - col1 FROM tab2 AS cor0
----
-109
-67
-81

query I rowsort
SELECT col1 * col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT col0 * col1 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-279
SELECT ALL + - 27 * col0 DIV + cor0.col1 FROM tab2 AS cor0
----
-125
-35
-6

skipif mysql # not compatible
query I rowsort label-279
SELECT ALL + - 27 * col0 / + cor0.col1 FROM tab2 AS cor0
----
-125
-35
-6

query I rowsort
SELECT DISTINCT 19 * + col2 + col1 * col2 FROM tab1 AS cor0
----
1653
2430
3072

query I rowsort
SELECT + - col1 * - 75 AS col0 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT DISTINCT + tab0.col0 * col2 + col1 * col2 FROM tab0
----
132
14760
3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-283
SELECT DISTINCT - 80 DIV 47 + col1 DIV col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT - 80 / 47 + col1 / col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT - 87 + - col1 FROM tab1
----
-100
-113
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 68 * cor0.col0 col0 FROM tab1 AS cor0
----
204
4352
5440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 * col2 col0 FROM tab0 AS cor0
----
1476
18
594

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

query I rowsort
SELECT - col1 * + col1 + col2 * + col1 FROM tab2
----
-124
-1947
357

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT DISTINCT + col2 * + col1 - + cor0.col0 DIV cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + col2 * + col1 - + cor0.col0 / cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * - col0 col0 FROM tab2 AS cor0
----
-162
-2002
-2964

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

query I rowsort
SELECT ALL + col1 * col2 + + cor0.col1 * + col0 - col2 FROM tab0 AS cor0
----
15479
3491
4869

query I rowsort
SELECT ALL - col2 + + col0 * - col1 AS col1 FROM tab2 cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT DISTINCT - cor0.col0 DIV cor0.col2 FROM tab0, tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT - cor0.col0 / cor0.col2 FROM tab0, tab1 AS cor0
----
-1
0

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE col2 <> ( - col0 / col2 + col1 + col0 )
----
3
64
80

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

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

query I rowsort
SELECT col1 + + col2 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN col0 AND ( NULL )
----

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

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

skipif mysql # not compatible
query I rowsort label-303
SELECT ALL - col2 / - col2 AS col2 FROM tab1 AS cor0
----
1
1
1

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

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

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

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

query I rowsort
SELECT - col0 * - col0 - - col2 AS col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT - + col0 * - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

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

query I rowsort
SELECT + cor0.col0 + cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8

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

query I rowsort
SELECT - col1 - + col1 / - tab0.col0 AS col0 FROM tab0 WHERE NULL BETWEEN ( col0 * col0 ) AND ( NULL ) AND NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + 19 FROM tab0 cor0
----
101
20
52

query I rowsort
SELECT ALL - col1 * - 6 AS col2 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT ALL 34 AS col2 FROM tab1
----
34
34
34

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

query I rowsort
SELECT 91 * + col2 FROM tab1
----
4914
5187
8736

query I rowsort
SELECT 78 FROM tab0, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT ALL + ( 75 + - col0 ) FROM tab2
----
-3
-4
68

query I rowsort
SELECT + + 44 + + col2 FROM tab1 AS cor0
----
101
140
98

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

query I rowsort
SELECT 12 * col1 * - col0 AS col1 FROM tab1
----
-12480
-7680
-936

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

query I rowsort
SELECT DISTINCT + + 65 * - col0 * + col1 + + col2 * + 79 FROM tab1 AS cor0
----
-37097
-60016
-804

query I rowsort
SELECT 87 * col1 * + 39 + cor0.col0 AS col0 FROM tab2 AS cor0
----
105190
200265
57760

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

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

query I rowsort
SELECT ALL col0 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + - 59 + cor0.col2 FROM tab1 AS cor0
----
-2
-5
37

query I rowsort
SELECT col1 + + cor0.col0 * 80 FROM tab1 AS cor0
----
266
5130
6413

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * - col0 + + 84 col1 FROM tab0 AS cor0
----
-1001
-2675
-660

query I rowsort
SELECT + 31 + + col0 AS col0 FROM tab2 AS cor0
----
109
110
38

query I rowsort
SELECT ALL + 83 * cor0.col0 FROM tab0 AS cor0
----
1992
2905
7387

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

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

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

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

query I rowsort
SELECT + - col1 + 69 FROM tab0 AS cor0
----
-17
-22
-28

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 * col2 + + 88 col0 FROM tab2 AS cor0
----
-22511
-24460
-39796

query I rowsort
SELECT ALL 32 * 49 FROM tab1 AS cor0
----
1568
1568
1568

onlyif mysql # use DIV operator for integer division
query I rowsort label-348
SELECT + - ( - cor0.col0 ) + - col2 DIV col0 AS col1 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-348
SELECT + - ( - cor0.col0 ) + - col2 / col0 AS col1 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT + + col0 + + 45 - col2 FROM tab1 AS cor0
----
-6
29
52

query I rowsort
SELECT ALL - col2 * 51 + + col2 * - col2 + - col0 * col0 AS col2 FROM tab1
----
-10252
-20512
-5679

query I rowsort
SELECT DISTINCT col1 * - 88 FROM tab2
----
-1496
-2728
-5192

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-352
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 + - cor0.col0 - col2 FROM tab0 AS cor0
----
-260
-71
-81

query I rowsort
SELECT ALL - - col2 * 10 * col2 AS col2 FROM tab2 AS cor0
----
14440
6760
7290

query I rowsort
SELECT ( - ( + col2 ) ) + - ( + 48 ) - col0 AS col1 FROM tab2 AS cor0
----
-152
-165
-82

query I rowsort
SELECT ALL + + 39 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2106
2223
3744

query I rowsort
SELECT DISTINCT col1 * ( col1 ) + + col0 FROM tab2
----
3559
368
968

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

query I rowsort
SELECT ALL + + ( + col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + 31 * - col2 AS col2 FROM tab1
----
-1674
-1767
-2976

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

query I rowsort
SELECT - cor1.col1 * 77 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1, tab1, tab2 cor2
----
243 values hashing to 6eab3824169c6443f19cb108227d0e7e

onlyif mysql # use DIV operator for integer division
query I rowsort label-363
SELECT - 65 DIV ( - col2 ) AS col2 FROM tab0 AS cor0
----
0
1
65

skipif mysql # not compatible
query I rowsort label-363
SELECT - 65 / ( - col2 ) AS col2 FROM tab0 AS cor0
----
0
1
65

query I rowsort
SELECT ( + 19 ) + - col0 * + ( + cor0.col0 ) FROM tab1 AS cor0
----
-4077
-6381
10

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

query I rowsort
SELECT DISTINCT - - col2 * 6 AS col1 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT col2 * cor0.col1 + - 8 FROM tab0 AS cor0
----
2830
7454
89

query I rowsort
SELECT + 16 * - cor0.col0 FROM tab1 AS cor0
----
-1024
-1280
-48

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-370
SELECT ALL - + cor0.col2 + cor0.col2 DIV col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-53
-58
-85

skipif mysql # not compatible
query I rowsort label-370
SELECT ALL - + cor0.col2 + cor0.col2 / col1 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-53
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT - col1 + col0 DIV 87 FROM tab0 AS cor0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-371
SELECT - col1 + col0 / 87 FROM tab0 AS cor0
----
-86
-90
-97

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

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

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

query I rowsort
SELECT - 16 + cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 75531db4db71cd359ed87fa0e09a5e1c

query I rowsort
SELECT col1 + 4 * col2 * 80 FROM tab2
----
12177
8379
8671

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

query I rowsort
SELECT ALL + col0 * + 64 AS col1 FROM tab1 AS cor0
----
192
4096
5120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-379
SELECT DISTINCT - col1 + CAST( 12 + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-17
-62
-81

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT - col1 + CAST ( 12 + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-17
-62
-81

query I rowsort
SELECT ALL + - col0 + - 10 FROM tab0 AS cor0
----
-34
-45
-99

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

query I rowsort
SELECT + col0 * + 97 AS col2 FROM tab1 cor0
----
291
6208
7760

query I rowsort
SELECT col2 + col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
2
35970
551450

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

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col0 * - 0 AS col0 FROM tab2 cor0
----
0
0
0

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

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

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

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT - col2 DIV ( col1 ) + - cor0.col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-390
SELECT - col2 / ( col1 ) + - cor0.col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

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

query I rowsort
SELECT ALL cor0.col0 * 74 AS col2 FROM tab2 cor0
----
518
5772
5846

query I rowsort
SELECT DISTINCT col2 * + col2 * col2 + 19 FROM tab0
----
20
35956
551387

onlyif mysql # use DIV operator for integer division
query I rowsort label-394
SELECT DISTINCT 3 DIV tab1.col2 + ( - col1 ) AS col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-394
SELECT DISTINCT 3 / tab1.col2 + ( - col1 ) AS col2 FROM tab1
----
-10
-13
-26

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

query I rowsort
SELECT DISTINCT + + col2 * 93 FROM tab1 AS cor0
----
5022
5301
8928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col1 * + cor0.col1 * + ( col1 * + col0 ) col0 FROM tab2 AS cor0
----
16019621
208568
388144

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

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

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

query I rowsort
SELECT col1 * 27 AS col2 FROM tab0
----
2322
2457
2619

query I rowsort
SELECT ALL cor1.col1 * cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 23253cfee4cea5e1d4f993bec937f9fe

onlyif mysql # use DIV operator for integer division
query I rowsort label-402
SELECT - + 43 * 39 DIV + cor0.col2 col1 FROM tab0 AS cor0
----
-1677
-20
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-402
SELECT - + 43 * 39 / + cor0.col2 col1 FROM tab0 AS cor0
----
-1677
-20
-50

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

query I rowsort
SELECT ALL col2 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-405
SELECT DISTINCT 3 * col1 DIV col0 FROM tab2 AS cor0
----
0
13
2

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT 3 * col1 / col0 FROM tab2 AS cor0
----
0
13
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - + CAST ( cor0.col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL cor0.col1 * cor0.col0 + col2 FROM tab1 AS cor0
----
1136
132
697

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

query I rowsort
SELECT DISTINCT 88 + col1 FROM tab0
----
174
179
185

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

query I rowsort
SELECT ALL - 59 + col0 * - col2 + + cor0.col0 FROM tab1 cor0
----
-218
-3643
-7659

query I rowsort
SELECT + + 37 - + col2 FROM tab1 AS cor0
----
-17
-20
-59

query I rowsort
SELECT DISTINCT - + 94 - - cor0.col1 AS col0 FROM tab2 AS cor0
----
-35
-63
-77

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

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

skipif mysql # not compatible
query I rowsort label-415
SELECT col0 + - col0 / - ( + col2 ) AS col2 FROM tab1 AS cor0
----
3
65
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-416
SELECT ALL + 37 DIV - cor0.col0 + col2 FROM tab2 AS cor0
----
22
26
38

skipif mysql # not compatible
query I rowsort label-416
SELECT ALL + 37 / - cor0.col0 + col2 FROM tab2 AS cor0
----
22
26
38

query I rowsort
SELECT DISTINCT - + col1 + + 96 FROM tab2 AS cor0
----
37
65
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-418
SELECT ALL - col0 + CAST( col2 AS SIGNED ) * col0 + + ( - 31 * - col1 ) FROM tab1 AS cor0
----
3894
8003
965

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - col0 + CAST ( col2 AS INTEGER ) * col0 + + ( - 31 * - col1 ) FROM tab1 AS cor0
----
3894
8003
965

query I rowsort
SELECT DISTINCT - - col0 + + col2 + + col0 AS col1 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT + cor0.col1 + - 29 * + cor0.col2 FROM tab2 AS cor0
----
-1085
-695
-752

query I rowsort
SELECT + 18 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL 96 + - col1 * tab0.col2 AS col1 FROM tab0
----
-1
-2742
-7366

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

skipif mysql # not compatible
query I rowsort label-423
SELECT + ( col2 ) * CAST ( 34 * col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1190
248132
26928

query I rowsort
SELECT - 60 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
18
580
980

query I rowsort
SELECT ALL + - 85 * + col1 AS col1 FROM tab1 AS cor0
----
-1105
-2210
-850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col2 FROM tab1
----
-78
-78
-78

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

query I rowsort
SELECT DISTINCT - - col2 - - col2 AS col0 FROM tab1 AS cor0
----
108
114
192

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

skipif mysql # not compatible
query I rowsort label-429
SELECT CAST ( NULL AS INTEGER ) * cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-430
SELECT ALL col2 - - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL col2 - - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
119
173
98

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

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

query I rowsort
SELECT - col2 + - 70 AS col2 FROM tab0 AS cor0
----
-103
-152
-71

query I rowsort
SELECT ALL - 53 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

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

query I rowsort
SELECT + ( 57 ) * col0 FROM tab1
----
171
3648
4560

onlyif mysql # use DIV operator for integer division
query I rowsort label-437
SELECT + ( cor0.col0 ) DIV col2 + col1 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-437
SELECT + ( cor0.col0 ) / col2 + col1 FROM tab0 AS cor0
----
132
86
92

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

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

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

query I rowsort
SELECT col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - col2 * col0 + - 55 AS col0 FROM tab0 AS cor0
----
-7353
-847
-90

query I rowsort
SELECT ALL - 25 + - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
164
2003
2977

onlyif mysql # use DIV operator for integer division
query I rowsort label-444
SELECT col0 DIV + col2 + + 93 AS col0 FROM tab0 AS cor0
----
128
93
94

skipif mysql # not compatible
query I rowsort label-444
SELECT col0 / + col2 + + 93 AS col0 FROM tab0 AS cor0
----
128
93
94

query I rowsort
SELECT ALL tab0.col0 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 * + col0 col1 FROM tab0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 - 81 col0 FROM tab0, tab0 AS cor0
----
-46
-57
8

query I rowsort
SELECT ALL col2 + + col1 + + 56 FROM tab0
----
154
175
229

query I rowsort
SELECT ALL + 43 + - col1 * + col2 FROM tab0
----
-2795
-54
-7419

onlyif mysql # use DIV operator for integer division
query I rowsort label-450
SELECT col0 * col1 + col2 DIV - 89 AS col2 FROM tab1
----
1039
640
78

skipif mysql # not compatible
query I rowsort label-450
SELECT col0 * col1 + col2 / - 89 AS col2 FROM tab1
----
1039
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-451
SELECT col1 + - cor0.col0 DIV col0 FROM tab2 cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-451
SELECT col1 + - cor0.col0 / col0 FROM tab2 cor0
----
16
30
58

query I rowsort
SELECT - 98 + + col2 * - col0 FROM tab0 AS cor0
----
-133
-7396
-890

query I rowsort
SELECT ALL 9 + + col0 * 46 FROM tab2 AS cor0
----
331
3597
3643

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 * col2 col1 FROM tab0 cor0
----
1716
4264
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-456
SELECT col0 DIV col0 + col1 AS col0 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-456
SELECT col0 / col0 + col1 AS col0 FROM tab2
----
18
32
60

query I rowsort
SELECT ALL 37 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT DISTINCT + col0 * col1 - 68 AS col2 FROM tab1 AS cor0
----
10
572
972

query I rowsort
SELECT + - col1 + - cor0.col0 * col1 * + col1 FROM tab1 AS cor0
----
-13533
-2054
-6410

query I rowsort
SELECT + ( + col1 ) - + col0 FROM tab1 cor0
----
-54
-67
23

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

query I rowsort
SELECT ALL + ( col0 ) * cor0.col2 + - 75 - col0 FROM tab2 AS cor0
----
107
1875
2848

onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT ALL + col1 + - col1 DIV col0 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL + col1 + - col1 / col0 FROM tab1 AS cor0
----
10
13
18

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

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

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

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

query I rowsort
SELECT DISTINCT - - 90 + - 17 * col2 FROM tab2 AS cor0
----
-352
-369
-556

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

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

query I rowsort
SELECT ALL - 23 + col2 AS col1 FROM tab2 cor0
----
15
3
4

query I rowsort
SELECT - col2 * cor0.col1 - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-471
SELECT + CAST( - col1 AS SIGNED ) + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1475
629
806

skipif mysql # not compatible
query I rowsort label-471
SELECT + CAST ( - col1 AS INTEGER ) + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 + 29 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1146
-6786
-69

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

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

query I rowsort
SELECT + 43 * col1 + col1 * ( + col1 ) FROM tab1
----
1794
530
728

query I rowsort
SELECT - col0 * - col2 + - 53 * - tab2.col2 AS col1 FROM tab2
----
1620
3406
5016

query I rowsort
SELECT DISTINCT - 65 * - col2 FROM tab0
----
2145
5330
65

query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 - 51 AS col2 FROM tab1 cor0
----
118
49
625

query I rowsort
SELECT DISTINCT - - 47 + 18 FROM tab2, tab0 AS cor0
----
65

query I rowsort
SELECT DISTINCT + 83 + cor0.col2 AS col0 FROM tab1 AS cor0
----
137
140
179

query I rowsort
SELECT ALL - 86 - - col1 FROM tab2 AS cor0
----
-27
-55
-69

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT DISTINCT 48 + - col1 DIV 64 FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-482
SELECT DISTINCT 48 + - col1 / 64 FROM tab1 cor0
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-483
SELECT - 4 * col1 DIV ( col2 ) FROM tab0 AS cor0
----
-10
-388
-4

skipif mysql # not compatible
query I rowsort label-483
SELECT - 4 * col1 / ( col2 ) FROM tab0 AS cor0
----
-10
-388
-4

query I rowsort
SELECT ALL 69 * - col1 + + 47 * col0 FROM tab1 AS cor0
----
-1653
2318
2863

query I rowsort
SELECT ALL col0 + 87 FROM tab2 AS cor0
----
165
166
94

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

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

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

query I rowsort
SELECT col2 * + ( 60 * - col0 ) FROM tab2 AS cor0
----
-11340
-121680
-180120

query I rowsort
SELECT ALL + col2 * + 48 + col1 AS col1 FROM tab1 cor0
----
2618
2746
4621

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-490
SELECT DISTINCT + col1 / + col0 col1 FROM tab2 cor0
----
0
4

query I rowsort
SELECT + col0 * 84 AS col1 FROM tab2 cor0
----
588
6552
6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-492
SELECT ALL + col2 DIV - 34 + 10 AS col2 FROM tab2 AS cor0
----
10
10
9

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL + col2 / - 34 + 10 AS col2 FROM tab2 AS cor0
----
10
10
9

query I rowsort
SELECT ALL - - col1 * - col1 - 13 * cor0.col1 FROM tab2 AS cor0
----
-1364
-4248
-510

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( col2 AS REAL ) * col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-495
SELECT ALL col1 * - col0 + 68 + - col1 DIV ( ( col1 ) ) FROM tab1 cor0
----
-11
-573
-973

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL col1 * - col0 + 68 + - col1 / ( ( col1 ) ) FROM tab1 cor0
----
-11
-573
-973

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

query I rowsort
SELECT DISTINCT + col0 * 1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col2 + - 5 * col1 FROM tab2 AS cor0
----
-128
-269
-47

query I rowsort
SELECT col0 * 33 * - 3 FROM tab2 AS cor0
----
-693
-7722
-7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + ( - ( col1 ) ) + col2 col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT + 86 * cor0.col0 FROM tab1 AS cor0
----
258
5504
6880

onlyif mysql # use DIV operator for integer division
query I rowsort label-502
SELECT col2 DIV 95 + col0 + col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-502
SELECT col2 / 95 + col0 + col0 FROM tab0 AS cor0
----
178
48
70

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

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

query I rowsort
SELECT + + col2 * + 74 AS col0 FROM tab0 AS cor0
----
2442
6068
74

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

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

query I rowsort
SELECT - + 0 * col1 + col1 FROM tab1 AS cor0
----
10
13
26

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

query I rowsort
SELECT ALL - + 8 + col1 * + col0 FROM tab0 AS cor0
----
2056
3387
8091

query I rowsort
SELECT DISTINCT - 58 * + 44 FROM tab1 cor0
----
-2552

query I rowsort
SELECT ALL col1 * 19 AS col1 FROM tab1
----
190
247
494

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

skipif mysql # not compatible
query I rowsort label-511
SELECT DISTINCT col1 / col0 AS col1 FROM tab1
----
0
8

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

query I rowsort
SELECT + 30 - - 21 * - col1 FROM tab1 AS cor0
----
-180
-243
-516

query I rowsort
SELECT + - ( - col1 ) + cor0.col2 * 15 AS col0 FROM tab0 AS cor0
----
112
1321
581

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

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

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

query I rowsort
SELECT 49 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1274
-490
-637

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * col0 + col1 col2 FROM tab0
----
-1155
-250
-393

query I rowsort
SELECT + col0 * col2 * + col0 + - 53 FROM tab0 AS cor0
----
1172
18955
649469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + - 47 col1 FROM tab0 AS cor0
----
7349
8234
9362

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-524
SELECT ALL CAST( col2 AS SIGNED ) + + col1 AS col0 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-524
SELECT ALL CAST ( col2 AS INTEGER ) + + col1 AS col0 FROM tab2
----
55
58
85

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

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

query I rowsort
SELECT - col1 * col2 * - col2 - cor0.col0 AS col2 FROM tab2 AS cor0
----
22592
24469
39806

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

query I rowsort
SELECT DISTINCT - col2 + - ( col2 ) AS col1 FROM tab2
----
-52
-54
-76

query I rowsort
SELECT DISTINCT ( + col2 ) * - col0 + 93 * - col2 * col0 FROM tab2
----
-17766
-190632
-282188

query I rowsort
SELECT DISTINCT + col2 + - col1 + col1 * col1 * ( - col1 + + ( - 57 ) ) FROM tab1
----
-11747
-56080
-6653

query I rowsort
SELECT ( - tab2.col2 ) + + col1 + col2 AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + 57 * + col1 FROM tab1 AS cor0
----
1482
570
741

onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT DISTINCT col2 DIV + ( col0 ) AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT col2 / + ( col0 ) AS col1 FROM tab0
----
0
1

query I rowsort
SELECT + 82 FROM tab1, tab1 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL ( + col1 ) * tab0.col2 + + col0 * col2 + col0 FROM tab0
----
14849
167
3654

query I rowsort
SELECT DISTINCT + tab2.col2 - 65 FROM tab2, tab0, tab2 AS cor0
----
-27
-38
-39

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

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

query I rowsort
SELECT ALL + 26 * + ( col0 ) AS col1 FROM tab2 cor0
----
182
2028
2054

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab1, tab2 AS cor0
----
17
31
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + + CAST ( + col2 AS INTEGER ) * cor0.col1 col2 FROM tab2 AS cor0
----
1534
646
837

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + + col2 * + 27 FROM tab2 cor0
----
1026
702
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-549
SELECT 46 DIV - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f730e3870d8be9a0c6f0d70ca7571d25

skipif mysql # not compatible
query I rowsort label-549
SELECT 46 / - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f730e3870d8be9a0c6f0d70ca7571d25

query I rowsort
SELECT + 40 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-552
SELECT ALL cor0.col2 DIV 43 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL cor0.col2 / 43 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT + col1 * col2 - cor0.col1 * + col0 FROM tab1 cor0
----
-70
1326
208

query I rowsort
SELECT - col0 * col0 + - col0 + col0 * ( + 59 ) FROM tab0 AS cor0
----
-2759
805
816

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 54 col1 FROM tab0 cor0
----
-4644
-4914
-5238

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-557
SELECT DISTINCT - col0 + + CAST( 58 AS SIGNED ) * col2 + 19 * col0 FROM tab2 AS cor0
----
1692
2912
3626

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT - col0 + + CAST ( 58 AS INTEGER ) * col2 + 19 * col0 FROM tab2 AS cor0
----
1692
2912
3626

query I rowsort
SELECT ALL 99 + - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 0cfc9014804ff3e8f265e0be1ed13610

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

query I rowsort
SELECT DISTINCT ( tab1.col1 ) * 20 * col2 FROM tab1
----
11400
24960
28080

query I rowsort
SELECT + 3 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

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

query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

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

query I rowsort
SELECT ALL - 24 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT - col0 * cor0.col1 + 85 AS col1 FROM tab0 AS cor0
----
-1979
-3310
-8014

query I rowsort
SELECT DISTINCT - - cor0.col1 * - cor0.col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT col1 + 83 FROM tab1
----
109
93
96

query I rowsort
SELECT DISTINCT + col0 * col0 + 57 * col2 FROM tab2
----
1588
7566
8407

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * cor0.col1 col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4307a5c67912e63c47b74283c0988b96

query I rowsort
SELECT DISTINCT + 20 * - col2 AS col2 FROM tab0 AS cor0
----
-1640
-20
-660

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

query I rowsort
SELECT 61 - col0 FROM tab0
----
-28
26
37

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

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

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

query I rowsort
SELECT ALL + 15 + + col1 AS col2 FROM tab1 AS cor0
----
25
28
41

query I rowsort
SELECT DISTINCT + col1 * col2 * + 6 FROM tab2 AS cor0
----
3876
5022
9204

query I rowsort
SELECT ALL + - col2 * - col0 * 11 AS col1 FROM tab1 AS cor0
----
1782
40128
84480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col0 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-581
SELECT 97 DIV + col1 FROM tab2 AS cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-581
SELECT 97 / + col1 FROM tab2 AS cor0
----
1
3
5

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-584
SELECT + col0 * - 57 + col1 DIV col0 + cor0.col0 FROM tab1 AS cor0
----
-160
-3584
-4480

skipif mysql # not compatible
query I rowsort label-584
SELECT + col0 * - 57 + col1 / col0 + cor0.col0 FROM tab1 AS cor0
----
-160
-3584
-4480

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-586
SELECT col1 DIV + 56 + + col0 col0 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-586
SELECT col1 / + 56 + + col0 col0 FROM tab0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-587
SELECT DISTINCT 5 DIV 83 col2 FROM tab1, tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT 5 / 83 col2 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT col1 * + 9 + + col2 FROM tab0
----
807
874
901

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

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

query I rowsort
SELECT DISTINCT tab2.col0 * 16 + - col0 FROM tab2
----
105
1170
1185

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

query I rowsort
SELECT ALL + col2 * 13 * - tab2.col2 FROM tab2
----
-18772
-8788
-9477

query I rowsort
SELECT - 50 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-47
14
30

query I rowsort
SELECT - + cor0.col1 + 32 FROM tab0 AS cor0
----
-54
-59
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-595
SELECT DISTINCT + col2 + col1 DIV col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + col2 + col1 / col1 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-596
SELECT DISTINCT 2 DIV col2 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT 2 / col2 FROM tab0
----
0
2

query I rowsort
SELECT - ( + col1 ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - - 12 * - 77 FROM tab0 AS cor0
----
-924
-924
-924

onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT 19 DIV col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-599
SELECT 19 / col1 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL + tab0.col0 - + col1 * - 5 AS col2 FROM tab0
----
454
520
544

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 * + cor0.col0 col1 FROM tab0 AS cor0
----
-1728
-2520
-6408

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

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

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

query I rowsort
SELECT col1 * + col2 * ( + col0 * + tab1.col1 ) + - tab1.col1 FROM tab1
----
109486
1297907
364790

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

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

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

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

query I rowsort
SELECT col1 * col0 - 4 FROM tab0 AS cor0
----
2060
3391
8095

query I rowsort
SELECT ALL col0 * - ( + col1 ) + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT col1 + - ( + 7 ) FROM tab1 AS cor0
----
19
3
6

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

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

query I rowsort
SELECT - col0 * 95 AS col2 FROM tab2 AS cor0
----
-665
-7410
-7505

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

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

query I rowsort
SELECT col1 + col0 - - col0 AS col1 FROM tab1 AS cor0
----
138
173
32

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

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

query I rowsort
SELECT + ( + col0 ) + - 11 FROM tab2
----
-4
67
68

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

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

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

query I rowsort
SELECT DISTINCT + col1 + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-626
SELECT + + col2 / col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 * col1 * col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
118826
49569
720893

query I rowsort
SELECT - - col0 + col2 * + col0 * col2 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT DISTINCT col1 * - col1 + col2 * col1 FROM tab2
----
-124
-1947
357

query I rowsort
SELECT ALL tab2.col2 + col1 * tab2.col0 AS col0 FROM tab2
----
1381
244
4628

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

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

query I rowsort
SELECT - + 26 AS col0 FROM tab2 AS cor0
----
-26
-26
-26

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

skipif mysql # not compatible
query I rowsort label-633
SELECT col2 * cor0.col1 / - col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT col0 + cor0.col1 * col1 * - col2 FROM tab1 AS cor0
----
-16144
-36501
-5636

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-636
SELECT - 35 DIV col0 AS col2 FROM tab1 AS cor0
----
-11
0
0

skipif mysql # not compatible
query I rowsort label-636
SELECT - 35 / col0 AS col2 FROM tab1 AS cor0
----
-11
0
0

query I rowsort
SELECT 12 * + col2 FROM tab1 AS cor0
----
1152
648
684

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

query I rowsort
SELECT + 9 * + col2 + - col0 * - 26 * - cor0.col0 FROM tab0 AS cor0
----
-14679
-205208
-31841

query I rowsort
SELECT DISTINCT + - col1 + col2 + col0 FROM tab0 AS cor0
----
-29
-61
80

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-642
SELECT CAST( + col2 + + col1 AS SIGNED ) AS col1 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-642
SELECT CAST ( + col2 + + col1 AS INTEGER ) AS col1 FROM tab1
----
109
67
80

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

query I rowsort
SELECT - 79 * + col0 * col0 + 37 AS col1 FROM tab2
----
-3834
-480599
-493002

query I rowsort
SELECT ALL ( tab1.col2 + + col0 ) FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT + 99 - col0 * col1 DIV col0 AS col0 FROM tab0
----
13
2
8

skipif mysql # not compatible
query I rowsort label-646
SELECT + 99 - col0 * col1 / col0 AS col0 FROM tab0
----
13
2
8

query I rowsort
SELECT + 61 * + cor0.col2 + - 99 AS col0 FROM tab0 AS cor0
----
-38
1914
4903

query I rowsort
SELECT - cor0.col0 - + col0 * 98 FROM tab0 cor0
----
-2376
-3465
-8811

query I rowsort
SELECT ALL col2 - col1 * 9 FROM tab1
----
-180
-21
-33

query I rowsort
SELECT 53 * + col2 + col0 FROM tab1 cor0
----
2865
3085
5168

query I rowsort
SELECT - + col0 * - col1 * col0 + col0 * - col2 - - col0 AS col1 FROM tab1 AS cor0
----
37376
75
75600

query I rowsort
SELECT DISTINCT + 4 * + col1 FROM tab0 AS cor0
----
344
364
388

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

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

query I rowsort
SELECT + 29 + col1 AS col2 FROM tab0 AS cor0
----
115
120
126

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

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

query I rowsort
SELECT + + col0 * + cor0.col2 + 57 FROM tab1 AS cor0
----
219
3705
7737

query I rowsort
SELECT col1 * 19 + 77 FROM tab0 AS cor0
----
1711
1806
1920

query I rowsort
SELECT + cor0.col0 * + cor0.col0 + 24 FROM tab1 AS cor0
----
33
4120
6424

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

skipif mysql # not compatible
query I rowsort label-660
SELECT + + col1 * CAST ( col1 * + cor0.col0 + - col0 AS INTEGER ) FROM tab1 AS cor0
----
12480
1950
5760

query I rowsort
SELECT - col2 * - ( 35 ) FROM tab0 AS cor0
----
1155
2870
35

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

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

query I rowsort
SELECT DISTINCT - col2 * 52 AS col2 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT ALL - ( + 24 ) + cor0.col1 FROM tab0 AS cor0
----
62
67
73

query I rowsort
SELECT DISTINCT ( 14 ) * col2 FROM tab2 AS cor0
----
364
378
532

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

query I rowsort
SELECT ALL ( 14 ) * - col0 * 2 FROM tab1 AS cor0
----
-1792
-2240
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-669
SELECT ALL CAST( - 50 AS SIGNED ) col0 FROM tab0 AS cor0
----
-50
-50
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-669
SELECT ALL CAST ( - 50 AS INTEGER ) col0 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - + col0 * col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL 68 * col2 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT - - 97 + cor0.col2 FROM tab2 AS cor0
----
123
124
135

onlyif mysql # use DIV operator for integer division
query I rowsort label-673
SELECT DISTINCT - 23 DIV + 34 - + col2 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-673
SELECT DISTINCT - 23 / + 34 - + col2 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT DISTINCT - - 19 DIV col0 + - col1 + cor0.col0 FROM tab2 AS cor0
----
-22
19
62

skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT - - 19 / col0 + - col1 + cor0.col0 FROM tab2 AS cor0
----
-22
19
62

query I rowsort
SELECT ALL + 69 * + col1 - cor0.col0 * + col1 FROM tab2 cor0
----
-170
-531
1922

query I rowsort
SELECT DISTINCT 72 * - col2 AS col2 FROM tab2 AS cor0
----
-1872
-1944
-2736

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

query I rowsort
SELECT ALL - 93 + col0 AS col1 FROM tab2 AS cor0
----
-14
-15
-86

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

query I rowsort
SELECT ALL + 97 + - col1 FROM tab0 AS cor0
----
0
11
6

query I rowsort
SELECT ALL - 3 AS col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) + - tab1.col0 / + col2 FROM tab1
----
54
56
96

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

query I rowsort
SELECT DISTINCT + col0 * 22 FROM tab2 AS cor0
----
154
1716
1738

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

query I rowsort
SELECT + col2 + + 44 FROM tab1 cor0
----
101
140
98

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

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

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

query I rowsort
SELECT + + col0 * 55 + + col2 AS col0 FROM tab1 cor0
----
219
3577
4496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 * + tab2.col2 * col1 col1 FROM tab2
----
-22572
-24510
-39858

query I rowsort
SELECT DISTINCT tab1.col1 * col0 + 52 + - col1 FROM tab1
----
104
1079
682

query I rowsort
SELECT 68 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

onlyif mysql # use DIV operator for integer division
query I rowsort label-694
SELECT DISTINCT - - 54 + - 94 DIV + col2 FROM tab0 AS cor0
----
-40
52
53

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT - - 54 + - 94 / + col2 FROM tab0 AS cor0
----
-40
52
53

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

query I rowsort
SELECT - 92 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

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

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

query I rowsort
SELECT ALL col1 * 22 + + 30 * + tab2.col1 AS col1 FROM tab2
----
1612
3068
884

query I rowsort
SELECT DISTINCT col2 + - col1 + - 29 FROM tab0
----
-125
-38
-82

query I rowsort
SELECT ALL col2 + - col0 + col2 FROM tab2
----
-26
-3
47

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

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

query I rowsort
SELECT ALL - + col0 * + 38 FROM tab1 AS cor0
----
-114
-2432
-3040

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

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

query I rowsort
SELECT ALL + col0 + 27 AS col0 FROM tab1 AS cor0
----
107
30
91

query I rowsort
SELECT col0 + 53 + + col2 FROM tab2 AS cor0
----
157
170
87

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

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

query I rowsort
SELECT - 25 FROM tab2, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT - col2 DIV + col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-712
SELECT - col2 / + col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT - col0 + + col2 - - 38 AS col2 FROM tab2
----
-14
-3
58

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * - col0 col0 FROM tab1 AS cor0
----
-237
-5056
-6320

query I rowsort
SELECT ALL + 74 AS col0 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT col2 * cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
26136
35
598436

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 + col2 * + col0 col2 FROM tab0
----
-19
7244
738

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

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

query I rowsort
SELECT + cor1.col1 * - ( cor1.col2 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5

query I rowsort
SELECT + 73 * col0 * col1 AS col2 FROM tab0 AS cor0
----
150672
247835
591227

query I rowsort
SELECT ALL - + 84 FROM tab0 AS cor0
----
-84
-84
-84

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

query I rowsort
SELECT DISTINCT + 21 * col2 AS col1 FROM tab2 AS cor0
----
546
567
798

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

query I rowsort
SELECT ALL 97 + col1 + - 99 FROM tab1 cor0
----
11
24
8

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

skipif mysql # not compatible
query I rowsort label-732
SELECT DISTINCT - col2 + cor0.col2 / - col2 AS col2 FROM tab0 cor0
----
-2
-34
-83

query I rowsort
SELECT ALL + - 63 + - col2 * + 32 FROM tab0 AS cor0
----
-1119
-2687
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT 14 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT 49 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT DISTINCT 55 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
1839
4599
90

query I rowsort
SELECT 74 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT 9 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - col1 * 64 FROM tab2 AS cor0
----
-1088
-1984
-3776

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

skipif mysql # not compatible
query I rowsort label-741
SELECT + + col1 / + ( col0 + cor0.col2 ) FROM tab2 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-742
SELECT + - cor0.col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * + 89 AS col1 FROM tab2 cor0
----
623
6942
7031

query I rowsort
SELECT col0 * - 82 FROM tab1 AS cor0
----
-246
-5248
-6560

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-749
SELECT ALL + CAST( - ( col0 ) AS SIGNED ) + - ( + col2 ) FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL + CAST ( - ( col0 ) AS INTEGER ) + - ( + col2 ) FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT ALL + 9 AS col1 FROM tab0, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817

query I rowsort
SELECT ALL - 59 FROM tab2
----
-59
-59
-59

query I rowsort
SELECT DISTINCT col2 - col2 * tab0.col2 * + col2 FROM tab0
----
-35904
-551286
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

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

query I rowsort
SELECT DISTINCT + col2 + tab2.col0 * col1 AS col0 FROM tab2 WHERE NOT NULL >= col0 * col2 - col0
----

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

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

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

query I rowsort
SELECT col1 + - tab0.col0 * col0 * col1 AS col2 FROM tab0
----
-118728
-49450
-720720

query I rowsort
SELECT DISTINCT + col1 + + col0 * + col0 FROM tab1
----
35
4106
6413

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col0 ) = col1 * + col0
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * col0 NOT BETWEEN NULL AND ( col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT col2 / + col0 + - col2 * - col1 AS col2 FROM tab0 WHERE NOT col1 NOT IN ( + col0 * + col0 + - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-767
SELECT DISTINCT col0 DIV - col2 + + col2 * col0 + cor0.col0 FROM tab0 AS cor0
----
35
7386
816

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT col0 / - col2 + + col2 * col0 + cor0.col0 FROM tab0 AS cor0
----
35
7386
816

query I rowsort
SELECT DISTINCT - col0 * col1 + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524

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

skipif mysql # not compatible
query I rowsort label-769
SELECT col1 + + col2 / - col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 + tab0.col0 + col1 * - col1 FROM tab0 WHERE NULL > ( - col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT ALL col2 - col1 DIV + col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL col2 - col1 / + col2 FROM tab0
----
-96
31
81

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----

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

query I rowsort
SELECT col2 + - col0 + - tab2.col1 FROM tab2
----
-11
-111
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND cor0.col1
----

query I rowsort
SELECT + col0 + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + col2 * - 44 * + col2 + tab1.col2 FROM tab1
----
-128250
-142899
-405408

query I rowsort
SELECT 28 * - 89 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ebc610514ff24d4f6e81fff243c7d97

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

skipif mysql # not compatible
query I rowsort label-780
SELECT + col1 + + 17 / - col0 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT col0 + - 5 * col1 AS col0 FROM tab0 AS cor0
----
-366
-406
-450

onlyif mysql # use DIV operator for integer division
query I rowsort label-782
SELECT ALL - col1 DIV + ( + col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL - col1 / + ( + col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
-89
-92
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-783
SELECT ALL + + col2 * - col0 + - ( - col1 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
-190
-2029
-3003

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL + + col2 * - col0 + - ( - col1 ) / - col1 AS col2 FROM tab2 AS cor0
----
-190
-2029
-3003

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

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-786
SELECT col2 + CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col0 * col1 + 46 + cor0.col2 FROM tab2 AS cor0
----
1427
290
4674

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

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

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

query I rowsort
SELECT ALL + - 99 * - col0 + - col0 FROM tab2 AS cor0
----
686
7644
7742

query I rowsort
SELECT DISTINCT + col2 + 98 FROM tab0 AS cor0
----
131
180
99

query I rowsort
SELECT ALL + - 99 - col2 FROM tab2 AS cor0
----
-125
-126
-137

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT 96 + - cor0.col2 * - col1 FROM tab1 AS cor0
----
1344
1500
666

query I rowsort
SELECT ALL + col0 * 34 * + col0 + 6 FROM tab0 cor0
----
19590
269320
41656

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( cor0.col0 AS REAL ) + col2 FROM tab0 AS cor0
----
171
36
57

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

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

query I rowsort
SELECT ALL + 12 * col1 - + cor0.col1 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT DISTINCT + 30 * col0 AS col1 FROM tab2 cor0
----
210
2340
2370

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

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

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

query I rowsort
SELECT - 20 AS col0 FROM tab1 cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT - + col0 * col0 + 31 AS col2 FROM tab0 AS cor0
----
-1194
-545
-7890

query I rowsort
SELECT ALL + col0 * ( - col0 * col1 ) - col0 FROM tab1 AS cor0
----
-237
-41024
-83280

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

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

query I rowsort
SELECT DISTINCT col0 + col1 * col0 + + col1 FROM tab0 AS cor0
----
2174
3527
8279

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

query I rowsort
SELECT 92 * + col1 - + 83 * 35 FROM tab2
----
-1341
-53
2523

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor1.col2 * - cor1.col1 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1248
1404
570

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

query I rowsort
SELECT + 76 * - col0 * + col1 AS col2 FROM tab2 cor0
----
-102068
-16492
-349752

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-815
SELECT DISTINCT - cor0.col0 * + col0 + + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-4090
-6394
-9

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT - cor0.col0 * + col0 + + col0 / + col1 AS col1 FROM tab1 AS cor0
----
-4090
-6394
-9

query I rowsort
SELECT DISTINCT + - 14 + col0 AS col2 FROM tab0 AS cor0
----
10
21
75

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-818
SELECT DISTINCT + CAST( - 70 AS SIGNED ) + + col0 * - 43 AS col1 FROM tab1 AS cor0
----
-199
-2822
-3510

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT + CAST ( - 70 AS INTEGER ) + + col0 * - 43 AS col1 FROM tab1 AS cor0
----
-199
-2822
-3510

query I rowsort
SELECT DISTINCT 55 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7451
8336
9464

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

query I rowsort
SELECT col1 * - col0 + 26 FROM tab0 AS cor0
----
-2038
-3369
-8073

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

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL - + col2 / col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

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

query I rowsort
SELECT DISTINCT + col0 * 10 AS col0 FROM tab0 AS cor0
----
240
350
890

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

query I rowsort
SELECT + col0 * - 96 * - ( + col0 ) FROM tab2 AS cor0
----
4704
584064
599136

query I rowsort
SELECT ALL + col2 * - col1 - + cor0.col1 * + col2 AS col0 FROM tab2 cor0
----
-1292
-1674
-3068

query I rowsort
SELECT + col2 + + 29 * + col1 FROM tab1 AS cor0
----
347
473
808

query I rowsort
SELECT ALL col0 + - 21 + cor0.col1 FROM tab1 AS cor0
----
53
72
8

query I rowsort
SELECT - - col0 * - 66 * - 98 + cor0.col2 * col1 * 61 FROM tab0 cor0
----
1030834
232297
328350

query I rowsort
SELECT col0 + + 36 FROM tab2 AS cor0
----
114
115
43

query I rowsort
SELECT ALL + col1 + 25 * - col1 FROM tab2 AS cor0
----
-1416
-408
-744

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

query I rowsort
SELECT ALL col0 * + 8 FROM tab0
----
192
280
712

query I rowsort
SELECT ALL 19 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-837
SELECT + CAST( 19 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
-19
-7
-8

skipif mysql # not compatible
query I rowsort label-837
SELECT + CAST ( 19 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
-19
-7
-8

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

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

query I rowsort
SELECT - - 39 + - col1 * + col2 FROM tab0 AS cor0
----
-2799
-58
-7423

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

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

query I rowsort
SELECT DISTINCT - col0 * tab1.col0 * col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT - col2 * + 45 + col0 AS col1 FROM tab1
----
-2427
-2501
-4240

query I rowsort
SELECT - 32 * + 38 AS col0 FROM tab2 AS cor0
----
-1216
-1216
-1216

query I rowsort
SELECT col2 + + 77 FROM tab2 AS cor0
----
103
104
115

query I rowsort
SELECT DISTINCT 16 * + col1 FROM tab0
----
1376
1456
1552

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

query I rowsort
SELECT ALL 9 * - col0 FROM tab2
----
-63
-702
-711

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * + col1 + + col1 col1 FROM tab1
----
50
593
957

query I rowsort
SELECT ALL - ( - col0 ) * - col2 + 14 * - col2 AS col1 FROM tab0
----
-1254
-49
-8446

query I rowsort
SELECT ALL - 91 + tab1.col2 * col0 AS col2 FROM tab1
----
3557
71
7589

onlyif mysql # use DIV operator for integer division
query I rowsort label-852
SELECT + col1 DIV 45 AS col2 FROM tab0 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-852
SELECT + col1 / 45 AS col2 FROM tab0 AS cor0
----
1
2
2

query I rowsort
SELECT - col2 * 70 + col0 AS col1 FROM tab2 AS cor0
----
-1742
-1883
-2581

onlyif mysql # use DIV operator for integer division
query I rowsort label-854
SELECT - col1 DIV + 65 + - 15 * + col2 AS col1 FROM tab1 AS cor0
----
-1440
-810
-855

skipif mysql # not compatible
query I rowsort label-854
SELECT - col1 / + 65 + - 15 * + col2 AS col1 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT 36 + - col1 + - 24 FROM tab2
----
-19
-47
-5

query I rowsort
SELECT ALL + 0 + 60 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

onlyif mysql # use DIV operator for integer division
query I rowsort label-857
SELECT - 31 DIV 67 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-857
SELECT - 31 / 67 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

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

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

query I rowsort
SELECT + - col1 - + 10 AS col1 FROM tab1 AS cor0
----
-20
-23
-36

query I rowsort
SELECT - col1 + - col1 * 57 AS col0 FROM tab1 AS cor0
----
-1508
-580
-754

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

query I rowsort
SELECT - + col1 * 4 + col1 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT + - 21 + - col0 FROM tab0 AS cor0
----
-110
-45
-56

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

query I rowsort
SELECT ALL col2 * col1 + ( ( col0 ) ) + cor0.col1 AS col0 FROM tab1 cor0
----
1341
1433
644

query I rowsort
SELECT ALL - 83 * col1 - 25 AS col0 FROM tab0 AS cor0
----
-7163
-7578
-8076

query I rowsort
SELECT + 19 + - col0 AS col0 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + col0 AS col2 FROM tab1 cor0
----
-1168
-1401
-506

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

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

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

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

query I rowsort
SELECT col1 * ( + col1 ) FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL - col2 + 20 * col1 AS col2 FROM tab1 AS cor0
----
143
164
466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 * 65 col2 FROM tab1 cor0
----
-1693
-714
-925

onlyif mysql # use DIV operator for integer division
query I rowsort label-876
SELECT ALL + col0 DIV + cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + col0 / + cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-24
-88
0

query I rowsort
SELECT DISTINCT - 65 + - col2 AS col2 FROM tab2
----
-103
-91
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-878
SELECT ALL - col1 - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL - col1 - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT 86 * + col0 FROM tab1
----
258
5504
6880

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

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

query I rowsort
SELECT 98 + + 32 FROM tab0 AS cor0
----
130
130
130

query I rowsort
SELECT - + col2 * + 67 + col1 - + 8 AS col0 FROM tab0 cor0
----
-2133
-5411
22

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

query I rowsort
SELECT ( 52 ) * - col1 + + 3 + 41 AS col2 FROM tab2 cor0
----
-1568
-3024
-840

query I rowsort
SELECT - ( - 15 ) * - col1 - cor0.col0 * col1 FROM tab2 AS cor0
----
-1598
-5487
-682

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

query I rowsort
SELECT col0 * ( 82 ) * col2 FROM tab2
----
15498
166296
246164

query I rowsort
SELECT ALL 75 + - col2 * - cor0.col0 * 55 AS col0 FROM tab2 AS cor0
----
10470
111615
165185

query I rowsort
SELECT + 66 + + col2 * cor0.col1 FROM tab0 AS cor0
----
163
2904
7528

query I rowsort
SELECT DISTINCT 66 * + 96 + - cor0.col1 * ( - ( col2 ) ) FROM tab2 AS cor0
----
6982
7173
7870

query I rowsort
SELECT DISTINCT 32 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7428
8313
9441

query I rowsort
SELECT ALL col0 * col1 * 15 AS col2 FROM tab1
----
1170
15600
9600

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT col1 DIV + ( col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-895
SELECT col1 / + ( col2 ) FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-896
SELECT ALL CAST( 87 AS SIGNED ) AS col0 FROM tab2
----
87
87
87

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL CAST ( 87 AS INTEGER ) AS col0 FROM tab2
----
87
87
87

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

query I rowsort
SELECT ALL - 43 + col0 FROM tab1 cor0
----
-40
21
37

query I rowsort
SELECT DISTINCT - col1 * - col2 * - ( col2 ) FROM tab2 AS cor0
----
-22599
-24548
-39884

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

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

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

query I rowsort
SELECT ALL + 61 - col2 AS col2 FROM tab0
----
-21
28
60

query I rowsort
SELECT ALL + 73 FROM tab1 cor0
----
73
73
73

query I rowsort
SELECT - ( col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

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

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

query I rowsort
SELECT ( col1 ) + 33 + - col2 AS col1 FROM tab2 AS cor0
----
12
37
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-907
SELECT ALL col1 - ( + col0 ) DIV - col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL col1 - ( + col0 ) / - col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - - 37 FROM tab2 cor0
----
37

query I rowsort
SELECT + 95 * - col0 + + col2 * - col2 - + col0 FROM tab2
----
-1401
-8164
-9028

query I rowsort
SELECT - 35 + col1 AS col2 FROM tab2
----
-18
-4
24

query I rowsort
SELECT DISTINCT ( 43 * + tab0.col2 ) - + 35 * - col1 FROM tab0
----
3438
4429
6711

query I rowsort
SELECT DISTINCT col2 * tab2.col2 - + col0 * + 24 AS col0 FROM tab2
----
-1196
-452
561

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

query I rowsort
SELECT + + 50 - + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 10b8c66a959493b884f1c4bf02556347

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-916
SELECT + 75 * col1 + col1 DIV 32 AS col1 FROM tab2 AS cor0
----
1275
2325
4426

skipif mysql # not compatible
query I rowsort label-916
SELECT + 75 * col1 + col1 / 32 AS col1 FROM tab2 AS cor0
----
1275
2325
4426

query I rowsort
SELECT ALL + col1 * col1 + - 74 AS col0 FROM tab2 AS cor0
----
215
3407
887

query I rowsort
SELECT + - 62 * col1 FROM tab1 AS cor0
----
-1612
-620
-806

query I rowsort
SELECT + col2 + + col1 * col2 * - 66 AS col0 FROM tab0 AS cor0
----
-187275
-492410
-6401

query I rowsort
SELECT 39 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT - 96 + col0 AS col0 FROM tab1 AS cor0
----
-16
-32
-93

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

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

query I rowsort
SELECT + col0 * tab1.col2 - - col0 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-924
SELECT col0 DIV + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-924
SELECT col0 / + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
1
35

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

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - ( 65 * col1 ) + ( + col1 ) + - col1 AS col1 FROM tab0
----
-5590
-5915
-6305

query I rowsort
SELECT - 36 * col1 + col2 + + col1 AS col1 FROM tab2
----
-1058
-2039
-557

query I rowsort
SELECT DISTINCT + 57 AS col2 FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT 59 AS col2 FROM tab1, tab1 AS cor0
----
59

query I rowsort
SELECT + 4 * cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
2280
4992
5616

query I rowsort
SELECT cor1.col0 * + 74 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2c7cab9fb73a4f411b221f0df1002b29

query I rowsort
SELECT DISTINCT + ( - 3 ) * col1 FROM tab2 cor0
----
-177
-51
-93

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

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + col0 * + ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL + col0 * + col2 + col0 * + 35 FROM tab1 cor0
----
10480
267
5888

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT cor0.col1 DIV col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-940
SELECT cor0.col1 / col0 AS col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - 76 + col1 + + 96 AS col0 FROM tab0 cor0
----
106
111
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col2 ) + + col2 + col1 col0 FROM tab1 AS cor0
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-943
SELECT DISTINCT col1 DIV col0 AS col1 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT col1 / col0 AS col1 FROM tab1 AS cor0
----
0
8

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

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

query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
38

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + 61 col1 FROM tab1 AS cor0
----
-35
4
7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-950
SELECT DISTINCT + ( cor0.col2 ) * cor0.col1 + + col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-950
SELECT DISTINCT + ( cor0.col2 ) * cor0.col1 + + col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT - col0 * - cor0.col1 * col1 + - col1 * 81 * - col0 FROM tab0 AS cor0
----
1393028
344688
604310

query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 * + col0 AS col0 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT - - 97 + + col2 AS col1 FROM tab1 AS cor0
----
151
154
193

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

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

query I rowsort
SELECT DISTINCT 73 + col2 AS col0 FROM tab2 AS cor0
----
100
111
99

query I rowsort
SELECT DISTINCT 23 + + 7 FROM tab0 AS cor0
----
30

query I rowsort
SELECT - col2 + col0 * 96 AS col1 FROM tab2 AS cor0
----
645
7462
7546

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT col0 DIV - col0 + + ( - 41 ) col2 FROM tab2 AS cor0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-960
SELECT col0 / - col0 + + ( - 41 ) col2 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - 93 * + col0 + col2 FROM tab0 AS cor0
----
-2199
-3254
-8195

query I rowsort
SELECT DISTINCT 6 + + col0 * - col1 * ( - cor0.col0 ) + 69 AS col1 FROM tab1 AS cor0
----
309
41035
83275

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

query I rowsort
SELECT DISTINCT - col0 + - col1 + col2 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT + col2 + cor0.col0 * + ( 87 ) AS col1 FROM tab0 cor0
----
2121
3046
7825

query I rowsort
SELECT ALL + 33 + col0 FROM tab2
----
111
112
40

query I rowsort
SELECT ALL ( - col0 ) * col2 + - col0 AS col1 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT ( - tab0.col1 * + col1 ) + 98 AS col0 FROM tab0
----
-7298
-8183
-9311

query I rowsort
SELECT + col0 * + tab2.col0 + col2 + 74 AS col2 FROM tab2
----
150
6184
6353

query I rowsort
SELECT + 20 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT ALL 86 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

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

query I rowsort
SELECT - col1 * - col0 + + col0 * - 88 FROM tab2 AS cor0
----
-2262
-399
-5609

query I rowsort
SELECT + 26 + col2 AS col1 FROM tab2 AS cor0
----
52
53
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT ALL - - col2 DIV 35 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - - col2 / 35 FROM tab2 cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-976
SELECT - col1 + cor0.col0 DIV - ( col2 ) AS col0 FROM tab0 cor0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-976
SELECT - col1 + cor0.col0 / - ( col2 ) AS col0 FROM tab0 cor0
----
-132
-86
-92

query I rowsort
SELECT col1 * + 40 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1969
2124
3036

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab0
----
20

query I rowsort
SELECT 23 * + col1 FROM tab2
----
1357
391
713

onlyif mysql # use DIV operator for integer division
query I rowsort label-980
SELECT + + 22 * + col1 DIV - col1 FROM tab0 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-980
SELECT + + 22 * + col1 / - col1 FROM tab0 AS cor0
----
-22
-22
-22

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

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

query I rowsort
SELECT col2 + - 37 * - col2 FROM tab1 AS cor0
----
2052
2166
3648

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

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

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab0 AS cor1
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) - - col1 / col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT + - cor0.col1 + 99 AS col1 FROM tab1 AS cor0
----
73
86
89

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

query I rowsort
SELECT - col1 + 2 - + 59 * col2 FROM tab2
----
-1591
-1622
-2257

query I rowsort
SELECT col1 - col1 * tab0.col2 FROM tab0
----
-2752
-7371
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * + col2 col1 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-993
SELECT - - col0 DIV - cor0.col2 + - col0 DIV ( + cor0.col1 * col1 ) + + ( col0 ) FROM tab0 cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-993
SELECT - - col0 / - cor0.col2 + - col0 / ( + cor0.col1 * col1 ) + + ( col0 ) FROM tab0 cor0
----
0
24
88

query I rowsort
SELECT + ( - col1 ) * col1 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-15579
-8188
-9444

query I rowsort
SELECT DISTINCT + + col1 * + 91 + cor0.col1 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT 46 + - 89 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab1 cor0
----
80

query I rowsort
SELECT ALL + col2 + - 91 FROM tab1 AS cor0
----
-34
-37
5

query I rowsort
SELECT DISTINCT + col2 * 60 - col2 FROM tab1 cor0
----
3186
3363
5664

query I rowsort
SELECT ( col0 ) + + col0 * 7 AS col1 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT ALL + - col2 * - col1 * - cor0.col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

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

query I rowsort
SELECT DISTINCT - col2 - col1 * col1 * - 77 AS col0 FROM tab1 AS cor0
----
12917
51998
7643

query I rowsort
SELECT ( + cor0.col1 ) + ( 42 ) FROM tab0 AS cor0
----
128
133
139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * col0 col0 FROM tab0 cor0
----
1848
2695
6853

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1009
SELECT DISTINCT - 38 - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-135
-39
-40

skipif mysql # not compatible
query I rowsort label-1009
SELECT DISTINCT - 38 - col1 / col2 AS col2 FROM tab0 AS cor0
----
-135
-39
-40

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1011
SELECT - col0 + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-1011
SELECT - col0 + col1 / col0 AS col2 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT + col2 + + 5 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT DISTINCT + col1 + col1 * + 28 * - col0 AS col1 FROM tab0 AS cor0
----
-226681
-57706
-94963

query I rowsort
SELECT DISTINCT ( cor0.col0 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3
64
80

query I rowsort
SELECT 62 * - col2 AS col2 FROM tab2
----
-1612
-1674
-2356

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

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

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + + col0 + CAST ( col2 AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col0 * - 42 AS col0 FROM tab2 AS cor0
----
-294
-3276
-3318

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

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + + col1 + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL + col1 * ( 54 + col2 * cor0.col0 ) AS col1 FROM tab2 cor0
----
122838
51952
7533

query I rowsort
SELECT - col1 * ( 13 + cor0.col1 * - 12 ) AS col2 FROM tab2 AS cor0
----
11129
3247
41005

query I rowsort
SELECT DISTINCT + col1 * 43 AS col0 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT col1 + col1 * - 8 AS col1 FROM tab1 AS cor0
----
-182
-70
-91

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

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

query I rowsort
SELECT ALL + cor0.col1 * 11 AS col0 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT DISTINCT cor0.col1 + ( 4 ) * + col1 FROM tab1 cor0
----
130
50
65

query I rowsort
SELECT + 12 FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL - col0 * - col2 * col1 + + 77 FROM tab0 AS cor0
----
3472
664195
68189

query I rowsort
SELECT DISTINCT - col2 + ( col2 + - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

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

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

query I rowsort
SELECT - 92 * - col2 * col0 + 26 FROM tab2 AS cor0
----
17414
186602
276210

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

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 DISTINCT 38 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
38

query I rowsort
SELECT - + 34 + - cor0.col2 * - col1 + 31 FROM tab2 AS cor0
----
1531
643
834

query I rowsort
SELECT + 66 * - col0 + + col2 AS col0 FROM tab1
----
-144
-4167
-5184

query I rowsort
SELECT DISTINCT + 84 + - col1 AS col0 FROM tab0
----
-13
-2
-7

query I rowsort
SELECT - 95 * - col1 + - 56 FROM tab2
----
1559
2889
5549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * - tab2.col2 col2 FROM tab2, tab0, tab1 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT DISTINCT - + col1 + + col0 + + col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 95 * col0 AS col1 FROM tab1 AS cor0
----
285
6080
7600

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
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-1045
SELECT + - col2 / + col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 84 * - col0 FROM tab2 AS cor0
----
-588
-6552
-6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-1047
SELECT - col0 + col1 DIV + col1 col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1047
SELECT - col0 + col1 / + col1 col1 FROM tab0 AS cor0
----
-23
-34
-88

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

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

query I rowsort
SELECT - 91 * col2 + - 74 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-14048
-2681
-4779

query I rowsort
SELECT DISTINCT + 17 + + col0 FROM tab0 AS cor0
----
106
41
52

query I rowsort
SELECT ALL - col2 * + col0 + 75 AS col0 FROM tab0 AS cor0
----
-717
-7223
40

query I rowsort
SELECT - 15 * col1 + - 12 AS col1 FROM tab2 AS cor0
----
-267
-477
-897

onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT - 94 + - col1 * - tab2.col0 + col0 DIV col1 AS col0 FROM tab2
----
123
1253
4509

skipif mysql # not compatible
query I rowsort label-1054
SELECT - 94 + - col1 * - tab2.col0 + col0 / col1 AS col0 FROM tab2
----
123
1253
4509

onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT col0 * - 95 + col0 DIV col0 AS col1 FROM tab0
----
-2279
-3324
-8454

skipif mysql # not compatible
query I rowsort label-1055
SELECT col0 * - 95 + col0 / col0 AS col1 FROM tab0
----
-2279
-3324
-8454

query I rowsort
SELECT ALL + col0 + - 7 FROM tab0
----
17
28
82

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

query I rowsort
SELECT - 60 + 92 * col2 FROM tab2
----
2332
2424
3436

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 + col2 * + 17 col1 FROM tab2 AS cor0
----
1989
5044
676

query I rowsort
SELECT ALL + 13 - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1027
-627
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 56 col1 FROM tab2
----
-3
25
39

query I rowsort
SELECT ALL + col0 * + 92 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT DISTINCT - col2 * col2 * - col1 AS col1 FROM tab0 cor0
----
611884
93654
97

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

query I rowsort
SELECT DISTINCT col1 * 94 + col1 FROM tab2 AS cor0
----
1615
2945
5605

onlyif mysql # use DIV operator for integer division
query I rowsort label-1067
SELECT 46 DIV col0 AS col2 FROM tab2
----
0
0
6

skipif mysql # not compatible
query I rowsort label-1067
SELECT 46 / col0 AS col2 FROM tab2
----
0
0
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1068
SELECT - 74 DIV 65 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1068
SELECT - 74 / 65 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 22 * - col1 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT DISTINCT - col0 + tab1.col1 * 42 FROM tab1
----
1089
356
466

query I rowsort
SELECT 69 * - col2 FROM tab1
----
-3726
-3933
-6624

onlyif mysql # use DIV operator for integer division
query I rowsort label-1072
SELECT - 31 DIV col0 AS col1 FROM tab1 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-1072
SELECT - 31 / col0 AS col1 FROM tab1 AS cor0
----
-10
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1073
SELECT + 62 DIV cor0.col0 + - col1 AS col1 FROM tab1 cor0
----
-10
-13
-6

skipif mysql # not compatible
query I rowsort label-1073
SELECT + 62 / cor0.col0 + - col1 AS col1 FROM tab1 cor0
----
-10
-13
-6

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

query I rowsort
SELECT - col2 * col0 + + 68 * - col1 FROM tab2 AS cor0
----
-2297
-4158
-6040

query I rowsort
SELECT ALL - 72 * col1 + col1 * - 52 FROM tab2 AS cor0
----
-2108
-3844
-7316

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

query I rowsort
SELECT cor1.col1 * tab1.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ee9a612676395b6deb95e76b47378cb3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1079
SELECT DISTINCT - 6 * - col1 + col2 + CAST( col0 AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
2408
3142
402

skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT - 6 * - col1 + col2 + CAST ( col0 AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
2408
3142
402

query I rowsort
SELECT ALL - 65 * - tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a6255f826acaf2d31e3f32491824e83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 + col1 * + col1 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1083
SELECT DISTINCT - col0 DIV + tab1.col0 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - col0 / + tab1.col0 AS col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT tab2.col2 * + tab2.col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT col2 * + col0 * + col2 AS col1 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-1086
SELECT DISTINCT + tab0.col0 DIV col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT + tab0.col0 / col2 FROM tab0
----
0
1
35

query III rowsort
SELECT * FROM tab2 WHERE ( col2 + col1 ) IN ( col1 )
----

query I rowsort
SELECT ALL tab0.col2 * - col2 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - tab2.col1 + - col0 - + col2 FROM tab2
----
-134
-163
-65

query I rowsort
SELECT ALL - tab1.col2 * - col1 * + col0 AS col1 FROM tab1 WHERE NOT ( - col1 - + col0 ) BETWEEN + col0 + + col1 AND NULL
----
36480
4212
99840

query I rowsort
SELECT + col1 + col1 + + tab1.col2 * - col0 FROM tab1
----
-110
-3628
-7654

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

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

query I rowsort
SELECT - col0 + + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT + col0 * - tab1.col0 * + col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT - col0 * - col0 - + col2 * col2 FROM tab2
----
-680
4797
5408

onlyif mysql # use DIV operator for integer division
query I rowsort label-1097
SELECT DISTINCT - col2 * tab1.col2 DIV col0 FROM tab1
----
-115
-50
-972

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT - col2 * tab1.col2 / col0 FROM tab1
----
-115
-50
-972

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

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT + col2 * + col2 / + col2 AS col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1099
SELECT col1 * col0 - + col0 DIV tab0.col2 FROM tab0
----
2064
3360
8098

skipif mysql # not compatible
query I rowsort label-1099
SELECT col1 * col0 - + col0 / tab0.col2 FROM tab0
----
2064
3360
8098

query I rowsort
SELECT col1 * col2 * col0 - col1 AS col1 FROM tab2
----
119593
51017
5828

query I rowsort
SELECT DISTINCT col0 * - col2 * + col2 + - col0 AS col0 FROM tab0
----
-26160
-598525
-70

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * col2 * + col2 col0 FROM tab0
----
35961
36
551457

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

query I rowsort
SELECT DISTINCT col2 * - col0 * col2 + col2 AS col2 FROM tab0 AS cor0
----
-26103
-34
-598354

onlyif mysql # use DIV operator for integer division
query I rowsort label-1106
SELECT DISTINCT col2 + + col2 DIV + cor0.col2 + col2 FROM tab0 AS cor0
----
165
3
67

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT col2 + + col2 / + cor0.col2 + col2 FROM tab0 AS cor0
----
165
3
67

query I rowsort
SELECT ALL col2 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - cor0.col0 + tab0.col0 * 20 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to b039b918d7716a8300e20195b47f9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * col0 col0 FROM tab0
----
1344
1960
4984

query I rowsort
SELECT ALL - 98 * + col0 AS col0 FROM tab0
----
-2352
-3430
-8722

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

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL 99 * cor0.col0 + col2 AS col1 FROM tab2 cor0
----
720
7748
7859

query I rowsort
SELECT DISTINCT + col2 * + col0 + - 88 - - cor0.col1 FROM tab1 AS cor0
----
100
3570
7605

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

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

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

query I rowsort
SELECT ALL - col2 * - col0 + 20 FROM tab0 AS cor0
----
55
7318
812

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

query I rowsort
SELECT DISTINCT + col1 * + 11 + - 49 FROM tab1 AS cor0
----
237
61
94

query I rowsort
SELECT ALL + + col2 * col2 AS col1 FROM tab0 cor0
----
1
1089
6724

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

query I rowsort
SELECT col1 + - 60 FROM tab0 AS cor0
----
26
31
37

query I rowsort
SELECT DISTINCT - col2 + col1 * 29 FROM tab2 AS cor0
----
1685
455
872

query I rowsort
SELECT DISTINCT - + col0 + 86 FROM tab2 AS cor0
----
7
79
8

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

skipif mysql # not compatible
query I rowsort label-1126
SELECT col1 + cor0.col2 / 82 FROM tab1 AS cor0
----
10
14
26

query I rowsort
SELECT DISTINCT - col0 + + 8 * + cor0.col2 FROM tab1 AS cor0
----
392
429
688

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

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

query I rowsort
SELECT + col2 * ( + 79 ) FROM tab2 AS cor0
----
2054
2133
3002

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

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

query I rowsort
SELECT ALL + + cor0.col2 * 21 AS col0 FROM tab2 AS cor0
----
546
567
798

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

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

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN col0 AND col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( NULL ) < + col1
----

query I rowsort
SELECT ALL - col0 - col1 * - col1 FROM tab1
----
36
673
89

query I rowsort
SELECT ALL + tab1.col0 * - col1 + tab1.col0 AS col1 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT col1 * + col1 + + col1 * col0 FROM tab2
----
1178
1632
8083

query I rowsort
SELECT DISTINCT + col1 * col1 + col0 * - tab2.col0 AS col2 FROM tab2
----
-2603
-5952
912

query I rowsort
SELECT ALL + col1 * - col0 + ( col0 ) FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT col0 * col2 * 73 + col0 AS col1 FROM tab2 AS cor0
----
13804
148122
219225

query I rowsort
SELECT - 78 + col0 AS col2 FROM tab2 cor0
----
-71
0
1

query I rowsort
SELECT DISTINCT - + col0 * + col1 + + 98 FROM tab1 AS cor0
----
-542
-942
20

query I rowsort
SELECT col2 * - tab0.col1 + - col2 FROM tab0
----
-2871
-7544
-98

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

query I rowsort
SELECT + col1 * - col0 * - col2 + - col0 * tab1.col2 FROM tab1
----
32832
4050
92160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col0 * col0 + + col0 col1 FROM tab2
----
-42
-6006
-6162

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

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

skipif mysql # not compatible
query I rowsort label-1150
SELECT - - col1 * + CAST ( + 24 * col1 AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 72 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1152
SELECT DISTINCT - col2 + - 9 DIV col2 + col1 FROM tab1 cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT - col2 + - 9 / col2 + col1 FROM tab1 cor0
----
-28
-47
-83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1154
SELECT - col1 * cor0.col0 - col0 * - col0 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * 10 + - col0 FROM tab0 cor0
----
-25
306
731

query I rowsort
SELECT col0 + 30 FROM tab0
----
119
54
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT DISTINCT col0 + 44 DIV - col0 FROM tab2
----
1
78
79

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT col0 + 44 / - col0 FROM tab2
----
1
78
79

query I rowsort
SELECT 15 * + cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9b83538e57374f4d90a23b64e0eb5db0

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

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

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

query I rowsort
SELECT 92 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
2392
2484
3496

query I rowsort
SELECT + - 82 + col0 FROM tab0 AS cor0
----
-47
-58
7

query I rowsort
SELECT DISTINCT 66 * - col0 AS col2 FROM tab1
----
-198
-4224
-5280

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

skipif mysql # not compatible
query I rowsort label-1164
SELECT - col2 + col2 * + CAST ( col1 AS INTEGER ) FROM tab0
----
2805
7380
96

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

query I rowsort
SELECT ALL + 59 * - col0 AS col1 FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT DISTINCT - col0 - + col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT - col2 * col2 + 58 FROM tab0 AS cor0
----
-1031
-6666
57

query I rowsort
SELECT DISTINCT 87 * col0 AS col2 FROM tab2
----
609
6786
6873

query I rowsort
SELECT + col2 * + ( + 63 ) FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT - + 48 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to ad601a7a5a65b244f1d1159b03e3e25c

query I rowsort
SELECT + ( 35 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT DISTINCT - tab0.col2 DIV - ( - col2 + col0 ) AS col1 FROM tab0
----
-3
0
11

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT - tab0.col2 / - ( - col2 + col0 ) AS col1 FROM tab0
----
-3
0
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1174
SELECT CAST( - 94 AS SIGNED ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

skipif mysql # not compatible
query I rowsort label-1174
SELECT CAST ( - 94 AS INTEGER ) AS col2 FROM tab0, tab1 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT - 1 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT DISTINCT - 22 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 74 col0 FROM tab1
----
-222
-4736
-5920

query I rowsort
SELECT + 1 + col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2839
7463
98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1180
SELECT ALL 29 DIV cor0.col0 + - col1 FROM tab1 cor0
----
-10
-13
-17

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL 29 / cor0.col0 + - col1 FROM tab1 cor0
----
-10
-13
-17

query I rowsort
SELECT - 81 * col1 AS col2 FROM tab2 AS cor0
----
-1377
-2511
-4779

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 81 * col0 AS col1 FROM tab1 AS cor0
----
243
5184
6480

query I rowsort
SELECT ALL - 47 + cor0.col1 AS col2 FROM tab0 AS cor0
----
39
44
50

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

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

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

query I rowsort
SELECT - col0 - 73 AS col2 FROM tab0
----
-108
-162
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1198
SELECT + cor0.col1 + CAST( - 79 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-20
-48
-62

skipif mysql # not compatible
query I rowsort label-1198
SELECT + cor0.col1 + CAST ( - 79 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-20
-48
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1199
SELECT ALL - 8 DIV - col2 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL - 8 / - col2 FROM tab0
----
0
0
8

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

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

skipif mysql # not compatible
query I rowsort label-1201
SELECT DISTINCT + col0 / 87 FROM tab0 AS cor0
----
0
1

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

query I rowsort
SELECT 79 * tab2.col1 FROM tab2
----
1343
2449
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab2.col1 * + 30 + - tab2.col2 col2 FROM tab2
----
19342
25083
45994

query I rowsort
SELECT ALL - 23 * col1 AS col0 FROM tab2
----
-1357
-391
-713

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT DISTINCT - 40 FROM tab1, tab1 cor0
----
-40

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

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

skipif mysql # not compatible
query I rowsort
SELECT - col2 + + CAST ( - 14 AS REAL ) AS col0 FROM tab2 AS cor0
----
-40
-41
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1210
SELECT - col2 DIV ( - 94 + - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1210
SELECT - col2 / ( - 94 + - col0 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT DISTINCT - col2 + col0 + + ( col1 ) DIV + col0 AS col2 FROM tab2
----
-16
41
52

skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT - col2 + col0 + + ( col1 ) / + col0 AS col2 FROM tab2
----
-16
41
52

query I rowsort
SELECT + 30 + tab1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 48250d863918bc1d1eb4c9e45be4f07b

query I rowsort
SELECT col1 + - col1 * col2 + - 11 FROM tab1 AS cor0
----
-1246
-1389
-571

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

query I rowsort
SELECT col2 + - 91 * 57 AS col1 FROM tab0
----
-5105
-5154
-5186

query I rowsort
SELECT ALL - col2 + - 21 AS col2 FROM tab1
----
-117
-75
-78

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

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

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

query I rowsort
SELECT ALL - col0 + 71 FROM tab2
----
-7
-8
64

query I rowsort
SELECT ALL col2 * 60 + - tab2.col2 * - col2 AS col2 FROM tab2
----
2236
2349
3724

query I rowsort
SELECT ALL 14 FROM tab0, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT 53 + + col1 FROM tab2
----
112
70
84

query I rowsort
SELECT ALL - col2 * + 41 * col1 AS col2 FROM tab2
----
-26486
-34317
-62894

query I rowsort
SELECT DISTINCT - - col2 + + col1 + col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL 22 * col1 * col0 FROM tab2 AS cor0
----
101244
29546
4774

query I rowsort
SELECT + + 24 * - col0 + - col1 * ( col1 ) FROM tab2 AS cor0
----
-1129
-2185
-5353

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 50 col2 FROM tab1 cor0
----
-150
-3200
-4000

query I rowsort
SELECT - ( + col2 ) + - col1 + 99 FROM tab0 AS cor0
----
-20
-74
1

query I rowsort
SELECT ALL - + 89 FROM tab2 AS cor0
----
-89
-89
-89

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

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

query I rowsort
SELECT col0 * col0 + + col1 * + col1 FROM tab2 AS cor0
----
1010
6530
9565

query I rowsort
SELECT 34 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT ALL ( - col0 ) * + 80 + + col2 FROM tab1
----
-186
-5063
-6304

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

query I rowsort
SELECT DISTINCT 11 + cor0.col2 * - 27 AS col2 FROM tab0 AS cor0
----
-16
-2203
-880

query I rowsort
SELECT DISTINCT - col0 * - col0 * cor0.col0 + col2 FROM tab0 AS cor0
----
13857
42876
705051

onlyif mysql # use DIV operator for integer division
query I rowsort label-1237
SELECT - col1 DIV col1 - + col2 col0 FROM tab1 AS cor0
----
-55
-58
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1237
SELECT - col1 / col1 - + col2 col0 FROM tab1 AS cor0
----
-55
-58
-97

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

query I rowsort
SELECT ALL + + cor0.col1 * + col0 + 71 * + col1 * col2 - - cor0.col0 FROM tab0 AS cor0
----
10317
203586
537990

query I rowsort
SELECT col1 * col1 + col0 * - ( col0 ) * col2 FROM tab1 AS cor0
----
-233372
-614231
190

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

query I rowsort
SELECT ALL - col0 * 31 AS col0 FROM tab0 AS cor0
----
-1085
-2759
-744

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

query I rowsort
SELECT - col2 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT col2 + col0 * 12 FROM tab0 AS cor0
----
1150
321
421

query I rowsort
SELECT + 47 * + col2 + col2 - col1 FROM tab2
----
1189
1265
1807

query I rowsort
SELECT ALL - cor0.col2 + 69 AS col2 FROM tab2 AS cor0
----
31
42
43

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

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

query I rowsort
SELECT + 69 * + tab0.col0 * col1 + col2 + + col2 FROM tab0
----
142482
234257
558995

query I rowsort
SELECT + 34 AS col1 FROM tab0
----
34
34
34

query I rowsort
SELECT DISTINCT - tab0.col0 * col0 * col0 FROM tab0
----
-13824
-42875
-704969

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

query I rowsort
SELECT DISTINCT tab0.col2 * ( col1 * ( col1 ) ) AS col2 FROM tab0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 col2 FROM tab2, tab0, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 62 + + cor0.col2 * + ( cor0.col0 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7e481cf68e1543f9c8c55e0f4c8d8e4b

query I rowsort
SELECT ALL - 65 AS col1 FROM tab2
----
-65
-65
-65

query I rowsort
SELECT ALL - 92 + 5 AS col2 FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT + + col0 * 26 FROM tab0 cor0
----
2314
624
910

query I rowsort
SELECT col2 + cor0.col0 - - col1 * col1 FROM tab1 cor0
----
221
345
733

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1262
SELECT - - 51 + col2 DIV col0 FROM tab1 cor0
----
51
52
69

skipif mysql # not compatible
query I rowsort label-1262
SELECT - - 51 + col2 / col0 FROM tab1 cor0
----
51
52
69

query I rowsort
SELECT - col0 + - col1 * + 28 * - col1 AS col1 FROM tab2 AS cor0
----
26901
8013
97390

onlyif mysql # use DIV operator for integer division
query I rowsort label-1264
SELECT 63 DIV tab1.col0 AS col0 FROM tab1
----
0
0
21

skipif mysql # not compatible
query I rowsort label-1264
SELECT 63 / tab1.col0 AS col0 FROM tab1
----
0
0
21

query I rowsort
SELECT DISTINCT + col1 + - 59 + - 87 FROM tab2 AS cor0
----
-115
-129
-87

query I rowsort
SELECT DISTINCT - col0 * 4 + col2 * + col0 * - 85 AS col0 FROM tab0 AS cor0
----
-3115
-620686
-67416

query I rowsort
SELECT - - 94 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + col1 + + 6 AS col1 FROM tab0 AS cor0
----
103
92
97

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

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

query I rowsort
SELECT ALL + col2 + + 66 * col1 FROM tab2 AS cor0
----
1160
2073
3920

query I rowsort
SELECT ALL + + col0 + col1 + col0 FROM tab1 AS cor0
----
138
173
32

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

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - col2 + 40 / - col1 FROM tab1 AS cor0
----
-55
-61
-99

query I rowsort
SELECT ( col0 ) * - col0 * - col0 FROM tab1 AS cor0
----
262144
27
512000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1274
SELECT CAST( NULL AS DECIMAL ) * + 96 FROM tab1, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1274
SELECT CAST ( NULL AS REAL ) * + 96 FROM tab1, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * + col1 col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + col1 * 14 FROM tab1 AS cor0
----
140
182
364

query I rowsort
SELECT col2 + 46 FROM tab2 AS cor0
----
72
73
84

query I rowsort
SELECT - + 82 + cor0.col1 FROM tab1 AS cor0
----
-56
-69
-72

query I rowsort
SELECT 95 * + col0 AS col0 FROM tab2 AS cor0
----
665
7410
7505

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

query I rowsort
SELECT DISTINCT ( - 5 ) FROM tab1 AS cor0
----
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1282
SELECT ALL - 89 DIV - cor0.col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to ece29cd20d575fabb9157b319c085715

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL - 89 / - cor0.col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to ece29cd20d575fabb9157b319c085715

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1286
SELECT DISTINCT + + 95 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-95

skipif mysql # not compatible
query I rowsort label-1286
SELECT DISTINCT + + 95 / - col2 FROM tab0 AS cor0
----
-1
-2
-95

query I rowsort
SELECT + + ( + 25 ) * + col1 AS col1 FROM tab1 cor0
----
250
325
650

query I rowsort
SELECT ALL - ( 24 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT - 0 * + col0 + col2 FROM tab2 AS cor0
----
26
27
38

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

query I rowsort
SELECT + col0 + - col2 * + col1 FROM tab1
----
-1168
-1401
-506

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

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

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

skipif mysql # not compatible
query I rowsort label-1294
SELECT DISTINCT + - col0 * cor0.col0 / col1 FROM tab2 AS cor0
----
-1
-103
-367

query I rowsort
SELECT - col2 * + 9 + col0 AS col2 FROM tab0 AS cor0
----
-273
-649
26

query I rowsort
SELECT ALL + + 14 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

query I rowsort
SELECT + col1 + - cor0.col1 * 49 FROM tab0 AS cor0
----
-4128
-4368
-4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-1299
SELECT - col1 * col1 DIV - ( - col2 ) FROM tab0
----
-100
-224
-9409

skipif mysql # not compatible
query I rowsort label-1299
SELECT - col1 * col1 / - ( - col2 ) FROM tab0
----
-100
-224
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 91 * 82 col2 FROM tab0
----
246246
611884
7462

query I rowsort
SELECT - col1 * ( - 26 ) FROM tab1
----
260
338
676

query I rowsort
SELECT + - col1 + col0 * - 2 AS col0 FROM tab0 AS cor0
----
-134
-167
-269

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

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

query I rowsort
SELECT DISTINCT - tab2.col1 * + col0 * + col2 + + col0 + + tab2.col1 * ( tab2.col1 ) FROM tab2
----
-116093
-4891
-50666

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

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

query I rowsort
SELECT DISTINCT - col1 + - 67 AS col0 FROM tab0
----
-153
-158
-164

query I rowsort
SELECT - + col1 + - col2 * ( - 64 ) FROM tab0 AS cor0
----
-33
2026
5157

query I rowsort
SELECT ALL + 76 * - col1 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT DISTINCT + col1 + - col2 + col1 * col1 FROM tab2 AS cor0
----
268
3514
965

query I rowsort
SELECT ALL - 80 - - col0 AS col1 FROM tab1 AS cor0
----
-16
-77
0

query I rowsort
SELECT DISTINCT + 80 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
113
162
81

query I rowsort
SELECT DISTINCT 39 + + col1 AS col0 FROM tab2 AS cor0
----
56
70
98

query I rowsort
SELECT ALL - + 49 * col1 - - ( 97 + col2 ) FROM tab2 cor0
----
-1395
-2768
-698

query I rowsort
SELECT 32 * col1 + - col0 * col0 FROM tab0 AS cor0
----
-5009
1879
2176

query I rowsort
SELECT ALL + - col1 * 18 FROM tab2 AS cor0
----
-1062
-306
-558

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

query I rowsort
SELECT col2 * ( col1 * col2 ) + + 59 AS col0 FROM tab2 AS cor0
----
22658
24607
39943

query I rowsort
SELECT ALL - col1 + 5 * + 35 + + col2 AS col1 FROM tab1 AS cor0
----
203
222
258

query I rowsort
SELECT DISTINCT + col1 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + col1 * col1 + 27 + + col1 FROM tab0 AS cor0
----
7509
8399
9533

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT + col0 DIV + 17 AS col0 FROM tab1
----
0
3
4

skipif mysql # not compatible
query I rowsort label-1322
SELECT + col0 / + 17 AS col0 FROM tab1
----
0
3
4

query I rowsort
SELECT ALL col0 * 96 + + cor0.col1 FROM tab1 AS cor0
----
314
6154
7693

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL 95 + - col2 AS col2 FROM tab1 AS cor0
----
-1
38
41

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

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

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

query I rowsort
SELECT - 50 * col2 + col0 FROM tab1 AS cor0
----
-2697
-2786
-4720

query I rowsort
SELECT ALL 19 * + col0 + col2 * ( col0 * + ( + col1 ) ) FROM tab2 AS cor0
----
121134
52535
5992

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

query I rowsort
SELECT cor1.col1 AS col0 FROM tab2, tab1, tab0 AS cor0, tab1 cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * + col2 - col2 col1 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT DISTINCT col1 + cor0.col0 * col1 FROM tab0 cor0
----
2150
3492
8190

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

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

query I rowsort
SELECT + + 4 * cor0.col0 + + col0 * + 56 AS col0 FROM tab2 AS cor0
----
420
4680
4740

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

query I rowsort
SELECT ALL - - col2 * col0 + + 7 FROM tab0 AS cor0
----
42
7305
799

query I rowsort
SELECT - tab2.col0 + col1 * col0 * + tab2.col1 FROM tab2
----
22752
271440
6720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1340
SELECT + CAST( col1 AS SIGNED ) + + col1 + col0 FROM tab1
----
106
55
84

skipif mysql # not compatible
query I rowsort label-1340
SELECT + CAST ( col1 AS INTEGER ) + + col1 + col0 FROM tab1
----
106
55
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 * + col2 col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT + 43 + - tab0.col1 FROM tab0
----
-43
-48
-54

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * col2 + + 60 col0 FROM tab0
----
123
2139
5226

query I rowsort
SELECT DISTINCT + 27 + - col1 FROM tab1
----
1
14
17

query I rowsort
SELECT - col2 + + 20 * col2 FROM tab1 AS cor0
----
1026
1083
1824

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

query I rowsort
SELECT ALL 63 * ( cor0.col2 * 43 + col0 ) FROM tab0 AS cor0
----
227745
4914
90909

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + cor0.col2 AS REAL ) * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 35 col2 FROM tab1
----
105
2240
2800

query I rowsort
SELECT - cor1.col1 * 94 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad04afaa4614dec78ee235ee0b44162b

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

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

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

query I rowsort
SELECT DISTINCT + + col2 * + 37 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT ALL - cor0.col0 * col2 + + col0 * col0 FROM tab0 AS cor0
----
-216
1190
623

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

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

skipif mysql # not compatible
query I rowsort label-1362
SELECT - - CAST ( + col2 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - + col2 * + 93 AS col2 FROM tab1 cor0
----
-5022
-5301
-8928

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

query I rowsort
SELECT DISTINCT + 84 AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL + cor0.col1 + 26 * + col1 FROM tab1 AS cor0
----
270
351
702

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * tab0.col0 col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col0 + 34 * col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
253797
3333
96516

query I rowsort
SELECT + col2 * + 60 AS col2 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT + 75 FROM tab0, tab1, tab1 cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT cor0.col1 * 96 FROM tab2, tab1 AS cor0
----
9 values hashing to b42ff08e59e3946339991f1be89b6cac

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

query I rowsort
SELECT ALL tab0.col2 * + col0 * ( + col1 * + col0 ) AS col1 FROM tab0
----
118825
1634688
59106502

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

query I rowsort
SELECT - cor0.col2 * + 49 FROM tab2 cor0
----
-1274
-1323
-1862

query I rowsort
SELECT - col0 * 57 FROM tab2 AS cor0
----
-399
-4446
-4503

query I rowsort
SELECT ALL col1 * 25 AS col0 FROM tab2 AS cor0
----
1475
425
775

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT - col0 + cor0.col0 DIV 31 col2 FROM tab1 cor0
----
-3
-62
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1382
SELECT - col0 + cor0.col0 / 31 col2 FROM tab1 cor0
----
-3
-62
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT DISTINCT + cor1.col1 DIV + 22 + + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
7
78
79
8
80

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + cor1.col1 / + 22 + + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
7
78
79
8
80

query I rowsort
SELECT DISTINCT - 88 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1128
-166
-728

query I rowsort
SELECT DISTINCT + + col2 * col1 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + cor0.col1 * 60 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT - - col0 * col0 + - col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT + col2 + ( - cor0.col1 + cor0.col0 ) FROM tab2 AS cor0
----
100
3
45

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

query I rowsort
SELECT + 22 * - 17 * + col1 FROM tab2 AS cor0
----
-11594
-22066
-6358

query I rowsort
SELECT ALL - ( - 90 ) * + col2 + col1 AS col0 FROM tab1 AS cor0
----
4886
5140
8653

query I rowsort
SELECT DISTINCT - - ( + 52 ) + + col0 FROM tab1 AS cor0
----
116
132
55

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

query I rowsort
SELECT ALL + - 72 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1395
SELECT DISTINCT - ( col1 ) DIV 32 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT - ( col1 ) / 32 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col2 + col2 + - 3 AS col0 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT - 70 + col0 + - col1 FROM tab1
----
-16
-3
-93

query I rowsort
SELECT ALL 17 + ( - col2 ) FROM tab2
----
-10
-21
-9

query I rowsort
SELECT + + 34 * col2 + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-2158
-3136
1827

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

query I rowsort
SELECT + - 24 + - col1 AS col1 FROM tab1 cor0
----
-34
-37
-50

query I rowsort
SELECT + col1 * - col2 + + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT - col1 * - cor0.col2 - col2 * col2 * + col0 FROM tab2 AS cor0
----
-113430
-4266
-51194

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

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

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

query I rowsort
SELECT col1 + + col1 + col2 * + col0 FROM tab0 AS cor0
----
229
7480
964

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1409
SELECT DISTINCT + col0 DIV col2 + col2 AS col1 FROM tab0 cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT + col0 / col2 + col2 AS col1 FROM tab0 cor0
----
33
36
83

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

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

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

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

query I rowsort
SELECT ALL 42 + col2 FROM tab1
----
138
96
99

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 34 AS REAL ) * col0 AS col0 FROM tab1
----
-102
-2176
-2720

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

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

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

query I rowsort
SELECT ( - cor0.col2 ) - + cor0.col0 * col1 FROM tab1 AS cor0
----
-1136
-132
-697

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + col0 * + col2 col0 FROM tab0 AS cor0
----
-164
-2046
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1422
SELECT ALL - col1 - col2 DIV - col1 AS col0 FROM tab1
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL - col1 - col2 / - col1 AS col0 FROM tab1
----
-24
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 * - col0 col0 FROM tab1
----
-285
-6080
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1424
SELECT + CAST( 63 + + col2 AS SIGNED ) AS col0 FROM tab2
----
101
89
90

skipif mysql # not compatible
query I rowsort label-1424
SELECT + CAST ( 63 + + col2 AS INTEGER ) AS col0 FROM tab2
----
101
89
90

query I rowsort
SELECT - 13 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT DISTINCT + col2 - - 46 FROM tab2
----
72
73
84

query I rowsort
SELECT col0 * + 50 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT ALL col1 + 81 * col2 AS col0 FROM tab0
----
178
2759
6733

query I rowsort
SELECT DISTINCT 93 + + 76 AS col1 FROM tab1, tab0 AS cor0
----
169

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

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

query I rowsort
SELECT + 56 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) + 41 + col2 * col2 AS col0 FROM tab0
----
1216
139
6856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 * 55 + col1 col1 FROM tab2
----
3482
3496
3524

query I rowsort
SELECT ALL col1 + - 92 FROM tab2
----
-33
-61
-75

query I rowsort
SELECT ALL col1 * col1 + - col2 * col0 * col2 AS col1 FROM tab0
----
-18740
-590155
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + col1 * + col0 * - col2 col2 FROM tab0
----
-3325
-664048
-68042

query I rowsort
SELECT ALL - 18 + + tab0.col1 * col2 FROM tab0
----
2820
7444
79

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

query I rowsort
SELECT + - col1 + + 79 AS col0 FROM tab2 AS cor0
----
20
48
62

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1441
SELECT ALL + col2 DIV + col0 AS col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + col2 / + col0 AS col0 FROM tab1
----
0
1
18

query I rowsort
SELECT DISTINCT col2 * + col2 - col1 * - 78 * col2 AS col1 FROM tab2 cor0
----
120328
51832
66015

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

query I rowsort
SELECT - col2 * - col0 * - col0 + col1 - - ( - col0 ) FROM tab2 AS cor0
----
-1299
-158203
-237220

onlyif mysql # use DIV operator for integer division
query I rowsort label-1445
SELECT + col1 + + 33 DIV + 47 - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT + col1 + + 33 / + 47 - col1 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT + + col0 + - col0 * col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + col0 * - 23 * + col1 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-14784
-1797
-24000

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

query I rowsort
SELECT ALL cor0.col2 * 89 AS col2 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT ALL - + col1 * 46 AS col1 FROM tab2 AS cor0
----
-1426
-2714
-782

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

query I rowsort
SELECT ALL + col0 * col1 + ( + col2 ) * ( + 2 + + col2 ) FROM tab0 AS cor0
----
14987
3219
3398

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1456
SELECT ALL col0 DIV + 20 AS col1 FROM tab1 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL col0 / + 20 AS col1 FROM tab1 AS cor0
----
0
3
4

query I rowsort
SELECT + + col1 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1458
SELECT col2 DIV ( + col2 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1458
SELECT col2 / ( + col2 ) FROM tab1
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT + + ( - 30 ) * col2 - col0 DIV - 88 AS col0 FROM tab2 cor0
----
-1140
-780
-810

skipif mysql # not compatible
query I rowsort label-1460
SELECT + + ( - 30 ) * col2 - col0 / - 88 AS col0 FROM tab2 cor0
----
-1140
-780
-810

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

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

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

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

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

query I rowsort
SELECT col2 + + 31 FROM tab1
----
127
85
88

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

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

query I rowsort
SELECT col1 + 28 + tab0.col2 AS col2 FROM tab0
----
126
147
201

onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT ALL col1 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL col1 / - col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - 15 + col2 AS col2 FROM tab1 AS cor0
----
39
42
81

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT DISTINCT col0 + col1 DIV col0 + col0 FROM tab1 AS cor0
----
128
14
160

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT col0 + col1 / col0 + col0 FROM tab1 AS cor0
----
128
14
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + - cor0.col1 col0 FROM tab0 AS cor0
----
1978
3298
8008

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

query I rowsort
SELECT + 27 * col0 AS col2 FROM tab2
----
189
2106
2133

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

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

query I rowsort
SELECT DISTINCT col0 * + 0 + col2 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT ( ( - col0 ) * - col0 ) + - 15 + + col0 FROM tab1
----
-3
4145
6465

query I rowsort
SELECT DISTINCT col2 * col1 * + col1 + - col0 + col2 * - tab2.col2 AS col2 FROM tab2
----
25211
89752
9459

query I rowsort
SELECT DISTINCT 14 * - tab2.col1 + col0 AS col1 FROM tab2
----
-159
-427
-748

query I rowsort
SELECT + 47 + + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ea736fc1f3e44ab1631574c02012b478

query I rowsort
SELECT ALL + 47 * - col0 FROM tab1 AS cor0
----
-141
-3008
-3760

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

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

skipif mysql # not compatible
query I rowsort
SELECT - 5 * col1 + CAST ( - col0 + - col0 AS REAL ) FROM tab0 AS cor0
----
-478
-555
-633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 * - col0 + - col0 col0 FROM tab2 AS cor0
----
-119730
-51113
-5866

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1490
SELECT + - col2 DIV - ( col1 ) + + cor0.col2 + + col1 col2 FROM tab2 AS cor0
----
57
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1490
SELECT + - col2 / - ( col1 ) + + cor0.col2 + + col1 col2 FROM tab2 AS cor0
----
57
58
85

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 + 24 AS col2 FROM tab0 AS cor0
----
15
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * col2 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col0 * col1 + + 77 AS col0 FROM tab2 AS cor0
----
1420
294
4679

query I rowsort
SELECT - cor0.col2 + col0 + + col0 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT 73 * col2 FROM tab2
----
1898
1971
2774

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

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

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

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

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

query I rowsort
SELECT - ( + ( col0 ) ) * 57 * + col2 + + col1 FROM tab0 AS cor0
----
-1898
-415895
-45058

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

query I rowsort
SELECT tab1.col0 + + tab1.col1 + - col2 * + ( col1 ) FROM tab1
----
-1155
-1375
-496

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

query I rowsort
SELECT ALL + cor0.col1 + - cor0.col2 * - col1 FROM tab2 AS cor0
----
1593
663
868

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

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

query I rowsort
SELECT ALL - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1509
SELECT - - col2 * + col2 * col0 + col2 - col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
114114
5134
52754

skipif mysql # not compatible
query I rowsort label-1509
SELECT - - col2 * + col2 * col0 + col2 - col1 / - col0 AS col0 FROM tab2 AS cor0
----
114114
5134
52754

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1511
SELECT DISTINCT + - col1 * - col1 + - CAST( - 35 AS SIGNED ) FROM tab1 AS cor0
----
135
204
711

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT + - col1 * - col1 + - CAST ( - 35 AS INTEGER ) FROM tab1 AS cor0
----
135
204
711

query I rowsort
SELECT - cor0.col2 + - col0 + col0 * - 78 AS col1 FROM tab1 AS cor0
----
-291
-5113
-6416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 - col1 col0 FROM tab1 AS cor0
----
43
56
59

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

query I rowsort
SELECT - ( col2 ) - - col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

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

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

query I rowsort
SELECT ALL - 81 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1519
SELECT DISTINCT - + CAST( 93 AS SIGNED ) col2 FROM tab2, tab0, tab0 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT - + CAST ( 93 AS INTEGER ) col2 FROM tab2, tab0, tab0 AS cor0
----
-93

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

query I rowsort
SELECT + 23 - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + col2 * - col1 + 82 - + cor0.col0 FROM tab1 AS cor0
----
-1246
-1325
-552

query I rowsort
SELECT ALL 13 + - col2 FROM tab1 AS cor0
----
-41
-44
-83

query I rowsort
SELECT + 96 + - col2 + + ( - 62 ) AS col2 FROM tab1 AS cor0
----
-20
-23
-62

query I rowsort
SELECT DISTINCT ( + cor1.col1 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

query I rowsort
SELECT ALL col2 * - 51 AS col2 FROM tab0
----
-1683
-4182
-51

query I rowsort
SELECT + - col2 * - 17 + col1 FROM tab1 cor0
----
1645
944
979

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

query I rowsort
SELECT DISTINCT cor0.col0 * 35 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
1225
3115
840

query I rowsort
SELECT ALL - 0 AS col1 FROM tab1 cor0
----
0
0
0

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

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

query I rowsort
SELECT - col1 * 29 * col0 FROM tab1 AS cor0
----
-18560
-2262
-30160

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

query I rowsort
SELECT ALL col1 + + cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
134
163
65

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

query I rowsort
SELECT ALL col0 * + 51 * col0 + + col2 * 7 AS col2 FROM tab2 AS cor0
----
2688
310466
318557

query I rowsort
SELECT ALL + col1 + + 85 * col0 AS col0 FROM tab2 AS cor0
----
626
6689
6732

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 13 * - col2 FROM tab2 cor0
----
-10881
-19942
-8398

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

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

query I rowsort
SELECT - col1 * + ( - col1 + + col0 ) AS col1 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT + cor0.col0 * - 1 FROM tab2 AS cor0
----
-7
-78
-79

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

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

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

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

query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab2, tab1, tab0 AS cor0
----
53

query I rowsort
SELECT DISTINCT - col1 + col1 - 95 * - col1 FROM tab0 AS cor0
----
8170
8645
9215

query I rowsort
SELECT DISTINCT + col0 * + 39 FROM tab1 AS cor0
----
117
2496
3120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1547
SELECT DISTINCT - + col2 - + CAST( col0 + - cor0.col0 * + 63 AS SIGNED ) FROM tab2 cor0
----
407
4810
4860

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT - + col2 - + CAST ( col0 + - cor0.col0 * + 63 AS INTEGER ) FROM tab2 cor0
----
407
4810
4860

query I rowsort
SELECT ALL col2 * + 25 AS col2 FROM tab2 AS cor0
----
650
675
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 * col0 col2 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT DISTINCT - - col2 DIV - col1 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT - - col2 / - col1 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + col2 - - ( + col0 ) AS col0 FROM tab0
----
171
36
57

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

query I rowsort
SELECT - col2 - - 44 AS col0 FROM tab2 AS cor0
----
17
18
6

query I rowsort
SELECT col0 * - 69 FROM tab2
----
-483
-5382
-5451

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1556
SELECT tab1.col1 / - col2 + col0 col2 FROM tab1
----
3
64
80

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

query I rowsort
SELECT ALL 48 * ( tab2.col1 ) + + ( 69 ) FROM tab2
----
1557
2901
885

query I rowsort
SELECT + 59 + 95 * col0 FROM tab1
----
344
6139
7659

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

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

query I rowsort
SELECT ALL - + tab1.col1 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT 17 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

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

query I rowsort
SELECT + + 51 * col0 AS col1 FROM tab1 cor0
----
153
3264
4080

query I rowsort
SELECT - - 9 + col1 * col0 FROM tab2 AS cor0
----
1352
226
4611

query I rowsort
SELECT ALL 60 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
243 values hashing to 76f3d52d720563c757a3ef12ad50dc37

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT ALL + col1 * + cor0.col2 + + col1 DIV - 49 + - col0 * CAST( col0 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-156651
-236512
-486

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + col1 * + cor0.col2 + + col1 / - 49 + - col0 * CAST ( col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-156651
-236512
-486

query I rowsort
SELECT - 76 + col2 AS col1 FROM tab0 cor0
----
-43
-75
6

query I rowsort
SELECT ALL - tab0.col2 + 75 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 5b4a48814469ec2d958c5abafef1b36a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1573
SELECT DISTINCT - cor0.col0 DIV CAST( col1 AS SIGNED ) FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - cor0.col0 / CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT ALL 86 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col1 * + CAST ( - col2 + col1 AS REAL ) FROM tab0 AS cor0
----
4558
819
9312

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + col2 * ( - 4 ) * + col1 col0 FROM tab0
----
-10776
-21927
837

query I rowsort
SELECT ( + col1 + - col1 ) * - 68 FROM tab1
----
0
0
0

query I rowsort
SELECT cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-1581
SELECT ALL tab0.col0 DIV ( - col0 ) AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL tab0.col0 / ( - col0 ) AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 91 + - 77 + - cor0.col2 FROM tab2 AS cor0
----
-12
-13
-24

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

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

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

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

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

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

query I rowsort
SELECT ALL + - 50 + 96 * + col0 FROM tab1 AS cor0
----
238
6094
7630

query I rowsort
SELECT DISTINCT - col1 * 66 + - col1 AS col2 FROM tab2 AS cor0
----
-1139
-2077
-3953

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

query I rowsort
SELECT 10 * - cor0.col0 FROM tab1 AS cor0
----
-30
-640
-800

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

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

query I rowsort
SELECT + - 42 + col2 AS col0 FROM tab0 cor0
----
-41
-9
40

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

query I rowsort
SELECT DISTINCT - col0 * + col1 + col2 * - col2 FROM tab1
----
-10256
-2994
-3889

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1598
SELECT ALL + + 46 DIV cor0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 3daf191600c64328f2c60722189235c6

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL + + 46 / cor0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 3daf191600c64328f2c60722189235c6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1599
SELECT + col2 * col2 + col2 DIV col2 FROM tab0
----
1090
2
6725

skipif mysql # not compatible
query I rowsort label-1599
SELECT + col2 * col2 + col2 / col2 FROM tab0
----
1090
2
6725

query I rowsort
SELECT + 13 + + col1 FROM tab0 AS cor0
----
104
110
99

query I rowsort
SELECT 52 - 20 AS col1 FROM tab1
----
32
32
32

query I rowsort
SELECT 63 + col2 * col0 FROM tab2
----
2091
252
3065

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

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

query I rowsort
SELECT - col2 * - col0 - - 27 * col0 AS col0 FROM tab2 AS cor0
----
378
4134
5135

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 13 ) + cor0.col0 + - col1 col2 FROM tab0 AS cor0
----
-15
-75
-75

query I rowsort
SELECT - cor0.col0 * - 1 - + col1 FROM tab2 cor0
----
-24
19
62

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT + 1 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1612
SELECT + 1 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT + + col1 + cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + 13 - + col0 FROM tab0 cor0
----
-11
-22
-76

query I rowsort
SELECT - col1 * ( 40 ) * - col0 + - ( col2 ) AS col2 FROM tab0
----
135799
323878
82527

onlyif mysql # use DIV operator for integer division
query I rowsort label-1617
SELECT ALL + - 47 * - col0 - col1 DIV col0 FROM tab1 AS cor0
----
133
3008
3760

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL + - 47 * - col0 - col1 / col0 FROM tab1 AS cor0
----
133
3008
3760

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT DISTINCT + - 41 DIV + col0 AS col0 FROM tab2 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT + - 41 / + col0 AS col0 FROM tab2 AS cor0
----
-5
0

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

query I rowsort
SELECT ALL - col1 * col2 * col0 + + col1 * + col2 + ( col1 ) * col0 AS col2 FROM tab1 AS cor0
----
-2730
-35270
-97552

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

query I rowsort
SELECT - + col2 * + col2 * 60 FROM tab2 AS cor0
----
-40560
-43740
-86640

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

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col1 - col1 col2 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT DISTINCT - - col2 + 17 AS col0 FROM tab1 AS cor0
----
113
71
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 38 * 99 col1 FROM tab1 AS cor0
----
203148
214434
361152

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1
----
1
33
82

query I rowsort
SELECT ALL + col2 * - ( - tab1.col1 ) * - col1 FROM tab1
----
-16224
-36504
-5700

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

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

query I rowsort
SELECT ALL + col0 * + col2 + col0 AS col1 FROM tab1 cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 + col0 col2 FROM tab2 AS cor0
----
22
93
94

query I rowsort
SELECT - tab0.col0 * 49 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to d108f3bdef1d4b5a496a51e39b16742e

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

query I rowsort
SELECT + 26 * + cor0.col0 FROM tab0, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 350f2cee479f5b8ae58879fa937728c2

query I rowsort
SELECT - ( - col0 ) * - col0 + + 24 FROM tab1 AS cor0
----
-4072
-6376
15

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

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

query I rowsort
SELECT + 71 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT 26 + col1 AS col0 FROM tab0
----
112
117
123

query I rowsort
SELECT col0 + col2 + col0 FROM tab0 AS cor0
----
260
71
81

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT DISTINCT + col2 DIV - col2 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT + col2 / - col2 AS col0 FROM tab1
----
-1

query I rowsort
SELECT ALL - + ( 92 ) + cor0.col1 FROM tab1 AS cor0
----
-66
-79
-82

query I rowsort
SELECT - col1 * 20 + col2 FROM tab2 AS cor0
----
-1154
-302
-593

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

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

query I rowsort
SELECT DISTINCT - 32 * 36 - col0 FROM tab2 AS cor0
----
-1159
-1230
-1231

query I rowsort
SELECT col0 * 71 + - col2 FROM tab1 AS cor0
----
159
4487
5584

query I rowsort
SELECT DISTINCT - 56 - col2 FROM tab0 AS cor0
----
-138
-57
-89

query I rowsort
SELECT ALL + col0 + - 30 AS col1 FROM tab1 AS cor0
----
-27
34
50

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

query I rowsort
SELECT ALL + - 45 FROM tab2 AS cor0
----
-45
-45
-45

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

query I rowsort
SELECT DISTINCT - 42 + - 41 * - col2 FROM tab0 AS cor0
----
-1
1311
3320

query I rowsort
SELECT DISTINCT 56 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
30
43
46

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

query I rowsort
SELECT + 31 * - col2 AS col1 FROM tab2 cor0
----
-1178
-806
-837

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

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

query I rowsort
SELECT + 89 FROM tab0, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT + col0 * + 10 - tab2.col0 FROM tab2
----
63
702
711

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

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

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

skipif mysql # not compatible
query I rowsort label-1670
SELECT + col0 + + CAST ( + col0 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + + col2 * col2 * 17 + - col0 FROM tab1 AS cor0
----
156592
49569
55169

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

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

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

query I rowsort
SELECT col1 + - 73 * 89 * + col0 AS col2 FROM tab0 AS cor0
----
-155842
-227298
-578142

query I rowsort
SELECT ALL + - col2 * + col0 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT - + ( + cor1.col1 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL col2 + + ( + 51 ) - col1 * col0 AS col0 FROM tab1 AS cor0
----
-532
-893
27

query I rowsort
SELECT ALL + 88 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1679
SELECT - col0 - + CAST( - col0 AS SIGNED ) * - col0 FROM tab2
----
-56
-6162
-6320

skipif mysql # not compatible
query I rowsort label-1679
SELECT - col0 - + CAST ( - col0 AS INTEGER ) * - col0 FROM tab2
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT + col0 * 55 - + col0 * + col0 * col2 FROM tab1 AS cor0
----
-229952
-321
-610000

query I rowsort
SELECT - - 9 * 87 FROM tab1 AS cor0
----
783
783
783

query I rowsort
SELECT ALL - + col1 + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT col2 + cor0.col1 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-1684
SELECT col2 + cor0.col1 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
25
26
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT col0 DIV col0 - + 12 AS col0 FROM tab2
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-1685
SELECT col0 / col0 - + 12 AS col0 FROM tab2
----
-11
-11
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-1686
SELECT + - 90 DIV col0 + col0 FROM tab1 cor0
----
-27
63
79

skipif mysql # not compatible
query I rowsort label-1686
SELECT + - 90 / col0 + col0 FROM tab1 cor0
----
-27
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT - - ( - ( + cor0.col0 ) ) * 55 + col2 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
-385
-4290
-4343

skipif mysql # not compatible
query I rowsort label-1687
SELECT - - ( - ( + cor0.col0 ) ) * 55 + col2 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
-385
-4290
-4343

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1689
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - tab2.col1 AS col0 FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - tab2.col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - col0 * - 40 AS col2 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT ALL + 24 * cor0.col0 AS col1 FROM tab1 AS cor0
----
1536
1920
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1692
SELECT - cor0.col2 + col2 DIV + cor0.col0 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-1692
SELECT - cor0.col2 + col2 / + cor0.col0 FROM tab1 AS cor0
----
-36
-57
-95

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1694
SELECT DISTINCT - CAST( 80 AS SIGNED ) * - col2 FROM tab2
----
2080
2160
3040

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT - CAST ( 80 AS INTEGER ) * - col2 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT 31 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

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

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

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

query I rowsort
SELECT - 4 + + tab1.col1 AS col0 FROM tab1
----
22
6
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1699
SELECT ALL + 71 + + col0 DIV col1 FROM tab1
----
71
77
77

skipif mysql # not compatible
query I rowsort label-1699
SELECT ALL + 71 + + col0 / col1 FROM tab1
----
71
77
77

query I rowsort
SELECT DISTINCT + 20 + col1 FROM tab0
----
106
111
117

query I rowsort
SELECT DISTINCT col1 + - col1 * ( col0 ) + + col1 FROM tab2
----
-1309
-155
-4484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 + + col2 col0 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT DISTINCT col1 - col1 DIV col1 AS col2 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT col1 - col1 / col1 AS col2 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT 7 + - col1 * ( - col0 ) + - tab2.col2 AS col0 FROM tab2
----
1312
197
4583

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

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

query I rowsort
SELECT ALL + 85 * + col0 AS col2 FROM tab2 AS cor0
----
595
6630
6715

onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT tab1.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-1708
SELECT tab1.col0 / col2 col2 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL col1 * - 9 AS col1 FROM tab1 AS cor0
----
-117
-234
-90

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

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

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

query I rowsort
SELECT - col0 * - cor0.col2 * - col2 + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-33532
-606717
-9444

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

query I rowsort
SELECT DISTINCT + col0 * col1 * - 8 AS col0 FROM tab0 cor0
----
-16512
-27160
-64792

onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT col1 DIV - 91 AS col2 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1715
SELECT col1 / - 91 AS col2 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT + cor0.col1 * col1 + 53 FROM tab1 AS cor0
----
153
222
729

query I rowsort
SELECT + col2 * col2 - - 5 AS col1 FROM tab2 AS cor0
----
1449
681
734

query I rowsort
SELECT DISTINCT - + col2 * - 70 * col1 FROM tab0 AS cor0
----
198660
522340
6790

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1720
SELECT col2 * col0 + 58 DIV col0 FROM tab2 AS cor0
----
197
2028
3002

skipif mysql # not compatible
query I rowsort label-1720
SELECT col2 * col0 + 58 / col0 FROM tab2 AS cor0
----
197
2028
3002

query I rowsort
SELECT DISTINCT col0 + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1722
SELECT - col1 * - col0 + col0 DIV col0 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-1722
SELECT - col1 * - col0 + col0 / col0 FROM tab0 AS cor0
----
2065
3396
8100

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 * tab2.col1 col2 FROM tab2
----
155
295
85

query I rowsort
SELECT ALL - 48 * + col1 - + ( col2 ) FROM tab2
----
-1515
-2858
-854

query I rowsort
SELECT ALL + 24 - col0 AS col1 FROM tab2
----
-54
-55
17

query I rowsort
SELECT ALL - 86 AS col2 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

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

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

query I rowsort
SELECT + 30 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT col2 + 36 + 37 AS col0 FROM tab1 AS cor0
----
127
130
169

query I rowsort
SELECT + col0 + 37 AS col2 FROM tab0 cor0
----
126
61
72

query I rowsort
SELECT ( col1 ) AS col1 FROM tab1 cor0
----
10
13
26

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

skipif mysql # not compatible
query I rowsort label-1735
SELECT - CAST ( - 44 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1736
SELECT + 27 + col1 DIV - cor0.col0 FROM tab2 cor0
----
23
27
27

skipif mysql # not compatible
query I rowsort label-1736
SELECT + 27 + col1 / - cor0.col0 FROM tab2 cor0
----
23
27
27

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

query I rowsort
SELECT + col0 + - col2 + col1 FROM tab0 AS cor0
----
131
77
98

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

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

query I rowsort
SELECT ALL ( col0 ) + col1 * - col2 * tab0.col1 + + col2 FROM tab0
----
-244011
-678871
-9373

query I rowsort
SELECT 27 * + 37 FROM tab1 cor0
----
999
999
999

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 + col1 col1 FROM tab2
----
36
50
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1745
SELECT + CAST( - 9 AS SIGNED ) * col1 AS col0 FROM tab1
----
-117
-234
-90

skipif mysql # not compatible
query I rowsort label-1745
SELECT + CAST ( - 9 AS INTEGER ) * col1 AS col0 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT DISTINCT + 6 * - 63 * col0 + col2 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
-14455
-28080
-683164

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

query I rowsort
SELECT - - 90 + + col0 AS col0 FROM tab0 AS cor0
----
114
125
179

query I rowsort
SELECT + + 61 * + cor0.col2 * + col2 + cor0.col1 * col2 FROM tab2 AS cor0
----
42770
45306
88730

query I rowsort
SELECT + col2 * - 5 + - col2 * + col2 FROM tab0 AS cor0
----
-1254
-6
-7134

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

query I rowsort
SELECT ALL + 89 * col0 + col2 FROM tab1 AS cor0
----
321
5753
7216

query I rowsort
SELECT ALL 82 + col0 AS col2 FROM tab0 AS cor0
----
106
117
171

query I rowsort
SELECT DISTINCT - 60 + + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
2778
37
7402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab2.col1 ) * + col2 + + col1 * + tab2.col1 col1 FROM tab2
----
1798
5015
935

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

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

query I rowsort
SELECT ALL + 35 + col1 * - col1 AS col0 FROM tab0
----
-7361
-8246
-9374

query I rowsort
SELECT ALL - - 31 + col1 FROM tab1 AS cor0
----
41
44
57

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

query I rowsort
SELECT ALL - - col0 - + col1 * cor0.col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - cor0.col0 * - ( + 21 ) AS col1 FROM tab0 AS cor0
----
1869
504
735

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

query I rowsort
SELECT 3 * tab0.col0 * + tab0.col2 FROM tab0
----
105
21894
2376

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

query I rowsort
SELECT + col0 * + cor0.col1 - - col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL col0 * 73 + col0 * col1 FROM tab0 AS cor0
----
14596
3816
5950

query I rowsort
SELECT ALL + 93 * - col1 - col1 * + col2 AS col1 FROM tab1 cor0
----
-1500
-2457
-3822

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT cor0.col2 DIV 48 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-1768
SELECT cor0.col2 / 48 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT col0 * - col0 + + cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-1190
-623
216

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

query I rowsort
SELECT DISTINCT + col2 * - col0 + + 78 FROM tab2
----
-111
-1950
-2924

query I rowsort
SELECT DISTINCT + col1 + col0 * - 56 FROM tab1
----
-142
-3574
-4467

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1773
SELECT ALL - 80 * - col2 + + CAST( - ( col1 ) + col1 AS SIGNED ) FROM tab1
----
4320
4560
7680

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - 80 * - col2 + + CAST ( - ( col1 ) + col1 AS INTEGER ) FROM tab1
----
4320
4560
7680

query I rowsort
SELECT DISTINCT 52 + - col0 FROM tab1
----
-12
-28
49

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1775
SELECT - col2 * CAST ( - col2 AS INTEGER ) + - col2 col1 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT - col2 * - 49 FROM tab1 AS cor0
----
2646
2793
4704

query I rowsort
SELECT + 59 + 37 AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT col2 * + col0 - + 60 FROM tab1
----
102
3588
7620

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1781
SELECT DISTINCT col0 + - col0 DIV + col1 AS col1 FROM tab1
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT col0 + - col0 / + col1 AS col1 FROM tab1
----
3
58
74

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 8 * + cor0.col2 col0 FROM tab2 AS cor0
----
234
243
342

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

query I rowsort
SELECT DISTINCT col2 - col2 * col2 * + col0 AS col2 FROM tab1 AS cor0
----
-207879
-737184
-8694

query I rowsort
SELECT DISTINCT col1 * + ( - col2 * - col2 ) AS col0 FROM tab0 AS cor0
----
611884
93654
97

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

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT - col2 / + col0 AS col2 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT - col0 + 47 * col1 AS col2 FROM tab2 AS cor0
----
1450
2695
720

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

query I rowsort
SELECT + 6 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # use DIV operator for integer division
query I rowsort label-1791
SELECT - - 40 DIV - cor0.col0 + col0 DIV + 46 - + col0 FROM tab0 AS cor0
----
-25
-36
-88

skipif mysql # not compatible
query I rowsort label-1791
SELECT - - 40 / - cor0.col0 + col0 / + 46 - + col0 FROM tab0 AS cor0
----
-25
-36
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1792
SELECT - 95 DIV + 14 AS col0 FROM tab2
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-1792
SELECT - 95 / + 14 AS col0 FROM tab2
----
-6
-6
-6

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1794
SELECT ALL ( + 75 ) + col2 DIV 54 + + 4 AS col2 FROM tab1 cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL ( + 75 ) + col2 / 54 + + 4 AS col2 FROM tab1 cor0
----
80
80
80

query I rowsort
SELECT - cor0.col2 + 17 * col0 FROM tab0 AS cor0
----
1431
375
594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + - col2 col2 FROM tab0 AS cor0
----
2805
7380
96

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

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

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

query I rowsort
SELECT DISTINCT + col0 * col1 * col0 + + col2 * + 27 + col1 AS col0 FROM tab0 AS cor0
----
118949
50513
723116

query I rowsort
SELECT - col0 + 37 * + col0 * + col1 FROM tab1 AS cor0
----
23616
2883
38400

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 69 * + 66 + + col0 col1 FROM tab1 AS cor0
----
-4474
-4490
-4551

query I rowsort
SELECT cor0.col2 * + col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) * col1 + - ( - col0 + ( ( col0 ) ) ) * + 38 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

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

query I rowsort
SELECT ALL 33 + - col2 AS col0 FROM tab1 AS cor0
----
-21
-24
-63

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

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

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

query I rowsort
SELECT DISTINCT 93 + - col1 * col0 - col1 * 60 * tab0.col0 FROM tab0
----
-125811
-207002
-493946

query I rowsort
SELECT - cor0.col1 * cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT 25 AS col0 FROM tab1 cor0
----
25

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1813
SELECT + + 8 + + col2 DIV + ( - col0 + - col0 ) FROM tab1 AS cor0
----
-1
8
8

skipif mysql # not compatible
query I rowsort label-1813
SELECT + + 8 + + col2 / + ( - col0 + - col0 ) FROM tab1 AS cor0
----
-1
8
8

query I rowsort
SELECT ALL + - col0 * col1 + col0 * 1 FROM tab1 cor0
----
-576
-75
-960

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

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

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

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

query I rowsort
SELECT - ( + col0 ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - 56 * + col1 - - col2 * col0 AS col2 FROM tab2 AS cor0
----
-1276
-1547
2050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + + col1 col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col0 FROM tab0 AS cor0
----
1
33
82

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

query I rowsort
SELECT DISTINCT col1 * ( - 25 ) * col0 FROM tab1
----
-16000
-1950
-26000

query I rowsort
SELECT + col2 * + 0 + tab2.col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ( - 44 ) FROM tab2
----
-44
-44
-44

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

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

query I rowsort
SELECT ( ( + col1 ) * 21 ) AS col2 FROM tab0
----
1806
1911
2037

query I rowsort
SELECT ALL - col2 * 60 * col2 AS col1 FROM tab0 AS cor0
----
-403440
-60
-65340

query I rowsort
SELECT ALL col0 + col0 - - col2 * 32 FROM tab1 cor0
----
1734
1952
3232

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

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

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

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

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

query I rowsort
SELECT 63 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

query I rowsort
SELECT ALL + 78 FROM tab0, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT 49 * 46 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 45d42c90c1c86b3cbc0714fe1424f747

query I rowsort
SELECT - col2 * 28 FROM tab0 AS cor0
----
-2296
-28
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + 11 * + col2 * 76 col0 FROM tab2
----
21679
22515
31711

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1840
SELECT + col2 * + ( col0 ) + col2 DIV - 51 AS col1 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-1840
SELECT + col2 * + ( col0 ) + col2 / - 51 AS col1 FROM tab1 AS cor0
----
161
3647
7679

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

skipif mysql # not compatible
query I rowsort label-1841
SELECT cor0.col2 / col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * + col2 col0 FROM tab2
----
-196
-2106
-3081

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

query I rowsort
SELECT ALL - 31 * - col0 FROM tab1
----
1984
2480
93

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

query I rowsort
SELECT - cor0.col2 * + 49 + + col2 * col0 * - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-11391
-210665
-741904

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 53 col2 FROM tab2 AS cor0
----
131
132
60

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

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

query I rowsort
SELECT + col0 + - 48 FROM tab0
----
-13
-24
41

query I rowsort
SELECT DISTINCT + col0 + ( 11 * - tab2.col2 ) + + col0 AS col2 FROM tab2
----
-130
-260
-283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - - col2 col2 FROM tab0
----
1226
609
8003

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

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

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

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

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

query I rowsort
SELECT ALL - + 70 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1178
1334
500

query I rowsort
SELECT + 14 * col2 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT ALL cor0.col2 * - tab1.col2 - - 86 FROM tab1, tab1 cor0
----
9 values hashing to 691c277b984b0a5bae3f20342351977a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * - col1 col0 FROM tab1
----
-156
-650
-90

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

query I rowsort
SELECT - 33 * cor0.col0 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT - cor0.col2 * 94 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT - col1 + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1867
SELECT DISTINCT - + ( + col0 ) + + col0 DIV ( + 58 ) FROM tab0 AS cor0
----
-24
-35
-88

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT - + ( + col0 ) + + col0 / ( + 58 ) FROM tab0 AS cor0
----
-24
-35
-88

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

query I rowsort
SELECT ALL - ( cor0.col1 ) * col1 * - col1 FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-1870
SELECT ALL ( + col2 ) + col0 DIV + col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL ( + col2 ) + col0 / + col1 FROM tab1 AS cor0
----
102
54
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1871
SELECT 25 * col2 DIV + col2 FROM tab1 AS cor0
----
25
25
25

skipif mysql # not compatible
query I rowsort label-1871
SELECT 25 * col2 / + col2 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT ALL - 72 * - 37 + cor0.col0 AS col0 FROM tab2 cor0
----
2671
2742
2743

query I rowsort
SELECT + 77 * col2 + col1 * 66 * + col2 AS col1 FROM tab1 AS cor0
----
42009
89760
96822

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

query I rowsort
SELECT ALL + cor0.col0 * col2 + 65 AS col2 FROM tab0 AS cor0
----
100
7363
857

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

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

query I rowsort
SELECT - - col0 + col0 * col2 - col1 AS col0 FROM tab1 AS cor0
----
139
3702
7747

query I rowsort
SELECT DISTINCT + + 67 + - 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
12

query I rowsort
SELECT + + col0 - + cor0.col0 * col2 * + col1 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT col0 * col0 + - col2 * col1 AS col1 FROM tab1 cor0
----
-1395
3526
5152

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 * col0 * col1 FROM tab1 AS cor0
----
36416
4209
99760

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

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

query I rowsort
SELECT - col1 * - col2 * col2 FROM tab1
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 + col0 * tab2.col2 + col1 * col1 col1 FROM tab2
----
1119
3274
5450

query I rowsort
SELECT - tab2.col1 - - col2 * - col0 AS col0 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT + tab1.col0 + col1 + col0 FROM tab1
----
138
173
32

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

query I rowsort
SELECT ALL + col0 - + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 * col2 * + tab2.col0 + tab2.col2 AS col2 FROM tab2
----
114114
5130
52754

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1895
SELECT DISTINCT - col0 * col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT - col0 * col1 / col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - col0 + col1 - col2 * col0 FROM tab1 AS cor0
----
-139
-3702
-7747

query I rowsort
SELECT DISTINCT - 54 * + col2 AS col0 FROM tab0
----
-1782
-4428
-54

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

query I rowsort
SELECT + col2 + col1 * + col1 FROM tab1 AS cor0
----
157
265
730

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT NULL < NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= col2 * col1
----

query I rowsort
SELECT ALL + col1 - col2 FROM tab0 WHERE NOT NULL < NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT DISTINCT col2 * col1 - - col0 DIV - col0 AS col2 FROM tab0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-1918
SELECT DISTINCT col2 * col1 - - col0 / - col0 AS col2 FROM tab0
----
2837
7461
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 + - col1 col2 FROM tab2
----
-40
-55
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) <= ( NULL )
----

query I rowsort
SELECT ALL - 90 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7740
-8190
-8730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + tab0.col0 + - col1 col0 FROM tab0
----
-2150
-3492
-8190

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col2 * col1 )
----

query I rowsort
SELECT - cor0.col1 * + col0 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-573
-931
2

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

skipif mysql # not compatible
query I rowsort label-1925
SELECT + col2 * col2 * + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL col2 * col1 - - col1 AS col0 FROM tab2
----
1593
663
868

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 / - col1 + - col1 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + col2 * col2 * + col1 FROM tab2 AS cor0
----
22626
24586
39910

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT - tab1.col2 * col1 DIV tab1.col0 + - col0 AS col1 FROM tab1
----
-471
-72
-95

skipif mysql # not compatible
query I rowsort label-1933
SELECT - tab1.col2 * col1 / tab1.col0 + - col0 AS col1 FROM tab1
----
-471
-72
-95

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

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

query I rowsort
SELECT ALL tab2.col2 * col0 * - col0 - col2 FROM tab2
----
-1350
-158210
-237196

query I rowsort
SELECT - col0 - + col2 AS col1 FROM tab1
----
-121
-176
-57

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) = + col0 + - col0
----

query I rowsort
SELECT - col2 FROM tab2 WHERE + tab2.col0 <> col0 + col1 * col1
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * cor0.col1 col1 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT + + 22 * - col0 + cor0.col1 * + col2 FROM tab2 AS cor0
----
-1092
-182
683

query I rowsort
SELECT + 33 + + col0 FROM tab2 AS cor0
----
111
112
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + col2 + col1 col2 FROM tab1 AS cor0
----
242
3715
7789

query I rowsort
SELECT DISTINCT - col2 + - 93 AS col1 FROM tab2 cor0
----
-119
-120
-131

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

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

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab1
----
76

query I rowsort
SELECT - - 46 FROM tab0 cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + col1 col2 FROM tab1 AS cor0
----
14
17
30

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

query I rowsort
SELECT ( 87 * col1 ) AS col0 FROM tab2
----
1479
2697
5133

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

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

query I rowsort
SELECT DISTINCT - 40 * + col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

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

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

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - col0 * col1 col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT + ( + 83 ) * - col2 AS col0 FROM tab1
----
-4482
-4731
-7968

query I rowsort
SELECT 4 * - col0 FROM tab2
----
-28
-312
-316

query I rowsort
SELECT ALL - + 58 * cor0.col1 + + ( - col2 + + col2 ) AS col0 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT ALL + - 55 + + col1 AS col2 FROM tab1 AS cor0
----
-29
-42
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 * col0 col1 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT col1 + - cor0.col0 * col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-106080
-1488
-358897

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT - tab2.col2 - col1 DIV col1 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-1964
SELECT - tab2.col2 - col1 / col1 FROM tab2
----
-27
-28
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 * tab2.col1 - ( col2 + - col1 ) col2 FROM tab2
----
1331
353
686

query I rowsort
SELECT DISTINCT col1 - col1 * ( + col2 ) AS col0 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ALL + col1 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL tab2.col0 AS col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT - 83 + col2 * + col0 AS col0 FROM tab2
----
106
1945
2919

query I rowsort
SELECT DISTINCT + - tab0.col0 AS col1 FROM tab0, tab2, tab2 AS cor0
----
-24
-35
-89

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL CAST ( + 98 AS INTEGER ) FROM tab1, tab1 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT col2 * + 19 FROM tab0
----
1558
19
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-1975
SELECT ALL col1 * 33 DIV tab0.col0 col1 FROM tab0
----
118
33
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL col1 * 33 / tab0.col0 col1 FROM tab0
----
118
33
91

query I rowsort
SELECT col2 * col1 + tab2.col1 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT col1 + + ( 89 + col2 ) FROM tab1
----
156
169
198

query I rowsort
SELECT - + 5 + - col1 FROM tab2 AS cor0
----
-22
-36
-64

query I rowsort
SELECT col0 * + 61 AS col2 FROM tab0 cor0
----
1464
2135
5429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 89 + + 82 * col2 col2 FROM tab2 AS cor0
----
2221
2303
3205

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

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

query I rowsort
SELECT + 99 * col0 AS col2 FROM tab2 AS cor0
----
693
7722
7821

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT ALL ( - col2 ) DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL ( - col2 ) / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL 43 * + 92 AS col0 FROM tab0 AS cor0
----
3956
3956
3956

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

query I rowsort
SELECT ALL ( + cor1.col0 ) AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1988
SELECT DISTINCT CAST( 96 AS SIGNED ) FROM tab0, tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT CAST ( 96 AS INTEGER ) FROM tab0, tab0 AS cor0
----
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1989
SELECT - col0 + CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-1989
SELECT - col0 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + 92 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b5d8c2c6a8315d54685d43d574820de3

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

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

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

query I rowsort
SELECT + col1 + - col0 * cor0.col2 - - col1 * cor0.col1 AS col0 FROM tab0 AS cor0
----
1074
6690
9471

onlyif mysql # use DIV operator for integer division
query I rowsort label-1994
SELECT DISTINCT + + col2 * col2 DIV col1 FROM tab1 AS cor0
----
112
324
708

skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT + + col2 * col2 / col1 FROM tab1 AS cor0
----
112
324
708

query I rowsort
SELECT - + col2 + + col1 * - col1 - + 75 * - col1 FROM tab0 AS cor0
----
-1538
-2135
-979

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

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

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

query I rowsort
SELECT + col0 * + 10 + ( - col1 ) * col0 * + tab2.col2 + col2 AS col1 FROM tab2
----
-118846
-50206
-5762

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

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

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

skipif mysql # not compatible
query I rowsort label-2001
SELECT col1 / ( 32 ) AS col1 FROM tab2
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2002
SELECT DISTINCT - tab0.col0 + + col1 DIV + 25 + + col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT - tab0.col0 + + col1 / + 25 + + col0 FROM tab0
----
3

query I rowsort
SELECT col2 + 24 + + ( + col1 * + col0 ) FROM tab2
----
1405
268
4652

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

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

query I rowsort
SELECT 36 + col2 FROM tab1 AS cor0
----
132
90
93

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 32 + + col0 AS col0 FROM tab0 AS cor0
----
-2728
-2823
-3069

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2008
SELECT DISTINCT - ( - col0 ) DIV 62 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT - ( - col0 ) / 62 AS col0 FROM tab1 AS cor0
----
0
1

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

query I rowsort
SELECT + 53 * + cor0.col2 FROM tab0 AS cor0
----
1749
4346
53

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

query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + 97 * col2 AS col1 FROM tab2 cor0
----
2836
5029
7124

query I rowsort
SELECT + + 22 * - col1 + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-1100
-2099
5296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 * col2 col2 FROM tab0 AS cor0
----
-12
-396
-984

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

query I rowsort
SELECT - ( 85 ) * col1 AS col1 FROM tab0
----
-7310
-7735
-8245

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

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

query I rowsort
SELECT - 66 + - col2 FROM tab1
----
-120
-123
-162

query I rowsort
SELECT DISTINCT + col0 + 26 FROM tab2
----
104
105
33

query I rowsort
SELECT DISTINCT + 12 * + col1 + - col2 FROM tab2
----
166
345
682

query I rowsort
SELECT DISTINCT col0 + 33 FROM tab0
----
122
57
68

query I rowsort
SELECT 72 + col1 * col0 FROM tab0
----
2136
3467
8171

onlyif mysql # use DIV operator for integer division
query I rowsort label-2023
SELECT ALL - col1 * col2 + - ( col2 ) DIV + cor0.col1 FROM tab1 cor0
----
-1255
-1406
-575

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL - col1 * col2 + - ( col2 ) / + cor0.col1 FROM tab1 cor0
----
-1255
-1406
-575

onlyif mysql # use DIV operator for integer division
query I rowsort label-2024
SELECT ALL col1 + - col2 DIV col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL col1 + - col2 / col2 FROM tab1 AS cor0
----
12
25
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * - col0 col1 FROM tab1 cor0
----
-216
-3705
-7776

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

skipif mysql # not compatible
query I rowsort label-2028
SELECT - + cor0.col1 * CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + cor0.col0 * cor0.col2 * cor0.col0 AS col0 FROM tab1 cor0
----
233415
432
614304

query I rowsort
SELECT ALL + 16 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT - - col2 + - ( - col1 ) FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2032
SELECT DISTINCT + col0 * 86 + col2 DIV + col2 - - 58 * col0 FROM tab0 AS cor0
----
12817
3457
5041

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT + col0 * 86 + col2 / + col2 - - 58 * col0 FROM tab0 AS cor0
----
12817
3457
5041

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 974a92f740f5f08d18564d29c05f7692

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2034
SELECT DISTINCT - - CAST( + ( cor0.col2 ) AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2034
SELECT DISTINCT - - CAST ( + ( cor0.col2 ) AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col1 + 84 - col2 FROM tab0 AS cor0
----
-14
-35
-89

query I rowsort
SELECT ALL + + 42 + - 10 AS col2 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT + ( + tab1.col0 ) AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - - 5 * + 95 FROM tab2 AS cor0
----
475
475
475

query I rowsort
SELECT + - col1 + - 0 * + col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2040
SELECT ALL + CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 11 + - col2 FROM tab0 AS cor0
----
-22
-71
10

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + ( + cor0.col0 ) * col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - 9 * col2 + - col1 * 80 FROM tab2 AS cor0
----
-1702
-2723
-4954

onlyif mysql # use DIV operator for integer division
query I rowsort label-2045
SELECT + cor0.col2 * - col1 + + col2 DIV 72 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-2045
SELECT + cor0.col2 * - col1 + + col2 / 72 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 32 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2047
SELECT - col0 DIV + 89 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT - col0 / + 89 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL 29 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # use DIV operator for integer division
query I rowsort label-2049
SELECT + col1 * col1 DIV tab1.col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2049
SELECT + col1 * col1 / tab1.col1 FROM tab1
----
10
13
26

query I rowsort
SELECT + + col2 * - 49 AS col1 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT DISTINCT - 91 + + col0 * + col1 AS col1 FROM tab1
----
-13
549
949

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col0 AS REAL ) + - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + ( cor0.col1 ) AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - ( 38 ) + col0 FROM tab2 AS cor0
----
-31
40
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2055
SELECT + - CAST( NULL AS SIGNED ) * 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT + - CAST ( NULL AS INTEGER ) * 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + 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 - col1 + + col0 col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-2059
SELECT - col0 DIV + 78 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2059
SELECT - col0 / + 78 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 + ( 26 ) * - cor0.col2 FROM tab0 AS cor0
----
-2043
-834
9

query I rowsort
SELECT DISTINCT - col2 * - col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT cor0.col0 + - 72 FROM tab2 AS cor0
----
-65
6
7

query I rowsort
SELECT DISTINCT + 18 AS col1 FROM tab2
----
18

query I rowsort
SELECT cor0.col0 * 75 + - cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d3831550edf612ee63a444f598473667

query I rowsort
SELECT - cor1.col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - - cor0.col1 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + col0 + + col2 AS col1 FROM tab1 cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2069
SELECT ALL col1 + - CAST( + 27 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-10
32
4

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL col1 + - CAST ( + 27 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-10
32
4

query I rowsort
SELECT DISTINCT + col0 + 88 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-53
-591623
-95808

query I rowsort
SELECT ALL - ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT DISTINCT col1 + + col0 DIV col2 AS col1 FROM tab0 cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-2072
SELECT DISTINCT col1 + + col0 / col2 AS col1 FROM tab0 cor0
----
132
86
92

query I rowsort
SELECT ALL + cor0.col0 * 94 + - col1 AS col0 FROM tab1 cor0
----
256
6006
7507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 * + 12 col0 FROM tab1 AS cor0
----
-576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 + col2 + col1 col1 FROM tab0 cor0
----
153
78
99

query I rowsort
SELECT DISTINCT + - 63 * 32 * cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
-20150
-26195
-52390

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2077
SELECT DISTINCT - CAST( 44 AS SIGNED ) - + col0 * + col1 * + col2 col1 FROM tab1 AS cor0
----
-36524
-4256
-99884

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2077
SELECT DISTINCT - CAST ( 44 AS INTEGER ) - + col0 * + col1 * + col2 col1 FROM tab1 AS cor0
----
-36524
-4256
-99884

query I rowsort
SELECT col1 + tab2.col1 * col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT - cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT 57 * + col1 - + 6 * - col0 * col2 FROM tab2 AS cor0
----
15531
18981
2901

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT DISTINCT + + col2 * - col1 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - cor0.col1 * - cor0.col0 * - col2 + col1 AS col0 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ALL ( + 97 ) FROM tab0
----
97
97
97

query I rowsort
SELECT + ( cor0.col1 ) + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col0 * - col1 * - 6 FROM tab0 cor0
----
12384
20370
48594

onlyif mysql # use DIV operator for integer division
query I rowsort label-2087
SELECT + 51 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2087
SELECT + 51 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT tab1.col1 + ( col2 ) * + col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT DISTINCT col0 * + col1 * col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL ( col1 ) * - col1 + + tab1.col2 * col2 * col2 AS col2 FROM tab1
----
156788
185093
884567

query I rowsort
SELECT ALL - 5 + - col2 AS col1 FROM tab1 AS cor0
----
-101
-59
-62

query I rowsort
SELECT ALL + 8 FROM tab1, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT - tab2.col0 - + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 25b717de0e5bddb07e934fd4878503a0

query I rowsort
SELECT DISTINCT + + 78 * + col2 FROM tab0 AS cor0
----
2574
6396
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2095
SELECT - + ( - 26 ) + + cor0.col1 + CAST( - 6 AS SIGNED ) * + col1 FROM tab2 cor0
----
-129
-269
-59

skipif mysql # not compatible
query I rowsort label-2095
SELECT - + ( - 26 ) + + cor0.col1 + CAST ( - 6 AS INTEGER ) * + col1 FROM tab2 cor0
----
-129
-269
-59

query I rowsort
SELECT DISTINCT col1 + + 85 AS col2 FROM tab0 AS cor0
----
171
176
182

query I rowsort
SELECT DISTINCT - + 27 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1507
619
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2098
SELECT ALL - ( col0 ) * cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL - ( col0 ) * cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col2 * col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - 85 * + 67 FROM tab1 AS cor0
----
-5695
-5695
-5695

query I rowsort
SELECT DISTINCT 60 * col2 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT + + 12 * - cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-14976
-16848
-6840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2103
SELECT + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2103
SELECT + col0 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT - + 18 * - col2 AS col0 FROM tab2 AS cor0
----
468
486
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT - 29 DIV col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2105
SELECT - 29 / col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + 52 * col2 FROM tab2
----
1352
1404
1976

query I rowsort
SELECT ALL - ( + tab0.col2 * - col2 ) AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + col0 + + col1 * - 38 FROM tab0 AS cor0
----
-3244
-3369
-3651

query I rowsort
SELECT + col2 + col0 * - 40 * + 35 FROM tab2 AS cor0
----
-109174
-110562
-9773

onlyif mysql # use DIV operator for integer division
query I rowsort label-2110
SELECT DISTINCT - + col2 * cor0.col1 DIV + 2 + cor0.col2 - + ( 57 * - col2 ) AS col1 FROM tab1 AS cor0
----
2430
3021
4944

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT - + col2 * cor0.col1 / + 2 + cor0.col2 - + ( 57 * - col2 ) AS col1 FROM tab1 AS cor0
----
2430
3021
4944

query I rowsort
SELECT - col0 * + cor0.col2 + col2 * col1 AS col0 FROM tab0 AS cor0
----
164
2046
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2112
SELECT - + col0 + + CAST( NULL AS SIGNED ) + - 78 / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT - + col0 + + CAST ( NULL AS INTEGER ) + - 78 / - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2113
SELECT DISTINCT col0 * CAST( col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT col0 * CAST ( col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - cor0.col0 * 48 FROM tab1 AS cor0
----
-144
-3072
-3840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2115
SELECT + - col2 + col2 * ( + col1 * CAST( - col1 AS SIGNED ) + + col1 * col2 ) FROM tab0 AS cor0
----
-150447
-67240
-9313

skipif mysql # not compatible
query I rowsort label-2115
SELECT + - col2 + col2 * ( + col1 * CAST ( - col1 AS INTEGER ) + + col1 * col2 ) FROM tab0 AS cor0
----
-150447
-67240
-9313

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2116
SELECT ALL + col2 / + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL + col2 / + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + ( - 91 ) * col1 AS col2 FROM tab1 cor0
----
-1087
-2312
-853

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - cor0.col0 * + 23 + + col1 FROM tab2 cor0
----
-130
-1735
-1800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2120
SELECT DISTINCT + - col1 * CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT + - col1 * CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + + 75 * - col2 + + col2 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT - - col2 + 63 AS col1 FROM tab2 AS cor0
----
101
89
90

query I rowsort
SELECT ALL + - col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + + col1 + - 97 FROM tab0 AS cor0
----
-11
-6
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 + CAST ( col0 AS REAL ) AS col1 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 51 col2 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT - - cor0.col0 - 60 FROM tab1 AS cor0
----
-57
20
4

query I rowsort
SELECT ALL col0 * - 93 FROM tab1 cor0
----
-279
-5952
-7440

query I rowsort
SELECT ALL tab0.col1 + + 37 * + col0 FROM tab0
----
1392
3384
974

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2130
SELECT DISTINCT + cor0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT + cor0.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL ( - col2 ) + + cor0.col2 * 88 + ( + col0 ) FROM tab2 AS cor0
----
2340
2356
3385

query I rowsort
SELECT ALL + - 64 + 61 * col2 FROM tab1 AS cor0
----
3230
3413
5792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2133
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2133
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26

query I rowsort
SELECT col0 * + col0 + col1 AS col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT 64 * + col1 AS col1 FROM tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT - 70 * + col1 + - col0 AS col2 FROM tab0 AS cor0
----
-6044
-6459
-6825

query I rowsort
SELECT - 29 * + cor0.col2 + col0 * 47 FROM tab2 cor0
----
-454
2611
2912

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab0, tab0 AS cor0
----
-61

query I rowsort
SELECT - col0 + ( col1 + tab0.col1 ) FROM tab0
----
148
159
93

query I rowsort
SELECT + ( - col2 ) + cor0.col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT 7 DIV col2 + col1 * 45 FROM tab1
----
1170
450
585

skipif mysql # not compatible
query I rowsort label-2142
SELECT 7 / col2 + col1 * 45 FROM tab1
----
1170
450
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT tab0.col2 * cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 9f4d33c2594156f40c1a77ce18b06bc3

query I rowsort
SELECT 66 * + cor0.col2 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2050
-31
-660

query I rowsort
SELECT ALL - col0 * ( col0 ) + col1 * + col2 FROM tab1 AS cor0
----
-3526
-5152
1395

onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT col2 DIV + col0 col2 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2147
SELECT col2 / + col0 col2 FROM tab2
----
0
0
3

query I rowsort
SELECT - col0 + ( col0 * - col1 ) + + 48 FROM tab1 AS cor0
----
-1072
-33
-656

query I rowsort
SELECT - - col1 * - 15 + col2 * - col0 FROM tab2 AS cor0
----
-2913
-3257
-654

query I rowsort
SELECT col1 + col1 * col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - 41 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT ALL col1 * - ( + cor0.col1 ) FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT + - col2 + 46 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
295
3562
3596

query I rowsort
SELECT DISTINCT cor0.col2 + - cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-2155
SELECT + col2 DIV + col0 + col1 AS col2 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-2155
SELECT + col2 / + col0 + col1 AS col2 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT - col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 - col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2158
SELECT ALL col0 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL col0 / col2 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + - col2 * ( col0 ) + - cor0.col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT col2 * 10 * ( col0 ) FROM tab0 AS cor0
----
350
72980
7920

query I rowsort
SELECT 22 AS col1 FROM tab0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab1, tab0 AS cor0
----
-1
-33
-82

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

query I rowsort
SELECT col0 - + tab2.col2 AS col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2165
SELECT DISTINCT col0 + tab1.col1 DIV tab1.col2 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT col0 + tab1.col1 / tab1.col2 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT tab1.col2 * col1 + - col0 * + col2 * col0 FROM tab1
----
-232902
-613152
918

query I rowsort
SELECT col2 + - tab1.col1 * + col0 AS col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col1 FROM tab1 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2170
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2170
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col1 FROM tab0
----
171
36
57

query I rowsort
SELECT col0 * + col1 + col1 AS col2 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL + col0 + col1 - - col0 FROM tab1
----
138
173
32

query I rowsort
SELECT ALL col1 * - col0 + col2 AS col1 FROM tab1
----
-24
-583
-944

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> col1 + - col1 + col0
----

query I rowsort
SELECT DISTINCT - 56 * - col1 FROM tab2
----
1736
3304
952

query I rowsort
SELECT ALL ( 36 ) + cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c2648733a56d2577f490c6ff22874d96

query I rowsort
SELECT cor0.col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - 48 * + col0 + col0 * + 68 AS col1 FROM tab0
----
1780
480
700

query I rowsort
SELECT col0 + col0 * 78 AS col0 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT DISTINCT ( col2 ) * - ( col0 ) AS col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - ( col2 ) * - col2 * col0 + col0 + 10 AS col0 FROM tab0 AS cor0
----
26170
598535
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col2 col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT + col2 DIV 37 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2184
SELECT + col2 / 37 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + + col2 * + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2186
SELECT ALL - + col1 - col1 DIV + col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-2186
SELECT ALL - + col1 - col1 / + col1 FROM tab0 AS cor0
----
-87
-92
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2187
SELECT + - col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2187
SELECT + - col1 / - col1 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 * + 59 FROM tab0 cor0
----
1947
4838
59

query I rowsort
SELECT ALL col0 + - 39 AS col2 FROM tab0 AS cor0
----
-15
-4
50

query I rowsort
SELECT + ( - col2 ) * col1 + - ( col2 ) AS col2 FROM tab1 cor0
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2191
SELECT CAST( NULL AS SIGNED ) * 21 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT CAST ( NULL AS INTEGER ) * 21 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 71 + col1 FROM tab0
----
-2257
-5731
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 0 col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + - col0 * - ( col2 ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col1 + - 82 AS col1 FROM tab1 cor0
----
-56
-69
-72

query I rowsort
SELECT + 42 * 84 + col1 AS col1 FROM tab0 AS cor0
----
3614
3619
3625

query I rowsort
SELECT DISTINCT + cor0.col0 * + 48 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
336
3744
3792

query I rowsort
SELECT + ( + col1 ) * col2 + + 3 * + 75 FROM tab0 AS cor0
----
3063
322
7687

query I rowsort
SELECT ALL + + 78 AS col1 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2200
SELECT ALL - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT ( - col0 ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab0 AS cor0
----
58

query I rowsort
SELECT col0 * col2 + 7 * col2 FROM tab2 AS cor0
----
2210
3268
378

query I rowsort
SELECT ALL 39 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1287
1443
609

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * col0 FROM tab2 cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col0 + + col2 col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT col0 * - col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT 92 DIV col0 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
202
2029
3003

skipif mysql # not compatible
query I rowsort label-2208
SELECT 92 / col0 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
202
2029
3003

query I rowsort
SELECT + 68 + - col0 FROM tab1 cor0
----
-12
4
65

query I rowsort
SELECT ALL + col2 + + col1 + + col1 AS col0 FROM tab0
----
195
205
264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2211
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2211
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col2 * + 89 + col1 - + ( - 90 + col1 ) * - tab1.col1 AS col0 FROM tab1
----
3168
4283
7556

query I rowsort
SELECT DISTINCT + 19 + ( col0 ) AS col0 FROM tab0
----
108
43
54

query I rowsort
SELECT DISTINCT ( ( col1 ) ) - tab0.col2 FROM tab0
----
53
9
96

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + col0 * cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL - col1 * col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + col2 - cor0.col0 AS col1 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2219
SELECT ALL col1 DIV + col2 + + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL col1 / + col2 + + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - + col0 + - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + col0 * col0 * col1 AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL 7 + + col2 + col0 * col0 FROM tab1
----
4160
6503
70

query I rowsort
SELECT DISTINCT col0 * - col2 + - col2 AS col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT ALL col2 - - col0 * - col1 * - col0 AS col2 FROM tab0
----
118826
49569
720893

query I rowsort
SELECT DISTINCT - + ( 74 ) FROM tab0 AS cor0
----
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-2226
SELECT 35 + ( + tab0.col1 ) DIV col2 AS col0 FROM tab0
----
132
36
37

skipif mysql # not compatible
query I rowsort label-2226
SELECT 35 + ( + tab0.col1 ) / col2 AS col0 FROM tab0
----
132
36
37

query I rowsort
SELECT DISTINCT + col1 + - 65 * col2 AS col1 FROM tab1
----
-3484
-3695
-6227

query I rowsort
SELECT ALL + + col2 + + col1 * - col1 * cor0.col1 FROM tab1 AS cor0
----
-17522
-2101
-943

query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - + ( col1 ) * - cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - 30 + cor0.col1 FROM tab1 AS cor0
----
40
43
56

query I rowsort
SELECT col0 + col0 - col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + 99 * + cor0.col2 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT cor0.col1 * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - + 99 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2376
-3465
-8811

query I rowsort
SELECT - col2 + + col2 - + col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 + + col2 FROM tab1 AS cor0
----
242
3715
7789

onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT DISTINCT - col0 DIV - col2 + col0 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-2238
SELECT DISTINCT - col0 / - col2 + col0 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT + + 33 AS col0 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - col2 - - col0 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL + - cor0.col2 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT + tab1.col2 + + col0 * col0 AS col2 FROM tab1
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col1 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT col2 + + col0 * - col0 AS col1 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT ALL - tab2.col0 * + col1 + tab2.col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT tab1.col1 * col0 * - col2 AS col2 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col2 * col1 + col0 - - col1 * + col2 AS col1 FROM tab1
----
1204
2576
2811

query I rowsort
SELECT ALL col0 * col0 * tab2.col0 FROM tab2
----
343
474552
493039

query I rowsort
SELECT ALL col0 + - col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT ALL col2 DIV col0 + col2 FROM tab1
----
57
72
97

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL col2 / col0 + col2 FROM tab1
----
57
72
97

query I rowsort
SELECT DISTINCT + tab0.col0 - col0 FROM tab0 WHERE NOT ( col0 / - col2 + col0 ) = + col0
----
0

query I rowsort
SELECT ALL + tab1.col2 + - col0 * col2 + + col0 * - col1 FROM tab1
----
-186
-4231
-8624

query I rowsort
SELECT DISTINCT - col0 * + col0 + + col1 + tab2.col1 * col2 AS col1 FROM tab2
----
-4491
-5578
819

query I rowsort
SELECT - col0 + col1 + - col1 FROM tab1
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 + - col0 col1 FROM tab1
----
-138
-173
-32

query I rowsort
SELECT ALL - col2 + - col2 + + tab1.col0 FROM tab1 WHERE NOT ( NULL ) IN ( col0 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND col1 - col0
----

query I rowsort
SELECT col0 + col2 * - col1 * - col0 AS col1 FROM tab0
----
3430
664207
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 WHERE col1 / + col2 + col1 * col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 = ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + + col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT col0 + + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 + - col0 FROM tab1 AS cor0
----
101
586
973

onlyif mysql # use DIV operator for integer division
query I rowsort label-2266
SELECT + col1 * col0 DIV - col2 FROM tab0 AS cor0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-2266
SELECT + col1 * col0 / - col2 FROM tab0 AS cor0
----
-3395
-62
-98

query I rowsort
SELECT DISTINCT col1 * + col1 * col1 AS col2 FROM tab0 WHERE NOT ( NULL ) IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2268
SELECT ALL + col1 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL + col1 / col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 + col0 ) NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + tab1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + 35 * - col1 FROM tab1 cor0
----
-350
-455
-910

query I rowsort
SELECT 90 AS col2 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT ALL - - 42 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
321
3302
3356

query I rowsort
SELECT DISTINCT col2 + 62 FROM tab1 AS cor0
----
116
119
158

query I rowsort
SELECT ( - 22 ) FROM tab0, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT - + 41 + col2 FROM tab2 AS cor0
----
-14
-15
-3

query I rowsort
SELECT col1 + 35 * - col2 FROM tab1 AS cor0
----
-1864
-1985
-3347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2278
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + col0 + col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col1 + - col0 col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT col0 + col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT cor1.col0 * 36 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e6db7d11c94ea823449267ee4a0e54d7

query I rowsort
SELECT ALL col2 * - col1 AS col2 FROM tab1
----
-1248
-1404
-570

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4

query I rowsort
SELECT ALL - - col2 * - col0 * + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL - + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ( + 70 ) + + tab0.col0 FROM tab0
----
105
159
94

query I rowsort
SELECT ALL - col0 * 64 AS col2 FROM tab1 AS cor0
----
-192
-4096
-5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT ALL col2 + + ( + cor0.col2 ) DIV - cor0.col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL col2 + + ( + cor0.col2 ) / - cor0.col2 FROM tab1 AS cor0
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( col0 + col2 ) col2 FROM tab0 AS cor0
----
260
71
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2291
SELECT - col0 / - CAST( NULL AS SIGNED ) + + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT - col0 / - CAST ( NULL AS INTEGER ) + + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT - col0 + - ( + col1 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-2292
SELECT - col0 + - ( + col1 ) / + col0 AS col0 FROM tab1 AS cor0
----
-11
-64
-80

query I rowsort
SELECT + 38 FROM tab1, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT col2 + col2 - + tab0.col1 * col0 FROM tab0
----
-1998
-3393
-7935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 19 col2 FROM tab1
----
29
32
45

query I rowsort
SELECT col2 - - col1 AS col1 FROM tab1
----
109
67
80

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7

query I rowsort
SELECT DISTINCT - col2 * col1 + + col2 FROM tab2
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2299
SELECT DISTINCT - tab2.col1 + CAST( NULL AS SIGNED ) - col0 * col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT - tab2.col1 + CAST ( NULL AS INTEGER ) - col0 * col0 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * col0 * col0 + - 17 FROM tab1 AS cor0
----
-251
-40977
-83217

query I rowsort
SELECT - - 47 * col2 + col0 * col0 FROM tab2 AS cor0
----
1318
7306
8027

query I rowsort
SELECT DISTINCT 95 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT ALL - 7 * col1 * col2 AS col2 FROM tab1 AS cor0
----
-3990
-8736
-9828

query I rowsort
SELECT - 69 * - 66 + + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
12653
6618
7949

query I rowsort
SELECT - col0 * - 48 FROM tab1
----
144
3072
3840

query I rowsort
SELECT ALL col2 * 92 FROM tab0
----
3036
7544
92

query I rowsort
SELECT DISTINCT - + col2 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-2308
SELECT DISTINCT col2 + col1 DIV + col0 AS col1 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT col2 + col1 / + col0 AS col1 FROM tab0
----
3
36
83

query I rowsort
SELECT - 29 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2310
SELECT ALL + CAST( + col2 AS SIGNED ) + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL + CAST ( + col2 AS INTEGER ) + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) * col2 * + 84 FROM tab2 AS cor0
----
-128856
-54264
-70308

query I rowsort
SELECT DISTINCT + 63 + ( col0 ) AS col0 FROM tab0 AS cor0
----
152
87
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2314
SELECT - + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2314
SELECT - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col2 * 52 + + col2 FROM tab1 AS cor0
----
-2754
-2907
-4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 87 - - 5 col1 FROM tab2 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 + col2 - col0 * - 37 col0 FROM tab0 AS cor0
----
1349
3428
974

query I rowsort
SELECT ALL + ( - col1 ) * 38 * - 40 AS col0 FROM tab2
----
25840
47120
89680

query I rowsort
SELECT - 86 + - col2 * + 37 AS col0 FROM tab2 AS cor0
----
-1048
-1085
-1492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) + col2 * + col1 col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - cor0.col0 + - col2 * 91 AS col2 FROM tab1 AS cor0
----
-4917
-5251
-8816

query I rowsort
SELECT ALL + - cor0.col0 + ( col2 ) * + col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT ALL + col0 + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2324
SELECT + cor0.col0 - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-2324
SELECT + cor0.col0 - col1 / - col1 AS col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT + col2 * col2 + cor0.col2 FROM tab2 cor0
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2326
SELECT + col1 * - CAST( col2 AS SIGNED ) - + col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

skipif mysql # not compatible
query I rowsort label-2326
SELECT + col1 * - CAST ( col2 AS INTEGER ) - + col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL col2 + col1 * 67 AS col0 FROM tab0 AS cor0
----
5795
6179
6500

onlyif mysql # use DIV operator for integer division
query I rowsort label-2328
SELECT - col2 DIV + col0 + 53 + + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
51
54
54

skipif mysql # not compatible
query I rowsort label-2328
SELECT - col2 / + col0 + 53 + + col0 / col0 AS col2 FROM tab2 AS cor0
----
51
54
54

query I rowsort
SELECT - col1 + col1 + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col0 * 54 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT col2 + + 20 FROM tab0 AS cor0
----
102
21
53

query I rowsort
SELECT DISTINCT col1 * 8 FROM tab0 cor0
----
688
728
776

query I rowsort
SELECT col0 * - col0 + col1 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col2 + - col2 * - col0 + 55 FROM tab0 AS cor0
----
7271
814
89

query I rowsort
SELECT ALL + - col2 * + col0 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT 64 * col0 + col0 AS col0 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT - 86 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

onlyif mysql # use DIV operator for integer division
query I rowsort label-2339
SELECT ALL + 17 + - col2 DIV CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL + 17 + - col2 / CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-2340
SELECT DISTINCT col1 DIV + col2 + + ( - 4 * - col2 ) FROM tab0
----
101
134
329

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT col1 / + col2 + + ( - 4 * - col2 ) FROM tab0
----
101
134
329

query I rowsort
SELECT 19 * tab2.col0 FROM tab2
----
133
1482
1501

query I rowsort
SELECT - col0 * col0 * - col1 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - tab2.col0 * + col0 + col0 AS col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT - 9 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049

onlyif mysql # use DIV operator for integer division
query I rowsort label-2345
SELECT DISTINCT ( ( + cor1.col2 ) ) DIV - 5 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-16
-6
0

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT ( ( + cor1.col2 ) ) / - 5 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-16
-6
0

query I rowsort
SELECT tab2.col0 + + col1 + tab2.col1 FROM tab2
----
113
196
69

query I rowsort
SELECT DISTINCT 41 FROM tab0, tab1, tab2 AS cor0
----
41

query I rowsort
SELECT + 12 * col0 AS col2 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT ALL + col0 * 52 + + col0 * - col0 FROM tab0 AS cor0
----
-3293
595
672

query I rowsort
SELECT - 82 * col2 AS col1 FROM tab0 AS cor0
----
-2706
-6724
-82

query I rowsort
SELECT - + 39 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT ALL col1 * + col1 * col1 FROM tab0
----
636056
753571
912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT col2 * - col1 + ( - col0 ) DIV col2 FROM tab0
----
-132
-2838
-7463

skipif mysql # not compatible
query I rowsort label-2353
SELECT col2 * - col1 + ( - col0 ) / col2 FROM tab0
----
-132
-2838
-7463

query I rowsort
SELECT + col0 * - col0 + + ( col2 ) FROM tab1
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 2 * cor0.col1 + - col0 col0 FROM tab1 AS cor0
----
-44
-54
49

query I rowsort
SELECT DISTINCT + - 51 - + 41 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT ALL - + ( col1 ) * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 * col1 + - ( col0 ) * cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1277478
-270204
-9444

query I rowsort
SELECT - cor0.col0 + ( + col0 ) * + cor0.col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL col0 + - col1 * col2 - ( col0 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col2 * - ( cor0.col0 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col2 + 10 * col1 FROM tab2 AS cor0
----
208
337
616

query I rowsort
SELECT DISTINCT + + 75 * - col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

query I rowsort
SELECT ALL - + col2 * col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + - col2 * + col2 + - col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT - - col1 * 29 + col0 - + 34 FROM tab0 AS cor0
----
2484
2694
2814

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2367
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2367
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab0 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT tab2.col0 * - col2 + col2 AS col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL col1 * 3 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT col0 + - cor0.col0 * - 36 AS col0 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT - col1 - - col0 * - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - ( 71 ) * cor0.col0 + 47 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
-166
-4497
-5633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2374
SELECT - col1 + CAST( NULL AS SIGNED ) * - col1 + cor0.col2 * - 21 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT - col1 + CAST ( NULL AS INTEGER ) * - col1 + cor0.col2 * - 21 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2375
SELECT + col0 * - CAST( 75 AS SIGNED ) + + cor0.col0 FROM tab2 AS cor0
----
-518
-5772
-5846

skipif mysql # not compatible
query I rowsort label-2375
SELECT + col0 * - CAST ( 75 AS INTEGER ) + + cor0.col0 FROM tab2 AS cor0
----
-518
-5772
-5846

onlyif mysql # use DIV operator for integer division
query I rowsort label-2376
SELECT + - col1 * + col1 DIV - col1 + col0 + + 62 FROM tab2 AS cor0
----
100
158
199

skipif mysql # not compatible
query I rowsort label-2376
SELECT + - col1 * + col1 / - col1 + col0 + + 62 FROM tab2 AS cor0
----
100
158
199

query I rowsort
SELECT - col1 + + 2 FROM tab2
----
-15
-29
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT + + col0 * 52 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT col2 * + tab1.col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 46 - col1 FROM tab0
----
-132
-137
-143

query I rowsort
SELECT col2 - col1 * + ( + col2 ) FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - cor0.col2 + - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 * col0 AS col1 FROM tab2
----
-788
4550
5595

query I rowsort
SELECT ALL 22 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT ALL - cor0.col0 * col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2387
SELECT DISTINCT - col1 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT DISTINCT - col1 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + col1 * 3 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT ALL + cor0.col0 + - 0 * + col1 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col1 + ( ( + col1 ) ) AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT - + col1 * 2 AS col0 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT - - cor0.col2 * + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - cor0.col2 * ( + col1 ) FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - tab1.col1 * cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
-100
-130
-169
-260
-338
-676

query I rowsort
SELECT ALL + col2 - + 41 * col1 * col0 FROM tab2 cor0
----
-188656
-55025
-8870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2396
SELECT DISTINCT - + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT - + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT DISTINCT col0 DIV + 87 + col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT col0 / + 87 + col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2398
SELECT - col2 + + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2398
SELECT - col2 + + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 14 col0 FROM tab1 AS cor0
----
17
78
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-2400
SELECT ALL - col1 - + 54 DIV + col1 FROM tab2 cor0
----
-20
-32
-59

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL - col1 - + 54 / + col1 FROM tab2 cor0
----
-20
-32
-59

query I rowsort
SELECT DISTINCT - - col2 + 82 * 50 FROM tab0 AS cor0
----
4101
4133
4182

query I rowsort
SELECT + cor0.col2 + 36 FROM tab0 AS cor0
----
118
37
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2403
SELECT CAST( NULL AS SIGNED ) - 78 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT CAST ( NULL AS INTEGER ) - 78 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - ( 26 ) + + col0 AS col0 FROM tab1 AS cor0
----
-23
38
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-2406
SELECT ALL ( col2 ) DIV cor0.col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL ( col2 ) / cor0.col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT - 66 * col1 AS col2 FROM tab0 AS cor0
----
-5676
-6006
-6402

query I rowsort
SELECT ALL 51 * + 51 FROM tab0 AS cor0
----
2601
2601
2601

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col2 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT - col0 * - col0 * cor0.col0 AS col0 FROM tab0 cor0
----
13824
42875
704969

query I rowsort
SELECT ALL - col0 * cor0.col0 + - 95 FROM tab0 AS cor0
----
-1320
-671
-8016

query I rowsort
SELECT + ( col1 ) * col1 + + col0 FROM tab1 AS cor0
----
164
249
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2413
SELECT ALL - - 59 * - cor0.col0 + CAST( col1 AS SIGNED ) * + col2 * + 30 + col2 FROM tab1 AS cor0
----
13381
32816
41997

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL - - 59 * - cor0.col0 + CAST ( col1 AS INTEGER ) * + col2 * + 30 + col2 FROM tab1 AS cor0
----
13381
32816
41997

query I rowsort
SELECT col1 * cor0.col0 * 40 + + col2 AS col0 FROM tab1 AS cor0
----
25657
3174
41696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2415
SELECT col2 + + col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2415
SELECT col2 + + col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - cor0.col2 * ( 31 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1c1fdf260c1cb6beddfa17bb2f6ec71

query I rowsort
SELECT DISTINCT - - col0 * col0 + + col0 + - col2 * cor0.col0 AS col1 FROM tab2 cor0
----
-133
3318
4134

query I rowsort
SELECT col2 * col1 + 17 * + col1 AS col1 FROM tab1 AS cor0
----
1469
1846
740

query I rowsort
SELECT ALL + - 36 * col0 - + col0 AS col1 FROM tab1 cor0
----
-111
-2368
-2960

query I rowsort
SELECT - col2 * - col1 + + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + 87 + col2 * ( + col1 ) FROM tab1 AS cor0
----
1335
1491
657

query I rowsort
SELECT col2 * - col2 - col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL - col2 * + col0 + - ( - 47 ) * col0 AS col2 FROM tab2 AS cor0
----
140
1638
711

query I rowsort
SELECT DISTINCT + 49 AS col1 FROM tab2 cor0
----
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT + col2 DIV + col0 - 9 FROM tab2 AS cor0
----
-6
-9
-9

skipif mysql # not compatible
query I rowsort label-2425
SELECT + col2 / + col0 - 9 FROM tab2 AS cor0
----
-6
-9
-9

query I rowsort
SELECT ( - tab2.col0 ) + + tab2.col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT cor0.col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col2 FROM tab2
----
-69
-69
-69

query I rowsort
SELECT ALL col1 * col0 + + 63 - ( col0 ) * - 69 AS col1 FROM tab1 cor0
----
348
5119
6623

query I rowsort
SELECT DISTINCT + 70 + col2 FROM tab1 AS cor0
----
124
127
166

query I rowsort
SELECT DISTINCT + + 45 * - col2 FROM tab0 AS cor0
----
-1485
-3690
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT ALL + cor0.col0 DIV + col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL + cor0.col0 / + col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT + + col1 * - col2 + - 77 FROM tab2 cor0
----
-1611
-723
-914

query I rowsort
SELECT - col1 * + tab0.col2 + 13 + - col0 AS col0 FROM tab0
----
-119
-2849
-7538

query I rowsort
SELECT - + cor0.col2 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2436
SELECT - col2 DIV - cor0.col1 - col2 * col2 FROM tab2 AS cor0
----
-1442
-676
-729

skipif mysql # not compatible
query I rowsort label-2436
SELECT - col2 / - cor0.col1 - col2 * col2 FROM tab2 AS cor0
----
-1442
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2437
SELECT ALL - CAST( NULL AS DECIMAL ) + col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - CAST ( NULL AS REAL ) + col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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 DISTINCT - 80 * - col0 - - col1 AS col0 FROM tab1 AS cor0
----
266
5130
6413

query I rowsort
SELECT ALL 28 + - col1 * col2 FROM tab2 AS cor0
----
-1506
-618
-809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col1 + col0 col0 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT ALL col2 * col0 + 98 DIV tab2.col0 AS col1 FROM tab2
----
2029
203
3003

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL col2 * col0 + 98 / tab2.col0 AS col1 FROM tab2
----
2029
203
3003

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 cor2, tab1 AS cor3
----
3645 values hashing to d5761ba4e40f0c65536d1d3c9de4e566

query I rowsort
SELECT ALL + tab0.col2 * col0 * - col1 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2445
SELECT CAST( 36 AS SIGNED ) AS col0 FROM tab2
----
36
36
36

skipif mysql # not compatible
query I rowsort label-2445
SELECT CAST ( 36 AS INTEGER ) AS col0 FROM tab2
----
36
36
36

query I rowsort
SELECT + ( - 6 ) FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to b27ffe5fca3aedb2653abfcf3561c0ae

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2447
SELECT ALL + - CAST( - col0 AS SIGNED ) - - col2 * + CAST( NULL AS SIGNED ) / - cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + - CAST ( - col0 AS INTEGER ) - - col2 * + CAST ( NULL AS INTEGER ) / - cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col1 ) * col0 - - cor0.col2 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - 72 + - col2 * - col1 * col2 + col0 * col0 FROM tab2 AS cor0
----
22576
30717
45896

query I rowsort
SELECT ALL + ( - 63 ) FROM tab2 cor0
----
-63
-63
-63

query I rowsort
SELECT ALL - col0 * + ( + 25 ) FROM tab1
----
-1600
-2000
-75

query I rowsort
SELECT DISTINCT + - cor0.col2 * + cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2453
SELECT ALL col0 DIV col1 col0 FROM tab2 cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL col0 / col1 col0 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT ALL cor0.col1 + + ( - col2 ) * col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT DISTINCT + - col0 DIV - 54 + col1 AS col1 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-2455
SELECT DISTINCT + - col0 / - 54 + col1 AS col1 FROM tab0 AS cor0
----
86
92
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2456
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) 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-2456
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * - 47 FROM tab1 AS cor0
----
-2538
-2679
-4512

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2458
SELECT - CAST( - col1 AS SIGNED ) + col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-2458
SELECT - CAST ( - col1 AS INTEGER ) + col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - 86 * 55 + - col1 AS col2 FROM tab1 AS cor0
----
-4740
-4743
-4756

onlyif mysql # use DIV operator for integer division
query I rowsort label-2460
SELECT col1 * + col0 DIV - col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2460
SELECT col1 * + col0 / - col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - - 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL + col1 * - ( 83 ) AS col2 FROM tab0
----
-7138
-7553
-8051

query I rowsort
SELECT + - 64 + 20 AS col0 FROM tab0 AS cor0
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - ( - col1 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * + 17 + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-1401
-51
-552

query I rowsort
SELECT - cor0.col1 + - col0 + - 41 AS col0 FROM tab2 AS cor0
----
-137
-178
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2468
SELECT col0 + cor0.col1 + cor0.col2 DIV cor0.col0 FROM tab0 cor0
----
111
132
180

skipif mysql # not compatible
query I rowsort label-2468
SELECT col0 + cor0.col1 + cor0.col2 / cor0.col0 FROM tab0 cor0
----
111
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2469
SELECT col1 * col2 DIV col0 col0 FROM tab0 cor0
----
118
2
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2469
SELECT col1 * col2 / col0 col0 FROM tab0 cor0
----
118
2
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 77 col0 FROM tab0 cor0
----
2541
6314
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT + col2 + - ( + col0 ) DIV col0 AS col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2471
SELECT + col2 + - ( + col0 ) / col0 AS col0 FROM tab1 AS cor0
----
53
56
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2472
SELECT col0 + col2 * 6 DIV col1 FROM tab1 AS cor0
----
124
15
98

skipif mysql # not compatible
query I rowsort label-2472
SELECT col0 + col2 * 6 / col1 FROM tab1 AS cor0
----
124
15
98

query I rowsort
SELECT ( tab0.col0 ) + 33 FROM tab0
----
122
57
68

query I rowsort
SELECT - + 6 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252

onlyif mysql # use DIV operator for integer division
query I rowsort label-2475
SELECT ALL col2 DIV tab0.col0 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL col2 / tab0.col0 AS col0 FROM tab0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2476
SELECT - col1 + CAST( col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2476
SELECT - col1 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 * - cor0.col1 col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col0 * + ( + col2 ) * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL 84 * cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1ff3e722835b8bcfd8482f4633931910

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - 29 AS col0 FROM tab0 cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT - col0 * 85 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
-54390
-6604
-88387

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab2, tab0 AS cor0
----
-7

query I rowsort
SELECT ALL tab2.col2 * tab2.col1 * col1 AS col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ( + col0 ) * col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col1 + + col1 * ( col1 ) FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT col2 * + 36 * + col0 AS col0 FROM tab1
----
131328
276480
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2489
SELECT + + 71 DIV 40 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-2489
SELECT + + 71 / 40 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT ALL + 30 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT 20 + cor0.col2 AS col2 FROM tab2 AS cor0
----
46
47
58

query I rowsort
SELECT tab1.col1 * - 38 AS col2 FROM tab1
----
-380
-494
-988

query I rowsort
SELECT DISTINCT + tab0.col0 * ( col0 ) AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + 69 + + col2 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
3464
664187
68181

query I rowsort
SELECT ALL 57 - col2 AS col2 FROM tab0 cor0
----
-25
24
56

query I rowsort
SELECT DISTINCT - 23 * + col2 * - col2 FROM tab1 AS cor0
----
211968
67068
74727

query I rowsort
SELECT ALL - 71 - col1 AS col1 FROM tab1 AS cor0
----
-81
-84
-97

query I rowsort
SELECT ( col1 ) + + col0 * 31 FROM tab2 AS cor0
----
2466
2477
248

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 89 AS REAL ) * col0 AS col1 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT col1 * col1 + - col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT + 92 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + col0 * - ( + 43 + - col0 * tab1.col2 ) AS col0 FROM tab1
----
230720
357
610960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2506
SELECT - col2 DIV + tab2.col1 AS col0 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT - col2 / + tab2.col1 AS col0 FROM tab2
----
-2
0
0

query I rowsort
SELECT ALL - 96 + + col0 * + col0 AS col1 FROM tab0
----
1129
480
7825

query I rowsort
SELECT + - ( - col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + ( col1 ) - - col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - + cor0.col2 * 68 + col1 AS col2 FROM tab0 AS cor0
----
-2158
-5485
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT ALL - col0 * col2 + + col2 DIV + ( col2 ) FROM tab1 AS cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - col0 * col2 + + col2 / + ( col2 ) FROM tab1 AS cor0
----
-161
-3647
-7679

query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) + col0 + col2 * + 70 AS col1 FROM tab1 AS cor0
----
3837
4111
6896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + - col2 col1 FROM tab1 AS cor0
----
-128
-86
-89

query I rowsort
SELECT ALL cor0.col1 + - ( + col2 ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT col0 * 51 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT 64 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT 61 - col1 * 4 AS col2 FROM tab0
----
-283
-303
-327

query I rowsort
SELECT ( - col0 ) + + 99 * col2 AS col2 FROM tab0 AS cor0
----
3243
64
8029

query I rowsort
SELECT - - 76 * col2 AS col1 FROM tab0 cor0
----
2508
6232
76

query I rowsort
SELECT DISTINCT + 94 * tab0.col1 FROM tab0
----
8084
8554
9118

query I rowsort
SELECT - ( ( tab1.col0 ) ) * + tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2522
SELECT DISTINCT col0 DIV + ( 19 ) AS col2 FROM tab0 cor0
----
1
4

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT col0 / + ( 19 ) AS col2 FROM tab0 cor0
----
1
4

query I rowsort
SELECT cor0.col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col1 + ( + cor0.col2 ) * + col2 * + col0 FROM tab1 AS cor0
----
207926
737267
8722

query I rowsort
SELECT ALL + col1 + + 71 * + cor0.col1 FROM tab2 AS cor0
----
1224
2232
4248

query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2528
SELECT ALL + - col1 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL + - col1 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT ALL - col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - col0 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col1 * ( - col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - - col2 * - 80 AS col1 FROM tab1 cor0
----
-4320
-4560
-7680

query I rowsort
SELECT ALL + - col1 * ( - 63 ) FROM tab0 cor0
----
5418
5733
6111

query I rowsort
SELECT ALL - + col2 * 53 FROM tab2 AS cor0
----
-1378
-1431
-2014

onlyif mysql # use DIV operator for integer division
query I rowsort label-2534
SELECT col1 DIV 91 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2534
SELECT col1 / 91 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col1 + + col2 col2 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT 89 DIV col1 AS col0 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-2536
SELECT 89 / col1 AS col0 FROM tab2 AS cor0
----
1
2
5

query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + ( col1 ) FROM tab2 cor0
----
17
31
59

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 + - ( + 44 ) * - col0 AS col1 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT + col1 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + ( + col0 ) + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT ALL + col0 DIV col1 + col2 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL + col0 / col1 + col2 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT ALL + + col1 + + cor0.col1 FROM tab0 cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 76 col2 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT 68 * + tab1.col0 FROM tab1
----
204
4352
5440

onlyif mysql # use DIV operator for integer division
query I rowsort label-2547
SELECT ALL - tab0.col1 DIV + col2 + col1 FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL - tab0.col1 / + col2 + col1 FROM tab0
----
0
84
90

query I rowsort
SELECT DISTINCT 36 + + tab1.col0 * col0 FROM tab1
----
4132
45
6436

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT col0 * col1 + - col2 * col2 FROM tab2
----
-101
-512
3926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * col0 col2 FROM tab0
----
-2040
-2975
-7565

query I rowsort
SELECT - 28 - + col2 * + col2 AS col1 FROM tab1
----
-2944
-3277
-9244

onlyif mysql # use DIV operator for integer division
query I rowsort label-2553
SELECT DISTINCT - col2 * - 6 + + ( + col1 ) DIV col2 FROM tab0 AS cor0
----
103
200
493

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - col2 * - 6 + + ( + col1 ) / col2 FROM tab0 AS cor0
----
103
200
493

query I rowsort
SELECT - 87 + tab2.col2 * + col1 FROM tab2
----
1447
559
750

query I rowsort
SELECT + col1 - col0 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + col0 * col0 + + col1 * + col2 AS col1 FROM tab1 cor0
----
1413
4666
7648

query I rowsort
SELECT DISTINCT - col0 + col0 + - col2 * - col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + 69 + col2 AS col1 FROM tab2
----
107
95
96

query I rowsort
SELECT DISTINCT - col1 * 62 FROM tab0
----
-5332
-5642
-6014

query I rowsort
SELECT DISTINCT - 38 * + col0 AS col2 FROM tab0 AS cor0
----
-1330
-3382
-912

query I rowsort
SELECT - - ( col0 ) + - col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2562
SELECT ALL + 39 DIV col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2562
SELECT ALL + 39 / col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT + 83 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab0
----
73

query I rowsort
SELECT DISTINCT 68 * col1 FROM tab2
----
1156
2108
4012

query I rowsort
SELECT + col2 + + 67 FROM tab0 AS cor0
----
100
149
68

query I rowsort
SELECT DISTINCT col1 * - tab2.col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - + col1 * - 29 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT ALL - col1 + + 48 AS col2 FROM tab2 cor0
----
-11
17
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT - + col0 + - cor0.col2 DIV 46 AS col0 FROM tab0 AS cor0
----
-24
-35
-90

skipif mysql # not compatible
query I rowsort label-2570
SELECT - + col0 + - cor0.col2 / 46 AS col0 FROM tab0 AS cor0
----
-24
-35
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * col1 col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + col2 * - 6 + + col0 FROM tab0 AS cor0
----
-174
-403
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2573
SELECT ALL - + col2 + CAST( NULL AS SIGNED ) / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL - + col2 + CAST ( NULL AS INTEGER ) / + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 35 + - cor0.col1 FROM tab0 AS cor0
----
2924
3094
3298

onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT - + col0 + ( + col0 ) * col1 DIV cor0.col1 + + col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2575
SELECT - + col0 + ( + col0 ) * col1 / cor0.col1 + + col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 * - col2 * col0 + 55 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-24816
-593541
1890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2578
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / cor0.col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - CAST ( NULL AS REAL ) / cor0.col2 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2579
SELECT DISTINCT col0 + + CAST( col0 AS SIGNED ) FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-2579
SELECT DISTINCT col0 + + CAST ( col0 AS INTEGER ) FROM tab1
----
128
160
6

query I rowsort
SELECT ALL + col1 * col2 + - 86 FROM tab2
----
1448
560
751

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + - ( col2 ) * - col2 * col0 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT 75 * - col0 + col2 AS col0 FROM tab2 AS cor0
----
-498
-5824
-5887

onlyif mysql # use DIV operator for integer division
query I rowsort label-2584
SELECT ALL 57 DIV + col0 + tab0.col0 FROM tab0
----
26
36
89

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL 57 / + col0 + tab0.col0 FROM tab0
----
26
36
89

query I rowsort
SELECT DISTINCT ( 67 ) + col1 FROM tab1
----
77
80
93

query I rowsort
SELECT 63 + cor0.col1 * - col2 * + 23 AS col0 FROM tab2 AS cor0
----
-14795
-19188
-35219

query I rowsort
SELECT ( col2 ) + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2588
SELECT + ( 49 ) * - col0 * col0 + - col1 DIV col2 + - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-200761
-313696
-495

skipif mysql # not compatible
query I rowsort label-2588
SELECT + ( 49 ) * - col0 * col0 + - col1 / col2 + - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-200761
-313696
-495

query I rowsort
SELECT + ( col1 ) * col2 * + 40 + + 35 FROM tab1 AS cor0
----
22835
49955
56195

query I rowsort
SELECT DISTINCT + 68 * + col1 + 88 + col1 FROM tab0 AS cor0
----
6022
6367
6781

onlyif mysql # use DIV operator for integer division
query I rowsort label-2591
SELECT DISTINCT + ( cor0.col0 ) + 67 DIV + col0 FROM tab2 AS cor0
----
16
78
79

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT + ( cor0.col0 ) + 67 / + col0 FROM tab2 AS cor0
----
16
78
79

query I rowsort
SELECT - + col1 * + cor0.col0 + col2 AS col0 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + col1 * + col0 + + 3 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
10689
269
7587

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2594
SELECT ALL + CAST( col0 AS SIGNED ) * col2 AS col2 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + CAST ( col0 AS INTEGER ) * col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT ( tab0.col1 ) * + col0 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2596
SELECT + col1 - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2596
SELECT + col1 - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col1 - + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT ALL + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2599
SELECT col2 * 11 * + ( col1 ) + CAST( col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
16900
7144
9234

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2599
SELECT col2 * 11 * + ( col1 ) + CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
16900
7144
9234

query I rowsort
SELECT ALL col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT col0 + 50 * + 74 FROM tab0 cor0
----
3724
3735
3789

query I rowsort
SELECT + + col2 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 + - 63 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
-258105
-403296
-621

query I rowsort
SELECT - ( col1 ) + - col1 - col2 AS col2 FROM tab2 AS cor0
----
-144
-72
-89

query I rowsort
SELECT ALL + col2 + + 76 * - col2 AS col0 FROM tab1 AS cor0
----
-4050
-4275
-7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT DISTINCT - - 25 + 95 DIV - col0 col1 FROM tab1 AS cor0
----
-6
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2606
SELECT DISTINCT - - 25 + 95 / - col0 col1 FROM tab1 AS cor0
----
-6
24

query I rowsort
SELECT DISTINCT - 7 * col2 FROM tab0 AS cor0
----
-231
-574
-7

query I rowsort
SELECT + ( col0 ) + + col0 - + col2 AS col2 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT DISTINCT - + col0 * 73 AS col0 FROM tab1 AS cor0
----
-219
-4672
-5840

query I rowsort
SELECT 59 + - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-6025
-6182
10

query I rowsort
SELECT 14 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2612
SELECT - col2 * 15 DIV + col1 + + col0 FROM tab0
----
19
35
76

skipif mysql # not compatible
query I rowsort label-2612
SELECT - col2 * 15 / + col1 + + col0 FROM tab0
----
19
35
76

query I rowsort
SELECT ALL + + 50 - col2 FROM tab2 AS cor0
----
12
23
24

query I rowsort
SELECT DISTINCT - 38 * - col2 + + 13 FROM tab2 AS cor0
----
1001
1039
1457

query I rowsort
SELECT ALL col2 * - col0 + + ( - col1 ) FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2616
SELECT ALL CAST( - col0 AS SIGNED ) * + col1 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL CAST ( - col0 AS INTEGER ) * + col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + - 74 * - col0 AS col1 FROM tab1 AS cor0
----
222
4736
5920

query I rowsort
SELECT DISTINCT - col1 * col2 + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT 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 ALL + 94 + col2 - 54 col0 FROM tab2 AS cor0
----
66
67
78

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col0 + ( - 81 ) AS col2 FROM tab0 AS cor0
----
1144
495
7840

query I rowsort
SELECT 26 * + tab1.col0 FROM tab1
----
1664
2080
78

query I rowsort
SELECT DISTINCT + 93 * - col0 + - tab1.col1 FROM tab1
----
-305
-5962
-7453

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab1, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col2 * cor0.col1 + - 12 AS col1 FROM tab2 cor0
----
1522
634
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2626
SELECT DISTINCT + col1 + col2 * CAST( col1 AS SIGNED ) * col0 FROM tab0
----
3492
664209
68198

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + col1 + col2 * CAST ( col1 AS INTEGER ) * col0 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT 75 + tab1.col2 FROM tab1
----
129
132
171

query I rowsort
SELECT ALL + + cor0.col0 - - col0 AS col2 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL 92 + col0 * col0 + + col0 AS col2 FROM tab2
----
148
6254
6412

onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT col2 + col1 DIV + 61 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2630
SELECT col2 + col1 / + 61 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT + col2 + col2 + col2 FROM tab2
----
114
78
81

query I rowsort
SELECT ALL + 58 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703

query I rowsort
SELECT ALL col1 - + ( col0 ) AS col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT col2 * 74 * - 22 AS col0 FROM tab2 cor0
----
-42328
-43956
-61864

query I rowsort
SELECT DISTINCT + col1 + 35 * col0 AS col1 FROM tab2 AS cor0
----
276
2782
2789

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2637
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) + - col1 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) + - col1 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - ( + cor0.col2 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col1 * + col0 + + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - - col2 + + 64 FROM tab2 AS cor0
----
102
90
91

query I rowsort
SELECT DISTINCT + cor0.col0 * ( 37 ) AS col2 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT ALL + col2 * + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - + col1 + 9 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
1670
18193
27001

query I rowsort
SELECT ALL - + cor0.col1 + col0 * cor0.col0 * - col0 FROM tab2 AS cor0
----
-374
-474611
-493056

query I rowsort
SELECT - 30 - tab0.col0 * tab0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 1f91f203c445e1b675e904aebdfbf004

query I rowsort
SELECT ALL - tab1.col1 + + tab1.col0 FROM tab1
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2647
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2647
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2648
SELECT ALL + + col2 + + col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL + + col2 + + col1 / - cor0.col0 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT + 93 + + col0 - cor0.col1 * col1 FROM tab0 AS cor0
----
-7279
-8099
-9281

query I rowsort
SELECT ALL - 32 FROM tab1 cor0
----
-32
-32
-32

query I rowsort
SELECT col1 - - ( + col2 ) * ( + col2 * + col0 ) FROM tab1 AS cor0
----
207946
737293
8774

query I rowsort
SELECT ALL - 34 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-6118
-6275
-83

query I rowsort
SELECT DISTINCT - - ( - ( + col0 - - col2 ) ) + - col0 + col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 * col2 col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL 17 * 22 AS col0 FROM tab1 AS cor0
----
374
374
374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2656
SELECT DISTINCT + - CAST( - 33 AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
20
23
7

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + - CAST ( - 33 AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
20
23
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * - col0 + - col0 col0 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT + col2 + - col0 * - col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT col1 + cor0.col1 * ( ( + col0 ) * + col2 ) - + 68 FROM tab0 cor0
----
3424
664141
68130

query I rowsort
SELECT 1 + - cor0.col1 * - 25 AS col2 FROM tab1 AS cor0
----
251
326
651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + + cor0.col1 + - col2 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL + 78 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT + 17 + + col1 FROM tab0 AS cor0
----
103
108
114

query I rowsort
SELECT - col0 * + tab0.col2 * - tab0.col2 AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + col0 * + col2 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT - col0 * ( - tab1.col2 ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - - col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 20 ) + cor0.col1 col2 FROM tab1 cor0
----
30
33
46

query I rowsort
SELECT - 49 + + tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fa7788285c309983693ceba2282f85b

query I rowsort
SELECT ALL + ( tab2.col2 ) * col1 AS col0 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 73 ) + col2 col0 FROM tab0 AS cor0
----
106
155
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-2673
SELECT ALL col2 + - cor0.col1 DIV + col0 col0 FROM tab2 AS cor0
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL col2 + - cor0.col1 / + col0 col0 FROM tab2 AS cor0
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col0 ) * col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + col1 + cor0.col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - - cor0.col1 + col1 * - 67 FROM tab0 AS cor0
----
-5676
-6006
-6402

query I rowsort
SELECT + col0 * col2 - col2 * cor0.col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT DISTINCT cor0.col2 * ( tab1.col1 ) FROM tab1, tab0 AS cor0
----
9 values hashing to e8cccfbaf514cde36022d227725713e6

query I rowsort
SELECT 49 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT col0 DIV + ( col2 * + col1 ) + - col1 DIV - ( - col0 * col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT col0 / + ( col2 * + col1 ) + - col1 / - ( - col0 * col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 75 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-75

query I rowsort
SELECT DISTINCT - col0 + - 89 AS col0 FROM tab2 AS cor0
----
-167
-168
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + 65 col2 FROM tab1 AS cor0
----
75
78
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2684
SELECT ALL + col0 * - col1 + + 9 DIV col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + col0 * - col1 + + 9 / col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT - col0 DIV ( - ( - col2 ) + 26 * 30 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT - col0 / ( - ( - col2 ) + 26 * 30 ) FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2686
SELECT - tab2.col2 DIV ( + tab2.col2 + + col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2686
SELECT - tab2.col2 / ( + tab2.col2 + + col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * - ( + cor0.col2 ) - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 * - col2 col1 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT + 37 FROM tab0, tab2 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 78 * col2 col2 FROM tab1 AS cor0
----
-4209
-4382
-7408

query I rowsort
SELECT DISTINCT + col0 + ( - col2 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT - cor0.col1 - - 44 * - col0 AS col1 FROM tab2 AS cor0
----
-339
-3491
-3493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2693
SELECT ALL + - ( 3 ) + + cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + - ( 3 ) + + cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 50 - + cor0.col1 col0 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT DISTINCT ( 67 ) + col0 FROM tab0 AS cor0
----
102
156
91

query I rowsort
SELECT + - 13 * + col0 + + cor0.col1 * - 62 FROM tab2 AS cor0
----
-2013
-2081
-4672

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be

query I rowsort
SELECT DISTINCT - 20 * 59 FROM tab2 cor0
----
-1180

query I rowsort
SELECT ( col0 * col0 ) - col0 * col0 * 75 FROM tab0
----
-42624
-586154
-90650

query I rowsort
SELECT - 20 * - col0 FROM tab0 AS cor0
----
1780
480
700

query I rowsort
SELECT + col2 * col0 * + col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT + cor0.col0 * 11 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c44b43a805a948be0e3edc787dc7b72e

query I rowsort
SELECT DISTINCT - 41 * - tab0.col0 AS col1 FROM tab0
----
1435
3649
984

query I rowsort
SELECT + col0 * + cor0.col2 + - 95 FROM tab1 AS cor0
----
3553
67
7585

query I rowsort
SELECT ALL + col0 * ( col1 * col2 ) AS col2 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT 20 * + col2 * col2 FROM tab1
----
184320
58320
64980

query I rowsort
SELECT DISTINCT - 66 + col0 FROM tab2
----
-59
12
13

query I rowsort
SELECT ALL - 93 * 31 AS col1 FROM tab2
----
-2883
-2883
-2883

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 + - 32 * cor0.col2 col1 FROM tab0 AS cor0
----
-1048
-24
-2616

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT + col0 * col0 + - cor0.col2 * ( - col1 ) + + cor0.col0 DIV - ( ( + col0 ) ) FROM tab2 AS cor0
----
6886
7617
885

skipif mysql # not compatible
query I rowsort label-2711
SELECT + col0 * col0 + - cor0.col2 * ( - col1 ) + + cor0.col0 / - ( ( + col0 ) ) FROM tab2 AS cor0
----
6886
7617
885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 2 col2 FROM tab1 cor0
----
-2
-2
-2

query I rowsort
SELECT + col0 * cor0.col1 * cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + - 41 * col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT - cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2716
SELECT DISTINCT col1 + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT col1 + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 91 col0 FROM tab1 AS cor0
----
91
91
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2718
SELECT DISTINCT 65 * col0 DIV - 62 AS col1 FROM tab1 AS cor0
----
-3
-67
-83

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT 65 * col0 / - 62 AS col1 FROM tab1 AS cor0
----
-3
-67
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col1 col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2720
SELECT DISTINCT - col0 + - col1 DIV col2 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT - col0 + - col1 / col2 FROM tab0 AS cor0
----
-132
-26
-90

query I rowsort
SELECT - + 86 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1118
2236
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 - col0 col1 FROM tab0
----
-103
-157
-92

query I rowsort
SELECT 33 * cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a5cffa32f627ede3eeafdc956e0a2eea

query I rowsort
SELECT - cor0.col2 + col0 * col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + col1 * ( 18 ) + + col0 AS col2 FROM tab2 AS cor0
----
1140
385
565

query I rowsort
SELECT + col1 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT + + col1 * col2 * col2 - + col0 DIV + col0 col2 FROM tab1 AS cor0
----
119807
32489
75815

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2727
SELECT + + col1 * col2 * col2 - + col0 / + col0 col2 FROM tab1 AS cor0
----
119807
32489
75815

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2728
SELECT ALL cor0.col2 + + CAST( NULL AS SIGNED ) * cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL cor0.col2 + + CAST ( NULL AS INTEGER ) * cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col0 - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col1 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - + col1 + - ( col0 ) * col0 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2733
SELECT col0 - + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT col0 - + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + 70 FROM tab2 cor0
----
101
129
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT ALL + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2735
SELECT ALL + col2 / + col2 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - col1 * - col1 - cor0.col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT - - col0 + 33 AS col2 FROM tab2 AS cor0
----
111
112
40

query I rowsort
SELECT ALL - col1 * + col0 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT 33 * cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 739b1604452f62ca3cad11617547075c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 85 * 83 + - col1 col1 FROM tab0
----
-169406
-247022
-627986

query I rowsort
SELECT ALL - col0 + ( col0 ) * + ( col1 + + col2 ) AS col2 FROM tab1 AS cor0
----
237
4224
8640

query I rowsort
SELECT cor0.col2 - + 27 AS col1 FROM tab1 AS cor0
----
27
30
69

query I rowsort
SELECT - col2 + 81 AS col1 FROM tab2 AS cor0
----
43
54
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - cor0.col0 ) col0 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT ALL + - ( - col0 ) - col0 * col1 DIV + col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL + - ( - col0 ) - col0 * col1 / + col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + + col1 * + col1 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2747
SELECT DISTINCT + ( - col2 ) * col2 + CAST( NULL AS SIGNED ) * + col1 * col1 + 88 * col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT + ( - col2 ) * col2 + CAST ( NULL AS INTEGER ) * + col1 * col1 + 88 * col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col2 + col0 * - cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
-119626
-50996
-5832

query I rowsort
SELECT ALL - + col2 + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - cor0.col1 + - 77 FROM tab0 AS cor0
----
-163
-168
-174

query I rowsort
SELECT - 71 FROM tab1, tab1 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT 78 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - col2 + tab2.col0 * 84 FROM tab2
----
561
6526
6598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
SELECT - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2754
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - - tab2.col2 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL 24 + + 43 * col2 FROM tab0
----
1443
3550
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col2 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c07fb58c935d7dd3a559c80465f90463

query I rowsort
SELECT 18 + + cor0.col0 FROM tab0 cor0
----
107
42
53

query I rowsort
SELECT ALL + ( col1 ) + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT DISTINCT col2 + col2 + col1 DIV cor0.col0 col2 FROM tab2 cor0
----
52
58
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT col2 + col2 + col1 / cor0.col0 col2 FROM tab2 cor0
----
52
58
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 * col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2763
SELECT CAST( - col0 AS SIGNED ) + + col1 FROM tab0 cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-2763
SELECT CAST ( - col0 AS INTEGER ) + + col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - 71 + + col2 FROM tab2 cor0
----
-33
-44
-45

query I rowsort
SELECT DISTINCT + 23 * + col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1245
1375
2288

query I rowsort
SELECT - 32 + col1 AS col0 FROM tab0
----
54
59
65

skipif mysql # not compatible
query I rowsort
SELECT col2 + col0 * CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - col1 + cor0.col0 * 91 AS col2 FROM tab0 AS cor0
----
2098
3088
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 col0 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT col1 * + col0 + + col1 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL + + col0 * 41 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT + col1 + + 30 FROM tab1 AS cor0
----
40
43
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2773
SELECT DISTINCT col0 * CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT col0 * CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( - col0 AS REAL ) * + col0 + - col1 + col1 AS col0 FROM tab2
----
343
474552
493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT DISTINCT - - col2 DIV ( + 97 ) + - col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - - col2 / ( + 97 ) + - col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - col1 * - 39 AS col1 FROM tab1 AS cor0
----
1014
390
507

query I rowsort
SELECT DISTINCT col0 * - 74 + + col1 FROM tab1 AS cor0
----
-196
-4726
-5907

onlyif mysql # use DIV operator for integer division
query I rowsort label-2778
SELECT ALL + - col2 + + cor0.col2 DIV + cor0.col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL + - col2 + + cor0.col2 / + cor0.col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT + 45 * + col1 + 73 AS col1 FROM tab1 AS cor0
----
1243
523
658

query I rowsort
SELECT DISTINCT - - col0 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col1 + + col2 * cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
1128
18922
649431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + col2 col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT - col1 DIV - col1 + - 86 col0 FROM tab2 AS cor0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2783
SELECT - col1 / - col1 + - 86 col0 FROM tab2 AS cor0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + - cor0.col2 col1 FROM tab0 AS cor0
----
-16
33
65

query I rowsort
SELECT - col1 * - col2 + 83 AS col0 FROM tab2 AS cor0
----
1617
729
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col2 - 11 col2 FROM tab0 AS cor0
----
-46
-7309
-803

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( - col2 AS REAL ) * col1 * - ( - col1 ) FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT + col2 * col2 + col2 AS col0 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT + col0 + + col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - 86 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT 34 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT + col1 * - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col0 FROM tab0, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817

query I rowsort
SELECT DISTINCT col2 * 51 AS col2 FROM tab0 AS cor0
----
1683
4182
51

query I rowsort
SELECT ALL - col1 + 39 * col1 FROM tab1
----
380
494
988

query I rowsort
SELECT DISTINCT - 48 + - 48 FROM tab2
----
-96

query I rowsort
SELECT DISTINCT 10 + col1 FROM tab0
----
101
107
96

query I rowsort
SELECT DISTINCT + ( + 53 ) FROM tab2, tab1, tab2 AS cor0
----
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT + col2 + - col2 * col2 DIV col1 FROM tab0 AS cor0
----
1
21
9

skipif mysql # not compatible
query I rowsort label-2800
SELECT + col2 + - col2 * col2 / col1 FROM tab0 AS cor0
----
1
21
9

query I rowsort
SELECT ALL 27 FROM tab2, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 12 ) col2 FROM tab1
----
12
12
12

query I rowsort
SELECT ALL + + col0 * col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) * col0 + - 67 + - col0 col1 FROM tab2 AS cor0
----
-2173
-263
-3148

query I rowsort
SELECT ( + col1 * - col2 ) AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 69 + col0 AS col0 FROM tab2 AS cor0
----
147
148
76

query I rowsort
SELECT - - col1 * + col0 + - cor0.col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT + 92 AS col0 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + 65 + - cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
-1183
-1339
-505

query I rowsort
SELECT ALL + 63 - - col2 AS col0 FROM tab0
----
145
64
96

query I rowsort
SELECT ALL ( - col2 * + col2 ) AS col0 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT DISTINCT cor0.col0 DIV - cor0.col0 FROM tab0, tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT cor0.col0 / - cor0.col0 FROM tab0, tab2 AS cor0
----
-1

query I rowsort
SELECT 47 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

query I rowsort
SELECT + 72 + col2 * + col1 * - 62 FROM tab2 cor0
----
-39980
-51822
-95036

query I rowsort
SELECT 47 * 51 FROM tab2, tab2 AS cor0
----
9 values hashing to e146be5d7851e73c83cccb5419c297d6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2816
SELECT ALL col1 * - CAST( NULL AS SIGNED ) * + tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) * + tab2.col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-1
-33
-82

query I rowsort
SELECT ALL col1 * + ( col1 ) * col2 AS col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + col1 * 25 FROM tab0 cor0
----
2150
2275
2425

query I rowsort
SELECT 87 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT col1 + + col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - ( cor0.col2 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - col1 * - col0 + - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT + col2 + + col1 * + col1 * - col2 AS col1 FROM tab1
----
-16128
-36450
-5643

query I rowsort
SELECT + 1 + - col2 - tab2.col0 * col0 FROM tab2
----
-6109
-6278
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT ALL - ( col2 ) + ( col2 ) DIV + col1 FROM tab1
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL - ( col2 ) + ( col2 ) / + col1 FROM tab1
----
-52
-52
-89

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + 8 AS col0 FROM tab1 AS cor0
----
-1
-4088
-6392

onlyif mysql # use DIV operator for integer division
query I rowsort label-2828
SELECT ALL + + col0 * col2 * col1 + col1 - col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
3589
664210
68200

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + + col0 * col2 * col1 + col1 - col1 / - col2 AS col1 FROM tab0 AS cor0
----
3589
664210
68200

query I rowsort
SELECT cor0.col1 + + 46 FROM tab2 cor0
----
105
63
77

query I rowsort
SELECT ALL col1 + - col0 + - col2 FROM tab1 AS cor0
----
-111
-163
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 97 + cor0.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-11
-6
0

query I rowsort
SELECT ALL - col1 + + 31 FROM tab0 AS cor0
----
-55
-60
-66

query I rowsort
SELECT col1 + - 3 FROM tab1
----
10
23
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col0 ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - cor0.col1 * ( col1 ) + + col1 * - col2 FROM tab2 AS cor0
----
-1798
-5015
-935

onlyif mysql # use DIV operator for integer division
query I rowsort label-2836
SELECT DISTINCT - col1 + - ( + col1 ) DIV - col1 + ( - 19 ) FROM tab0 AS cor0
----
-104
-109
-115

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT - col1 + - ( + col1 ) / - col1 + ( - 19 ) FROM tab0 AS cor0
----
-104
-109
-115

query I rowsort
SELECT + - cor0.col1 + 94 FROM tab2 cor0
----
35
63
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT col2 DIV + ( + 9 ) + col2 AS col2 FROM tab0 AS cor0
----
1
36
91

skipif mysql # not compatible
query I rowsort label-2838
SELECT col2 / + ( + 9 ) + col2 AS col2 FROM tab0 AS cor0
----
1
36
91

query I rowsort
SELECT DISTINCT - + col2 * - ( cor0.col2 ) + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + col1 - + 81 FROM tab0 AS cor0
----
10
16
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2841
SELECT ALL + CAST( + col0 * + col1 AS SIGNED ) FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + CAST ( + col0 * + col1 AS INTEGER ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT 52 * col2 FROM tab2
----
1352
1404
1976

query I rowsort
SELECT - 66 FROM tab2 cor0
----
-66
-66
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2844
SELECT ALL cor0.col0 DIV ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL cor0.col0 / ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2845
SELECT + CAST( NULL AS SIGNED ) + - col2 / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT + CAST ( NULL AS INTEGER ) + - col2 / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 + col1 * - cor0.col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + + cor0.col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 - - cor0.col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + ( + cor0.col0 ) + - cor0.col1 AS col1 FROM tab2 cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - 15 * col2 + cor0.col0 AS col1 FROM tab2 cor0
----
-312
-398
-491

query I rowsort
SELECT ALL + col2 - + col1 * 37 AS col0 FROM tab0 AS cor0
----
-3149
-3285
-3588

query I rowsort
SELECT DISTINCT - + 97 * - cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
130271
21049
446394

query I rowsort
SELECT ALL - 70 + cor0.col2 + - col2 * 15 FROM tab2 AS cor0
----
-434
-448
-602

query I rowsort
SELECT 46 * + col2 AS col0 FROM tab1
----
2484
2622
4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col2 FROM tab0, tab1, tab0 AS cor0
----
94

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + col1 * - ( - col1 ) AS col2 FROM tab2 AS cor0
----
-2603
-5952
912

query I rowsort
SELECT col2 - col0 * ( cor0.col2 ) FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT + + cor0.col2 * - col2 + col2 + col0 AS col2 FROM tab2 AS cor0
----
-1327
-572
-695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + 44 * + col2 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT + 83 + col2 + col0 AS col0 FROM tab0 AS cor0
----
119
140
254

query I rowsort
SELECT 3 AS col1 FROM tab1 cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col0 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT - + 59 * - col2 AS col0 FROM tab0 AS cor0
----
1947
4838
59

query I rowsort
SELECT DISTINCT - 41 AS col1 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT - - col0 * col1 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT col1 + ( 66 ) FROM tab2 cor0
----
125
83
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - + 24 col1 FROM tab1 AS cor0
----
30
33
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2870
SELECT + col2 + CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2870
SELECT + col2 + CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + 89 AS col1 FROM tab2 cor0
----
115
116
127

query I rowsort
SELECT + 19 * col0 + - 17 * col1 + col0 FROM tab1
----
-382
1110
1379

query I rowsort
SELECT col0 * col2 + 38 * col0 FROM tab0
----
10680
1365
1704

query I rowsort
SELECT ALL + 76 * + tab0.col0 + + 43 FROM tab0
----
1867
2703
6807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * col2 col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2876
SELECT ALL - CAST( NULL AS SIGNED ) / + 21 + col0 * 24 * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - CAST ( NULL AS INTEGER ) / + 21 + col0 * 24 * - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 46 ) AS col1 FROM tab0 AS cor0
----
46

query I rowsort
SELECT + + 28 + col0 AS col2 FROM tab0 AS cor0
----
117
52
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2879
SELECT ALL + ( col0 ) * + col0 + + CAST( NULL AS SIGNED ) / + 73 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL + ( col0 ) * + col0 + + CAST ( NULL AS INTEGER ) / + 73 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2880
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 88 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 88 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2882
SELECT DISTINCT ( col1 ) DIV - cor0.col0 + - 98 * + col2 * col2 AS col0 FROM tab0 AS cor0
----
-100
-106725
-658953

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT ( col1 ) / - cor0.col0 + - 98 * + col2 * col2 AS col0 FROM tab0 AS cor0
----
-100
-106725
-658953

query I rowsort
SELECT DISTINCT 82 + col0 * col2 AS col1 FROM tab2 AS cor0
----
2110
271
3084

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2884
SELECT DISTINCT - CAST( 70 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
-1190
-2170
-4130

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT - CAST ( 70 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-1190
-2170
-4130

query I rowsort
SELECT ALL - col0 * + 83 + col0 * col1 AS col1 FROM tab0 AS cor0
----
490
712
72

query I rowsort
SELECT tab1.col2 * + col1 + ( col2 ) * col2 FROM tab1
----
10464
3819
4320

query I rowsort
SELECT DISTINCT + tab1.col2 * + tab1.col1 + - 54 + + col1 AS col2 FROM tab1
----
1207
1376
526

query I rowsort
SELECT ALL tab0.col1 + 5 FROM tab0
----
102
91
96

query I rowsort
SELECT 19 + + cor0.col0 FROM tab0 AS cor0
----
108
43
54

query I rowsort
SELECT + col1 - - 64 FROM tab1
----
74
77
90

query I rowsort
SELECT ALL + tab1.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT ( + col1 + col2 ) FROM tab2
----
55
58
85

query I rowsort
SELECT ( - col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 64 - col1 AS col2 FROM tab1
----
38
51
54

query I rowsort
SELECT - - cor0.col1 + + ( col2 ) * - 0 AS col2 FROM tab2 cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 16 col1 FROM tab1 AS cor0
----
16

query I rowsort
SELECT ALL - 62 + + 82 * col1 AS col0 FROM tab1 cor0
----
1004
2070
758

query I rowsort
SELECT DISTINCT - 62 + ( cor0.col2 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
1382
614
667

query I rowsort
SELECT + 5 + - 10 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT ALL cor0.col2 + 86 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 663ef4a9a949daee5781984a8ead2194

query I rowsort
SELECT DISTINCT - tab2.col2 * + 26 AS col2 FROM tab2, tab1, tab0 AS cor0
----
-676
-702
-988

query I rowsort
SELECT tab0.col1 * - 73 FROM tab0, tab1 AS cor0
----
9 values hashing to 370736149307d7a877dd5a15bf2f9690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 * - ( - col1 + - col1 ) col2 FROM tab1
----
1140
2496
2808

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2904
SELECT ALL - col2 * CAST( + 45 AS SIGNED ) FROM tab0 cor0
----
-1485
-3690
-45

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL - col2 * CAST ( + 45 AS INTEGER ) FROM tab0 cor0
----
-1485
-3690
-45

query I rowsort
SELECT DISTINCT - tab1.col2 * 97 FROM tab1
----
-5238
-5529
-9312

query I rowsort
SELECT + 95 + + col1 AS col1 FROM tab1 AS cor0
----
105
108
121

query I rowsort
SELECT - - 88 * + col1 - col0 * - ( + col0 + - col1 ) AS col0 FROM tab0 AS cor0
----
6080
6366
7830

query I rowsort
SELECT 1 * col1 - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( tab1.col2 * + col1 ) FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2910
SELECT + - CAST( col2 AS SIGNED ) - col1 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-2910
SELECT + - CAST ( col2 AS INTEGER ) - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + ( 24 ) + - col2 AS col0 FROM tab0 AS cor0
----
-58
-9
23

query I rowsort
SELECT + + 3 - - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2067
3398
8102

onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT - + 35 * - col2 + + col2 DIV - 2 + - cor0.col1 FROM tab1 cor0
----
1837
1957
3299

skipif mysql # not compatible
query I rowsort label-2913
SELECT - + 35 * - col2 + + col2 / - 2 + - cor0.col1 FROM tab1 cor0
----
1837
1957
3299

query I rowsort
SELECT DISTINCT - ( + col2 ) * 13 FROM tab0
----
-1066
-13
-429

query I rowsort
SELECT + - cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 * col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 13 * - col0 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT - cor0.col2 * + col2 FROM tab2 cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * 3 col2 FROM tab1 AS cor0
----
-162
-171
-288

onlyif mysql # use DIV operator for integer division
query I rowsort label-2921
SELECT + + col2 DIV + cor0.col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2921
SELECT + + col2 / + cor0.col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - - col0 + 47 + + col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
212
3759
7807

query I rowsort
SELECT col1 + + 51 AS col0 FROM tab2 AS cor0
----
110
68
82

query I rowsort
SELECT ALL + col1 * 8 FROM tab1
----
104
208
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2925
SELECT col1 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2925
SELECT col1 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - col0 + + cor0.col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - col0 * 7 FROM tab1 AS cor0
----
21
448
560

query I rowsort
SELECT ALL + col1 * col2 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT ALL + col2 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col1 + cor0.col2 + + col1 * - col0 * - col1 AS col0 FROM tab2 cor0
----
22886
271603
6785

query I rowsort
SELECT 84 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT + col2 * - cor0.col2 * + col2 + + col0 DIV col2 FROM tab1 AS cor0
----
-157464
-185192
-884736

skipif mysql # not compatible
query I rowsort label-2932
SELECT + col2 * - cor0.col2 * + col2 + + col0 / col2 FROM tab1 AS cor0
----
-157464
-185192
-884736

query I rowsort
SELECT ALL + - col2 * 95 AS col1 FROM tab1 AS cor0
----
-5130
-5415
-9120

query I rowsort
SELECT ALL cor0.col1 * 42 + - cor0.col0 * col0 + 45 FROM tab2 cor0
----
-3561
-5482
1298

onlyif mysql # use DIV operator for integer division
query I rowsort label-2935
SELECT + 1 DIV - cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT + 1 / - cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + tab2.col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - + ( 66 ) * - col0 FROM tab1 cor0
----
198
4224
5280

query I rowsort
SELECT + ( 35 ) FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT ALL + + 45 AS col0 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT - + 47 * - col2 AS col0 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT DISTINCT + + 55 AS col1 FROM tab1 AS cor0
----
55

query I rowsort
SELECT col1 * 11 AS col1 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 AS col0 FROM tab0 cor0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - col0 * + col0 - ( + 27 ) FROM tab1
----
-36
-4123
-6427

query I rowsort
SELECT ALL - tab1.col0 * col0 FROM tab1
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2947
SELECT + ( col1 ) + - col2 * + 30 + + cor0.col0 * CAST( NULL AS SIGNED ) * 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2947
SELECT + ( col1 ) + - col2 * + 30 + + cor0.col0 * CAST ( NULL AS INTEGER ) * 95 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + col1 * + col1 * - ( col1 + 10 ) AS col2 FROM tab1 AS cor0
----
-1936
-24333
-3807

query I rowsort
SELECT - + ( col2 ) + col2 + ( col2 * col2 + - cor0.col2 ) FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL + + 19 * col0 + + 58 FROM tab2 AS cor0
----
1540
1559
191

query I rowsort
SELECT - + col0 * cor0.col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT DISTINCT 21 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
7

skipif mysql # not compatible
query I rowsort label-2953
SELECT DISTINCT 21 / + col0 AS col0 FROM tab1 AS cor0
----
0
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2954
SELECT ALL col1 + + tab2.col1 DIV col0 FROM tab2
----
17
35
59

skipif mysql # not compatible
query I rowsort label-2954
SELECT ALL col1 + + tab2.col1 / col0 FROM tab2
----
17
35
59

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT ( - col0 ) BETWEEN - col1 AND NULL
----
10
13

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( col2 + tab2.col2 * - col1 )
----

query I rowsort
SELECT col0 + + col1 - - col0 * col1 FROM tab2
----
1439
255
4739

query I rowsort
SELECT tab0.col0 * col2 + + col1 * - tab0.col0 AS col1 FROM tab0 WHERE - col0 * col0 <> NULL
----

query I rowsort
SELECT DISTINCT - tab2.col1 * - col0 + - ( - tab2.col0 ) * col1 AS col2 FROM tab2
----
2686
434
9204

query I rowsort
SELECT ALL + 81 + col1 FROM tab0
----
167
172
178

query I rowsort
SELECT ALL + 96 - - col2 AS col1 FROM tab1
----
150
153
192

query I rowsort
SELECT + 12 + - col2 + + col2 FROM tab0
----
12
12
12

query I rowsort
SELECT DISTINCT + col1 + + col0 * + 60 AS col1 FROM tab0 AS cor0
----
1526
2197
5431

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab1 cor0, tab0 cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT DISTINCT 88 * + col0 * col1 + col0 FROM tab0
----
181656
298795
712801

onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT ALL + col1 DIV col2 + + col0 DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL + col1 / col2 + + col0 / col0 FROM tab1
----
1
1
1

query I rowsort
SELECT col1 * col0 * - tab1.col2 - tab1.col1 FROM tab1 WHERE ( NULL ) IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 IN ( + col1 + + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2969
SELECT DISTINCT - col1 DIV + col0 + + col1 * + col0 col1 FROM tab1
----
1040
640
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT - col1 / + col0 + + col1 * + col0 col1 FROM tab1
----
1040
640
70

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= col0 * col2
----

query I rowsort
SELECT ALL col2 - - tab0.col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col2 + col1 )
----

query I rowsort
SELECT DISTINCT + col0 * col0 * - col0 - col2 AS col0 FROM tab0
----
-13857
-42876
-705051

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN ( NULL ) AND + col2 * + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2975
SELECT ALL col1 DIV col1 + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL col1 / col1 + col1 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT + tab1.col2 * col0 + col1 * col1 AS col0 FROM tab1 WHERE NULL NOT IN ( + col1 * col1 + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2977
SELECT - col1 + - tab1.col2 DIV col1 FROM tab1
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-2977
SELECT - col1 + - tab1.col2 / col1 FROM tab1
----
-15
-20
-28

query I rowsort
SELECT ALL tab2.col0 + col2 * + tab2.col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL ( col1 ) * col0 AS col0 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2981
SELECT DISTINCT + CAST( tab0.col0 AS SIGNED ) FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT + CAST ( tab0.col0 AS INTEGER ) FROM tab0
----
24
35
89

query I rowsort
SELECT ALL ( - 11 ) AS col2 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT ALL 69 * + col2 * - col1 FROM tab1
----
-39330
-86112
-96876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 37 ) * col1 col1 FROM tab1 AS cor0
----
370
481
962

query I rowsort
SELECT + 52 FROM tab0, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT ALL + col0 DIV 42 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL + col0 / 42 AS col2 FROM tab0
----
0
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2987
SELECT - CAST( col2 AS SIGNED ) * - col2 * cor0.col0 col2 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2987
SELECT - CAST ( col2 AS INTEGER ) * - col2 * cor0.col0 col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 73 AS col0 FROM tab0 AS cor0
----
73
73
73

query I rowsort
SELECT col2 * col1 AS col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2991
SELECT ALL + col0 * col2 DIV col1 - - col0 FROM tab1 AS cor0
----
428
670
9

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL + col0 * col2 / col1 - - col0 FROM tab1 AS cor0
----
428
670
9

query I rowsort
SELECT ALL - 39 - - col1 FROM tab2 AS cor0
----
-22
-8
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - cor0.col0 * cor0.col0 col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT - + col1 * 70 + col2 FROM tab1 AS cor0
----
-1766
-643
-814

query I rowsort
SELECT - - col0 + + 70 * col2 FROM tab1 AS cor0
----
3783
4054
6800

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col0 + 33 AS col1 FROM tab1 AS cor0
----
-31
-47
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-2998
SELECT col0 DIV - col1 + + col0 DIV - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-2998
SELECT col0 / - col1 + + col0 / - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + 21 col1 FROM tab0 AS cor0
----
110
45
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( col1 ) + col0 col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab1, tab2 AS cor0
----
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3002
SELECT DISTINCT + tab2.col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT + tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 * + ( cor0.col1 ) FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col2 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - col1 + col1 * col2 * - col1 AS col1 FROM tab0 cor0
----
-244154
-679133
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 86 + - col2 col0 FROM tab1 AS cor0
----
-23
19
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3007
SELECT ALL - cor0.col1 * CAST( ( + col2 ) AS SIGNED ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - cor0.col1 * CAST ( ( + col2 ) AS INTEGER ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + col2 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + + col2 * - 36 FROM tab1 AS cor0
----
-1944
-2052
-3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT ALL + - col1 * + cor0.col0 + col0 DIV col2 col2 FROM tab1 AS cor0
----
-1040
-639
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + - col1 * + cor0.col0 + col0 / col2 col2 FROM tab1 AS cor0
----
-1040
-639
-78

query I rowsort
SELECT + col1 + - 0 AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 + - cor0.col2 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT + - col2 * + 48 + + col1 AS col2 FROM tab1 AS cor0
----
-2566
-2726
-4595

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab1 cor0
----
-52

query I rowsort
SELECT + - 35 + + col2 + - col2 AS col1 FROM tab1 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( - col2 ) + col1 * col1 col2 FROM tab2
----
-2713
1453
772

query I rowsort
SELECT + col0 + 87 AS col1 FROM tab0
----
111
122
176

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab2 cor3
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9

query I rowsort
SELECT - 35 * col2 AS col1 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT ( col2 * + col1 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT col0 * + 85 AS col1 FROM tab0
----
2040
2975
7565

query I rowsort
SELECT ALL + ( col1 + col0 ) FROM tab2
----
137
38
96

query I rowsort
SELECT - 45 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1293
-1449
-615

query I rowsort
SELECT - 4 * + col2 AS col0 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT + 62 * col1 * - col0 FROM tab0 AS cor0
----
-127968
-210490
-502138

query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - - col1 - col2 FROM tab2 cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3030
SELECT ALL + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + - col2 + - ( col2 ) - col1 FROM tab1 cor0
----
-124
-134
-205

onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT DISTINCT + col0 + - col2 DIV 15 FROM tab2 AS cor0
----
6
77

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + col0 + - col2 / 15 FROM tab2 AS cor0
----
6
77

query I rowsort
SELECT ALL + - col1 * 64 * col2 + cor0.col0 FROM tab2 AS cor0
----
-41265
-53561
-98098

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3035
SELECT + + col0 + - CAST( col2 AS SIGNED ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif mysql # not compatible
query I rowsort label-3035
SELECT + + col0 + - CAST ( col2 AS INTEGER ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3036
SELECT DISTINCT col0 + cor0.col0 DIV col0 - - col0 * col2 AS col1 FROM tab2 AS cor0
----
197
2107
3082

skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT col0 + cor0.col0 / col0 - - col0 * col2 AS col1 FROM tab2 AS cor0
----
197
2107
3082

query I rowsort
SELECT DISTINCT + 72 * - cor0.col1 + col0 FROM tab0 AS cor0
----
-6168
-6463
-6949

query I rowsort
SELECT + - 31 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-1050
-2670
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col1 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab2.col0 ) col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + - col2 - 89 * + col0 FROM tab2 AS cor0
----
-650
-6968
-7069

onlyif mysql # use DIV operator for integer division
query I rowsort label-3043
SELECT + col1 DIV - 23 + col1 AS col2 FROM tab0 AS cor0
----
83
88
93

skipif mysql # not compatible
query I rowsort label-3043
SELECT + col1 / - 23 + col1 AS col2 FROM tab0 AS cor0
----
83
88
93

query I rowsort
SELECT + col2 * cor0.col0 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + - ( col1 ) AS col2 FROM tab0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT + col2 * - col1 + + col0 * col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif mysql # not compatible
query I rowsort label-3046
SELECT + col2 * - col1 + + col0 * col0 / col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - - col2 * col1 * - col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3048
SELECT + cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3048
SELECT + cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - cor0.col2 + col1 * col0 * - col2 FROM tab2 AS cor0
----
-119678
-51072
-5886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * + col0 col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT col2 + - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + col2 * col1 + + col0 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT + col0 DIV + cor0.col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3053
SELECT + col0 / + cor0.col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - col2 * cor0.col0 * - col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - cor0.col2 * + col0 + col1 * + col2 * col1 FROM tab1 AS cor0
----
2052
36342
8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL tab1.col0 - + col1 AS col1 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + col0 * col2 - + col0 col2 FROM tab1
----
1563
4154
8848

onlyif mysql # use DIV operator for integer division
query I rowsort label-3059
SELECT ALL - cor0.col2 DIV + col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL - cor0.col2 / + col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT + + col1 * + col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3061
SELECT DISTINCT - + col0 DIV + 42 AS col1 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT - + col0 / + 42 AS col1 FROM tab2 cor0
----
-1
0

query I rowsort
SELECT + tab0.col2 + + col1 * - ( - col2 ) * col1 FROM tab0
----
244101
679124
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - - col1 * col1 + - 39 AS col1 FROM tab1 AS cor0
----
130
61
637

query I rowsort
SELECT + col2 * + ( cor0.col0 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col2 + col1 * - 91 FROM tab0 cor0
----
-7793
-8199
-8826

query I rowsort
SELECT cor0.col0 + + 8 AS col1 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT ALL + col0 * col2 + 8 + col0 FROM tab1 AS cor0
----
173
3720
7768

query I rowsort
SELECT ALL + col0 * - ( cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + - ( col2 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col2 + + col0 * + col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + - col0 * + 89 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2103
-3114
-7839

query I rowsort
SELECT + 52 * + col1 FROM tab2 cor0
----
1612
3068
884

query I rowsort
SELECT DISTINCT + + col0 * ( + col0 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT + 16 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - tab1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT - tab2.col2 + col2 DIV col1 AS col0 FROM tab2
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-3077
SELECT - tab2.col2 + col2 / col1 AS col0 FROM tab2
----
-26
-27
-36

query I rowsort
SELECT - col0 + tab0.col2 * + col0 AS col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT DISTINCT + col0 + + col1 * + 5 FROM tab2 AS cor0
----
162
164
373

query I rowsort
SELECT + - col1 + - col0 + col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col0 * - col2 + ( 83 + - col2 ) FROM tab2 AS cor0
----
2085
245
3047

query I rowsort
SELECT DISTINCT col0 + col1 * - cor0.col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 + col0 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT ALL 67 * col2 + col0 FROM tab0 AS cor0
----
102
2235
5583

query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab0 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 + col0 * 65 col2 FROM tab1 AS cor0
----
262
4227
5267

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3087
SELECT ( - col1 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT ( - col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3088
SELECT DISTINCT + cor0.col1 + cor0.col1 DIV col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + cor0.col1 + cor0.col1 / col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL cor0.col2 + + col1 * - col0 AS col2 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL tab0.col1 * - cor0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to aeb03985fecddc38e7359124808a5cdd

query I rowsort
SELECT 23 + - tab1.col1 FROM tab1
----
-3
10
13

query I rowsort
SELECT + 90 + + col0 * col1 FROM tab0
----
2154
3485
8189

query I rowsort
SELECT col0 * - col2 * tab0.col1 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT col1 + col0 * + ( - tab2.col1 ) FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT - + col0 + + col1 * col2 * - col1 + - col2 FROM tab1 AS cor0
----
-16400
-36561
-5821

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
1

query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
19

query I rowsort
SELECT ALL - col2 + tab1.col2 * tab1.col2 FROM tab1
----
2862
3192
9120

query I rowsort
SELECT 12 AS col0 FROM tab1, tab2, tab1 cor0, tab0
----
81 values hashing to c60b9398e29d6382e0d15363f9325811

query I rowsort
SELECT ALL 25 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - col2 + + 3 + 4 AS col1 FROM tab1 AS cor0
----
-47
-50
-89

query I rowsort
SELECT DISTINCT + 18 + - col0 AS col1 FROM tab2
----
-60
-61
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-3103
SELECT ALL col1 DIV + 35 + tab1.col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL col1 / + 35 + tab1.col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3104
SELECT DISTINCT + ( 78 ) + + col2 DIV tab2.col0 AS col1 FROM tab2
----
78
81

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT + ( 78 ) + + col2 / tab2.col0 AS col1 FROM tab2
----
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3105
SELECT ALL + CAST( NULL AS SIGNED ) + + 12 * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL + CAST ( NULL AS INTEGER ) + + 12 * + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 91 + + 6 * col0 FROM tab0
----
119
443
53

query I rowsort
SELECT 54 * col0 AS col0 FROM tab0
----
1296
1890
4806

query I rowsort
SELECT DISTINCT - + 73 * 90 FROM tab2 AS cor0
----
-6570

query I rowsort
SELECT cor0.col0 * cor0.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8ec1e5b752a6eed5f6e85ed78b46af3c

query I rowsort
SELECT ALL - - ( col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col1 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT + col2 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ( 54 * col2 ) + + col2 * 97 + col0 FROM tab0
----
12471
186
5007

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3114
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 88 + tab2.col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 88 + tab2.col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 + + col2 + col1 * - cor0.col2 FROM tab0 cor0
----
-2719
-7289
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT 91 + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-3116
SELECT 91 + col2 / + col2 AS col1 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3117
SELECT ALL col0 DIV + cor0.col1 + + 70 AS col1 FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL col0 / + cor0.col1 + + 70 AS col1 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - - 89 * cor0.col1 - 45 AS col0 FROM tab0 AS cor0
----
7609
8054
8588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - + cor0.col0 col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT col1 + col0 * ( - col0 ) + col1 FROM tab2 AS cor0
----
-5966
-6207
13

query I rowsort
SELECT ALL + + 46 + cor0.col1 AS col0 FROM tab0 AS cor0
----
132
137
143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3122
SELECT DISTINCT + 42 * col2 + + CAST( NULL AS SIGNED ) * - cor0.col1 - - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT + 42 * col2 + + CAST ( NULL AS INTEGER ) * - cor0.col1 - - col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 98 * cor0.col1 - 53 * col0 FROM tab1 AS cor0
----
-2707
-4372
-5514

query I rowsort
SELECT - 67 + - col1 AS col2 FROM tab0 AS cor0
----
-153
-158
-164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3125
SELECT CAST( NULL AS SIGNED ) + - col0 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT CAST ( NULL AS INTEGER ) + - col0 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col0 col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT - + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT - + CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 4 + + col2 * - col2 FROM tab2 AS cor0
----
-1519
-732
-750

query I rowsort
SELECT ALL + + 33 AS col1 FROM tab2 AS cor0
----
33
33
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3130
SELECT DISTINCT - 87 DIV + cor1.col2 AS col1 FROM tab2, tab2 cor0, tab0 cor1, tab1 AS cor2
----
-1
-2
-87

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT - 87 / + cor1.col2 AS col1 FROM tab2, tab2 cor0, tab0 cor1, tab1 AS cor2
----
-1
-2
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT - 92 * col0 + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-640
-7176
-7268

skipif mysql # not compatible
query I rowsort label-3131
SELECT - 92 * col0 + col1 / col0 AS col1 FROM tab2 AS cor0
----
-640
-7176
-7268

query I rowsort
SELECT ALL - + 66 + col1 FROM tab1 AS cor0
----
-40
-53
-56

query I rowsort
SELECT + - 26 * + col1 * - col1 FROM tab0 AS cor0
----
192296
215306
244634

query I rowsort
SELECT ALL - 20 AS col2 FROM tab2 cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + - ( - ( col2 ) ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - 88 * - col0 FROM tab2 AS cor0
----
616
6864
6952

onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT ALL 87 DIV 47 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL 87 / 47 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 16 + col0 AS REAL ) FROM tab1
----
-48
-64
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT - col1 + ( + 81 ) DIV - col1 - ( col2 ) FROM tab1 cor0
----
-115
-75
-83

skipif mysql # not compatible
query I rowsort label-3139
SELECT - col1 + ( + 81 ) / - col1 - ( col2 ) FROM tab1 cor0
----
-115
-75
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3140
SELECT col0 + - CAST( - 34 + - col1 AS SIGNED ) * + ( 88 ) FROM tab2 AS cor0
----
4567
5727
8262

skipif mysql # not compatible
query I rowsort label-3140
SELECT col0 + - CAST ( - 34 + - col1 AS INTEGER ) * + ( 88 ) FROM tab2 AS cor0
----
4567
5727
8262

query I rowsort
SELECT - col2 * col0 * + col0 - - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1296
-158158
-237120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3142
SELECT - - cor0.col1 DIV - 34 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT - - cor0.col1 / - 34 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3143
SELECT DISTINCT - cor0.col1 - - cor0.col0 DIV - 98 AS col0 FROM tab2, tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - cor0.col1 - - cor0.col0 / - 98 AS col0 FROM tab2, tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col2 * + col0 + + 22 AS col2 FROM tab0
----
57
7320
814

query I rowsort
SELECT ALL 22 * - col1 + col2 * col2 AS col2 FROM tab2
----
-622
1070
47

query I rowsort
SELECT DISTINCT - ( - tab0.col0 ) AS col1 FROM tab0, tab2 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * + col0 * + col2 AS col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT 26 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT + col2 - - col1 * ( col1 + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1406
257
434

query I rowsort
SELECT col2 * 3 FROM tab2 cor0
----
114
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3151
SELECT + col0 DIV 57 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3151
SELECT + col0 / 57 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + cor0.col2 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT + cor0.col2 + + col2 DIV cor0.col2 AS col0 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3153
SELECT + cor0.col2 + + col2 / cor0.col2 AS col0 FROM tab1 cor0
----
55
58
97

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col0 * - 31 FROM tab0 AS cor0
----
-1085
-2759
-744

onlyif mysql # use DIV operator for integer division
query I rowsort label-3156
SELECT DISTINCT + 71 DIV + 50 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-3156
SELECT DISTINCT + 71 / + 50 + - col0 FROM tab1 AS cor0
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT DISTINCT + + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + + col0 / col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 - 3 * + tab1.col0 * - 50 col1 FROM tab1
----
11998
448
9598

query I rowsort
SELECT DISTINCT 10 + + tab1.col2 FROM tab1
----
106
64
67

query I rowsort
SELECT DISTINCT ( tab0.col0 ) + - tab0.col1 * + tab0.col0 * + tab0.col0 AS col0 FROM tab0
----
-118790
-49512
-720722

query I rowsort
SELECT ALL - + ( col0 ) + col0 * col0 AS col2 FROM tab2 cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-3162
SELECT ALL + 95 * - 24 - col1 DIV 36 col2 FROM tab0 AS cor0
----
-2282
-2282
-2282

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL + 95 * - 24 - col1 / 36 col2 FROM tab0 AS cor0
----
-2282
-2282
-2282

query I rowsort
SELECT ALL - col2 + col2 * col2 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-3164
SELECT DISTINCT cor0.col0 * col1 DIV col0 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT cor0.col0 * col1 / col0 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + - 10 FROM tab1 AS cor0
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-3166
SELECT - CAST( - col2 AS SIGNED ) + + cor0.col2 DIV 87 col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3166
SELECT - CAST ( - col2 AS INTEGER ) + + cor0.col2 / 87 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col2 * - 75 AS col1 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT DISTINCT - col0 + 81 FROM tab0 AS cor0
----
-8
46
57

query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - ( + 21 ) * col0 FROM tab2 AS cor0
----
-147
-1638
-1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-3171
SELECT ALL col2 + + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL col2 + + col1 / - col1 AS col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - ( - 8 ) - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-70
-71
1

query I rowsort
SELECT ALL + 91 + - col2 * col1 FROM tab0 AS cor0
----
-2747
-6
-7371

query I rowsort
SELECT DISTINCT + + 25 * - ( + col2 ) FROM tab0 AS cor0
----
-2050
-25
-825

query I rowsort
SELECT + - cor0.col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3176
SELECT ALL - + CAST( + cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - + CAST ( + cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col0 * col1 + - ( col0 ) * + col2 FROM tab2 AS cor0
----
-1659
2574
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3178
SELECT DISTINCT col1 * + col2 * CAST( NULL AS SIGNED ) + 48 - + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT col1 * + col2 * CAST ( NULL AS INTEGER ) + 48 - + col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col0 + - col2 * col0 col2 FROM tab2 AS cor0
----
-238
-8112
-9243

query I rowsort
SELECT col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - col2 * + 97 + + col0 AS col1 FROM tab0 AS cor0
----
-3177
-62
-7865

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3182
SELECT + col0 + CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT + col0 + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3183
SELECT col2 + - CAST( + col1 AS SIGNED ) * tab2.col2 * CAST( col0 AS SIGNED ) FROM tab2
----
-119626
-50996
-5832

skipif mysql # not compatible
query I rowsort label-3183
SELECT col2 + - CAST ( + col1 AS INTEGER ) * tab2.col2 * CAST ( col0 AS INTEGER ) FROM tab2
----
-119626
-50996
-5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT col0 * 35 + - tab0.col2 AS col2 FROM tab0
----
1224
3033
807

query I rowsort
SELECT + 28 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT ALL - col1 + + col1 * + col1 * col0 FROM tab2 cor0
----
22814
271459
6696

query I rowsort
SELECT DISTINCT + 68 * + cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT ALL + - 37 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT ALL + ( - cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - + 17 * - 75 + col2 FROM tab2 AS cor0
----
1301
1302
1313

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3192
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 98 * + ( col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
150332
63308
82026

query I rowsort
SELECT DISTINCT ( - 22 ) AS col0 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT ALL - - ( 62 ) AS col2 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT - + 43 * 83 FROM tab2 AS cor0
----
-3569
-3569
-3569

query I rowsort
SELECT ALL ( + ( col1 ) ) * - ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT cor0.col0 - 76 FROM tab2 AS cor0
----
-69
2
3

query I rowsort
SELECT 46 * col0 + + col1 FROM tab1 AS cor0
----
164
2954
3693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col1 FROM tab0 AS cor0
----
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT ALL + col2 DIV + 8 + ( - col2 ) * col0 AS col1 FROM tab1
----
-156
-3641
-7668

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL + col2 / + 8 + ( - col2 ) * col0 AS col1 FROM tab1
----
-156
-3641
-7668

query I rowsort
SELECT ALL - col2 * - ( - 74 ) + col0 FROM tab0
----
-2418
-39
-5979

query I rowsort
SELECT DISTINCT tab2.col1 + + col0 + col0 FROM tab2
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * 91 col1 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT ALL 70 * col1 * col0 FROM tab2 AS cor0
----
15190
322140
94010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT + col0 DIV + ( col0 * + col2 ) + - tab1.col0 - - tab1.col1 * - col1 AS col1 FROM tab1
----
-164
-249
-679

skipif mysql # not compatible
query I rowsort label-3206
SELECT + col0 / + ( col0 * + col2 ) + - tab1.col0 - - tab1.col1 * - col1 AS col1 FROM tab1
----
-164
-249
-679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3207
SELECT + CAST( NULL AS SIGNED ) + + ( col2 + cor0.col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT + CAST ( NULL AS INTEGER ) + + ( col2 + cor0.col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * col1 + - 91 * + col0 * col2 FROM tab0
----
-64676
-655837
6224

query I rowsort
SELECT tab0.col0 * col2 + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT 18 * - col0 AS col1 FROM tab2
----
-126
-1404
-1422

query I rowsort
SELECT ALL - tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT + 49 * col0 AS col2 FROM tab0 AS cor0
----
1176
1715
4361

query I rowsort
SELECT col1 * - 35 * - tab1.col0 FROM tab1
----
22400
2730
36400

query I rowsort
SELECT cor0.col0 * 72 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to a96c60d8ab43c359edcae30f1e96cf44

query I rowsort
SELECT ALL - col0 * + 10 FROM tab2
----
-70
-780
-790

onlyif mysql # use DIV operator for integer division
query I rowsort label-3216
SELECT DISTINCT - - ( 75 ) DIV + col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - - ( 75 ) / + col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT - 14 * col0 AS col2 FROM tab2
----
-1092
-1106
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3218
SELECT ALL col0 + - ( - col2 + col2 ) * CAST( 7 + col2 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL col0 + - ( - col2 + col2 ) * CAST ( 7 + col2 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3219
SELECT + col0 * CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-3219
SELECT + col0 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col1 + - 99 FROM tab1 AS cor0
----
-109
-112
-125

query I rowsort
SELECT cor0.col1 * + 41 + - 21 AS col0 FROM tab0 AS cor0
----
3505
3710
3956

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT ALL - col0 + 8 DIV - col0 AS col0 FROM tab1 AS cor0
----
-5
-64
-80

skipif mysql # not compatible
query I rowsort label-3222
SELECT ALL - col0 + 8 / - col0 AS col0 FROM tab1 AS cor0
----
-5
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3223
SELECT ALL col1 DIV + CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL col1 / + CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
89
92
99

query I rowsort
SELECT + + col0 * - col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL cor0.col2 * col0 + + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + + col1 * 23 + col1 * col0 AS col0 FROM tab0 AS cor0
----
10192
4042
5626

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT DISTINCT - + col2 + + CAST( NULL AS SIGNED ) - - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT - + col2 + + CAST ( NULL AS INTEGER ) - - col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 98 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

query I rowsort
SELECT DISTINCT 48 * - col1 * + ( + col2 ) FROM tab2
----
-31008
-40176
-73632

query I rowsort
SELECT - 38 + col0 + - 24 * col2 FROM tab0 cor0
----
-1917
-27
-806

query I rowsort
SELECT - 55 + col0 * ( - col1 ) + + col2 FROM tab2 AS cor0
----
-1360
-245
-4631

onlyif mysql # use DIV operator for integer division
query I rowsort label-3232
SELECT col1 DIV col0 + - col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-3232
SELECT col1 / col0 + - col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5

query I rowsort
SELECT ALL - + 84 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT - col0 * col1 + - 94 FROM tab2 AS cor0
----
-1437
-311
-4696

query I rowsort
SELECT - col1 + + cor0.col0 * - col1 * col2 - 38 FROM tab0 AS cor0
----
-3530
-664247
-68236

query I rowsort
SELECT ALL + col0 * 41 AS col1 FROM tab0 AS cor0
----
1435
3649
984

onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT + + col1 * 99 * col0 + col2 DIV CAST( + 27 AS SIGNED ) FROM tab2 AS cor0
----
132958
21484
455598

skipif mysql # not compatible
query I rowsort label-3237
SELECT + + col1 * 99 * col0 + col2 / CAST ( + 27 AS INTEGER ) FROM tab2 AS cor0
----
132958
21484
455598

onlyif mysql # use DIV operator for integer division
query I rowsort label-3238
SELECT 27 DIV col1 FROM tab1 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3238
SELECT 27 / col1 FROM tab1 cor0
----
1
2
2

query I rowsort
SELECT + cor0.col1 * cor0.col0 * col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3240
SELECT + CAST( ( col0 ) AS SIGNED ) * col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-3240
SELECT + CAST ( ( col0 ) AS INTEGER ) * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - 18 * - col0 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT DISTINCT + + col1 * + 99 FROM tab1 cor0
----
1287
2574
990

query I rowsort
SELECT ALL ( - 93 ) + - col1 * + ( - col2 + - col2 ) AS col0 FROM tab2 AS cor0
----
1199
1581
2975

query I rowsort
SELECT + + 7 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT ( - col0 ) * col1 * + 7 AS col1 FROM tab0
----
-14448
-23765
-56693

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 44 * + col0 AS REAL ) AS col1 FROM tab0
----
-1056
-1540
-3916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3247
SELECT + + col2 * col2 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2919
3313
9296

skipif mysql # not compatible
query I rowsort label-3247
SELECT + + col2 * col2 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - + cor0.col0 + col0 - 49 FROM tab2 cor0
----
-49
-49
-49

query I rowsort
SELECT 97 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL - 55 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
-1376
-493
-619

query I rowsort
SELECT + col1 * col0 + - ( + col1 ) * col1 FROM tab2 AS cor0
----
-744
1054
1121

query I rowsort
SELECT + - 31 AS col0 FROM tab1 cor0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab0 AS cor0
----
11

query I rowsort
SELECT ALL - col0 * - tab2.col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + 23 + col0 + ( + col0 ) * - col1 FROM tab1 AS cor0
----
-52
-553
-937

query I rowsort
SELECT ALL - + 34 * - col0 * + col1 + 98 * col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
124901
284195
78580

query I rowsort
SELECT ALL - 72 + + cor0.col2 + - col0 * + 99 AS col0 FROM tab1 AS cor0
----
-315
-6351
-7896

query I rowsort
SELECT ALL - ( + 26 ) AS col1 FROM tab2
----
-26
-26
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT + col2 * col0 DIV 81 AS col2 FROM tab0
----
0
9
90

skipif mysql # not compatible
query I rowsort label-3259
SELECT + col2 * col0 / 81 AS col2 FROM tab0
----
0
9
90

query I rowsort
SELECT 84 + col2 FROM tab1
----
138
141
180

query I rowsort
SELECT ALL + ( - 40 ) FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3262
SELECT + CAST( NULL AS DECIMAL ) * 49 + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT + CAST ( NULL AS REAL ) * 49 + - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( tab0.col2 ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT - col2 - + ( + col1 + ( - tab1.col1 ) ) * col0 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 col1 FROM tab2
----
12
12
12

query I rowsort
SELECT col1 * col0 - col0 * col1 * col1 FROM tab1
----
-12480
-1950
-5760

query I rowsort
SELECT DISTINCT - col1 * 74 + - col1 AS col2 FROM tab0 cor0
----
-6450
-6825
-7275

query I rowsort
SELECT - + cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3270
SELECT + CAST( NULL AS SIGNED ) * ( - col0 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3270
SELECT + CAST ( NULL AS INTEGER ) * ( - col0 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3271
SELECT DISTINCT col2 * col2 DIV col0 FROM tab2
----
104
18
8

skipif mysql # not compatible
query I rowsort label-3271
SELECT DISTINCT col2 * col2 / col0 FROM tab2
----
104
18
8

query I rowsort
SELECT col0 + + col2 * + col0 AS col0 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3273
SELECT DISTINCT + col2 DIV - col2 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT + col2 / - col2 AS col1 FROM tab1
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT DISTINCT col1 DIV - col0 AS col2 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT col1 / - col0 AS col2 FROM tab1
----
-8
0

query I rowsort
SELECT DISTINCT + col2 + + col2 * tab2.col1 FROM tab2
----
1560
684
864

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) = col0 * - col0
----

query I rowsort
SELECT ALL tab1.col2 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL tab1.col0 AS col2 FROM tab1 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * tab2.col1 col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - col1 * + col2 - col0 AS col1 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT + col2 * + col1 * col1 FROM tab1
----
16224
36504
5700

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) = ( col0 * - col2 + + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + - col2 + col1 NOT BETWEEN NULL AND + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3285
SELECT col2 * tab0.col2 DIV col1 FROM tab0
----
0
12
73

skipif mysql # not compatible
query I rowsort label-3285
SELECT col2 * tab0.col2 / col1 FROM tab0
----
0
12
73

query I rowsort
SELECT DISTINCT - col2 + - tab0.col2 - - col2 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT ALL - col2 DIV col1 + col1 + + tab0.col1 AS col2 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - col2 / col1 + col1 + + tab0.col1 AS col2 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3288
SELECT + col2 * col2 DIV col0 AS col0 FROM tab2
----
104
18
8

skipif mysql # not compatible
query I rowsort label-3288
SELECT + col2 * col2 / col0 AS col0 FROM tab2
----
104
18
8

query I rowsort
SELECT col1 * col0 - + col1 AS col2 FROM tab1
----
1027
52
630

query I rowsort
SELECT ALL col1 + col2 * tab0.col2 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - col1 * - col1 + + col0 * - col0 FROM tab0
----
360
6820
8184

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL tab1.col2 + col0 * + tab1.col1 AS col2 FROM tab1
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col1 FROM tab0
----
2064
3395
8099

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( tab2.col1 * col2 / + col0 )
----

query I rowsort
SELECT ALL tab0.col1 / - tab0.col1 FROM tab0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT col0 + col0 * col0 AS col1 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT + col0 + + col2 * col1 * + tab2.col0 AS col1 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT col2 * + col2 * + col2 + + col1 * + col2 AS col0 FROM tab2
----
19110
20520
55518

query I rowsort
SELECT DISTINCT col2 - col1 AS col0 FROM tab1
----
28
47
83

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0 WHERE NULL > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT col0 * - col0 - - col0 DIV tab1.col2 FROM tab1
----
-4095
-6400
-9

skipif mysql # not compatible
query I rowsort label-3303
SELECT col0 * - col0 - - col0 / tab1.col2 FROM tab1
----
-4095
-6400
-9

query I rowsort
SELECT DISTINCT + - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 * - col2 + + tab1.col1 AS col0 FROM tab1
----
-1235
-1378
-560

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + cor0.col2 * - col2 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT ALL tab0.col0 * - col2 * - col1 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + col0 * col2 * col2 FROM tab2
----
114076
5103
52728

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 + + col0 / col2 + + col0 ) IN ( + col2 * + tab0.col0 )
----
35
97
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT DISTINCT - cor0.col1 DIV cor0.col0 col2 FROM tab1 AS cor0
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - cor0.col1 / cor0.col0 col2 FROM tab1 AS cor0
----
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3313
SELECT col2 DIV col1 + col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-3313
SELECT col2 / col1 + col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT ALL col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT tab0.col2 + 20 AS col0 FROM tab0
----
102
21
53

query I rowsort
SELECT DISTINCT + - 63 + - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-152
-87
-98

query I rowsort
SELECT + col0 * - ( - cor0.col0 * - cor0.col0 ) FROM tab2 AS cor0
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT col1 + - 54 DIV + col2 col1 FROM tab0 AS cor0
----
43
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3318
SELECT col1 + - 54 / + col2 col1 FROM tab0 AS cor0
----
43
85
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3319
SELECT + col0 * + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-3319
SELECT + col0 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3320
SELECT DISTINCT - cor0.col1 * + col1 + - col0 + CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - cor0.col1 * + col1 + - col0 + CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - 51 + cor0.col1 * CAST ( col0 + + col1 AS REAL ) FROM tab2 AS cor0
----
1127
1581
8032

query I rowsort
SELECT - 85 * col2 * col0 + 64 * - col1 + col1 FROM tab1 cor0
----
-15408
-310710
-653619

query I rowsort
SELECT DISTINCT + - 43 + + col2 FROM tab2 cor0
----
-16
-17
-5

query I rowsort
SELECT DISTINCT 9 * col0 * col1 FROM tab1
----
5760
702
9360

query I rowsort
SELECT ALL col1 * - col2 + ( 45 ) AS col2 FROM tab0 AS cor0
----
-2793
-52
-7417

query I rowsort
SELECT + col1 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( col1 AS REAL ) * col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - col0 * + ( - cor0.col1 ) + - col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT - col0 * - 64 FROM tab1 AS cor0
----
192
4096
5120

query I rowsort
SELECT DISTINCT + 14 * - col1 FROM tab1
----
-140
-182
-364

query I rowsort
SELECT ALL - 21 * col0 FROM tab2
----
-147
-1638
-1659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT + ( + cor0.col1 ) + col1 DIV - col0 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-3335
SELECT + ( + cor0.col1 ) + col1 / - col0 FROM tab2 AS cor0
----
17
27
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3336
SELECT ALL CAST( col2 AS SIGNED ) + - col1 * + col0 * col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL CAST ( col2 AS INTEGER ) + - col1 * + col0 * col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3337
SELECT - CAST( col2 AS SIGNED ) * + col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3337
SELECT - CAST ( col2 AS INTEGER ) * + col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + col1 * ( 15 ) * + col2 FROM tab2
----
12555
23010
9690

query I rowsort
SELECT ALL - 37 - + tab0.col0 FROM tab0
----
-126
-61
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3340
SELECT CAST( NULL AS SIGNED ) + col1 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-3340
SELECT CAST ( NULL AS INTEGER ) + col1 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - cor0.col2 ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT + + col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 12 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab0.col2 ) col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT 11 * col1 AS col2 FROM tab2
----
187
341
649

query I rowsort
SELECT cor0.col2 + + col2 AS col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT + col2 * - col0 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + cor0.col2 * - 34 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT DISTINCT - col1 - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + + col1 * + 62 col0 FROM tab1
----
1675
683
869

query I rowsort
SELECT ALL + 0 * col0 * tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * col2 * cor0.col2 FROM tab0 cor0
----
1
35937
551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-3353
SELECT col1 + + col2 DIV + col0 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-3353
SELECT col1 + + col2 / + col0 FROM tab1
----
10
14
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-3354
SELECT - col1 DIV - col0 + col2 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3354
SELECT - col1 / - col0 + col2 FROM tab0
----
3
36
83

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3357
SELECT DISTINCT + col2 DIV + col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT + col2 / + col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 * col1 col1 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT ALL + col2 + col0 DIV - col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + col2 + col0 / - col2 FROM tab1 AS cor0
----
54
56
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col0 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col2 * - col1 * + tab1.col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + col0 * col2 + - cor0.col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT col2 DIV + col0 + col1 col1 FROM tab2 AS cor0
----
17
34
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3363
SELECT col2 / + col0 + col1 col1 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT ALL - + 97 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1347
579
632

query I rowsort
SELECT 5 + - col1 AS col0 FROM tab1 AS cor0
----
-21
-5
-8

query I rowsort
SELECT + + col2 - - col1 * col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - col2 * ( + col1 ) AS col0 FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3368
SELECT CAST( ( col0 ) AS SIGNED ) * col0 AS col0 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-3368
SELECT CAST ( ( col0 ) AS INTEGER ) * col0 AS col0 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3369
SELECT ( col1 ) DIV - col1 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3369
SELECT ( col1 ) / - col1 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT + cor0.col0 * col1 DIV - col2 FROM tab0 AS cor0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-3370
SELECT + cor0.col0 * col1 / - col2 FROM tab0 AS cor0
----
-3395
-62
-98

query I rowsort
SELECT ALL - col2 * + col0 + col0 * col1 FROM tab2 cor0
----
-1659
2574
28

query I rowsort
SELECT DISTINCT + 63 * + col2 AS col0 FROM tab2 AS cor0
----
1638
1701
2394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 + + cor0.col0 col1 FROM tab2 AS cor0
----
-55
16
17

query I rowsort
SELECT + cor0.col1 * - col2 + + cor0.col2 - col0 FROM tab2 AS cor0
----
-1586
-687
-817

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT + - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3375
SELECT + - col0 / + col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL + ( tab2.col2 ) + col0 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL + col0 * + cor0.col1 + + 53 * + col0 AS col2 FROM tab0 AS cor0
----
12816
3336
5250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 * + col0 col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - + col1 + col1 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - - 7 + cor0.col2 AS col2 FROM tab0 AS cor0
----
40
8
89

query I rowsort
SELECT ALL 64 * + col1 AS col0 FROM tab2 AS cor0
----
1088
1984
3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3383
SELECT DISTINCT + + 79 DIV + col1 AS col1 FROM tab1 AS cor0
----
3
6
7

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT + + 79 / + col1 AS col1 FROM tab1 AS cor0
----
3
6
7

query I rowsort
SELECT + 50 + - col2 FROM tab2 AS cor0
----
12
23
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3385
SELECT col2 + + col2 DIV - col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-3385
SELECT col2 + + col2 / - col2 FROM tab0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3386
SELECT + col1 * col1 DIV 31 AS col0 FROM tab2 AS cor0
----
112
31
9

skipif mysql # not compatible
query I rowsort label-3386
SELECT + col1 * col1 / 31 AS col0 FROM tab2 AS cor0
----
112
31
9

query I rowsort
SELECT ALL col2 * + col1 + - ( col2 ) * - col2 * + col2 AS col2 FROM tab2 AS cor0
----
19110
20520
55518

query I rowsort
SELECT DISTINCT - - 65 + - col2 FROM tab2 cor0
----
27
38
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT DISTINCT - tab1.col0 + + col1 + - 24 DIV col0 AS col0 FROM tab1
----
-54
-67
15

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT - tab1.col0 + + col1 + - 24 / col0 AS col0 FROM tab1
----
-54
-67
15

query I rowsort
SELECT - - col0 - ( - 29 ) FROM tab0 cor0
----
118
53
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT + cor0.col1 DIV col1 + - 14 FROM tab0 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-3391
SELECT + cor0.col1 / col1 + - 14 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT + col1 + 92 AS col0 FROM tab2 AS cor0
----
109
123
151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3393
SELECT DISTINCT - - CAST( 58 AS SIGNED ) + cor0.col2 - - 7 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
147
66
98

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT - - CAST ( 58 AS INTEGER ) + cor0.col2 - - 7 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
147
66
98

query I rowsort
SELECT ALL + cor0.col0 * + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT 53 * + col0 AS col0 FROM tab1 AS cor0
----
159
3392
4240

query I rowsort
SELECT ALL - ( + 3 ) AS col1 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL - ( + col0 ) + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

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 DISTINCT - - 92 FROM tab2 AS cor0
----
92

query I rowsort
SELECT DISTINCT - col2 * 65 AS col2 FROM tab0
----
-2145
-5330
-65

query I rowsort
SELECT col1 + ( col2 * + col0 ) FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT ALL 70 DIV col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL 70 / col1 FROM tab2
----
1
2
4

query I rowsort
SELECT ALL + - ( - col0 ) + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col0 * + col1 * cor0.col0 AS col2 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - + col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col0 * col2 + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3407
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 53 + cor0.col0 AS col1 FROM tab2 AS cor0
----
131
132
60

query I rowsort
SELECT ALL cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab2
----
90

query I rowsort
SELECT ALL + - 19 * col0 - - cor0.col1 FROM tab0 AS cor0
----
-1600
-370
-568

onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT DISTINCT + 78 DIV - tab0.col2 FROM tab0
----
-2
-78
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT + 78 / - tab0.col2 FROM tab0
----
-2
-78
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col1 FROM tab1
----
-47
-47
-47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3414
SELECT col0 * - CAST( col0 * + col0 AS SIGNED ) FROM tab2
----
-343
-474552
-493039

skipif mysql # not compatible
query I rowsort label-3414
SELECT col0 * - CAST ( col0 * + col0 AS INTEGER ) FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT DISTINCT - tab0.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3416
SELECT col2 * CAST( - col0 AS SIGNED ) FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-3416
SELECT col2 * CAST ( - col0 AS INTEGER ) FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 + col0 col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col0 + + col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - - col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT - - cor0.col0 DIV - 19 + - col0 + col0 FROM tab2 AS cor0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-3420
SELECT - - cor0.col0 / - 19 + - col0 + col0 FROM tab2 AS cor0
----
-4
-4
0

query I rowsort
SELECT - col0 * ( - 71 ) + + col1 FROM tab0 AS cor0
----
1790
2582
6410

query I rowsort
SELECT ( - 81 ) * - col1 FROM tab1 AS cor0
----
1053
2106
810

query I rowsort
SELECT - 15 * - 66 FROM tab1 AS cor0
----
990
990
990

query I rowsort
SELECT DISTINCT col1 * + col0 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1280
156
2080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 * - 18 col2 FROM tab1 AS cor0
----
-684

query I rowsort
SELECT 51 * ( col0 ) + ( - col1 ) FROM tab2 AS cor0
----
326
3919
4012

query I rowsort
SELECT DISTINCT - - col1 - - 24 AS col1 FROM tab0 AS cor0
----
110
115
121

query I rowsort
SELECT - tab0.col2 * - 14 + col1 * col2 AS col2 FROM tab0
----
111
3300
8610

query I rowsort
SELECT DISTINCT + col1 + + col2 + + col1 * - col0 AS col0 FROM tab1
----
-573
-931
2

query I rowsort
SELECT - 65 * - col2 FROM tab0 AS cor0
----
2145
5330
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - tab0.col2 * - col2 col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT - cor0.col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col0 * ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 10 FROM tab0, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT - col1 * - 16 FROM tab1
----
160
208
416

query I rowsort
SELECT DISTINCT - 34 FROM tab1, tab1 cor0, tab0 AS cor1
----
-34

query I rowsort
SELECT col2 + + col0 * ( + col1 ) AS col0 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT DISTINCT col0 DIV + 92 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT col0 / + 92 FROM tab0
----
0

query I rowsort
SELECT 50 * col1 AS col1 FROM tab0 AS cor0
----
4300
4550
4850

query I rowsort
SELECT 51 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT - 86 * col2 + - 51 AS col0 FROM tab2 AS cor0
----
-2287
-2373
-3319

query I rowsort
SELECT + - col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - cor0.col0 + - col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-80
29
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col1 col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - ( tab0.col1 ) + + tab0.col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + col2 + col0 - 95 AS col2 FROM tab1
----
-38
26
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 + + col2 col1 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL 62 + col1 * col2 AS col0 FROM tab2
----
1596
708
899

query I rowsort
SELECT - col0 + col0 * - ( + 32 + - col0 ) FROM tab0
----
-216
4984
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3450
SELECT col2 + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-3450
SELECT col2 + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT ALL + col0 DIV col1 + col0 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + col0 / col1 + col0 / cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col1 + + col0 * 60 AS col1 FROM tab1 AS cor0
----
154
3830
4787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + ( col2 ) - col1 * cor0.col0 * 98 col0 FROM tab1 AS cor0
----
-10560
-111136
-65969

onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT ALL col1 DIV - 71 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL col1 / - 71 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col2 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - col2 + + ( + 44 + col0 ) FROM tab0 AS cor0
----
35
51
78

query I rowsort
SELECT DISTINCT col0 * 20 * + cor0.col2 + col0 - + 12 AS col0 FROM tab0 AS cor0
----
146037
15852
723

query I rowsort
SELECT + col1 + - 47 FROM tab1 AS cor0
----
-21
-34
-37

query I rowsort
SELECT col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT DISTINCT col1 DIV col0 - 66 * + col0 AS col2 FROM tab1 AS cor0
----
-190
-4224
-5280

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT col1 / col0 - 66 * + col0 AS col2 FROM tab1 AS cor0
----
-190
-4224
-5280

query I rowsort
SELECT DISTINCT col0 * ( + col0 ) * col0 - col2 AS col2 FROM tab0 AS cor0
----
13791
42874
704887

query I rowsort
SELECT - col0 + + ( + col1 ) * + col0 * col1 FROM tab1 AS cor0
----
13440
2025
6336

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * CAST ( + col2 AS REAL ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + ( - cor0.col0 ) + col1 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT - col2 + - 8 * col1 * + 52 AS col1 FROM tab2 AS cor0
----
-12923
-24570
-7110

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - col0 + 42 AS col2 FROM tab0 AS cor0
----
-47
18
7

query I rowsort
SELECT DISTINCT 36 + - 73 * + col2 FROM tab2 AS cor0
----
-1862
-1935
-2738

onlyif mysql # use DIV operator for integer division
query I rowsort label-3469
SELECT - col1 * - col0 DIV col0 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3469
SELECT - col1 * - col0 / col0 FROM tab0 cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT col1 DIV - 56 AS col1 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3470
SELECT col1 / - 56 AS col1 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT DISTINCT col1 + - col0 DIV ( 84 ) AS col1 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT col1 + - col0 / ( 84 ) AS col1 FROM tab0 AS cor0
----
86
90
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT ALL cor0.col2 DIV + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL cor0.col2 / + col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - col2 + col1 * + 60 AS col1 FROM tab0 AS cor0
----
5193
5542
5821

query I rowsort
SELECT DISTINCT + + col2 * - col0 + + 24 * + col1 FROM tab0 AS cor0
----
-5114
1272
2293

query I rowsort
SELECT 17 + col1 AS col2 FROM tab1 cor0
----
27
30
43

query I rowsort
SELECT + col0 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT DISTINCT 0 DIV - col0 + cor0.col0 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-3477
SELECT DISTINCT 0 / - col0 + cor0.col0 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + 76 + + col1 - + 77 AS col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT - col2 + - col2 * 85 FROM tab0 AS cor0
----
-2838
-7052
-86

query I rowsort
SELECT DISTINCT - tab0.col2 * + 26 FROM tab0
----
-2132
-26
-858

query I rowsort
SELECT col1 + + 37 * 21 FROM tab1 AS cor0
----
787
790
803

onlyif mysql # use DIV operator for integer division
query I rowsort label-3482
SELECT ALL - col0 DIV - 28 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL - col0 / - 28 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT DISTINCT + 0 DIV cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT + 0 / cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
0

query I rowsort
SELECT col2 + - col0 * 4 FROM tab2 AS cor0
----
-1
-278
-286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3487
SELECT ALL - + col2 * + CAST( col2 AS SIGNED ) - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL - + col2 * + CAST ( col2 AS INTEGER ) - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + 60 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3489
SELECT ALL + CAST( + col1 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL + CAST ( + col1 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col2 * - 69 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT - + ( 65 ) * cor0.col1 FROM tab2 cor0
----
-1105
-2015
-3835

query I rowsort
SELECT ALL - - 12 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT ALL + + 30 + 44 AS col1 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT DISTINCT - - ( + 86 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT + tab0.col0 + - 67 * 36 * col1 FROM tab0
----
-207408
-219403
-233929

query I rowsort
SELECT DISTINCT + col0 * col1 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + - col0 + col1 AS col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL 26 AS col0 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT + col0 * col0 + - col2 DIV 5 AS col1 FROM tab1 AS cor0
----
-1
4085
6381

skipif mysql # not compatible
query I rowsort label-3499
SELECT + col0 * col0 + - col2 / 5 AS col1 FROM tab1 AS cor0
----
-1
4085
6381

query I rowsort
SELECT col1 + + cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL 18 + cor0.col0 * - 24 FROM tab1 AS cor0
----
-1518
-1902
-54

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab1 cor0
----
-92

query I rowsort
SELECT - cor1.col1 - + 2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b947ab47936c273b35fbb5f4937fe1e3

query I rowsort
SELECT DISTINCT - - col2 - - col2 * - col0 AS col1 FROM tab1 cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 84 * cor0.col0 FROM tab0 AS cor0
----
2016
2940
7476

query I rowsort
SELECT 5 + col0 AS col0 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT ALL + - 99 AS col2 FROM tab0 AS cor0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 94 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT DISTINCT col0 + 13 * + col0 AS col2 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT - + col0 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col2 * - col1 + - ( col0 * col0 ) + col2 AS col1 FROM tab0 AS cor0
----
-1127
-377
2295

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 22 col0 FROM tab2 AS cor0
----
-16
-4
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3515
SELECT - col0 + - CAST( - ( - col0 ) AS SIGNED ) * 12 AS col0 FROM tab1 AS cor0
----
-1040
-39
-832

skipif mysql # not compatible
query I rowsort label-3515
SELECT - col0 + - CAST ( - ( - col0 ) AS INTEGER ) * 12 AS col0 FROM tab1 AS cor0
----
-1040
-39
-832

query I rowsort
SELECT cor0.col1 * 84 AS col0 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT col1 * - tab1.col0 * col0 AS col2 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + - col0 * col2 * - col2 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3519
SELECT tab0.col2 * - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3519
SELECT tab0.col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 66 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT - col1 * - col1 + + col2 * + col0 * + 75 FROM tab1 AS cor0
----
12826
273700
576169

query I rowsort
SELECT - 18 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT + col0 + col0 * + 70 AS col2 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT 69 - + col2 * col0 AS col2 FROM tab2 AS cor0
----
-120
-1959
-2933

query I rowsort
SELECT DISTINCT - col2 * + col0 * - tab1.col1 + + col2 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT ALL + tab2.col0 * tab2.col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT 23 * + col0 AS col2 FROM tab0
----
2047
552
805

query I rowsort
SELECT DISTINCT col2 * col0 * + 46 FROM tab0 cor0
----
1610
335708
36432

query I rowsort
SELECT + 91 * + col2 AS col2 FROM tab2 AS cor0
----
2366
2457
3458

query I rowsort
SELECT - ( col1 ) * - col1 + - col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL - 98 * - col2 + col0 FROM tab2 AS cor0
----
2626
2653
3803

query I rowsort
SELECT - + col0 + + 39 * - cor0.col2 FROM tab2 AS cor0
----
-1060
-1092
-1561

query I rowsort
SELECT - + col1 * + col0 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT + - 3 + - 1 * + col2 FROM tab1 AS cor0
----
-57
-60
-99

query I rowsort
SELECT - col0 + + col2 * + col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL - col1 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT cor0.col0 + + col0 * col1 * + 98 AS col1 FROM tab0 cor0
----
202296
332745
793791

onlyif mysql # use DIV operator for integer division
query I rowsort label-3538
SELECT + col1 + + col2 DIV col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-3538
SELECT + col1 + + col2 / col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT ALL 11 * + col0 AS col1 FROM tab2 AS cor0
----
77
858
869

onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT 30 DIV col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3540
SELECT 30 / col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col0 - + col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + cor0.col0 * col0 col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT 1 * - col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - - 9 + - cor0.col1 + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
-24
30
5

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 cor1, tab2 cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

onlyif mysql # use DIV operator for integer division
query I rowsort label-3546
SELECT + col1 * col2 + + 14 DIV col2 FROM tab0 AS cor0
----
111
2838
7462

skipif mysql # not compatible
query I rowsort label-3546
SELECT + col1 * col2 + + 14 / col2 FROM tab0 AS cor0
----
111
2838
7462

onlyif mysql # use DIV operator for integer division
query I rowsort label-3547
SELECT + col0 * col2 DIV col1 FROM tab1 AS cor0
----
364
590
6

skipif mysql # not compatible
query I rowsort label-3547
SELECT + col0 * col2 / col1 FROM tab1 AS cor0
----
364
590
6

query I rowsort
SELECT DISTINCT col1 * 68 AS col0 FROM tab0 cor0
----
5848
6188
6596

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT DISTINCT + 12 DIV - col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT + 12 / - col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL + 89 FROM tab1 cor0
----
89
89
89

query I rowsort
SELECT - col2 * ( 10 ) FROM tab1
----
-540
-570
-960

query I rowsort
SELECT col2 * 47 AS col1 FROM tab1
----
2538
2679
4512

query I rowsort
SELECT ALL + ( - 94 ) * col1 AS col2 FROM tab2 AS cor0
----
-1598
-2914
-5546

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - cor0.col0 * - 45 FROM tab0 cor0
----
1080
1575
4005

query I rowsort
SELECT ALL - col2 * - cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT DISTINCT + + 48 + col0 DIV col2 FROM tab1 cor0
----
48
49

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT + + 48 + col0 / col2 FROM tab1 cor0
----
48
49

query I rowsort
SELECT ALL + + col0 + + 70 - - col0 FROM tab1 AS cor0
----
198
230
76

query I rowsort
SELECT - col1 + + 56 AS col2 FROM tab0 AS cor0
----
-30
-35
-41

query I rowsort
SELECT + - col1 + + 32 AS col2 FROM tab2 AS cor0
----
-27
1
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 62 FROM tab2, tab0 cor0
----
62

query I rowsort
SELECT DISTINCT col1 * ( col0 ) * col1 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * + col2 col1 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT - 58 * - cor0.col0 + - col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2136
1995
600

query I rowsort
SELECT ALL - cor0.col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - + 21 + col2 FROM tab1 AS cor0
----
33
36
75

query I rowsort
SELECT 43 + 3 * col0 * col1 FROM tab0
----
10228
24340
6235

query I rowsort
SELECT col0 * 34 + col1 * - col2 * ( tab2.col2 * 23 ) + 4 * + col0 FROM tab2
----
-519511
-561602
-914368

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT ALL col0 * - col2 DIV + col2 + - 15 AS col2 FROM tab1
----
-18
-79
-95

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL col0 * - col2 / + col2 + - 15 AS col2 FROM tab1
----
-18
-79
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3571
SELECT ALL ( col2 ) * - col0 + - CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL ( col2 ) * - col0 + - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT ALL CAST( - col1 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL CAST ( - col1 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab0 AS cor0
----
29

query I rowsort
SELECT - + col1 * - col2 + col2 * col2 FROM tab2 AS cor0
----
1566
2090
2210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * - col1 + col1 col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ( 8 * - col1 ) FROM tab2
----
-136
-248
-472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT - col1 * - 35 + cor0.col2 FROM tab2 AS cor0
----
1112
2091
633

query I rowsort
SELECT - col1 * col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col0 * ( + col2 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3581
SELECT col2 + - col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3581
SELECT col2 + - col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 67 * + col2 AS col1 FROM tab2
----
1742
1809
2546

query I rowsort
SELECT col1 * col0 * + col0 + - col1 * col1 AS col2 FROM tab2
----
105808
355475
558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3584
SELECT - tab1.col2 * + CAST( NULL AS SIGNED ) * 67 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3584
SELECT - tab1.col2 * + CAST ( NULL AS INTEGER ) * 67 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3585
SELECT - 11 + - 78 * cor0.col2 * + CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3585
SELECT - 11 + - 78 * cor0.col2 * + CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col2 + 62 AS col2 FROM tab0
----
-20
29
61

query I rowsort
SELECT ALL + col2 * 57 + 61 + col1 FROM tab1 cor0
----
3165
3320
5546

query I rowsort
SELECT DISTINCT col1 - col0 * col0 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL + col0 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 * + ( 2 ) + col0 AS col0 FROM tab0 cor0
----
105
267
72

query I rowsort
SELECT ALL - col2 + col0 - col2 AS col2 FROM tab2 AS cor0
----
-47
26
3

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + CAST ( 39 AS REAL ) * cor0.col1 AS col0 FROM tab0 cor0
----
3378
3638
3818

query I rowsort
SELECT ALL col2 * col2 * col0 + col0 * 79 FROM tab1 cor0
----
212992
743600
8985

query I rowsort
SELECT DISTINCT col2 + + 90 + cor0.col0 * + col1 FROM tab0 cor0
----
2187
3486
8271

query I rowsort
SELECT col2 + - ( col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL 28 - 67 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3597
SELECT - CAST( - col1 AS SIGNED ) * tab1.col0 col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3597
SELECT - CAST ( - col1 AS INTEGER ) * tab1.col0 col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT + col2 + - 22 FROM tab2
----
16
4
5

query I rowsort
SELECT DISTINCT + ( - col1 * - col2 ) + + col2 * 71 FROM tab2
----
2754
3344
3380

query I rowsort
SELECT ALL - 78 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3601
SELECT - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + + col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT cor0.col0 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + col0 * ( - 97 ) col1 FROM tab2 AS cor0
----
-648
-7507
-7646

query I rowsort
SELECT ALL - 34 * col2 AS col1 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT DISTINCT col2 + col0 * 54 FROM tab1 cor0
----
216
3513
4416

query I rowsort
SELECT ALL col0 + - col1 * col0 * + col0 FROM tab2 AS cor0
----
-106018
-1512
-358878

query I rowsort
SELECT DISTINCT - + col0 * - col1 * 79 + - col1 * + col1 FROM tab2 AS cor0
----
105808
16182
360077

onlyif mysql # use DIV operator for integer division
query I rowsort label-3610
SELECT DISTINCT + col1 + 63 DIV col2 FROM tab0
----
160
87
91

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT + col1 + 63 / col2 FROM tab0
----
160
87
91

query I rowsort
SELECT DISTINCT + col2 + + col2 * + col1 * - col2 FROM tab2
----
-22572
-24510
-39858

query I rowsort
SELECT + + col0 + col1 - + 1 FROM tab1 AS cor0
----
28
73
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3613
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) * - 96 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) * - 96 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + - 70 FROM tab0 AS cor0
----
-105
-159
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - col1 - ( - col1 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + cor0.col2 + col1 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - ( col0 ) + - col1 FROM tab2 cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3620
SELECT ALL + CAST( NULL AS SIGNED ) * + cor0.col1 + + col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + CAST ( NULL AS INTEGER ) * + cor0.col1 + + col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * col0 - - cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT - col0 * cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + - col2 * - 71 + + col2 AS col2 FROM tab1 AS cor0
----
3888
4104
6912

onlyif mysql # use DIV operator for integer division
query I rowsort label-3624
SELECT - 12 DIV + col0 + col1 FROM tab2 AS cor0
----
17
30
59

skipif mysql # not compatible
query I rowsort label-3624
SELECT - 12 / + col0 + col1 FROM tab2 AS cor0
----
17
30
59

query I rowsort
SELECT DISTINCT + 4 * + col2 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT + 37 + + 70 * - col0 AS col0 FROM tab1 AS cor0
----
-173
-4443
-5563

query I rowsort
SELECT cor0.col0 + 3 FROM tab0 AS cor0
----
27
38
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT ALL - ( col0 ) DIV - col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL - ( col0 ) / - col2 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 * + col0 col1 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT 22 + 80 AS col2 FROM tab2 AS cor0
----
102
102
102

query I rowsort
SELECT + col0 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col2 * 17 AS col2 FROM tab0
----
1394
17
561

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT + 3 DIV + cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3633
SELECT + 3 / + cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3634
SELECT - CAST( col1 AS SIGNED ) * + cor0.col2 + + col2 - col1 AS col0 FROM tab0 AS cor0
----
-193
-2891
-7471

skipif mysql # not compatible
query I rowsort label-3634
SELECT - CAST ( col1 AS INTEGER ) * + cor0.col2 + + col2 - col1 AS col0 FROM tab0 AS cor0
----
-193
-2891
-7471

query I rowsort
SELECT + col0 * col1 * + cor0.col0 + col2 + col2 AS col1 FROM tab1 AS cor0
----
342
41074
83392

query I rowsort
SELECT + 68 * - 2 + col0 - + col1 FROM tab1 AS cor0
----
-159
-69
-82

query I rowsort
SELECT col1 + col0 * col1 - col0 AS col2 FROM tab1 AS cor0
----
101
586
973

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0 cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT - 33 + col1 FROM tab2 AS cor0
----
-16
-2
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT cor0.col0 * 80 * + col0 AS col2 FROM tab2 AS cor0
----
3920
486720
499280

query I rowsort
SELECT col2 * col0 * col1 + tab0.col2 AS col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT DISTINCT + 68 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
68

query I rowsort
SELECT + cor1.col2 + + 6 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8080c87152276ef3e171b8c411981307

query I rowsort
SELECT DISTINCT col0 + - 48 * + tab2.col0 AS col1 FROM tab2
----
-329
-3666
-3713

query I rowsort
SELECT ALL col0 * 93 + + 67 FROM tab0
----
2299
3322
8344

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT - 15 DIV - tab1.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 706b1ec5148bb5549e4bad66dab6f1cd

skipif mysql # not compatible
query I rowsort label-3648
SELECT - 15 / - tab1.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 706b1ec5148bb5549e4bad66dab6f1cd

query I rowsort
SELECT - ( 16 ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + ( col1 ) col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 55 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3652
SELECT - col1 DIV 81 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3652
SELECT - col1 / 81 AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - tab2.col0 * - 32 * - col2 FROM tab2
----
-6048
-64896
-96064

query I rowsort
SELECT ALL - 38 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # use DIV operator for integer division
query I rowsort label-3655
SELECT + 15 DIV - col1 + col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3655
SELECT + 15 / - col1 + col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * - col2 col1 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT - ( cor0.col2 ) - 42 FROM tab1 AS cor0
----
-138
-96
-99

query I rowsort
SELECT - tab1.col0 * col0 + - ( - col1 ) * col2 FROM tab1
----
-3526
-5152
1395

query I rowsort
SELECT DISTINCT - 56 FROM tab2, tab1 cor0, tab2 AS cor1
----
-56

query I rowsort
SELECT - col0 + 78 * + col2 AS col0 FROM tab0 AS cor0
----
2550
43
6307

query I rowsort
SELECT ALL + col2 + + 99 * col1 FROM tab2
----
1721
3096
5867

query I rowsort
SELECT tab2.col2 * 58 - - col2 FROM tab2
----
1534
1593
2242

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3663
SELECT + col1 * CAST( NULL AS SIGNED ) + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3663
SELECT + col1 * CAST ( NULL AS INTEGER ) + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 - - col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT DISTINCT - + col2 + col2 * col1 * + col0 FROM tab2 AS cor0
----
119626
50996
5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3666
SELECT + + col0 DIV col0 + - col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3666
SELECT + + col0 / col0 + - col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT + 48 + + col1 AS col2 FROM tab1
----
58
61
74

query I rowsort
SELECT - 72 * col2 * + col2 FROM tab0 AS cor0
----
-484128
-72
-78408

query I rowsort
SELECT DISTINCT ( - col0 * tab0.col0 ) AS col0 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col1 AS REAL ) FROM tab2
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3672
SELECT + + CAST( NULL AS SIGNED ) / + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT + + CAST ( NULL AS INTEGER ) / + cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3674
SELECT + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col1 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL + cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + col2 * col0 + - 88 * 99 FROM tab2 AS cor0
----
-5710
-6684
-8523

query I rowsort
SELECT ALL tab2.col0 * - col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col1 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + + 44 * - col0 - 80 FROM tab0 AS cor0
----
-1136
-1620
-3996

onlyif mysql # use DIV operator for integer division
query I rowsort label-3681
SELECT ALL + col0 * col0 DIV col2 FROM tab1 AS cor0
----
0
66
71

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL + col0 * col0 / col2 FROM tab1 AS cor0
----
0
66
71

query I rowsort
SELECT + cor0.col2 + - col0 * + col0 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab1 cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT 59 * - cor0.col2 AS col0 FROM tab0 cor0
----
-1947
-4838
-59

query I rowsort
SELECT DISTINCT - col0 + - col2 * col2 FROM tab1 cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL + + col1 * - col0 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + + col2 * 21 + + ( + cor0.col0 ) FROM tab0 AS cor0
----
1811
56
717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3690
SELECT ALL - cor0.col1 - - CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL - cor0.col1 - - CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col2 * + col1 * ( - col2 ) FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL 51 AS col1 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT 20 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3695
SELECT col0 + - col0 * CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3695
SELECT col0 + - col0 * CAST ( NULL AS REAL ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3696
SELECT - ( + col0 ) + + cor0.col2 DIV col1 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-3696
SELECT - ( + col0 ) + + cor0.col2 / col1 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT ALL - col1 * - col0 * - col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 41 + cor0.col0 col0 FROM tab0 AS cor0
----
212
77
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 40 ) + - col2 + - ( ( - col2 ) ) col2 FROM tab2 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) + - col0 col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + - 66 AS col0 FROM tab2 AS cor0
----
-66
-66
-66

query I rowsort
SELECT + + 67 * - 63 AS col2 FROM tab2 AS cor0
----
-4221
-4221
-4221

query I rowsort
SELECT ALL 83 FROM tab2 cor0
----
83
83
83

query I rowsort
SELECT + - cor0.col1 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - tab2.col2 * tab2.col0 * - col0 AS col1 FROM tab2
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT ALL - col2 DIV - ( col0 ) + tab2.col2 AS col2 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL - col2 / - ( col0 ) + tab2.col2 AS col2 FROM tab2
----
26
30
38

query I rowsort
SELECT + 72 + - col1 FROM tab0 AS cor0
----
-14
-19
-25

query I rowsort
SELECT ALL - 75 * 52 + cor0.col0 + - col0 FROM tab2 AS cor0
----
-3900
-3900
-3900

query I rowsort
SELECT ALL + col1 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + 30 + 22 * col2 * col1 AS col1 FROM tab0
----
164194
2164
62466

query I rowsort
SELECT cor0.col1 * - col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + ( - 32 ) + col1 FROM tab2 AS cor0
----
-1
-15
27

query I rowsort
SELECT DISTINCT - + ( - 94 ) + - col0 FROM tab1 AS cor0
----
14
30
91

query I rowsort
SELECT + col1 + - col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col1 * col0 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col0 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3717
SELECT - + CAST( - col2 AS SIGNED ) * col0 - col1 FROM tab1 AS cor0
----
136
3638
7667

skipif mysql # not compatible
query I rowsort label-3717
SELECT - + CAST ( - col2 AS INTEGER ) * col0 - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT col2 * ( 85 ) + col2 + ( + col2 ) * col1 AS col1 FROM tab2
----
3159
3770
3914

query I rowsort
SELECT DISTINCT - 19 AS col2 FROM tab0, tab0 AS cor0
----
-19

query I rowsort
SELECT + col2 - - col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL + 50 + cor0.col1 + 87 FROM tab1, tab0 AS cor0
----
9 values hashing to 08e88c23cf8af6c121be9f7bc15915b2

query I rowsort
SELECT + ( ( - col1 ) * tab1.col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col0 * 77 FROM tab0
----
1848
2695
6853

query I rowsort
SELECT ALL ( col2 ) * + col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 + - ( col1 + + col0 ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT - col2 DIV - 53 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3726
SELECT - col2 / - 53 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 35 FROM tab0, tab2, tab1 AS cor0
----
35

query I rowsort
SELECT 86 * 32 FROM tab0, tab0 AS cor0
----
9 values hashing to ae7a1370a8eeb2cb6144313344dcc171

onlyif mysql # use DIV operator for integer division
query I rowsort label-3729
SELECT + tab2.col0 DIV - col1 + tab2.col2 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-3729
SELECT + tab2.col0 / - col1 + tab2.col2 FROM tab2
----
25
27
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT ALL col0 * col2 DIV col1 + col1 AS col2 FROM tab1
----
32
374
603

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL col0 * col2 / col1 + col1 AS col2 FROM tab1
----
32
374
603

query I rowsort
SELECT ALL col2 * col0 + + col0 * tab1.col1 FROM tab1
----
240
4288
8720

query I rowsort
SELECT DISTINCT col2 * 87 AS col2 FROM tab1 AS cor0
----
4698
4959
8352

onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT col2 + ( 10 ) DIV cor0.col2 - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-3733
SELECT col2 + ( 10 ) / cor0.col2 - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
10

query I rowsort
SELECT DISTINCT col0 * - 56 FROM tab0 AS cor0
----
-1344
-1960
-4984

query I rowsort
SELECT DISTINCT cor0.col1 * - 23 + 11 * col1 + + 12 AS col1 FROM tab0 AS cor0
----
-1020
-1080
-1152

query I rowsort
SELECT - + cor0.col0 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + col0 + 56 FROM tab1 AS cor0
----
120
136
59

query I rowsort
SELECT ALL - col0 * + ( 97 ) FROM tab1 AS cor0
----
-291
-6208
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - col0 + + col1 - ( col2 ) AS col2 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT + 88 AS col2 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3742
SELECT - - CAST( + cor0.col0 AS SIGNED ) - col1 * + col1 FROM tab2 AS cor0
----
-210
-3403
-954

skipif mysql # not compatible
query I rowsort label-3742
SELECT - - CAST ( + cor0.col0 AS INTEGER ) - col1 * + col1 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3743
SELECT ALL col2 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL col2 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 64 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT col2 + ( col0 ) * - col2 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT CAST( col1 AS SIGNED ) DIV - col1 + cor0.col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3746
SELECT CAST ( col1 AS INTEGER ) / - col1 + cor0.col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT col1 * + 95 - col2 FROM tab1 AS cor0
----
1139
2416
893

query I rowsort
SELECT ( col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( - col0 AS REAL ) + - col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + col0 * - col2 - col2 * + ( col1 ) FROM tab0
----
-132
-14760
-3630

query I rowsort
SELECT DISTINCT - col1 - - 66 AS col2 FROM tab2
----
35
49
7

query I rowsort
SELECT col2 - col2 * col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + ( col2 ) - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + ( + 10 ) + + col2 FROM tab2 AS cor0
----
36
37
48

query I rowsort
SELECT 18 + - col0 AS col1 FROM tab1 AS cor0
----
-46
-62
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-3756
SELECT DISTINCT - col1 + col0 DIV - col0 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT - col1 + col0 / - col0 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT + col1 + + col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - - col0 * - col1 + - ( col2 ) FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL + + cor0.col2 + - col2 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT 11 + col2 * - 64 FROM tab1 AS cor0
----
-3445
-3637
-6133

query I rowsort
SELECT + + col1 + - cor0.col2 * + col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - col2 * - col2 AS col0 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - 43 AS col0 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL + col0 + - col2 * + 2 AS col1 FROM tab0 AS cor0
----
-42
-75
33

query I rowsort
SELECT - col2 + - col2 * - col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT col2 * col0 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1242
3078
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-3767
SELECT - cor0.col1 + - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-3767
SELECT - cor0.col1 + - col2 / + col0 AS col2 FROM tab0 AS cor0
----
-87
-91
-97

query I rowsort
SELECT 63 * col2 AS col2 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT DISTINCT + 11 * + col1 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT DISTINCT - col2 * + ( - col0 ) * ( col1 ) AS col1 FROM tab0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3771
SELECT ALL CAST( - ( - col2 ) AS SIGNED ) * - col2 * - col2 AS col0 FROM tab0
----
1
35937
551368

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL CAST ( - ( - col2 ) AS INTEGER ) * - col2 * - col2 AS col0 FROM tab0
----
1
35937
551368

query I rowsort
SELECT ALL 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT - 13 * cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-130
-169
-338

onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT ALL 14 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL 14 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - tab0.col0 + 18 * - 34 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b4f804ceeafbe7fc064d522064b18bd4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT col0 + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3776
SELECT col0 + col0 / col1 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col1 * col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + col1 * + col0 + - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL + 70 * - ( col0 ) * + col2 + - 64 AS col0 FROM tab0 AS cor0
----
-2514
-510924
-55504

query I rowsort
SELECT - col0 * - col1 * + col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT 17 FROM tab0, tab1 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0, tab0 cor1
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

query I rowsort
SELECT DISTINCT - 89 - - col2 FROM tab1 AS cor0
----
-32
-35
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 + - col1 * - col2 col2 FROM tab0 cor0
----
1322
15383
3414

query I rowsort
SELECT + - cor0.col1 * 34 + - col0 FROM tab0 AS cor0
----
-2948
-3183
-3333

query I rowsort
SELECT ALL - col1 - cor0.col0 * col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - col0 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3788
SELECT DISTINCT - CAST( col2 AS SIGNED ) * col0 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

skipif mysql # not compatible
query I rowsort label-3788
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * col0 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3789
SELECT DISTINCT - CAST( col1 AS SIGNED ) + col0 col0 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - cor1.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT ALL + - col1 + - col2 * 78 * 75 FROM tab2 AS cor0
----
-152159
-157981
-222317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) * ( col1 ) + + col0 * + cor0.col0 col1 FROM tab0 cor0
----
16020
2640
4620

query I rowsort
SELECT DISTINCT 44 FROM tab1, tab0 cor0, tab0 cor1
----
44

query I rowsort
SELECT ALL + tab0.col2 + ( + col1 ) * col2 + - 40 * 77 FROM tab0
----
-209
-2982
4464

query I rowsort
SELECT DISTINCT + col2 + ( col0 ) * + col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT + + col1 * col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - - cor0.col2 * + 47 FROM tab1 AS cor0
----
2538
2679
4512

onlyif mysql # use DIV operator for integer division
query I rowsort label-3798
SELECT ALL + + col1 DIV 74 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL + + col1 / 74 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 + cor0.col1 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL col2 + 77 FROM tab0 cor0
----
110
159
78

query I rowsort
SELECT ALL ( 86 ) * - col1 + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-2477
-3046
1540

query I rowsort
SELECT ALL col0 + + 34 * + col2 AS col1 FROM tab2 AS cor0
----
1371
925
962

query I rowsort
SELECT DISTINCT - 2 * + col1 + col2 * col1 * col2 AS col0 FROM tab0 AS cor0
----
-97
611702
93482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * cor0.col0 + + col2 col0 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT ALL + col1 + + col0 * + col2 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 45 * col0 col2 FROM tab2 cor0
----
-315
-3510
-3555

query I rowsort
SELECT ALL + + ( - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - + ( + col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL + - col0 + 23 FROM tab1 cor0
----
-41
-57
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3810
SELECT DISTINCT CAST( + 35 AS SIGNED ) + cor0.col0 FROM tab1 AS cor0
----
115
38
99

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT CAST ( + 35 AS INTEGER ) + cor0.col0 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT DISTINCT ( - col2 ) * cor0.col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL tab2.col0 + ( 48 ) * col0 AS col0 FROM tab2
----
343
3822
3871

query I rowsort
SELECT DISTINCT - col2 + - tab0.col0 FROM tab0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3814
SELECT col0 * col2 + + CAST( NULL AS SIGNED ) * ( + col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3814
SELECT col0 * col2 + + CAST ( NULL AS INTEGER ) * ( + col1 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3815
SELECT ALL + col2 + + col1 DIV 24 AS col1 FROM tab1 cor0
----
55
57
96

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + col2 + + col1 / 24 AS col1 FROM tab1 cor0
----
55
57
96

query I rowsort
SELECT 38 + + col2 FROM tab2
----
64
65
76

query I rowsort
SELECT col0 * col0 * 37 FROM tab1
----
151552
236800
333

query I rowsort
SELECT - tab2.col0 * col2 * + tab2.col2 AS col1 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL + 17 FROM tab2 AS cor0
----
17
17
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3821
SELECT - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT - 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-3822
SELECT DISTINCT + + col1 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT + + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col1 * + col2 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1322
-15383
-3414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + 52 col1 FROM tab2 AS cor0
----
-7
21
35

query I rowsort
SELECT DISTINCT - tab1.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT ( col0 ) + - 85 * tab0.col1 AS col2 FROM tab0
----
-7286
-7646
-8210

query I rowsort
SELECT DISTINCT + col1 + col1 + - col0 AS col2 FROM tab2
----
-45
40
55

query I rowsort
SELECT col0 * + 92 + + col2 AS col2 FROM tab1 AS cor0
----
330
5945
7456

query I rowsort
SELECT ALL - 28 + - col1 AS col1 FROM tab0
----
-114
-119
-125

query I rowsort
SELECT + ( - cor0.col0 ) * + col2 * 16 FROM tab0 AS cor0
----
-116768
-12672
-560

query I rowsort
SELECT - 31 * - col1 AS col2 FROM tab1 AS cor0
----
310
403
806

query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab0 AS cor0
----
-77

query I rowsort
SELECT DISTINCT col0 * 62 AS col1 FROM tab0 cor0
----
1488
2170
5518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 * - col0 col0 FROM tab0 AS cor0
----
-1968
-2870
-7298

query I rowsort
SELECT DISTINCT - col2 + - col0 + col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - 58 AS col1 FROM tab0 cor0
----
-58
-58
-58

query I rowsort
SELECT + col1 * - 8 AS col2 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT ALL - 44 FROM tab2, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT ALL ( + 95 ) * - col1 AS col2 FROM tab2
----
-1615
-2945
-5605

query I rowsort
SELECT - 42 + + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c1481ab899521450ef0ee43cc028289a

query I rowsort
SELECT 88 + col2 * col0 FROM tab1
----
250
3736
7768

onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT DISTINCT + ( tab0.col0 ) DIV col0 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3842
SELECT DISTINCT + ( tab0.col0 ) / col0 AS col0 FROM tab0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT ( + col0 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3843
SELECT ( + col0 ) / - col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT ( col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + col0 + - ( col0 ) * ( col1 ) FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3846
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + 19 AS col1 FROM tab2 cor0
----
36
50
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3848
SELECT - - 62 DIV col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3848
SELECT - - 62 / col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ( - col1 ) * - ( - cor0.col2 * + col2 + 0 ) FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab2, tab1 AS cor0
----
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-3851
SELECT ALL 5 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL 5 / - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 48 AS col0 FROM tab0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-3853
SELECT DISTINCT + ( - tab0.col1 ) DIV + 93 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT + ( - tab0.col1 ) / + 93 FROM tab0
----
-1
0

query I rowsort
SELECT ALL ( + col0 ) * + col2 * tab0.col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT col2 + - col1 * - 3 AS col2 FROM tab0 AS cor0
----
291
292
355

query I rowsort
SELECT DISTINCT tab0.col0 * 52 FROM tab0, tab1 AS cor0
----
1248
1820
4628

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT - + col1 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - - col0 * col1 - - col2 * - col0 AS col0 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT + col1 * ( + cor0.col0 ) + + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL col0 - - ( col2 ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - 18 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
-18

query I rowsort
SELECT ALL 48 AS col0 FROM tab0
----
48
48
48

query I rowsort
SELECT + - ( - col2 ) * + col0 + - col1 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT + ( ( col0 ) ) DIV col1 + - col2 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-3865
SELECT + ( ( col0 ) ) / col1 + - col2 FROM tab1 AS cor0
----
-51
-54
-90

query I rowsort
SELECT cor0.col1 * - col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - + cor0.col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + + cor0.col0 * + col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - col2 * 26 AS col1 FROM tab1 AS cor0
----
-1404
-1482
-2496

query I rowsort
SELECT DISTINCT col0 + + 13 FROM tab2 AS cor0
----
20
91
92

query I rowsort
SELECT + col1 + + col2 + col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT ALL + cor0.col0 * 65 FROM tab2 AS cor0
----
455
5070
5135

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3873
SELECT - col0 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3873
SELECT - col0 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 * - col0 AS col2 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-7
-78
-79

query I rowsort
SELECT - cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT ALL + - ( col0 ) * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + ( + ( + col1 ) ) + - ( - col1 ) FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 17 col1 FROM tab1 AS cor0
----
20
81
97

query I rowsort
SELECT - + 4 + - col0 * - col2 FROM tab0 cor0
----
31
7294
788

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3881
SELECT + - cor0.col2 * + CAST( + 83 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to f7b12ec7caccdec38746428e845cebed

skipif mysql # not compatible
query I rowsort label-3881
SELECT + - cor0.col2 * + CAST ( + 83 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to f7b12ec7caccdec38746428e845cebed

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 45 + col1 FROM tab1 AS cor0
----
55
58
71

query I rowsort
SELECT 63 * - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-2103
-5255
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT + col2 * col0 + col0 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
162
3654
7686

skipif mysql # not compatible
query I rowsort label-3885
SELECT + col2 * col0 + col0 / cor0.col1 AS col0 FROM tab1 AS cor0
----
162
3654
7686

query I rowsort
SELECT + col2 * col0 + - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + + cor0.col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab2, tab0 AS cor0
----
-82

query I rowsort
SELECT cor0.col0 + - cor0.col2 * + cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to e26982675243b7b5211190910bcbbb0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 * + col1 * - col1 col1 FROM tab0
----
-310632
-347802
-395178

query I rowsort
SELECT ( + 79 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT - cor0.col2 + - col1 + - 79 * - cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-12878
-288259
-606829

query I rowsort
SELECT + 71 + - col2 AS col1 FROM tab0
----
-11
38
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3894
SELECT 2 + tab1.col0 + ( - col1 * col1 + + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT 2 + tab1.col0 + ( - col1 * col1 + + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + tab0.col1 * 20 + col2 AS col0 FROM tab0
----
1839
1993
2038

query I rowsort
SELECT DISTINCT - col2 - ( + col1 ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - col2 * - tab1.col2 + col0 FROM tab1
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-3899
SELECT + col2 - + col0 DIV + 85 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3899
SELECT + col2 - + col0 / + 85 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT DISTINCT + col0 DIV - 67 AS col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + col0 / - 67 AS col1 FROM tab2
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3901
SELECT + + cor0.col0 * + CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-3901
SELECT + + cor0.col0 * + CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 * - 68 * - tab0.col2 AS col2 FROM tab0
----
457232
68
74052

query I rowsort
SELECT ALL col2 + - ( + col1 ) * col0 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3904
SELECT - col2 * CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3904
SELECT - col2 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col1 * + ( col0 ) + - tab1.col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT col1 * 30 AS col0 FROM tab0
----
2580
2730
2910

query I rowsort
SELECT ALL + col1 + col0 + 41 FROM tab0 AS cor0
----
151
173
221

query I rowsort
SELECT - col1 + cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT cor0.col0 DIV 88 + - col1 + col2 * 76 * col0 AS col1 FROM tab0 AS cor0
----
2563
554558
60106

skipif mysql # not compatible
query I rowsort label-3909
SELECT cor0.col0 / 88 + - col1 + col2 * 76 * col0 AS col1 FROM tab0 AS cor0
----
2563
554558
60106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT + cor0.col1 + - ( col0 * col2 ) + + col2 FROM tab2 AS cor0
----
-131
-1943
-2947

query I rowsort
SELECT + cor0.col1 + - ( 48 ) FROM tab0 AS cor0
----
38
43
49

query I rowsort
SELECT tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ( col2 * col2 ) + - ( ( + col0 ) ) - + col2 * col0 FROM tab1
----
-463
1456
2751

query I rowsort
SELECT ALL + col0 - col2 AS col0 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3916
SELECT DISTINCT - 67 + - 5 - + tab1.col1 DIV - col1 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT - 67 + - 5 - + tab1.col1 / - col1 FROM tab1
----
-71

query I rowsort
SELECT + 17 * col1 FROM tab2 AS cor0
----
1003
289
527

query I rowsort
SELECT ( - 99 ) * col1 AS col2 FROM tab0 AS cor0
----
-8514
-9009
-9603

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3919
SELECT ALL - + CAST( 20 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-200
-260
-520

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - + CAST ( 20 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT DISTINCT + - ( + col0 ) * - ( - 67 ) AS col1 FROM tab0 AS cor0
----
-1608
-2345
-5963

onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT ALL 22 DIV + col0 AS col0 FROM tab1 cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-3921
SELECT ALL 22 / + col0 AS col0 FROM tab1 cor0
----
0
0
7

query I rowsort
SELECT ALL + col0 * + col0 + col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT + 37 - - col2 * 95 FROM tab1 AS cor0
----
5167
5452
9157

query I rowsort
SELECT DISTINCT 23 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2815
-74
-7439

query I rowsort
SELECT - 18 - col0 FROM tab2 AS cor0
----
-25
-96
-97

query I rowsort
SELECT DISTINCT - 82 * + col1 AS col2 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT - + col0 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + ( - col0 ) * ( col1 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT ALL - col1 * - col1 + + col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
289
3481
958

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - col1 * - col1 + + col2 / - col0 AS col2 FROM tab2 AS cor0
----
289
3481
958

query I rowsort
SELECT DISTINCT 64 * col0 FROM tab2 AS cor0
----
448
4992
5056

query I rowsort
SELECT col2 * + col1 * col1 AS col0 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * + col0 + - col1 * col2 * ( + col2 * col2 ) AS col0 FROM tab2 AS cor0
----
-605070
-818748
-984256

query I rowsort
SELECT col1 * + cor0.col0 + - cor0.col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3934
SELECT DISTINCT col2 * col1 DIV 73 AS col1 FROM tab2 AS cor0
----
11
21
8

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT col2 * col1 / 73 AS col1 FROM tab2 AS cor0
----
11
21
8

query I rowsort
SELECT ALL - ( col1 ) * + col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 37 * col1 + - col0 FROM tab0 AS cor0
----
3158
3278
3554

query I rowsort
SELECT - 18 + - col1 FROM tab2 AS cor0
----
-35
-49
-77

query I rowsort
SELECT DISTINCT col1 * cor0.col2 * col2 + col1 AS col2 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT - + col0 * + col0 + - col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT col1 * + ( + ( col2 ) ) FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL + cor0.col0 + + 10 AS col0 FROM tab0 AS cor0
----
34
45
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3942
SELECT - CAST( - 38 AS SIGNED ) FROM tab1
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3942
SELECT - CAST ( - 38 AS INTEGER ) FROM tab1
----
38
38
38

query I rowsort
SELECT 67 * - col0 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT DISTINCT - + 36 * + col1 * col1 AS col0 FROM tab2 AS cor0
----
-10404
-125316
-34596

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( ( col2 ) AS REAL ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT - 48 + cor0.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 90e08be2e89c4255a98b0f5aee2935d2

query I rowsort
SELECT ALL 82 + - col1 FROM tab0 AS cor0
----
-15
-4
-9

query I rowsort
SELECT col1 + - col2 * 64 AS col0 FROM tab1
----
-3430
-3638
-6131

query I rowsort
SELECT DISTINCT - 45 AS col1 FROM tab2
----
-45

query I rowsort
SELECT + tab0.col0 * - tab0.col0 AS col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3952
SELECT col1 * + cor0.col0 + + 67 DIV cor0.col0 AS col1 FROM tab0 cor0
----
2066
3396
8099

skipif mysql # not compatible
query I rowsort label-3952
SELECT col1 * + cor0.col0 + + 67 / cor0.col0 AS col1 FROM tab0 cor0
----
2066
3396
8099

query I rowsort
SELECT DISTINCT - 3 * cor0.col2 + 39 - cor0.col0 * col2 FROM tab2 cor0
----
-2067
-231
-3077

query I rowsort
SELECT - 79 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 3abaf25c7c70ca51adcfa7c848319730

onlyif mysql # use DIV operator for integer division
query I rowsort label-3955
SELECT ALL + + col0 * - col0 + + cor0.col0 DIV - col0 col2 FROM tab1 AS cor0
----
-10
-4097
-6401

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + + col0 * - col0 + + cor0.col0 / - col0 col2 FROM tab1 AS cor0
----
-10
-4097
-6401

query I rowsort
SELECT DISTINCT - col0 * col2 + - col1 AS col2 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT + - col0 * + col1 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT + col0 DIV - 44 AS col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT + col0 / - 44 AS col1 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT - col2 + col1 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3959
SELECT - col2 + col1 / col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT ALL + col2 DIV cor0.col1 - 74 * + cor0.col1 col2 FROM tab2 cor0
----
-1256
-2294
-4366

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + col2 / cor0.col1 - 74 * + cor0.col1 col2 FROM tab2 cor0
----
-1256
-2294
-4366

query I rowsort
SELECT DISTINCT - col1 + ( col0 ) * - cor0.col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT - col2 * + 60 AS col2 FROM tab0 AS cor0
----
-1980
-4920
-60

query I rowsort
SELECT ALL + col0 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - + col2 * 1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT + col0 + 27 DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3965
SELECT + col0 + 27 / col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL - col2 + ( + col0 ) * col0 AS col0 FROM tab2
----
22
6058
6203

query I rowsort
SELECT col1 * + 22 + + col2 FROM tab1 cor0
----
277
382
626

query I rowsort
SELECT + + col1 + - ( + col0 * col2 ) FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT col1 + col1 * col2 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col1 * + col0 FROM tab2 AS cor0
----
2686
434
9204

onlyif mysql # use DIV operator for integer division
query I rowsort label-3972
SELECT DISTINCT ( col1 ) * + cor0.col0 + + col2 + - col1 DIV + col1 FROM tab1 cor0
----
1135
131
696

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT ( col1 ) * + cor0.col0 + + col2 + - col1 / + col1 FROM tab1 cor0
----
1135
131
696

query I rowsort
SELECT ALL col0 * + 91 * - col1 + + col2 FROM tab0 cor0
----
-187791
-308944
-736927

query I rowsort
SELECT DISTINCT - 35 * 43 + col2 FROM tab1 AS cor0
----
-1409
-1448
-1451

query I rowsort
SELECT - col1 * - cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL 15 + 79 * - col0 FROM tab0 AS cor0
----
-1881
-2750
-7016

query I rowsort
SELECT DISTINCT 14 + + cor0.col0 FROM tab1, tab0 AS cor0
----
103
38
49

query I rowsort
SELECT ALL + col0 * + 7 AS col0 FROM tab1
----
21
448
560

query I rowsort
SELECT col1 * - col1 + + col2 * 92 * col2 AS col1 FROM tab1 AS cor0
----
267596
298808
847703

query I rowsort
SELECT - - col2 * - col2 + col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col1 * col0 col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + - 97 + - col2 * - cor0.col1 FROM tab2 AS cor0
----
1437
549
740

onlyif mysql # use DIV operator for integer division
query I rowsort label-3984
SELECT col0 DIV col1 - + col2 AS col2 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-3984
SELECT col0 / col1 - + col2 AS col2 FROM tab1 AS cor0
----
-51
-54
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3985
SELECT ALL tab2.col1 + - col1 + + tab2.col0 * + CAST( 99 AS SIGNED ) AS col0 FROM tab2
----
693
7722
7821

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL tab2.col1 + - col1 + + tab2.col0 * + CAST ( 99 AS INTEGER ) AS col0 FROM tab2
----
693
7722
7821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3986
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 59 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 59 FROM tab0
----
NULL

query I rowsort
SELECT - 59 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT + + 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT - 33 + + 41 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
8

query I rowsort
SELECT - ( - col1 ) + col1 * + ( col0 ) FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT col0 * col1 + 82 - - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-2
-2926
-6558

query I rowsort
SELECT + cor0.col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + tab1.col1 + 95 AS col0 FROM tab1
----
105
108
121

query I rowsort
SELECT ALL col2 + 14 AS col1 FROM tab1
----
110
68
71

query I rowsort
SELECT col0 * - 14 + col2 AS col2 FROM tab2
----
-1066
-1068
-71

query I rowsort
SELECT + col2 * + col0 + + col1 AS col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT + col2 * + col2 * + col0 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT ALL 29 DIV + col2 + col2 * + col2 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-3998
SELECT ALL 29 / + col2 + col2 * + col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT 35 * - 19 + col0 FROM tab1
----
-585
-601
-662

query I rowsort
SELECT col1 * tab1.col1 + col2 FROM tab1
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-4001
SELECT col0 + col0 DIV col2 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4001
SELECT col0 + col0 / col2 FROM tab0
----
24
70
90

query I rowsort
SELECT - cor0.col1 + col1 * - 91 FROM tab0 AS cor0
----
-7912
-8372
-8924

query I rowsort
SELECT - col2 * col0 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 35 col2 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4005
SELECT - + col1 DIV - cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4005
SELECT - + col1 / - cor0.col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 + - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT col2 + col0 * 4 + + 61 AS col2 FROM tab0 AS cor0
----
190
202
499

query I rowsort
SELECT ALL + - 46 AS col2 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT + - ( col2 ) * - ( + 7 * - col1 ) AS col1 FROM tab0 AS cor0
----
-19866
-52234
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 66 + - col1 col1 FROM tab1 cor0
----
-76
-79
-92

query I rowsort
SELECT ALL ( col0 ) * + ( col2 ) + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + col2 * col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col1 * - col2 + + col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + - ( + cor0.col1 ) * + 66 AS col0 FROM tab2 AS cor0
----
-1122
-2046
-3894

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4015
SELECT DISTINCT + col1 * col0 + CAST( cor0.col2 AS SIGNED ) * col1 * ( + col2 ) FROM tab1 AS cor0
----
120848
33130
75894

skipif mysql # not compatible
query I rowsort label-4015
SELECT DISTINCT + col1 * col0 + CAST ( cor0.col2 AS INTEGER ) * col1 * ( + col2 ) FROM tab1 AS cor0
----
120848
33130
75894

query I rowsort
SELECT + col2 * col0 * 78 FROM tab1 cor0
----
12636
284544
599040

query I rowsort
SELECT ALL + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 * + col1 col0 FROM tab1 AS cor0
----
-1144
-2288
-880

query I rowsort
SELECT col2 * + col0 + + col0 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-21
-2496
1738

query I rowsort
SELECT col2 - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT col1 * ( + tab0.col0 ) - + col1 FROM tab0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 66 col0 FROM tab0
----
2178
5412
66

query I rowsort
SELECT DISTINCT + - col0 * 30 * col1 + col1 + - ( + ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
-101754
-242961
-61867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4024
SELECT ALL col2 * col0 - ( + col0 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL col2 * col0 - ( + col0 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * ( + ( col1 ) ) col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - col2 + 61 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-454
-4784
-4857

query I rowsort
SELECT - + cor0.col2 * 75 AS col0 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT ALL col0 - 55 * - col0 AS col2 FROM tab2 cor0
----
392
4368
4424

query I rowsort
SELECT col2 * 24 - col0 * - 64 * 84 AS col0 FROM tab1 AS cor0
----
17424
345432
432384

onlyif mysql # use DIV operator for integer division
query I rowsort label-4031
SELECT ALL - + col1 * cor0.col2 + - col0 + col1 DIV - cor0.col0 AS col0 FROM tab0 cor0
----
-134
-2865
-7552

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL - + col1 * cor0.col2 + - col0 + col1 / - cor0.col0 AS col0 FROM tab0 cor0
----
-134
-2865
-7552

query I rowsort
SELECT DISTINCT + + 40 * - 53 + - col2 FROM tab1 AS cor0
----
-2174
-2177
-2216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - 17 col1 FROM tab1 AS cor0
----
27
30
43

query I rowsort
SELECT DISTINCT + 89 - + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1975
-3306
-8010

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 46 AS REAL ) + col1 / - col1 FROM tab0 cor0
----
45
45
45

query I rowsort
SELECT ALL + ( ( - col0 ) ) * + col0 + + 6 AS col1 FROM tab2 AS cor0
----
-43
-6078
-6235

query I rowsort
SELECT DISTINCT + 94 - 89 FROM tab0 AS cor0
----
5

query I rowsort
SELECT - - col1 * + 44 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1147
504
652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-96

query I rowsort
SELECT DISTINCT - col2 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT - - 38 + col1 * col0 FROM tab2 AS cor0
----
1381
255
4640

query I rowsort
SELECT ALL + col1 - 84 FROM tab2 AS cor0
----
-25
-53
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - col0 - + col0 * + ( + col1 ) col0 FROM tab0 AS cor0
----
-1296
-3395
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - ( 32 ) AS col1 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT - col2 + col2 - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4047
SELECT col2 DIV 29 + - col2 FROM tab2 AS cor0
----
-26
-27
-37

skipif mysql # not compatible
query I rowsort label-4047
SELECT col2 / 29 + - col2 FROM tab2 AS cor0
----
-26
-27
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4048
SELECT ( cor0.col0 ) * + col1 - CAST( - 52 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1160
1430
1716

skipif mysql # not compatible
query I rowsort label-4048
SELECT ( cor0.col0 ) * + col1 - CAST ( - 52 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1160
1430
1716

query I rowsort
SELECT ALL - - col0 * - 79 AS col2 FROM tab2 cor0
----
-553
-6162
-6241

query I rowsort
SELECT DISTINCT + - 44 * 62 FROM tab2 AS cor0
----
-2728

query I rowsort
SELECT 80 - col1 AS col2 FROM tab2 AS cor0
----
21
49
63

query I rowsort
SELECT - - col1 * col2 + - cor0.col1 - + col1 FROM tab1 AS cor0
----
1222
1352
550

query I rowsort
SELECT DISTINCT 74 + col2 FROM tab1
----
128
131
170

query I rowsort
SELECT + col0 * 28 AS col2 FROM tab1 AS cor0
----
1792
2240
84

query I rowsort
SELECT - cor0.col1 * 29 * col1 FROM tab0 AS cor0
----
-214484
-240149
-272861

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4056
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4057
SELECT cor0.col1 DIV - 36 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT cor0.col1 / - 36 AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - - col2 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL col0 * - 3 AS col0 FROM tab2
----
-21
-234
-237

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4060
SELECT - + cor0.col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT - + cor0.col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col1 + cor0.col1 * col0 * + col0 + col1 FROM tab0 AS cor0
----
109513
42226
712621

query I rowsort
SELECT col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( col0 * col0 + col2 + col2 )
----

query I rowsort
SELECT col2 + - col2 * + col0 AS col1 FROM tab0 WHERE NULL BETWEEN + col2 AND ( col1 )
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col1 - + col2 * + col0
----

query I rowsort
SELECT col1 * + cor0.col1 + col2 + + col2 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-319
151
1973

query I rowsort
SELECT + col2 + col1 AS col1 FROM tab2 WHERE NOT col2 * col2 <= col1
----
55
58
85

query I rowsort
SELECT ALL col1 + col0 * col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT col2 * - col0 + col0 * col2 * col0 AS col2 FROM tab2
----
1134
156156
234156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 + - col2 * col2 col1 FROM tab2
----
-1327
-572
-695

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL tab1.col1 * - col1 + + col0 AS col1 FROM tab1
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT ALL - col1 DIV col1 + + tab1.col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-4073
SELECT ALL - col1 / col1 + + tab1.col2 FROM tab1
----
53
56
95

query I rowsort
SELECT - col1 * tab0.col2 + - col1 AS col0 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT tab2.col2 + col1 * + col2 + + col0 AS col0 FROM tab2
----
1638
763
871

query I rowsort
SELECT DISTINCT col1 * col0 + col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT col2 + - col2 + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col2 * - col2 + col0 * col0 FROM tab0 cor0
----
-513
1197
1224

query I rowsort
SELECT + - col1 + col0 + + col2 FROM tab1 AS cor0
----
111
163
31

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + + col2 * - col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor0.col0 - + cor0.col0 * - col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL + cor0.col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + - cor0.col1 * + col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + col2 col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + 74 - col0 FROM tab1
----
-6
10
71

query I rowsort
SELECT - 88 * tab1.col2 * + col2 AS col0 FROM tab1
----
-256608
-285912
-811008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT - + 28 * col1 AS col2 FROM tab1 AS cor0
----
-280
-364
-728

query I rowsort
SELECT - col0 * - col0 + ( col0 ) FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + col2 + col0 * col1 AS col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT 7 - col0 AS col0 FROM tab1
----
-57
-73
4

query I rowsort
SELECT - col1 * 34 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT + 2 * col1 FROM tab0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4097
SELECT col2 + col2 * - CAST( col1 AS SIGNED ) + + tab2.col2 FROM tab2
----
-1482
-570
-783

skipif mysql # not compatible
query I rowsort label-4097
SELECT col2 + col2 * - CAST ( col1 AS INTEGER ) + + tab2.col2 FROM tab2
----
-1482
-570
-783

query I rowsort
SELECT - - cor0.col1 * + 44 + 98 AS col0 FROM tab2 AS cor0
----
1462
2694
846

query I rowsort
SELECT DISTINCT - col1 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 + col1 * col2 FROM tab0 AS cor0
----
131
2829
7469

query I rowsort
SELECT - col1 * + col1 + 22 AS col2 FROM tab1 AS cor0
----
-147
-654
-78

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 + - col2 col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / col2 NOT BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + tab1.col2 * - col2 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT col1 * col2 + - col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN col1 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4108
SELECT + col1 DIV tab1.col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4108
SELECT + col1 / tab1.col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 * - tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE NULL NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT col0 * col1 * + col0 + - col0 AS col1 FROM tab0
----
118790
49512
720722

query III rowsort
SELECT * FROM tab2 WHERE NULL > ( + col1 * - col1 * col0 + col0 / col0 )
----

query I rowsort
SELECT - - 88 * col2 - 40 AS col0 FROM tab0 AS cor0
----
2864
48
7176

query I rowsort
SELECT tab1.col1 AS col2 FROM tab1 WHERE + col1 IN ( - col0 )
----

query I rowsort
SELECT - col0 + col0 * - col2 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT ALL - col1 * + col1 * - col0 + col1 AS col2 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT ALL col2 * 85 FROM tab0 AS cor0
----
2805
6970
85

query I rowsort
SELECT DISTINCT col2 + 41 AS col1 FROM tab0 AS cor0
----
123
42
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4119
SELECT DISTINCT - col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-4119
SELECT DISTINCT - col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT + cor0.col1 * + col1 + + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
293
3482
961

skipif mysql # not compatible
query I rowsort label-4120
SELECT + cor0.col1 * + col1 + + col0 / col1 AS col0 FROM tab2 AS cor0
----
293
3482
961

query I rowsort
SELECT ALL - - col1 * col0 * + col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL - col0 + col2 * + col2 * - cor0.col1 AS col2 FROM tab1 cor0
----
-119888
-32554
-75819

onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT DISTINCT + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT + col0 / col2 AS col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL + - col1 + - ( col1 + col1 ) FROM tab0 AS cor0
----
-258
-273
-291

query I rowsort
SELECT cor0.col1 * + 57 + - col2 AS col2 FROM tab1 AS cor0
----
1428
513
645

query I rowsort
SELECT DISTINCT + col2 * col2 - - ( col2 ) FROM tab0
----
1122
2
6806

query I rowsort
SELECT - col2 * col2 + ( col0 ) - + col1 FROM tab1
----
-2939
-3195
-9149

query I rowsort
SELECT 51 + col2 * col2 FROM tab2
----
1495
727
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT cor0.col1 * 23 DIV 16 FROM tab0, tab2 cor0
----
9 values hashing to 9f0de2c0f6af362976a510ac9114cfa2

skipif mysql # not compatible
query I rowsort label-4129
SELECT cor0.col1 * 23 / 16 FROM tab0, tab2 cor0
----
9 values hashing to 9f0de2c0f6af362976a510ac9114cfa2

query I rowsort
SELECT ALL col2 * col1 - tab0.col0 AS col2 FROM tab0
----
2814
62
7373

query I rowsort
SELECT ALL - col0 + - 40 * col2 AS col1 FROM tab1
----
-2163
-2344
-3920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4132
SELECT - - col2 DIV ( - col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4132
SELECT - - col2 / ( - col1 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + 1 AS col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT col1 + 92 * - 31 FROM tab0 cor0
----
-2755
-2761
-2766

query I rowsort
SELECT ALL - - cor0.col1 + + col2 * - 36 * col1 AS col2 FROM tab2 cor0
----
-23239
-30101
-55165

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4136
SELECT + cor0.col0 - CAST( - cor0.col0 * col2 AS SIGNED ) FROM tab1 cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-4136
SELECT + cor0.col0 - CAST ( - cor0.col0 * col2 AS INTEGER ) FROM tab1 cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 + + col0 col0 FROM tab2 AS cor0
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + ( 70 ) col0 FROM tab1 AS cor0
----
44
57
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4139
SELECT - - col1 + + CAST( + 41 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-1338
-3558
-898

skipif mysql # not compatible
query I rowsort label-4139
SELECT - - col1 + + CAST ( + 41 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-1338
-3558
-898

query I rowsort
SELECT ALL + 52 AS col2 FROM tab0
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab1.col1 ) col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT - 92 AS col2 FROM tab0, tab0 AS cor0
----
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4143
SELECT CAST( - 55 AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
-17
-28
-29

skipif mysql # not compatible
query I rowsort label-4143
SELECT CAST ( - 55 AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
-17
-28
-29

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab0 cor1
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * - col1 * - col2 col0 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + ( - tab0.col2 ) - - ( - 72 ) * + col0 FROM tab0
----
-1761
-2521
-6490

query I rowsort
SELECT ALL cor0.col2 + - cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT cor0.col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - 84 + + col2 FROM tab0 AS cor0
----
-2
-51
-83

query I rowsort
SELECT DISTINCT + 87 + - col1 AS col2 FROM tab1 AS cor0
----
61
74
77

query I rowsort
SELECT DISTINCT - ( col2 * + col0 ) AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ( + col0 + + col1 ) AS col2 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4153
SELECT DISTINCT + - col0 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4153
SELECT DISTINCT + - col0 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL 2 + col0 * col1 FROM tab1 AS cor0
----
1042
642
80

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab2 cor0
----
81

query I rowsort
SELECT - + col2 * col0 * col1 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - 56 * cor0.col0 AS col2 FROM tab1 cor0
----
-168
-3584
-4480

query I rowsort
SELECT DISTINCT 42 + - col1 * - col0 FROM tab0 AS cor0
----
2106
3437
8141

query I rowsort
SELECT ALL + - 20 - - col0 FROM tab1 AS cor0
----
-17
44
60

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 DISTINCT - - col1 * col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT col2 * col2 + cor0.col0 * - cor0.col2 * col2 FROM tab2 AS cor0
----
-112632
-4374
-52052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 - - col1 col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - + col2 - + col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4165
SELECT - CAST( + col1 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-4165
SELECT - CAST ( + col1 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - col2 * - 9 * col2 + col2 + - cor0.col0 * + col1 FROM tab2 AS cor0
----
11691
1508
6371

onlyif mysql # use DIV operator for integer division
query I rowsort label-4167
SELECT DISTINCT + 31 + - 56 DIV - col0 AS col0 FROM tab1 cor0
----
31
49

skipif mysql # not compatible
query I rowsort label-4167
SELECT DISTINCT + 31 + - 56 / - col0 AS col0 FROM tab1 cor0
----
31
49

query I rowsort
SELECT + + 6 + - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1528
-640
-831

query I rowsort
SELECT DISTINCT + col2 * ( - col1 ) * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4170
SELECT - - cor0.col2 + + 25 DIV col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4170
SELECT - - cor0.col2 + + 25 / col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col1 * 45 + col2 FROM tab0
----
3903
4177
4366

onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT col1 * - ( - ( tab0.col2 ) ) + col0 DIV col1 col0 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4172
SELECT col1 * - ( - ( tab0.col2 ) ) + col0 / col1 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - ( 44 ) FROM tab2 cor0
----
-44
-44
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT + 76 DIV - col1 + + col0 * - col1 FROM tab2
----
-1347
-219
-4603

skipif mysql # not compatible
query I rowsort label-4174
SELECT + 76 / - col1 + + col0 * - col1 FROM tab2
----
-1347
-219
-4603

query I rowsort
SELECT 60 + tab1.col2 AS col0 FROM tab1
----
114
117
156

query I rowsort
SELECT DISTINCT - ( 26 ) * col0 AS col0 FROM tab1
----
-1664
-2080
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT 91 DIV 54 - col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-4177
SELECT 91 / 54 - col1 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT 19 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT + ( + 95 ) AS col1 FROM tab0
----
95
95
95

query I rowsort
SELECT + 64 + tab2.col0 AS col2 FROM tab2
----
142
143
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + 51 col1 FROM tab1
----
146
146
146

query I rowsort
SELECT DISTINCT + cor0.col2 * 30 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT - + ( cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4184
SELECT + 68 + 60 DIV - col2 AS col2 FROM tab1 AS cor0
----
67
67
68

skipif mysql # not compatible
query I rowsort label-4184
SELECT + 68 + 60 / - col2 AS col2 FROM tab1 AS cor0
----
67
67
68

query I rowsort
SELECT + 14 AS col2 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT col2 + - col2 * + col2 AS col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT + ( + cor0.col0 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ( + col2 ) * col2 - + col0 FROM tab0 AS cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col2 FROM tab2 AS cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * cor0.col2 col1 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT 73 FROM tab0, tab1 cor0, tab2 AS cor1
----
73

query I rowsort
SELECT DISTINCT tab0.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT + 79 FROM tab0, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + col0 + - 55 * + col2 AS col2 FROM tab0 cor0
----
-1791
-20
-4421

query I rowsort
SELECT + + col2 + - col2 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + ( + col1 ) FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - tab0.col0 + col1 + - tab0.col2 * - col0 AS col1 FROM tab0
----
7300
854
97

query I rowsort
SELECT cor0.col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ( - ( col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + tab0.col0 + - 17 + col2 AS col1 FROM tab0
----
154
19
40

query I rowsort
SELECT col1 * + 34 FROM tab2
----
1054
2006
578

query I rowsort
SELECT DISTINCT - - col1 * ( col2 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + col1 * - 31 FROM tab0
----
-2666
-2821
-3007

query I rowsort
SELECT DISTINCT - col1 * ( tab1.col1 ) AS col1 FROM tab1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - cor0.col1 * col1 col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT ( + 74 ) * - col0 + 61 + + 8 FROM tab2 AS cor0
----
-449
-5703
-5777

query I rowsort
SELECT DISTINCT 90 + 72 AS col1 FROM tab1 AS cor0
----
162

query I rowsort
SELECT ALL col0 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + col2 * col0 * - 34 AS col0 FROM tab1
----
-124032
-261120
-5508

query I rowsort
SELECT 94 * - 97 - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to eabae690f73d10fb87fa96c2624f676d

query I rowsort
SELECT ALL + 49 - 18 AS col2 FROM tab2
----
31
31
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4213
SELECT ALL CAST( NULL AS SIGNED ) - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL CAST ( NULL AS INTEGER ) - + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4214
SELECT col1 * col0 + col1 - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4214
SELECT col1 * col0 + col1 - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + tab0.col0 ) * col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - ( col1 ) * col2 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4217
SELECT + - CAST( + 34 AS SIGNED ) * - col0 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
128
2186
2733

skipif mysql # not compatible
query I rowsort label-4217
SELECT + - CAST ( + 34 AS INTEGER ) * - col0 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
128
2186
2733

query I rowsort
SELECT + + 3 FROM tab0 cor0
----
3
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4219
SELECT col2 + - CAST( - col2 AS SIGNED ) * + col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-4219
SELECT col2 + - CAST ( - col2 AS INTEGER ) * + col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + 81 FROM tab1, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT col2 + ( + 50 ) AS col0 FROM tab1 AS cor0
----
104
107
146

query I rowsort
SELECT DISTINCT - + col0 + 19 FROM tab2 AS cor0
----
-59
-60
12

query I rowsort
SELECT ALL + cor0.col1 + - 0 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( + col0 AS REAL ) * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT - + col2 * + col2 * - col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4226
SELECT - col1 + col1 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4226
SELECT - col1 + col1 / - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4227
SELECT ALL - cor0.col2 + 32 DIV 65 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - cor0.col2 + 32 / 65 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + col0 FROM tab2 cor0
----
0

query I rowsort
SELECT + 67 * - col2 FROM tab1 AS cor0
----
-3618
-3819
-6432

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 * - 63 + ( + col1 ) FROM tab0 AS cor0
----
36374
499114
77272

query I rowsort
SELECT - col2 * + cor0.col0 - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + col2 * - col2 * col0 + col1 * tab0.col0 FROM tab0
----
-24072
-590337
3360

query I rowsort
SELECT col0 - + 63 FROM tab2 AS cor0
----
-56
15
16

query I rowsort
SELECT DISTINCT - cor0.col2 - col2 * col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT DISTINCT - col1 * + ( col0 ) - - col2 DIV 80 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8098

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT - col1 * + ( col0 ) - - col2 / 80 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8098

query I rowsort
SELECT ALL cor0.col1 + - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT DISTINCT col0 * col1 DIV tab0.col0 - col0 AS col2 FROM tab0
----
2
62

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT col0 * col1 / tab0.col0 - col0 AS col2 FROM tab0
----
2
62

query I rowsort
SELECT 35 + col2 + col1 * - col2 AS col0 FROM tab1
----
-1117
-1315
-478

onlyif mysql # use DIV operator for integer division
query I rowsort label-4240
SELECT + col1 + - col1 DIV + tab1.col2 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4240
SELECT + col1 + - col1 / + tab1.col2 AS col1 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT ALL + - 18 * col1 + cor0.col1 + + col2 DIV 84 AS col2 FROM tab2 AS cor0
----
-1003
-289
-527

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL + - 18 * col1 + cor0.col1 + + col2 / 84 AS col2 FROM tab2 AS cor0
----
-1003
-289
-527

query I rowsort
SELECT + + 79 * ( col2 ) FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT DISTINCT + 43 + col0 * col0 FROM tab0 AS cor0
----
1268
619
7964

query I rowsort
SELECT + 18 * - col2 AS col1 FROM tab2 cor0
----
-468
-486
-684

query I rowsort
SELECT ALL col1 + - ( col2 ) * col2 AS col1 FROM tab0 cor0
----
-1003
-6633
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 * - ( + col1 * 85 ) col1 FROM tab2 AS cor0
----
118490
216070
411230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4247
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 32 col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 32 col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 + ( col1 ) * + cor0.col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - + 92 + ( col0 ) + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-78
64
66

query I rowsort
SELECT DISTINCT + col0 * + 73 FROM tab1 AS cor0
----
219
4672
5840

query I rowsort
SELECT + 52 + - col0 * + col2 FROM tab0 AS cor0
----
-7246
-740
17

query I rowsort
SELECT ALL + ( + 30 ) AS col0 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT cor0.col1 * ( - col2 ) + + col2 + col0 * cor0.col2 FROM tab2 AS cor0
----
-621
2394
520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4254
SELECT - + 21 + + col1 * - col1 * - CAST( 67 AS SIGNED ) col0 FROM tab2 cor0
----
19342
233206
64366

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4254
SELECT - + 21 + + col1 * - col1 * - CAST ( 67 AS INTEGER ) col0 FROM tab2 cor0
----
19342
233206
64366

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) FROM tab0, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - ( + 57 ) AS col0 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + - 41 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT - - ( col1 ) * col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT 76 + - col0 DIV col1 AS col0 FROM tab2
----
72
75
76

skipif mysql # not compatible
query I rowsort label-4259
SELECT 76 + - col0 / col1 AS col0 FROM tab2
----
72
75
76

query I rowsort
SELECT 89 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT ALL 80 * + col1 FROM tab0
----
6880
7280
7760

query I rowsort
SELECT ( - col1 * col1 ) + + col2 AS col0 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT 44 + col1 FROM tab2
----
103
61
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4264
SELECT - - CAST( cor0.col0 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif mysql # not compatible
query I rowsort label-4264
SELECT - - CAST ( cor0.col0 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT + 20 * col0 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
2236
3024
869

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT ALL 98 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-98

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL 98 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-98

query I rowsort
SELECT - + cor0.col1 + + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - cor0.col0 * + ( + col1 ) + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col1 * col1 + - col0 * + col2 AS col2 FROM tab1 cor0
----
-3548
-7511
514

query I rowsort
SELECT ALL + cor0.col0 * - col1 - - col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + col0 * 7 AS col0 FROM tab1 AS cor0
----
21
448
560

query I rowsort
SELECT ALL + col2 + + ( + col0 ) AS col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col2 * - col2 - 85 FROM tab0 cor0
----
-84
1004
6639

query I rowsort
SELECT ALL - col1 + - col0 * col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT + cor0.col0 + 62 * col1 AS col2 FROM tab1 AS cor0
----
1615
684
886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4278
SELECT ALL col1 + col0 * ( col0 ) * - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1128
-18922
-649431

skipif mysql # not compatible
query I rowsort label-4278
SELECT ALL col1 + col0 * ( col0 ) * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1128
-18922
-649431

onlyif mysql # use DIV operator for integer division
query I rowsort label-4279
SELECT - - col0 + + col2 DIV + col1 AS col2 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4279
SELECT - - col0 + + col2 / + col1 AS col2 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( - col0 ) col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col2 + col1 * + cor0.col2 FROM tab1 cor0
----
1344
1458
627

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT 93 + - col2 FROM tab1 cor0
----
-3
36
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT ALL + - col0 * 54 + col1 * + ( - col1 ) DIV cor0.col1 + - col2 * 81 FROM tab1 cor0
----
-12109
-4562
-8083

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + - col0 * 54 + col1 * + ( - col1 ) / cor0.col1 + - col2 * 81 FROM tab1 cor0
----
-12109
-4562
-8083

onlyif mysql # use DIV operator for integer division
query I rowsort label-4286
SELECT + cor0.col0 DIV - col2 + + cor0.col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-4286
SELECT + cor0.col0 / - col2 + + cor0.col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT col1 * col1 + col0 + col0 FROM tab1 cor0
----
228
329
682

query I rowsort
SELECT ALL col1 * col0 + - col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT 2 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # use DIV operator for integer division
query I rowsort label-4290
SELECT ALL + cor0.col1 + col1 DIV + 89 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + cor0.col1 + col1 / + 89 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - 61 * - col1 AS col1 FROM tab0 cor0
----
5246
5551
5917

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT ALL col2 DIV + col2 + col1 * 29 FROM tab0 AS cor0
----
2495
2640
2814

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL col2 / + col2 + col1 * 29 FROM tab0 AS cor0
----
2495
2640
2814

query I rowsort
SELECT 69 * cor1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d5da832cbfb586d8bf3a24a0264822a6

query I rowsort
SELECT + - 8 * + cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 988d0f685113fba08466f27f2900b7c2

query I rowsort
SELECT + ( + col1 ) + - ( + 35 ) * - tab2.col0 + + tab2.col1 AS col2 FROM tab2
----
2799
2848
307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 col0 FROM tab2, tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4297
SELECT ALL - CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * ( - col0 ) + cor0.col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + cor0.col1 + cor0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 742cb84003fd090efc5ed158b4c7e268

query I rowsort
SELECT ALL ( col0 + + col1 ) AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT - 67 * + col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT - - col2 + + 73 FROM tab0 cor0
----
106
155
74

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT 61 FROM tab1, tab0 AS cor0
----
61

query I rowsort
SELECT ALL + 17 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col1 FROM tab2
----
35
35
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT - - cor0.col0 DIV col2 AS col0 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4307
SELECT - - cor0.col0 / col2 AS col0 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT + 97 * + col0 AS col0 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT ALL 22 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT ALL + - col1 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + col1 * - col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT ALL 78 DIV + col2 FROM tab0
----
0
2
78

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL 78 / + col2 FROM tab0
----
0
2
78

query I rowsort
SELECT DISTINCT + ( - tab0.col1 ) AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + col0 * 7 FROM tab2 AS cor0
----
49
546
553

onlyif mysql # use DIV operator for integer division
query I rowsort label-4315
SELECT ALL + + col2 * col0 DIV 1 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL + + col2 * col0 / 1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + col2 + + 62 * col1 AS col0 FROM tab0 AS cor0
----
5365
5724
6015

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4317
SELECT - 17 + - col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT - 17 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * col1 col2 FROM tab0
----
-6536
-6916
-7372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * tab2.col2 col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - 13 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query I rowsort
SELECT col1 * - 27 * + 33 AS col0 FROM tab2
----
-15147
-27621
-52569

onlyif mysql # use DIV operator for integer division
query I rowsort label-4322
SELECT + cor0.col1 * - cor0.col1 DIV col1 + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT + cor0.col1 * - cor0.col1 / col1 + col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4323
SELECT - CAST( + 82 AS SIGNED ) * - cor0.col0 + col2 FROM tab0 cor0
----
2001
2871
7380

skipif mysql # not compatible
query I rowsort label-4323
SELECT - CAST ( + 82 AS INTEGER ) * - cor0.col0 + col2 FROM tab0 cor0
----
2001
2871
7380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4324
SELECT ALL + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - cor0.col0 ) AS col0 FROM tab2, tab1, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT - tab2.col2 * col2 * col2 AS col2 FROM tab2
----
-17576
-19683
-54872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4327
SELECT CAST( NULL AS SIGNED ) * - 42 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT CAST ( NULL AS INTEGER ) * - 42 + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - - 95 AS col0 FROM tab2
----
112
126
154

query I rowsort
SELECT col1 * col0 + + cor0.col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT + col2 + col0 + col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT - col1 * - 31 * - col2 FROM tab2 AS cor0
----
-20026
-25947
-47554

query I rowsort
SELECT - ( + ( + col1 ) ) * + 92 AS col2 FROM tab2 AS cor0
----
-1564
-2852
-5428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab1, tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + - 11 col2 FROM tab0
----
-12
-44
-93

query I rowsort
SELECT ALL - + col2 * 24 AS col2 FROM tab0 AS cor0
----
-1968
-24
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4337
SELECT + - col2 + + CAST( + col2 AS SIGNED ) * cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
207879
737184
8694

skipif mysql # not compatible
query I rowsort label-4337
SELECT + - col2 + + CAST ( + col2 AS INTEGER ) * cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
207879
737184
8694

query I rowsort
SELECT DISTINCT - col1 - + 10 FROM tab1 AS cor0
----
-20
-23
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-4339
SELECT DISTINCT - col1 DIV cor0.col1 + - cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
1224
575
7920

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT - col1 / cor0.col1 + - cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
1224
575
7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4340
SELECT + - cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4340
SELECT + - cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT DISTINCT + col2 DIV + 97 + 52 * + col2 FROM tab2 cor0
----
1352
1404
1976

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + col2 / + 97 + 52 * + col2 FROM tab2 cor0
----
1352
1404
1976

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL + col1 * + col0 - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + - 53 + - col1 AS col2 FROM tab1 AS cor0
----
-63
-66
-79

query I rowsort
SELECT ALL - - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4346
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT CAST ( NULL AS REAL ) + - col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( - col1 ) ) col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col1 + 34 FROM tab0 cor0
----
120
125
131

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col1 + col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - ( + col0 ) + cor0.col2 - - 9 * col0 AS col2 FROM tab1 cor0
----
569
736
78

query I rowsort
SELECT ALL cor0.col1 + 11 AS col2 FROM tab2 AS cor0
----
28
42
70

query I rowsort
SELECT tab1.col2 + 18 AS col1 FROM tab1
----
114
72
75

query I rowsort
SELECT ALL + ( col0 ) * - col0 + col0 + - col1 FROM tab0 AS cor0
----
-1287
-638
-7923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - cor0.col2 ) + col0 col1 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4355
SELECT DISTINCT + col0 + col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT + col0 + col1 / + col1 AS col2 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 66 col1 FROM tab0 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - ( col1 ) + + 65 FROM tab2 AS cor0
----
34
48
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT DISTINCT - col1 DIV col1 + + 29 AS col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT - col1 / col1 + + 29 AS col1 FROM tab0 AS cor0
----
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4359
SELECT ALL col1 + col0 - + CAST( NULL AS DECIMAL ) * - col2 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL col1 + col0 - + CAST ( NULL AS REAL ) * - col2 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 52 * col0 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT + + 99 * + col0 FROM tab1 AS cor0
----
297
6336
7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT 72 DIV 26 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4363
SELECT 72 / 26 FROM tab2
----
2
2
2

query I rowsort
SELECT ALL + col1 * + 77 AS col0 FROM tab1
----
1001
2002
770

query I rowsort
SELECT DISTINCT cor1.col1 * + 0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT tab0.col0 * tab0.col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - col2 - + col0 * ( col0 + + col2 * + col0 ) FROM tab0 AS cor0
----
-19617
-2451
-657525

query I rowsort
SELECT DISTINCT - - col1 + col2 * col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + - ( col0 ) - ( 92 ) FROM tab0 AS cor0
----
-116
-127
-181

query I rowsort
SELECT - + col1 * cor0.col0 - - ( - 5 + + col2 ) * ( - col1 * + col0 ) FROM tab2 AS cor0
----
-101244
-45662
-4991

query I rowsort
SELECT + + ( - 71 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT ALL + - col2 * + ( 70 ) AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT - + col0 * + ( 38 ) FROM tab1 AS cor0
----
-114
-2432
-3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 83 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4375
SELECT DISTINCT col0 + + col0 * - CAST( - col0 AS SIGNED ) FROM tab2
----
56
6162
6320

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT col0 + + col0 * - CAST ( - col0 AS INTEGER ) FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT cor0.col0 DIV + CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4376
SELECT cor0.col0 / + CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT + col1 * + 20 AS col2 FROM tab1 AS cor0
----
200
260
520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4378
SELECT DISTINCT - - col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - - col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 * 49 col1 FROM tab1 AS cor0
----
2620
2783
4691

onlyif mysql # use DIV operator for integer division
query I rowsort label-4380
SELECT ALL - - cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL - - cor0.col2 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + 45 * 2 FROM tab2 AS cor0
----
31
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT + col0 DIV 46 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4382
SELECT + col0 / 46 AS col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - col0 + - col0 + - col2 * - 61 AS col1 FROM tab0
----
-9
1965
4824

query I rowsort
SELECT ALL 54 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT ALL + + col0 * + 77 FROM tab2 AS cor0
----
539
6006
6083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( ( + col2 ) * - col0 ) col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - 53 + - col1 FROM tab0 AS cor0
----
-139
-144
-150

query I rowsort
SELECT + 72 + - col2 FROM tab1 AS cor0
----
-24
15
18

query I rowsort
SELECT ALL + 99 * cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
5372
5653
9517

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col2 + col0 * col0 AS col2 FROM tab1 AS cor0
----
15616
2925
7345

onlyif mysql # use DIV operator for integer division
query I rowsort label-4391
SELECT ALL 16 DIV - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL 16 / - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + 1 + col2 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT - + col1 + - col2 * col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT - 77 * - cor0.col0 + 62 AS col2 FROM tab2 AS cor0
----
601
6068
6145

query I rowsort
SELECT ( col1 ) * - 15 + + cor0.col1 FROM tab1 AS cor0
----
-140
-182
-364

query I rowsort
SELECT ALL - - 47 AS col2 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT ALL - cor0.col1 * + col2 + col0 * col1 FROM tab1 AS cor0
----
-1326
-208
70

query III rowsort
SELECT * FROM tab0 WHERE col1 <> NULL AND NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 * + col0 + + col2 FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-4401
SELECT ALL + col1 DIV tab0.col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL + col1 / tab0.col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - col0 * col2 FROM tab2 WHERE - col0 > NULL
----

query I rowsort
SELECT + col1 * - col2 + - col2 * col1 AS col0 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT ALL ( col1 + - col0 ) FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL - cor0.col2 + - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT + col1 DIV + col0 + col2 DIV + cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
58
63
97

skipif mysql # not compatible
query I rowsort label-4406
SELECT + col1 / + col0 + col2 / + cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
58
63
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 16 * - col1 * col2 FROM tab0
----
-119392
-1552
-45408

query I rowsort
SELECT ALL - 96 * col0 + + col0 + col1 FROM tab0 AS cor0
----
-2194
-3228
-8364

query I rowsort
SELECT DISTINCT cor0.col0 * col2 + + col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT ALL - - 67 AS col2 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT ALL - 62 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-55
16
17

query I rowsort
SELECT - - col2 + - col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - col1 * - col0 * col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
13616
2082
6457

onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT ALL tab0.col1 DIV - col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL tab0.col1 / - col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 * - col1 + + col0 col1 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT col1 * + col1 FROM tab0 WHERE NOT ( NULL ) <= ( NULL )
----

query I rowsort
SELECT - col1 + + col0 - col1 AS col1 FROM tab0
----
-148
-159
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4419
SELECT ALL + col0 DIV - tab1.col0 + + col2 * + col0 * + col2 FROM tab1
----
207935
737279
8747

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + col0 / - tab1.col0 + + col2 * + col0 * + col2 FROM tab1
----
207935
737279
8747

query I rowsort
SELECT ALL col0 * - tab2.col1 * + col2 FROM tab2
----
-119652
-51034
-5859

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) >= - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NULL <> ( + col0 / + col2 - col0 )
----

query I rowsort
SELECT col0 - col0 FROM tab2 WHERE col1 * + col2 * + col1 + col1 >= ( + col0 )
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + col0 AS col1 FROM tab0 WHERE NOT col2 + col0 < - col1
----
178
48
70

query I rowsort
SELECT + col1 * - tab1.col1 * + col2 - + col0 AS col1 FROM tab1
----
-16304
-36507
-5764

query I rowsort
SELECT col0 * col2 + - col2 * - col0 FROM tab1
----
15360
324
7296

query I rowsort
SELECT DISTINCT - col2 * col0 + col1 * col0 FROM tab2
----
-1659
2574
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT - tab1.col1 * col2 + + col1 DIV + col2 AS col0 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4428
SELECT - tab1.col1 * col2 + + col1 / + col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col0 * col1 * + col0 AS col0 FROM tab1
----
234
40960
83200

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT ALL + tab2.col2 * - col2 + - col0 AS col0 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT ALL - 90 * col0 AS col0 FROM tab2 AS cor0
----
-630
-7020
-7110

query I rowsort
SELECT 8 * - col1 FROM tab2 AS cor0
----
-136
-248
-472

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) IN ( - col2 / - col1 )
----

query I rowsort
SELECT ALL + col2 * col0 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT - col2 * col0 + - 23 FROM tab0 AS cor0
----
-58
-7321
-815

query I rowsort
SELECT - col2 * + col1 * + col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) = - col1 + - cor0.col1 * - col0 * col0 + col0 * col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= - col0 - cor0.col2
----

query I rowsort
SELECT DISTINCT + col1 + - col1 + col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col1 + tab2.col0 AS col0 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col1 col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col1 AND col2 / col1 + + col1
----

query I rowsort
SELECT col2 * + col0 * + col0 - col1 * + col0 FROM tab0
----
-2170
16944
641423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + tab0.col1 * - col0 col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT DISTINCT tab1.col2 DIV + tab1.col2 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT tab1.col2 / + tab1.col2 AS col0 FROM tab1
----
1

query I rowsort
SELECT - col0 * col0 * col1 AS col2 FROM tab0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT DISTINCT - col0 * col0 DIV col1 FROM tab2
----
-1
-103
-367

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - col0 * col0 / col1 FROM tab2
----
-1
-103
-367

query I rowsort
SELECT ALL + col2 + col1 + tab0.col1 FROM tab0 WHERE NOT - col2 * col1 - tab0.col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( col0 ) <= ( col0 * - col0 * + col1 )
----
86
91
97

query I rowsort
SELECT ALL col2 * + col1 * col0 + - col1 * - col1 FROM tab1
----
100009
36580
4888

query I rowsort
SELECT ( col2 ) + - col0 * - col0 AS col1 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL - col0 * col2 + col0 * 7 FROM tab2
----
-140
-1482
-2449

query I rowsort
SELECT + 6 + 69 * - col0 FROM tab0
----
-1650
-2409
-6135

query I rowsort
SELECT + col0 + col2 * + 76 AS col2 FROM tab0 AS cor0
----
111
2532
6321

onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT ALL + col0 DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + col0 / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 72 + + col1 FROM tab0
----
158
163
169

onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT - col2 DIV col1 + - col0 FROM tab2
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-4461
SELECT - col2 / col1 + - col0 FROM tab2
----
-7
-78
-81

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + col0 * cor0.col2 + ( + col2 ) * col2 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT DISTINCT 40 * - col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT DISTINCT + ( - col1 ) + 91 AS col0 FROM tab0 cor0
----
-6
0
5

query I rowsort
SELECT + 25 * cor0.col0 + + col0 FROM tab1 cor0
----
1664
2080
78

query I rowsort
SELECT ALL 79 FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT col0 * - tab0.col2 + + 50 * - tab0.col0 * col0 + 14 FROM tab0
----
-29578
-403334
-61271

query I rowsort
SELECT DISTINCT + col0 * col1 - - col1 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4470
SELECT ALL + col0 + - col2 * tab1.col2 DIV + tab1.col0 AS col2 FROM tab1
----
-35
-969
14

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL + col0 + - col2 * tab1.col2 / + tab1.col0 AS col2 FROM tab1
----
-35
-969
14

query I rowsort
SELECT + col1 + col1 * col0 AS col2 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT DISTINCT col0 DIV - col1 - - col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT col0 / - col1 - - col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - col0 * + col1 - + col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT - - col2 + 93 * 32 FROM tab1 cor0
----
3030
3033
3072

onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT col1 + - tab2.col1 DIV 98 AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-4475
SELECT col1 + - tab2.col1 / 98 AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - ( col0 ) + col1 * ( + col2 ) FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-4477
SELECT ALL 10 DIV + ( + col2 ) + ( 85 ) FROM tab1 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL 10 / + ( + col2 ) + ( 85 ) FROM tab1 AS cor0
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4478
SELECT ALL + 63 * + 45 * col1 + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
167265
48195
87888

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + 63 * + 45 * col1 + col2 / col0 AS col2 FROM tab2 AS cor0
----
167265
48195
87888

query I rowsort
SELECT + + col1 * + ( + col0 ) + + 24 * + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-170989
-66048
1067

query I rowsort
SELECT ALL + ( - ( col2 ) ) * 45 + + col1 AS col2 FROM tab0 cor0
----
-1399
-3599
52

query I rowsort
SELECT ALL - ( col2 ) + col1 * col0 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + + ( - col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 15 + 24 AS col0 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4484
SELECT DISTINCT - - CAST( col2 AS SIGNED ) DIV - col0 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) / - col0 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT - 52 * + cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
-1683
-4182
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 53 * col1 + cor0.col1 col0 FROM tab0 cor0
----
4644
4914
5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-4487
SELECT - - cor0.col2 * 83 DIV col1 FROM tab0 AS cor0
----
0
31
74

skipif mysql # not compatible
query I rowsort label-4487
SELECT - - cor0.col2 * 83 / col1 FROM tab0 AS cor0
----
0
31
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 3 * 34 + col1 * col1 col2 FROM tab2 AS cor0
----
187
3379
859

query I rowsort
SELECT DISTINCT + col1 - + col2 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT col0 * col0 + col0 - col0 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT - + ( ( col2 ) ) * - 41 + + col0 AS col0 FROM tab2 cor0
----
1114
1144
1637

query I rowsort
SELECT ALL - 51 + col0 * + col2 AS col2 FROM tab2 AS cor0
----
138
1977
2951

query I rowsort
SELECT DISTINCT - 31 * col2 * col2 AS col2 FROM tab1 AS cor0
----
-100719
-285696
-90396

query I rowsort
SELECT - 52 * cor0.col2 FROM tab2 AS cor0
----
-1352
-1404
-1976

query I rowsort
SELECT col0 * - tab1.col1 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + 69 AS col1 FROM tab0
----
69
69
69

query I rowsort
SELECT DISTINCT 72 * + tab1.col0 FROM tab1
----
216
4608
5760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4499
SELECT ALL CAST( col2 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL CAST ( col2 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 25 * - col0 + - col0 * col2 FROM tab0 cor0
----
-192
-5073
840

query I rowsort
SELECT DISTINCT 88 + - 53 FROM tab2 AS cor0
----
35

query I rowsort
SELECT + col0 + col1 * col1 AS col1 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT - col2 * + col2 + + col0 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-2720
-2853
904

query I rowsort
SELECT 82 + col2 FROM tab2 AS cor0
----
108
109
120

query I rowsort
SELECT 65 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col1 ) col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT col2 DIV - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-4507
SELECT col2 / - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT + - col1 + cor0.col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + 69 AS col0 FROM tab2 AS cor0
----
69
69
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT - + cor0.col0 DIV cor0.col1 + + cor0.col1 AS col2 FROM tab2 cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-4510
SELECT - + cor0.col0 / cor0.col1 + + cor0.col1 AS col2 FROM tab2 cor0
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col0 col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - 71 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT ( 76 ) * - col0 * col0 AS col0 FROM tab1
----
-311296
-486400
-684

query I rowsort
SELECT ALL 65 + tab2.col0 * + col2 FROM tab2
----
2093
254
3067

query I rowsort
SELECT DISTINCT + 17 + tab2.col0 AS col0 FROM tab2
----
24
95
96

query I rowsort
SELECT ALL + 19 + - col2 * tab1.col1 + - col1 AS col1 FROM tab1
----
-1242
-1411
-561

query I rowsort
SELECT ALL 20 * + 50 + tab2.col0 AS col2 FROM tab2
----
1007
1078
1079

onlyif mysql # use DIV operator for integer division
query I rowsort label-4518
SELECT ALL - - col2 DIV - CAST( ( col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - - col2 / - CAST ( ( col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col0 + col2 * - col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - 26 * + col2 * col0 FROM tab0
----
-189748
-20592
-910

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( - col2 ) - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-4523
SELECT DISTINCT col2 DIV 33 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-4523
SELECT DISTINCT col2 / 33 FROM tab1 AS cor0
----
1
2

query I rowsort
SELECT ALL - + col2 + - col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 85ee76cb25486c31b8f0abeb3f8683dc

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to a1a9b1c1e9ca8f59e89e834a7cdebbd0

query I rowsort
SELECT + col1 * col0 + col0 AS col2 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT + + cor0.col0 + - ( + col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col2 * - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + - col0 * 50 FROM tab1 AS cor0
----
-150
-3200
-4000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * col1 + - col2 * ( - 41 ) col1 FROM tab0 AS cor0
----
10642
7801
8233

query I rowsort
SELECT - ( col2 ) * - tab1.col1 + - col2 AS col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT col1 + col1 * col2 * + col1 + tab2.col0 AS col2 FROM tab2
----
11078
25985
90643

query I rowsort
SELECT cor0.col0 * + col0 + 17 FROM tab2 cor0
----
6101
6258
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4535
SELECT col2 * col2 + - CAST( 10 AS SIGNED ) FROM tab2 cor0
----
1434
666
719

skipif mysql # not compatible
query I rowsort label-4535
SELECT col2 * col2 + - CAST ( 10 AS INTEGER ) FROM tab2 cor0
----
1434
666
719

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab2, tab0 AS cor0
----
47

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4539
SELECT DISTINCT + 10 * tab1.col2 * CAST( - col2 + - col1 AS SIGNED ) FROM tab1
----
-104640
-38190
-43200

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT + 10 * tab1.col2 * CAST ( - col2 + - col1 AS INTEGER ) FROM tab1
----
-104640
-38190
-43200

query I rowsort
SELECT ALL + 24 * tab0.col2 FROM tab0
----
1968
24
792

query I rowsort
SELECT + 55 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-4
24
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 * - cor0.col0 col1 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT 10 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT 25 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT DISTINCT col1 + + ( col2 + - col1 * col1 ) AS col2 FROM tab2 AS cor0
----
-234
-3396
-903

query I rowsort
SELECT col0 * - col0 - + cor0.col2 AS col1 FROM tab2 cor0
----
-6110
-6279
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4547
SELECT col0 * tab1.col0 DIV col2 + col2 FROM tab1
----
128
162
54

skipif mysql # not compatible
query I rowsort label-4547
SELECT col0 * tab1.col0 / col2 + col2 FROM tab1
----
128
162
54

query I rowsort
SELECT - col0 * + tab2.col1 + + 43 AS col2 FROM tab2
----
-1300
-174
-4559

query I rowsort
SELECT DISTINCT + tab0.col1 - - col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - col2 + ( col2 * - cor0.col2 ) FROM tab1 AS cor0
----
-2970
-3306
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 + - tab2.col1 * tab2.col1 + - col2 * + 97 col2 FROM tab2
----
-2522
-2619
-3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 37 + - col2 col2 FROM tab2 AS cor0
----
232
2860
2885

query I rowsort
SELECT - col2 - 55 FROM tab1 AS cor0
----
-109
-112
-151

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col1 * col0 + - col1 * + 51 AS col0 FROM tab1 AS cor0
----
-14183
-3354
-6910

query I rowsort
SELECT DISTINCT + + col0 * 42 AS col0 FROM tab0 AS cor0
----
1008
1470
3738

query I rowsort
SELECT - col2 + + ( - col2 ) FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT - col0 * + col0 + - 73 + - col1 * col0 FROM tab0 cor0
----
-16093
-2713
-4693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 75 + 70 col0 FROM tab2 AS cor0
----
138
66
67

query I rowsort
SELECT 53 * + 98 AS col0 FROM tab1 AS cor0
----
5194
5194
5194

query I rowsort
SELECT - ( + col0 ) * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( cor0.col0 ) col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + 75 AS col0 FROM tab0 cor0
----
-75
-75
-75

query I rowsort
SELECT - cor0.col1 * + cor0.col2 + 14 * + 21 FROM tab2 cor0
----
-1240
-352
-543

query I rowsort
SELECT DISTINCT + 89 * + col1 AS col1 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT - - 91 - + col0 FROM tab1 AS cor0
----
11
27
88

query I rowsort
SELECT - - col2 * col0 - col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + ( col1 ) + - ( col0 * col2 ) FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + col0 + + cor0.col1 * 84 FROM tab1 AS cor0
----
1172
2187
904

onlyif mysql # use DIV operator for integer division
query I rowsort label-4569
SELECT - - col0 + + col1 DIV col0 + - col1 AS col2 FROM tab1 AS cor0
----
-15
54
67

skipif mysql # not compatible
query I rowsort label-4569
SELECT - - col0 + + col1 / col0 + - col1 AS col2 FROM tab1 AS cor0
----
-15
54
67

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT ( ( col2 ) ) AS col0 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + + ( col0 ) - - col2 * + col0 col1 FROM tab0 AS cor0
----
105
7476
840

query I rowsort
SELECT DISTINCT + cor0.col1 * 23 * cor0.col0 AS col0 FROM tab0 AS cor0
----
186277
47472
78085

query I rowsort
SELECT ALL - + ( 83 ) AS col1 FROM tab0 AS cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * - col0 + + col2 * - cor0.col2 * - col0 col1 FROM tab1 cor0
----
207296
736240
8670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4576
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) - - cor0.col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT + - CAST ( NULL AS REAL ) - - cor0.col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT col1 DIV col1 - col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4577
SELECT col1 / col1 - col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4579
SELECT ALL - ( + tab1.col2 ) * col2 DIV col2 + col1 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - ( + tab1.col2 ) * col2 / col2 + col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - 5 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL col0 + - 99 AS col1 FROM tab2
----
-20
-21
-92

query I rowsort
SELECT ALL - col2 + + 23 + col2 FROM tab0
----
23
23
23

query I rowsort
SELECT ALL ( 10 * col1 ) + ( col1 + tab1.col0 ) AS col1 FROM tab1
----
174
223
289

onlyif mysql # use DIV operator for integer division
query I rowsort label-4584
SELECT DISTINCT ( + 40 ) + col0 DIV - tab0.col1 AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT ( + 40 ) + col0 / - tab0.col1 AS col2 FROM tab0
----
40

query I rowsort
SELECT - ( col2 ) - col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT 16 + col2 AS col2 FROM tab0
----
17
49
98

query I rowsort
SELECT DISTINCT - + 42 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT + 37 + 75 FROM tab0 AS cor0
----
112
112
112

query I rowsort
SELECT 25 * - col2 + col1 * tab0.col0 + 34 AS col1 FROM tab0
----
1273
3404
6083

query I rowsort
SELECT col2 + 96 AS col2 FROM tab2
----
122
123
134

query I rowsort
SELECT ALL - 66 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT ALL - 56 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4593
SELECT ALL - + col1 * ( + col1 + cor0.col2 ) DIV ( - col0 ) FROM tab0 cor0
----
176
271
426

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL - + col1 * ( + col1 + cor0.col2 ) / ( - col0 ) FROM tab0 cor0
----
176
271
426

query I rowsort
SELECT + col0 * 94 FROM tab2 AS cor0
----
658
7332
7426

onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT + col2 DIV + col1 + - col2 FROM tab2
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-4595
SELECT + col2 / + col1 + - col2 FROM tab2
----
-26
-27
-36

query I rowsort
SELECT DISTINCT + 99 * - col0 AS col2 FROM tab1
----
-297
-6336
-7920

query I rowsort
SELECT + 10 + tab0.col1 AS col1 FROM tab0
----
101
107
96

query I rowsort
SELECT + col0 * col2 * - ( col2 ) - - col0 * - 40 * tab0.col0 FROM tab0
----
-49035
-49176
-915276

query I rowsort
SELECT col1 * - 49 AS col2 FROM tab0 AS cor0
----
-4214
-4459
-4753

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4600
SELECT DISTINCT + col0 + CAST( 15 AS SIGNED ) AS col0 FROM tab2 cor0
----
22
93
94

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT + col0 + CAST ( 15 AS INTEGER ) AS col0 FROM tab2 cor0
----
22
93
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT ALL + + col2 + - ( + col2 ) DIV - col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL + + col2 + - ( + col2 ) / - col1 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT ALL + col2 * 25 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab1, tab0 AS cor0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + 77 col0 FROM tab1 AS cor0
----
131
134
173

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT ALL + col0 DIV tab2.col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + col0 / tab2.col0 AS col1 FROM tab2
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4606
SELECT ALL + col0 * + CAST( - col0 AS SIGNED ) * - col2 FROM tab2
----
1323
158184
237158

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + col0 * + CAST ( - col0 AS INTEGER ) * - col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + - 37 + 28 + - col2 AS col0 FROM tab0 AS cor0
----
-10
-42
-91

query I rowsort
SELECT DISTINCT - - col0 + 77 FROM tab0 AS cor0
----
101
112
166

query I rowsort
SELECT + + ( - cor0.col1 ) + cor0.col2 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT - col1 * 22 + cor0.col0 * ( col0 + col2 ) DIV - 31 AS col2 FROM tab2 AS cor0
----
-1559
-672
-689

skipif mysql # not compatible
query I rowsort label-4611
SELECT - col1 * 22 + cor0.col0 * ( col0 + col2 ) / - 31 AS col2 FROM tab2 AS cor0
----
-1559
-672
-689

query I rowsort
SELECT + + col2 * + col0 + cor0.col1 * 72 AS col2 FROM tab0 AS cor0
----
13850
6984
7019

query I rowsort
SELECT DISTINCT - + 50 * col0 FROM tab2 AS cor0
----
-350
-3900
-3950

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT 22 * tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
220
286
572

query I rowsort
SELECT ALL 35 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT + ( + col1 ) DIV cor0.col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4617
SELECT + ( + col1 ) / cor0.col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ( - ( col1 ) ) + + cor0.col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT 9 * - col1 * 41 AS col1 FROM tab2 cor0
----
-11439
-21771
-6273

query I rowsort
SELECT ALL - 61 * col2 FROM tab1 AS cor0
----
-3294
-3477
-5856

skipif mysql # not compatible
query I rowsort
SELECT ALL ( + col1 ) * CAST ( + col0 AS REAL ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * col0 col2 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT ALL 13 + cor0.col2 FROM tab1 AS cor0
----
109
67
70

query I rowsort
SELECT DISTINCT + col0 * - col1 - col0 * 33 * col0 AS col0 FROM tab1 AS cor0
----
-135808
-212240
-375

query I rowsort
SELECT + + ( - cor0.col1 ) * ( col1 ) + - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL - col1 * col0 + - col2 * + col2 FROM tab0 AS cor0
----
-14823
-3153
-3396

query I rowsort
SELECT + + col2 + cor0.col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - 21 * col2 + ( 71 ) AS col1 FROM tab1 AS cor0
----
-1063
-1126
-1945

query I rowsort
SELECT ALL 49 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT col2 * col0 * - col2 AS col1 FROM tab0
----
-26136
-35
-598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4631
SELECT CAST( NULL AS SIGNED ) + + col1 - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT CAST ( NULL AS INTEGER ) + + col1 - - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 - - col1 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT col1 * col1 * cor0.col2 AS col0 FROM tab2 cor0
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4634
SELECT CAST( NULL AS DECIMAL ) + 17 / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT CAST ( NULL AS REAL ) + 17 / col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 41 + col2 + + col1 * + col1 AS col0 FROM tab2 cor0
----
1029
3548
368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4636
SELECT - CAST( NULL AS DECIMAL ) + + ( col2 ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4636
SELECT - CAST ( NULL AS REAL ) + + ( col2 ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + - 50 + + col2 FROM tab0 AS cor0
----
-14
121
7

query I rowsort
SELECT col0 * col1 + col1 + 86 FROM tab1 AS cor0
----
1139
190
736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4639
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + cor0.col0 + - col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - col1 ) * ( col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - + 86 * col2 AS col1 FROM tab2 AS cor0
----
-2236
-2322
-3268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - ( + cor0.col1 ) col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - 31 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col1 col0 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 - - 45 col1 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4647
SELECT ALL + CAST( NULL AS SIGNED ) + tab1.col1 col2 FROM tab1, tab1 cor0, tab2, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4647
SELECT ALL + CAST ( NULL AS INTEGER ) + tab1.col1 col2 FROM tab1, tab1 cor0, tab2, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - ( - 83 ) + - col1 AS col2 FROM tab2 AS cor0
----
24
52
66

query I rowsort
SELECT + + cor0.col2 + - 19 * + col1 FROM tab2 AS cor0
----
-1095
-285
-562

query I rowsort
SELECT col2 + - col1 * col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT 96 * 24 - col0 * 50 AS col1 FROM tab1 cor0
----
-1696
-896
2154

onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT col2 DIV 32 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4652
SELECT col2 / 32 AS col2 FROM tab2
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4653
SELECT col2 DIV + tab2.col1 col0 FROM tab2
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4653
SELECT col2 / + tab2.col1 col0 FROM tab2
----
0
0
2

query I rowsort
SELECT - + 70 * - col0 AS col0 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col1 + - 83 AS col0 FROM tab0 AS cor0
----
-169
-174
-180

query I rowsort
SELECT - 86 FROM tab1 cor0
----
-86
-86
-86

query I rowsort
SELECT DISTINCT - - 25 FROM tab1 AS cor0
----
25

query I rowsort
SELECT - + 61 + + ( + col2 ) * col2 FROM tab0 AS cor0
----
-60
1028
6663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 * - cor0.col0 col1 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT ( col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT ALL + - col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4662
SELECT ALL + - col0 / col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + 3 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4664
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / cor0.col0 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT - CAST ( NULL AS REAL ) / cor0.col0 AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - + col2 + 86 + + col0 AS col2 FROM tab2 AS cor0
----
127
138
66

query I rowsort
SELECT ALL - 6 FROM tab0, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT ( + tab2.col2 ) * - col2 + + 88 AS col1 FROM tab2
----
-1356
-588
-641

query I rowsort
SELECT + 12 * - col2 + - cor0.col0 FROM tab0 AS cor0
----
-1073
-420
-47

query I rowsort
SELECT - 25 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4671
SELECT DISTINCT tab1.col2 + col2 + - col0 * col0 DIV col2 FROM tab1
----
108
126
43

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT tab1.col2 + col2 + - col0 * col0 / col2 FROM tab1
----
108
126
43

query I rowsort
SELECT col0 * - col0 - - col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT + tab1.col2 * - tab1.col2 * - 10 - col0 FROM tab1
----
29157
32426
92080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4674
SELECT col1 / CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4674
SELECT col1 / CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * ( - ( col2 ) * - col2 ) FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT + + col0 * 9 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
315
65682
7128

query I rowsort
SELECT ALL ( - col1 ) + 59 * - col1 * - cor0.col0 FROM tab0 AS cor0
----
121690
200208
477750

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4678
SELECT CAST( NULL AS SIGNED ) + cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4678
SELECT CAST ( NULL AS INTEGER ) + cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 68 + + col2 col2 FROM tab0 AS cor0
----
-35
-67
14

query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 * 46 * col1 AS col0 FROM tab2 AS cor0
----
10009
211718
61816

query I rowsort
SELECT ALL 56 * cor0.col0 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT DISTINCT col1 * col1 + - cor0.col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + - cor0.col0 + col0 + - 2 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT 60 * col1 FROM tab0 cor0
----
5160
5460
5820

query I rowsort
SELECT ALL + + col1 * - col2 + 2 * 23 AS col0 FROM tab2 cor0
----
-1488
-600
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + col1 - 59 col2 FROM tab2 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * + col1 col2 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT ALL - col2 + col2 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT col0 DIV 54 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-4689
SELECT col0 / 54 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-90
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT ALL - + col1 DIV - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL - + col1 / - col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 * col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT + cor0.col2 * + 91 + col2 FROM tab2 AS cor0
----
2392
2484
3496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT DISTINCT cor1.col0 DIV + tab1.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
0
1
2
26

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT cor1.col0 / + tab1.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
0
1
2
26

query I rowsort
SELECT ALL + col2 * ( - col1 ) - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - col0 * 46 * + col1 FROM tab2 AS cor0
----
-211692
-61778
-9982

query I rowsort
SELECT 41 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - 15 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1328
202
4587

query I rowsort
SELECT ALL + - col0 - 25 FROM tab0 AS cor0
----
-114
-49
-60

query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab0, tab0 AS cor0
----
37

query I rowsort
SELECT DISTINCT + + col1 * 30 FROM tab2 cor0
----
1770
510
930

query I rowsort
SELECT + cor0.col0 + - 15 * - col2 AS col0 FROM tab1 AS cor0
----
1520
813
919

query I rowsort
SELECT ALL + - ( - cor0.col2 ) + + col0 * + 17 AS col0 FROM tab0 AS cor0
----
1595
441
596

query I rowsort
SELECT DISTINCT - cor0.col0 - col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT - tab1.col1 * + col1 + col1 AS col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT 16 * col1 FROM tab2 AS cor0
----
272
496
944

query I rowsort
SELECT + col0 * col1 * col1 - + 74 FROM tab2
----
22757
271444
6653

query I rowsort
SELECT + tab0.col2 + tab0.col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + 66 * - col0 + + col0 AS col1 FROM tab1 cor0
----
-195
-4160
-5200

query I rowsort
SELECT DISTINCT - col1 + + 37 AS col2 FROM tab2 AS cor0
----
-22
20
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 43 col1 FROM tab2
----
-102
-60
-74

query I rowsort
SELECT + 5 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT ALL 95 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL - ( + 28 ) AS col1 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT ALL - 79 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

query I rowsort
SELECT DISTINCT - 92 * + col2 AS col1 FROM tab2
----
-2392
-2484
-3496

query I rowsort
SELECT ALL - col2 * - col0 + 92 * - col1 + col2 FROM tab0 AS cor0
----
-7087
-8888
-992

query I rowsort
SELECT DISTINCT - ( col0 ) * + col1 - + col1 * cor0.col0 * col1 FROM tab1 AS cor0
----
-14560
-2106
-7040

query I rowsort
SELECT ( col0 ) + 44 AS col2 FROM tab1 AS cor0
----
108
124
47

query I rowsort
SELECT col0 * - ( 42 ) FROM tab2
----
-294
-3276
-3318

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT col0 * + col1 - - col0 DIV col0 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-4721
SELECT col0 * + col1 - - col0 / col0 FROM tab1 AS cor0
----
1041
641
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 19 * ( col2 ) + + 70 col0 FROM tab0
----
1719
186
783

onlyif mysql # use DIV operator for integer division
query I rowsort label-4723
SELECT DISTINCT + tab1.col1 DIV ( - tab1.col0 * + col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + tab1.col1 / ( - tab1.col0 * + col2 ) AS col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4724
SELECT DISTINCT + - col1 DIV + 25 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT + - col1 / + 25 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + - col0 + - cor0.col2 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT col2 * + col2 + + col1 * col2 * tab1.col1 AS col0 FROM tab1
----
25440
39420
8949

query I rowsort
SELECT DISTINCT col1 + + 23 AS col0 FROM tab1
----
33
36
49

query I rowsort
SELECT 89 * - cor0.col1 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT ALL - col2 + - ( + col1 * 77 ) FROM tab2 AS cor0
----
-1347
-2414
-4569

onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT + - 57 + - cor0.col0 DIV cor0.col0 FROM tab2 AS cor0
----
-58
-58
-58

skipif mysql # not compatible
query I rowsort label-4730
SELECT + - 57 + - cor0.col0 / cor0.col0 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4731
SELECT + - col0 + + 18 DIV col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4731
SELECT + - col0 + + 18 / col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - cor0.col2 * cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - col1 * + 73 FROM tab0 AS cor0
----
-6278
-6643
-7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + col2 col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - + 58 + + col0 * col1 FROM tab1 AS cor0
----
20
582
982

onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT + - col1 + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-4736
SELECT + - col1 + col1 / col2 AS col1 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT + 84 * ( col2 ) FROM tab1 cor0
----
4536
4788
8064

query I rowsort
SELECT ALL - 48 AS col1 FROM tab2
----
-48
-48
-48

query I rowsort
SELECT ALL tab2.col0 + tab2.col1 * ( + 87 * + col1 ) FROM tab2
----
25222
302925
83614

onlyif mysql # use DIV operator for integer division
query I rowsort label-4740
SELECT - - col0 DIV - col0 + + col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-4740
SELECT - - col0 / - col0 + + col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT + + 98 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT DISTINCT - tab1.col0 - + 96 FROM tab1
----
-160
-176
-99

query I rowsort
SELECT + + col1 - col1 * - col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT - col0 * col2 + col0 - col1 FROM tab0 cor0
----
-7300
-854
-97

query I rowsort
SELECT - col2 + ( - col2 ) FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + + cor0.col1 + 87 - + col2 FROM tab0 AS cor0
----
140
183
96

query I rowsort
SELECT col2 * + col1 - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + ( 70 ) + - col2 AS col2 FROM tab2 AS cor0
----
32
43
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4749
SELECT - CAST( NULL AS SIGNED ) * - 1 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT - CAST ( NULL AS INTEGER ) * - 1 + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 32 col2 FROM tab2 AS cor0
----
224
2496
2528

onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT - cor0.col0 DIV col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4751
SELECT - cor0.col0 / col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - ( col2 ) * col1 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4753
SELECT DISTINCT + 69 - + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT + 69 - + col0 / col0 AS col2 FROM tab0 AS cor0
----
68

query I rowsort
SELECT 20 * col2 + + col0 FROM tab2 AS cor0
----
547
598
839

query I rowsort
SELECT cor0.col2 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT + + 85 FROM tab2 cor0
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT ALL 10 DIV 14 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL 10 / 14 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + 82 + + cor0.col2 FROM tab1 cor0
----
136
139
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 54 col0 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - cor0.col1 + - col2 * - col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ( + col1 ) + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL col0 + col2 * - col0 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + col2 - col0 * col2 * - col1 AS col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT col2 * + col1 + 18 AS col2 FROM tab1 AS cor0
----
1266
1422
588

query I rowsort
SELECT ALL + col0 + col2 + ( + cor0.col2 ) FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL + + col1 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL - + col2 * ( - col0 ) + + cor0.col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + cor0.col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4770
SELECT ALL + 67 * 15 DIV cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d45fdc7e21854ce24c0586a47ce70ad3

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL + 67 * 15 / cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d45fdc7e21854ce24c0586a47ce70ad3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4771
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + col0 * 34 AS col1 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT ALL - col0 + col2 * + col0 FROM tab0 cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * col0 + - ( col1 ) col0 FROM tab2 AS cor0
----
119593
51017
5828

query I rowsort
SELECT ( + col0 ) + col0 * col2 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - - 63 + cor0.col2 AS col0 FROM tab1 AS cor0
----
117
120
159

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL 6 * - 26 FROM tab0, tab0 AS cor0, tab1, tab0 cor1
----
81 values hashing to 71c75c7be7d24587308ae2f1d8e977a4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 43 + col1 * ( - col2 ) col2 FROM tab2
----
-1432
-586
-763

query I rowsort
SELECT col0 * 2 + + col0 FROM tab0 AS cor0
----
105
267
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4781
SELECT ALL col0 + - col2 DIV col0 AS col0 FROM tab0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL col0 + - col2 / col0 AS col0 FROM tab0
----
23
35
89

query I rowsort
SELECT ALL col1 * ( col1 ) + + ( + tab1.col1 ) FROM tab1
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT + 78 DIV col2 + col0 FROM tab1
----
4
65
80

skipif mysql # not compatible
query I rowsort label-4783
SELECT + 78 / col2 + col0 FROM tab1
----
4
65
80

query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5fc5fcec216468c99d1c0eaf371b3149

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4785
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4785
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4786
SELECT DISTINCT - col0 + + CAST( - 44 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-133
-68
-79

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT - col0 + + CAST ( - 44 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-133
-68
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( + col1 ) col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col0 + col0 + - col2 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT DISTINCT - col1 + ( 62 ) FROM tab0 AS cor0
----
-24
-29
-35

query I rowsort
SELECT ALL + col0 * + tab2.col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - ( 95 ) FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL - + cor0.col1 * + cor0.col1 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-12804
-16380
-9460

query I rowsort
SELECT ALL + + 2 AS col0 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT - 46 * col1 AS col2 FROM tab1 cor0
----
-1196
-460
-598

onlyif mysql # use DIV operator for integer division
query I rowsort label-4796
SELECT - col2 + + 56 DIV col0 FROM tab1 cor0
----
-36
-57
-96

skipif mysql # not compatible
query I rowsort label-4796
SELECT - col2 + + 56 / col0 FROM tab1 cor0
----
-36
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4797
SELECT CAST( + col1 AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-4797
SELECT CAST ( + col1 AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + 56 + col0 * - col2 FROM tab2 AS cor0
----
-133
-1972
-2946

query I rowsort
SELECT ALL ( col1 ) * + cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT DISTINCT + col0 DIV - col1 + tab1.col2 AS col1 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + col0 / - col1 + tab1.col2 AS col1 FROM tab1
----
51
54
90

query I rowsort
SELECT DISTINCT - - 49 + col1 * 85 FROM tab2 AS cor0
----
1494
2684
5064

query I rowsort
SELECT DISTINCT - col0 + - col1 * col0 * ( col1 ) AS col2 FROM tab0
----
-177528
-329350
-737098

query I rowsort
SELECT ALL 66 * col2 + 0 FROM tab0
----
2178
5412
66

query I rowsort
SELECT DISTINCT + col1 + col0 + - 43 AS col1 FROM tab1 AS cor0
----
-14
31
50

query I rowsort
SELECT ALL col0 + cor0.col1 * + col1 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4806
SELECT - 20 + + col0 * CAST( col2 * col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
207916
737260
8728

skipif mysql # not compatible
query I rowsort label-4806
SELECT - 20 + + col0 * CAST ( col2 * col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
207916
737260
8728

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT - col1 * - col2 + + ( - col1 ) FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL - cor0.col2 * col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - col0 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - - 76 * - col2 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
-1863
114
52

query I rowsort
SELECT - - 64 + + col2 AS col1 FROM tab2 cor0
----
102
90
91

query I rowsort
SELECT ALL - col2 * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col1 + + ( + 97 ) * col1 FROM tab1 AS cor0
----
1248
2496
960

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-14596
-1584
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4817
SELECT ALL + col1 DIV 90 + + ( col0 ) - - 7 col1 FROM tab2 AS cor0
----
14
85
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL + col1 / 90 + + ( col0 ) - - 7 col1 FROM tab2 AS cor0
----
14
85
86

query I rowsort
SELECT - col0 * - 30 AS col0 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT - - col1 + + 11 AS col2 FROM tab2 AS cor0
----
28
42
70

query I rowsort
SELECT ALL - - cor0.col2 * cor0.col2 * col1 + col2 AS col0 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT - col0 + 86 FROM tab1 AS cor0
----
22
6
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT ALL col1 DIV 81 + col2 * col0 col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL col1 / 81 + col2 * col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab0, tab2, tab0 AS cor0
----
61

query I rowsort
SELECT ALL - col2 + col1 * col0 * - 68 FROM tab1
----
-43577
-5358
-70816

query I rowsort
SELECT DISTINCT - 70 + + col0 + + 92 AS col1 FROM tab1
----
102
25
86

query I rowsort
SELECT ALL col1 * - col1 + tab2.col2 AS col0 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT + ( col1 ) * + col0 + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL - col0 * - col2 + col1 AS col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT col2 * + 34 + col1 * - col0 FROM tab1 cor0
----
1298
1758
2224

query I rowsort
SELECT ALL - col2 - - ( - col2 + + col0 ) * + ( + ( + col0 ) ) FROM tab1 AS cor0
----
-1376
-207
391

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + cor0.col1 * col0 col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + col2 - - ( col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col0 * col2 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - col0 * ( 60 * + col1 ) + - cor0.col2 FROM tab0 cor0
----
-123873
-203701
-486022

query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col2 * + 39 FROM tab2
----
1014
1053
1482

query I rowsort
SELECT col1 * - ( + ( col0 ) ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL cor0.col0 * + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9f4d33c2594156f40c1a77ce18b06bc3

query I rowsort
SELECT - col0 * - 93 FROM tab2
----
651
7254
7347

query I rowsort
SELECT - col1 * - col1 + col1 * + col1 AS col0 FROM tab1
----
1352
200
338

query I rowsort
SELECT + 95 AS col2 FROM tab1
----
95
95
95

query I rowsort
SELECT col0 * 24 + - col1 FROM tab1
----
1526
1907
46

query I rowsort
SELECT col1 + 53 * col2 FROM tab0
----
150
1835
4437

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4844
SELECT + CAST( NULL AS DECIMAL ) + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT + CAST ( NULL AS REAL ) + - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 51 + col2 AS col0 FROM tab1
----
105
108
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) + ( - col1 ) * col2 * + col0 col0 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT DISTINCT - 55 * + col1 + col0 AS col1 FROM tab2
----
-1698
-3167
-856

query I rowsort
SELECT ALL + + 34 * + col1 FROM tab0 AS cor0
----
2924
3094
3298

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT DISTINCT - cor0.col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT - cor0.col0 / + col0 AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - 36 + col0 FROM tab0 cor0
----
-1
-12
53

query I rowsort
SELECT + col1 + - cor0.col0 - + col0 FROM tab0 AS cor0
----
-87
27
38

query I rowsort
SELECT - 56 - - cor0.col2 FROM tab1 AS cor0
----
-2
1
40

query I rowsort
SELECT DISTINCT + + 7 - + col0 FROM tab1 AS cor0
----
-57
-73
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - - col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor2.col1 FROM tab2, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT - + 68 * col1 AS col2 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT DISTINCT + - 57 FROM tab0 AS cor0
----
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4858
SELECT ALL + CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL + CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + + col2 * col0 + col0 * col2 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT DISTINCT + - col1 * + ( col0 ) + col2 * + col0 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT DISTINCT cor0.col1 * - col2 + + 95 + + col1 AS col1 FROM tab0 cor0
----
-2657
-7276
95

query I rowsort
SELECT + 99 + cor0.col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to dc5ad96a0ef423f9871d425cd2b21272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4863
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 99 + col0 * col1 FROM tab0 AS cor0
----
2163
3494
8198

query I rowsort
SELECT ALL - - ( ( col1 ) ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - ( + col1 ) * + cor0.col2 + - ( + 59 ) + col1 * + 92 FROM tab1 AS cor0
----
-111
291
929

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4867
SELECT + CAST( cor0.col1 AS SIGNED ) - - cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0

skipif mysql # not compatible
query I rowsort label-4867
SELECT + CAST ( cor0.col1 AS INTEGER ) - - cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to bd4e64b4654b9e3f8122f4e1bada2bd0

query I rowsort
SELECT DISTINCT col1 * 49 FROM tab2
----
1519
2891
833

query I rowsort
SELECT + col0 * col1 - - col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL 62 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) + col0 + tab1.col0 AS col1 FROM tab1
----
-48
64
71

query I rowsort
SELECT - col2 * col1 + - col2 * + 11 AS col2 FROM tab2 AS cor0
----
-1064
-1134
-1820

query I rowsort
SELECT col1 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4874
SELECT + ( col1 ) DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4874
SELECT + ( col1 ) / - cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 81 * + col1 FROM tab2 cor0
----
1377
2511
4779

query I rowsort
SELECT 30 + - col1 FROM tab2
----
-1
-29
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) + + col0 + - ( tab1.col2 ) col1 FROM tab1
----
3
64
80

query I rowsort
SELECT + 14 * + col1 + - tab1.col0 AS col0 FROM tab1
----
102
361
76

query I rowsort
SELECT ALL 0 + col0 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - col1 + - col1 + col0 AS col1 FROM tab1
----
-49
44
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4881
SELECT CAST( NULL AS SIGNED ) + + 30 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT CAST ( NULL AS INTEGER ) + + 30 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 79 + col1 FROM tab1 AS cor0
----
-53
-66
-69

query I rowsort
SELECT DISTINCT - + 73 AS col2 FROM tab2 cor0
----
-73

query I rowsort
SELECT ALL ( col1 ) + + col1 + col2 * - col2 FROM tab1 AS cor0
----
-2864
-3229
-9190

query I rowsort
SELECT ALL - ( col1 ) * col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + 52 * + col2 FROM tab1 AS cor0
----
2808
2964
4992

query I rowsort
SELECT ALL - col2 * - col2 * - 64 AS col2 FROM tab1 AS cor0
----
-186624
-207936
-589824

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - col1 + col1 * col1 * + 38 + col0 AS col1 FROM tab1 AS cor0
----
25665
3854
6489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 * + col0 + + 25 * col1 * - 14 col2 FROM tab1 AS cor0
----
-2870
-3523
-9048

query I rowsort
SELECT DISTINCT tab1.col1 - ( col2 ) AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + 62 AS col0 FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2, tab0 AS cor3
----
243 values hashing to b3af72ed520765fbff8032f1498e19b7

query I rowsort
SELECT ALL - col0 + ( col1 * col2 ) FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - col0 * 3 + - 52 FROM tab0 AS cor0
----
-124
-157
-319

query I rowsort
SELECT DISTINCT col1 * - 36 + - col2 * col0 AS col0 FROM tab2 cor0
----
-1305
-3614
-4152

query I rowsort
SELECT ALL col0 * - 53 FROM tab2 AS cor0
----
-371
-4134
-4187

query I rowsort
SELECT col2 + - ( - col0 ) AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - cor0.col0 + 62 * col1 FROM tab1 AS cor0
----
1609
556
726

onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT + col2 DIV col1 col1 FROM tab2 cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4899
SELECT + col2 / col1 col1 FROM tab2 cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4900
SELECT ALL - col2 DIV + col1 + + 51 DIV col2 FROM tab0 AS cor0
----
0
1
51

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL - col2 / + col1 + + 51 / col2 FROM tab0 AS cor0
----
0
1
51

query I rowsort
SELECT ALL + col2 * + col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col2 + + col0 * 11 FROM tab0 AS cor0
----
-2574
-6483
288

query I rowsort
SELECT ALL - + 58 + ( - col2 ) FROM tab1 AS cor0
----
-112
-115
-154

onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT ALL - col2 DIV - col0 + + col2 DIV + ( + col1 + + col0 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL - col2 / - col0 + + col2 / + ( + col1 + + col0 ) FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - col0 + - col2 * + col2 FROM tab1 AS cor0
----
-2919
-3313
-9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT ALL - col2 + + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL - col2 + + col2 / col2 AS col1 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT + col1 + 30 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1646
1720
2893

query I rowsort
SELECT DISTINCT + ( + col1 ) * col1 - col0 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT - col0 + 60 FROM tab2 AS cor0
----
-18
-19
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + - 54 col0 FROM tab0 AS cor0
----
7342
8227
9355

query I rowsort
SELECT - + col2 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL col2 - - 52 AS col1 FROM tab2 cor0
----
78
79
90

query I rowsort
SELECT cor0.col0 + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - col2 + - 91 FROM tab2 AS cor0
----
-117
-118
-129

query I rowsort
SELECT - col0 + col2 * - 59 FROM tab1 AS cor0
----
-3189
-3427
-5744

query I rowsort
SELECT ALL + + col2 * - ( + col2 ) - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + - cor0.col1 AS col2 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 col1 * tab0.col2 + 81 FROM tab0
----
178
2919
7543

query I rowsort
SELECT DISTINCT col2 * 35 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1968
2635
4400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4921
SELECT - col2 + CAST( col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
162
2002
2964

skipif mysql # not compatible
query I rowsort label-4921
SELECT - col2 + CAST ( col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL + col1 * - col0 * - col2 + + col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT - col2 * col2 + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT DISTINCT + + col2 + 15 FROM tab1 AS cor0
----
111
69
72

query I rowsort
SELECT ALL - col1 * 76 - ( + col1 ) FROM tab1 AS cor0
----
-1001
-2002
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * tab1.col2 col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE col0 * col1 - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + col2 + + col0 * + col0 * - col2 AS col2 FROM tab0
----
-1259
-18999
-649529

onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT DISTINCT + col1 * col0 DIV col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4929
SELECT DISTINCT + col1 * col0 / col1 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab2.col1 - col0 col2 FROM tab2
----
1456
567
830

query I rowsort
SELECT ALL + col0 + col0 * col2 + col0 FROM tab0
----
105
7476
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4932
SELECT col1 * + col0 DIV + col0 AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4932
SELECT col1 * + col0 / + col0 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col2 + col2 + - col1 * - col1 AS col0 FROM tab0
----
7462
8445
9411

query I rowsort
SELECT + col0 * col2 * - col2 FROM tab0 WHERE ( NULL ) IN ( + col1 * col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 >= - col2 + + col2 + - col0
----
64
10
57

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 * - col2 * col0 ) NOT BETWEEN NULL AND ( col1 + + col0 )
----

query I rowsort
SELECT - tab1.col2 * col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - tab2.col2 + col2 * + col0 AS col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT col1 + col0 * col2 * + tab2.col1 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT ALL + col1 * tab0.col0 + + col1 * - col1 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT DISTINCT col1 * + tab1.col1 + col0 FROM tab1
----
164
249
679

query I rowsort
SELECT DISTINCT col2 * - col2 * + tab0.col2 + col2 AS col1 FROM tab0
----
-35904
-551286
0

query I rowsort
SELECT ( col1 ) * col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + col1 + col2 * + 17 AS col1 FROM tab0
----
114
1485
647

onlyif mysql # use DIV operator for integer division
query I rowsort label-4945
SELECT DISTINCT - col0 + tab2.col1 DIV col1 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT - col0 + tab2.col1 / col1 FROM tab2
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - 96 - cor0.col0 FROM tab2 AS cor0
----
-103
-174
-175

query I rowsort
SELECT + col2 + col0 * + ( 59 ) AS col1 FROM tab1 cor0
----
231
3833
4816

query I rowsort
SELECT - + col2 * + col1 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - col1 * col1 + - col2 AS col2 FROM tab1 cor0
----
-157
-265
-730

query I rowsort
SELECT col2 * cor0.col0 + - 66 * - col2 FROM tab2 AS cor0
----
1971
3744
5510

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT DISTINCT + col1 * - tab0.col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT + col1 * - tab0.col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT - 53 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4954
SELECT - 53 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col2 * + col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col2 * cor0.col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 50 + + col0 col0 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT ( - col0 ) * col2 * + 25 AS col2 FROM tab1 cor0
----
-192000
-4050
-91200

query I rowsort
SELECT + + col0 * + col2 + - 56 FROM tab1 AS cor0
----
106
3592
7624

query I rowsort
SELECT col0 + ( cor0.col2 + + col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-1344
-15130

onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT - - col0 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4961
SELECT - - col0 / cor0.col1 AS col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT + col0 * 71 * col1 - - col1 * - col1 FROM tab2 cor0
----
14446
323261
95064

query I rowsort
SELECT DISTINCT + col2 - col2 FROM tab2 cor0
----
0

query I rowsort
SELECT - 46 AS col2 FROM tab0 cor0
----
-46
-46
-46

query I rowsort
SELECT ALL 98 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
16
65
97

query I rowsort
SELECT col1 * - 30 AS col1 FROM tab0 AS cor0
----
-2580
-2730
-2910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * col2 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 70 * - col2 * col2 + ( + tab1.col2 ) * - col1 AS col1 FROM tab1
----
-205524
-228000
-646368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4969
SELECT - + cor0.col2 * CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT - + cor0.col2 * CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * + CAST ( - 50 AS REAL ) + - col0 AS col1 FROM tab0
----
-1674
-4189
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT DISTINCT + col2 * col1 + - col0 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
132
2838
7463

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT + col2 * col1 + - col0 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
132
2838
7463

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4972
SELECT col1 + CAST( + 58 AS SIGNED ) col2 FROM tab2 AS cor0
----
117
75
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4972
SELECT col1 + CAST ( + 58 AS INTEGER ) col2 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT + col0 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4974
SELECT ALL + col0 + cor0.col2 DIV + col2 col2 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL + col0 + cor0.col2 / + col2 col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT ( col0 ) - col1 AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - + 63 + col1 * col0 AS col0 FROM tab2 cor0
----
1280
154
4539

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * col1 AS col1 FROM tab0 cor0
----
7482
8372
9506

query I rowsort
SELECT + 4 * + 12 AS col1 FROM tab2 AS cor0
----
48
48
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT ALL + - ( 88 ) DIV - col0 + + col0 FROM tab0 AS cor0
----
27
37
89

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL + - ( 88 ) / - col0 + + col0 FROM tab0 AS cor0
----
27
37
89

query I rowsort
SELECT DISTINCT ( cor0.col0 ) * cor0.col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + col2 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - - ( + ( + col0 ) ) * ( - ( + col1 ) ) * 70 + col0 FROM tab2 AS cor0
----
-15183
-322062
-93931

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + col2 + 93 FROM tab2 AS cor0
----
119
120
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4986
SELECT ALL + col0 * - CAST( - 29 AS SIGNED ) * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL + col0 * - CAST ( - 29 AS INTEGER ) * 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 ALL + col1 * 91 col2 FROM tab0
----
7826
8281
8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 * - col2 col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT col0 + - cor0.col1 * - col0 - col2 FROM tab0 AS cor0
----
2055
3429
8106

query I rowsort
SELECT + col2 + col0 - col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col1 + col1 * ( - col2 + + col0 ) FROM tab1 AS cor0
----
-1300
-195
80

query I rowsort
SELECT ALL col2 * col0 + - col0 FROM tab2
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4993
SELECT ALL + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 * + tab1.col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 + col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4996
SELECT ALL CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * - 49 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 98232c07f6d7c7685a4fec06aa989ede

onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT - col2 DIV - 9 FROM tab1 AS cor0
----
10
6
6

skipif mysql # not compatible
query I rowsort label-4998
SELECT - col2 / - 9 FROM tab1 AS cor0
----
10
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4999
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4999
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5000
SELECT DISTINCT + col0 DIV - col0 AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT + col0 / - col0 AS col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT + + col2 * - ( - col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + col1 - col0 * - ( - col0 + col2 ) FROM tab0
----
-1093
-532
302

query I rowsort
SELECT ALL - 21 - - col0 * 9 FROM tab1
----
555
6
699

query I rowsort
SELECT DISTINCT 48 - col0 FROM tab0
----
-41
13
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5005
SELECT - col1 DIV col2 - 83 AS col1 FROM tab0
----
-180
-84
-85

skipif mysql # not compatible
query I rowsort label-5005
SELECT - col1 / col2 - 83 AS col1 FROM tab0
----
-180
-84
-85

query I rowsort
SELECT col2 * col1 + 26 * - 99 AS col1 FROM tab1
----
-1170
-1326
-2004

query I rowsort
SELECT DISTINCT - col0 - col1 * + col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT col1 * + ( - tab0.col2 ) + + col2 AS col2 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT ALL - cor0.col1 + + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL - cor0.col1 + + col2 / col1 AS col2 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT cor0.col0 - + 23 * col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-13224
-182094
-28140

query I rowsort
SELECT DISTINCT + col0 + col1 * 67 FROM tab1 AS cor0
----
1745
734
951

query I rowsort
SELECT ALL - cor0.col1 + 61 * + col2 FROM tab2 AS cor0
----
1527
1616
2301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col0 col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - + cor0.col1 * 24 + + col1 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT DISTINCT - + col0 * + 15 - cor0.col2 FROM tab0 cor0
----
-1417
-393
-526

query I rowsort
SELECT DISTINCT - col1 * 7 * col1 FROM tab2 AS cor0
----
-2023
-24367
-6727

query I rowsort
SELECT - + col0 * - col2 + + 24 * - col1 FROM tab1 AS cor0
----
-462
3408
7368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5019
SELECT 62 DIV ( col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT 62 / ( col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5020
SELECT + ( col1 ) DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5020
SELECT + ( col1 ) / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL cor0.col0 + + cor0.col0 + cor0.col1 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 02cb94c0f129513cb16b997a414a2d13

onlyif mysql # use DIV operator for integer division
query I rowsort label-5022
SELECT ALL col2 + - col2 * 57 DIV col0 AS col1 FROM tab2
----
-192
11
7

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL col2 + - col2 * 57 / col0 AS col1 FROM tab2
----
-192
11
7

query I rowsort
SELECT DISTINCT + + 79 FROM tab0 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 99 * col1 col2 FROM tab0 AS cor0
----
-8514
-9009
-9603

query I rowsort
SELECT DISTINCT - cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT ALL - + 33 AS col0 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - - col2 * col1 + 72 + col2 AS col1 FROM tab0 AS cor0
----
170
2943
7616

query I rowsort
SELECT ALL - - ( - cor0.col1 ) * col2 * 12 AS col0 FROM tab1 AS cor0
----
-14976
-16848
-6840

query I rowsort
SELECT + - 72 + col2 FROM tab0 AS cor0
----
-39
-71
10

query I rowsort
SELECT ALL - - ( 85 ) AS col2 FROM tab2 cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + - col0 + - col1 * - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - 77 * 73 - - col2 FROM tab2 AS cor0
----
-5583
-5594
-5595

onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT DISTINCT + 26 - + col2 DIV - col1 col1 FROM tab1 AS cor0
----
28
31
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5033
SELECT DISTINCT + 26 - + col2 / - col1 col1 FROM tab1 AS cor0
----
28
31
33

query I rowsort
SELECT - 23 + + col0 FROM tab2 AS cor0
----
-16
55
56

query I rowsort
SELECT - 63 + col2 FROM tab2 AS cor0
----
-25
-36
-37

query I rowsort
SELECT col1 + cor0.col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + col0 * cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 AS col2 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - col2 + + col0 * + col1 * + 52 col2 FROM tab0 AS cor0
----
104490
176443
413686

query I rowsort
SELECT ALL 67 + - 17 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT - - 44 * cor0.col1 - + col1 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT - + 42 + + col2 AS col2 FROM tab2 AS cor0
----
-15
-16
-4

query I rowsort
SELECT DISTINCT + tab2.col2 - - col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - + 64 * - col1 AS col1 FROM tab1 AS cor0
----
1664
640
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT ( col1 ) * + col2 + - col1 DIV col0 FROM tab2 cor0
----
1534
646
833

skipif mysql # not compatible
query I rowsort label-5045
SELECT ( col1 ) * + col2 + - col1 / col0 FROM tab2 cor0
----
1534
646
833

query I rowsort
SELECT + - col0 + col2 * + 67 FROM tab2 AS cor0
----
1664
1802
2467

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query I rowsort
SELECT + col2 + 95 AS col0 FROM tab0
----
128
177
96

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT + col0 + ( - col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + 7 * col2 * col0 AS col1 FROM tab1
----
1134
25536
53760

query I rowsort
SELECT tab2.col1 * - 42 + - col0 AS col1 FROM tab2
----
-1309
-2556
-793

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5053
SELECT DISTINCT - cor0.col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5053
SELECT DISTINCT - cor0.col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 + - 92 * col0 AS col0 FROM tab2 AS cor0
----
-617
-7150
-7230

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT cor0.col1 * + 77 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT ALL - col1 * - 70 FROM tab1
----
1820
700
910

query I rowsort
SELECT ALL + - col1 - - 67 AS col1 FROM tab2 AS cor0
----
36
50
8

query I rowsort
SELECT col2 * ( + col1 ) + + col2 FROM tab0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 * + col2 * + ( col1 ) col1 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT + 12 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5062
SELECT - CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5062
SELECT - CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL - cor0.col0 * + 10 FROM tab0 AS cor0
----
-240
-350
-890

query I rowsort
SELECT DISTINCT 58 * 71 FROM tab0
----
4118

query I rowsort
SELECT DISTINCT + 91 * 81 AS col0 FROM tab2
----
7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5066
SELECT - CAST( - tab1.col2 AS SIGNED ) * col0 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-5066
SELECT - CAST ( - tab1.col2 AS INTEGER ) * col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - ( - col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + 53 * + col1 * col1 FROM tab1 AS cor0
----
35828
5300
8957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5069
SELECT DISTINCT + cor0.col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5070
SELECT 67 * col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT 67 * col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 57 + + cor0.col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
115
125
137

query I rowsort
SELECT ALL - 20 + col1 * - 91 AS col2 FROM tab2 AS cor0
----
-1567
-2841
-5389

query I rowsort
SELECT - col1 + - col1 * + col0 * col0 FROM tab0 cor0
----
-118922
-49622
-720902

query I rowsort
SELECT ALL - 42 + + col0 * + col2 + + col1 AS col2 FROM tab2 AS cor0
----
178
2045
2977

query I rowsort
SELECT - col1 + col1 + ( + 81 ) FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab0 AS cor0
----
14

query I rowsort
SELECT col0 * + 99 FROM tab0 AS cor0
----
2376
3465
8811

onlyif mysql # use DIV operator for integer division
query I rowsort label-5078
SELECT + col1 DIV ( 97 ) col1 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5078
SELECT + col1 / ( 97 ) col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + - col2 * ( 17 + - col0 ) FROM tab0 AS cor0
----
18
231
5904

query I rowsort
SELECT + col1 * - ( col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 60 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
60

query I rowsort
SELECT + 24 * + col2 - - col1 AS col1 FROM tab1 AS cor0
----
1322
1378
2317

query I rowsort
SELECT + + 95 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT ALL - ( 78 * col0 ) - ( - ( col1 ) * 14 ) FROM tab1
----
-4852
-6058
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + - col0 col2 FROM tab2
----
-196
-2106
-3081

query I rowsort
SELECT ALL - 86 + col2 FROM tab2
----
-48
-59
-60

query I rowsort
SELECT ALL - 51 * col1 * - ( + col0 ) + + col2 FROM tab1 cor0
----
32697
4032
53136

query I rowsort
SELECT ALL + 61 * + col0 + cor0.col1 * col1 FROM tab1 AS cor0
----
4004
5049
859

query I rowsort
SELECT DISTINCT - - col0 * - col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT cor0.col2 * + cor0.col2 + 78 AS col2 FROM tab1 AS cor0
----
2994
3327
9294

query I rowsort
SELECT + col2 * - cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT + 81 + - col2 AS col0 FROM tab2 AS cor0
----
43
54
55

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab1 cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + - col2 col1 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT + tab1.col0 + + 55 FROM tab1
----
119
135
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5096
SELECT - col0 * + CAST( NULL AS SIGNED ) - - tab1.col1 * + tab1.col1 * 23 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5096
SELECT - col0 * + CAST ( NULL AS INTEGER ) - - tab1.col1 * + tab1.col1 * 23 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5097
SELECT + col1 DIV 92 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5097
SELECT + col1 / 92 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT - - cor0.col0 DIV col2 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5098
SELECT - - cor0.col0 / col2 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + col0 * 90 + - col2 + + col1 AS col1 FROM tab1 cor0
----
242
5713
7117

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5100
SELECT ALL 6 * ( col0 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL 6 * ( col0 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - ( col2 ) FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - + ( col0 ) * col1 * + 44 + - col1 FROM tab2 AS cor0
----
-202547
-59109
-9579

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5103
SELECT - - CAST( NULL AS DECIMAL ) + - 2 * col2 / ( cor0.col0 * - col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5103
SELECT - - CAST ( NULL AS REAL ) + - 2 * col2 / ( cor0.col0 * - col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 38 - + 68 * col2 AS col2 FROM tab0 AS cor0
----
-106
-2282
-5614

query I rowsort
SELECT + - ( 27 ) + - col0 * col1 FROM tab1 AS cor0
----
-105
-1067
-667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5106
SELECT ALL - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - - col2 - - col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5108
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) * + col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort label-5108
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) * + col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col2 * col1 + + col0 * ( col0 ) + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - ( - col1 ) + + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - cor0.col0 + + 24 FROM tab0, tab0 AS cor0
----
-11
-65
0

query I rowsort
SELECT ALL + - col1 + col1 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 + - col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ( col1 ) * - col0 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5115
SELECT ALL col2 DIV + 6 + col0 FROM tab2 cor0
----
11
82
85

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL col2 / + 6 + col0 FROM tab2 cor0
----
11
82
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5116
SELECT - ( col1 ) DIV + col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5116
SELECT - ( col1 ) / + col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT - col2 * col2 * col2 + 50 * + ( + col1 * col1 ) FROM tab1
----
-123664
-180193
-876286

query I rowsort
SELECT DISTINCT cor0.col2 * col0 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT col1 + col2 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-5119
SELECT col1 + col2 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT DISTINCT + col1 * - col2 + - 91 FROM tab1 AS cor0
----
-1339
-1495
-661

onlyif mysql # use DIV operator for integer division
query I rowsort label-5121
SELECT ALL col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 23 + col0 AS col2 FROM tab0 AS cor0
----
1
12
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5123
SELECT DISTINCT + 16 DIV + col1 col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + 16 / + col1 col1 FROM tab0
----
0

query I rowsort
SELECT ( - 94 ) FROM tab1
----
-94
-94
-94

query I rowsort
SELECT - col1 * + col0 + - col0 + tab1.col1 AS col1 FROM tab1
----
-1107
-55
-694

query I rowsort
SELECT DISTINCT col0 * col2 - col1 * 83 AS col1 FROM tab2
----
-2384
-2869
1591

query I rowsort
SELECT ALL tab0.col2 - + 86 * + col0 AS col2 FROM tab0
----
-2031
-3009
-7572

query I rowsort
SELECT + 8 + ( tab1.col1 ) + + 1 * + col1 AS col2 FROM tab1
----
28
34
60

query I rowsort
SELECT DISTINCT - + col0 + - ( col2 ) + cor0.col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col0 + cor0.col1 - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2728
-7282
35

skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT col0 + col0 - col2 FROM tab2 cor0
----
-13
120
130

query I rowsort
SELECT ALL + - col0 - + 46 AS col1 FROM tab0 AS cor0
----
-135
-70
-81

query I rowsort
SELECT ALL cor0.col0 + 30 AS col0 FROM tab1 AS cor0
----
110
33
94

query I rowsort
SELECT DISTINCT + col2 * - 70 + - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1295
-13661
-2886

onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT ALL col0 + - col0 * - col0 DIV + col0 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL col0 + - col0 * - col0 / + col0 FROM tab0
----
178
48
70

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab1 AS cor2, tab2
----
13122 values hashing to 29d24741175f96184b14b4e4f286f3fa

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab1 cor2, tab1
----
13122 values hashing to 2e854dee57dc140d7142ad39447c440d

query I rowsort
SELECT DISTINCT + ( - 47 ) AS col2 FROM tab1, tab0 AS cor0
----
-47

query I rowsort
SELECT + - col2 + - 31 * + col2 * col2 FROM tab0 AS cor0
----
-208526
-32
-33792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT ALL 53 DIV + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5141
SELECT ALL 53 / + col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT cor1.col0 * - 51 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to d7ecd80e167908c6ba8ff8fff33f3419

query I rowsort
SELECT DISTINCT - ( + col1 * 60 ) FROM tab1
----
-1560
-600
-780

query I rowsort
SELECT DISTINCT + 99 FROM tab2, tab1, tab0 AS cor0
----
99

query I rowsort
SELECT ALL - + 30 * col1 + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-713
2832
833

query I rowsort
SELECT - - col2 + col2 - col1 FROM tab2 AS cor0
----
-7
23
59

query I rowsort
SELECT - col2 * + col0 + + col2 * - cor0.col1 - - col2 FROM tab1 AS cor0
----
-1512
-4161
-8832

query I rowsort
SELECT col0 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col0 + 56 * + ( - col0 ) * col1 FROM tab2 AS cor0
----
-12145
-257634
-75129

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col1 + col1 - cor0.col2 * col2 FROM tab2 AS cor0
----
-1410
-558
-667

query I rowsort
SELECT ALL + col2 * col0 * col1 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5153
SELECT CAST( 5 AS SIGNED ) + col0 FROM tab0 cor0
----
29
40
94

skipif mysql # not compatible
query I rowsort label-5153
SELECT CAST ( 5 AS INTEGER ) + col0 FROM tab0 cor0
----
29
40
94

query I rowsort
SELECT ALL col2 * col1 + col1 * 0 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5155
SELECT DISTINCT col1 * + col2 + col2 * col0 + 47 * + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT col1 * + col2 + col2 * col0 + 47 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + - cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT - col1 + - col1 * col2 * - cor0.col1 FROM tab1 cor0
----
16211
36478
5690

query I rowsort
SELECT col0 * + cor0.col2 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT - + ( 49 ) AS col1 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT DISTINCT cor0.col1 + + ( - col2 ) * ( - ( col1 ) ) * + col0 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT ALL col0 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT col2 * cor0.col2 AS col1 FROM tab2 cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5163
SELECT ALL - 7 DIV - col1 - + col1 * - cor0.col0 col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL - 7 / - col1 - + col1 * - cor0.col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * - 46 AS col0 FROM tab2 AS cor0
----
-322
-3588
-3634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab1 AS cor0
----
81
81
81

query I rowsort
SELECT ALL + - cor0.col2 * - col2 * col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL col2 + - col0 - - col2 FROM tab1 AS cor0
----
105
112
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + - col2 col1 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT ALL + 26 + + col2 AS col1 FROM tab2 AS cor0
----
52
53
64

query I rowsort
SELECT DISTINCT col0 + 89 FROM tab0 cor0
----
113
124
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT 63 DIV + col0 FROM tab1 AS cor0
----
0
0
21

skipif mysql # not compatible
query I rowsort label-5171
SELECT 63 / + col0 FROM tab1 AS cor0
----
0
0
21

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237

query I rowsort
SELECT ALL ( 25 ) FROM tab1
----
25
25
25

query I rowsort
SELECT 7 + + cor0.col2 FROM tab0 AS cor0
----
40
8
89

query I rowsort
SELECT + - 32 FROM tab0 cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * col0 col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - - col1 + col1 * ( 80 ) FROM tab0 AS cor0
----
6966
7371
7857

onlyif mysql # use DIV operator for integer division
query I rowsort label-5178
SELECT col1 + col2 DIV ( 93 ) FROM tab1 AS cor0
----
10
14
26

skipif mysql # not compatible
query I rowsort label-5178
SELECT col1 + col2 / ( 93 ) FROM tab1 AS cor0
----
10
14
26

query I rowsort
SELECT DISTINCT cor0.col2 + - 55 * ( col2 + + cor0.col1 ) FROM tab0 AS cor0
----
-5389
-6512
-9433

query I rowsort
SELECT cor0.col1 * 92 FROM tab1, tab2 AS cor0
----
9 values hashing to 178f6422b4e49c3cad4c1ec78b57b4e8

query I rowsort
SELECT DISTINCT + col2 * - 73 + col2 FROM tab0
----
-2376
-5904
-72

query I rowsort
SELECT - col1 * ( col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + ( + 55 ) + tab1.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 2e22653dd511815ad294b192ab0e7fd2

query I rowsort
SELECT ( - 27 + tab2.col1 ) * col0 FROM tab2
----
-790
2496
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT DISTINCT ( ( col0 ) + CAST( - tab1.col1 AS SIGNED ) ) AS col2 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT ( ( col0 ) + CAST ( - tab1.col1 AS INTEGER ) ) AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT - - col2 + 69 FROM tab1 cor0
----
123
126
165

query I rowsort
SELECT col2 * 26 + col2 FROM tab1 AS cor0
----
1458
1539
2592

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5188
SELECT CAST( NULL AS SIGNED ) * - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT CAST ( NULL AS INTEGER ) * - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 69 + + 81 AS col2 FROM tab1 AS cor0
----
150
150
150

query I rowsort
SELECT ALL - cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT - 83 + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-74
4013
6317

query I rowsort
SELECT - + ( + 68 ) AS col0 FROM tab1 AS cor0
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * - col0 + - col1 col2 FROM tab0 AS cor0
----
1066
1583
4181

query I rowsort
SELECT - - col1 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + + col1 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + + col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5197
SELECT ALL 76 DIV tab2.col0 FROM tab2
----
0
0
10

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL 76 / tab2.col0 FROM tab2
----
0
0
10

query I rowsort
SELECT col0 + - col2 - - col0 * + col2 FROM tab0
----
69
7305
783

query I rowsort
SELECT DISTINCT - col2 * - col2 - - col0 AS col0 FROM tab1
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-5200
SELECT col1 + col2 DIV + col0 + tab2.col2 AS col0 FROM tab2
----
55
61
85

skipif mysql # not compatible
query I rowsort label-5200
SELECT col1 + col2 / + col0 + tab2.col2 AS col0 FROM tab2
----
55
61
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + + tab2.col0 * col0 - col0 col0 FROM tab2
----
15
5980
6124

query I rowsort
SELECT col0 + col0 * col1 * + col1 FROM tab0 cor0
----
177528
329350
737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + + col1 col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT + tab2.col2 * cor0.col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to bd0f553652e91081616d79ec94aff1a5

query I rowsort
SELECT ALL col1 + + col1 + col0 AS col0 FROM tab1
----
106
55
84

query I rowsort
SELECT + + col0 * - cor0.col1 + + col0 * col0 FROM tab2 AS cor0
----
-168
1482
4898

query I rowsort
SELECT - + cor0.col2 * col2 + - col1 * col0 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT - 56 AS col1 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT DISTINCT 1 * col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT ALL - ( - tab1.col1 ) DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - ( - tab1.col1 ) / col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + cor0.col2 * col2 col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL ( + col1 ) * col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT DISTINCT - 78 + col2 DIV col1 col1 FROM tab2 AS cor0
----
-76
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT - 78 + col2 / col1 col1 FROM tab2 AS cor0
----
-76
-78

query I rowsort
SELECT DISTINCT tab1.col0 * tab1.col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col2 - + col2 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 - col2 col0 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL col0 * - col0 + + col2 FROM tab1
----
-4039
-6304
45

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT IN ( col1 + + col0 + col0 * col2 * col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab1 WHERE NOT NULL IN ( col0 * tab1.col2 )
----

query I rowsort
SELECT ALL tab0.col0 * col0 - tab0.col0 AS col2 FROM tab0
----
1190
552
7832

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( + col1 + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 ) NOT IN ( col2 - - col0 * - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT col1 * col1 - col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT ALL col0 * - col1 + + col1 * - col1 AS col1 FROM tab2
----
-1178
-1632
-8083

query III rowsort
SELECT * FROM tab1 WHERE col0 IN ( col2 + - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * col1 * + col0 BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + tab0.col2 + - col2 * col2 AS col0 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT ALL tab0.col1 * col1 - - col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT col1 * col1 + col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT ALL col0 * + col1 AS col0 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT + col2 / col1 + col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col1 + col0
----

query I rowsort
SELECT ALL col0 * col0 * - col0 + cor0.col2 FROM tab2 AS cor0
----
-316
-474526
-493001

query I rowsort
SELECT - + col2 + - col2 * + col1 * - col1 FROM tab2 AS cor0
----
10944
25920
90480

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL + col1 + col0 * - col0 - col1 * - col0 FROM tab2 cor0
----
-1423
-4881
199

onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT + col0 + + col2 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-5237
SELECT + col0 + + col2 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5238
SELECT ALL + col2 DIV col1 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL + col2 / col1 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-77
-78

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN col0 AND col1 OR NOT NULL NOT BETWEEN ( + col1 ) AND - col1
----

query I rowsort
SELECT DISTINCT + col2 * - col2 + col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2808
-3135
-9024

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col0 - + cor0.col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - - col0 * col1 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-5243
SELECT ALL - + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5243
SELECT ALL - + col2 / col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT col2 + + col0 * col0 IN ( - col2 )
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col2 * - col1 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT - tab1.col1 + col1 AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 * tab1.col2 + col1 AS col1 FROM tab1
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 + - ( - col0 + + tab2.col0 ) * - tab2.col1 col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col1 * col0 * col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT col0 * - 84 AS col1 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * + col0 FROM tab1 AS cor0
----
-1040
-640
-78

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 col0 + col1 * col1 AS col2 FROM tab1 AS cor0
----
164
249
679

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 + 91 + col1 FROM tab2 AS cor0
----
108
122
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-5256
SELECT + + 44 DIV + col1 col2 FROM tab2 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5256
SELECT + + 44 / + col1 col2 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT + 94 * col0 FROM tab0 cor0
----
2256
3290
8366

query I rowsort
SELECT DISTINCT + 95 * + col0 AS col0 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT - 32 * ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1056
2624
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT ALL CAST( col1 AS SIGNED ) * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL CAST ( col1 AS INTEGER ) * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5261
SELECT DISTINCT + cor0.col1 DIV col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + cor0.col1 / col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT col0 + + col2 * - tab2.col1 AS col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT 38 AS col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT col0 * tab1.col0 * - col0 + + col0 AS col2 FROM tab1
----
-24
-262080
-511920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5265
SELECT + col1 + - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5265
SELECT + col1 + - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * + col1 * ( + col1 * + col0 ) AS col1 FROM tab0 AS cor0
----
-15265344
-31943555
-67067819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - - cor0.col2 col1 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT ALL - col2 + col2 DIV 54 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - col2 + col2 / 54 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT + 86 * - cor0.col1 - 5 AS col2 FROM tab0 AS cor0
----
-7401
-7831
-8347

query I rowsort
SELECT ALL - col2 * col1 * col1 + ( col1 ) FROM tab0 AS cor0
----
-243982
-678951
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 + + col1 col1 FROM tab2 AS cor0
----
109
67
81

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab1 cor0
----
58

query I rowsort
SELECT ALL + col2 + - col0 * cor0.col0 FROM tab1 AS cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 + cor0.col0 + + 85 * col2 col1 FROM tab1 AS cor0
----
4539
4852
8144

query I rowsort
SELECT ALL - cor0.col0 * - col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + + cor0.col0 + - ( + col0 ) * - col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5278
SELECT DISTINCT col2 * + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT col2 * + col1 / col1 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT cor0.col2 + + col1 + + col0 * col1 FROM tab2 AS cor0
----
1398
275
4687

query I rowsort
SELECT ALL + - col2 * 43 AS col0 FROM tab1 AS cor0
----
-2322
-2451
-4128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5281
SELECT - cor0.col0 + col2 * ( - col0 * CAST( + col1 AS SIGNED ) + col0 ) FROM tab1 cor0
----
-32896
-4053
-92240

skipif mysql # not compatible
query I rowsort label-5281
SELECT - cor0.col0 + col2 * ( - col0 * CAST ( + col1 AS INTEGER ) + col0 ) FROM tab1 cor0
----
-32896
-4053
-92240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5282
SELECT - cor0.col2 * col0 * + 85 + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT - cor0.col2 * col0 * + 85 + col1 + + 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 col0 + col2 * + 76 col2 FROM tab0
----
111
2532
6321

query I rowsort
SELECT - col0 + col1 * ( + col2 ) AS col2 FROM tab1
----
1168
1401
506

query I rowsort
SELECT + + col2 + ( - 68 ) * - col1 FROM tab1 AS cor0
----
1822
737
980

query I rowsort
SELECT - col0 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT + col2 + 67 AS col2 FROM tab0 AS cor0
----
100
149
68

query I rowsort
SELECT + col0 * - tab1.col0 * + col1 FROM tab1
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5289
SELECT - cor0.col1 + CAST( 69 + col2 * col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2959
3308
9272

skipif mysql # not compatible
query I rowsort label-5289
SELECT - cor0.col1 + CAST ( 69 + col2 * col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2959
3308
9272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + + col1 * - col2 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col0 * - ( + ( + col2 ) ) + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + cor0.col2 + - col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT + - col0 - + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-5294
SELECT + - col0 - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + col2 * + 34 FROM tab1 cor0
----
1836
1938
3264

onlyif mysql # use DIV operator for integer division
query I rowsort label-5296
SELECT + - ( 53 ) DIV + col2 + col1 + col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-5296
SELECT + - ( 53 ) / + col2 + col1 + col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col0 FROM tab0, tab2 AS cor0
----
48

query I rowsort
SELECT - ( - 11 ) + - col1 * + col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1141
-1339
-502

query I rowsort
SELECT cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * ( + col2 ) col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - 22 * col2 FROM tab2 AS cor0
----
-572
-594
-836

query I rowsort
SELECT DISTINCT + - 76 AS col2 FROM tab2 AS cor0
----
-76

query I rowsort
SELECT - 61 + + col1 AS col0 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT + 56 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5305
SELECT ALL - 0 + col2 DIV 17 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - 0 + col2 / 17 FROM tab0
----
0
1
4

query I rowsort
SELECT ALL tab2.col0 * + col2 * + ( + ( col0 ) ) + tab2.col1 FROM tab2
----
1354
158243
237175

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT DISTINCT - col0 DIV col1 + col0 DIV - col0 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT - col0 / col1 + col0 / - col0 AS col2 FROM tab0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT - col2 * + CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT - col2 * + CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 - col2 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT 4 * + col0 AS col2 FROM tab0
----
140
356
96

query I rowsort
SELECT DISTINCT 45 * - col0 FROM tab2 cor0
----
-315
-3510
-3555

query I rowsort
SELECT - 30 * col0 FROM tab1 AS cor0
----
-1920
-2400
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5313
SELECT DISTINCT - - col0 * col2 + - col2 * + ( - col2 + + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - - col0 * col2 + - col2 * + ( - col2 + + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5314
SELECT DISTINCT - col2 + + col2 DIV 30 + + col0 FROM tab0 cor0
----
-8
34
9

skipif mysql # not compatible
query I rowsort label-5314
SELECT DISTINCT - col2 + + col2 / 30 + + col0 FROM tab0 cor0
----
-8
34
9

query I rowsort
SELECT ALL col2 - + cor0.col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT - col0 + col1 DIV cor0.col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-5316
SELECT - col0 + col1 / cor0.col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - 73 + col0 FROM tab0 AS cor0
----
-38
-49
16

query I rowsort
SELECT ALL + + col2 - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * + col0 * 51 AS col0 FROM tab2 AS cor0
----
-11067
-234702
-68493

query I rowsort
SELECT DISTINCT - + col1 * - col2 + + 28 AS col2 FROM tab0 AS cor0
----
125
2866
7490

query I rowsort
SELECT ALL - col2 + - col1 * 76 FROM tab1 cor0
----
-1084
-2030
-817

query I rowsort
SELECT DISTINCT 61 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
35
48
51

query I rowsort
SELECT ALL + - cor0.col0 * - col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + col2 - - cor0.col2 * col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - - cor0.col1 + - 46 * 62 AS col0 FROM tab2 AS cor0
----
-2793
-2821
-2835

onlyif mysql # use DIV operator for integer division
query I rowsort label-5327
SELECT col2 DIV ( 17 ) FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5327
SELECT col2 / ( 17 ) FROM tab2 cor0
----
1
1
2

query I rowsort
SELECT ALL - col0 * - 29 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT + col1 * + 65 FROM tab2 cor0
----
1105
2015
3835

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5330
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + - CAST ( NULL AS REAL ) + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 99 * col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-5343
-5579
-9424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 86 + + col0 col0 FROM tab2 AS cor0
----
-7
-79
-8

query I rowsort
SELECT + cor1.col2 * 14 + - cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7ebfa7a71cffedac9eada21e423bb368

onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT DISTINCT cor0.col0 - col1 DIV - col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT cor0.col0 - col1 / - col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL ( + col2 ) * col2 * 39 AS col1 FROM tab2 AS cor0
----
26364
28431
56316

query I rowsort
SELECT - col1 + col1 * col0 * - col2 AS col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT ALL + cor0.col2 + 72 FROM tab2, tab0 AS cor0
----
9 values hashing to d4bf81351932dc67f1fff551c325de1b

query I rowsort
SELECT DISTINCT - col2 * col0 * col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL - 6 * - tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6d325149e90af2faf0c31f064e65c424

query I rowsort
SELECT - - col1 * cor0.col1 + + col1 FROM tab0 cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + 75 FROM tab1, tab2 AS cor0
----
75

query I rowsort
SELECT ALL + col2 * col2 - 24 AS col0 FROM tab1 cor0
----
2892
3225
9192

query I rowsort
SELECT 49 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to e587c122dea39a2488ff88b884cea462

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT DISTINCT + - cor0.col1 DIV 2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-15
-29
-8

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + - cor0.col1 / 2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-15
-29
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) + col2 col1 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT DISTINCT col0 + 59 DIV col2 FROM tab1
----
4
65
80

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT col0 + 59 / col2 FROM tab1
----
4
65
80

query I rowsort
SELECT - 73 + + col0 AS col2 FROM tab0
----
-38
-49
16

query I rowsort
SELECT - tab0.col0 + col0 * col1 AS col2 FROM tab0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5350
SELECT col0 * + col2 + - CAST( col2 AS SIGNED ) * + col0 * 53 FROM tab0
----
-1820
-379496
-41184

skipif mysql # not compatible
query I rowsort label-5350
SELECT col0 * + col2 + - CAST ( col2 AS INTEGER ) * + col0 * 53 FROM tab0
----
-1820
-379496
-41184

query I rowsort
SELECT col1 + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL - 67 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT DISTINCT + 43 + col0 FROM tab1 AS cor0
----
107
123
46

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col0 * + col1 - CAST ( + col1 AS REAL ) FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT - + col2 * - cor0.col2 + - col1 AS col1 FROM tab0 cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + - 73 * col1 FROM tab1 AS cor0
----
-1898
-730
-949

query I rowsort
SELECT ALL col1 + + col2 * col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT col2 * 83 AS col1 FROM tab1
----
4482
4731
7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 6 + + tab2.col2 - - col2 * + tab2.col0 col2 FROM tab2
----
2408
3142
402

query I rowsort
SELECT DISTINCT col2 * col1 + - col1 + col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + 94 FROM tab0, tab2, tab2 cor0, tab1 AS cor1
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6

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-5363
SELECT tab0.col2 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT tab0.col2 / - col1 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 14 col2 FROM tab0
----
1148
14
462

query I rowsort
SELECT col2 + col0 * + ( - col0 + 7 * ( col2 ) ) FROM tab2 cor0
----
1301
14811
8138

query I rowsort
SELECT DISTINCT + cor0.col2 + - 72 * - col0 AS col2 FROM tab1 AS cor0
----
270
4665
5856

query I rowsort
SELECT ALL col2 * ( + col0 ) + + col1 + ( col2 ) AS col1 FROM tab1
----
242
3715
7789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 + ( + col0 ) col1 FROM tab0 AS cor0
----
103
38
49

query I rowsort
SELECT - + ( - 66 ) AS col2 FROM tab2 AS cor0
----
66
66
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5370
SELECT ALL CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 56 AS col1 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ( ( col1 ) ) * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5373
SELECT + CAST( NULL AS SIGNED ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT + CAST ( NULL AS INTEGER ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 63 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2127
-3458
-8162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5375
SELECT DISTINCT + - 33 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT + - 33 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT ALL ( col2 ) * col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col0 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT DISTINCT 16 DIV - col0 AS col1 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT 16 / - col0 AS col1 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT ALL - + 51 * col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT + col0 * col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - ( + cor0.col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - - ( col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT - col1 + 2 - + col0 * + 48 AS col2 FROM tab2 AS cor0
----
-365
-3801
-3807

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5384
SELECT ALL + + col2 * cor0.col1 + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL + + col2 * cor0.col1 + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 * - col2 + + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + - col0 * + 67 + - 2 AS col1 FROM tab1 AS cor0
----
-203
-4290
-5362

query I rowsort
SELECT ALL col2 + - 17 AS col2 FROM tab0 AS cor0
----
-16
16
65

query I rowsort
SELECT ALL - cor0.col0 + + ( - ( col1 ) ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + + col2 + 81 AS col1 FROM tab2 AS cor0
----
107
108
119

query I rowsort
SELECT + col1 * - 58 + 58 FROM tab1 AS cor0
----
-1450
-522
-696

query I rowsort
SELECT tab1.col2 + + 13 AS col0 FROM tab1
----
109
67
70

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
40

query I rowsort
SELECT - col0 + 8 AS col1 FROM tab2
----
-70
-71
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 * - 67 col0 FROM tab2 AS cor0
----
2747
2747
2747

query I rowsort
SELECT 88 + - col1 FROM tab1 AS cor0
----
62
75
78

query I rowsort
SELECT - ( + col1 ) + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT col1 DIV col1 + col2 DIV + col0 FROM tab1
----
1
19
2

skipif mysql # not compatible
query I rowsort label-5397
SELECT col1 / col1 + col2 / + col0 FROM tab1
----
1
19
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5398
SELECT - col1 * - col2 - - col0 DIV col1 FROM tab1 AS cor0
----
1254
1404
576

skipif mysql # not compatible
query I rowsort label-5398
SELECT - col1 * - col2 - - col0 / col1 FROM tab1 AS cor0
----
1254
1404
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT ALL - col2 DIV 34 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - col2 / 34 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT ALL - 19 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT DISTINCT - 23 * col1 + + col1 FROM tab1
----
-220
-286
-572

query I rowsort
SELECT + col2 + col1 * cor0.col2 - + 4 AS col2 FROM tab0 AS cor0
----
2867
7540
94

query I rowsort
SELECT col1 - + cor0.col2 AS col1 FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 col0 FROM tab0 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 86 AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-86

query I rowsort
SELECT ALL + 89 * + col1 AS col1 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT DISTINCT + 22 * - col0 + + 8 FROM tab2 AS cor0
----
-146
-1708
-1730

query I rowsort
SELECT DISTINCT + 25 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-5409
SELECT + ( + col1 ) DIV CAST( col2 AS SIGNED ) FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5409
SELECT + ( + col1 ) / CAST ( col2 AS INTEGER ) FROM tab0
----
1
2
97

query I rowsort
SELECT ALL 67 * - col2 AS col0 FROM tab0
----
-2211
-5494
-67

query I rowsort
SELECT - ( 85 ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT ALL cor0.col1 + col0 - + col0 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col0 * + ( - 68 ) FROM tab1 AS cor0
----
-204
-4352
-5440

query I rowsort
SELECT ALL 96 * - col1 + col1 FROM tab2
----
-1615
-2945
-5605

query I rowsort
SELECT ALL + col2 * + col1 * + col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + 1 * + col0 AS col1 FROM tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5417
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-5417
SELECT - cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - + col1 + + 8 FROM tab2 AS cor0
----
-23
-51
-9

query I rowsort
SELECT - col0 * + col0 + 82 AS col0 FROM tab0 AS cor0
----
-1143
-494
-7839

query I rowsort
SELECT - col1 + - ( + col1 ) FROM tab2
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5421
SELECT col0 DIV - col1 + + 20 - col2 FROM tab1 AS cor0
----
-34
-43
-82

skipif mysql # not compatible
query I rowsort label-5421
SELECT col0 / - col1 + + 20 - col2 FROM tab1 AS cor0
----
-34
-43
-82

query I rowsort
SELECT DISTINCT - col2 + + 97 AS col1 FROM tab0 AS cor0
----
15
64
96

query I rowsort
SELECT DISTINCT col2 * - ( - col2 * - cor0.col0 ) + + col1 FROM tab0 AS cor0
----
-26050
-598345
62

query I rowsort
SELECT - + col1 - cor0.col2 * - col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT - col0 + - ( - col1 ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - - 67 * + ( col2 ) + col0 AS col2 FROM tab2 AS cor0
----
1816
1820
2625

query I rowsort
SELECT + 6 * tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 316ac5a4d79cf544f322d1803ffbb530

onlyif mysql # use DIV operator for integer division
query I rowsort label-5428
SELECT ALL + + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL + + col2 / col0 AS col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT 98 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT + - col2 + + col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col0 * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT col1 + + col0 DIV cor0.col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5432
SELECT col1 + + col0 / cor0.col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT - 55 + + col0 * + col1 FROM tab2 cor0
----
1288
162
4547

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab0 AS cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1

query I rowsort
SELECT DISTINCT col1 + + col1 + col0 FROM tab0
----
196
229
271

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT DISTINCT tab2.col0 * + ( col1 * - tab2.col2 ) + - col0 * + col1 FROM tab2
----
-124254
-52377
-6076

query I rowsort
SELECT - cor0.col2 * - 95 + + col0 AS col0 FROM tab2 cor0
----
2548
2572
3689

query I rowsort
SELECT DISTINCT + - col1 + - 60 AS col1 FROM tab2 AS cor0
----
-119
-77
-91

query I rowsort
SELECT col2 * 6 FROM tab1 AS cor0
----
324
342
576

query I rowsort
SELECT - + cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5442
SELECT - CAST( cor0.col0 AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5442
SELECT - CAST ( cor0.col0 AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - + col0 * + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col2 + - col0 * - col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + - 87 * col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT ( - cor0.col1 ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT 45 * - ( - col2 ) * col2 FROM tab2 AS cor0
----
30420
32805
64980

query I rowsort
SELECT DISTINCT + 44 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
44

query I rowsort
SELECT col1 - col2 * - col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL 6 + - col2 * + ( + 62 ) FROM tab2 AS cor0
----
-1606
-1668
-2350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 + - col1 * - col2 * col2 col0 FROM tab2 AS cor0
----
22657
24603
39969

query I rowsort
SELECT col1 + col0 * cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
118922
49622
720902

query I rowsort
SELECT ALL ( col1 * ( - ( col0 ) ) ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + col0 + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - + col0 + col2 * - col0 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
-233526
-463
-614467

query I rowsort
SELECT DISTINCT + col2 * - 46 + cor0.col2 AS col2 FROM tab1 cor0
----
-2430
-2565
-4320

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + 83 * - col1 * + ( + col0 ) AS col1 FROM tab1
----
-53120
-6474
-86320

query I rowsort
SELECT col2 + + col2 - - ( - col2 ) * + col2 FROM tab1
----
-2808
-3135
-9024

query I rowsort
SELECT ALL + tab1.col2 + - col2 * + ( - col2 ) * tab1.col1 - col2 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL + 57 - col1 FROM tab1
----
31
44
47

query I rowsort
SELECT DISTINCT + ( col1 + + col0 ) FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT col1 - ( 5 ) DIV col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5463
SELECT col1 - ( 5 ) / col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col0 * + cor0.col0 + - 17 AS col1 FROM tab0 AS cor0
----
-1242
-593
-7938

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col0 * + cor0.col0 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-106018
-1512
-358878

query I rowsort
SELECT + col1 * + col2 * 85 + - col2 AS col1 FROM tab0 AS cor0
----
241197
634188
8244

query I rowsort
SELECT ALL - cor0.col0 + + 64 AS col1 FROM tab2 AS cor0
----
-14
-15
57

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 cor1, tab2 cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

query I rowsort
SELECT ALL - + col0 + + ( - col0 ) * cor0.col0 FROM tab1 cor0
----
-12
-4160
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT DISTINCT - col2 * - col1 + col0 DIV col1 + + 98 AS col0 FROM tab2 AS cor0
----
1633
748
935

skipif mysql # not compatible
query I rowsort label-5470
SELECT DISTINCT - col2 * - col1 + col0 / col1 + + 98 AS col0 FROM tab2 AS cor0
----
1633
748
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT ALL + + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL + + col0 / + col1 AS col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + 78 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT ALL cor0.col0 * + 33 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 50435502fe4cc98ac65611aca14332b4

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0, tab0 cor1
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be

onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT ALL col0 + - col2 DIV - ( col1 ) FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL col0 + - col2 / - ( col1 ) FROM tab2
----
7
78
81

query I rowsort
SELECT ALL - col1 * + 46 + - tab0.col0 FROM tab0
----
-3980
-4275
-4497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + ( - col0 ) col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5478
SELECT DISTINCT - col1 + CAST( - col2 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT - col1 + CAST ( - col2 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL + tab1.col2 + ( - col0 * col1 ) FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL - col2 * + 5 FROM tab0
----
-165
-410
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5481
SELECT ALL - CAST( NULL AS SIGNED ) * col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col1 + col0 * col1 * - col2 FROM tab1
----
-36490
-4238
-99853

query I rowsort
SELECT ALL + - 66 + - col1 + col2 * col1 * col0 FROM tab0 AS cor0
----
3232
663961
67960

query I rowsort
SELECT ALL + 91 AS col0 FROM tab2
----
91
91
91

query I rowsort
SELECT - 59 FROM tab1, tab2 cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT - tab2.col0 + - 3 * col2 AS col0 FROM tab2
----
-156
-193
-88

query I rowsort
SELECT col0 * - col1 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ( col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + ( - col0 ) * - col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL 92 * - cor0.col0 + col2 * 29 AS col2 FROM tab1 cor0
----
-4235
-4576
1290

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT - 72 + col0 * col0 FROM tab1
----
-63
4024
6328

query I rowsort
SELECT + 84 AS col0 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT ALL - 40 * - col1 AS col1 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT ALL col2 * + col1 - + 12 * 55 FROM tab2 AS cor0
----
-14
177
874

query I rowsort
SELECT - + ( col2 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + + 19 + + col1 AS col0 FROM tab0 AS cor0
----
105
110
116

onlyif mysql # use DIV operator for integer division
query I rowsort label-5498
SELECT DISTINCT 85 + + cor0.col1 DIV + 42 AS col2 FROM tab2 AS cor0
----
85
86

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT 85 + + cor0.col1 / + 42 AS col2 FROM tab2 AS cor0
----
85
86

query I rowsort
SELECT - + 33 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT ALL 77 + - col1 FROM tab0 cor0
----
-14
-20
-9

query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 21 * + 69 FROM tab1
----
1449
1449
1449

query I rowsort
SELECT DISTINCT - - col1 * + 25 FROM tab1 cor0
----
250
325
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT 25 DIV + col0 AS col1 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5504
SELECT 25 / + col0 AS col1 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 55 col2 FROM tab1
----
-165
-3520
-4400

query I rowsort
SELECT DISTINCT 72 * col1 FROM tab2
----
1224
2232
4248

query I rowsort
SELECT 84 * - col2 + - col1 FROM tab1 AS cor0
----
-4562
-4798
-8077

query I rowsort
SELECT + - col2 * col2 - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL - col2 + + 87 AS col1 FROM tab2 AS cor0
----
49
60
61

query I rowsort
SELECT ALL + + 54 * 96 FROM tab2 AS cor0
----
5184
5184
5184

query I rowsort
SELECT - + 80 + - col2 AS col2 FROM tab2 AS cor0
----
-106
-107
-118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5512
SELECT + cor0.col0 + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT + cor0.col0 + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + + col2 * cor0.col1 + - 56 FROM tab0 AS cor0
----
2806
7495
76

query I rowsort
SELECT + ( + col2 ) + 58 * col1 AS col2 FROM tab1 AS cor0
----
1562
637
850

query I rowsort
SELECT - - 84 * - col2 FROM tab2 AS cor0
----
-2184
-2268
-3192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5516
SELECT ( col2 ) * CAST( NULL AS DECIMAL ) + + cor0.col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5516
SELECT ( col2 ) * CAST ( NULL AS REAL ) + + cor0.col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col2 * ( cor1.col0 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489

query I rowsort
SELECT ALL + col0 + - col1 * + col1 + col0 FROM tab0
----
-7348
-8103
-9339

query I rowsort
SELECT ALL col0 + + 71 AS col1 FROM tab0 AS cor0
----
106
160
95

query I rowsort
SELECT DISTINCT + cor0.col0 + + 18 FROM tab2 AS cor0
----
25
96
97

query I rowsort
SELECT ALL - col0 + col0 + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col2 + - ( - col0 * col0 ) AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ( 17 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5525
SELECT col1 + + CAST( 98 * + col2 AS SIGNED ) FROM tab2
----
2607
2677
3741

skipif mysql # not compatible
query I rowsort label-5525
SELECT col1 + + CAST ( 98 * + col2 AS INTEGER ) FROM tab2
----
2607
2677
3741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 * cor0.col0 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07ce49567b7db3d14be321c6e4bfd1d7

query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) * col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5528
SELECT ALL CAST( NULL AS DECIMAL ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL CAST ( NULL AS REAL ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 50 + + col2 * + col0 FROM tab0 AS cor0
----
-15
7248
742

query I rowsort
SELECT ALL + tab0.col2 * ( + 64 + + col0 ) FROM tab0
----
12546
2904
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 65 col2 FROM tab2 AS cor0
----
-13
-14
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col2 * col0 col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - 10 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 + col0 col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col0 * col1 + - 93 * col1 FROM tab2 AS cor0
----
-238
-2666
-885

query I rowsort
SELECT ALL - 59 AS col1 FROM tab0 AS cor0
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT + col2 + + 53 FROM tab0 AS cor0
----
135
54
86

query I rowsort
SELECT ALL col2 * + col2 * col1 AS col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + col2 * - ( - col0 ) + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT col2 + 64 + - col2 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5542
SELECT 60 - col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-5542
SELECT 60 - col2 / + col2 AS col2 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT ALL col2 + + col1 * + col2 FROM tab0 cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 + + col1 col2 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5545
SELECT ALL col2 + col1 DIV - col0 + - cor0.col1 FROM tab1 cor0
----
20
47
83

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL col2 + col1 / - col0 + - cor0.col1 FROM tab1 cor0
----
20
47
83

query I rowsort
SELECT ALL - col2 - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + - col2 col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - + 3 + col1 AS col0 FROM tab1 AS cor0
----
10
23
7

query I rowsort
SELECT DISTINCT ( col1 ) - col0 FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT + col1 - + tab0.col0 AS col0 FROM tab0
----
2
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5551
SELECT ALL CAST( + 14 * col2 AS SIGNED ) + - col0 - + col2 AS col0 FROM tab1
----
1168
677
699

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL CAST ( + 14 * col2 AS INTEGER ) + - col0 - + col2 AS col0 FROM tab1
----
1168
677
699

query I rowsort
SELECT 95 + 79 + col2 AS col2 FROM tab1
----
228
231
270

onlyif mysql # use DIV operator for integer division
query I rowsort label-5553
SELECT ALL - col1 * - col0 + col0 DIV col0 AS col2 FROM tab0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-5553
SELECT ALL - col1 * - col0 + col0 / col0 AS col2 FROM tab0
----
2065
3396
8100

query I rowsort
SELECT 55 * - col2 FROM tab1
----
-2970
-3135
-5280

query I rowsort
SELECT tab0.col0 + - 46 - col2 AS col0 FROM tab0
----
-12
-39
-55

query I rowsort
SELECT DISTINCT tab0.col1 - 65 * col2 AS col2 FROM tab0
----
-2059
-5239
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5557
SELECT + CAST( col1 AS SIGNED ) * col0 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5557
SELECT + CAST ( col1 AS INTEGER ) * col0 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * tab1.col2 col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT DISTINCT 84 + col0 AS col2 FROM tab2
----
162
163
91

query I rowsort
SELECT ALL + ( col1 ) * col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT - col1 * + col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT DISTINCT - 50 + + col1 DIV - col1 AS col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - 50 + + col1 / - col1 AS col2 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT + + col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5564
SELECT ALL - 94 + - col2 DIV - col0 FROM tab1
----
-76
-93
-94

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - 94 + - col2 / - col0 FROM tab1
----
-76
-93
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT ( col1 ) + + col1 * col1 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5565
SELECT ( col1 ) + + col1 * col1 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 74 + + col1 AS col2 FROM tab2 cor0
----
-15
-43
-57

query I rowsort
SELECT ALL + + 21 - col1 AS col2 FROM tab2 AS cor0
----
-10
-38
4

query I rowsort
SELECT - ( + 82 ) * cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 42b59a367fa225585638578814d78b30

query I rowsort
SELECT 74 FROM tab2, tab0 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL 13 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5571
SELECT - - CAST( col0 AS SIGNED ) + + col0 * - col0 * + cor0.col2 FROM tab1 AS cor0
----
-233408
-483
-614320

skipif mysql # not compatible
query I rowsort label-5571
SELECT - - CAST ( col0 AS INTEGER ) + + col0 * - col0 * + cor0.col2 FROM tab1 AS cor0
----
-233408
-483
-614320

query I rowsort
SELECT DISTINCT + - col2 + + 45 * - col2 AS col2 FROM tab0 AS cor0
----
-1518
-3772
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT ALL - 37 DIV col2 + + col0 * col0 * col0 col0 FROM tab1
----
262144
27
512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - 37 / col2 + + col0 * col0 * col0 col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 97 * - cor0.col2 col2 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT DISTINCT 77 * cor0.col0 AS col0 FROM tab2 AS cor0
----
539
6006
6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT - col2 + col2 DIV - col0 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-5577
SELECT - col2 + col2 / - col0 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT + col1 + - col2 FROM tab1 WHERE NOT ( NULL ) = - col1
----

query I rowsort
SELECT ALL + - col0 + - col0 * col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT - - col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT DISTINCT col0 + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT col0 + col1 / - col1 AS col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL - col1 * + col2 + col2 FROM tab2 cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-5583
SELECT col2 + col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-5583
SELECT col2 + col1 / - col0 AS col1 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT DISTINCT - - col0 * col2 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT + - col0 * col0 + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-1190
-623
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col0 + col0 * - col1 + col0 col0 FROM tab1 AS cor0
----
3072
6720
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT - col2 DIV col1 + - col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5587
SELECT - col2 / col1 + - col1 * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IN ( - cor0.col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col0 col2 FROM tab2 AS cor0 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT col1 + + col1 * col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL + col2 + + col1 * + col0 * tab2.col1 - col0 FROM tab2
----
22790
271466
6747

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col2 / col2 )
----

query I rowsort
SELECT + col2 * col1 + col1 - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * col1 AS col1 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT - col1 + + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT + - col2 + + col2 * col1 * - col2 FROM tab2 cor0
----
-22626
-24586
-39910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + + cor0.col1 col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT ALL - col0 DIV + tab2.col0 + - col2 AS col1 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - col0 / + tab2.col0 + - col2 AS col1 FROM tab2
----
-27
-28
-39

query I rowsort
SELECT DISTINCT + col2 * col2 + col1 AS col1 FROM tab2 cor0
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-5600
SELECT DISTINCT col2 DIV - col0 AS col0 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT col2 / - col0 AS col0 FROM tab2
----
-3
0

query I rowsort
SELECT ALL col1 * - col1 * col1 AS col0 FROM tab2
----
-205379
-29791
-4913

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( col1 - - col1 ) AND NULL OR NULL NOT IN ( + col1 * + col1 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - col2 col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col1 * + col1 ) AND NOT col0 IN ( col2 )
----

query I rowsort
SELECT DISTINCT - col2 * tab0.col1 * tab0.col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT col1 + + col2 * + col0 AS col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL + 6 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT + 91 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
91

query I rowsort
SELECT ALL 45 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT - col2 * 69 AS col2 FROM tab1
----
-3726
-3933
-6624

onlyif mysql # use DIV operator for integer division
query I rowsort label-5611
SELECT + col2 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5611
SELECT + col2 / - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 * col0 * col0 AS col2 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT - 56 * + 21 AS col1 FROM tab2
----
-1176

query I rowsort
SELECT DISTINCT - col1 + - 64 AS col2 FROM tab2 cor0
----
-123
-81
-95

query I rowsort
SELECT - ( - 7 ) * - col1 + cor0.col1 FROM tab0 AS cor0
----
-516
-546
-582

onlyif mysql # use DIV operator for integer division
query I rowsort label-5617
SELECT col2 DIV col0 + col2 FROM tab2 AS cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-5617
SELECT col2 / col0 + col2 FROM tab2 AS cor0
----
26
30
38

query I rowsort
SELECT + cor0.col0 + + 13 * - 65 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to a1b021d0d823ab848a169c3c7d40e938

query I rowsort
SELECT ALL + col1 + - 14 AS col0 FROM tab1 AS cor0
----
-1
-4
12

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 + + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - + col2 + - col2 FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 - ( - cor0.col1 ) col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL 21 AS col0 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT ALL 21 * + 87 FROM tab0
----
1827
1827
1827

onlyif mysql # use DIV operator for integer division
query I rowsort label-5625
SELECT col2 DIV cor0.col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5625
SELECT col2 / cor0.col1 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col0 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT - - ( col2 ) * - 41 + col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
-1710
-2592
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col1 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT - + 57 + col2 * - col0 FROM tab1 cor0
----
-219
-3705
-7737

onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT DISTINCT + - col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT + - col1 / col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT col0 * - col2 + - 20 FROM tab2 cor0
----
-2048
-209
-3022

query I rowsort
SELECT col1 + + cor0.col0 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - - cor0.col1 * + col0 * cor0.col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + + col0 + ( ( col0 ) ) FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT cor0.col0 + - col1 AS col0 FROM tab1 cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5636
SELECT ALL col1 DIV - 87 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL col1 / - 87 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + col2 * - 17 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT DISTINCT - - col0 + ( - cor0.col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5639
SELECT ALL - cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL - cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT + col1 * + ( col0 ) AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL 77 + - tab0.col0 FROM tab0
----
-12
42
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5643
SELECT ALL + col0 + - col0 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL + col0 + - col0 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT DISTINCT + ( col2 ) DIV ( + 68 + - col0 ) AS col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT + ( col2 ) / ( + 68 + - col0 ) AS col2 FROM tab0
----
-3
0

query I rowsort
SELECT - 19 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT + col2 + 54 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT - col0 * + 64 + col2 FROM tab1 AS cor0
----
-138
-4039
-5024

query I rowsort
SELECT - - 6 - - cor0.col1 FROM tab0 AS cor0
----
103
92
97

query I rowsort
SELECT 9 * + 96 - col1 AS col1 FROM tab2 AS cor0
----
805
833
847

query I rowsort
SELECT ALL col2 * 31 * - col1 FROM tab1
----
-17670
-38688
-43524

query I rowsort
SELECT - + ( cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL col0 * 80 + col0 FROM tab1 AS cor0
----
243
5184
6480

query I rowsort
SELECT - - 10 AS col1 FROM tab0 AS cor0
----
10
10
10

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5655
SELECT CAST( NULL AS SIGNED ) * - 11 - col2 * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5655
SELECT CAST ( NULL AS INTEGER ) * - 11 - col2 * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 18 + + 53 * col1 AS col0 FROM tab2 AS cor0
----
1661
3145
919

query I rowsort
SELECT ALL + ( + 84 ) + cor0.col2 FROM tab1 cor0
----
138
141
180

query I rowsort
SELECT DISTINCT 74 * + col1 + col0 * - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-2288
-35740
-98878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 - cor0.col1 col0 FROM tab2 AS cor0
----
-107
-135
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5660
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) * - col1 * cor0.col2 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) * - col1 * cor0.col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col2 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL cor0.col1 + + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL - 80 * - col1 AS col1 FROM tab1 AS cor0
----
1040
2080
800

query I rowsort
SELECT DISTINCT 98 * + 42 + - col0 FROM tab0 AS cor0
----
4027
4081
4092

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5665
SELECT CAST( NULL AS SIGNED ) - 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT CAST ( NULL AS INTEGER ) - 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 + 34 AS col0 FROM tab1 AS cor0
----
114
37
98

query I rowsort
SELECT - - col0 * + col1 + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + + ( + col0 ) * col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - col2 - 12 AS col1 FROM tab2 AS cor0
----
-38
-39
-50

query I rowsort
SELECT DISTINCT - + cor0.col0 * + cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT cor0.col1 + col0 * - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - cor0.col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - ( - col0 ) - - col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 45 * - col2 - + col0 col2 FROM tab2 AS cor0
----
-1222
-1248
-1789

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5675
SELECT DISTINCT + - CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5676
SELECT - CAST( 0 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5676
SELECT - CAST ( 0 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5677
SELECT ALL CAST( NULL AS DECIMAL ) + - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL CAST ( NULL AS REAL ) + - cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 - cor0.col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 91 AS REAL ) FROM tab0 AS cor0
----
-91
-91
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5680
SELECT ALL CAST( NULL AS SIGNED ) / col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL CAST ( NULL AS INTEGER ) / col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5681
SELECT ( 66 + col0 ) * + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ( 66 + col0 ) * + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 40 FROM tab0 AS cor0
----
122
41
73

query I rowsort
SELECT 43 - col1 * - col2 AS col0 FROM tab2
----
1577
689
880

query I rowsort
SELECT - 45 * col2 + 12 FROM tab1
----
-2418
-2553
-4308

query I rowsort
SELECT ALL - 90 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

onlyif mysql # use DIV operator for integer division
query I rowsort label-5686
SELECT ALL - tab1.col0 DIV tab1.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - tab1.col0 / tab1.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT DISTINCT cor0.col1 * + 25 FROM tab1, tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT ALL col2 + - 52 * + cor0.col0 FROM tab0 AS cor0
----
-1215
-1819
-4546

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col2 + ( 10 ) FROM tab2 AS cor0
----
36
37
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col2 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col2 + - 91 + + col1 * - cor0.col0 * - 41 FROM tab2 AS cor0
----
188617
55010
8833

query I rowsort
SELECT - + col2 * + 14 AS col1 FROM tab1 AS cor0
----
-1344
-756
-798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5694
SELECT - col1 * + CAST( NULL AS SIGNED ) * - col0 + col0 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT - col1 * + CAST ( NULL AS INTEGER ) * - col0 + col0 * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( cor0.col0 ) FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col0 * cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT DISTINCT + col1 DIV 69 AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT + col1 / 69 AS col2 FROM tab0 cor0
----
1

query I rowsort
SELECT 69 AS col2 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT ALL - col1 + + 64 FROM tab0 AS cor0
----
-22
-27
-33

query I rowsort
SELECT - + col2 + col1 * 42 * - col1 + - col2 FROM tab2 AS cor0
----
-12214
-146254
-40416

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - 7 + + col0 FROM tab2 AS cor0
----
0
71
72

query I rowsort
SELECT ALL + col0 * col1 * + ( - col2 ) + + col2 AS col0 FROM tab2
----
-119626
-50996
-5832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5704
SELECT + cor0.col0 * + col0 - + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
6110
6279
76

skipif mysql # not compatible
query I rowsort label-5704
SELECT + cor0.col0 * + col0 - + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5705
SELECT - CAST( NULL AS DECIMAL ) * cor0.col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5705
SELECT - CAST ( NULL AS REAL ) * cor0.col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + - col0 * - col1 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ( col2 ) + col2 * ( + col0 ) FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + col1 * - col0 + 16 AS col0 FROM tab0 AS cor0
----
-2048
-3379
-8083

query I rowsort
SELECT ALL cor0.col0 * - col2 * + 68 + - col1 AS col0 FROM tab2 AS cor0
----
-12883
-137963
-204153

query I rowsort
SELECT cor0.col2 + col2 + - 36 AS col1 FROM tab1 AS cor0
----
156
72
78

query I rowsort
SELECT DISTINCT + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - ( col2 ) ) col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 + - 56 FROM tab2 AS cor0
----
-25
-39
3

query I rowsort
SELECT + - cor0.col0 * + 2 + 5 + col0 FROM tab1 AS cor0
----
-59
-75
2

query I rowsort
SELECT + - cor0.col2 * - col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - col2 + + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT ( - col0 ) + - ( - ( col1 ) * + col2 ) FROM tab2
----
1456
567
830

query I rowsort
SELECT - cor0.col0 + - 80 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d5218ef4aa8c8f464adab5f8e38a8a02

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5721
SELECT DISTINCT col0 + + col2 DIV col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT col0 + + col2 / col2 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT tab2.col1 * col0 + col2 * + col2 FROM tab2
----
2787
5278
946

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - col2
----

query I rowsort
SELECT DISTINCT col1 + + tab1.col0 AS col0 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + - col2 col0 FROM tab2
----
22
6058
6203

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL IN ( + col1 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col1 FROM tab1
----
55
55
55

query I rowsort
SELECT ALL + 34 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT ALL + cor0.col2 * + col1 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL col2 * col2 * col2 AS col0 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT - tab0.col1 * + col2 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col0 * tab2.col0 * col1 AS col2 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT ALL - col0 + + col2 * col0 FROM tab0
----
0
7209
768

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col0 + - col1 )
----

query I rowsort
SELECT - col0 + col0 * + col2 AS col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT - col2 * - tab1.col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT tab0.col1 + - tab0.col2 * col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT col0 DIV - col1 + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5738
SELECT col0 / - col1 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT col0 * - col1 - + col1 FROM tab2
----
-1360
-248
-4661

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 * - col2 ) IN ( - col1 * + col0 * + col0 + col2 )
----

query I rowsort
SELECT + col2 * col1 + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - col0 + + tab2.col1 * col2 FROM tab2
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5743
SELECT ALL - col2 + - col1 * col0 DIV col2 + col1 FROM tab0
----
-3299
-89
-9

skipif mysql # not compatible
query I rowsort label-5743
SELECT ALL - col2 + - col1 * col0 / col2 + col1 FROM tab0
----
-3299
-89
-9

query I rowsort
SELECT - col1 + col2 - col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col2 + col1 + col2 FROM tab1
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT ALL + col0 * + col0 + + tab1.col2 * + tab1.col1 DIV col1 - - col0 FROM tab1
----
4217
6576
66

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL + col0 * + col0 + + tab1.col2 * + tab1.col1 / col1 - - col0 FROM tab1
----
4217
6576
66

query I rowsort
SELECT col1 * + col0 * col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + col1 + tab1.col1 + col2 FROM tab1
----
106
122
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) NOT IN ( - tab0.col2 )
----

query I rowsort
SELECT ALL col2 + + col1 * + col0 / - col2 FROM tab2 WHERE ( col0 * + col1 ) <= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab0.col0 col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col1 + col2 + col0 * col1 * - col2 AS col1 FROM tab1
----
-36413
-4132
-99731

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col2 )
----

query I rowsort
SELECT col0 + - col0 AS col2 FROM tab0 WHERE NULL IN ( col2 + col2 * tab0.col2 )
----

query I rowsort
SELECT DISTINCT 27 - col2 AS col2 FROM tab0
----
-55
-6
26

query I rowsort
SELECT + ( - col2 ) * + col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5757
SELECT ALL col1 + 59 * col0 DIV + col2 - col0 FROM tab1
----
-18
12
26

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL col1 + 59 * col0 / + col2 - col0 FROM tab1
----
-18
12
26

query I rowsort
SELECT + - cor0.col1 + + col0 * + col1 AS col2 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT - cor0.col0 * + col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10

query I rowsort
SELECT + - col0 + + cor0.col1 + + col2 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT + - cor0.col1 + + col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT DISTINCT + + 6 DIV + col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT + + 6 / + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - ( 98 + col2 ) * - tab0.col1 AS col1 FROM tab0
----
11266
16380
9603

query I rowsort
SELECT ALL col2 * + col1 * col1 AS col2 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5766
SELECT + tab2.col2 DIV - cor0.col0 AS col1 FROM tab2, tab0, tab1 cor0
----
27 values hashing to c6036ba1cb339bffa28fd5e30854b6d3

skipif mysql # not compatible
query I rowsort label-5766
SELECT + tab2.col2 / - cor0.col0 AS col1 FROM tab2, tab0, tab1 cor0
----
27 values hashing to c6036ba1cb339bffa28fd5e30854b6d3

query I rowsort
SELECT - 86 * + col0 FROM tab0
----
-2064
-3010
-7654

query I rowsort
SELECT - + 90 * - col1 AS col2 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT ALL 66 + col1 FROM tab0 AS cor0
----
152
157
163

onlyif mysql # use DIV operator for integer division
query I rowsort label-5770
SELECT + + col0 DIV col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5770
SELECT + + col0 / col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - - col2 * 38 AS col2 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT DISTINCT + + 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
99

query I rowsort
SELECT ALL + 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT + + col2 * 26 FROM tab0 AS cor0
----
2132
26
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-5775
SELECT - col0 DIV + cor0.col2 + + col1 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-5775
SELECT - col0 / + cor0.col2 + + col1 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT ALL ( 65 ) FROM tab0 AS cor0
----
65
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT DISTINCT col0 DIV + ( col1 ) + col1 AS col2 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT col0 / + ( col1 ) + col1 AS col2 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT DISTINCT + - 43 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5779
SELECT col0 DIV + ( ( + col0 ) ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5779
SELECT col0 / + ( ( + col0 ) ) AS col0 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5780
SELECT col0 DIV + ( + col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT col0 / + ( + col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT 26 + col2 AS col1 FROM tab0
----
108
27
59

query I rowsort
SELECT + tab0.col0 + col1 * - 71 FROM tab0
----
-6082
-6372
-6852

onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT DISTINCT - col2 DIV tab1.col0 AS col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-5783
SELECT DISTINCT - col2 / tab1.col0 AS col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT DISTINCT + 12 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7384
-8269
-9397

query I rowsort
SELECT cor0.col1 * - col1 * + 71 AS col2 FROM tab1 AS cor0
----
-11999
-47996
-7100

query I rowsort
SELECT ALL + 15 * cor0.col0 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT DISTINCT 45 + - col0 FROM tab1 AS cor0
----
-19
-35
42

query I rowsort
SELECT DISTINCT 75 * col1 FROM tab1 AS cor0
----
1950
750
975

onlyif mysql # use DIV operator for integer division
query I rowsort label-5789
SELECT - + 59 DIV - cor0.col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5789
SELECT - + 59 / - cor0.col0 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - col0 - ( + col1 * col2 ) FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT - cor0.col2 * col0 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT - + col0 + 85 FROM tab0 AS cor0
----
-4
50
61

query I rowsort
SELECT DISTINCT - col2 * 74 AS col0 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT ALL - col2 * col0 + - col2 FROM tab0 cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 - - col1 * col0 col1 FROM tab0 AS cor0
----
16198
4128
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-5796
SELECT ALL + - col0 + col2 * ( + cor0.col1 ) DIV + ( - col2 * col1 ) + col1 AS col1 FROM tab1 AS cor0
----
-55
-68
22

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL + - col0 + col2 * ( + cor0.col1 ) / + ( - col2 * col1 ) + col1 AS col1 FROM tab1 AS cor0
----
-55
-68
22

query I rowsort
SELECT ALL + 33 * - col0 * col0 AS col2 FROM tab2
----
-1617
-200772
-205953

query I rowsort
SELECT DISTINCT - + col0 * ( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col2 + - 54 * col0 AS col2 FROM tab1 AS cor0
----
-108
-3399
-4224

query I rowsort
SELECT DISTINCT - col2 + + col1 + col0 AS col1 FROM tab2 cor0
----
11
111
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT ALL + ( col2 ) * col1 + + ( + col0 ) DIV - col0 AS col2 FROM tab0 AS cor0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL + ( col2 ) * col1 + + ( + col0 ) / - col0 AS col2 FROM tab0 AS cor0
----
2837
7461
96

query I rowsort
SELECT col1 + + col0 + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL + cor0.col0 + 53 * col1 AS col2 FROM tab2 cor0
----
1650
3205
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col2 col0 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5805
SELECT col2 + ( col1 ) * + CAST( NULL AS SIGNED ) * 60 + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5805
SELECT col2 + ( col1 ) * + CAST ( NULL AS INTEGER ) * 60 + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - ( col2 ) + col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT 62 + + 98 FROM tab0 AS cor0
----
160
160
160

query I rowsort
SELECT + col1 * tab0.col0 * tab0.col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + cor0.col2 * 87 AS col2 FROM tab0 AS cor0
----
2871
7134
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5811
SELECT ALL - ( col1 ) * col2 + CAST( NULL AS DECIMAL ) / + 96 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL - ( col1 ) * col2 + CAST ( NULL AS REAL ) / + 96 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 460ecaf0151851c22525e8eac77a0a82

query I rowsort
SELECT ALL - + 16 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT - 18 * col0 + - col0 FROM tab2
----
-133
-1482
-1501

query I rowsort
SELECT ( - col2 ) * - tab1.col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col0 + - col0 * col2 + + col2 * col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col2 + col2 * - col1 AS col0 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT 48 + + col1 FROM tab1 cor0
----
58
61
74

query I rowsort
SELECT - + col2 * - cor0.col2 + - cor0.col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + ( + col1 ) + 57 FROM tab1 cor0
----
67
70
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col0 col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL 0 * col2 + 44 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT DISTINCT ( + col1 ) + - col0 * 66 - col0 AS col0 FROM tab2 AS cor0
----
-438
-5167
-5276

query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab2 cor0
----
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5826
SELECT - - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5826
SELECT - - col0 / col2 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT col1 * col0 + ( - col2 ) FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT 49 FROM tab1, tab0 cor0
----
49

query I rowsort
SELECT col0 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL ( - col1 ) + tab2.col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + tab1.col2 AS col2 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab2 AS cor0
----
98

query I rowsort
SELECT ALL + col2 * + col1 + col2 FROM tab2 cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col2 + - col2 col0 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96

query I rowsort
SELECT - col0 * col1 * col2 + ( + col0 * cor0.col2 ) + col2 FROM tab2 AS cor0
----
-117598
-47994
-5643

query I rowsort
SELECT - - col2 - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - - col2 + + cor0.col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - col0 + - ( col2 ) + ( - col2 ) AS col2 FROM tab2
----
-130
-155
-61

query I rowsort
SELECT + ( + col2 ) * + col1 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5843
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 * + cor0.col0 * + cor0.col1 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 * + cor0.col0 * + cor0.col1 AS col0 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 58 * 44 col2 FROM tab1 cor0
----
2552
2552
2552

query I rowsort
SELECT ALL + 55 * 11 AS col0 FROM tab1 AS cor0
----
605
605
605

query I rowsort
SELECT cor0.col0 + 25 AS col1 FROM tab2 AS cor0
----
103
104
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5847
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 15 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 15 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - col0 + + col2 AS col1 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT ALL - ( col2 ) - + col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col0 + + 39 AS col1 FROM tab1 cor0
----
-25
-41
36

query I rowsort
SELECT - + cor0.col1 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + 52 + col1 AS col0 FROM tab2 AS cor0
----
111
69
83

query I rowsort
SELECT ALL + col2 + + 86 * - cor0.col0 FROM tab1 AS cor0
----
-204
-5447
-6784

query I rowsort
SELECT + + col1 * + ( - col2 * col2 ) AS col0 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT + col1 * col1 + + 69 * col2 * - ( col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
-10499
-251548
-529671

query I rowsort
SELECT + - cor0.col2 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT col0 * + cor0.col2 + cor0.col1 * - col2 FROM tab0 cor0
----
-164
-2046
-62

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 + - cor0.col1 * ( col2 ) - - col1 * 24 col2 FROM tab0 cor0
----
-5278
-774
2231

query I rowsort
SELECT + col0 * 43 AS col0 FROM tab2 AS cor0
----
301
3354
3397

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT + col0 + + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT + col0 + + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * cor0.col2 + + col2 * + 65 FROM tab0 AS cor0
----
-2132
-32
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT - + 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-5864
SELECT - + col0 / col2 col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + 23 * - col2 + col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1411
-1918
-2377

query I rowsort
SELECT - 80 * col1 + - 80 FROM tab2 AS cor0
----
-1440
-2560
-4800

query I rowsort
SELECT DISTINCT 9 FROM tab2, tab1 cor0, tab1 cor1
----
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT + col2 + cor0.col1 DIV - col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-5868
SELECT + col2 + cor0.col1 / - col2 FROM tab0 AS cor0
----
-96
31
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT DISTINCT col2 DIV 23 + - col1 * col0 * ( 43 ) AS col0 FROM tab1 AS cor0
----
-27518
-3352
-44716

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT col2 / 23 + - col1 * col0 * ( 43 ) AS col0 FROM tab1 AS cor0
----
-27518
-3352
-44716

query I rowsort
SELECT DISTINCT + col0 * 26 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
14943
205864
31849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + col1 col0 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT DISTINCT col0 DIV 15 FROM tab0 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT col0 / 15 FROM tab0 AS cor0
----
1
2
5

query I rowsort
SELECT col2 + + ( + cor0.col2 ) * col2 + + cor0.col2 AS col0 FROM tab2 cor0
----
1520
728
783

onlyif mysql # use DIV operator for integer division
query I rowsort label-5874
SELECT DISTINCT - col0 DIV ( 76 ) + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-80

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT - col0 / ( 76 ) + - col0 AS col2 FROM tab2 AS cor0
----
-7
-79
-80

query I rowsort
SELECT - col1 * col0 - col2 * + col1 AS col2 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT DISTINCT - - 68 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
68

query I rowsort
SELECT - col1 * col1 - - col1 AS col0 FROM tab2
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5878
SELECT ALL col2 / ( col0 ) - + col2 * CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL col2 / ( col0 ) - + col2 * CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + col1 * - col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT + col1 + + 38 * col0 * + col1 AS col1 FROM tab0
----
129107
307853
78518

query I rowsort
SELECT DISTINCT cor0.col2 - + 97 FROM tab2 AS cor0
----
-59
-70
-71

query I rowsort
SELECT col0 + + col0 + + tab2.col2 FROM tab2
----
182
196
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-5883
SELECT - 65 DIV 90 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5883
SELECT - 65 / 90 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - + ( + col2 ) * - col1 + - col2 + ( col2 * + col2 + + col1 ) FROM tab0 AS cor0
----
14195
194
3980

query I rowsort
SELECT - + 75 * col1 AS col2 FROM tab0 AS cor0
----
-6450
-6825
-7275

query I rowsort
SELECT ( 85 ) AS col1 FROM tab1
----
85
85
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5887
SELECT - ( + col0 ) * - CAST( - cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-5887
SELECT - ( + col0 ) * - CAST ( - cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col1 + cor0.col0 * 88 * + col0 AS col0 FROM tab2 AS cor0
----
4281
535333
549191

query I rowsort
SELECT cor0.col2 + - col2 * 58 AS col0 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT DISTINCT + 28 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
28

query I rowsort
SELECT ALL col0 * tab0.col2 + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL tab0.col1 + - 34 FROM tab0
----
52
57
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5893
SELECT ALL col0 + CAST( NULL AS SIGNED ) + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT ALL col0 + CAST ( NULL AS INTEGER ) + - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5894
SELECT + + cor0.col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5894
SELECT + + cor0.col0 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 + + col2 + - 19 FROM tab2 AS cor0
----
-23
-52
2

query I rowsort
SELECT - 15 FROM tab1 cor0
----
-15
-15
-15

query I rowsort
SELECT ALL - 55 FROM tab0 cor0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT - + col2 + 35 FROM tab1 AS cor0
----
-19
-22
-61

query I rowsort
SELECT DISTINCT - - 82 * col2 * - cor0.col1 + col1 FROM tab1 AS cor0
----
-102323
-115102
-46730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL col2 * 97 + + cor0.col2 - + col2 AS col2 FROM tab0 cor0
----
3201
7954
97

query I rowsort
SELECT DISTINCT - + 45 + - col1 AS col1 FROM tab1 AS cor0
----
-55
-58
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5903
SELECT DISTINCT CAST( NULL AS SIGNED ) + 47 * col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 47 * col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( cor0.col1 ) * col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + + 1 + - col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT + ( - 98 ) FROM tab1 AS cor0
----
-98

query I rowsort
SELECT DISTINCT 59 * - 22 AS col2 FROM tab0 AS cor0
----
-1298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5908
SELECT ALL + CAST( + 84 AS SIGNED ) FROM tab0 AS cor0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + CAST ( + 84 AS INTEGER ) FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT ALL 18 + + col0 AS col0 FROM tab1 AS cor0
----
21
82
98

query I rowsort
SELECT DISTINCT - - 67 * cor0.col0 AS col2 FROM tab1 AS cor0
----
201
4288
5360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5911
SELECT - CAST( - 13 AS SIGNED ) FROM tab1 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-5911
SELECT - CAST ( - 13 AS INTEGER ) FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT + 45 * - 13 AS col1 FROM tab0 cor0
----
-585

query I rowsort
SELECT ALL - 64 + col1 * col0 FROM tab1 AS cor0
----
14
576
976

query I rowsort
SELECT + 34 * - 67 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f165ef560867840cdaf17cdf3f24b27d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5915
SELECT - col0 * cor0.col2 + - ( + 99 ) DIV col2 - col2 * - 15 FROM tab0 AS cor0
----
-119
-300
-6069

skipif mysql # not compatible
query I rowsort label-5915
SELECT - col0 * cor0.col2 + - ( + 99 ) / col2 - col2 * - 15 FROM tab0 AS cor0
----
-119
-300
-6069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 col1 FROM tab1, tab0 AS cor0
----
10
13
26

query I rowsort
SELECT + 98 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL - col2 * col2 * ( + col1 ) FROM tab2 cor0
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 + + col1 col1 FROM tab0 AS cor0
----
75
80
86

query I rowsort
SELECT ALL - 11 + col0 FROM tab0 AS cor0
----
13
24
78

query I rowsort
SELECT 97 * + cor0.col0 * + ( col2 * + cor0.col0 ) + col0 AS col2 FROM tab2 AS cor0
----
128338
15343926
23004405

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5922
SELECT ALL + + col1 + - col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL + + col1 + - col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - col0 + ( + 67 ) AS col0 FROM tab0 cor0
----
-7231
-725
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5924
SELECT + + ( - col1 ) DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5924
SELECT + + ( - col1 ) / + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 + col0 - cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
1163
514
7919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 + col1 col0 FROM tab1 AS cor0
----
17
20
33

query I rowsort
SELECT ALL - + col0 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL 36 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - cor0.col2 * + col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5930
SELECT DISTINCT - col0 DIV col2 - col1 AS col1 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-5930
SELECT DISTINCT - col0 / col2 - col1 AS col1 FROM tab1 AS cor0
----
-11
-13
-26

query I rowsort
SELECT - col0 + 96 + col0 FROM tab1 AS cor0
----
96
96
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT + col1 * col1 * + col0 - - tab0.col0 DIV col1 FROM tab0
----
177504
329315
737009

skipif mysql # not compatible
query I rowsort label-5932
SELECT + col1 * col1 * + col0 - - tab0.col0 / col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ( col1 ) * - col1 - ( + tab2.col2 ) AS col0 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT - col2 - cor0.col1 * - col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT - col0 * - cor0.col2 + - col2 * col0 + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - - col1 * 63 AS col0 FROM tab0 AS cor0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT DISTINCT + col0 DIV - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + col0 / - ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( col0 * col2 ) + - col2 col1 FROM tab2 cor0
----
114038
5076
52702

query I rowsort
SELECT ALL - col1 * - col0 + 81 * - col2 AS col1 FROM tab2 cor0
----
-1735
-1970
2496

query I rowsort
SELECT ALL - cor0.col1 * + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - col0 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col1 + - ( ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT col2 * - CAST( + 57 * col0 AS SIGNED ) - + col2 FROM tab0 AS cor0
----
-1996
-416068
-45177

skipif mysql # not compatible
query I rowsort label-5943
SELECT col2 * - CAST ( + 57 * col0 AS INTEGER ) - + col2 FROM tab0 AS cor0
----
-1996
-416068
-45177

onlyif mysql # use DIV operator for integer division
query I rowsort label-5944
SELECT + col1 + 52 DIV cor0.col0 FROM tab0 AS cor0
----
88
91
98

skipif mysql # not compatible
query I rowsort label-5944
SELECT + col1 + 52 / cor0.col0 FROM tab0 AS cor0
----
88
91
98

query I rowsort
SELECT tab1.col1 * - tab1.col0 + + col1 - + 46 * col2 FROM tab1
----
-2536
-3252
-5443

query I rowsort
SELECT col1 + 46 * + col0 FROM tab1 AS cor0
----
164
2954
3693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT ALL - col0 DIV ( 30 ) + col0 AS col2 FROM tab2 AS cor0
----
7
76
77

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - col0 / ( 30 ) + col0 AS col2 FROM tab2 AS cor0
----
7
76
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5948
SELECT col1 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5948
SELECT col1 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col2 * 42 + - tab2.col0 FROM tab2
----
-1141
-1170
-1675

query I rowsort
SELECT - cor1.col2 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 3e2b81ca10484cbfc66f186955e0e920

query I rowsort
SELECT 3 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT DISTINCT 63 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
63

query I rowsort
SELECT DISTINCT col0 * - col2 + col0 AS col2 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT - + 1 * col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5956
SELECT ALL + 46 DIV - cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL + 46 / - cor0.col2 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL - col1 * + 23 FROM tab1
----
-230
-299
-598

query I rowsort
SELECT DISTINCT - ( 94 ) FROM tab1
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab2.col2 + 29 col2 FROM tab2
----
1563
675
866

onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT - tab0.col2 * col2 DIV - col2 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5962
SELECT - tab0.col2 * col2 / - col2 AS col0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5963
SELECT tab2.col1 DIV col0 col0 FROM tab2
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5963
SELECT tab2.col1 / col0 col0 FROM tab2
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col2 FROM tab2
----
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5965
SELECT + col0 + ( - col1 ) * + CAST( NULL AS SIGNED ) + + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT + col0 + ( - col1 ) * + CAST ( NULL AS INTEGER ) + + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 52 + col1 AS col2 FROM tab2 AS cor0
----
-21
-35
7

query I rowsort
SELECT - ( + cor0.col2 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL + 20 + + ( - col1 ) * ( col1 ) FROM tab2 AS cor0
----
-269
-3461
-941

query I rowsort
SELECT DISTINCT + 21 * col1 AS col2 FROM tab0 AS cor0
----
1806
1911
2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-5970
SELECT ALL - 21 DIV col2 FROM tab0 AS cor0
----
-21
0
0

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL - 21 / col2 FROM tab0 AS cor0
----
-21
0
0

query I rowsort
SELECT + + col2 + - 59 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
-38076
-49356
-90480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * col1 col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT + col0 + - col0 DIV 70 FROM tab1 cor0
----
3
64
79

skipif mysql # not compatible
query I rowsort label-5973
SELECT + col0 + - col0 / 70 FROM tab1 cor0
----
3
64
79

query I rowsort
SELECT DISTINCT 19 FROM tab1, tab2 AS cor0
----
19

query I rowsort
SELECT + - cor0.col2 + col1 * - ( 3 ) * col1 FROM tab1 cor0
----
-2082
-357
-603

query I rowsort
SELECT col2 + - col2 * + 1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 67 FROM tab1, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT - col0 + - ( + 72 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1303
-2239
-4326

query I rowsort
SELECT + col1 * + 27 FROM tab0 AS cor0
----
2322
2457
2619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - ( 36 ) col1 FROM tab2 AS cor0
----
-53
-67
-95

query I rowsort
SELECT 42 * col1 + col0 AS col0 FROM tab1 AS cor0
----
1095
484
626

query I rowsort
SELECT + - col0 * - 72 AS col0 FROM tab0 cor0
----
1728
2520
6408

query I rowsort
SELECT + col1 + ( 75 ) * col0 AS col2 FROM tab1
----
251
4810
6013

query I rowsort
SELECT col2 * + col1 + 58 * - tab2.col1 AS col1 FROM tab2
----
-1888
-340
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( col2 ) * col2 col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT col0 * - 49 AS col0 FROM tab2
----
-343
-3822
-3871

onlyif mysql # use DIV operator for integer division
query I rowsort label-5987
SELECT DISTINCT - tab2.col1 DIV - 42 col2 FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT - tab2.col1 / - 42 col2 FROM tab2
----
0
1

query I rowsort
SELECT + 5 * col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT DISTINCT 68 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
68

query I rowsort
SELECT - 75 * 15 AS col1 FROM tab1 cor0
----
-1125
-1125
-1125

query I rowsort
SELECT 10 * - cor0.col2 * col2 FROM tab2 AS cor0
----
-14440
-6760
-7290

query I rowsort
SELECT ALL 59 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL + 57 FROM tab1, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL + col2 + - 44 FROM tab1 AS cor0
----
10
13
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5995
SELECT CAST( NULL AS SIGNED ) * cor0.col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT CAST ( NULL AS INTEGER ) * cor0.col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 + + 11 * - col0 - cor0.col1 FROM tab0 AS cor0
----
1714
2913
7029

query I rowsort
SELECT ALL + + cor0.col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab2
----
53
53
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5999
SELECT - tab2.col1 * - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5999
SELECT - tab2.col1 * - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - - col2 * ( 74 * col1 ) + 58 FROM tab1 AS cor0
----
103954
42238
92410

query I rowsort
SELECT ALL col2 * ( cor0.col1 ) - - col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT col2 * 97 AS col2 FROM tab1 AS cor0
----
5238
5529
9312

query I rowsort
SELECT tab2.col0 * 31 * tab2.col0 + col0 FROM tab2
----
1526
188682
193550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + - col2 * ( + col1 * cor0.col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + col2 + + 94 FROM tab2 AS cor0
----
120
121
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + tab1.col0 * col1 col0 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6009
SELECT - - col2 DIV col1 + cor0.col2 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6009
SELECT - - col2 / col1 + cor0.col2 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT ALL + + cor0.col1 + 81 AS col2 FROM tab0 AS cor0
----
167
172
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-6011
SELECT cor0.col1 + + 22 + - col0 DIV + col2 FROM tab1 AS cor0
----
31
35
48

skipif mysql # not compatible
query I rowsort label-6011
SELECT cor0.col1 + + 22 + - col0 / + col2 FROM tab1 AS cor0
----
31
35
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-6012
SELECT DISTINCT + col0 DIV 60 AS col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT + col0 / 60 AS col2 FROM tab1 cor0
----
0
1

query I rowsort
SELECT - col2 + col0 * col0 + col1 FROM tab0 cor0
----
1321
629
7930

query I rowsort
SELECT ALL col0 + cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT cor0.col1 + 11 FROM tab0 AS cor0
----
102
108
97

query I rowsort
SELECT - + col0 * 99 + - col2 FROM tab2 AS cor0
----
-720
-7748
-7859

query I rowsort
SELECT ALL - + col0 * ( + ( - cor0.col0 ) ) + - col1 AS col0 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT + col2 DIV - 14 + - col2 FROM tab0 cor0
----
-1
-35
-87

skipif mysql # not compatible
query I rowsort label-6018
SELECT + col2 / - 14 + - col2 FROM tab0 cor0
----
-1
-35
-87

query I rowsort
SELECT DISTINCT - col0 * - 88 FROM tab2 AS cor0
----
616
6864
6952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL col1 + col2 + 70 FROM tab2
----
125
128
155

query I rowsort
SELECT tab1.col1 - + 2 FROM tab1
----
11
24
8

query I rowsort
SELECT col0 * ( + col2 ) + col0 + + col0 FROM tab0
----
105
7476
840

query I rowsort
SELECT + col1 * - ( - col0 ) + col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT cor0.col2 + - 27 * - 88 AS col0 FROM tab0 AS cor0
----
2377
2409
2458

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * + cor0.col0 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( + col1 ) col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + 87 * col0 AS col1 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT ALL 32 * + col2 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT - 58 + - cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e93e9a9386e07320984459c006e95c6f

query I rowsort
SELECT 31 + col1 FROM tab2
----
48
62
90

query I rowsort
SELECT ALL + col2 * + col0 + cor0.col0 * col0 FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT - col2 * - col2 + - 96 AS col2 FROM tab2 AS cor0
----
1348
580
633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 * col0 col0 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT col2 * - col2 + tab2.col0 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT 98 * cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to da8d4f2a1e6c5b1716a2cfa22160974b

query I rowsort
SELECT DISTINCT + col2 - - col1 * ( - 52 ) AS col2 FROM tab0 AS cor0
----
-4439
-4650
-5043

query I rowsort
SELECT ALL - - col0 + + col1 * 93 FROM tab0 cor0
----
8022
8552
9056

query I rowsort
SELECT ALL - col0 * col2 + - ( - col1 + - col1 ) AS col1 FROM tab0 AS cor0
----
-620
-7116
159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6041
SELECT ALL col0 + - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL col0 + - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6042
SELECT DISTINCT - - col1 * - col1 - col0 DIV col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT - - col1 * - col1 - col0 / col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + + col0 * + col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL - + col2 - cor0.col2 * + col1 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6045
SELECT ALL - - 79 / col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL - - 79 / col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - col1 * col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col1 col2 FROM tab0 cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6048
SELECT DISTINCT col2 * - col1 - - CAST( col2 + + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1430
-529
-803

skipif mysql # not compatible
query I rowsort label-6048
SELECT DISTINCT col2 * - col1 - - CAST ( col2 + + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1430
-529
-803

query I rowsort
SELECT DISTINCT - ( + col0 ) * + 84 FROM tab1
----
-252
-5376
-6720

query I rowsort
SELECT col2 + col1 * - 80 FROM tab2
----
-1322
-2453
-4694

query I rowsort
SELECT 74 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + - col1 * col0 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT ALL + + col1 DIV col0 col1 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6054
SELECT ALL + + col1 / col0 col1 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL 44 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT ALL - 6 AS col0 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + col2 - + col1 AS col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - - col0 * + 85 + cor0.col0 FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT + - col0 + 16 AS col2 FROM tab2 AS cor0
----
-62
-63
9

query I rowsort
SELECT col0 + + 5 + col0 * col2 FROM tab2 AS cor0
----
201
2111
3086

query I rowsort
SELECT col1 - - ( + col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - col2 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT + + 5 * col1 + col2 FROM tab1 AS cor0
----
107
161
184

query I rowsort
SELECT + - 90 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT + + 24 AS col2 FROM tab2 AS cor0
----
24

query I rowsort
SELECT + col0 * + col1 + + col0 * - col2 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT ALL + 74 * + col2 FROM tab1 cor0
----
3996
4218
7104

query I rowsort
SELECT + col0 + + col0 + - cor0.col2 AS col0 FROM tab2 cor0
----
-13
120
130

query I rowsort
SELECT + col1 * + col2 + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ( - col2 ) * cor0.col2 + ( - ( cor0.col2 ) ) * - col0 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT + ( col2 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT cor0.col1 * ( col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + ( 36 ) AS col0 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6075
SELECT ALL - - CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL - - CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT col1 + 99 FROM tab1 AS cor0
----
109
112
125

query I rowsort
SELECT ALL + - col0 + - ( col2 * + col1 + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-167
-2886
-7640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col2 FROM tab1 AS cor0
----
100
169
676

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT - col1 FROM tab0 WHERE ( col0 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * col0 * + col2 + - col0 * - col1 * col0 FROM tab0
----
117648
122220
1384929

query I rowsort
SELECT - col1 / + tab2.col0 AS col0 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT - col1 DIV - col1 + - col1 + + tab2.col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6083
SELECT - col1 / - col1 + - col1 + + tab2.col1 AS col2 FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT ALL col0 * tab1.col2 - - col1 DIV - col2 AS col1 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL col0 * tab1.col2 - - col1 / - col2 AS col1 FROM tab1
----
162
3648
7680

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 + tab1.col0 * col0 * col2 col2 FROM tab1
----
233408
483
614320

query I rowsort
SELECT tab1.col0 / - col0 + col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT col1 / - tab0.col1 AS col0 FROM tab0 WHERE NULL <= + col0 - + col1
----

query I rowsort
SELECT ALL + col1 + - col1 * tab2.col1 AS col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT + col1 + col0 * col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT - col2 + col1 FROM tab2 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL = - col0 - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 * - col2 + col2 col1 FROM tab2
----
114114
5130
52754

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab0 WHERE NOT col1 = NULL
----

query I rowsort
SELECT - col1 + col1 - + col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL col1 - + col0 * col1 * col0 FROM tab2
----
-106080
-1488
-358897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + - col0 col2 FROM tab2
----
42
6006
6162

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 IN ( col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col2 * tab2.col1 + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT + col1 * tab0.col1 + col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6103
SELECT - col2 + + col0 DIV - col0 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-6103
SELECT - col2 + + col0 / - col0 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT + col0 - + tab1.col0 * + col0 * col1 FROM tab1
----
-231
-40896
-83120

query I rowsort
SELECT ALL tab1.col2 + + col2 * + tab1.col2 FROM tab1
----
2970
3306
9312

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( col0 + - col2 + + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col2 * col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT IN ( - col2 * - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT DISTINCT tab0.col1 + - col0 * 15 + + col2 DIV - col0 AS col0 FROM tab0
----
-1244
-275
-428

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT tab0.col1 + - col0 * 15 + + col2 / - col0 AS col0 FROM tab0
----
-1244
-275
-428

query I rowsort
SELECT ALL + 40 FROM tab0, tab1 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6111
SELECT - cor0.col2 DIV col0 + 59 * col2 * 0 + - col0 * col1 FROM tab1 AS cor0
----
-1041
-640
-96

skipif mysql # not compatible
query I rowsort label-6111
SELECT - cor0.col2 / col0 + 59 * col2 * 0 + - col0 * col1 FROM tab1 AS cor0
----
-1041
-640
-96

query I rowsort
SELECT - - col1 * - 24 + - col0 + - col0 * + ( cor0.col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
-106584
-2270
-360450

query I rowsort
SELECT - col2 * col2 * ( - col1 + col1 ) AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT - col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6114
SELECT - col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT DISTINCT + col2 DIV 55 col1 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6115
SELECT DISTINCT + col2 / 55 col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT col2 * + ( + 40 ) AS col0 FROM tab1
----
2160
2280
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT + + col1 * - ( - 44 ) * col2 + cor0.col0 DIV - col0 + col1 FROM tab1 AS cor0
----
25089
54924
61801

skipif mysql # not compatible
query I rowsort label-6117
SELECT + + col1 * - ( - 44 ) * col2 + cor0.col0 / - col0 + col1 FROM tab1 AS cor0
----
25089
54924
61801

query I rowsort
SELECT col1 + - col0 * col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - ( 97 ) * - col2 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT 98 * col0 AS col1 FROM tab1 AS cor0
----
294
6272
7840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6121
SELECT ALL + CAST( NULL AS SIGNED ) + cor0.col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL + CAST ( NULL AS INTEGER ) + cor0.col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col1 + + 90 - + col0 AS col1 FROM tab1 AS cor0
----
113
23
36

query I rowsort
SELECT DISTINCT + 8 * col1 FROM tab2 AS cor0
----
136
248
472

query I rowsort
SELECT + + 59 * col2 AS col1 FROM tab1 AS cor0
----
3186
3363
5664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6125
SELECT + col1 * - col2 + CAST( NULL AS SIGNED ) + + ( + col1 ) / + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6125
SELECT + col1 * - col2 + CAST ( NULL AS INTEGER ) + + ( + col1 ) / + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 + col1 * 22 FROM tab1 AS cor0
----
230
299
598

query I rowsort
SELECT + 33 * + col0 * col1 - - col2 FROM tab1 AS cor0
----
21177
2628
34416

query I rowsort
SELECT col1 * col1 - tab0.col0 * tab0.col1 AS col1 FROM tab0
----
182
5332
6014

query I rowsort
SELECT + + 14 - col0 AS col1 FROM tab2 AS cor0
----
-64
-65
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT 18 DIV - col0 - - 76 * col0 * col2 AS col1 FROM tab1 AS cor0
----
12306
277248
583680

skipif mysql # not compatible
query I rowsort label-6130
SELECT 18 / - col0 - - 76 * col0 * col2 AS col1 FROM tab1 AS cor0
----
12306
277248
583680

query I rowsort
SELECT DISTINCT - 11 * - cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT + col2 + cor0.col2 * + ( + col2 ) AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - + col0 * + 95 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT + - col0 + + col0 * col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT ALL - col2 * + col1 + - col2 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL - 10 * - 4 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6137
SELECT - col2 DIV + ( + col1 ) + - col0 + col0 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT - col2 / + ( + col1 ) + - col0 + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col1 * col0 * 33 AS col0 FROM tab0
----
112035
267267
68112

query I rowsort
SELECT DISTINCT col2 * 11 + - col0 FROM tab1 AS cor0
----
563
591
976

query I rowsort
SELECT ALL - col2 + + col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT col0 + + ( + ( col2 ) ) * cor0.col2 * 96 FROM tab1 AS cor0
----
279939
311968
884816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT - + col2 DIV - cor0.col0 + col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-6142
SELECT - + col2 / - cor0.col0 + col1 FROM tab1 AS cor0
----
10
14
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6143
SELECT ALL col0 * ( col2 ) * col0 + - CAST( - cor0.col2 AS SIGNED ) FROM tab1 cor0
----
233529
540
614496

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL col0 * ( col2 ) * col0 + - CAST ( - cor0.col2 AS INTEGER ) FROM tab1 cor0
----
233529
540
614496

query I rowsort
SELECT 22 * + col2 * 67 - + col2 FROM tab1
----
141408
79542
83961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT ALL 96 DIV + col0 FROM tab1
----
1
1
32

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL 96 / + col0 FROM tab1
----
1
1
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT tab1.col1 DIV tab1.col1 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6146
SELECT tab1.col1 / tab1.col1 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT col0 * + col1 * - ( col0 ) - + col1 * - col0 FROM tab1
----
-156
-40320
-82160

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + cor1.col1 + 60 + - 88 * + cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d3f50f7fbcdb20ff13ad7a29638797e0

query I rowsort
SELECT 61 * col1 AS col0 FROM tab1
----
1586
610
793

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6151
SELECT + col2 * + col0 + - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT + col2 * + col0 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 + - 81 + + col1 AS col1 FROM tab2 AS cor0
----
-43
15
56

query I rowsort
SELECT + 23 FROM tab0, tab2 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT ALL 75 + col0 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL 75 + col0 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - + 23 + + col1 * cor0.col0 FROM tab0 AS cor0
----
2041
3372
8076

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6156
SELECT DISTINCT CAST( + cor0.col2 AS SIGNED ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT CAST ( + cor0.col2 AS INTEGER ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 89 FROM tab1, tab1 AS cor0
----
89

query I rowsort
SELECT + ( cor0.col2 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6159
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 * col0 - + col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 * col0 - + col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col0 * 66 FROM tab0
----
1584
2310
5874

onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT col2 DIV + col0 - cor0.col0 FROM tab0 cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-6161
SELECT col2 / + col0 - cor0.col0 FROM tab0 cor0
----
-23
-35
-89

query I rowsort
SELECT ALL - - cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT col1 + col1 * 58 AS col0 FROM tab1 AS cor0
----
1534
590
767

query I rowsort
SELECT cor0.col2 + col2 * col0 * ( col1 * ( + 56 ) ) AS col1 FROM tab0 AS cor0
----
190121
37190690
3814305

query I rowsort
SELECT - col1 * + 50 FROM tab1
----
-1300
-500
-650

query I rowsort
SELECT DISTINCT col0 + 59 + - col0 FROM tab2
----
59

query I rowsort
SELECT DISTINCT + - col2 * col2 + + 39 FROM tab0 AS cor0
----
-1050
-6685
38

query I rowsort
SELECT + - col0 + + col1 * col2 AS col0 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT col2 * - 51 AS col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT DISTINCT cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL col2 + col1 * + col2 + col1 AS col1 FROM tab1 cor0
----
1357
1484
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT ALL + col2 DIV + 78 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL + col2 / + 78 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6173
SELECT ALL col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 75 AS col2 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT ALL 60 * col0 + + col2 FROM tab1
----
234
3897
4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT DISTINCT + col0 DIV ( col2 ) + col2 AS col1 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT + col0 / ( col2 ) + col2 AS col1 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT ALL + + col1 * col0 + 11 FROM tab1 cor0
----
1051
651
89

query I rowsort
SELECT ALL + col2 + - 39 AS col2 FROM tab2 AS cor0
----
-1
-12
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-6179
SELECT ALL + + col0 DIV - col1 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1034
634
78

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL + + col0 / - col1 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1034
634
78

query I rowsort
SELECT + 88 * cor0.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d49f2ec4cff37f52a8fd0c3ee9c42d05

query I rowsort
SELECT - col0 + + ( col1 ) AS col2 FROM tab1
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL col0 * ( - ( - col1 ) + + col1 ) * - 48 FROM tab1
----
-61440
-7488
-99840

query I rowsort
SELECT ALL + tab0.col1 * + 68 FROM tab0
----
5848
6188
6596

query I rowsort
SELECT DISTINCT - col2 * ( col0 ) * + col2 AS col0 FROM tab0
----
-26136
-35
-598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6186
SELECT + CAST( 45 AS SIGNED ) * + col2 col2 FROM tab2 AS cor0
----
1170
1215
1710

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6186
SELECT + CAST ( 45 AS INTEGER ) * + col2 col2 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT ALL - - col2 * - cor0.col2 + + col0 * ( + 13 ) FROM tab0 AS cor0
----
-5567
-777
454

query I rowsort
SELECT DISTINCT 81 + tab2.col1 FROM tab2, tab2 AS cor0
----
112
140
98

query I rowsort
SELECT + - col1 + + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - 56 * 83 FROM tab1 AS cor0
----
-4648
-4648
-4648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6191
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6191
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 60 * cor0.col1 AS col2 FROM tab2 cor0
----
1020
1860
3540

query I rowsort
SELECT ALL + + col1 + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT cor0.col2 + + col1 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6195
SELECT DISTINCT col2 + - col2 * cor0.col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT col2 + - col2 * cor0.col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6196
SELECT ALL + + cor0.col2 DIV 14 + col2 AS col0 FROM tab0 AS cor0
----
1
35
87

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL + + cor0.col2 / 14 + col2 AS col0 FROM tab0 AS cor0
----
1
35
87

query I rowsort
SELECT DISTINCT + 12 * col2 * col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
14896
16845
6776

query I rowsort
SELECT DISTINCT - col2 * + col0 + col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT - 34 * cor0.col0 + ( + col1 ) FROM tab1 AS cor0
----
-2166
-2707
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT DISTINCT + - cor0.col0 + - col1 DIV col1 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT + - cor0.col0 + - col1 / col1 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT ( col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - - 92 + col1 * - col0 * col1 FROM tab2 AS cor0
----
-22739
-271426
-6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-6203
SELECT ALL - + col2 DIV - col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - + col2 / - col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6204
SELECT DISTINCT - col0 * col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT DISTINCT - col0 * col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col0 * col1 * 99 FROM tab1 AS cor0
----
-102960
-63360
-7722

query I rowsort
SELECT + + 95 AS col2 FROM tab0 cor0
----
95
95
95

query I rowsort
SELECT + col2 * + col1 + 39 * col2 FROM tab0 AS cor0
----
10660
136
4125

query I rowsort
SELECT ALL col2 - - 95 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT DISTINCT - col0 * 47 - + col2 * + col0 FROM tab1 AS cor0
----
-11440
-303
-6656

onlyif mysql # use DIV operator for integer division
query I rowsort label-6211
SELECT col0 * col1 + cor0.col0 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-6211
SELECT col0 * col1 + cor0.col0 / cor0.col0 AS col2 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT ALL + col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + - col0 + + cor0.col2 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT ALL + + cor0.col0 * 35 FROM tab1 AS cor0
----
105
2240
2800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6215
SELECT - col1 + + col0 * - CAST( NULL AS DECIMAL ) / - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT - col1 + + col0 * - CAST ( NULL AS REAL ) / - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c

query I rowsort
SELECT + col1 * col0 + + 34 FROM tab0 cor0
----
2098
3429
8133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * - col2 col1 FROM tab1 AS cor0
----
-3942
-4161
-7008

query I rowsort
SELECT + col2 * - col2 * - col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
132
26222
598527

onlyif mysql # use DIV operator for integer division
query I rowsort label-6220
SELECT - + col0 * col1 DIV + col0 + + 88 FROM tab1 AS cor0
----
62
75
78

skipif mysql # not compatible
query I rowsort label-6220
SELECT - + col0 * col1 / + col0 + + 88 FROM tab1 AS cor0
----
62
75
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT - ( col1 ) DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6221
SELECT - ( col1 ) / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6222
SELECT DISTINCT + + col0 DIV + col2 + - ( cor0.col0 + col2 ) * + col0 AS col1 FROM tab1 cor0
----
-14080
-171
-7743

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT + + col0 / + col2 + - ( cor0.col0 + col2 ) * + col0 AS col1 FROM tab1 cor0
----
-14080
-171
-7743

query I rowsort
SELECT ALL - 28 * col2 + col2 AS col2 FROM tab1 AS cor0
----
-1458
-1539
-2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab2
----
90
90
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT ALL + col1 + + col1 DIV ( - cor0.col1 ) + 16 AS col2 FROM tab1 AS cor0
----
25
28
41

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL + col1 + + col1 / ( - cor0.col1 ) + 16 AS col2 FROM tab1 AS cor0
----
25
28
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6226
SELECT ALL + - col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6226
SELECT ALL + - col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - col1 * - col1 * col0 AS col0 FROM tab0
----
177418
329218
736918

query I rowsort
SELECT DISTINCT 20 * col2 FROM tab2
----
520
540
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col1 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT - 46 * + col1 + col2 FROM tab0 AS cor0
----
-3923
-4104
-4461

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6231
SELECT DISTINCT - col0 + + CAST( col1 + col1 * - col2 AS SIGNED ) AS col1 FROM tab1
----
-1315
-1381
-624

skipif mysql # not compatible
query I rowsort label-6231
SELECT DISTINCT - col0 + + CAST ( col1 + col1 * - col2 AS INTEGER ) AS col1 FROM tab1
----
-1315
-1381
-624

query I rowsort
SELECT - 38 + + col0 AS col0 FROM tab2 cor0
----
-31
40
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6233
SELECT col1 + CAST( col2 AS SIGNED ) + col2 FROM tab0
----
152
255
99

skipif mysql # not compatible
query I rowsort label-6233
SELECT col1 + CAST ( col2 AS INTEGER ) + col2 FROM tab0
----
152
255
99

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 160649b428b8d254517cd2096e054d21

query I rowsort
SELECT col2 * 31 AS col2 FROM tab2
----
1178
806
837

query I rowsort
SELECT ALL + ( 9 ) FROM tab1
----
9
9
9

query I rowsort
SELECT - 93 AS col1 FROM tab2
----
-93
-93
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6238
SELECT DISTINCT - tab2.col0 DIV col1 AS col2 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6238
SELECT DISTINCT - tab2.col0 / col1 AS col2 FROM tab2
----
-1
-4
0

query I rowsort
SELECT col0 * col0 * tab0.col1 AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT col0 + - ( cor0.col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + - col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL - 15 * + col0 * + cor0.col2 FROM tab2 AS cor0
----
-2835
-30420
-45030

query I rowsort
SELECT 1 * + col2 + + 45 AS col1 FROM tab1 AS cor0
----
102
141
99

query I rowsort
SELECT + - 75 * + col0 * - cor0.col1 + ( col2 * + col0 ) - + col0 FROM tab2 cor0
----
103648
16457
347100

query I rowsort
SELECT ALL col0 - + 1 AS col1 FROM tab2
----
6
77
78

query I rowsort
SELECT 45 + + col0 * + col2 FROM tab2 AS cor0
----
2073
234
3047

onlyif mysql # use DIV operator for integer division
query I rowsort label-6247
SELECT ALL + col1 DIV col1 + - col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL + col1 / col1 + - col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT + + cor0.col0 * - col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 * - cor0.col1 col2 FROM tab0 cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT 9 + - col0 AS col0 FROM tab1 AS cor0
----
-55
-71
6

query I rowsort
SELECT ALL + ( + col2 ) - ( col2 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab2, tab2 AS cor0
----
70

query I rowsort
SELECT + col0 + - 7 AS col1 FROM tab2
----
0
71
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6254
SELECT - col2 * CAST( NULL AS SIGNED ) + + col0 * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6254
SELECT - col2 * CAST ( NULL AS INTEGER ) + + col0 * col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col0 * - 3 * + ( col0 * cor0.col0 + + col0 ) FROM tab2 AS cor0
----
-1176
-1441908
-1497840

query I rowsort
SELECT col0 * - col0 + + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT - + col1 + cor0.col1 * - cor0.col2 FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 46 + + ( + col1 ) - - 51 * - 60 col1 FROM tab2 AS cor0
----
-2955
-2983
-2997

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * cor0.col1 + col0 col0 FROM tab2 AS cor0
----
-1822
-3403
-924

query I rowsort
SELECT DISTINCT - 98 + - col2 AS col2 FROM tab1 AS cor0
----
-152
-155
-194

query I rowsort
SELECT + 81 * + 6 - + col2 AS col0 FROM tab0 AS cor0
----
404
453
485

query I rowsort
SELECT ALL - + 56 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + + ( col0 ) + cor0.col0 - + cor0.col2 * 71 FROM tab1 AS cor0
----
-3828
-3919
-6656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + cor0.col1 + cor0.col1 * col1 col1 FROM tab2 cor0
----
253
3487
939

query I rowsort
SELECT + col0 + col0 - - col1 FROM tab2 AS cor0
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 * col2 col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + ( 82 ) AS col0 FROM tab2 AS cor0
----
82

query I rowsort
SELECT - 52 * col2 + col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT ALL + col2 * 18 * + ( col1 ) AS col0 FROM tab1
----
10260
22464
25272

onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT - + 55 * cor0.col0 DIV + col1 + + col0 FROM tab1 AS cor0
----
-258
-288
-3

skipif mysql # not compatible
query I rowsort label-6270
SELECT - + 55 * cor0.col0 / + col1 + + col0 FROM tab1 AS cor0
----
-258
-288
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( 72 ) col0 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL - 11 AS col1 FROM tab2
----
-11
-11
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6273
SELECT ALL + 5 DIV + col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + 5 / + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - col0 + + 79 * + col1 * col1 AS col2 FROM tab0 AS cor0
----
584260
654110
743276

query I rowsort
SELECT ALL 53 + + cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6de72cfdc7ce4f6b03b2c8d379f7cb8e

query I rowsort
SELECT ALL col2 * + tab0.col0 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + + col1 + 90 AS col2 FROM tab2 AS cor0
----
107
121
149

query I rowsort
SELECT ALL 44 * cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a768a9462a5cd8e44817aa414e7bac61

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT ALL - col1 DIV 13 + col0 * ( - col0 ) + col0 FROM tab0
----
-1197
-558
-7839

skipif mysql # not compatible
query I rowsort label-6280
SELECT ALL - col1 / 13 + col0 * ( - col0 ) + col0 FROM tab0
----
-1197
-558
-7839

query I rowsort
SELECT ALL col2 + 52 FROM tab2
----
78
79
90

query I rowsort
SELECT ALL + ( cor0.col1 ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - 74 * 32 AS col1 FROM tab1 AS cor0
----
-2368

query I rowsort
SELECT 30 * col0 * + col0 + - ( + col1 * col0 ) AS col2 FROM tab0 AS cor0
----
15216
229531
33355

query I rowsort
SELECT ALL - + 75 * + col2 + col2 * ( col1 ) FROM tab1 AS cor0
----
-2646
-3705
-5952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6286
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab2, tab1 AS cor0
----
-72

query I rowsort
SELECT + - 21 + + 58 AS col0 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + - 71 FROM tab2 cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT 56 + + cor0.col0 * col0 FROM tab2 AS cor0
----
105
6140
6297

query I rowsort
SELECT ALL cor0.col1 - - col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - - 88 AS col2 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col1 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT + 73 * - cor0.col1 + + col2 FROM tab2 AS cor0
----
-1203
-2236
-4281

query I rowsort
SELECT - 86 * - col1 AS col2 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT - ( col0 ) * col0 * - 30 AS col0 FROM tab2
----
1470
182520
187230

query I rowsort
SELECT ALL 84 * - col1 + tab1.col2 AS col2 FROM tab1
----
-2130
-783
-996

onlyif mysql # use DIV operator for integer division
query I rowsort label-6299
SELECT DISTINCT 68 DIV + col2 + - col2 * col2 + + col2 AS col1 FROM tab1
----
-2861
-3191
-9120

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT 68 / + col2 + - col2 * col2 + + col2 AS col1 FROM tab1
----
-2861
-3191
-9120

query I rowsort
SELECT ALL col2 + 3 * tab0.col0 FROM tab0
----
105
106
349

query I rowsort
SELECT + 52 + col2 AS col0 FROM tab0 AS cor0
----
134
53
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + - col0 * - tab1.col1 * col1 col2 FROM tab1
----
14768
3432
6970

query I rowsort
SELECT DISTINCT + col2 + col1 * col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL 77 * + 62 + col1 FROM tab2
----
4791
4805
4833

query I rowsort
SELECT ( + tab2.col0 + - col2 ) FROM tab2
----
-20
41
52

query I rowsort
SELECT + col1 + col1 + + 86 * col1 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT 27 * col1 AS col2 FROM tab2
----
1593
459
837

query I rowsort
SELECT ALL + col2 * col2 + + ( - col1 ) + + col0 FROM tab1 AS cor0
----
2893
3303
9283

query I rowsort
SELECT ALL - ( cor0.col2 + cor1.col1 ) AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 64d6eb9ac86c1abd3d9db46cc516c43c

query I rowsort
SELECT ALL - 51 + cor0.col2 * + 75 + + col2 AS col1 FROM tab2 cor0
----
1925
2001
2837

query I rowsort
SELECT ALL + cor0.col0 * col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + col0 * - col0 - - 78 AS col1 FROM tab1 cor0
----
-4018
-6322
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 + cor0.col1 col2 FROM tab0 AS cor0
----
176
181
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 67 col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # use DIV operator for integer division
query I rowsort label-6316
SELECT DISTINCT 45 DIV col0 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT 45 / col0 AS col0 FROM tab0
----
0
1

query I rowsort
SELECT ALL - tab1.col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab0
----
64

query I rowsort
SELECT tab1.col2 - 24 * - 82 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to c2599eff1edf4424f7005fed31305807

query I rowsort
SELECT - ( col0 ) * col1 + - col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT + + 64 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6322
SELECT + + 64 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( ( + col2 ) ) + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT + col0 DIV col2 + + col2 FROM tab1 cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-6324
SELECT + col0 / col2 + + col2 FROM tab1 cor0
----
54
58
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6325
SELECT + col0 DIV + ( - col2 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6325
SELECT + col0 / + ( - col2 ) FROM tab1
----
-1
0
0

query I rowsort
SELECT col0 + ( col2 ) * - col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT col1 + 7 AS col0 FROM tab1
----
17
20
33

query I rowsort
SELECT ALL + ( col0 * + col2 ) AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 38 * + col0 * tab1.col2 + 6 AS col0 FROM tab1
----
138630
291846
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6330
SELECT ALL + 42 + + col0 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-6330
SELECT ALL + 42 + + col0 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 45 * col0 AS col0 FROM tab0 AS cor0
----
-1080
-1575
-4005

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) + + col2 * + col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + - col1 * - 91 - col1 * - cor0.col1 FROM tab0 AS cor0
----
15222
16562
18236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) + col0 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 70 * col1 AS col2 FROM tab1
----
-1820
-700
-910

onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT DISTINCT col1 + - col2 DIV col1 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT col1 + - col2 / col1 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT - col2 + col1 + col0 * - col1 AS col0 FROM tab0
----
-2011
-3299
-8090

query I rowsort
SELECT - col0 + ( 51 ) FROM tab2
----
-27
-28
44

query I rowsort
SELECT DISTINCT - col0 * - col2 + - 34 FROM tab1
----
128
3614
7646

query I rowsort
SELECT - col0 + ( - 62 * - col2 ) FROM tab1
----
3345
3470
5872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6341
SELECT CAST( NULL AS SIGNED ) * - 46 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6341
SELECT CAST ( NULL AS INTEGER ) * - 46 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + 81 AS col2 FROM tab2 AS cor0
----
112
140
98

query I rowsort
SELECT - 51 * + col2 + - col1 * cor0.col1 FROM tab2 AS cor0
----
-2227
-2338
-4807

query I rowsort
SELECT DISTINCT + - 92 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2208
-3220
-8188

query I rowsort
SELECT - 4 + ( col1 ) FROM tab2 cor0
----
13
27
55

query I rowsort
SELECT + 47 + + ( - col0 ) * ( 51 ) AS col1 FROM tab0 AS cor0
----
-1177
-1738
-4492

query I rowsort
SELECT - 67 AS col0 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + col0 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + cor0.col0 + col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL col2 * + 95 AS col0 FROM tab2
----
2470
2565
3610

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6351
SELECT DISTINCT - CAST( - 83 AS SIGNED ) - col0 FROM tab1 AS cor0
----
19
3
80

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - CAST ( - 83 AS INTEGER ) - col0 FROM tab1 AS cor0
----
19
3
80

query I rowsort
SELECT ( + col2 ) + - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6353
SELECT ALL + 76 + - 93 DIV + col1 + - 42 AS col2 FROM tab0 cor0
----
33
33
34

skipif mysql # not compatible
query I rowsort label-6353
SELECT ALL + 76 + - 93 / + col1 + - 42 AS col2 FROM tab0 cor0
----
33
33
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 col1 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT - cor0.col0 + - col0 * col1 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL col2 - + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + col1 * col1 * col1 + - col1 + - col0 FROM tab0 cor0
----
635946
753391
912541

query I rowsort
SELECT col1 - cor0.col1 * 28 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT + 11 * col1 AS col1 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT - + col0 * col1 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT - col2 * col1 * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + + col1 - - col2 * col2 FROM tab2 AS cor0
----
-1293
-1541
571

query I rowsort
SELECT + 39 * + 47 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69148e758b63c519e0a303d7ebe8179e

query I rowsort
SELECT DISTINCT - col1 + + ( col2 * - cor0.col2 ) FROM tab1 AS cor0
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-6365
SELECT DISTINCT + col1 DIV 21 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT + col1 / 21 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT + cor0.col1 DIV + 13 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6366
SELECT + cor0.col1 / + 13 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT ALL + col0 * - ( 14 ) AS col0 FROM tab1 AS cor0
----
-1120
-42
-896

onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT + cor0.col0 DIV + col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6368
SELECT + cor0.col0 / + col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT + + cor0.col0 DIV cor0.col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6369
SELECT + + cor0.col0 / cor0.col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + col2 * + ( col1 ) * col0 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
1296
33231
90624

query I rowsort
SELECT DISTINCT - col2 + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + - col0 * ( col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col0 - + col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6375
SELECT ALL - col0 DIV col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - col0 / col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + - col1 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
-737
1133
1199

onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT ALL + 85 DIV - col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
16
19
58

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + 85 / - col0 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
16
19
58

query I rowsort
SELECT DISTINCT - col0 + ( + col2 ) * col2 AS col1 FROM tab2
----
1365
598
722

query I rowsort
SELECT + col2 * 45 + + 99 FROM tab2 AS cor0
----
1269
1314
1809

query I rowsort
SELECT ALL - col0 + + col0 * + col1 + col1 * - col1 FROM tab2 cor0
----
-751
1043
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 * ( - col1 + + col0 ) col2 FROM tab2 AS cor0
----
-717
1092
1147

query I rowsort
SELECT 60 + tab0.col0 * - col0 AS col0 FROM tab0
----
-1165
-516
-7861

query I rowsort
SELECT DISTINCT + - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col0 * + col0 + + col0 AS REAL ) AS col2 FROM tab0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT tab0.col0 DIV + col2 - col2 * col1 AS col0 FROM tab0
----
-2838
-62
-7461

skipif mysql # not compatible
query I rowsort label-6386
SELECT tab0.col0 / + col2 - col2 * col1 AS col0 FROM tab0
----
-2838
-62
-7461

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2, tab1 cor1
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be

query I rowsort
SELECT ALL + tab1.col2 * col2 * col2 FROM tab1
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-6389
SELECT col0 DIV - col1 + ( 77 * - tab0.col2 ) FROM tab0
----
-2541
-6314
-77

skipif mysql # not compatible
query I rowsort label-6389
SELECT col0 / - col1 + ( 77 * - tab0.col2 ) FROM tab0
----
-2541
-6314
-77

query I rowsort
SELECT DISTINCT 6 * col2 FROM tab2
----
156
162
228

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6391
SELECT DISTINCT - ( + tab1.col2 + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT - ( + tab1.col2 + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ( - 67 ) FROM tab0, tab0 cor0, tab1 cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT - - 86 + col0 FROM tab1 AS cor0
----
150
166
89

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL col2 * 62 + tab0.col2 FROM tab0
----
2079
5166
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6397
SELECT DISTINCT - tab2.col2 + CAST( + col0 + - col2 AS SIGNED ) col2 FROM tab2
----
-47
26
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - tab2.col2 + CAST ( + col0 + - col2 AS INTEGER ) col2 FROM tab2
----
-47
26
3

query I rowsort
SELECT ALL - + 4 * - col1 AS col2 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT col0 * col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
1260
1368
15219

onlyif mysql # use DIV operator for integer division
query I rowsort label-6400
SELECT DISTINCT - col2 DIV + ( - col1 ) + tab2.col0 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT - col2 / + ( - col1 ) + tab2.col0 FROM tab2
----
7
78
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6401
SELECT - col1 + CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-6401
SELECT - col1 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - tab1.col0 + 2 AS col2 FROM tab1
----
-1
-62
-78

query I rowsort
SELECT DISTINCT 35 * 76 FROM tab2
----
2660

onlyif mysql # use DIV operator for integer division
query I rowsort label-6404
SELECT DISTINCT + 92 DIV col1 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6404
SELECT DISTINCT + 92 / col1 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT ALL + + cor0.col2 * + cor0.col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col0 * - col2 - + col1 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL - 35 * + col2 AS col1 FROM tab2 cor0
----
-1330
-910
-945

query I rowsort
SELECT DISTINCT + ( + col0 ) + - col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6410
SELECT DISTINCT - + cor0.col0 + 94 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT - + cor0.col0 + 94 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-27
-37
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT DISTINCT 44 + + col0 FROM tab1
----
108
124
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6413
SELECT 44 + col0 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6413
SELECT 44 + col0 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - col1 * col1 AS col1 FROM tab1
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - tab0.col0 * col2 col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT DISTINCT 55 - + col2 AS col1 FROM tab1
----
-2
-41
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT ALL ( col2 ) DIV col0 + col2 * tab2.col1 AS col2 FROM tab2
----
1534
646
840

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL ( col2 ) / col0 + col2 * tab2.col1 AS col2 FROM tab2
----
1534
646
840

query I rowsort
SELECT DISTINCT + col0 + col2 * + 87 AS col0 FROM tab2
----
2340
2356
3385

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6420
SELECT ALL cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 + 34 FROM tab0 AS cor0
----
120
125
131

query I rowsort
SELECT DISTINCT col2 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - col1 - ( - ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + col0 + - col2 - col0 * col2 AS col0 FROM tab2 AS cor0
----
-1976
-209
-2961

query I rowsort
SELECT ALL - 49 - + col2 AS col2 FROM tab2
----
-75
-76
-87

query I rowsort
SELECT col1 + + ( + 96 ) * col1 FROM tab2 cor0
----
1649
3007
5723

query I rowsort
SELECT DISTINCT col1 * ( col2 ) - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - col2 + - cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT ALL col2 DIV tab1.col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6430
SELECT ALL col2 / tab1.col0 AS col2 FROM tab1
----
0
1
18

query I rowsort
SELECT - cor0.col0 * - col1 + col2 * cor0.col2 FROM tab2 cor0
----
2787
5278
946

query I rowsort
SELECT - col0 * - col1 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-208
-40950
-83187

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 ) OR NOT NULL BETWEEN NULL AND cor0.col0
----

query I rowsort
SELECT cor0.col2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - + col2 * - col0 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col2 + - tab1.col2 * col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL - col1 + + col1 + col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - col1 * col0 + - tab0.col2 FROM tab0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 + - col2 col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL + 41 * col0 AS col0 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT DISTINCT + 41 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT ALL + ( - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col1 + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT ( - col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + 85 + + col1 FROM tab1 AS cor0
----
111
95
98

query I rowsort
SELECT 98 * - col1 AS col1 FROM tab0 AS cor0
----
-8428
-8918
-9506

query I rowsort
SELECT DISTINCT + + cor0.col0 * + col1 * col0 + - col0 + col2 FROM tab0 AS cor0
----
118791
49545
720804

query I rowsort
SELECT DISTINCT col1 + - col2 * col0 + + col1 FROM tab2 AS cor0
----
-127
-1910
-2968

query I rowsort
SELECT ALL ( + col2 * col1 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col0 * + col0 + col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT DISTINCT ( - col0 + col2 ) AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ( - col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + + col1 + col0 + col0 AS col2 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT + 65 * + col2 AS col0 FROM tab1
----
3510
3705
6240

query I rowsort
SELECT ALL - ( + col0 + + col2 ) AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT + - cor0.col1 + col1 * 80 AS col2 FROM tab0 AS cor0
----
6794
7189
7663

query I rowsort
SELECT DISTINCT - - col1 * col1 * col1 - - 79 * col1 AS col1 FROM tab2 AS cor0
----
210040
32240
6256

query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 AS col0 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 37 * + cor0.col2 col0 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT 27 + col2 * cor0.col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-16197
-36477
-5673

query I rowsort
SELECT + col1 * ( col0 * + tab2.col2 ) + + col2 FROM tab2
----
119678
51072
5886

query I rowsort
SELECT col0 * - 28 AS col0 FROM tab2
----
-196
-2184
-2212

query I rowsort
SELECT ALL + 46 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6464
SELECT - col1 * - col0 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6464
SELECT - col1 * - col0 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 - + col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - 37 + - col1 AS col0 FROM tab1 AS cor0
----
-47
-50
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col2 FROM tab2 cor0
----
-56
-56
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6468
SELECT DISTINCT - col1 DIV col2 + + col1 FROM tab0 cor0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT - col1 / col2 + + col1 FROM tab0 cor0
----
0
84
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6469
SELECT - - col2 * cor0.col0 DIV cor0.col1 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7405
8361
9409

skipif mysql # not compatible
query I rowsort label-6469
SELECT - - col2 * cor0.col0 / cor0.col1 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7405
8361
9409

query I rowsort
SELECT + - 76 * - col0 AS col2 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT - col0 + col1 * + 1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6472
SELECT + col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6472
SELECT + col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 * - 71 FROM tab2 AS cor0
----
-1207
-2201
-4189

query I rowsort
SELECT + + col2 + + ( 11 ) * col2 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT - 72 * col0 AS col1 FROM tab2 AS cor0
----
-504
-5616
-5688

query I rowsort
SELECT - col2 * 44 FROM tab0 AS cor0
----
-1452
-3608
-44

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 88 AS REAL ) * + cor0.col0 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT + cor0.col2 * - 71 AS col1 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT ALL - col2 * - 53 FROM tab2
----
1378
1431
2014

query I rowsort
SELECT ALL - 57 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT - + col2 * - 73 FROM tab2 AS cor0
----
1898
1971
2774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col2 FROM tab0 cor0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 1 col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6484
SELECT + - CAST( NULL AS DECIMAL ) + + 94 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT + - CAST ( NULL AS REAL ) + + 94 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 19 * col0 AS col1 FROM tab1 AS cor0
----
1216
1520
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT ALL ( col1 ) DIV + col1 col0 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL ( col1 ) / + col1 col0 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT DISTINCT - 73 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT - 73 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * 15 col2 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT + col1 * + 36 AS col0 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT ALL + 7 * - 91 + + col0 AS col2 FROM tab1 AS cor0
----
-557
-573
-634

query I rowsort
SELECT DISTINCT - col1 * col2 + + col1 * col1 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT ALL + cor0.col1 * - ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - col0 + 9 AS col0 FROM tab0 AS cor0
----
-15
-26
-80

query I rowsort
SELECT ALL - + col1 * col0 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT + + col0 * - 57 * - cor0.col2 FROM tab0 AS cor0
----
1995
415986
45144

query I rowsort
SELECT + col0 * 81 * col1 AS col0 FROM tab1 AS cor0
----
51840
6318
84240

query I rowsort
SELECT ALL - cor0.col1 + col1 * cor0.col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - 69 * 95 AS col0 FROM tab2 AS cor0
----
-6555

query I rowsort
SELECT ALL + - ( + col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6501
SELECT ALL col0 + col2 - col1 DIV col0 FROM tab1 cor0
----
121
176
49

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL col0 + col2 - col1 / col0 FROM tab1 cor0
----
121
176
49

query I rowsort
SELECT ALL + cor0.col2 + - col2 * ( + 68 ) FROM tab2 AS cor0
----
-1742
-1809
-2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-6503
SELECT DISTINCT + col0 DIV - col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT + col0 / - col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab2, tab2 AS cor0
----
-56

query I rowsort
SELECT DISTINCT - 32 * + col1 FROM tab0
----
-2752
-2912
-3104

onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT + - cor0.col0 * col1 DIV cor0.col2 FROM tab1 AS cor0
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-6506
SELECT + - cor0.col0 * col1 / cor0.col2 FROM tab1 AS cor0
----
-1
-10
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6507
SELECT DISTINCT col1 DIV col1 + - col1 * col2 + + col0 * - col1 col0 FROM tab1 AS cor0
----
-1209
-1481
-2287

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6507
SELECT DISTINCT col1 / col1 + - col1 * col2 + + col0 * - col1 col0 FROM tab1 AS cor0
----
-1209
-1481
-2287

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6508
SELECT - cor0.col0 + CAST( col1 AS SIGNED ) * + cor0.col2 + 99 * 56 AS col1 FROM tab0 cor0
----
12917
5606
8358

skipif mysql # not compatible
query I rowsort label-6508
SELECT - cor0.col0 + CAST ( col1 AS INTEGER ) * + cor0.col2 + 99 * 56 AS col1 FROM tab0 cor0
----
12917
5606
8358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( - cor0.col0 ) col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + col0 * + col0 * - 48 + col1 FROM tab0 AS cor0
----
-27562
-380117
-58703

query I rowsort
SELECT ALL - col2 * ( - cor0.col2 ) - + col1 AS col1 FROM tab0 cor0
----
-96
1003
6633

query I rowsort
SELECT col0 + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - 5 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL - col0 + 91 AS col1 FROM tab1 AS cor0
----
11
27
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6515
SELECT DISTINCT tab0.col0 DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT tab0.col0 / col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 + + 3 + + col1 * col1 * 89 AS col1 FROM tab2
----
25741
309871
85563

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6518
SELECT - col1 - - CAST( NULL AS DECIMAL ) * - col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6518
SELECT - col1 - - CAST ( NULL AS REAL ) * - col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 + - 36 AS col1 FROM tab2 AS cor0
----
-29
42
43

query I rowsort
SELECT cor0.col2 * - ( + col1 ) + + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + + col2 * + 91 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT - col2 * 32 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1199
-773
-833

onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT col2 + + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6523
SELECT col2 + + col2 / + col0 AS col1 FROM tab0 AS cor0
----
1
34
82

query I rowsort
SELECT - col1 - + 21 FROM tab1 cor0
----
-31
-34
-47

query I rowsort
SELECT - + col1 * - cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * + col2 + ( + col2 ) - + col0 col2 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 94 col2 FROM tab0 AS cor0
----
-8084
-8554
-9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 - col2 col2 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6529
SELECT + cor0.col0 DIV + col1 + col0 DIV - cor0.col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6529
SELECT + cor0.col0 / + col1 + col0 / - cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + tab0.col0 + col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT + col2 * col2 * - 60 AS col0 FROM tab2
----
-40560
-43740
-86640

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + 16 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT - col1 - + 45 FROM tab2
----
-104
-62
-76

query I rowsort
SELECT DISTINCT col2 * + 78 AS col0 FROM tab0
----
2574
6396
78

query I rowsort
SELECT - 71 * - col2 AS col0 FROM tab2
----
1846
1917
2698

query I rowsort
SELECT ALL col0 + + col1 + + 79 FROM tab2
----
117
175
216

query I rowsort
SELECT + col1 + - col0 + + col2 AS col0 FROM tab0
----
63
84
95

query I rowsort
SELECT ( + col0 ) + col2 * 82 * + col2 + + 65 * ( - col2 ) * - col2 AS col0 FROM tab2
----
107170
212347
99450

query I rowsort
SELECT DISTINCT 35 * 95 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3325

query I rowsort
SELECT col0 * - col1 + 98 AS col1 FROM tab1
----
-542
-942
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6542
SELECT cor0.col0 * + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-6542
SELECT cor0.col0 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + 47 AS col0 FROM tab1
----
47
47
47

query I rowsort
SELECT + - col1 * 41 + - 38 + + col1 * - ( 48 ) * + col2 FROM tab0 AS cor0
----
-139788
-361945
-8671

query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6547
SELECT + col0 DIV + ( + col1 * - col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6547
SELECT + col0 / + ( + col1 * - col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col1 FROM tab2
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * ( col1 ) * col2 col0 FROM tab0
----
-261170
-3395
-99330

query I rowsort
SELECT DISTINCT ( - col2 * col0 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ( + col2 ) + col1 * - col1 * + col1 FROM tab2
----
-205353
-29764
-4875

query I rowsort
SELECT - col2 + cor0.col1 + col1 FROM tab0 AS cor0
----
100
139
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT DISTINCT - + col0 DIV col0 + - col0 - 39 FROM tab1 AS cor0
----
-104
-120
-43

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT - + col0 / col0 + - col0 - 39 FROM tab1 AS cor0
----
-104
-120
-43

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab1, tab0 AS cor0
----
8

query I rowsort
SELECT - - ( - col1 ) + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 + ( col0 ) * col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT ALL - col1 + cor0.col1 - ( - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - + ( col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - ( col1 ) + col1 * 95 FROM tab0 AS cor0
----
8084
8554
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * 40 col1 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - col0 * 42 FROM tab2 AS cor0
----
-294
-3276
-3318

query I rowsort
SELECT + ( - col0 ) + + col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 49 col0 FROM tab0 AS cor0
----
49

query I rowsort
SELECT DISTINCT - 74 * col2 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT - - cor0.col2 + col2 - + col0 * col2 AS col1 FROM tab0 cor0
----
-33
-7134
-726

query I rowsort
SELECT - col1 * col2 * - tab1.col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ( col1 ) * - col0 - - col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col0 + + col0 * + 47 FROM tab0 AS cor0
----
1152
1680
4272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6570
SELECT - col0 + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-6570
SELECT - col0 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + col1 * col2 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - col1 + - 35 * cor0.col1 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT ALL + col1 * col2 * 63 FROM tab0 AS cor0
----
178794
470106
6111

query I rowsort
SELECT DISTINCT - col2 * 46 + + 66 AS col1 FROM tab2 AS cor0
----
-1130
-1176
-1682

query I rowsort
SELECT DISTINCT 13 FROM tab0, tab1 cor0, tab1 AS cor1
----
13

query I rowsort
SELECT 59 * tab0.col0 FROM tab0
----
1416
2065
5251

query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
38

query I rowsort
SELECT + cor0.col1 + 39 FROM tab0, tab1 AS cor0
----
9 values hashing to 02eda61897ba61d13db8edce0ccd4b29

query I rowsort
SELECT tab1.col1 * tab1.col2 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - cor0.col1 * col2 + - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + col1 * col2 * + col0 + col1 FROM tab2
----
119711
51051
5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT ALL col1 DIV ( - tab1.col2 ) + tab1.col0 col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL col1 / ( - tab1.col2 ) + tab1.col0 col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - 14 + - 13 * col2 FROM tab0 cor0
----
-1080
-27
-443

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6584
SELECT - - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT - - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + 50 AS col0 FROM tab0 AS cor0
----
-39
15
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6586
SELECT ALL - col2 + CAST( NULL AS SIGNED ) * 27 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) * 27 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 72 * - col1 + + col0 * - 62 AS col0 FROM tab1 AS cor0
----
-2058
-4688
-5896

query I rowsort
SELECT ( col2 ) * col2 * ( col1 ) AS col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + 41 - + col0 * col1 * col2 AS col1 FROM tab2 AS cor0
----
-119611
-50993
-5818

query I rowsort
SELECT DISTINCT - + 51 + 3 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL - - col2 - + col0 AS col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT cor0.col0 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + - 3 * col1 * cor0.col2 FROM tab0 AS cor0
----
-22386
-291
-8514

onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT ALL + - col2 DIV col1 + + col2 * - 13 + - 65 col2 FROM tab0 AS cor0
----
-1131
-494
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + - col2 / col1 + + col2 * - 13 + - 65 col2 FROM tab0 AS cor0
----
-1131
-494
-78

query I rowsort
SELECT DISTINCT - col0 * + col0 + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL + + col0 + - 25 AS col0 FROM tab1 AS cor0
----
-22
39
55

query I rowsort
SELECT ALL + - col0 * 87 - col2 AS col1 FROM tab2 cor0
----
-636
-6812
-6911

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6598
SELECT ALL - + CAST( col0 AS SIGNED ) + + col0 * col1 FROM tab1 AS cor0
----
576
75
960

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL - + CAST ( col0 AS INTEGER ) + + col0 * col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT + + ( + col1 ) + - col1 * ( ( col2 ) ) + ( col1 + col0 ) AS col2 FROM tab1 AS cor0
----
-1142
-1349
-486

query I rowsort
SELECT + col0 - + col1 * ( col2 + - col2 ) * col2 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + tab0.col1 * + tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6602
SELECT + cor0.col0 DIV 92 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6602
SELECT + cor0.col0 / 92 FROM tab1, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + - col2 * - cor0.col2 + - cor0.col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL - 70 * col2 AS col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT 0 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + cor0.col2 + col1 - + col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 22 - - col0 AS col0 FROM tab2 AS cor0
----
-15
56
57

query I rowsort
SELECT + col1 * col2 - + col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6609
SELECT ALL + + col0 + col0 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + + col0 + col0 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 73 + col2 AS col2 FROM tab2 cor0
----
100
111
99

query I rowsort
SELECT ALL + col1 * 86 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT - col0 + 56 AS col0 FROM tab1 AS cor0
----
-24
-8
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - cor0.col0 + 6 * - col1 AS col2 FROM tab0 AS cor0
----
-540
-617
-635

query I rowsort
SELECT DISTINCT - col2 + col1 * + cor0.col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT cor0.col1 + + col0 - + 85 * col2 AS col1 FROM tab2 AS cor0
----
-2073
-2257
-3134

query I rowsort
SELECT + col0 + - col0 * 35 AS col2 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT DISTINCT col1 + 69 FROM tab2 AS cor0
----
100
128
86

query I rowsort
SELECT - + col0 * 73 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
-150696
-247870
-591316

query I rowsort
SELECT col2 - col1 * - col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL 67 AS col1 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT + - col0 * + cor0.col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 78 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-2028
-2106
-2964

query I rowsort
SELECT DISTINCT + 81 * + col2 FROM tab0 cor0
----
2673
6642
81

query I rowsort
SELECT ALL + + col2 * col2 * + col2 AS col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT - - 15 + col1 AS col0 FROM tab2 AS cor0
----
32
46
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col1 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT cor0.col0 * col2 * + col0 FROM tab1 AS cor0
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + 29 ) * cor0.col1 col0 FROM tab2 AS cor0
----
1711
493
899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6630
SELECT ALL - CAST( - col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL - CAST ( - col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + + col1 * + 7 * col2 AS col2 FROM tab2 AS cor0
----
10738
4522
5859

query I rowsort
SELECT + + 18 + 63 * + cor0.col2 FROM tab0 AS cor0
----
2097
5184
81

query I rowsort
SELECT - - ( 14 ) * col0 FROM tab2 cor0
----
1092
1106
98

query I rowsort
SELECT + col0 * col0 - + cor0.col0 * - col0 AS col1 FROM tab0 cor0
----
1152
15842
2450

query I rowsort
SELECT - 3 + - col2 AS col2 FROM tab1 AS cor0
----
-57
-60
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6636
SELECT DISTINCT - col2 * + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT - col2 * + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + ( + col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT ALL col0 + - col0 + tab2.col1 DIV col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL col0 + - col0 + tab2.col1 / col1 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT 31 * col0 - - col2 AS col1 FROM tab0 AS cor0
----
1086
2841
777

query I rowsort
SELECT DISTINCT 87 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
87

query I rowsort
SELECT DISTINCT + col1 * 86 + - col2 FROM tab1 AS cor0
----
1022
2182
803

query I rowsort
SELECT + + col2 * + ( col2 ) FROM tab0 cor0
----
1
1089
6724

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-6645
SELECT col1 DIV col2 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6645
SELECT col1 / col2 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - col1 + ( 72 ) FROM tab1 AS cor0
----
46
59
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT ALL - + col2 * CAST( 53 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
35828
38637
76532

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL - + col2 * CAST ( 53 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
35828
38637
76532

query I rowsort
SELECT ALL - cor0.col0 * - col0 + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT + col0 DIV - ( + 97 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT + col0 / - ( + 97 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 41 col1 FROM tab2 AS cor0
----
119
120
48

query I rowsort
SELECT DISTINCT - col0 * 69 FROM tab1 AS cor0
----
-207
-4416
-5520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6652
SELECT + CAST( + col0 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-6652
SELECT + CAST ( + col0 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT - col1 DIV col0 + 53 FROM tab1
----
45
53
53

skipif mysql # not compatible
query I rowsort label-6653
SELECT - col1 / col0 + 53 FROM tab1
----
45
53
53

query I rowsort
SELECT - 91 + - cor0.col2 FROM tab1 AS cor0
----
-145
-148
-187

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 cor1, tab0 cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT ALL - 61 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT ALL + - cor0.col0 + - 50 * col1 FROM tab2 AS cor0
----
-1557
-3028
-929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 92 col0 FROM tab1 cor0
----
146
149
188

query I rowsort
SELECT ALL + col1 * - col1 * col1 AS col1 FROM tab1
----
-1000
-17576
-2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-6660
SELECT DISTINCT 8 DIV + col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT 8 / + col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT + 13 + - col2 + col1 AS col2 FROM tab0
----
109
22
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6662
SELECT 36 + col1 DIV + col0 + - col2 * - col1 FROM tab1
----
1284
1448
606

skipif mysql # not compatible
query I rowsort label-6662
SELECT 36 + col1 / + col0 + - col2 * - col1 FROM tab1
----
1284
1448
606

query I rowsort
SELECT - cor0.col2 * - 69 FROM tab1 AS cor0
----
3726
3933
6624

query I rowsort
SELECT DISTINCT - 82 + col0 AS col0 FROM tab2
----
-3
-4
-75

query I rowsort
SELECT - col0 + 85 FROM tab2 AS cor0
----
6
7
78

query I rowsort
SELECT DISTINCT 69 + col2 * - col0 * + col2 AS col1 FROM tab0
----
-26067
-598367
34

query I rowsort
SELECT ALL 33 AS col2 FROM tab1
----
33
33
33

query I rowsort
SELECT col0 * + 16 + 36 FROM tab1 AS cor0
----
1060
1316
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT - col1 DIV - 83 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6669
SELECT - col1 / - 83 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6670
SELECT DISTINCT col1 + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6670
SELECT DISTINCT col1 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - col0 * - ( - 9 ) FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT + + col2 + - col0 * cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - - col0 + ( - col1 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 88 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-11466
-8295
-833

query I rowsort
SELECT ALL col0 + + col2 * + col0 + + 22 FROM tab2
----
2128
218
3103

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6677
SELECT col1 * + col0 + col2 + ( col2 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6677
SELECT col1 * + col0 + col2 + ( col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - 57 FROM tab0 AS cor0
----
-1368
-1995
-5073

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - + col1 - 50 AS col1 FROM tab1 AS cor0
----
-60
-63
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT DISTINCT + col0 DIV + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + col0 / + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT ALL - + col1 * 18 FROM tab2 AS cor0
----
-1062
-306
-558

query I rowsort
SELECT - col1 * + ( - 8 ) FROM tab0 cor0
----
688
728
776

onlyif mysql # use DIV operator for integer division
query I rowsort label-6684
SELECT DISTINCT + col2 + + ( col2 ) DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-6684
SELECT DISTINCT + col2 + + ( col2 ) / + cor0.col2 AS col1 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT + - col1 * col0 + col2 DIV 15 + - 66 * - col2 AS col2 FROM tab2 AS cor0
----
-2885
1167
1566

skipif mysql # not compatible
query I rowsort label-6685
SELECT + - col1 * col0 + col2 / 15 + - 66 * - col2 AS col2 FROM tab2 AS cor0
----
-2885
1167
1566

query I rowsort
SELECT + + 31 AS col0 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT - col0 * - col1 + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - col1 - - ( + col2 ) FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT + col0 DIV 6 AS col0 FROM tab1
----
0
10
13

skipif mysql # not compatible
query I rowsort label-6689
SELECT + col0 / 6 AS col0 FROM tab1
----
0
10
13

query I rowsort
SELECT DISTINCT - + ( - col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - - col0 * + 42 FROM tab2 AS cor0
----
294
3276
3318

query I rowsort
SELECT + - 76 * - col0 FROM tab1 AS cor0
----
228
4864
6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT DISTINCT col2 DIV - tab0.col2 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT col2 / - tab0.col2 AS col0 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + col0 * 2 * + col0 AS col1 FROM tab1 cor0
----
12800
18
8192

query I rowsort
SELECT + + 22 * col2 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT ALL - tab2.col0 * - col2 + col2 + + tab2.col2 AS col2 FROM tab2
----
2080
243
3078

query I rowsort
SELECT + - 1 + cor0.col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT ALL + 86 * + col1 + col0 * - col0 - col2 FROM tab0 cor0
----
-177
6787
7116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6699
SELECT + - col0 + col2 * CAST( 43 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
2373
2444
4144

skipif mysql # not compatible
query I rowsort label-6699
SELECT + - col0 + col2 * CAST ( 43 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
2373
2444
4144

query I rowsort
SELECT ALL - col0 - col1 * - col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL 15 + - col1 AS col0 FROM tab1 AS cor0
----
-11
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT - 30 + - col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-22
-30
-30

skipif mysql # not compatible
query I rowsort label-6702
SELECT - 30 + - col1 / - col0 AS col0 FROM tab1 AS cor0
----
-22
-30
-30

query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT - 40 * - cor0.col0 FROM tab0 AS cor0
----
1400
3560
960

query I rowsort
SELECT DISTINCT - col2 + - 38 FROM tab0
----
-120
-39
-71

query I rowsort
SELECT - ( + 83 ) FROM tab1
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( + col0 ) * col2 + - col1 col0 FROM tab1
----
139
3702
7747

query I rowsort
SELECT DISTINCT col2 - + 74 FROM tab2
----
-36
-47
-48

query I rowsort
SELECT DISTINCT col2 + tab1.col1 * - col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT col0 * + col2 + + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL col1 + - col2 * col0 FROM tab2
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + col0 col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL ( col0 ) + - ( col0 * - col0 ) FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + col0 * - col0 + + 73 AS col0 FROM tab0 AS cor0
----
-1152
-503
-7848

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT DISTINCT col0 * col1 * + CAST( NULL AS SIGNED ) + 72 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT col0 * col1 * + CAST ( NULL AS INTEGER ) + 72 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6717
SELECT DISTINCT 92 DIV col0 AS col1 FROM tab1
----
1
30

skipif mysql # not compatible
query I rowsort label-6717
SELECT DISTINCT 92 / col0 AS col1 FROM tab1
----
1
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6718
SELECT + col1 * + col1 * CAST( col0 * col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15265344
31943555
67067819

skipif mysql # not compatible
query I rowsort label-6718
SELECT + col1 * + col1 * CAST ( col0 * col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15265344
31943555
67067819

query I rowsort
SELECT ALL + - col1 * + col1 + + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT - col0 - ( + col1 ) * col1 AS col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT col0 + + 76 * - col2 AS col2 FROM tab0
----
-2484
-41
-6143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT - CAST( NULL AS SIGNED ) * 52 + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT - CAST ( NULL AS INTEGER ) * 52 + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 26 * + cor0.col0 + col0 col1 FROM tab1 cor0
----
1728
2160
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT DISTINCT 40 + - col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
40
41
44

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT 40 + - col0 / - col1 AS col0 FROM tab2 AS cor0
----
40
41
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-6725
SELECT col2 DIV - col1 + - col2 AS col1 FROM tab1
----
-103
-56
-62

skipif mysql # not compatible
query I rowsort label-6725
SELECT col2 / - col1 + - col2 AS col1 FROM tab1
----
-103
-56
-62

query I rowsort
SELECT ALL - 79 FROM tab0, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 74 col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2
----
74

query I rowsort
SELECT ALL + ( - col2 ) * col1 + + ( - ( col0 ) ) FROM tab1 AS cor0
----
-1328
-1407
-634

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col2 AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6730
SELECT - CAST( + 88 AS SIGNED ) + col1 FROM tab1 cor0
----
-62
-75
-78

skipif mysql # not compatible
query I rowsort label-6730
SELECT - CAST ( + 88 AS INTEGER ) + col1 FROM tab1 cor0
----
-62
-75
-78

query I rowsort
SELECT ALL - col0 + 3 * col2 FROM tab0 AS cor0
----
-32
157
75

query I rowsort
SELECT ALL col0 + + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + ( col0 ) - col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 64 * col0 AS col1 FROM tab1
----
192
4096
5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT + col0 DIV ( cor0.col0 ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6735
SELECT + col0 / ( cor0.col0 ) FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + cor0.col2 * 12 FROM tab0 AS cor0
----
12
396
984

onlyif mysql # use DIV operator for integer division
query I rowsort label-6737
SELECT + cor0.col2 DIV - ( - col2 + col0 ) AS col0 FROM tab0 cor0
----
-11
0
3

skipif mysql # not compatible
query I rowsort label-6737
SELECT + cor0.col2 / - ( - col2 + col0 ) AS col0 FROM tab0 cor0
----
-11
0
3

query I rowsort
SELECT ( + col0 * + col1 + col0 * col1 ) FROM tab0
----
16198
4128
6790

query I rowsort
SELECT ALL ( col1 ) * col1 - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - col0 + 60 FROM tab0 AS cor0
----
-29
25
36

query I rowsort
SELECT DISTINCT ( + 35 ) + col1 FROM tab1 AS cor0
----
45
48
61

query I rowsort
SELECT - - cor0.col2 + col0 * cor0.col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + 24 * + 87 * col0 + 42 AS col2 FROM tab2 cor0
----
14658
162906
164994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * + col0 col2 FROM tab2
----
504
5616
5688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6745
SELECT + CAST( NULL AS DECIMAL ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT + CAST ( NULL AS REAL ) * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 63 + - col1 FROM tab2 AS cor0
----
32
4
46

query I rowsort
SELECT - + 13 + + col1 FROM tab1 AS cor0
----
-3
0
13

query I rowsort
SELECT ALL + 13 * cor0.col0 FROM tab2 AS cor0
----
1014
1027
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + ( - col0 + col0 ) * - cor0.col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6750
SELECT - cor0.col1 DIV + col1 + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-6750
SELECT - cor0.col1 / + col1 + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1249
-1405
-571

query I rowsort
SELECT DISTINCT + - ( col1 ) * col0 + ( col1 + col2 ) AS col1 FROM tab1 cor0
----
-573
-931
2

query I rowsort
SELECT + col0 + + col1 * + 44 FROM tab1 AS cor0
----
1147
504
652

query I rowsort
SELECT ( 44 ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT + - col1 + - col2 + col0 FROM tab1 AS cor0
----
-29
-3
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-6755
SELECT col1 * col2 + col0 * col1 DIV col1 FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-6755
SELECT col1 * col2 + col0 * col1 / col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col2 * col0 * - tab0.col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - + col1 * - col2 * col2 AS col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - cor0.col2 * + col0 + cor0.col2 * col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - ( col0 ) * col0 + + col2 * + col0 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT col0 * - col1 * - col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT + tab1.col2 AS col0 FROM tab1, tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6763
SELECT + col2 DIV col1 - col2 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-6763
SELECT + col2 / col1 - col2 FROM tab2 AS cor0
----
-26
-27
-36

onlyif mysql # use DIV operator for integer division
query I rowsort label-6764
SELECT col1 * - col0 * col2 + col1 DIV - cor0.col0 AS col1 FROM tab0 AS cor0
----
-3397
-664119
-68115

skipif mysql # not compatible
query I rowsort label-6764
SELECT col1 * - col0 * col2 + col1 / - cor0.col0 AS col1 FROM tab0 AS cor0
----
-3397
-664119
-68115

query I rowsort
SELECT ALL ( + 68 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6766
SELECT DISTINCT CAST( 52 AS SIGNED ) FROM tab2, tab0 cor0
----
52

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT CAST ( 52 AS INTEGER ) FROM tab2, tab0 cor0
----
52

query I rowsort
SELECT - 20 * + 12 FROM tab2 AS cor0
----
-240
-240
-240

query I rowsort
SELECT - col2 * - 57 * col1 AS col0 FROM tab0 AS cor0
----
161766
425334
5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-6769
SELECT ALL + col1 DIV col1 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6769
SELECT ALL + col1 / col1 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + ( - 20 ) FROM tab1
----
-20

query I rowsort
SELECT + col1 * col2 * col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT - col0 * - col1 DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6772
SELECT - col0 * - col1 / col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col0 * - 32 AS col1 FROM tab0
----
-1120
-2848
-768

query I rowsort
SELECT + 87 * + col0 FROM tab2
----
609
6786
6873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6775
SELECT - - CAST( + col0 AS SIGNED ) * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6775
SELECT - - CAST ( + col0 AS INTEGER ) * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * 58 AS col1 FROM tab2
----
406
4524
4582

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 52 + col1 AS REAL ) * - tab0.col1 AS col1 FROM tab0
----
-11868
-13013
-14453

query I rowsort
SELECT ALL + ( 67 ) FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT col1 + + ( + col2 ) - col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT cor0.col2 + - ( cor0.col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6782
SELECT - CAST( NULL AS SIGNED ) + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6782
SELECT - CAST ( NULL AS INTEGER ) + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - ( - col1 ) + + col0 AS col2 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT cor1.col1 DIV - cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-6784
SELECT cor1.col1 / - cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT + 39 + + col0 FROM tab2 AS cor0
----
117
118
46

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab1, tab0 AS cor0
----
20

query I rowsort
SELECT DISTINCT + ( 25 ) AS col0 FROM tab2 AS cor0
----
25

query I rowsort
SELECT - + col0 * + 25 AS col2 FROM tab1 AS cor0
----
-1600
-2000
-75

query I rowsort
SELECT ALL 99 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
5400
5700
9600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col0 FROM tab2 AS cor0
----
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-6791
SELECT col1 DIV 88 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6791
SELECT col1 / 88 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( + 71 ) + - col1 FROM tab1 AS cor0
----
-81
-84
-97

query I rowsort
SELECT ALL + ( col2 + - 85 ) FROM tab2
----
-47
-58
-59

query I rowsort
SELECT 77 + - col2 + col2 FROM tab1
----
77
77
77

query I rowsort
SELECT ALL + + 50 AS col0 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT col2 + col0 + + 90 FROM tab0 AS cor0
----
126
147
261

query I rowsort
SELECT ALL col1 + + ( + col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col1 + ( + col1 + col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT - col2 DIV + col0 - + 35 FROM tab2 AS cor0
----
-35
-35
-38

skipif mysql # not compatible
query I rowsort label-6799
SELECT - col2 / + col0 - + 35 FROM tab2 AS cor0
----
-35
-35
-38

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT DISTINCT + col0 + col2 DIV ( - col1 ) FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT + col0 + col2 / ( - col1 ) FROM tab1 AS cor0
----
1
59
73

query I rowsort
SELECT DISTINCT col1 + + 6 AS col1 FROM tab1 AS cor0
----
16
19
32

query I rowsort
SELECT col2 * ( col0 ) + - col0 + col2 FROM tab0
----
1
7291
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT col0 DIV 73 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6804
SELECT col0 / 73 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT col0 DIV - ( 76 ) + col0 + col1 FROM tab1
----
29
74
92

skipif mysql # not compatible
query I rowsort label-6805
SELECT col0 / - ( 76 ) + col0 + col1 FROM tab1
----
29
74
92

query I rowsort
SELECT + - col0 * + ( 67 ) AS col2 FROM tab1 AS cor0
----
-201
-4288
-5360

query I rowsort
SELECT DISTINCT + col2 + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * - col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * - col1 col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - col1 * + ( - ( + col1 ) ) FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab2, tab0 AS cor0
----
-35

query I rowsort
SELECT - ( - col1 ) * - col0 * + ( col1 ) + - col1 FROM tab2 AS cor0
----
-22848
-271577
-6758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 36 + col1 col1 FROM tab0 AS cor0
----
50
55
61

query I rowsort
SELECT - - col2 * - 91 AS col2 FROM tab1 AS cor0
----
-4914
-5187
-8736

query I rowsort
SELECT - + col2 * - col2 + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
16896
3078
6897

query I rowsort
SELECT ALL + cor0.col2 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-6817
SELECT cor0.col2 - - 98 DIV col1 FROM tab2 AS cor0
----
27
30
43

skipif mysql # not compatible
query I rowsort label-6817
SELECT cor0.col2 - - 98 / col1 FROM tab2 AS cor0
----
27
30
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * - col1 + col0 col0 FROM tab1 cor0
----
-236
-310
-777

query I rowsort
SELECT + + col1 + 37 FROM tab0 AS cor0
----
123
128
134

query I rowsort
SELECT + col0 + + col1 * col2 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT tab1.col0 * + 84 FROM tab1
----
252
5376
6720

query I rowsort
SELECT col0 * - 58 AS col0 FROM tab1
----
-174
-3712
-4640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT col2 * ( 61 ) DIV col0 FROM tab1
----
1098
54
73

skipif mysql # not compatible
query I rowsort label-6823
SELECT col2 * ( 61 ) / col0 FROM tab1
----
1098
54
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6824
SELECT DISTINCT + - col1 * - col1 + - 15 * + 2 DIV col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-6824
SELECT DISTINCT + - col1 * - col1 + - 15 * + 2 / col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - + 94 + - cor0.col0 FROM tab0 AS cor0
----
-118
-129
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - 45 * col2 FROM tab2 AS cor0
----
-1170
-1215
-1710

query I rowsort
SELECT ALL 69 + cor0.col1 * col0 * + cor0.col0 FROM tab0 AS cor0
----
118894
49605
720880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * col2 * ( col0 ) col1 FROM tab0 AS cor0
----
1785
372198
40392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + cor0.col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6831
SELECT DISTINCT - col1 + col1 DIV - ( ( + col0 ) * col2 + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-86
-91
-96

skipif mysql # not compatible
query I rowsort label-6831
SELECT DISTINCT - col1 + col1 / - ( ( + col0 ) * col2 + ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-86
-91
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 81 * col1 + col2 col1 FROM tab2 cor0
----
-1339
-2484
-4753

query I rowsort
SELECT ALL + col2 * col1 * 57 AS col2 FROM tab2 AS cor0
----
36822
47709
87438

query I rowsort
SELECT - col0 * tab0.col0 + col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT + 76 + - 12 * + col1 + + col2 FROM tab0
----
-1087
-923
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 - col0 col0 FROM tab2
----
-17
-18
54

query I rowsort
SELECT ALL + col2 * - cor0.col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - ( col0 ) * + col2 AS col2 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 * tab2.col0 col1 FROM tab2
----
532
5928
6004

query I rowsort
SELECT 82 * - 41 FROM tab0
----
-3362
-3362
-3362

query I rowsort
SELECT + 63 + col0 FROM tab0
----
152
87
98

query I rowsort
SELECT ALL + 25 * - col1 AS col2 FROM tab1 AS cor0
----
-250
-325
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT ALL col0 * col1 DIV col2 FROM tab0 AS cor0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL col0 * col1 / col2 FROM tab0 AS cor0
----
3395
62
98

query I rowsort
SELECT - 23 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1472
-1840
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 col0 FROM tab2 cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 38 col2 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT ALL + 47 * col2 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL - - col1 + col1 * + ( - cor0.col0 ) * - col0 FROM tab0 AS cor0
----
118922
49622
720902

query I rowsort
SELECT ALL + col1 + - ( + col2 ) * 83 * + col1 + col0 * + tab2.col2 AS col0 FROM tab2
----
-125235
-50599
-69251

query I rowsort
SELECT ALL - 34 * - col0 + + col1 FROM tab2
----
269
2703
2711

query I rowsort
SELECT 62 * - col1 * + 10 AS col2 FROM tab1 AS cor0
----
-16120
-6200
-8060

query I rowsort
SELECT ALL + tab2.col1 * 78 + - col0 + 94 FROM tab2
----
1341
2505
4618

query I rowsort
SELECT ALL 28 AS col0 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT ( - col1 ) * cor0.col1 + - cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-7458
-8283
-9471

query I rowsort
SELECT DISTINCT + tab2.col1 + tab2.col2 * - 7 FROM tab2
----
-123
-158
-249

onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT col1 + col0 DIV col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-6857
SELECT col1 + col0 / col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT + 69 + - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1294
645
7990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6859
SELECT + tab1.col1 + CAST( + col0 * col1 AS SIGNED ) FROM tab1
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-6859
SELECT + tab1.col1 + CAST ( + col0 * col1 AS INTEGER ) FROM tab1
----
104
1053
650

query I rowsort
SELECT ALL col1 * col2 + + 33 AS col2 FROM tab2
----
1567
679
870

query I rowsort
SELECT ALL + col0 * - 91 FROM tab0 AS cor0
----
-2184
-3185
-8099

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 * + col1 + + col0 AS col2 FROM tab2 AS cor0
----
119730
51113
5866

skipif mysql # not compatible
query I rowsort
SELECT ALL - - cor0.col0 * - 0 + col1 * CAST ( - 27 AS REAL ) FROM tab2 AS cor0
----
-1593
-459
-837

query I rowsort
SELECT - 8 + col0 + + cor0.col2 * + col0 FROM tab1 AS cor0
----
157
3704
7752

query I rowsort
SELECT DISTINCT + 95 * 44 AS col2 FROM tab2 AS cor0
----
4180

query I rowsort
SELECT - 37 * col1 FROM tab0 AS cor0
----
-3182
-3367
-3589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6868
SELECT ALL + 12 * - cor0.col2 + + col0 + + CAST( - col2 AS SIGNED ) col1 FROM tab2 cor0
----
-260
-344
-415

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL + 12 * - cor0.col2 + + col0 + + CAST ( - col2 AS INTEGER ) col1 FROM tab2 cor0
----
-260
-344
-415

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6869
SELECT - CAST( + ( col2 ) AS SIGNED ) + + 1 FROM tab1 cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-6869
SELECT - CAST ( + ( col2 ) AS INTEGER ) + + 1 FROM tab1 cor0
----
-53
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - - col2 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 - + 65 FROM tab0 AS cor0
----
21
26
32

query I rowsort
SELECT - - cor0.col1 + ( cor0.col1 ) * + col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT ALL + cor0.col0 DIV 54 + - col0 * + col2 * col1 AS col1 FROM tab2 cor0
----
-119651
-51033
-5859

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + cor0.col0 / 54 + - col0 * + col2 * col1 AS col1 FROM tab2 cor0
----
-119651
-51033
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT ALL col1 + 17 DIV - col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL col1 + 17 / - col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab1
----
49
49
49

query I rowsort
SELECT - 47 AS col0 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT ALL 84 * + cor0.col2 - col1 * + col1 * - ( + col1 ) FROM tab2 AS cor0
----
207563
32059
8105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + ( col2 + - cor0.col0 ) * col2 col2 FROM tab1 AS cor0
----
171
2784
4158

query I rowsort
SELECT DISTINCT - - col2 * - cor0.col2 + 32 - + col0 FROM tab1 AS cor0
----
-2887
-3281
-9264

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 cor1, tab1, tab1 cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac

query I rowsort
SELECT col0 * col2 - + 0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 33 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
-33

query I rowsort
SELECT ALL + + col2 * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT 8 FROM tab1, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT + ( tab2.col1 ) DIV cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 545d57c94e0972d8a264b8c78539d8cb

skipif mysql # not compatible
query I rowsort label-6885
SELECT + ( tab2.col1 ) / cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 545d57c94e0972d8a264b8c78539d8cb

query I rowsort
SELECT + + col1 * col2 * cor0.col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT col1 * - 10 AS col1 FROM tab1 AS cor0
----
-100
-130
-260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 54 + 22 * col0 col2 FROM tab0 cor0
----
2012
582
824

query I rowsort
SELECT col1 - + col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + 0 + col0 * col1 + - 20 FROM tab1 AS cor0
----
1020
58
620

onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT + col1 DIV cor0.col0 col2 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6891
SELECT + col1 / cor0.col0 col2 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT col2 DIV col0 + tab0.col2 * tab0.col2 AS col1 FROM tab0
----
1
1090
6724

skipif mysql # not compatible
query I rowsort label-6892
SELECT col2 / col0 + tab0.col2 * tab0.col2 AS col1 FROM tab0
----
1
1090
6724

query I rowsort
SELECT DISTINCT col1 * - ( + ( - col0 ) ) FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT ALL - col0 DIV col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL - col0 / col1 + col2 AS col0 FROM tab2 AS cor0
----
25
27
34

query III rowsort
SELECT * FROM tab0 WHERE ( col1 - col1 ) NOT IN ( + tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT ALL + cor0.col1 * col0 + col1 DIV col0 FROM tab2 cor0
----
1343
221
4602

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + cor0.col1 * col0 + col1 / col0 FROM tab2 cor0
----
1343
221
4602

query I rowsort
SELECT DISTINCT - tab1.col0 * - col0 AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT col1 + + col0 + col0 AS col2 FROM tab2
----
175
215
45

query I rowsort
SELECT ALL + col2 + - col2 * + col1 - - tab0.col1 AS col0 FROM tab0
----
-2719
-7289
1

query I rowsort
SELECT DISTINCT - col1 + + col1 + col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + col2 * tab2.col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 / col1 )
----

query I rowsort
SELECT - col1 * tab1.col0 + + col0 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT DISTINCT - tab1.col2 DIV - col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT - tab1.col2 / - col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT col1 * + col1 - + col2 * tab1.col0 FROM tab1
----
-3548
-7511
514

onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT DISTINCT - col2 + col2 DIV + col2 - col1 FROM tab0
----
-118
-172
-97

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT - col2 + col2 / + col2 - col1 FROM tab0
----
-118
-172
-97

query I rowsort
SELECT ALL - col0 + + col1 + tab2.col2 FROM tab2
----
-24
51
7

query I rowsort
SELECT - col2 * col1 * col0 + + col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT ALL tab0.col0 + col1 + col2 * col1 AS col1 FROM tab0
----
229
2948
7642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col0 FROM tab2 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT + tab2.col1 - col2 * col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT col0 * + col1 + tab2.col1 DIV tab2.col1 AS col1 FROM tab2
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-6913
SELECT col0 * + col1 + tab2.col1 / tab2.col1 AS col1 FROM tab2
----
1344
218
4603

query I rowsort
SELECT DISTINCT - col1 * col2 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT ALL + + col0 + col0 - - col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT 8 + tab1.col0 * - tab1.col2 FROM tab1
----
-154
-3640
-7672

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col0 * + col2 + - ( + col1 ) * col2 AS col2 FROM tab2
----
-648
2356
494

query I rowsort
SELECT cor0.col0 + cor0.col0 AS col1 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 7ce85f3c0cc2feeac41619efbad0a8a1

query I rowsort
SELECT 91 + col2 FROM tab0
----
124
173
92

query I rowsort
SELECT DISTINCT - + 44 * + col0 FROM tab0 cor0
----
-1056
-1540
-3916

query I rowsort
SELECT ALL ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + ( col1 ) * 32 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT ALL + 56 - col2 AS col1 FROM tab0 AS cor0
----
-26
23
55

query I rowsort
SELECT ALL + 58 - - col0 AS col0 FROM tab1 AS cor0
----
122
138
61

query I rowsort
SELECT + 74 * col1 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT DISTINCT + - 73 * + col0 FROM tab0 cor0
----
-1752
-2555
-6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT DISTINCT col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT col2 / - col1 AS col2 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT ALL - col0 * 37 AS col1 FROM tab2 AS cor0
----
-259
-2886
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6930
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6930
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - cor0.col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - col1 * - ( col0 + + ( col2 ) ) col0 FROM tab1 AS cor0
----
1220
1508
2301

query I rowsort
SELECT DISTINCT - col0 - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( + 13 ) * - col0 col0 FROM tab0 AS cor0
----
-1248
-398
-552

query I rowsort
SELECT ALL - - col0 + ( + cor0.col1 ) * col1 * + 60 FROM tab1 AS cor0
----
10220
40563
6064

query I rowsort
SELECT DISTINCT col0 + + 35 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT DISTINCT + col0 + 17 * col1 FROM tab1 AS cor0
----
234
301
445

query I rowsort
SELECT ALL cor0.col1 * + col2 + 79 AS col0 FROM tab1 AS cor0
----
1327
1483
649

query I rowsort
SELECT + col1 + + cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + + 16 col1 FROM tab0, tab2 AS cor0
----
-1
-15
-43

query I rowsort
SELECT 43 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT - col0 * 34 FROM tab1 AS cor0
----
-102
-2176
-2720

query I rowsort
SELECT DISTINCT + col2 * + ( 18 ) AS col2 FROM tab0 cor0
----
1476
18
594

query I rowsort
SELECT + - col1 * col1 + - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL - col2 * + col1 * col0 + + col2 FROM tab0
----
-3394
-664036
-68079

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 + col2 col0 FROM tab1
----
104
179
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 / col1 ) BETWEEN ( + col0 ) AND col1 * col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col1 + col2 FROM tab1 WHERE ( NULL ) BETWEEN + col2 AND + col1 * col0
----

query I rowsort
SELECT ALL - tab1.col0 - + tab1.col0 AS col0 FROM tab1
----
-128
-160
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 > - col2 * col1
----

query I rowsort
SELECT ALL col2 * + col1 + - tab1.col2 * col1 * col1 AS col0 FROM tab1
----
-14976
-35100
-5130

query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab0 WHERE NOT NULL <> + col1 * col2
----

query I rowsort
SELECT DISTINCT col1 + col0 * col1 FROM tab2
----
1360
248
4661

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( col0 ) AND ( - col1 + col1 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6957
SELECT col0 * + cor0.col2 + + CAST( + cor0.col2 AS SIGNED ) * - col1 AS col1 FROM tab0 AS cor0
----
-164
-2046
-62

skipif mysql # not compatible
query I rowsort label-6957
SELECT col0 * + cor0.col2 + + CAST ( + cor0.col2 AS INTEGER ) * - col1 AS col1 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT col1 + + col1 * - col2 AS col1 FROM tab2
----
-1475
-629
-806

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + col2 + + col1 NOT IN ( col1 * - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT ( col1 ) > col2
----
10
13
26

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE + col0 + - col2 <= NULL
----

query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col1 AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - tab0.col2 AS col1 FROM tab0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + col0 * - tab1.col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT + 47 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + 68 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6967
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) * - 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL - col0 + - CAST ( NULL AS INTEGER ) * - 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 28 FROM tab1 AS cor0
----
280
364
728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6969
SELECT + cor0.col2 + CAST( - col0 + col2 AS SIGNED ) * col1 col0 FROM tab1 AS cor0
----
-13
1380
304

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6969
SELECT + cor0.col2 + CAST ( - col0 + col2 AS INTEGER ) * col1 col0 FROM tab1 AS cor0
----
-13
1380
304

query I rowsort
SELECT col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 49 + 63 * + col2 FROM tab2 AS cor0
----
1687
1750
2443

query I rowsort
SELECT - col2 * 37 + + col1 AS col0 FROM tab2 cor0
----
-1389
-903
-968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 + col0 col0 FROM tab1 AS cor0
----
-38
23
39

query I rowsort
SELECT + + 97 * 4 + col1 AS col1 FROM tab1 AS cor0
----
398
401
414

query I rowsort
SELECT - ( col2 ) + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - col1 + + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - 95 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT DISTINCT + col0 + ( - col2 ) * col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT + col1 * ( col1 ) AS col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6980
SELECT 39 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
13

skipif mysql # not compatible
query I rowsort label-6980
SELECT 39 / col0 AS col1 FROM tab1 AS cor0
----
0
0
13

query I rowsort
SELECT + + ( cor0.col0 ) + + col2 * col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT 14 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1120
42
896

onlyif mysql # use DIV operator for integer division
query I rowsort label-6983
SELECT + 66 DIV col0 FROM tab1 AS cor0
----
0
1
22

skipif mysql # not compatible
query I rowsort label-6983
SELECT + 66 / col0 FROM tab1 AS cor0
----
0
1
22

query I rowsort
SELECT ALL col0 + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT 10 * col0 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT DISTINCT + - 91 * col1 AS col2 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT - cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + col0 + col2 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT 77 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT 6 * - col1 + col1 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT + 87 AS col2 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT + 3 * col0 * 90 FROM tab1 AS cor0
----
17280
21600
810

query I rowsort
SELECT DISTINCT col0 + col0 + + col0 AS col1 FROM tab0
----
105
267
72

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col1 FROM tab2, tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - + col0 - + col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT col1 + - 6 FROM tab2 AS cor0
----
11
25
53

query I rowsort
SELECT DISTINCT - + col1 + 8 AS col0 FROM tab0 cor0
----
-78
-83
-89

query I rowsort
SELECT ALL col0 * 66 + 6 FROM tab1 AS cor0
----
204
4230
5286

onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT cor0.col0 + - col2 DIV col0 FROM tab0 AS cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-6999
SELECT cor0.col0 + - col2 / col0 FROM tab0 AS cor0
----
23
35
89

query I rowsort
SELECT ALL col0 * col2 * + 23 AS col0 FROM tab0
----
167854
18216
805

query I rowsort
SELECT ALL 25 * + col2 AS col1 FROM tab2
----
650
675
950

query I rowsort
SELECT DISTINCT ( tab1.col2 * tab1.col1 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + 42 AS col2 FROM tab1
----
42

query I rowsort
SELECT + 4 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT ALL 93 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT col1 * - 7 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT col1 * 96 AS col1 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT ALL - col1 - + col2 * + 72 FROM tab0
----
-169
-2462
-5995

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
7
78
79

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + 51 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT + 58 + col1 FROM tab0
----
144
149
155

query I rowsort
SELECT + + 65 + - col2 AS col1 FROM tab0 AS cor0
----
-17
32
64

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7015
SELECT + - ( cor0.col0 ) DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7015
SELECT + - ( cor0.col0 ) / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - ( + col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col1 * + 68 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7019
SELECT ALL CAST( NULL AS SIGNED ) * + col0 / col2 + - ( - col2 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 / col2 + - ( - col2 ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + ( 19 ) FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 32 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT - 5 * - col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT DISTINCT 53 * + 28 FROM tab0 AS cor0
----
1484

query I rowsort
SELECT ALL 99 - + 56 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT col2 * 76 FROM tab1 AS cor0
----
4104
4332
7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-7027
SELECT DISTINCT - + 38 DIV 70 col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT - + 38 / 70 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( - col2 ) * ( - 29 ) AS col1 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT + 58 + col1 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT DISTINCT - 72 * col0 + ( - cor0.col0 ) * col0 AS col1 FROM tab2 AS cor0
----
-11700
-11929
-553

query I rowsort
SELECT + col2 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT - col1 - + col0 DIV col2 FROM tab0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-7032
SELECT - col1 - + col0 / col2 FROM tab0
----
-132
-86
-92

query I rowsort
SELECT ALL - - col0 * - ( + col0 ) + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - col2 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col0 * - cor0.col0 + + col0 * col2 FROM tab2 AS cor0
----
-3239
-4056
140

query I rowsort
SELECT - + cor1.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT + col2 + 64 AS col2 FROM tab2
----
102
90
91

query I rowsort
SELECT ALL col0 + col1 + col0 FROM tab0
----
134
167
269

query I rowsort
SELECT + 36 * - 86 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 31112cc444c3af9dbf98e344fafd65ad

query I rowsort
SELECT + + col1 * ( + ( col1 ) + + col0 ) FROM tab1 AS cor0
----
1209
740
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT DISTINCT col2 DIV - col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT col2 / - col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - tab1.col1 * + 19 AS col1 FROM tab1
----
-190
-247
-494

onlyif mysql # use DIV operator for integer division
query I rowsort label-7043
SELECT - - col2 + col2 DIV - col0 + + 23 FROM tab2 AS cor0
----
47
49
61

skipif mysql # not compatible
query I rowsort label-7043
SELECT - - col2 + col2 / - col0 + + 23 FROM tab2 AS cor0
----
47
49
61

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
69

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT ALL + 42 FROM tab1
----
42
42
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 * + 90 * col0 col0 FROM tab2 AS cor0
----
59850
666900
675450

query I rowsort
SELECT DISTINCT + 3 * col2 AS col2 FROM tab1 cor0
----
162
171
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor1.col0 ) col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col0 + ( - cor0.col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * 60 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-1920
-228
3078

query I rowsort
SELECT ALL + - col0 + col2 FROM tab0 cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 10 * - col1 col2 FROM tab0 AS cor0
----
-860
-910
-970

onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT 9 * + col2 + - col2 DIV col0 FROM tab2
----
234
240
342

skipif mysql # not compatible
query I rowsort label-7055
SELECT 9 * + col2 + - col2 / col0 FROM tab2
----
234
240
342

query I rowsort
SELECT + tab2.col1 * col0 * ( + col0 ) FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT + tab1.col1 * ( + 66 ) AS col1 FROM tab1, tab0, tab2 AS cor0, tab2
----
1716
660
858

query I rowsort
SELECT + + cor0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT tab2.col1 - col2 * - ( col0 ) FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-7060
SELECT + col2 DIV + col0 + col2 + 35 FROM tab0
----
117
36
69

skipif mysql # not compatible
query I rowsort label-7060
SELECT + col2 / + col0 + col2 + 35 FROM tab0
----
117
36
69

query I rowsort
SELECT ALL col0 + col1 + - 41 FROM tab2 cor0
----
-3
55
96

query I rowsort
SELECT 47 * col0 AS col2 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT ALL 82 * - col1 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 AS col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7067
SELECT ALL col0 DIV col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL col0 / col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT col1 + 71 AS col0 FROM tab0 cor0
----
157
162
168

query I rowsort
SELECT DISTINCT + col0 + + col1 * - col2 - - col0 FROM tab0 AS cor0
----
-27
-2790
-7284

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT DISTINCT + cor0.col2 + col2 DIV 88 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT + cor0.col2 + col2 / 88 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + col2 + col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL - + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + col0 + col2 - col0 * - col0 FROM tab1 AS cor0
----
4217
6576
66

query I rowsort
SELECT + col1 + + 7 AS col0 FROM tab0 AS cor0
----
104
93
98

query I rowsort
SELECT DISTINCT - col2 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - 83 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-83

query I rowsort
SELECT ALL + cor1.col1 * 53 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 37456969eb11021f866aeaf03e248be1

query I rowsort
SELECT ALL - col0 + + ( col1 ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col1 + + col2 * + 51 AS col2 FROM tab0 AS cor0
----
148
1769
4273

query I rowsort
SELECT DISTINCT - cor0.col0 + - ( 91 ) AS col0 FROM tab2 AS cor0
----
-169
-170
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7081
SELECT + 35 + - 87 + col2 DIV - col0 FROM tab2
----
-52
-52
-55

skipif mysql # not compatible
query I rowsort label-7081
SELECT + 35 + - 87 + col2 / - col0 FROM tab2
----
-52
-52
-55

query I rowsort
SELECT - ( tab0.col2 + + col2 ) AS col0 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT ALL ( + 39 ) + + col0 * col2 FROM tab1 AS cor0
----
201
3687
7719

onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT DISTINCT + cor0.col0 DIV - 32 + + cor0.col1 DIV 61 - 80 AS col0 FROM tab2 AS cor0
----
-80
-82

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT + cor0.col0 / - 32 + + cor0.col1 / 61 - 80 AS col0 FROM tab2 AS cor0
----
-80
-82

query I rowsort
SELECT ALL 66 * + col2 AS col2 FROM tab2
----
1716
1782
2508

query I rowsort
SELECT ALL + col2 * + col2 - + col2 AS col0 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7087
SELECT DISTINCT - cor0.col1 * cor0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT - cor0.col1 * cor0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col2 * col1 + 85 * col1 FROM tab2 cor0
----
1798
3481
799

onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT - + col0 + col0 DIV col1 FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-7089
SELECT - + col0 + col0 / col1 FROM tab1 AS cor0
----
-3
-58
-74

query I rowsort
SELECT col1 * col2 + 5 * + ( - cor0.col2 ) FROM tab0 AS cor0
----
2673
7052
92

query I rowsort
SELECT DISTINCT - - cor0.col1 + - col0 * - 64 + col0 * - col2 * + ( cor0.col0 ) FROM tab1 cor0
----
-229366
-268
-609267

query I rowsort
SELECT - 1 + + col0 AS col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT + col1 - col1 * - cor0.col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - - col1 - col0 * + cor0.col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - 88 + col2 FROM tab0 AS cor0
----
-55
-6
-87

query I rowsort
SELECT - + ( col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col0 + + 40 AS col2 FROM tab0 AS cor0
----
129
64
75

query I rowsort
SELECT - + col2 * - 38 FROM tab0 AS cor0
----
1254
3116
38

query I rowsort
SELECT col2 + - 95 * col0 * - cor0.col0 FROM tab1 AS cor0
----
389177
608096
909

query I rowsort
SELECT col1 * + 5 + - cor0.col1 * col1 + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-537
4046
6296

query I rows