sqllogictest
Artifact Content
Not logged in

Artifact ff11ab60c16c9d36e4b950cf9714501767d1c79a:


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 + 95 * col1 + - 60 AS col2 FROM tab2 AS cor0
----
1555
2885
5545

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-2
SELECT - col2 DIV 47 + col0 * - col2 * + col2 FROM tab0 AS cor0
----
-26136
-35
-598437

skipif mysql # not compatible
query I rowsort label-2
SELECT - col2 / 47 + col0 * - col2 * + col2 FROM tab0 AS cor0
----
-26136
-35
-598437

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

query I rowsort
SELECT ALL 8 + 94 FROM tab1, tab1 AS cor0
----
9 values hashing to 792cf560743b7eec398ed5c7e48d1343

query I rowsort
SELECT ALL + cor0.col2 * 1 + cor0.col2 * + cor0.col1 AS col2 FROM tab1 cor0
----
1344
1458
627

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col0 * - col1 + ( 35 * cor0.col1 ) col0 FROM tab2 AS cor0
----
-117587
-4774
-50439

query I rowsort
SELECT ALL - + 5 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT + + ( 59 ) * - cor0.col1 - + 91 FROM tab2 AS cor0
----
-1094
-1920
-3572

query I rowsort
SELECT DISTINCT - - col2 + 39 FROM tab1 cor0
----
135
93
96

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

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

query I rowsort
SELECT + cor0.col0 + 28 FROM tab1 AS cor0
----
108
31
92

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-17
SELECT DISTINCT - 56 + + col0 DIV + 9 FROM tab1 AS cor0
----
-48
-49
-56

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT - 56 + + col0 / + 9 FROM tab1 AS cor0
----
-48
-49
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * + ( - 59 ) col0 FROM tab2 cor0
----
-1020
-1860
-3540

query I rowsort
SELECT ALL - - cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL col1 + - col2 * + col2 * col2 AS col1 FROM tab2 AS cor0
----
-17517
-19652
-54855

query I rowsort
SELECT DISTINCT + 46 * 59 FROM tab2, tab1 AS cor0
----
2714

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

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

query I rowsort
SELECT DISTINCT + tab0.col2 * - 16 AS col0 FROM tab0
----
-1312
-16
-528

query I rowsort
SELECT ALL 84 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

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

query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
92

query I rowsort
SELECT 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - col0 * + 73 AS col1 FROM tab0 AS cor0
----
-1752
-2555
-6497

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

skipif mysql # not compatible
query I rowsort label-29
SELECT - CAST ( NULL AS REAL ) / col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 38 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - + ( + 11 ) FROM tab1 cor0
----
-11
-11
-11

query I rowsort
SELECT + 90 * - cor0.col2 * + col0 FROM tab2 AS cor0
----
-17010
-182520
-270180

query I rowsort
SELECT 86 FROM tab2, tab2 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + 41 - cor0.col0 * col2 AS col0 FROM tab2 cor0
----
-148
-1987
-2961

query I rowsort
SELECT - 91 + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
1973
3304
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 + + tab1.col0 col1 FROM tab1
----
-69
-8
8

query I rowsort
SELECT - 2 FROM tab1, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT + - 34 * col0 + col0 AS col2 FROM tab0 AS cor0
----
-1155
-2937
-792

query I rowsort
SELECT + col2 * ( - 77 ) AS col0 FROM tab0 AS cor0
----
-2541
-6314
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-40
SELECT col0 + 6 DIV + col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-40
SELECT col0 + 6 / + col1 FROM tab1 AS cor0
----
3
64
80

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-43
SELECT DISTINCT col2 DIV + col1 col2 FROM tab1
----
2
5
7

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

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

query I rowsort
SELECT DISTINCT - col1 + 76 * col2 AS col0 FROM tab1
----
4078
4322
7283

query I rowsort
SELECT DISTINCT - ( + col2 ) * ( 28 ) * - col2 FROM tab0
----
188272
28
30492

onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT DISTINCT + col0 + col1 * col0 + + ( col2 ) DIV 11 col0 FROM tab1 AS cor0
----
1128
709
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT + col0 + col1 * col0 + + ( col2 ) / 11 col0 FROM tab1 AS cor0
----
1128
709
85

query I rowsort
SELECT + 29 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT DISTINCT - tab2.col2 DIV ( col0 ) col0 FROM tab2
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT - tab2.col2 / ( col0 ) col0 FROM tab2
----
-3
0

query I rowsort
SELECT DISTINCT - 80 + - 43 FROM tab0, tab1 cor0
----
-123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + tab2.col1 * + 72 * col0 + - col1 * - ( - tab2.col2 ) col0 FROM tab2
----
14794
329888
96129

query I rowsort
SELECT DISTINCT - tab2.col1 * + tab2.col1 * - 35 - - col1 AS col0 FROM tab2
----
10132
121894
33666

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-54
SELECT ALL col2 / ( - col2 ) col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT col1 + 48 AS col2 FROM tab0
----
134
139
145

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

query I rowsort
SELECT + col1 * 46 + - 61 AS col1 FROM tab2 AS cor0
----
1365
2653
721

query I rowsort
SELECT + - 84 * - 82 + col0 FROM tab1 cor0
----
6891
6952
6968

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

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

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

query I rowsort
SELECT - ( col2 ) * col0 * - 79 FROM tab2 cor0
----
14931
160212
237158

query I rowsort
SELECT - ( - cor0.col2 ) + col0 * 93 FROM tab2 AS cor0
----
678
7280
7385

query I rowsort
SELECT DISTINCT + 77 * + 54 FROM tab1 AS cor0
----
4158

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

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

query I rowsort
SELECT - 20 + + col0 AS col1 FROM tab2 AS cor0
----
-13
58
59

query I rowsort
SELECT DISTINCT - ( - 21 ) FROM tab0 AS cor0
----
21

query I rowsort
SELECT col2 * + col2 * - col2 + col1 AS col2 FROM tab2 cor0
----
-17517
-19652
-54855

query I rowsort
SELECT ALL + col1 * 83 + - col1 FROM tab1 AS cor0
----
1066
2132
820

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

query I rowsort
SELECT DISTINCT col2 * 19 FROM tab1 AS cor0
----
1026
1083
1824

query I rowsort
SELECT ALL col1 + + 91 * col0 FROM tab2 AS cor0
----
668
7157
7206

query I rowsort
SELECT + - 23 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1017
55
617

query I rowsort
SELECT - 86 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-4
-53
-85

query I rowsort
SELECT + 81 AS col1 FROM tab2
----
81
81
81

query I rowsort
SELECT + col2 * tab1.col1 + col1 * - col2 + + 92 AS col0 FROM tab1
----
92
92
92

query I rowsort
SELECT ( tab1.col2 ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL col0 * col2 + - col2 * col2 * col1 AS col1 FROM tab1
----
-112128
-28842
-75654

query I rowsort
SELECT - cor0.col1 + 71 * + col0 AS col0 FROM tab1 AS cor0
----
187
4534
5667

query I rowsort
SELECT DISTINCT - col1 + + 60 AS col1 FROM tab0 cor0
----
-26
-31
-37

query I rowsort
SELECT ALL 29 * - 37 + col1 FROM tab2 AS cor0
----
-1014
-1042
-1056

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

query I rowsort
SELECT DISTINCT - 60 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-154
-3830
-4787

query I rowsort
SELECT DISTINCT + + col0 + 98 FROM tab0 AS cor0
----
122
133
187

query I rowsort
SELECT DISTINCT - - ( - col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

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

query I rowsort
SELECT ALL 72 + + col2 * - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-3323
-664046
-68040

query I rowsort
SELECT DISTINCT - 95 + - col2 FROM tab1 AS cor0
----
-149
-152
-191

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

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

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

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

query I rowsort
SELECT ALL - 83 * col1 + col2 + + col2 AS col1 FROM tab0 AS cor0
----
-7072
-7389
-8049

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

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

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

query I rowsort
SELECT ( 99 ) * - col2 AS col1 FROM tab1
----
-5346
-5643
-9504

query I rowsort
SELECT 67 * - 3 + tab1.col1 FROM tab1
----
-175
-188
-191

query I rowsort
SELECT DISTINCT + col1 + - tab2.col0 * - col0 + col1 * col1 FROM tab2
----
1041
6547
9624

query I rowsort
SELECT - col0 * 17 + col0 * ( col2 ) AS col1 FROM tab0
----
-560
384
5785

query I rowsort
SELECT ALL col1 + col2 + col1 FROM tab0
----
195
205
264

query I rowsort
SELECT + 3 * col2 AS col2 FROM tab0 cor0
----
246
3
99

query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-104
SELECT + ( tab1.col1 ) DIV + tab1.col0 + 5 * - 23 FROM tab1
----
-107
-115
-115

skipif mysql # not compatible
query I rowsort label-104
SELECT + ( tab1.col1 ) / + tab1.col0 + 5 * - 23 FROM tab1
----
-107
-115
-115

query I rowsort
SELECT col0 * - 80 AS col1 FROM tab1 AS cor0
----
-240
-5120
-6400

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

query I rowsort
SELECT DISTINCT + + cor0.col2 + + 79 - 37 FROM tab0 AS cor0
----
124
43
75

query I rowsort
SELECT ALL + - col1 + 9 FROM tab1 AS cor0
----
-1
-17
-4

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-113
SELECT DISTINCT cor0.col1 DIV + 33 + 11 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1056
-594
-627

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT cor0.col1 / + 33 + 11 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1056
-594
-627

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

query I rowsort
SELECT ALL + + col1 - 83 AS col0 FROM tab2 AS cor0
----
-24
-52
-66

query I rowsort
SELECT ALL - 45 * tab2.col2 FROM tab2
----
-1170
-1215
-1710

query I rowsort
SELECT ALL col1 * - col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

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

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

query I rowsort
SELECT DISTINCT + - col1 + col2 + + col0 AS col0 FROM tab2 AS cor0
----
100
3
45

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

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

query I rowsort
SELECT ALL 31 FROM tab1, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-122
SELECT ALL - cor1.col1 DIV - ( + cor1.col2 ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-122
SELECT ALL - cor1.col1 / - ( + cor1.col2 ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-124
SELECT col0 DIV - ( col0 * col0 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-124
SELECT col0 / - ( col0 * col0 ) FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 + col0 * - tab0.col2 + + col2 AS col2 FROM tab0
----
-33
-7134
-726

query I rowsort
SELECT cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

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

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

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

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

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

query I rowsort
SELECT col0 + ( - 88 ) FROM tab1
----
-24
-8
-85

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

skipif mysql # not compatible
query I rowsort label-133
SELECT - CAST ( + col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 18 * col2 FROM tab2 AS cor0
----
-468
-486
-684

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * col0 + + CAST ( 18 AS REAL ) + - col2 AS col1 FROM tab0 AS cor0
----
1242
561
7857

onlyif mysql # use DIV operator for integer division
query I rowsort label-138
SELECT col0 * - col0 + col1 DIV + col0 FROM tab2 AS cor0
----
-45
-6084
-6241

skipif mysql # not compatible
query I rowsort label-138
SELECT col0 * - col0 + col1 / + col0 FROM tab2 AS cor0
----
-45
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT 58 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT tab0.col0 * tab0.col0 * col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL + 11 + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7407
8292
9420

query I rowsort
SELECT 64 * col2 + + 49 FROM tab2 AS cor0
----
1713
1777
2481

query I rowsort
SELECT ALL + col2 * col0 + 36 FROM tab1 AS cor0
----
198
3684
7716

query I rowsort
SELECT ALL + col1 + + col2 * 57 FROM tab2 cor0
----
1541
1570
2183

query I rowsort
SELECT ALL 30 * - col0 AS col1 FROM tab0
----
-1050
-2670
-720

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + + 81 * - col1 AS col0 FROM tab2
----
-1298
-2504
-4701

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

query I rowsort
SELECT + col1 + - 41 FROM tab0 AS cor0
----
45
50
56

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 36 col0 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab2
----
69

query I rowsort
SELECT - col2 * - col2 + 49 AS col1 FROM tab2 AS cor0
----
1493
725
778

query I rowsort
SELECT + - 51 * col2 AS col0 FROM tab0 AS cor0
----
-1683
-4182
-51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-159
SELECT - + 42 / - col0 + + col1 col0 FROM tab2 AS cor0
----
17
37
59

query I rowsort
SELECT col2 + - tab2.col1 - + col1 FROM tab2
----
-35
-92
4

query I rowsort
SELECT ALL col2 - - col0 * + 92 FROM tab0
----
2241
3221
8270

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

query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab0 cor0
----
1

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

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

query I rowsort
SELECT - + ( - col2 ) * + col2 + + cor0.col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - 43 + 26 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL + - ( 98 ) * + col1 FROM tab0 AS cor0
----
-8428
-8918
-9506

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT DISTINCT 36 DIV - col1 + + col1 FROM tab1
----
11
25
7

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT 36 / - col1 + + col1 FROM tab1
----
11
25
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-173
SELECT DISTINCT - - CAST( + 60 AS SIGNED ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-173
SELECT DISTINCT - - CAST ( + 60 AS INTEGER ) FROM tab0 AS cor0
----
60

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

query I rowsort
SELECT col2 * 65 * col1 FROM tab2 AS cor0
----
41990
54405
99710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 91 + col1 * + 25 col0 FROM tab1 AS cor0
----
6074
7605
923

query I rowsort
SELECT ALL + col1 * - 28 AS col1 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT 50 + ( col1 ) FROM tab1 AS cor0
----
60
63
76

query I rowsort
SELECT + - 21 * col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1951
-537
-736

query I rowsort
SELECT ALL 71 + - col0 AS col1 FROM tab1 AS cor0
----
-9
68
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT DISTINCT - - ( - col2 ) - + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - - ( - col2 ) - + col1 / - col1 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-182
SELECT - col2 DIV + 88 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-81

skipif mysql # not compatible
query I rowsort label-182
SELECT - col2 / + 88 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-81

query I rowsort
SELECT ALL ( 99 ) * col2 - 14 * col1 FROM tab1 cor0
----
4982
5503
9322

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

query I rowsort
SELECT DISTINCT 42 + 69 AS col2 FROM tab1 AS cor0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + + col1 * col2 + 96 FROM tab0 AS cor0
----
193
2934
7558

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

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

query I rowsort
SELECT + col2 + 71 * col0 AS col2 FROM tab2 AS cor0
----
524
5564
5647

query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT - col1 * ( 19 ) + + col2 AS col2 FROM tab2 AS cor0
----
-1095
-285
-562

query I rowsort
SELECT DISTINCT + col0 * col1 + 55 * + col1 AS col0 FROM tab1 AS cor0
----
1190
1508
1755

query I rowsort
SELECT ALL + col0 - 44 AS col2 FROM tab2
----
-37
34
35

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT col2 * col1 - tab0.col2 * - tab0.col0 * 24 FROM tab0
----
182614
21846
937

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

skipif mysql # not compatible
query I rowsort label-197
SELECT - col0 / col2 AS col1 FROM tab0
----
-1
-35
0

query I rowsort
SELECT ALL 30 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

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

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

query I rowsort
SELECT col0 + + col1 + + 97 AS col1 FROM tab2
----
135
193
234

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

skipif mysql # not compatible
query I rowsort label-203
SELECT + col2 * + CAST ( + col2 + col0 AS INTEGER ) FROM tab1
----
16896
3078
6897

onlyif mysql # use DIV operator for integer division
query I rowsort label-204
SELECT ALL + col2 DIV 20 + - tab1.col2 FROM tab1
----
-52
-55
-92

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL + col2 / 20 + - tab1.col2 FROM tab1
----
-52
-55
-92

query I rowsort
SELECT - col2 * 90 + - col2 AS col1 FROM tab0
----
-3003
-7462
-91

query I rowsort
SELECT col1 * - 93 FROM tab0 AS cor0
----
-7998
-8463
-9021

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

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 * col1 - col0 AS col2 FROM tab2
----
-1014
-1805
-5093

query I rowsort
SELECT + ( cor0.col0 ) - col1 * ( - col0 + cor0.col1 ) FROM tab2 AS cor0
----
-737
1133
1199

query I rowsort
SELECT DISTINCT 36 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
36

query I rowsort
SELECT DISTINCT ( col2 + - col0 ) * ( 42 + col1 ) FROM tab0
----
-4726
-931
1152

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - 55 col0 FROM tab1 AS cor0
----
1430
550
715

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

query I rowsort
SELECT + 31 + + col1 * col2 + + 30 * - col1 FROM tab1
----
301
655
889

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-219
SELECT + col1 * + col2 + col0 + - CAST( - 61 + col0 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-496
4539
463

skipif mysql # not compatible
query I rowsort label-219
SELECT + col1 * + col2 + col0 + - CAST ( - 61 + col0 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-496
4539
463

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-222
SELECT col2 DIV - col1 + - col0 col1 FROM tab2
----
-7
-78
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-222
SELECT col2 / - col1 + - col0 col1 FROM tab2
----
-7
-78
-81

query I rowsort
SELECT + 54 + col0 AS col2 FROM tab1
----
118
134
57

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

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

query I rowsort
SELECT DISTINCT - 14 FROM tab2 cor0
----
-14

query I rowsort
SELECT + 95 * col2 + col2 FROM tab1 cor0
----
5184
5472
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT DISTINCT - ( - col1 ) + + CAST( - 37 AS SIGNED ) + cor0.col1 DIV ( - col1 ) AS col1 FROM tab1 AS cor0
----
-12
-25
-28

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT - ( - col1 ) + + CAST ( - 37 AS INTEGER ) + cor0.col1 / ( - col1 ) AS col1 FROM tab1 AS cor0
----
-12
-25
-28

query I rowsort
SELECT ALL + col2 * ( col0 + col1 ) FROM tab2 cor0
----
1026
3562
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-229
SELECT DISTINCT - + col2 * col1 DIV - 11 AS col0 FROM tab2 AS cor0
----
139
58
76

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - + col2 * col1 / - 11 AS col0 FROM tab2 AS cor0
----
139
58
76

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT + col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-232
SELECT + col1 / + col2 AS col2 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-233
SELECT DISTINCT - col1 DIV col2 + + col1 * col1 * - col2 FROM tab0 AS cor0
----
-244070
-679043
-9506

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT - col1 / col2 + + col1 * col1 * - col2 FROM tab0 AS cor0
----
-244070
-679043
-9506

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

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

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

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT cor0.col0 / 89 + tab0.col2 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1
33
82

query I rowsort
SELECT ALL - 52 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT + 75 + col1 AS col2 FROM tab1 AS cor0
----
101
85
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-239
SELECT col0 + 38 DIV col0 FROM tab0 AS cor0
----
25
36
89

skipif mysql # not compatible
query I rowsort label-239
SELECT col0 + 38 / col0 FROM tab0 AS cor0
----
25
36
89

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-241
SELECT + 68 * + 57 + cor0.col0 DIV - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3877
3877
3877

skipif mysql # not compatible
query I rowsort label-241
SELECT + 68 * + 57 + cor0.col0 / - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3877
3877
3877

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT ALL + 46 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL + 46 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 41 * cor0.col0 + - ( + col0 ) FROM tab1 cor0
----
120
2560
3200

query I rowsort
SELECT DISTINCT 69 + + col2 * ( + col0 ) AS col0 FROM tab2 cor0
----
2097
258
3071

query I rowsort
SELECT - - 21 FROM tab1 cor0
----
21
21
21

query I rowsort
SELECT ALL - col1 * - ( + col1 * tab1.col1 + - col2 * col0 ) FROM tab1
----
-35480
-97643
13364

onlyif mysql # use DIV operator for integer division
query I rowsort label-250
SELECT col2 * + cor0.col2 + + col2 * col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
1
1077
6651

skipif mysql # not compatible
query I rowsort label-250
SELECT col2 * + cor0.col2 + + col2 * col2 / - col1 AS col0 FROM tab0 AS cor0
----
1
1077
6651

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-252
SELECT - col1 - CAST( 76 AS SIGNED ) FROM tab1 AS cor0
----
-102
-86
-89

skipif mysql # not compatible
query I rowsort label-252
SELECT - col1 - CAST ( 76 AS INTEGER ) FROM tab1 AS cor0
----
-102
-86
-89

query I rowsort
SELECT ALL col2 + - 87 AS col1 FROM tab1 AS cor0
----
-30
-33
9

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

query I rowsort
SELECT - + cor0.col1 * - col2 - 7 * + col1 FROM tab0 AS cor0
----
-582
2236
6825

query I rowsort
SELECT col0 + - 72 FROM tab1 AS cor0
----
-69
-8
8

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

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

query I rowsort
SELECT DISTINCT + col1 + 44 - - col1 AS col0 FROM tab0 AS cor0
----
216
226
238

query I rowsort
SELECT ALL col1 + ( + ( - col2 ) ) * 59 * + col1 + col2 * - 72 FROM tab1 AS cor0
----
-37724
-80531
-86698

query I rowsort
SELECT + - col2 * 4 + col1 AS col1 FROM tab1 cor0
----
-190
-218
-371

query I rowsort
SELECT DISTINCT col1 * 59 + + col0 FROM tab1 AS cor0
----
1537
654
847

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

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

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

query I rowsort
SELECT 18 * - col0 + + col0 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT + ( - 69 ) + col0 AS col1 FROM tab2 AS cor0
----
-62
10
9

query I rowsort
SELECT ALL col0 + - 20 AS col1 FROM tab1
----
-17
44
60

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

query I rowsort
SELECT + 93 + - col1 AS col2 FROM tab2 AS cor0
----
34
62
76

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) * + col0 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-271
SELECT + 83 DIV - col1 - + col0 FROM tab2 AS cor0
----
-79
-83
-9

skipif mysql # not compatible
query I rowsort label-271
SELECT + 83 / - col1 - + col0 FROM tab2 AS cor0
----
-79
-83
-9

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-273
SELECT - col2 DIV 62 col1 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-273
SELECT - col2 / 62 col1 FROM tab1
----
-1
0
0

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

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

skipif mysql # not compatible
query I rowsort label-275
SELECT col1 * + CAST ( - col0 * col1 AS INTEGER ) AS col2 FROM tab0
----
-177504
-329315
-737009

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-278
SELECT ALL - CAST( - 30 AS SIGNED ) + col0 FROM tab0 AS cor0
----
119
54
65

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - CAST ( - 30 AS INTEGER ) + col0 FROM tab0 AS cor0
----
119
54
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * + 53 * col1 + cor0.col0 * - 81 col0 FROM tab2 AS cor0
----
178175
50366
8918

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

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

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

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1, tab2 AS cor2
----
-44

query I rowsort
SELECT ALL - col0 * 82 - col0 * col2 AS col0 FROM tab0
----
-14596
-2760
-2905

query I rowsort
SELECT DISTINCT + ( tab2.col1 ) - col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + col1 + - col1 col1 FROM tab1 AS cor0
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 30 col1 FROM tab2 AS cor0
----
-48
-49
23

query I rowsort
SELECT ALL - 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL col0 * - col1 * 69 FROM tab2
----
-14973
-317538
-92667

query I rowsort
SELECT ALL - 1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ALL - col0 * - 66 FROM tab2
----
462
5148
5214

query I rowsort
SELECT + col0 * + 51 AS col2 FROM tab0
----
1224
1785
4539

query I rowsort
SELECT ALL 90 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-294
SELECT col2 * CAST ( - 65 AS INTEGER ) + col0 col2 FROM tab2 AS cor0
----
-1612
-1748
-2391

query I rowsort
SELECT + + ( - col2 ) + - 87 AS col0 FROM tab1 cor0
----
-141
-144
-183

onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT - - 78 DIV + col0 + + cor0.col0 - 25 * col2 AS col1 FROM tab1 AS cor0
----
-1321
-1360
-2320

skipif mysql # not compatible
query I rowsort label-296
SELECT - - 78 / + col0 + + cor0.col0 - 25 * col2 AS col1 FROM tab1 AS cor0
----
-1321
-1360
-2320

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

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

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

query I rowsort
SELECT ALL + - ( + col2 ) * - col1 + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - col0 * col1 * 22 FROM tab1 AS cor0
----
-14080
-1716
-22880

query I rowsort
SELECT ALL + 24 AS col2 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT - - 45 + - col1 + - cor0.col1 FROM tab0 AS cor0
----
-127
-137
-149

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

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

query I rowsort
SELECT + col1 * + cor0.col2 + col0 + col0 AS col1 FROM tab1 AS cor0
----
1408
1410
698

query I rowsort
SELECT DISTINCT col2 + + 56 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
113
227
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( col1 ) * - col2 col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + ( 22 ) AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
22

query I rowsort
SELECT - col1 + col1 * + col0 FROM tab2
----
1326
186
4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( + cor0.col1 ) * cor0.col1 + + col0 col0 FROM tab2 AS cor0
----
-205301
-29784
-4834

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

query I rowsort
SELECT col0 * ( + 71 ) + + col1 AS col0 FROM tab2 AS cor0
----
528
5597
5626

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

query I rowsort
SELECT + 25 + + col2 * + col1 FROM tab1 AS cor0
----
1273
1429
595

query I rowsort
SELECT ALL + - ( col2 ) - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL - 44 * - ( - col0 ) AS col0 FROM tab2 cor0
----
-308
-3432
-3476

query I rowsort
SELECT DISTINCT - 78 + cor0.col1 * - col1 + 39 AS col0 FROM tab1 cor0
----
-139
-208
-715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-320
SELECT + CAST( 37 AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to b8def841e97863779a391f3a05d3eb92

skipif mysql # not compatible
query I rowsort label-320
SELECT + CAST ( 37 AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to b8def841e97863779a391f3a05d3eb92

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

query I rowsort
SELECT - cor0.col1 * - col2 + - col1 * + 16 AS col0 FROM tab0 AS cor0
----
-1455
1462
6006

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

query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

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

query I rowsort
SELECT + col0 * 44 * col0 FROM tab1 AS cor0
----
180224
281600
396

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

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

query I rowsort
SELECT 75 + col1 * col1 FROM tab2 AS cor0
----
1036
3556
364

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 14 + col2 col2 FROM tab1 AS cor0
----
110
68
71

query I rowsort
SELECT ALL col2 * + 92 * + col0 AS col1 FROM tab0
----
3220
671416
72864

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

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

query I rowsort
SELECT - 73 * - col0 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT - 22 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT ALL + - ( col2 ) * col2 + + 21 FROM tab0 AS cor0
----
-1068
-6703
20

query I rowsort
SELECT + 87 + col2 FROM tab2
----
113
114
125

query I rowsort
SELECT + ( col1 ) + + ( col1 ) * - tab0.col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT + col1 + col0 * 19 * col0 AS col0 FROM tab1
----
121613
197
77834

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

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

query I rowsort
SELECT ALL - 7 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT DISTINCT ( col0 ) * col0 AS col0 FROM tab2
----
49
6084
6241

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

query I rowsort
SELECT tab0.col0 + 9 + col0 * col1 FROM tab0
----
2097
3439
8197

query I rowsort
SELECT DISTINCT tab0.col2 + - 46 + col2 AS col2 FROM tab0
----
-44
118
20

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

query I rowsort
SELECT DISTINCT + tab1.col2 + 66 FROM tab1
----
120
123
162

query I rowsort
SELECT DISTINCT - col1 * + 53 + + 86 AS col2 FROM tab1
----
-1292
-444
-603

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

query I rowsort
SELECT cor0.col0 + col0 * + col0 * - col2 AS col1 FROM tab2 cor0
----
-1316
-158106
-237079

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-354
SELECT col1 * ( col1 ) / tab0.col1 + col2 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL col0 + 10 + col1 * col1 AS col0 FROM tab1
----
174
259
689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + + col0 col1 FROM tab2
----
1523
736
754

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

query I rowsort
SELECT cor0.col1 * 37 + - col2 FROM tab2 AS cor0
----
1120
2157
591

query I rowsort
SELECT DISTINCT 7 + col0 AS col0 FROM tab2 AS cor0
----
14
85
86

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

query I rowsort
SELECT DISTINCT - ( 8 ) + + col1 FROM tab0 AS cor0
----
78
83
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 + col0 col2 FROM tab2 AS cor0
----
161
162
90

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

query I rowsort
SELECT ALL - ( col2 ) * col2 - - 1 * + cor0.col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT 36 + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
1480
712
765

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 DISTINCT + 13 col2 FROM tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT + col0 * 91 AS col2 FROM tab0 AS cor0
----
2184
3185
8099

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

skipif mysql # not compatible
query I rowsort label-369
SELECT - - CAST ( - col2 AS INTEGER ) + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL ( + 50 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT ALL - + 42 + - 45 * + col1 FROM tab2 AS cor0
----
-1437
-2697
-807

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-373
SELECT - col2 + - 82 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-83
-83

skipif mysql # not compatible
query I rowsort label-373
SELECT - col2 + - 82 / cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-83
-83

query I rowsort
SELECT + ( + cor0.col0 ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - 66 + col2 * 41 FROM tab1
----
2148
2271
3870

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

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

query I rowsort
SELECT + col0 * - 36 AS col1 FROM tab2
----
-252
-2808
-2844

query I rowsort
SELECT - cor0.col2 + 4 FROM tab2 AS cor0
----
-22
-23
-34

query I rowsort
SELECT DISTINCT 81 * - col2 FROM tab2
----
-2106
-2187
-3078

query I rowsort
SELECT ( 94 ) FROM tab0
----
94
94
94

query I rowsort
SELECT col2 * + col1 * - col1 + - 19 FROM tab2
----
-11001
-25966
-90525

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

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

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

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

query I rowsort
SELECT - col1 * - col2 + - 88 + - col1 AS col0 FROM tab1 AS cor0
----
1147
1290
472

query I rowsort
SELECT - + cor0.col1 * cor0.col1 - 51 AS col0 FROM tab1 AS cor0
----
-151
-220
-727

query I rowsort
SELECT ALL - 85 - + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-84
1004
6639

query I rowsort
SELECT - ( col1 ) + - 79 FROM tab1 AS cor0
----
-105
-89
-92

query I rowsort
SELECT + col2 + col1 * + cor0.col1 * + col2 FROM tab2 cor0
----
11020
25974
90532

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT DISTINCT - cor0.col0 DIV - 19 AS col1 FROM tab2, tab0 AS cor0
----
1
4

skipif mysql # not compatible
query I rowsort label-392
SELECT DISTINCT - cor0.col0 / - 19 AS col1 FROM tab2, tab0 AS cor0
----
1
4

query I rowsort
SELECT + - 35 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT - + 23 + cor0.col2 * + 10 AS col1 FROM tab2 AS cor0
----
237
247
357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 * col1 col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + col0 + 96 AS col2 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT ALL col0 * 75 FROM tab0 AS cor0
----
1800
2625
6675

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + cor0.col0 col0 FROM tab2 AS cor0
----
137
38
96

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

query I rowsort
SELECT col2 * + 80 + - ( cor0.col1 ) * col1 + col0 AS col2 FROM tab1 AS cor0
----
3647
4524
7591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 * - col2 col2 FROM tab2
----
390
405
570

query I rowsort
SELECT DISTINCT - col2 * 74 + col2 AS col0 FROM tab0 AS cor0
----
-2409
-5986
-73

query I rowsort
SELECT DISTINCT + + col2 * + ( + 92 ) * + col0 AS col2 FROM tab0 AS cor0
----
3220
671416
72864

query I rowsort
SELECT col0 - 62 * - 40 AS col1 FROM tab2 AS cor0
----
2487
2558
2559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 87 col2 FROM tab0 cor0
----
120
169
88

query I rowsort
SELECT - col0 * 48 FROM tab0 AS cor0
----
-1152
-1680
-4272

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

query I rowsort
SELECT + 86 * - col1 AS col0 FROM tab1 AS cor0
----
-1118
-2236
-860

onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT - + ( - col0 ) * - cor0.col2 + + CAST( - col1 AS SIGNED ) + + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-2086
-219
-3018

skipif mysql # not compatible
query I rowsort label-411
SELECT - + ( - col0 ) * - cor0.col2 + + CAST ( - col1 AS INTEGER ) + + col0 / + col0 AS col1 FROM tab2 AS cor0
----
-2086
-219
-3018

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * col1 col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-414
SELECT - 29 DIV - 97 + + cor0.col2 DIV - 16 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-414
SELECT - 29 / - 97 + + cor0.col2 / - 16 FROM tab2 cor0
----
-1
-1
-2

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

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

query I rowsort
SELECT + col0 * 31 + + col1 * ( col1 ) * - col0 FROM tab1 AS cor0
----
-11040
-1935
-4416

query I rowsort
SELECT ALL + + 1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 72 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT ALL + cor0.col0 DIV - cor0.col0 + col1 * - col1 - col2 FROM tab0 AS cor0
----
-7430
-8364
-9411

skipif mysql # not compatible
query I rowsort label-423
SELECT ALL + cor0.col0 / - cor0.col0 + col1 * - col1 - col2 FROM tab0 AS cor0
----
-7430
-8364
-9411

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

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 FROM tab1 cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort
SELECT ALL 65 + col2 + - cor0.col0 * CAST ( 81 AS REAL ) FROM tab1 AS cor0
----
-124
-5062
-6319

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

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

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

query I rowsort
SELECT ALL tab1.col2 * col2 + tab1.col1 FROM tab1
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 * + col1 + 69 - - col1 col0 FROM tab0 AS cor0
----
244223
679202
9575

query I rowsort
SELECT + 23 + - ( col1 ) AS col1 FROM tab2
----
-36
-8
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col1 FROM tab2
----
137
38
96

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-436
SELECT DISTINCT - col1 * 42 + + col1 DIV - 83 + - col2 AS col1 FROM tab2 AS cor0
----
-1329
-2504
-752

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT - col1 * 42 + + col1 / - 83 + - col2 AS col1 FROM tab2 AS cor0
----
-1329
-2504
-752

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

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

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

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

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT cor0.col1 + col2 / col1 AS col2 FROM tab1 AS cor0
----
15
20
28

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

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

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

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

query I rowsort
SELECT 93 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

query I rowsort
SELECT DISTINCT + - 32 FROM tab2 AS cor0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 + + col2 col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT col0 * - col0 + - col0 + - col0 * - col1 AS col2 FROM tab0
----
1464
2135
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-450
SELECT - 71 DIV cor0.col1 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-450
SELECT - 71 / cor0.col1 FROM tab2 cor0
----
-1
-2
-4

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

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

query I rowsort
SELECT ALL col2 * + 53 AS col0 FROM tab2 AS cor0
----
1378
1431
2014

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

query I rowsort
SELECT DISTINCT col2 * ( - 11 ) AS col0 FROM tab1 AS cor0
----
-1056
-594
-627

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

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

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

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT - col0 * ( - col2 ) / col0 AS col0 FROM tab1 AS cor0
----
54
57
96

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

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

query I rowsort
SELECT - - 55 * 66 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 8882d17fc353b9918c06f9ed2df40918

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

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

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

query I rowsort
SELECT DISTINCT + col1 * ( 60 * col0 ) + + 42 * + col1 FROM tab2 AS cor0
----
14322
278598
81294

skipif mysql # not compatible
query I rowsort
SELECT + col1 * col1 + cor0.col1 + col2 * - CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-2214
-3139
-9034

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

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

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

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

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + col2 / col1 AS col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT - + col2 * + 67 + col1 AS col1 FROM tab0 AS cor0
----
-2125
-5403
30

query I rowsort
SELECT ( - 22 ) FROM tab0 cor0
----
-22
-22
-22

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + - col0 * 99 * - 20 AS col1 FROM tab2 AS cor0
----
13891
154499
156437

query I rowsort
SELECT col1 + + col0 * - ( cor0.col0 ) * - col2 FROM tab1 AS cor0
----
233482
512
614413

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

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

query I rowsort
SELECT ALL 35 * + tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 12fe836cfdec4b594740ca0729e43eb0

query I rowsort
SELECT cor0.col1 * col0 + ( 82 ) AS col1 FROM tab2 AS cor0
----
1425
299
4684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-481
SELECT - 35 * col2 - + CAST( - ( col2 ) AS SIGNED ) FROM tab2 cor0
----
-1292
-884
-918

skipif mysql # not compatible
query I rowsort label-481
SELECT - 35 * col2 - + CAST ( - ( col2 ) AS INTEGER ) FROM tab2 cor0
----
-1292
-884
-918

onlyif mysql # use DIV operator for integer division
query I rowsort label-482
SELECT + - col0 DIV - cor0.col2 + + ( - col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3248
-9216

skipif mysql # not compatible
query I rowsort label-482
SELECT + - col0 / - cor0.col2 + + ( - col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3248
-9216

query I rowsort
SELECT ALL - 79 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

query I rowsort
SELECT DISTINCT - col0 + col1 * col2 * col1 AS col2 FROM tab0
----
244044
678953
9374

query I rowsort
SELECT - col1 + + col0 * + 49 * col2 AS col2 FROM tab2
----
147081
9230
99313

query I rowsort
SELECT DISTINCT 90 + tab1.col1 * - ( - 30 + - tab1.col0 ) FROM tab1
----
1030
1520
948

onlyif mysql # use DIV operator for integer division
query I rowsort label-487
SELECT - col1 + col2 DIV 33 AS col0 FROM tab1 AS cor0
----
-11
-25
-9

skipif mysql # not compatible
query I rowsort label-487
SELECT - col1 + col2 / 33 AS col0 FROM tab1 AS cor0
----
-11
-25
-9

query I rowsort
SELECT cor0.col0 * - col2 * 98 FROM tab2 AS cor0
----
-18522
-198744
-294196

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-489
SELECT - col0 - + col1 * CAST( 33 AS SIGNED ) FROM tab0
----
-2862
-3092
-3236

skipif mysql # not compatible
query I rowsort label-489
SELECT - col0 - + col1 * CAST ( 33 AS INTEGER ) FROM tab0
----
-2862
-3092
-3236

query I rowsort
SELECT col0 * - col0 + - 91 AS col0 FROM tab2
----
-140
-6175
-6332

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

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

query I rowsort
SELECT DISTINCT 31 + col0 * + col2 FROM tab0
----
66
7329
823

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

query I rowsort
SELECT + col0 + tab2.col2 * - col2 FROM tab2
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + col1 * col0 * col2 + col0 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT - 56 * + col1 AS col1 FROM tab1 AS cor0
----
-1456
-560
-728

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

query I rowsort
SELECT DISTINCT - 22 + tab1.col0 FROM tab1
----
-19
42
58

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

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT col1 + + col2 * col0 / col0 AS col2 FROM tab1
----
109
67
80

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

query I rowsort
SELECT ALL - 45 * col0 * + tab0.col2 + tab0.col0 FROM tab0
----
-1540
-328321
-35616

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-505
SELECT ALL + col1 * tab1.col1 DIV col2 AS col2 FROM tab1
----
1
1
12

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL + col1 * tab1.col1 / col2 AS col2 FROM tab1
----
1
1
12

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

query I rowsort
SELECT 83 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

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

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

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

query I rowsort
SELECT - tab2.col1 + col1 * - col1 AS col0 FROM tab2
----
-306
-3540
-992

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) NOT BETWEEN + col0 AND NULL
----

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

query I rowsort
SELECT ALL col0 * + col0 + col1 * - col1 * col2 FROM tab1
----
-1604
-36495
-9824

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col0 FROM tab2
----
-33
-4
21

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 NOT BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT + col0 * col0 + + col2 + + col1 AS col1 FROM tab0
----
1323
695
8094

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

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

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

query I rowsort
SELECT DISTINCT col1 * + col1 * col2 + col0 FROM tab1
----
16304
36507
5764

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT ( col1 ) BETWEEN NULL AND - col0 + - col0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 + col2 col0 FROM tab0 WHERE NOT NULL >= - col1
----

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

query I rowsort
SELECT + col1 + col1 * + col0 * col0 AS col0 FROM tab2
----
106114
1550
359015

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-530
SELECT + CAST( 69 AS SIGNED ) * - cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to d903e3d82f0ceab43f8d1750eeddd32d

skipif mysql # not compatible
query I rowsort label-530
SELECT + CAST ( 69 AS INTEGER ) * - cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to d903e3d82f0ceab43f8d1750eeddd32d

query I rowsort
SELECT 76 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT DISTINCT 47 DIV + col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT 47 / + col1 FROM tab2
----
0
1
2

query I rowsort
SELECT + 93 FROM tab2, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT + 83 + col0 AS col2 FROM tab1
----
147
163
86

query I rowsort
SELECT + 6 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT 65 + ( - col2 ) + + 23 FROM tab1
----
-8
31
34

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

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

query I rowsort
SELECT - + 98 + - col1 * + cor0.col1 FROM tab1 AS cor0
----
-198
-267
-774

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

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

query I rowsort
SELECT DISTINCT - col0 * col2 + - 59 * cor0.col0 FROM tab1 AS cor0
----
-12400
-339
-7424

query I rowsort
SELECT - 58 * col1 FROM tab2 AS cor0
----
-1798
-3422
-986

query I rowsort
SELECT DISTINCT + 39 * col2 * - 15 - 30 AS col0 FROM tab2 AS cor0
----
-15240
-15825
-22260

onlyif mysql # use DIV operator for integer division
query I rowsort label-545
SELECT DISTINCT + 82 + + col0 DIV - col1 + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
7478
8363
9491

skipif mysql # not compatible
query I rowsort label-545
SELECT DISTINCT + 82 + + col0 / - col1 + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
7478
8363
9491

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

query I rowsort
SELECT + 54 * + col0 * + ( 16 ) FROM tab1 AS cor0
----
2592
55296
69120

query I rowsort
SELECT ALL - 89 + col2 + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2008
3307
8092

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

skipif mysql # not compatible
query I rowsort label-549
SELECT ALL + col0 - CAST ( - col2 AS INTEGER ) * + tab2.col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT + col1 + + col0 * + 64 AS col1 FROM tab0 AS cor0
----
1622
2337
5787

query I rowsort
SELECT col1 * 61 AS col1 FROM tab0
----
5246
5551
5917

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-554
SELECT - col1 + + col0 * 99 DIV - col1 FROM tab1 AS cor0
----
-37
-622
-643

skipif mysql # not compatible
query I rowsort label-554
SELECT - col1 + + col0 * 99 / - col1 FROM tab1 AS cor0
----
-37
-622
-643

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) * col2 * + 6 AS col0 FROM tab1 AS cor0
----
3420
7488
8424

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

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

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

query I rowsort
SELECT ALL - 81 + + ( col1 ) FROM tab1 cor0
----
-55
-68
-71

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

query I rowsort
SELECT DISTINCT + 14 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1262
1418
584

onlyif mysql # use DIV operator for integer division
query I rowsort label-562
SELECT ALL ( col2 ) * + col0 + + col1 * col1 DIV - cor0.col1 - + col1 FROM tab2 AS cor0
----
127
1910
2968

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL ( col2 ) * + col0 + + col1 * col1 / - cor0.col1 - + col1 FROM tab2 AS cor0
----
127
1910
2968

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

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * - col2 * col2 AS col1 FROM tab1 cor0
----
-119728
-32426
-75813

query I rowsort
SELECT ALL + + 8 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT ( cor0.col0 ) * + col0 + col0 AS col2 FROM tab0 cor0
----
1260
600
8010

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

query I rowsort
SELECT 63 * + col0 FROM tab0
----
1512
2205
5607

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

query I rowsort
SELECT ALL 80 + col1 * + col0 AS col0 FROM tab0
----
2144
3475
8179

query I rowsort
SELECT + col0 * 87 - - col1 AS col2 FROM tab2
----
640
6845
6890

query I rowsort
SELECT 69 + tab1.col1 AS col2 FROM tab1
----
79
82
95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 * cor0.col1 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 9693f5ea9151a0c78bc109319136ccd6

query I rowsort
SELECT ALL + 35 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

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

query I rowsort
SELECT ALL - 25 + + ( col2 * - col2 ) + col0 AS col1 FROM tab1
----
-2938
-3210
-9161

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

query I rowsort
SELECT DISTINCT col1 + - tab2.col1 FROM tab2
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col2 ) * + col0 + col0 col2 FROM tab0 AS cor0
----
-7209
-768
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-583
SELECT DISTINCT + ( cor0.col1 ) DIV col0 - - col1 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-583
SELECT DISTINCT + ( cor0.col1 ) / col0 - - col1 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT col2 * cor0.col2 - + cor0.col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
16896
3078
6897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT + col0 - 5 AS col1 FROM tab0 AS cor0
----
19
30
84

query I rowsort
SELECT DISTINCT col2 - - 51 * + 51 FROM tab2
----
2627
2628
2639

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

query I rowsort
SELECT + - 33 * + col0 + col1 AS col1 FROM tab0 cor0
----
-1058
-2846
-706

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

query I rowsort
SELECT ALL 9 * - 72 + + col0 * col2 FROM tab0
----
-613
144
6650

onlyif mysql # use DIV operator for integer division
query I rowsort label-592
SELECT DISTINCT - col1 + col1 DIV - tab0.col1 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-592
SELECT DISTINCT - col1 + col1 / - tab0.col1 FROM tab0
----
-87
-92
-98

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

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

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

query I rowsort
SELECT 42 * - 2 * - col2 + - col0 + + tab1.col2 * col1 AS col1 FROM tab1
----
5294
5937
9232

query I rowsort
SELECT ALL ( col0 ) + cor0.col1 + + col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT DISTINCT + - ( 95 ) AS col0 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT 28 + - col1 AS col0 FROM tab0 cor0
----
-58
-63
-69

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT - col0 * col2 * + col1 - + col1 AS col2 FROM tab2 WHERE NULL <= + col2 * - col1
----

query I rowsort
SELECT ALL tab2.col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-608
SELECT cor0.col1 DIV + col1 + col2 AS col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-608
SELECT cor0.col1 / + col1 + col2 AS col2 FROM tab2 AS cor0
----
27
28
39

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col1 + col1 * + cor0.col0 + col2 * cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
12707
246046
687050

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-616
SELECT + cor0.col1 * col1 / col1 AS col1 FROM tab2 AS cor0
----
17
31
59

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-619
SELECT col0 DIV cor0.col0 + + cor0.col0 * col0 - col0 AS col2 FROM tab2 AS cor0
----
43
6007
6163

skipif mysql # not compatible
query I rowsort label-619
SELECT col0 / cor0.col0 + + cor0.col0 * col0 - col0 AS col2 FROM tab2 AS cor0
----
43
6007
6163

query I rowsort
SELECT - col1 + - col1 - col0 FROM tab0 AS cor0
----
-196
-229
-271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col0 * - cor0.col2 col0 FROM tab2 AS cor0
----
-182
-1950
-2923

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + + col2 + col2 col1 FROM tab2 AS cor0
----
-213
-3429
-907

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT - col1 * col0 DIV - col1 AS col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-626
SELECT - col1 * col0 / - col1 AS col0 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - col2 * col1 - + tab0.col1 * tab0.col2 AS col2 FROM tab0
----
-14924
-194
-5676

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

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

query I rowsort
SELECT ALL cor1.col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT + col1 * col1 + - col1 * ( col0 ) FROM tab1 AS cor0
----
-540
-871
598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

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

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

query I rowsort
SELECT ( cor1.col2 ) * + cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 421c686606be6ea267ac0dc7521bf659

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-637
SELECT - col2 + - col1 * + CAST ( col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

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

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

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

query I rowsort
SELECT + - col0 * 67 AS col1 FROM tab2 AS cor0
----
-469
-5226
-5293

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

query I rowsort
SELECT DISTINCT - col0 * + col0 * 21 AS col0 FROM tab0
----
-12096
-166341
-25725

query I rowsort
SELECT ALL col1 * - tab1.col1 * 95 FROM tab1
----
-16055
-64220
-9500

onlyif mysql # use DIV operator for integer division
query I rowsort label-644
SELECT ALL tab0.col0 DIV 63 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-644
SELECT ALL tab0.col0 / 63 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

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

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

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

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

query I rowsort
SELECT col1 * - 35 + + 24 * col0 + col0 * col0 AS col1 FROM tab2 cor0
----
-868
5891
7542

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

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

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

query I rowsort
SELECT DISTINCT col1 + col1 + 74 * + col2 FROM tab0
----
2614
268
6250

query I rowsort
SELECT 19 AS col0 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823

onlyif mysql # use DIV operator for integer division
query I rowsort label-652
SELECT + tab2.col2 - - col0 DIV + col0 AS col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-652
SELECT + tab2.col2 - - col0 / + col0 AS col1 FROM tab2
----
27
28
39

query I rowsort
SELECT - col1 + + col2 * - 72 FROM tab0
----
-169
-2462
-5995

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

query I rowsort
SELECT ALL ( 65 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-656
SELECT + cor0.col2 DIV - 29 + + cor0.col2 * - col0 + - CAST( col2 * + col0 AS SIGNED ) FROM tab0 cor0
----
-14598
-1585
-70

skipif mysql # not compatible
query I rowsort label-656
SELECT + cor0.col2 / - 29 + + cor0.col2 * - col0 + - CAST ( col2 * + col0 AS INTEGER ) FROM tab0 cor0
----
-14598
-1585
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 99 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT - col2 + 3 * 18 AS col0 FROM tab0
----
-28
21
53

query I rowsort
SELECT - col2 * + col2 + - col2 * col0 AS col2 FROM tab2
----
-2704
-4446
-918

query I rowsort
SELECT ALL col0 * col1 + + 43 * col0 * tab0.col1 FROM tab0
----
149380
356356
90816

query I rowsort
SELECT DISTINCT ( + 17 ) AS col2 FROM tab1, tab2 AS cor0
----
17

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-664
SELECT - col2 * col2 DIV CAST( col0 AS SIGNED ) - col2 FROM tab1 AS cor0
----
-1026
-107
-211

skipif mysql # not compatible
query I rowsort label-664
SELECT - col2 * col2 / CAST ( col0 AS INTEGER ) - col2 FROM tab1 AS cor0
----
-1026
-107
-211

query I rowsort
SELECT DISTINCT - 23 * col1 + + 4 FROM tab2 AS cor0
----
-1353
-387
-709

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * col2 * - 47 col2 FROM tab1 cor0
----
-149742
-158061
-266208

query I rowsort
SELECT DISTINCT - 17 * col2 * - 18 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
15120
16872
28128

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

query I rowsort
SELECT ALL 17 - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1427
-659
-712

query I rowsort
SELECT col0 * col1 + col0 * ( col1 ) FROM tab1 AS cor0
----
1280
156
2080

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

query I rowsort
SELECT ALL ( - 34 ) * col0 FROM tab0
----
-1190
-3026
-816

query I rowsort
SELECT ALL + 93 * col2 FROM tab1
----
5022
5301
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-675
SELECT col2 DIV - tab2.col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-675
SELECT col2 / - tab2.col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT ALL - col1 * col0 + + col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT 67 - + col1 * - tab0.col2 AS col2 FROM tab0
----
164
2905
7529

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 * col0 * ( 90 * + col1 ) + + col2 col0 FROM tab2 AS cor0
----
18638126
5439188
878877

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

query I rowsort
SELECT DISTINCT - 63 + + col2 FROM tab1 AS cor0
----
-6
-9
33

query I rowsort
SELECT + - col2 * col0 - - 37 * - 97 FROM tab2 AS cor0
----
-3778
-5617
-6591

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

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

query I rowsort
SELECT DISTINCT col1 + + 24 FROM tab2
----
41
55
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 35 + + col1 col2 FROM tab0
----
3096
3276
3492

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

query I rowsort
SELECT ( - 54 ) AS col2 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT ( col1 ) + tab0.col2 * - 30 AS col0 FROM tab0
----
-2369
-904
67

query I rowsort
SELECT ALL + + 56 + - 85 AS col0 FROM tab0 AS cor0
----
-29
-29
-29

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

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

query I rowsort
SELECT 68 + col1 FROM tab0 AS cor0
----
154
159
165

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

query I rowsort
SELECT + - col0 * 69 + - col2 FROM tab1 AS cor0
----
-261
-4473
-5616

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

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

skipif mysql # not compatible
query I rowsort label-700
SELECT col0 * col1 + - col0 / + 73 FROM tab1 AS cor0
----
1039
640
78

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

query I rowsort
SELECT 79 + + col0 AS col2 FROM tab1 cor0
----
143
159
82

query I rowsort
SELECT DISTINCT col1 * - col1 + col1 + 23 AS col1 FROM tab1 AS cor0
----
-133
-627
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT ALL - + col2 * col1 DIV col0 - + cor0.col0 FROM tab2 AS cor0
----
-126
-87
-97

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - + col2 * col1 / col0 - + cor0.col0 FROM tab2 AS cor0
----
-126
-87
-97

query I rowsort
SELECT + - ( - col0 ) * 63 * - col1 FROM tab2 AS cor0
----
-13671
-289926
-84609

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-709
SELECT + cor0.col0 * col0 DIV 79 FROM tab2 AS cor0
----
0
77
79

skipif mysql # not compatible
query I rowsort label-709
SELECT + cor0.col0 * col0 / 79 FROM tab2 AS cor0
----
0
77
79

query I rowsort
SELECT + 40 + + tab0.col0 FROM tab0
----
129
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col0 - - col1 col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT 29 * ( - tab1.col2 ) FROM tab1
----
-1566
-1653
-2784

query I rowsort
SELECT 62 * - 61 + + col0 FROM tab1
----
-3702
-3718
-3779

query I rowsort
SELECT 91 * col2 + - col0 + col2 FROM tab0
----
3012
57
7455

query I rowsort
SELECT ALL col0 * + col1 + 45 * - col0 * col2 AS col1 FROM tab1 cor0
----
-163520
-344560
-7212

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

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

query I rowsort
SELECT DISTINCT col0 * + col2 + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
203
2184
3160

query I rowsort
SELECT - col2 + + 7 FROM tab1 AS cor0
----
-47
-50
-89

query I rowsort
SELECT DISTINCT + col2 * - col2 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT - + col2 * col2 - + col2 * - col2 * + ( col0 ) FROM tab0 AS cor0
----
25047
34
591712

query I rowsort
SELECT ALL + col0 + col1 + col1 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + col2 * col2 + tab0.col1 AS col1 FROM tab0
----
1175
6815
98

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

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - - col1 / cor0.col0 + + col1 FROM tab1 cor0
----
10
13
34

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

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

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

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

query I rowsort
SELECT - col0 * - col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

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

query I rowsort
SELECT col2 * 17 + + tab2.col1 AS col1 FROM tab2
----
490
501
663

query I rowsort
SELECT ALL - 2 FROM tab2, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL + col1 * ( col2 ) * col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab2, tab0 AS cor0
----
20

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

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

query I rowsort
SELECT ALL + 97 * col1 - col2 AS col0 FROM tab2 AS cor0
----
1611
2980
5697

query I rowsort
SELECT - 38 + - 81 AS col1 FROM tab1 cor0
----
-119
-119
-119

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

skipif mysql # not compatible
query I rowsort label-739
SELECT DISTINCT - - 35 / + col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + 26 + 87 AS col1 FROM tab0 AS cor0
----
113
113
113

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

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

query I rowsort
SELECT - 24 * + 3 + + col1 - col1 FROM tab1 AS cor0
----
-72
-72
-72

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

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

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

query I rowsort
SELECT + col2 * - col0 * - 48 + col2 FROM tab2
----
144134
9099
97370

query I rowsort
SELECT 42 * - col1 FROM tab1
----
-1092
-420
-546

query I rowsort
SELECT + cor0.col2 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT + 4 + col0 AS col1 FROM tab1 AS cor0
----
68
7
84

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

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

query I rowsort
SELECT ALL + 36 + col0 FROM tab0 AS cor0
----
125
60
71

query I rowsort
SELECT DISTINCT - cor0.col1 - 39 AS col0 FROM tab2 AS cor0
----
-56
-70
-98

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

query I rowsort
SELECT DISTINCT col1 * + col2 - - col2 * cor0.col1 * + col1 AS col1 FROM tab1 cor0
----
17472
37908
6270

query I rowsort
SELECT + 22 * - tab1.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c50acf657e6b2f398a8bde470b1ce1aa

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

query I rowsort
SELECT + col2 * + 5 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT DISTINCT ( 12 ) AS col1 FROM tab2
----
12

query I rowsort
SELECT - 21 + - col2 AS col2 FROM tab1 AS cor0
----
-117
-75
-78

query I rowsort
SELECT col0 * col0 + - col1 * - col0 FROM tab1
----
4736
7440
87

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

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

query I rowsort
SELECT ALL 73 + col1 AS col1 FROM tab0
----
159
164
170

query I rowsort
SELECT DISTINCT + + 2 FROM tab2, tab1, tab0 cor0
----
2

query I rowsort
SELECT - 5 * - cor0.col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT - 85 * 43 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 992086320f934ff7c36626d7f9ad7752

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

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

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

query I rowsort
SELECT ALL - col0 * ( 68 ) * + col0 AS col2 FROM tab0
----
-39168
-538628
-83300

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-770
SELECT + ( 86 ) + + col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-770
SELECT + ( 86 ) + + col1 / cor0.col1 AS col1 FROM tab2 AS cor0
----
87
87
87

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

query I rowsort
SELECT col1 + - col2 + col1 FROM tab0 AS cor0
----
100
139
193

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

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

query I rowsort
SELECT - col2 * - 83 + col2 FROM tab2 AS cor0
----
2184
2268
3192

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

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

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

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

skipif mysql # not compatible
query I rowsort label-777
SELECT col0 + CAST ( - col1 AS INTEGER ) FROM tab0
----
-2
-62
-62

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

query I rowsort
SELECT DISTINCT - 28 + + col2 * col0 FROM tab1
----
134
3620
7652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 4 - + col1 col1 FROM tab2
----
-3
253
299

query I rowsort
SELECT ALL - col0 * + 95 + col2 FROM tab0 AS cor0
----
-2247
-3324
-8373

query I rowsort
SELECT ALL 44 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # use DIV operator for integer division
query I rowsort label-783
SELECT col2 DIV ( 2 ) FROM tab2
----
13
13
19

skipif mysql # not compatible
query I rowsort label-783
SELECT col2 / ( 2 ) FROM tab2
----
13
13
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT - + col0 DIV + col0 + + col0 + col1 * col2 FROM tab0 AS cor0
----
131
2861
7550

skipif mysql # not compatible
query I rowsort label-784
SELECT - + col0 / + col0 + + col0 + col1 * col2 FROM tab0 AS cor0
----
131
2861
7550

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

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

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

query I rowsort
SELECT ALL ( - 51 ) + col2 * - col0 AS col1 FROM tab0 cor0
----
-7349
-843
-86

query I rowsort
SELECT - - ( - col1 ) + - col1 FROM tab2 cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-789
SELECT ALL + 17 DIV col0 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-38

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL + 17 / col0 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col0 + col0 col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT + 48 + + cor0.col0 FROM tab1 AS cor0
----
112
128
51

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

query I rowsort
SELECT - 28 * - col0 AS col2 FROM tab0 AS cor0
----
2492
672
980

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

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

query I rowsort
SELECT DISTINCT + 37 * - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-1295
-270026
-29304

query I rowsort
SELECT col2 + col0 * + col2 FROM tab0 AS cor0
----
36
7380
825

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

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

query I rowsort
SELECT - col0 * col0 - - col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT 9 + col1 + col2 AS col2 FROM tab1
----
118
76
89

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

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

query I rowsort
SELECT ALL ( col2 * col2 ) FROM tab0
----
1
1089
6724

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

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

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

query I rowsort
SELECT + - col2 + - 69 AS col1 FROM tab2 AS cor0
----
-107
-95
-96

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col1 + col2 * col2 FROM tab1 cor0
----
2609
2838
8176

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

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

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

query I rowsort
SELECT + 59 FROM tab1
----
59
59
59

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

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

query I rowsort
SELECT + col2 + + 85 FROM tab1
----
139
142
181

query I rowsort
SELECT col1 * - col1 * 46 - + col1 * ( 81 ) * tab1.col2 FROM tab1
----
-108862
-144820
-50770

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

query I rowsort
SELECT ALL 62 - + col2 AS col0 FROM tab1
----
-34
5
8

query I rowsort
SELECT ALL - 78 * col2 AS col0 FROM tab1 AS cor0
----
-4212
-4446
-7488

query I rowsort
SELECT + 66 * col0 + col1 AS col0 FROM tab0 AS cor0
----
1670
2407
5965

query I rowsort
SELECT DISTINCT + 32 * - col2 FROM tab2 AS cor0
----
-1216
-832
-864

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

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

query I rowsort
SELECT ALL + + col1 * col1 + 30 - - col2 AS col0 FROM tab1 AS cor0
----
187
295
760

query I rowsort
SELECT - col1 * - col2 * - 6 + - col1 FROM tab0 cor0
----
-17114
-44863
-679

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-824
SELECT col0 DIV 43 + 73 * cor0.col2 AS col1 FROM tab1 AS cor0
----
3942
4162
7009

skipif mysql # not compatible
query I rowsort label-824
SELECT col0 / 43 + 73 * cor0.col2 AS col1 FROM tab1 AS cor0
----
3942
4162
7009

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

query I rowsort
SELECT ALL - col2 + + 4 * col2 FROM tab0 AS cor0
----
246
3
99

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

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

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

query I rowsort
SELECT col1 + + ( 66 ) FROM tab0 AS cor0
----
152
157
163

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

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL + 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-831
SELECT - col2 DIV col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-831
SELECT - col2 / col0 FROM tab1 cor0
----
-1
-18
0

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

query I rowsort
SELECT - col2 * col0 + - col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT + ( 3 ) + col2 FROM tab2 AS cor0
----
29
30
41

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

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

query I rowsort
SELECT + ( 26 ) * + col1 * 82 FROM tab2 AS cor0
----
125788
36244
66092

query I rowsort
SELECT - 60 + - col0 * + col1 + 85 AS col2 FROM tab1 AS cor0
----
-1015
-53
-615

query I rowsort
SELECT DISTINCT + 6 * + 17 AS col2 FROM tab2 cor0
----
102

query I rowsort
SELECT - + 56 * - col1 FROM tab0 AS cor0
----
4816
5096
5432

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-843
SELECT DISTINCT + - col2 + + 10 * + col1 + + CAST( ( - col2 ) AS SIGNED ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2011
-6634
872

skipif mysql # not compatible
query I rowsort label-843
SELECT DISTINCT + - col2 + + 10 * + col1 + + CAST ( ( - col2 ) AS INTEGER ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2011
-6634
872

query I rowsort
SELECT col2 + 28 FROM tab0 AS cor0
----
110
29
61

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

query I rowsort
SELECT DISTINCT + col0 + 60 AS col1 FROM tab2 AS cor0
----
138
139
67

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

query I rowsort
SELECT ALL - 78 FROM tab1 cor0
----
-78
-78
-78

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

query I rowsort
SELECT 84 * col1 FROM tab2 AS cor0
----
1428
2604
4956

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

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

query I rowsort
SELECT DISTINCT cor0.col1 * - 64 AS col0 FROM tab1, tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT DISTINCT - 88 AS col1 FROM tab1 AS cor0
----
-88

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

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

query I rowsort
SELECT DISTINCT + - col1 * col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

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

query I rowsort
SELECT cor0.col0 - - ( + cor0.col1 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + - 24 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1485
-1558
-2158

query I rowsort
SELECT col0 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT 18 FROM tab2 cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-862
SELECT ALL + + col1 DIV - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL + + col1 / - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT - 16 * col0 + - 6 AS col0 FROM tab2 AS cor0
----
-118
-1254
-1270

query I rowsort
SELECT ( + col1 ) - col0 * + ( + col2 + - col1 ) AS col0 FROM tab2
----
-1642
2633
59

query I rowsort
SELECT + 18 + col1 AS col0 FROM tab0 AS cor0
----
104
109
115

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

query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 + - col1 * col2 * 83 - col0 * col0 * ( col2 ) AS col2 FROM tab2 cor0
----
-283478
-287774
-70605

query I rowsort
SELECT ALL + col2 + - col1 * tab2.col2 * - col1 FROM tab2
----
11020
25974
90532

query I rowsort
SELECT col0 * - 96 + + col2 * + tab2.col0 * ( col1 ) FROM tab2
----
112164
43450
5187

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-871
SELECT - cor0.col2 * col1 + + col2 / CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 27 * - 1 FROM tab2 AS cor0
----
-27

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

query I rowsort
SELECT ALL + col0 + 41 FROM tab2 AS cor0
----
119
120
48

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

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

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

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

query I rowsort
SELECT + 57 + 87 * col2 AS col2 FROM tab2 AS cor0
----
2319
2406
3363

query I rowsort
SELECT ALL col2 * col1 + + col2 AS col0 FROM tab0 cor0
----
2871
7544
98

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT ALL col2 + + col0 DIV col0 + + col0 DIV col1 AS col0 FROM tab2
----
28
28
43

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL col2 + + col0 / col0 + + col0 / col1 AS col0 FROM tab2
----
28
28
43

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

query I rowsort
SELECT ALL - col2 + col1 + - col2 AS col2 FROM tab2
----
-23
-59
7

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

query I rowsort
SELECT + tab0.col2 + + col1 FROM tab0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL col1 * + col1 * col1 AS col2 FROM tab2
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col1 FROM tab0
----
1225
576
7921

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

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL >= NULL
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-892
SELECT col2 DIV + tab1.col2 + - col1 * - col1 * col1 AS col2 FROM tab1
----
1001
17577
2198

skipif mysql # not compatible
query I rowsort label-892
SELECT col2 / + tab1.col2 + - col1 * - col1 * col1 AS col2 FROM tab1
----
1001
17577
2198

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - col2 + - col2 * col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-894
SELECT ALL col1 + col2 DIV tab1.col0 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL col1 + col2 / tab1.col0 FROM tab1
----
10
14
44

query I rowsort
SELECT ALL col2 * col0 + tab1.col1 * col1 AS col1 FROM tab1
----
3748
7849
838

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-898
SELECT DISTINCT + col1 DIV + col0 FROM tab0 WHERE NOT ( - col0 DIV - col2 ) IN ( + col2 )
----
1
2
3

skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT + col1 / + col0 FROM tab0 WHERE NOT ( - col0 / - col2 ) IN ( + col2 )
----
1
2
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 col0 FROM tab2 WHERE NOT ( NULL ) >= - col2
----

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

query I rowsort
SELECT + col0 * col2 * col1 + - col0 * + tab2.col1 - col0 AS col2 FROM tab2
----
114972
49612
5635

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

query I rowsort
SELECT col1 + - col0 * col1 FROM tab1 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 * tab1.col2 + - col1 * col1 FROM tab1
----
2240
3149
9047

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

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

query I rowsort
SELECT col1 + - col0 + - col0 FROM tab2
----
-141
-97
17

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * col2 + col2 > ( + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col2 + - col2 * col1 + + col0 * col0 ) IN ( + col0 + - tab0.col0 + col2 * col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL tab0.col2 * - tab0.col2 * col0 + col0 + - col2 * col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT col2 * col2 * col2 FROM tab0
----
1
35937
551368

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col0 * col2 + + col0 + tab2.col1 AS col0 FROM tab2
----
2165
227
3098

onlyif mysql # use DIV operator for integer division
query I rowsort label-917
SELECT ALL - col2 * col0 + col2 DIV + col0 AS col2 FROM tab1
----
-144
-3648
-7679

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL - col2 * col0 + col2 / + col0 AS col2 FROM tab1
----
-144
-3648
-7679

query I rowsort
SELECT + col1 / + col1 AS col1 FROM tab2 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - col0 + + col0 * + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

query I rowsort
SELECT tab0.col2 * col2 + col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL - col0 + + col0 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1 / col0 )
----

query I rowsort
SELECT - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-925
SELECT col1 DIV - col2 - col0 AS col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-925
SELECT col1 / - col2 - col0 AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + - col2 * col1 + 62 AS col0 FROM tab0 cor0
----
-2776
-35
-7400

query I rowsort
SELECT col0 + 64 FROM tab0 AS cor0
----
153
88
99

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT ALL - + ( 45 ) DIV + col0 + - ( + col1 ) * - col2 FROM tab1 AS cor0
----
1248
1389
570

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - + ( 45 ) / + col0 + - ( + col1 ) * - col2 FROM tab1 AS cor0
----
1248
1389
570

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-932
SELECT - 55 DIV tab2.col0 FROM tab2
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-932
SELECT - 55 / tab2.col0 FROM tab2
----
-7
0
0

query I rowsort
SELECT DISTINCT col0 * - 33 * col2 + ( - col1 ) AS col1 FROM tab0
----
-1252
-240925
-26222

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

query I rowsort
SELECT ALL + 83 * - cor0.col2 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to f8f167f79df49c943c9e3938e12de291

query I rowsort
SELECT ALL + 97 AS col0 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT ALL - col2 + 67 * cor0.col1 FROM tab0 AS cor0
----
5729
6015
6498

query I rowsort
SELECT ALL + col1 * + col0 * col1 + - 51 AS col1 FROM tab2 AS cor0
----
22780
271467
6676

query I rowsort
SELECT 24 * - ( - cor0.col1 ) - col2 * 36 * - col2 FROM tab2 AS cor0
----
25752
26988
52392

query I rowsort
SELECT ALL + col1 + 13 * + col0 FROM tab1 AS cor0
----
1053
65
842

query I rowsort
SELECT DISTINCT - + col0 + + 14 FROM tab2 AS cor0
----
-64
-65
7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-943
SELECT DISTINCT + 62 + - col1 * - col2 + tab0.col0 * col0 DIV - 23 FROM tab0
----
106
2875
7180

skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT + 62 + - col1 * - col2 + tab0.col0 * col0 / - 23 FROM tab0
----
106
2875
7180

query I rowsort
SELECT ALL - 83 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + 32 col1 FROM tab0 AS cor0
----
2096
3427
8131

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * + 92 FROM tab2 AS cor0
----
1581
2883
5487

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 72 col0 FROM tab2 AS cor0
----
-1872
-1944
-2736

query I rowsort
SELECT DISTINCT col1 * col0 + col1 - - col1 AS col2 FROM tab2 AS cor0
----
1377
279
4720

query I rowsort
SELECT DISTINCT col0 + 47 * + 10 + col1 FROM tab1 AS cor0
----
499
544
563

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL 15 * col2 FROM tab1
----
1440
810
855

query I rowsort
SELECT ( col1 * + 13 ) FROM tab1
----
130
169
338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 * + 42 col2 FROM tab0 cor0
----
3318
3318
3318

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

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

query I rowsort
SELECT DISTINCT col1 * - 9 AS col0 FROM tab2
----
-153
-279
-531

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 - + col2 * + col1 col1 FROM tab2
----
-1567
-625
-841

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + col1 * col2 + tab1.col1 col2 FROM tab1
----
1220
1508
2301

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

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

query I rowsort
SELECT ALL ( - 61 ) AS col0 FROM tab0 AS cor0
----
-61
-61
-61

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-967
SELECT col2 * col0 + - col0 DIV col2 FROM tab0
----
0
7297
792

skipif mysql # not compatible
query I rowsort label-967
SELECT col2 * col0 + - col0 / col2 FROM tab0
----
0
7297
792

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

query I rowsort
SELECT ALL cor0.col0 * - 79 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to e03b0755ee3b20784a36adc02389b791

query I rowsort
SELECT ALL col0 + - col2 * 2 FROM tab1
----
-105
-112
-50

query I rowsort
SELECT - 5 + col2 FROM tab0
----
-4
28
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-972
SELECT col0 + + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-972
SELECT col0 + + col1 / - col0 AS col2 FROM tab2 AS cor0
----
3
78
79

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

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

query I rowsort
SELECT ALL - col0 * col0 * col0 + - 2 * col0 FROM tab2
----
-357
-474708
-493197

query I rowsort
SELECT + col2 + col1 + + ( col0 ) AS col0 FROM tab2
----
134
163
65

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 98 col0 FROM tab2 AS cor0
----
60
71
72

query I rowsort
SELECT DISTINCT + + col2 + - 48 AS col0 FROM tab2 AS cor0
----
-10
-21
-22

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

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

query I rowsort
SELECT ALL + + col2 + + 86 AS col2 FROM tab0 AS cor0
----
119
168
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-986
SELECT - cor0.col2 * 44 DIV + col0 + cor0.col0 FROM tab1 AS cor0
----
-789
25
28

skipif mysql # not compatible
query I rowsort label-986
SELECT - cor0.col2 * 44 / + col0 + cor0.col0 FROM tab1 AS cor0
----
-789
25
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-987
SELECT ALL - col0 * - col1 + 51 DIV + col0 AS col1 FROM tab0 AS cor0
----
2066
3396
8099

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - col0 * - col1 + 51 / + col0 AS col1 FROM tab0 AS cor0
----
2066
3396
8099

query I rowsort
SELECT ALL + + cor0.col2 - + col1 * - 43 FROM tab2 cor0
----
1360
2563
769

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

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

query I rowsort
SELECT - col2 * + col0 + col0 * col1 FROM tab1 AS cor0
----
-3008
-6640
-84

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

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

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

query I rowsort
SELECT ALL + col1 * tab2.col1 FROM tab2
----
289
3481
961

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

query I rowsort
SELECT + col2 + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
36
7380
825

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * col2 + - col0 col2 FROM tab0 AS cor0
----
1857
22
4585

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

query I rowsort
SELECT - + ( + col0 ) * - col0 + col0 * + col2 * col1 - col1 FROM tab2 AS cor0
----
125677
57258
5877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 + + col1 col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + ( col0 ) + col1 * col0 * + col2 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

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

query I rowsort
SELECT col0 + col1 * - col1 - col1 AS col0 FROM tab2 AS cor0
----
-227
-3462
-985

query I rowsort
SELECT ALL + + 84 FROM tab1 AS cor0
----
84
84
84

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

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

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

query I rowsort
SELECT + + 28 * col0 + col0 AS col2 FROM tab1 AS cor0
----
1856
2320
87

query I rowsort
SELECT + col1 * col2 + + col1 FROM tab2 AS cor0
----
1593
663
868

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

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

query I rowsort
SELECT ( - col1 ) + cor0.col2 * 91 FROM tab0 AS cor0
----
-6
2917
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-1021
SELECT - + 55 + + col0 DIV - col0 FROM tab1 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-1021
SELECT - + 55 + + col0 / - col0 FROM tab1 AS cor0
----
-56
-56
-56

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT col2 DIV - col1 AS col0 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1023
SELECT col2 / - col1 AS col0 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT + 50 * + col2 AS col2 FROM tab0 AS cor0
----
1650
4100
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-1025
SELECT + col0 * ( col1 ) + - col2 DIV cor0.col0 - - cor0.col1 FROM tab0 AS cor0
----
2149
3492
8190

skipif mysql # not compatible
query I rowsort label-1025
SELECT + col0 * ( col1 ) + - col2 / cor0.col0 - - cor0.col1 FROM tab0 AS cor0
----
2149
3492
8190

query I rowsort
SELECT + col2 + 3 FROM tab1 AS cor0
----
57
60
99

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * + col1 + cor0.col1 * col2 col1 FROM tab2 AS cor0
----
2074
3441
6490

query I rowsort
SELECT DISTINCT - 67 - tab0.col1 FROM tab0, tab1 AS cor0
----
-153
-158
-164

query I rowsort
SELECT ALL col2 * 33 AS col1 FROM tab0
----
1089
2706
33

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

query I rowsort
SELECT ALL ( col1 ) * + 24 + col1 AS col0 FROM tab0 AS cor0
----
2150
2275
2425

query I rowsort
SELECT - 26 FROM tab1, tab1 cor0
----
9 values hashing to 47d0574274146de273829785364ada39

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

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

query I rowsort
SELECT DISTINCT - col1 + col1 * 85 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT col0 + + col1 * - col1 FROM tab2 AS cor0
----
-210
-3403
-954

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

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

query I rowsort
SELECT col1 + - tab2.col2 * 62 FROM tab2
----
-1553
-1643
-2339

query I rowsort
SELECT DISTINCT - col0 * col0 - col2 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 * - col2 col2 FROM tab2 AS cor0
----
-1406
-650
-702

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1047
SELECT col2 + col0 - + tab0.col0 / - col2 col2 FROM tab0
----
172
57
71

query I rowsort
SELECT ALL col1 + col2 - col1 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT col1 + col0 * 21 + + col1 AS col0 FROM tab1 AS cor0
----
115
1364
1706

query I rowsort
SELECT - col1 + col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
2011
3299
8090

query I rowsort
SELECT - col0 * + col2 + col1 + col0 * - col0 FROM tab2 AS cor0
----
-207
-8053
-9226

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

query I rowsort
SELECT DISTINCT + col1 + tab2.col0 * - col2 + - col0 AS col2 FROM tab2
----
-165
-2047
-3064

query I rowsort
SELECT - tab0.col0 + 28 * + col2 + col2 FROM tab0
----
-6
2289
933

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

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

query I rowsort
SELECT DISTINCT col2 + - col1 * - col1 FROM tab2
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-1058
SELECT + col2 DIV - col2 + col2 * - ( 78 ) * + col2 AS col0 FROM tab1 AS cor0
----
-227449
-253423
-718849

skipif mysql # not compatible
query I rowsort label-1058
SELECT + col2 / - col2 + col2 * - ( 78 ) * + col2 AS col0 FROM tab1 AS cor0
----
-227449
-253423
-718849

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

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

query I rowsort
SELECT - col2 + + cor0.col1 + + col0 AS col2 FROM tab1 cor0
----
-25
-3
17

query I rowsort
SELECT ALL - 70 * + col1 FROM tab2 AS cor0
----
-1190
-2170
-4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 + col0 col2 FROM tab0 cor0
----
-36
-47
18

query I rowsort
SELECT ALL cor0.col2 * + 78 AS col0 FROM tab1 AS cor0
----
4212
4446
7488

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

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

query I rowsort
SELECT + col0 + cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
-1365
-598
-722

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

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

query I rowsort
SELECT 48 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

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

query I rowsort
SELECT + 83 + cor1.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d12bcff94fc5147b99010f6beea202c3

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1072
SELECT DISTINCT + + col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT + + col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT 18 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT - col0 + ( - 17 ) FROM tab0 cor0
----
-106
-41
-52

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + col0 * col0 FROM tab1 AS cor0
----
12800
18
8192

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

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

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

query I rowsort
SELECT 49 + 76 FROM tab1 AS cor0
----
125
125
125

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

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

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

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

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

query I rowsort
SELECT DISTINCT 72 * - col2 + cor0.col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2133
-3900
-5738

query I rowsort
SELECT - 84 + - col1 FROM tab0 AS cor0
----
-170
-175
-181

onlyif mysql # use DIV operator for integer division
query I rowsort label-1086
SELECT DISTINCT + 68 DIV + col1 AS col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1086
SELECT DISTINCT + 68 / + col1 AS col1 FROM tab2 AS cor0
----
1
2
4

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1089
SELECT - col1 * + col2 + - ( - col0 ) DIV - cor0.col0 FROM tab2 cor0
----
-1535
-647
-838

skipif mysql # not compatible
query I rowsort label-1089
SELECT - col1 * + col2 + - ( - col0 ) / - cor0.col0 FROM tab2 cor0
----
-1535
-647
-838

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL - col1 / col0 + + col1 col2 FROM tab2 AS cor0
----
17
27
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1092
SELECT CAST ( NULL AS REAL ) + col2 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1093
SELECT ALL + col2 DIV - 88 + - tab2.col2 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL + col2 / - 88 + - tab2.col2 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1094
SELECT ALL ( + col1 ) - - col2 DIV ( col2 * + col2 ) FROM tab0
----
86
91
98

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL ( + col1 ) - - col2 / ( col2 * + col2 ) FROM tab0
----
86
91
98

query I rowsort
SELECT col2 + 12 * col1 * - 16 - + col1 FROM tab1
----
-1873
-2413
-4964

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

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

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

query I rowsort
SELECT ALL + 40 + + cor0.col0 * cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d2347374b6be475873617ba44498ed26

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

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

query I rowsort
SELECT + - col2 + - col2 * 93 AS col2 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT ALL + col1 * - col1 - - col0 * + 1 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT - 69 * - col0 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * + col1 AS col1 FROM tab2 cor0
----
306
3540
992

query I rowsort
SELECT - ( - col2 ) * + ( 68 ) + col1 + col0 FROM tab0 AS cor0
----
200
2354
5756

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT DISTINCT - 81 DIV col0 + + col0 AS col1 FROM tab2
----
-4
77
78

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - 81 / col0 + + col0 AS col1 FROM tab2
----
-4
77
78

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT DISTINCT col0 DIV - col1 + ( + col0 ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

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

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

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

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

query I rowsort
SELECT - tab2.col1 * tab2.col1 * - col2 AS col0 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT + 22 + - col1 * ( + col0 ) + tab2.col2 FROM tab2
----
-1283
-168
-4554

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

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

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

query I rowsort
SELECT ALL 67 * col1 * - 24 FROM tab0
----
-138288
-146328
-155976

query I rowsort
SELECT 23 + + cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 37c98825742b71ad13c751ec3b1a0ebb

query I rowsort
SELECT ALL + col2 + + col1 * col0 + col0 AS col0 FROM tab1 AS cor0
----
1216
135
761

query I rowsort
SELECT ALL - 84 FROM tab0, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 * - 24 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 4b1aec8986528614cad6dbc283d86860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( col2 ) + col1 col1 FROM tab2 AS cor0
----
1593
663
868

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

query I rowsort
SELECT + - col2 * 7 + - col1 FROM tab1 AS cor0
----
-404
-409
-685

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

skipif mysql # not compatible
query I rowsort label-1126
SELECT - + col1 / cor0.col0 + + col2 AS col2 FROM tab2 AS cor0
----
23
26
38

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

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

query I rowsort
SELECT DISTINCT + col0 + - col1 * col1 FROM tab0 cor0
----
-7372
-8192
-9374

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

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

query I rowsort
SELECT 83 * col2 FROM tab1 cor0
----
4482
4731
7968

query I rowsort
SELECT ALL + - 34 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-238
-2652
-2686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1134
SELECT ALL - CAST( - 18 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-180
-234
-468

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - CAST ( - 18 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-180
-234
-468

query I rowsort
SELECT ALL + 25 * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 4eb0abec54c1f4b900ce137796f96cee

query I rowsort
SELECT ALL - col0 + - col0 * ( col2 * + col1 ) FROM tab1 AS cor0
----
-36544
-4215
-99920

query I rowsort
SELECT ALL + cor0.col1 + + col0 + + col0 FROM tab0 AS cor0
----
134
167
269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1138
SELECT DISTINCT col2 * - col0 + CAST( + col1 * col1 AS SIGNED ) + col0 * - 10 AS col0 FROM tab2 AS cor0
----
-3503
673
702

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT col2 * - col0 + CAST ( + col1 * col1 AS INTEGER ) + col0 * - 10 AS col0 FROM tab2 AS cor0
----
-3503
673
702

query I rowsort
SELECT DISTINCT ( 72 ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1140
SELECT + - 64 DIV col1 + - ( col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-1140
SELECT + - 64 / col1 + - ( col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col1 FROM tab1 AS cor0
----
-109
-67
-80

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

query I rowsort
SELECT ( col2 ) - + col1 * 50 * col2 AS col1 FROM tab2 AS cor0
----
-32262
-41823
-76674

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

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

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

query I rowsort
SELECT DISTINCT col0 + 0 FROM tab1
----
3
64
80

query I rowsort
SELECT col1 * col0 - 81 AS col1 FROM tab0
----
1983
3314
8018

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + + ( col2 ) col0 FROM tab0
----
2
34
83

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

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

query I rowsort
SELECT ALL 92 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
33
61
75

query I rowsort
SELECT ALL 79 * cor0.col0 - + col2 FROM tab1 AS cor0
----
183
4999
6224

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

query I rowsort
SELECT ALL col0 + 25 AS col2 FROM tab0 AS cor0
----
114
49
60

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT + - col2 DIV col0 + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-1157
SELECT + - col2 / col0 + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT DISTINCT 21 + 39 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
60

query I rowsort
SELECT - cor0.col1 * - 44 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 62963a171dd365dedaed66ffecc9964e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col0 - ( - 9 + - cor0.col2 * col0 ) col0 FROM tab2 AS cor0
----
178
2089
3052

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

query I rowsort
SELECT + + col2 * col0 + ( col1 ) * - cor0.col1 + - ( - cor0.col0 ) * col1 FROM tab2 AS cor0
----
-555
3149
4056

query I rowsort
SELECT + cor0.col1 * + 50 FROM tab1 cor0
----
1300
500
650

query I rowsort
SELECT DISTINCT - col1 * 52 AS col0 FROM tab2 AS cor0
----
-1612
-3068
-884

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1166
SELECT ALL + + cor0.col0 DIV + 24 FROM tab1 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + + cor0.col0 / + 24 FROM tab1 AS cor0
----
0
2
3

query I rowsort
SELECT + - col1 + + 43 * + col2 AS col1 FROM tab0 AS cor0
----
-54
1333
3435

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

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

query I rowsort
SELECT ALL - col0 + 65 AS col1 FROM tab1 AS cor0
----
-15
1
62

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

query I rowsort
SELECT ALL col1 * + 58 + col0 * - col0 FROM tab2 AS cor0
----
-2662
-5255
1749

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

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

query I rowsort
SELECT + col1 * + 92 + col0 FROM tab2 AS cor0
----
1643
2859
5506

query I rowsort
SELECT DISTINCT - col1 * 49 AS col2 FROM tab2 AS cor0
----
-1519
-2891
-833

onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT ALL - col0 DIV + cor0.col0 + 70 * col0 FROM tab1 AS cor0
----
209
4479
5599

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL - col0 / + cor0.col0 + 70 * col0 FROM tab1 AS cor0
----
209
4479
5599

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

query I rowsort
SELECT ALL + col0 * ( col1 ) + col2 FROM tab1
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * + col2 col2 FROM tab2 cor0
----
1560
684
864

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT + 75 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT ALL + col0 + - 87 FROM tab1
----
-23
-7
-84

query I rowsort
SELECT + col2 * col1 + - col2 - + col2 FROM tab0 AS cor0
----
2772
7298
95

query I rowsort
SELECT DISTINCT + 41 + + col0 + col1 AS col2 FROM tab1 AS cor0
----
115
134
70

query I rowsort
SELECT DISTINCT + 71 + - col0 FROM tab0 AS cor0
----
-18
36
47

query I rowsort
SELECT - 57 + col1 FROM tab1 AS cor0
----
-31
-44
-47

query I rowsort
SELECT ALL col1 * + col1 + col2 AS col2 FROM tab1 cor0
----
157
265
730

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

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

query I rowsort
SELECT + 60 - col2 AS col1 FROM tab1
----
-36
3
6

query I rowsort
SELECT ALL ( tab1.col2 * 13 ) AS col1 FROM tab1
----
1248
702
741

onlyif mysql # use DIV operator for integer division
query I rowsort label-1192
SELECT ALL - 24 DIV col0 - col1 * + col0 AS col2 FROM tab2
----
-1343
-220
-4602

skipif mysql # not compatible
query I rowsort label-1192
SELECT ALL - 24 / col0 - col1 * + col0 AS col2 FROM tab2
----
-1343
-220
-4602

query I rowsort
SELECT + ( col0 + + ( + col0 ) * col0 ) AS col2 FROM tab0
----
1260
600
8010

query I rowsort
SELECT - cor0.col0 * tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6e956995b57dab53690e9e5feefd0b3a

query I rowsort
SELECT + col0 + + col1 + - 1 FROM tab1
----
28
73
92

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

query I rowsort
SELECT DISTINCT + 28 + + cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
108
31
92

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

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

skipif mysql # not compatible
query I rowsort label-1199
SELECT col2 * + col1 + CAST ( NULL AS REAL ) + + 77 * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 0 * + col0 + tab0.col2 AS col0 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 19 ) + + col1 * col1 col2 FROM tab0
----
7415
8300
9428

query I rowsort
SELECT 38 * - col2 * - col2 - + col0 AS col2 FROM tab2 AS cor0
----
25610
27695
54793

query I rowsort
SELECT ALL - + 70 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT - + 60 + + col1 * cor0.col0 * 77 + - col2 * col0 FROM tab0 AS cor0
----
158076
261320
616265

query I rowsort
SELECT + col0 + col1 + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
6221
6337
87

query I rowsort
SELECT DISTINCT - 49 * col0 FROM tab0 AS cor0
----
-1176
-1715
-4361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * col1 col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ( col2 ) * - tab2.col2 * col2 FROM tab2
----
-17576
-19683
-54872

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1210
SELECT + 66 + + col0 DIV + col2 + ( + 65 ) * col2 FROM tab0 AS cor0
----
166
2211
5397

skipif mysql # not compatible
query I rowsort label-1210
SELECT + 66 + + col0 / + col2 + ( + 65 ) * col2 FROM tab0 AS cor0
----
166
2211
5397

query I rowsort
SELECT ALL 97 * + col2 * col1 FROM tab2 cor0
----
148798
62662
81189

query I rowsort
SELECT DISTINCT - 40 + col1 AS col2 FROM tab0 AS cor0
----
46
51
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 + + col0 col2 FROM tab2 AS cor0
----
162
163
91

query I rowsort
SELECT ALL + 16 * col2 - col2 * + 4 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT DISTINCT - - col0 + col0 * - 31 AS col1 FROM tab0 AS cor0
----
-1050
-2670
-720

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

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

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

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

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL col0 * + 98 * + 82 AS col0 FROM tab2 AS cor0
----
56252
626808
634844

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 41 col0 FROM tab1 AS cor0
----
-2214
-2337
-3936

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

query I rowsort
SELECT ALL - 49 FROM tab2, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT col0 + 65 AS col0 FROM tab2
----
143
144
72

query I rowsort
SELECT ALL - 85 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ( 83 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT - col2 * - 45 AS col1 FROM tab0
----
1485
3690
45

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

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

query I rowsort
SELECT - cor0.col0 * 32 AS col2 FROM tab1 AS cor0
----
-2048
-2560
-96

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1233
SELECT - cor0.col0 * col0 + col1 * CAST( + 65 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-1917
5038
5115

skipif mysql # not compatible
query I rowsort label-1233
SELECT - cor0.col0 * col0 + col1 * CAST ( + 65 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-1917
5038
5115

query I rowsort
SELECT ALL - + 51 AS col0 FROM tab2 AS cor0
----
-51
-51
-51

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

query I rowsort
SELECT col0 * + 43 - col1 * 45 AS col2 FROM tab0 cor0
----
-268
-2838
-2860

query I rowsort
SELECT ( col0 ) * col2 * col0 + cor0.col0 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT + col1 + 84 FROM tab2 AS cor0
----
101
115
143

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

skipif mysql # not compatible
query I rowsort label-1239
SELECT - col1 * CAST ( col0 AS INTEGER ) + - col0 FROM tab1
----
-1120
-704
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1240
SELECT ALL col2 DIV col2 + col2 * - col2 * - tab0.col1 col0 FROM tab0
----
611885
93655
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL col2 / col2 + col2 * - col2 * - tab0.col1 col0 FROM tab0
----
611885
93655
98

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

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

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

query I rowsort
SELECT ALL + col2 - - 97 FROM tab2
----
123
124
135

query I rowsort
SELECT DISTINCT col2 - - ( col2 + col2 ) FROM tab0
----
246
3
99

query I rowsort
SELECT - + 32 + col0 * col0 - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-1312
-185
416

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1246
SELECT + - CAST( + col0 AS SIGNED ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-1246
SELECT + - CAST ( + col0 AS INTEGER ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

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

skipif mysql # not compatible
query I rowsort label-1247
SELECT - 20 + - col2 / - col1 AS col1 FROM tab0 AS cor0
----
-20
-20
-20

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1249
SELECT CAST( + col2 + col2 AS SIGNED ) * 88 AS col0 FROM tab1
----
10032
16896
9504

skipif mysql # not compatible
query I rowsort label-1249
SELECT CAST ( + col2 + col2 AS INTEGER ) * 88 AS col0 FROM tab1
----
10032
16896
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 + cor0.col1 col1 FROM tab0 AS cor0
----
172
177
183

query I rowsort
SELECT 87 + col1 - 60 * ( - col0 ) FROM tab1 AS cor0
----
293
3937
4900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL 3 AS col2 FROM tab0
----
3
3
3

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

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

query I rowsort
SELECT - col1 + 39 * - 6 * + col2 FROM tab1 AS cor0
----
-12662
-13348
-22477

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

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

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

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

query I rowsort
SELECT ALL + cor0.col1 * - 4 + col1 AS col2 FROM tab0 AS cor0
----
-258
-273
-291

query I rowsort
SELECT DISTINCT 10 * + col2 AS col2 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT ALL + col1 * - col2 + + 72 + - col1 * col1 FROM tab2 AS cor0
----
-1726
-4943
-863

onlyif mysql # use DIV operator for integer division
query I rowsort label-1264
SELECT - - col2 + - col1 DIV 43 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2095
3394
8179

skipif mysql # not compatible
query I rowsort label-1264
SELECT - - col2 + - col1 / 43 + col1 * col0 AS col2 FROM tab0 AS cor0
----
2095
3394
8179

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1265
SELECT DISTINCT - 40 * + col2 + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1049
-1503
-981

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT - 40 * + col2 + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1049
-1503
-981

query I rowsort
SELECT - 25 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-650
-675
-950

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

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

query I rowsort
SELECT DISTINCT - 5 AS col2 FROM tab0
----
-5

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

query I rowsort
SELECT DISTINCT ( tab1.col1 ) AS col1 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT ALL col0 DIV + 80 + tab0.col0 FROM tab0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL col0 / + 80 + tab0.col0 FROM tab0
----
24
35
90

query I rowsort
SELECT DISTINCT 16 * col0 FROM tab2
----
112
1248
1264

query I rowsort
SELECT cor0.col1 * col2 * + col1 + col0 FROM tab1 AS cor0
----
16304
36507
5764

onlyif mysql # use DIV operator for integer division
query I rowsort label-1275
SELECT ALL - col1 DIV - col0 + - col1 FROM tab0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-1275
SELECT ALL - col1 / - col0 + - col1 FROM tab0
----
-83
-90
-95

query I rowsort
SELECT - 88 + - cor0.col2 * - 68 FROM tab1 AS cor0
----
3584
3788
6440

query I rowsort
SELECT - col2 * 32 + cor0.col1 FROM tab1 AS cor0
----
-1702
-1814
-3059

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

skipif mysql # not compatible
query I rowsort label-1278
SELECT + col1 / 64 AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( + ( - col0 ) * tab0.col2 ) + - tab0.col0 * + col0 FROM tab0
----
-1260
-1368
-15219

query I rowsort
SELECT ALL ( 64 ) - - col2 * 14 FROM tab1
----
1408
820
862

query I rowsort
SELECT - ( tab0.col1 ) + - col2 * + 37 FROM tab0
----
-1307
-134
-3125

query I rowsort
SELECT + + 92 - + col0 FROM tab0 AS cor0
----
3
57
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT ALL + 42 DIV col1 AS col1 FROM tab1 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + 42 / col1 AS col1 FROM tab1 AS cor0
----
1
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 - col2 * col2 col2 FROM tab1 AS cor0
----
-2969
-3302
-9269

query I rowsort
SELECT DISTINCT 70 * + cor0.col2 + col2 FROM tab2 AS cor0
----
1846
1917
2698

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

query I rowsort
SELECT 74 + + ( + col2 + 58 ) AS col2 FROM tab2 cor0
----
158
159
170

query I rowsort
SELECT DISTINCT - - 96 * col1 FROM tab1 AS cor0
----
1248
2496
960

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

query I rowsort
SELECT DISTINCT ( + 62 ) AS col1 FROM tab1 AS cor0
----
62

query I rowsort
SELECT col2 - - col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + + 60 * 75 FROM tab0 AS cor0
----
4500
4500
4500

query I rowsort
SELECT - ( - cor0.col1 ) FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 57 + + cor0.col1 * col1 col1 FROM tab2 AS cor0
----
1018
346
3538

query I rowsort
SELECT DISTINCT 67 + - col2 * - 68 FROM tab2 cor0
----
1835
1903
2651

query I rowsort
SELECT - 52 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1291
165
4550

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

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

query I rowsort
SELECT ( + col1 ) * col1 * 37 + col2 AS col2 FROM tab2 AS cor0
----
10731
128823
35584

query I rowsort
SELECT DISTINCT 7 - col1 AS col0 FROM tab2 AS cor0
----
-10
-24
-52

query I rowsort
SELECT - col2 - 10 AS col1 FROM tab0
----
-11
-43
-92

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

query I rowsort
SELECT DISTINCT 55 - col0 AS col0 FROM tab1
----
-25
-9
52

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

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

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

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

query I rowsort
SELECT ALL ( - 80 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT + col2 + + 4 AS col0 FROM tab0 AS cor0
----
37
5
86

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 * - 58 AS col1 FROM tab0 AS cor0
----
164604
432796
5626

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1318
SELECT ALL CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

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

query I rowsort
SELECT ALL - col0 + + 66 * col2 FROM tab2 AS cor0
----
1638
1775
2429

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1321
SELECT - CAST( - col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-1321
SELECT - CAST ( - col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 37 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT DISTINCT col2 * - ( + col2 ) * - col2 FROM tab0
----
1
35937
551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-1324
SELECT ALL col1 DIV tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL col1 / tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 - - col1 * 43 AS col0 FROM tab1
----
1144
440
572

query I rowsort
SELECT + col2 * col2 + - col1 * - col1 FROM tab1
----
3349
3592
9385

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

query I rowsort
SELECT ALL 56 * - cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b539fa0de41546446ac562bdb239e646

query I rowsort
SELECT ALL + 59 FROM tab2
----
59
59
59

query I rowsort
SELECT ALL col1 + + tab2.col1 * 74 * col2 AS col0 FROM tab2
----
113575
47821
61969

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

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

query I rowsort
SELECT ALL - + col2 * - 71 - col1 AS col2 FROM tab2 AS cor0
----
1787
1886
2681

query I rowsort
SELECT DISTINCT + cor0.col0 + 66 AS col1 FROM tab2 cor0
----
144
145
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-1335
SELECT + - col2 + + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-1335
SELECT + - col2 + + col0 / col1 AS col2 FROM tab1 AS cor0
----
-51
-54
-90

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

query I rowsort
SELECT - col0 + - col0 * 16 FROM tab0 AS cor0
----
-1513
-408
-595

query I rowsort
SELECT - 54 FROM tab2, tab0 cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1339
SELECT + CAST( col1 AS SIGNED ) + col1 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-1339
SELECT + CAST ( col1 AS INTEGER ) + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + 32 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

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

query I rowsort
SELECT - + 96 * cor0.col0 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT col2 * - 78 AS col2 FROM tab2 AS cor0
----
-2028
-2106
-2964

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - - 57 * col1 - - col1 AS col1 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL + 42 + - col2 * cor0.col1 AS col0 FROM tab2 cor0
----
-1492
-604
-795

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

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

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

query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab1 AS cor0
----
42

query I rowsort
SELECT + 34 * - cor0.col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT DISTINCT 21 + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
183
3669
7701

query I rowsort
SELECT ALL - - 65 + col1 AS col2 FROM tab2 AS cor0
----
124
82
96

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

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

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

query I rowsort
SELECT - + 71 + col2 * - 79 FROM tab1 AS cor0
----
-4337
-4574
-7655

query I rowsort
SELECT DISTINCT 0 * - tab2.col1 * + col1 FROM tab2
----
0

query I rowsort
SELECT ( col2 ) * - 19 FROM tab1 AS cor0
----
-1026
-1083
-1824

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

query I rowsort
SELECT - - col1 + 89 FROM tab2 AS cor0
----
106
120
148

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

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

query I rowsort
SELECT + col2 + - 31 * col1 FROM tab1 AS cor0
----
-253
-307
-752

onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT col2 + + col2 DIV col1 col0 FROM tab2 AS cor0
----
26
27
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1364
SELECT col2 + + col2 / col1 col0 FROM tab2 AS cor0
----
26
27
40

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

query I rowsort
SELECT DISTINCT + 22 * col0 AS col1 FROM tab0
----
1958
528
770

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

query I rowsort
SELECT - col2 * - col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT - 58 + 35 FROM tab1 cor0
----
-23
-23
-23

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1374
SELECT + col0 / - col2 + + col1 AS col0 FROM tab0
----
62
86
90

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

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

query I rowsort
SELECT ALL + 38 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT - col2 * - 85 FROM tab2
----
2210
2295
3230

query I rowsort
SELECT DISTINCT + col2 + - col1 * + ( tab2.col2 * - col2 ) FROM tab2
----
22626
24586
39910

query I rowsort
SELECT tab0.col1 * - col2 + + 70 FROM tab0
----
-27
-2768
-7392

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * 50 * + col2 AS col1 FROM tab0
----
141900
373100
4850

query I rowsort
SELECT ALL - col2 + 35 FROM tab1 cor0
----
-19
-22
-61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1386
SELECT - - CAST( + col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1386
SELECT - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
1
33
82

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT DISTINCT ( col1 + col0 ) / 84 AS col0 FROM tab2
----
0
1

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

query I rowsort
SELECT - col0 + + 56 * col2 * 57 FROM tab2 AS cor0
----
121217
82914
86177

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1395
SELECT DISTINCT 31 + col1 * col0 DIV + col1 AS col2 FROM tab1
----
111
34
95

skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT 31 + col1 * col0 / + col1 AS col2 FROM tab1
----
111
34
95

query I rowsort
SELECT DISTINCT 59 + tab0.col1 + col1 AS col2 FROM tab0
----
231
241
253

query I rowsort
SELECT col0 + col2 + - col2 FROM tab0
----
24
35
89

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1401
SELECT + 6 * + 5 + + cor0.col2 - + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
115
85
88

skipif mysql # not compatible
query I rowsort label-1401
SELECT + 6 * + 5 + + cor0.col2 - + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
115
85
88

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT + col2 / + 72 + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT DISTINCT ( - cor0.col2 ) DIV col2 + 44 * col2 FROM tab1 AS cor0
----
2375
2507
4223

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT ( - cor0.col2 ) / col2 + 44 * col2 FROM tab1 AS cor0
----
2375
2507
4223

skipif mysql # not compatible
query I rowsort
SELECT - 69 * col2 + - CAST ( 77 AS REAL ) FROM tab0 cor0
----
-146
-2354
-5735

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 - ( col2 ) AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 42 * col0 * + col1 FROM tab1 AS cor0
----
26880
3276
43680

query I rowsort
SELECT tab2.col1 + - 48 AS col1 FROM tab2
----
-17
-31
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-1417
SELECT DISTINCT col2 DIV + col1 + col1 - 32 * - col1 AS col1 FROM tab1
----
335
436
860

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT col2 / + col1 + col1 - 32 * - col1 AS col1 FROM tab1
----
335
436
860

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1420
SELECT ALL + col0 * col0 * + col2 + col1 DIV col0 col2 FROM tab0 AS cor0
----
1227
19011
649523

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1420
SELECT ALL + col0 * col0 * + col2 + col1 / col0 col2 FROM tab0 AS cor0
----
1227
19011
649523

query I rowsort
SELECT ALL + col1 * 61 AS col2 FROM tab2 AS cor0
----
1037
1891
3599

onlyif mysql # use DIV operator for integer division
query I rowsort label-1422
SELECT DISTINCT - cor1.col0 DIV - 99 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1422
SELECT DISTINCT - cor1.col0 / - 99 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
0

query I rowsort
SELECT col1 * 20 FROM tab2 AS cor0
----
1180
340
620

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

query I rowsort
SELECT + + 33 * 87 FROM tab1 AS cor0
----
2871
2871
2871

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

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

query I rowsort
SELECT col2 + - col2 * + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL - + 56 * - ( + col0 ) + 3 FROM tab1 AS cor0
----
171
3587
4483

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

query I rowsort
SELECT ALL 54 FROM tab2, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + 35 * cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6232d2ee80935a817b0b1ef0cb5ede5a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT ALL + col0 * + col1 + col0 DIV - 20 AS col2 FROM tab0
----
2063
3394
8095

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL + col0 * + col1 + col0 / - 20 AS col2 FROM tab0
----
2063
3394
8095

query I rowsort
SELECT + 18 + col2 AS col2 FROM tab1 AS cor0
----
114
72
75

query I rowsort
SELECT ALL + col0 + 33 FROM tab1 AS cor0
----
113
36
97

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

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

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) + + col2 * col2 FROM tab2 AS cor0
----
1406
650
702

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

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

query I rowsort
SELECT ALL - col0 + col0 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
1155
528
7743

query I rowsort
SELECT ALL + col2 * + 76 + col0 * - col1 FROM tab1 AS cor0
----
3692
4026
6256

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

query I rowsort
SELECT ALL + + 52 + col2 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-531
-892
28

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

query I rowsort
SELECT DISTINCT 72 * - col2 + col0 FROM tab0 AS cor0
----
-2352
-37
-5815

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

query I rowsort
SELECT col2 + col0 * + ( 7 ) FROM tab1 AS cor0
----
505
656
75

query I rowsort
SELECT DISTINCT - col1 + col2 * - 98 AS col2 FROM tab0 AS cor0
----
-195
-3320
-8127

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

query I rowsort
SELECT - + 89 + col2 FROM tab0 AS cor0
----
-56
-7
-88

query I rowsort
SELECT + 55 * + cor0.col0 FROM tab0 AS cor0
----
1320
1925
4895

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

query I rowsort
SELECT col0 + 26 * + tab0.col0 AS col0 FROM tab0
----
2403
648
945

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1457
SELECT ALL - col0 * CAST( 35 AS SIGNED ) FROM tab2 cor0
----
-245
-2730
-2765

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL - col0 * CAST ( 35 AS INTEGER ) FROM tab2 cor0
----
-245
-2730
-2765

query I rowsort
SELECT DISTINCT - col0 * - 42 FROM tab0 AS cor0
----
1008
1470
3738

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

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

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

query I rowsort
SELECT DISTINCT - col1 + 95 AS col2 FROM tab0 AS cor0
----
-2
4
9

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

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

query I rowsort
SELECT ALL + cor0.col0 + col2 + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1072
-1347
-449

query I rowsort
SELECT - col2 + + col0 * ( col1 * col1 + - 93 * 52 ) FROM tab2 AS cor0
----
-105716
-27152
-359251

query I rowsort
SELECT ALL + 16 + col0 * col0 AS col2 FROM tab2 AS cor0
----
6100
6257
65

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98

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

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

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

query I rowsort
SELECT - 41 + - col1 FROM tab1
----
-51
-54
-67

query I rowsort
SELECT ( cor1.col0 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT + + col1 DIV col1 + col2 * + col0 + ( + col2 ) AS col1 FROM tab1 cor0
----
217
3706
7777

skipif mysql # not compatible
query I rowsort label-1475
SELECT + + col1 / col1 + col2 * + col0 + ( + col2 ) AS col1 FROM tab1 cor0
----
217
3706
7777

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

query I rowsort
SELECT - 85 * - 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7ab940abff215dd3ee73e35f67c66e1c

query I rowsort
SELECT cor0.col2 + 14 FROM tab0 cor0
----
15
47
96

query I rowsort
SELECT - - ( cor0.col2 ) + col2 * - ( - ( col2 ) ) * col1 FROM tab2 AS cor0
----
22626
24586
39910

query I rowsort
SELECT DISTINCT - col0 + 89 * - col0 AS col1 FROM tab1
----
-270
-5760
-7200

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

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL CAST ( NULL AS REAL ) - 81 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 76 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

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

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

query I rowsort
SELECT + 8 AS col0 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT - 22 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT ALL 8 * + tab0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 80fcfd6a7f55ecd13f93d35e70387848

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

query I rowsort
SELECT DISTINCT + 88 + - 30 + + col0 * ( + 29 ) AS col1 FROM tab2 AS cor0
----
2320
2349
261

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col2 * + col1 + + 29 * 16 col1 FROM tab2 AS cor0
----
1148
1328
2024

query I rowsort
SELECT DISTINCT - col0 * - col2 + 21 AS col0 FROM tab0 AS cor0
----
56
7319
813

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

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

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

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

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

query I rowsort
SELECT + 67 * - col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

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

query I rowsort
SELECT + ( + col1 ) - 35 AS col0 FROM tab0
----
51
56
62

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1501
SELECT ALL col2 DIV 95 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1501
SELECT ALL col2 / 95 col1 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ( + col0 ) * + col2 * - col0 + col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT - 97 * 62 * col0 + col1 AS col0 FROM tab0 cor0
----
-144250
-210393
-535155

query I rowsort
SELECT + 44 * - col0 FROM tab2 AS cor0
----
-308
-3432
-3476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 29 col0 FROM tab0
----
2494
2639
2813

query I rowsort
SELECT - 55 - col1 * - col1 AS col2 FROM tab0 cor0
----
7341
8226
9354

query I rowsort
SELECT ALL - 31 AS col0 FROM tab1
----
-31
-31
-31

query I rowsort
SELECT + 46 AS col2 FROM tab0
----
46
46
46

query I rowsort
SELECT 44 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT ALL - col0 - col2 * + col2 FROM tab0 AS cor0
----
-1113
-36
-6813

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

query I rowsort
SELECT ALL + col1 + - 37 AS col1 FROM tab1 AS cor0
----
-11
-24
-27

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

query I rowsort
SELECT col0 * 30 AS col1 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT + + col2 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT 5 * col2 FROM tab1
----
270
285
480

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

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

query I rowsort
SELECT ALL - col1 * - ( + col1 * col1 ) AS col0 FROM tab2 AS cor0
----
205379
29791
4913

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

query I rowsort
SELECT DISTINCT - - col0 * + 73 AS col1 FROM tab2 AS cor0
----
511
5694
5767

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

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

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

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

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

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

query I rowsort
SELECT - col1 * + 46 + - col2 + - col1 FROM tab1 AS cor0
----
-1276
-527
-707

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

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

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

query I rowsort
SELECT ALL - 93 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 373608b5054d92c1128be0c71db4d4ed

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * col1 col1 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT ALL + 42 * col0 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 + - 16 AS col2 FROM tab0 AS cor0
----
-2080
-3411
-8115

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1535
SELECT ALL - + col1 * col1 + 98 DIV 55 AS col0 FROM tab0 AS cor0
----
-7395
-8280
-9408

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - + col1 * col1 + 98 / 55 AS col0 FROM tab0 AS cor0
----
-7395
-8280
-9408

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

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

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

query I rowsort
SELECT ALL col2 + - col1 * + 87 + col2 AS col2 FROM tab1 AS cor0
----
-2154
-756
-939

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

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + - col0 + - col0 - CAST ( - col2 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
2910
3121
9056

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

query I rowsort
SELECT ALL + cor0.col2 + col2 - - 62 AS col2 FROM tab2 AS cor0
----
114
116
138

query I rowsort
SELECT ALL - 77 * - col1 * 79 AS col0 FROM tab1 AS cor0
----
158158
60830
79079

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab2 cor0
----
33

query I rowsort
SELECT + ( - col1 ) * + 75 AS col0 FROM tab0 AS cor0
----
-6450
-6825
-7275

query I rowsort
SELECT DISTINCT + - 98 * + col2 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT - ( - col0 ) + - col2 * 67 FROM tab0
----
-2187
-32
-5405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 * col0 col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT col0 * 45 + - col2 * + col2 FROM tab0
----
-2719
-9
1574

query I rowsort
SELECT + 47 + - tab1.col0 AS col0 FROM tab1
----
-17
-33
44

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

query I rowsort
SELECT DISTINCT + + col2 * - col2 + - 95 FROM tab0 AS cor0
----
-1184
-6819
-96

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1553
SELECT DISTINCT + - col2 + + col2 DIV + col1 FROM tab1 cor0
----
-52
-89

skipif mysql # not compatible
query I rowsort label-1553
SELECT DISTINCT + - col2 + + col2 / + col1 FROM tab1 cor0
----
-52
-89

query I rowsort
SELECT - - 54 + + cor0.col2 FROM tab0 AS cor0
----
136
55
87

query I rowsort
SELECT ALL - 19 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT + 58 AS col0 FROM tab1
----
58
58
58

query I rowsort
SELECT DISTINCT - 89 * 38 FROM tab0, tab2 AS cor0
----
-3382

query I rowsort
SELECT ALL + 43 * + 76 - col0 AS col0 FROM tab0 AS cor0
----
3179
3233
3244

query I rowsort
SELECT DISTINCT - + 4 * - col1 AS col1 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT + col0 - 63 FROM tab0 AS cor0
----
-28
-39
26

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

query I rowsort
SELECT + cor1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT cor0.col2 + 80 * + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 09dcbcd4970ebc6b6f627c4c0081823a

query I rowsort
SELECT cor1.col2 * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to f8894e3f33962cda5901e1c2ce65d5b0

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

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

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + col0 / col0 - - ( + col0 ) AS col1 FROM tab2
----
79
8
80

query I rowsort
SELECT ALL col1 * + col1 + - 4 AS col2 FROM tab0
----
7392
8277
9405

query I rowsort
SELECT + 63 FROM tab2, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

query I rowsort
SELECT + 97 * col1 + col2 AS col0 FROM tab0
----
8375
8909
9410

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

query I rowsort
SELECT - + ( 88 ) + cor0.col2 * + ( col1 ) FROM tab2 AS cor0
----
1446
558
749

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

query I rowsort
SELECT - - 37 * - col2 + - col0 FROM tab2 AS cor0
----
-1006
-1040
-1485

query I rowsort
SELECT DISTINCT + + ( - 12 ) * + col1 AS col0 FROM tab2 AS cor0
----
-204
-372
-708

onlyif mysql # use DIV operator for integer division
query I rowsort label-1576
SELECT ALL - ( col0 ) DIV - col2 - + 58 * col0 AS col1 FROM tab1 AS cor0
----
-174
-3711
-4640

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL - ( col0 ) / - col2 - + 58 * col0 AS col1 FROM tab1 AS cor0
----
-174
-3711
-4640

query I rowsort
SELECT DISTINCT - 93 * 24 + + col2 + - ( col1 ) AS col0 FROM tab0 AS cor0
----
-2241
-2285
-2328

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 99 col1 FROM tab2 AS cor0
----
1683
3069
5841

query I rowsort
SELECT + - col0 + 43 * 72 FROM tab0 AS cor0
----
3007
3061
3072

query I rowsort
SELECT tab2.col0 * 5 FROM tab2
----
35
390
395

query I rowsort
SELECT + col0 * 12 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT + - col1 + ( + 14 ) FROM tab2 AS cor0
----
-17
-3
-45

query I rowsort
SELECT + col2 * - cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT + + col2 * - 3 + col2 FROM tab0 AS cor0
----
-164
-2
-66

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

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

query I rowsort
SELECT + 25 FROM tab1 cor0
----
25
25
25

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

skipif mysql # not compatible
query I rowsort label-1589
SELECT + - CAST ( 68 AS INTEGER ) * + col2 AS col0 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT DISTINCT col1 * - 49 * + 47 FROM tab1
----
-23030
-29939
-59878

query I rowsort
SELECT cor0.col2 * - col2 + - col1 * cor0.col2 - + col2 AS col2 FROM tab2 AS cor0
----
-1593
-2128
-2236

query I rowsort
SELECT DISTINCT + ( - 68 ) AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-68

query I rowsort
SELECT DISTINCT - ( col1 ) * - 39 AS col0 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT - cor0.col2 * col2 + col0 + cor0.col0 FROM tab2 AS cor0
----
-1286
-520
-715

query I rowsort
SELECT ALL - 10 + + col0 FROM tab0 AS cor0
----
14
25
79

query I rowsort
SELECT + + 61 + - col0 FROM tab2 AS cor0
----
-17
-18
54

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

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

query I rowsort
SELECT ALL 38 AS col2 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT cor0.col1 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-1602
SELECT DISTINCT ( 47 ) * col0 DIV col2 - + col0 FROM tab0
----
-38
10
1610

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT ( 47 ) * col0 / col2 - + col0 FROM tab0
----
-38
10
1610

onlyif mysql # use DIV operator for integer division
query I rowsort label-1603
SELECT ALL - col1 - col2 DIV col0 col2 FROM tab1
----
-10
-14
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL - col1 - col2 / col0 col2 FROM tab1
----
-10
-14
-44

query I rowsort
SELECT 52 * col2 FROM tab1
----
2808
2964
4992

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1606
SELECT col2 DIV - col1 + + col2 AS col1 FROM tab2
----
26
27
36

skipif mysql # not compatible
query I rowsort label-1606
SELECT col2 / - col1 + + col2 AS col1 FROM tab2
----
26
27
36

query I rowsort
SELECT 8 * - col1 AS col2 FROM tab2
----
-136
-248
-472

query I rowsort
SELECT + col2 + - col1 * - ( col2 ) + col1 AS col1 FROM tab2
----
1619
701
895

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

query I rowsort
SELECT ( col2 * 78 ) AS col2 FROM tab2
----
2028
2106
2964

query I rowsort
SELECT ALL - 56 + - cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9f10f818637298218b107c52cfcfa03b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT ALL 80 DIV - tab2.col1 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL 80 / - tab2.col1 FROM tab2
----
-1
-2
-4

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

query I rowsort
SELECT - col0 * ( - col0 ) * + col0 FROM tab1 cor0
----
262144
27
512000

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

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

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

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

query I rowsort
SELECT ALL - cor1.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL 6 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

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

query I rowsort
SELECT + col0 * ( + tab0.col0 ) + tab0.col0 + col2 FROM tab0
----
1261
633
8092

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1624
SELECT + col2 + tab0.col1 DIV col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-1624
SELECT + col2 + tab0.col1 / col2 FROM tab0
----
35
83
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - ( col1 ) ) col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + 47 * + 11 FROM tab1 AS cor0
----
517

query I rowsort
SELECT 98 * col2 + - col2 FROM tab0 cor0
----
3201
7954
97

query I rowsort
SELECT DISTINCT - 49 * col0 AS col1 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT + 37 + + 34 AS col0 FROM tab1 AS cor0
----
71
71
71

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

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

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

query I rowsort
SELECT 79 * col1 AS col0 FROM tab1 AS cor0
----
1027
2054
790

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT + col2 DIV - col1 + col1 * - 13 FROM tab0 AS cor0
----
-1118
-1183
-1261

skipif mysql # not compatible
query I rowsort label-1635
SELECT + col2 / - col1 + col1 * - 13 FROM tab0 AS cor0
----
-1118
-1183
-1261

query I rowsort
SELECT - 59 FROM tab2 cor0
----
-59
-59
-59

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

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

query I rowsort
SELECT ALL - cor1.col1 * 33 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1eface97c70ca433b51ef7729eed24d8

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

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

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

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

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

query I rowsort
SELECT ALL 77 * col0 FROM tab0
----
1848
2695
6853

onlyif mysql # use DIV operator for integer division
query I rowsort label-1645
SELECT - ( tab1.col0 ) + col1 DIV col0 FROM tab1
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-1645
SELECT - ( tab1.col0 ) + col1 / col0 FROM tab1
----
-64
-80
5

query I rowsort
SELECT DISTINCT 47 + 70 AS col1 FROM tab1, tab2, tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 90 AS REAL ) FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + - 30 * 53 AS col0 FROM tab0 AS cor0
----
-1590
-1590
-1590

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

skipif mysql # not compatible
query I rowsort label-1649
SELECT ALL - - ( 34 ) / col1 FROM tab1 AS cor0
----
1
2
3

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT 7 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT 7 / col1 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT + 77 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

onlyif mysql # use DIV operator for integer division
query I rowsort label-1654
SELECT - ( col1 ) DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT - ( col1 ) / + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( tab2.col1 ) * - col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - + 14 * col2 + + 18 FROM tab2 AS cor0
----
-346
-360
-514

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

skipif mysql # not compatible
query I rowsort label-1657
SELECT - - col2 * cor0.col1 * - CAST ( col1 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

query I rowsort
SELECT ALL + tab1.col2 + - col1 * col1 AS col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT ALL - 62 + - col2 FROM tab1
----
-116
-119
-158

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1661
SELECT + - col0 DIV - ( 85 * col1 ) + - col0 + col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1260
-600
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1661
SELECT + - col0 / - ( 85 * col1 ) + - col0 + col0 * - cor0.col0 col2 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL - col0 + col2 + col2 * cor0.col2 FROM tab1 AS cor0
----
2967
3242
9232

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

query I rowsort
SELECT + cor0.col0 * - 72 + + 45 FROM tab2 AS cor0
----
-459
-5571
-5643

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col0 * + 95 * col2 col0 FROM tab1 AS cor0
----
-15444
-346617
-729696

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1670
SELECT ALL - - col1 * + CAST( - col1 AS SIGNED ) + - col2 * - 71 FROM tab2 AS cor0
----
-1635
2409
956

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL - - col1 * + CAST ( - col1 AS INTEGER ) + - col2 * - 71 FROM tab2 AS cor0
----
-1635
2409
956

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

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

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

query I rowsort
SELECT ALL col0 * + 6 + col0 AS col2 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT DISTINCT + - col1 * - ( + col2 ) + col2 * - 34 + 39 * - col1 FROM tab0 AS cor0
----
-1638
-3720
1125

query I rowsort
SELECT + col1 * col1 * + col1 AS col2 FROM tab0
----
636056
753571
912673

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 79 col2 FROM tab1
----
133
136
175

query I rowsort
SELECT - col1 + + ( - col1 ) + + col0 FROM tab1
----
-49
44
54

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

query I rowsort
SELECT - col0 + - 76 FROM tab0 AS cor0
----
-100
-111
-165

onlyif mysql # use DIV operator for integer division
query I rowsort label-1682
SELECT - + col0 DIV - 29 + 54 * + col2 + - col2 FROM tab2 AS cor0
----
1380
1431
2016

skipif mysql # not compatible
query I rowsort label-1682
SELECT - + col0 / - 29 + 54 * + col2 + - col2 FROM tab2 AS cor0
----
1380
1431
2016

query I rowsort
SELECT DISTINCT - + col2 + - 97 AS col0 FROM tab0 AS cor0
----
-130
-179
-98

query I rowsort
SELECT + col0 + + 87 AS col1 FROM tab0 AS cor0
----
111
122
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 - col0 * - col0 col0 FROM tab0 AS cor0
----
1287
638
7923

query I rowsort
SELECT ALL + cor0.col2 - - 60 * col2 * col0 FROM tab1 AS cor0
----
218937
460896
9774

query I rowsort
SELECT ALL - + 89 FROM tab1 cor0
----
-89
-89
-89

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

query I rowsort
SELECT ALL col0 + 51 * - col0 FROM tab2 AS cor0
----
-350
-3900
-3950

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

query I rowsort
SELECT ( - col1 ) * + cor0.col0 + + 94 AS col0 FROM tab1 cor0
----
-546
-946
16

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT - CAST( 41 + cor0.col1 AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8a60e6ec3493d625aec98cd649d26563

skipif mysql # not compatible
query I rowsort label-1693
SELECT - CAST ( 41 + cor0.col1 AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to 8a60e6ec3493d625aec98cd649d26563

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1695
SELECT DISTINCT + col1 + CAST( 85 * - col2 AS SIGNED ) FROM tab2
----
-2151
-2264
-3213

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT + col1 + CAST ( 85 * - col2 AS INTEGER ) FROM tab2
----
-2151
-2264
-3213

query I rowsort
SELECT DISTINCT - 70 * 68 FROM tab0, tab1 AS cor0
----
-4760

query I rowsort
SELECT DISTINCT + col0 + + 65 FROM tab0
----
100
154
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1698
SELECT + col1 DIV - col2 + col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-1698
SELECT + col1 / - col2 + col2 FROM tab0
----
-96
31
81

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

query I rowsort
SELECT DISTINCT + 63 * col0 * col1 FROM tab0 AS cor0
----
130032
213885
510237

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

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

query I rowsort
SELECT - - col2 * - col0 + col1 + 88 AS col0 FROM tab0 AS cor0
----
-618
-7119
150

query I rowsort
SELECT ALL + col0 + + col2 * col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + col2 + col2 * + col2 * + col2 FROM tab2 AS cor0
----
17602
19710
54910

query I rowsort
SELECT DISTINCT - tab2.col0 * - col0 * - tab2.col2 AS col1 FROM tab2
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 47 * col2 col2 FROM tab2
----
1276
1300
1865

query I rowsort
SELECT - col1 + - col1 * ( + col0 + - col0 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + 70 + + cor0.col0 * + ( col0 ) * col0 AS col2 FROM tab2 AS cor0
----
413
474622
493109

query I rowsort
SELECT ALL 7 * + col1 AS col1 FROM tab2 AS cor0
----
119
217
413

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

query I rowsort
SELECT - + col1 + - col1 + + 84 FROM tab2 AS cor0
----
-34
22
50

query I rowsort
SELECT DISTINCT - col0 * - col0 + - 78 - - col2 AS col2 FROM tab2
----
-2
6032
6201

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + 16 AS col1 FROM tab2
----
16
16
16

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

query I rowsort
SELECT + 53 + col0 * tab2.col2 AS col1 FROM tab2
----
2081
242
3055

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1723
SELECT 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-1723
SELECT col1 / col1 col0 FROM tab1
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT ALL + ( col2 ) DIV 42 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL + ( col2 ) / 42 FROM tab2
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT DISTINCT col2 DIV col1 + col0 DIV - 7 AS col0 FROM tab2 AS cor0
----
-1
-11
-9

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT col2 / col1 + col0 / - 7 AS col0 FROM tab2 AS cor0
----
-1
-11
-9

query I rowsort
SELECT + 23 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT col2 * col2 + - 82 AS col1 FROM tab1 AS cor0
----
2834
3167
9134

query I rowsort
SELECT - 20 + col0 FROM tab2 AS cor0
----
-13
58
59

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

query I rowsort
SELECT + 39 + col2 AS col1 FROM tab1 AS cor0
----
135
93
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1733
SELECT - cor0.col1 + col0 DIV - 47 AS col1 FROM tab2 AS cor0
----
-18
-31
-60

skipif mysql # not compatible
query I rowsort label-1733
SELECT - cor0.col1 + col0 / - 47 AS col1 FROM tab2 AS cor0
----
-18
-31
-60

query I rowsort
SELECT col0 * col1 + ( - cor0.col1 ) FROM tab0 AS cor0
----
1978
3298
8008

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

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

query I rowsort
SELECT ALL + cor0.col1 + - 13 FROM tab1 AS cor0
----
-3
0
13

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

query I rowsort
SELECT ALL col2 * + 94 + + col0 FROM tab2 AS cor0
----
2522
2545
3651

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

skipif mysql # not compatible
query I rowsort label-1740
SELECT DISTINCT + col0 + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL - col2 + cor0.col2 - - col1 FROM tab1 AS cor0
----
10
13
26

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

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL + col1 * col0 / cor0.col2 FROM tab1 AS cor0
----
1
10
11

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

query I rowsort
SELECT ALL - 66 * - ( col0 ) + - col1 FROM tab0 AS cor0
----
1498
2213
5783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1745
SELECT col2 * CAST( + col2 AS SIGNED ) + - col0 * ( 46 ) + - col2 FROM tab1
----
248
2724
5440

skipif mysql # not compatible
query I rowsort label-1745
SELECT col2 * CAST ( + col2 AS INTEGER ) + - col0 * ( 46 ) + - col2 FROM tab1
----
248
2724
5440

onlyif mysql # use DIV operator for integer division
query I rowsort label-1746
SELECT DISTINCT + + cor0.col2 DIV 35 FROM tab1, tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT + + cor0.col2 / 35 FROM tab1, tab2 AS cor0
----
0
1

query I rowsort
SELECT + ( col0 ) * + cor0.col1 - + col2 * col0 AS col2 FROM tab2 AS cor0
----
-1659
2574
28

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

query I rowsort
SELECT + 38 * col0 * - col0 FROM tab0 AS cor0
----
-21888
-300998
-46550

query I rowsort
SELECT + - 27 * - 68 * cor0.col2 FROM tab1 AS cor0
----
104652
176256
99144

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + col0 * + col0 col1 FROM tab1
----
-35
-4106
-6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-1753
SELECT 49 * + cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-1753
SELECT 49 * + cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
49
49
49

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

query I rowsort
SELECT ALL 87 * + col2 - - col2 FROM tab0 AS cor0
----
2904
7216
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1756
SELECT ALL - 92 + - col0 DIV + ( 67 ) FROM tab1 AS cor0
----
-92
-92
-93

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL - 92 + - col0 / + ( 67 ) FROM tab1 AS cor0
----
-92
-92
-93

query I rowsort
SELECT ALL - col0 + col1 * + ( 45 ) FROM tab1 AS cor0
----
1167
386
505

query I rowsort
SELECT ALL 69 - col0 * col2 FROM tab0 AS cor0
----
-7229
-723
34

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

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

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

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

query I rowsort
SELECT - - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

query I rowsort
SELECT DISTINCT - col0 * + 34 AS col1 FROM tab1 AS cor0
----
-102
-2176
-2720

query I rowsort
SELECT ALL 29 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

skipif mysql # not compatible
query I rowsort
SELECT col2 - - CAST ( + 88 * + col0 AS REAL ) AS col0 FROM tab1
----
318
5689
7136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * 84 col0 FROM tab0
----
7138
7553
8051

query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT col1 * - cor0.col0 * + col0 + col1 * col0 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT IN ( + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT tab0.col2 + - col1 * - col2 FROM tab0
----
2871
7544
98

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----

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

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

query I rowsort
SELECT tab0.col2 * tab0.col2 AS col2 FROM tab0
----
1
1089
6724

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

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ALL - col2 * - col0 * + col2 FROM tab0
----
26136
35
598436

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

query I rowsort
SELECT DISTINCT + col2 * + col2 * + col0 AS col1 FROM tab0
----
26136
35
598436

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

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

skipif mysql # not compatible
query I rowsort label-1781
SELECT + col1 / - col0 AS col2 FROM tab1
----
-8
0
0

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

skipif mysql # not compatible
query I rowsort label-1782
SELECT + cor0.col1 / col1 - - col0 AS col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT ALL + + col2 * - col1 + col1 * + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 - - col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-1785
SELECT DISTINCT - cor0.col2 + - col2 DIV col1 FROM tab2 cor0
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - cor0.col2 + - col2 / col1 FROM tab2 cor0
----
-26
-27
-40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 - cor0.col0 * - col0 col0 FROM tab1 AS cor0
----
15616
2925
7345

onlyif mysql # use DIV operator for integer division
query I rowsort label-1788
SELECT DISTINCT + col0 * - col0 * + col2 - tab0.col0 DIV - col2 AS col1 FROM tab0
----
-1190
-19008
-649521

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT + col0 * - col0 * + col2 - tab0.col0 / - col2 AS col1 FROM tab0
----
-1190
-19008
-649521

query I rowsort
SELECT ALL col0 + col1 + - col1 FROM tab1
----
3
64
80

query I rowsort
SELECT + col0 - cor0.col2 * col1 * + col2 FROM tab1 AS cor0
----
-119728
-32426
-75813

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

query I rowsort
SELECT - col1 * - col1 + - col0 FROM tab2
----
210
3403
954

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

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

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

skipif mysql # not compatible
query I rowsort label-1795
SELECT - col0 + + col1 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + - col0 col1 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-1799
SELECT + col1 DIV - col2 AS col1 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-1799
SELECT + col1 / - col2 AS col1 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT col1 + tab0.col0 + tab0.col1 FROM tab0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-1801
SELECT ALL - tab1.col0 * col1 DIV ( ( + col1 ) ) - 86 * - tab1.col0 AS col2 FROM tab1
----
255
5440
6800

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - tab1.col0 * col1 / ( ( + col1 ) ) - 86 * - tab1.col0 AS col2 FROM tab1
----
255
5440
6800

query I rowsort
SELECT ALL - col2 - col0 * 68 FROM tab1
----
-258
-4409
-5536

onlyif mysql # use DIV operator for integer division
query I rowsort label-1803
SELECT + ( col1 ) * 55 + + cor0.col2 DIV col1 col2 FROM tab0 AS cor0
----
4730
5005
5335

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1803
SELECT + ( col1 ) * 55 + + cor0.col2 / col1 col2 FROM tab0 AS cor0
----
4730
5005
5335

onlyif mysql # use DIV operator for integer division
query I rowsort label-1804
SELECT DISTINCT - col1 DIV col2 AS col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT - col1 / col2 AS col2 FROM tab0 cor0
----
-1
-2
-97

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

query I rowsort
SELECT DISTINCT col2 * col2 + ( col1 ) * col0 AS col1 FROM tab1
----
10256
2994
3889

query I rowsort
SELECT 11 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT DISTINCT - col2 * col2 + ( col0 ) FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT col2 + tab1.col2 AS col2 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-1810
SELECT ALL + col0 * col2 + + col2 DIV cor0.col0 col2 FROM tab0 AS cor0
----
35
7298
793

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL + col0 * col2 + + col2 / cor0.col0 col2 FROM tab0 AS cor0
----
35
7298
793

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1811
SELECT DISTINCT - + col2 * - CAST( cor0.col0 AS SIGNED ) 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-1811
SELECT DISTINCT - + col2 * - CAST ( cor0.col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - col2 + + 41 FROM tab0 AS cor0
----
-41
40
8

query I rowsort
SELECT - + col1 * + col2 + col1 * col0 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT DISTINCT col2 * + ( - col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + cor0.col0 - - col1 * + col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1816
SELECT ALL - + col0 * cor0.col1 + 39 DIV col2 + - col1 FROM tab0 AS cor0
----
-2149
-3453
-8190

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - + col0 * cor0.col1 + 39 / col2 + - col1 FROM tab0 AS cor0
----
-2149
-3453
-8190

query I rowsort
SELECT 80 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT DISTINCT - - col2 + + ( - 93 ) FROM tab2 AS cor0
----
-55
-66
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT cor0.col0 * + col2 + - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
162
3642
7674

skipif mysql # not compatible
query I rowsort label-1819
SELECT cor0.col0 * + col2 + - col0 / col1 AS col2 FROM tab1 AS cor0
----
162
3642
7674

onlyif mysql # use DIV operator for integer division
query I rowsort label-1820
SELECT - col2 + + col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-23
-26
-38

skipif mysql # not compatible
query I rowsort label-1820
SELECT - col2 + + col1 / + col0 AS col0 FROM tab2 AS cor0
----
-23
-26
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1821
SELECT col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1821
SELECT col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * - 18 + + col1 FROM tab1 AS cor0
----
1162
1453
80

query I rowsort
SELECT DISTINCT - - cor0.col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 + + col0 * + col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - - col0 + - 18 FROM tab0 AS cor0
----
17
6
71

query I rowsort
SELECT DISTINCT + col2 + col2 * + 4 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT DISTINCT col2 - + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT col2 + - 8 FROM tab2 cor0
----
18
19
30

query I rowsort
SELECT ALL - col2 * + ( + ( col2 ) ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + cor0.col0 - col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL col1 + + tab0.col2 * + col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE NOT ( col1 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + tab0.col1 * + col1 FROM tab0
----
7482
8372
9506

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = col0
----

query I rowsort
SELECT - col2 + + col0 - - col2 AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col2 * col1 + + col2 AND NULL
----

query I rowsort
SELECT col2 + + col0 + - col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT ALL + col2 - + col2 * - col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 > NULL
----

query I rowsort
SELECT tab2.col2 + + col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - col2 + + col0 * col0 - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-249
1189
541

onlyif mysql # use DIV operator for integer division
query I rowsort label-1844
SELECT ALL + 47 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL + 47 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT col2 + + col0 DIV col1 + - col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-1845
SELECT col2 + + col0 / col1 + - col2 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( - col1 ) IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT - tab0.col0 DIV + tab0.col0 + col1 + - col2 * col2 FROM tab0
----
-1004
-6634
95

skipif mysql # not compatible
query I rowsort label-1848
SELECT - tab0.col0 / + tab0.col0 + col1 + - col2 * col2 FROM tab0
----
-1004
-6634
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1849
SELECT col0 * col0 * + col1 + col0 + tab1.col2 DIV col1 FROM tab1
----
239
41029
83287

skipif mysql # not compatible
query I rowsort label-1849
SELECT col0 * col0 * + col1 + col0 + tab1.col2 / col1 FROM tab1
----
239
41029
83287

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1850
SELECT + col1 + CAST( NULL AS SIGNED ) - - 38 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT + col1 + CAST ( NULL AS INTEGER ) - - 38 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT - - cor0.col0 DIV + ( + col1 ) + - col2 * col1 - col1 * + col1 FROM tab2 AS cor0
----
-1798
-5014
-931

skipif mysql # not compatible
query I rowsort label-1851
SELECT - - cor0.col0 / + ( + col1 ) + - col2 * col1 - col1 * + col1 FROM tab2 AS cor0
----
-1798
-5014
-931

query I rowsort
SELECT col2 + - col1 - col0 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT + + col2 * + 80 - cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
-3201
-4004
2111

query I rowsort
SELECT + col1 * 80 + + col1 AS col2 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT + ( col0 + + col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT - 97 FROM tab0, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1857
SELECT + + col1 + + col1 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1857
SELECT + + col1 + + col1 / cor0.col1 AS col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL - cor0.col1 * 13 AS col1 FROM tab1 cor0
----
-130
-169
-338

query I rowsort
SELECT + + col0 + + cor0.col1 * 99 AS col2 FROM tab2 AS cor0
----
1762
3076
5919

query I rowsort
SELECT ALL - col1 + - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT col1 + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + col1 + + col1 * + ( col2 * col1 ) FROM tab0 AS cor0
----
244154
679133
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-1863
SELECT - ( 56 ) DIV tab1.col2 + + tab1.col0 AS col1 FROM tab1
----
2
64
80

skipif mysql # not compatible
query I rowsort label-1863
SELECT - ( 56 ) / tab1.col2 + + tab1.col0 AS col1 FROM tab1
----
2
64
80

query I rowsort
SELECT DISTINCT - - col0 + 19 * cor0.col2 * + 52 AS col0 FROM tab0 cor0
----
1023
32628
81105

onlyif mysql # use DIV operator for integer division
query I rowsort label-1865
SELECT ALL + + col0 DIV + col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + + col0 / + col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT - cor0.col0 + 38 FROM tab1 AS cor0
----
-26
-42
35

query I rowsort
SELECT DISTINCT - + col0 + col0 * cor0.col1 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1868
SELECT ALL + CAST( NULL AS SIGNED ) + - 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL + CAST ( NULL AS INTEGER ) + - 88 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 - - 1 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + cor0.col0 * cor0.col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL 99 AS col0 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT 36 + - tab0.col1 * tab0.col2 AS col2 FROM tab0
----
-2802
-61
-7426

query I rowsort
SELECT DISTINCT - - col0 + - col1 AS col0 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL col2 * col1 * col0 + col1 * + col2 + - col2 FROM tab2 AS cor0
----
121160
51642
6669

query I rowsort
SELECT col0 * + cor0.col2 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - 2 + - 42 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT + ( ( col1 ) ) FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT ALL + cor1.col2 DIV + cor0.col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to a79a44b7a7c15deb87243bb89ff0783f

skipif mysql # not compatible
query I rowsort label-1881
SELECT ALL + cor1.col2 / + cor0.col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to a79a44b7a7c15deb87243bb89ff0783f

query I rowsort
SELECT DISTINCT + + 60 FROM tab0 cor0
----
60

query I rowsort
SELECT col2 + - 29 AS col0 FROM tab2 cor0
----
-2
-3
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT + col1 DIV - 94 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1884
SELECT + col1 / - 94 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL 88 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL + col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - ( - col0 ) + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - ( col0 ) + col2 + col1 FROM tab0 AS cor0
----
63
84
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT - col1 DIV + cor0.col0 col0 FROM tab1 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1889
SELECT - col1 / + cor0.col0 col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT - 23 * col2 + col1 AS col1 FROM tab2 cor0
----
-539
-590
-857

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT + col1 DIV + cor0.col1 col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1891
SELECT + col1 / + cor0.col1 col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 17 * col2 AS col2 FROM tab2
----
442
459
646

query I rowsort
SELECT DISTINCT + ( - 62 ) AS col1 FROM tab1
----
-62

query I rowsort
SELECT ALL ( tab1.col0 + - col2 ) * - col1 AS col0 FROM tab1
----
-70
1326
208

query I rowsort
SELECT DISTINCT 91 + 24 FROM tab1
----
115

query I rowsort
SELECT - + 50 * col1 - + col2 * + 51 AS col0 FROM tab1 AS cor0
----
-3407
-4054
-5546

query I rowsort
SELECT DISTINCT - col0 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT - ( - col2 ) - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col2 * col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - + ( - 72 ) * col2 FROM tab1 cor0
----
3888
4104
6912

onlyif mysql # use DIV operator for integer division
query I rowsort label-1902
SELECT + - col1 DIV - col0 - col2 FROM tab1 AS cor0
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-1902
SELECT + - col1 / - col0 - col2 FROM tab1 AS cor0
----
-46
-57
-96

query I rowsort
SELECT + - 21 AS col0 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + 17 * ( col2 ) + col0 FROM tab1 AS cor0
----
1033
1712
921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1905
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( col1 ) - ( - 87 ) * col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( col1 ) - ( - 87 ) * col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1906
SELECT - - CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT - - CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 * - col2 col0 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT + - col0 + col2 * - col0 + col2 FROM tab0 AS cor0
----
-69
-7305
-783

query I rowsort
SELECT ALL - ( - col2 ) * + ( + 24 ) + col2 * + cor0.col1 FROM tab2 AS cor0
----
1485
1558
2158

query I rowsort
SELECT ALL ( - col2 ) * + 75 + - col1 * - col2 - + col1 AS col2 FROM tab1 AS cor0
----
-2672
-3715
-5965

query I rowsort
SELECT - ( col1 ) * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + col0 + + cor0.col2 * - 65 AS col2 FROM tab2 AS cor0
----
-1612
-1748
-2391

query I rowsort
SELECT DISTINCT + 62 - 37 AS col1 FROM tab0
----
25

query I rowsort
SELECT + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT 23 - tab2.col1 FROM tab2
----
-36
-8
6

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - ( cor0.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT - col1 + + col0 * col2 DIV - col2 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-1918
SELECT - col1 + + col0 * col2 / - col2 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1919
SELECT - - col2 DIV - 97 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1919
SELECT - - col2 / - 97 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL col2 * 3 AS col1 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT ALL + col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1923
SELECT + col1 DIV ( + tab1.col0 ) + col2 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-1923
SELECT + col1 / ( + tab1.col0 ) + col2 FROM tab1
----
57
62
96

query I rowsort
SELECT - - 41 + + col1 + + col1 * ( - 5 ) AS col1 FROM tab2 AS cor0
----
-195
-27
-83

query I rowsort
SELECT ALL 72 + - col0 FROM tab1 AS cor0
----
-8
69
8

query I rowsort
SELECT 15 * + 23 AS col1 FROM tab1 AS cor0
----
345
345
345

query I rowsort
SELECT + + 60 - col1 * col0 FROM tab2 AS cor0
----
-1283
-157
-4542

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1928
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + ( + 91 ) * + col1 FROM tab2
----
1626
2828
5447

query I rowsort
SELECT - 47 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

query I rowsort
SELECT 93 * - 72 AS col2 FROM tab0 AS cor0
----
-6696
-6696
-6696

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT + + col0 DIV + 77 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1933
SELECT + + col0 / + 77 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL ( 11 ) - + cor2.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to da27e869fc10ad82b9cf862a66fb68b3

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT ALL - col1 * ( col2 * col0 ) AS col2 FROM tab0
----
-3395
-664118
-68112

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 97b43fbe79eecd0bc6921392403b666d

onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT DISTINCT tab2.col1 DIV col1 + + col0 + col0 * - 7 * col0 AS col2 FROM tab2
----
-335
-42509
-43607

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT tab2.col1 / col1 + + col0 + col0 * - 7 * col0 AS col2 FROM tab2
----
-335
-42509
-43607

query I rowsort
SELECT - tab2.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1940
SELECT DISTINCT - CAST( - 71 AS SIGNED ) AS col2 FROM tab1, tab2, tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT - CAST ( - 71 AS INTEGER ) AS col2 FROM tab1, tab2, tab2 cor0
----
71

query I rowsort
SELECT ALL col0 + 41 FROM tab1
----
105
121
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1942
SELECT - CAST( 44 * col1 AS SIGNED ) AS col1 FROM tab0
----
-3784
-4004
-4268

skipif mysql # not compatible
query I rowsort label-1942
SELECT - CAST ( 44 * col1 AS INTEGER ) AS col1 FROM tab0
----
-3784
-4004
-4268

onlyif mysql # use DIV operator for integer division
query I rowsort label-1943
SELECT ALL + 66 DIV - 13 FROM tab1 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL + 66 / - 13 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT col0 * + 56 AS col1 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT DISTINCT - - col2 + + col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1946
SELECT ALL ( cor0.col1 ) + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL ( cor0.col1 ) + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 91 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT ( 14 ) * col2 AS col2 FROM tab2
----
364
378
532

query I rowsort
SELECT DISTINCT col1 * + col1 * + 38 + - 15 * col0 FROM tab0
----
280688
313343
357017

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1951
SELECT DISTINCT + + col1 DIV 88 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT + + col1 / 88 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 33 FROM tab0, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT ALL - col1 * - col2 * col2 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1954
SELECT col1 + cor0.col0 * col1 DIV cor0.col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-1954
SELECT col1 + cor0.col0 * col1 / cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - col1 * 88 + + col1 + + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-14878
-16198
-17848

query I rowsort
SELECT 21 * col1 + ( ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
1892
2002
2134

query I rowsort
SELECT - cor1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT col1 * + col1 * col0 AS col1 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col2 FROM tab1, tab2 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - - 27 * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2106
-2133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * ( + col1 ) * - col2 col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2, tab0, tab0 AS cor0
----
26
27
38

query I rowsort
SELECT - + col0 + 1 FROM tab0 cor0
----
-23
-34
-88

query I rowsort
SELECT ALL - ( - 43 ) AS col1 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1965
SELECT - - 94 * col1 + col2 * + CAST( col2 AS SIGNED ) * col0 FROM tab1 cor0
----
11192
208876
738502

skipif mysql # not compatible
query I rowsort label-1965
SELECT - - 94 * col1 + col2 * + CAST ( col2 AS INTEGER ) * col0 FROM tab1 cor0
----
11192
208876
738502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 * 17 + + col0 col0 FROM tab1 AS cor0
----
-872
-888
-949

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1967
SELECT - ( + col2 ) + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT - ( + col2 ) + - col0 * 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-1968
SELECT + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1968
SELECT + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 59 AS col1 FROM tab1 AS cor0
----
113
116
155

query I rowsort
SELECT col2 * + 75 FROM tab1 AS cor0
----
4050
4275
7200

query I rowsort
SELECT DISTINCT + 62 FROM tab1, tab0 AS cor0
----
62

query I rowsort
SELECT DISTINCT + col1 * col1 * - col1 AS col1 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT DISTINCT + 50 * 11 FROM tab0
----
550

query I rowsort
SELECT ALL 31 * + col1 FROM tab0
----
2666
2821
3007

query I rowsort
SELECT - col2 + - cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL + col1 + + cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT - - col0 + col2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - 34 AS col0 FROM tab2, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 04947e895a04c00ea3cab9af228c0c43

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 ALL - + 80 + col1 FROM tab2 cor0
----
-21
-49
-63

query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - 43 * cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
-24768
-340603
-52675

query I rowsort
SELECT DISTINCT 41 * + col1 AS col1 FROM tab2
----
1271
2419
697

query I rowsort
SELECT 8 AS col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT ALL - 14 AS col0 FROM tab2
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - col0 * col2 * ( + col0 * - col2 + col1 ) AS col1 FROM tab2 cor0
----
29862
3993132
8960970

onlyif mysql # use DIV operator for integer division
query I rowsort label-1987
SELECT ALL - + 71 DIV - col0 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - + 71 / - col0 FROM tab2 AS cor0
----
0
0
10

query I rowsort
SELECT DISTINCT + 63 + col0 AS col0 FROM tab1 AS cor0
----
127
143
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor1.col1 - - 94 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
111
125
153

query I rowsort
SELECT col1 + + col1 * ( - col2 ) FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT - - col0 + col1 * + 68 + col1 FROM tab0 AS cor0
----
5958
6368
6728

query I rowsort
SELECT ALL - 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

query I rowsort
SELECT + col2 * + col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + col0 + - 15 AS col1 FROM tab1 AS cor0
----
-12
49
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 * col0 col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - + col2 * + 85 + + cor0.col1 FROM tab2 AS cor0
----
-2151
-2264
-3213

query I rowsort
SELECT + 7 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT ALL - 47 + tab0.col0 FROM tab0
----
-12
-23
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1999
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - 95 FROM tab1, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query I rowsort
SELECT ALL + col1 - + 77 * + col0 FROM tab0 AS cor0
----
-1762
-2598
-6762

query I rowsort
SELECT ALL 79 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + - ( 74 ) * + col2 - + col0 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
-479
103285
357032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 49 + + col2 FROM tab2 AS cor0
----
-11
-22
-23

query I rowsort
SELECT col2 * - col2 - tab1.col1 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + 15 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col1 ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 85 + + col0 * col0 * tab1.col0 AS col1 FROM tab1
----
112
262229
512085

query I rowsort
SELECT + col2 + + 89 AS col2 FROM tab1 AS cor0
----
143
146
185

onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT DISTINCT col1 * - tab0.col2 + 80 * col2 DIV ( ( tab0.col2 ) ) FROM tab0
----
-17
-2758
-7382

skipif mysql # not compatible
query I rowsort label-2011
SELECT DISTINCT col1 * - tab0.col2 + 80 * col2 / ( ( tab0.col2 ) ) FROM tab0
----
-17
-2758
-7382

onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT ALL + col2 DIV 30 + col0 AS col1 FROM tab0 AS cor0
----
25
35
91

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + col2 / 30 + col0 AS col1 FROM tab0 AS cor0
----
25
35
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2013
SELECT ALL col0 * CAST( 16 AS SIGNED ) * + col0 + - col0 AS col0 FROM tab2 AS cor0
----
777
97266
99777

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL col0 * CAST ( 16 AS INTEGER ) * + col0 + - col0 AS col0 FROM tab2 AS cor0
----
777
97266
99777

query I rowsort
SELECT DISTINCT + + col1 * col2 + col0 + col1 AS col2 FROM tab0 cor0
----
229
2948
7642

query I rowsort
SELECT col2 * 40 AS col0 FROM tab2 AS cor0
----
1040
1080
1520

query I rowsort
SELECT cor0.col0 * + col1 + col2 * col2 AS col1 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT DISTINCT + col2 * - col2 + + col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT col2 + col1 * col0 AS col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT - col1 * - col1 - col0 AS col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT + - col0 + 67 FROM tab0 AS cor0
----
-22
32
43

query I rowsort
SELECT - 49 * - tab1.col2 + col2 * col0 FROM tab1
----
12384
2808
6441

query I rowsort
SELECT - ( ( - col2 ) ) + 23 FROM tab1 AS cor0
----
119
77
80

query I rowsort
SELECT col1 - - ( tab1.col2 ) AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT - tab0.col2 * 72 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 698a6a7750df7b9bd1a2af33855a552a

query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 83 + 91 * - col0 AS col0 FROM tab2 AS cor0
----
-554
-7015
-7106

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2027
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + 36 * cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
165672
48348
7812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 col2 FROM tab1 cor0
----
11

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT col0 * + col0 + ( 9 * + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1234
8659
873

query I rowsort
SELECT + 75 + col1 * ( - 2 + - col0 ) * - cor0.col2 AS col0 FROM tab1 cor0
----
102411
37695
7095

query I rowsort
SELECT ALL ( + col1 ) + cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * - col1 + col1 - cor0.col0 FROM tab1 AS cor0
----
-154
-236
-653

onlyif mysql # use DIV operator for integer division
query I rowsort label-2036
SELECT DISTINCT col2 DIV col0 FROM tab2 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT col2 / col0 FROM tab2 cor0
----
0
3

query I rowsort
SELECT ALL - ( tab1.col2 ) AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL ( col1 ) * col1 + - col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT - ( col2 * col2 ) AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - cor0.col0 - - cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to 5b9ded363f55d1d4bbc85491d2b84046

query I rowsort
SELECT ALL + - cor0.col2 * - col2 * 95 FROM tab1 AS cor0
----
277020
308655
875520

query I rowsort
SELECT 92 FROM tab0, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - ( - tab1.col2 ) FROM tab1, tab2 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + - 98 + + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-41
23
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col2 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT 38 + + cor0.col2 FROM tab0 AS cor0
----
120
39
71

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7

query I rowsort
SELECT + + 19 + - col1 AS col0 FROM tab0 AS cor0
----
-67
-72
-78

query I rowsort
SELECT DISTINCT + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + 43 * col0 AS col2 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT col0 - - col2 * col2 FROM tab1
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2053
SELECT + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * col1 * - 25 AS col2 FROM tab0
----
-202475
-51600
-84875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - cor0.col2 + 16 AS col1 FROM tab2 AS cor0
----
-10
-11
-22

query I rowsort
SELECT ALL col1 * 2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + 53 + col2 FROM tab1 AS cor0
----
107
110
149

query I rowsort
SELECT ALL + col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + cor0.col0 * + cor0.col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 6 AS col2 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT - - col1 * + 24 AS col1 FROM tab0 AS cor0
----
2064
2184
2328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2064
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + 79 * col1 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + 79 * col1 * col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2065
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - col0 + + 2 FROM tab0 AS cor0
----
-2062
-3393
-8097

skipif mysql # not compatible
query I rowsort label-2065
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - col0 + + 2 FROM tab0 AS cor0
----
-2062
-3393
-8097

onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT + col0 DIV - ( + col1 ) + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-2066
SELECT + col0 / - ( + col1 ) + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-7
-79
-83

query I rowsort
SELECT + 90 * + cor0.col1 + col0 * col2 AS col1 FROM tab1 AS cor0
----
2502
4548
8850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + col0 + + tab1.col1 col1 FROM tab1
----
106
55
84

query I rowsort
SELECT - tab2.col2 + + 24 FROM tab2
----
-14
-2
-3

query I rowsort
SELECT ALL col0 * + col1 + 46 * + col1 * col2 - - col1 AS col2 FROM tab2
----
31076
38750
75225

query I rowsort
SELECT ALL - col1 * - ( col1 ) - tab0.col2 * + col2 FROM tab0
----
1557
6307
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT - 72 DIV col2 FROM tab0 AS cor0
----
-2
-72
0

skipif mysql # not compatible
query I rowsort label-2072
SELECT - 72 / col2 FROM tab0 AS cor0
----
-2
-72
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2073
SELECT ALL CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 68 + + col1 FROM tab0 AS cor0
----
18
23
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2075
SELECT + col2 + + col1 DIV + col1 FROM tab2 cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-2075
SELECT + col2 + + col1 / + col1 FROM tab2 cor0
----
27
28
39

query I rowsort
SELECT DISTINCT + 26 * + col2 + + col1 AS col2 FROM tab0 AS cor0
----
123
2223
944

query I rowsort
SELECT DISTINCT 67 + col2 AS col1 FROM tab2 AS cor0
----
105
93
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * - col2 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 94 * col2 AS col2 FROM tab0
----
3102
7708
94

query I rowsort
SELECT DISTINCT + ( - 39 ) * col0 AS col1 FROM tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT + + col2 + col1 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - col0 * ( - 8 ) FROM tab1
----
24
512
640

query I rowsort
SELECT col0 + 29 AS col1 FROM tab0
----
118
53
64

query I rowsort
SELECT + col0 * - ( 86 ) + - col2 * ( col0 ) AS col1 FROM tab1 cor0
----
-14560
-420
-9152

query I rowsort
SELECT - cor0.col0 * cor0.col0 + - col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL + col2 * + col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT cor0.col0 + - 74 - - col0 FROM tab1 AS cor0
----
-68
54
86

query I rowsort
SELECT col1 + + 93 * col1 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT 62 * - 57 FROM tab2 AS cor0
----
-3534
-3534
-3534

query I rowsort
SELECT + cor0.col1 * - col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - ( + cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + + 57 AS col0 FROM tab0 cor0
----
57
57
57

query I rowsort
SELECT + 98 + col0 AS col0 FROM tab0 AS cor0
----
122
133
187

query I rowsort
SELECT + 28 FROM tab2, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ( + col0 ) * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + - col1 * - col2 * + col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + + ( col2 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 13 + col2 AS col1 FROM tab0 AS cor0
----
14
46
95

query I rowsort
SELECT + col0 * + col1 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col0 + 57 AS col0 FROM tab0 AS cor0
----
-1168
-519
-7864

onlyif mysql # use DIV operator for integer division
query I rowsort label-2102
SELECT ALL col1 * + col2 - - 75 DIV col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-2102
SELECT ALL col1 * + col2 - - 75 / col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - 69 + col2 AS col1 FROM tab1 AS cor0
----
-12
-15
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 * col1 col2 FROM tab0 AS cor0
----
3698
3913
4171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + cor0.col0 col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - 69 + col0 AS col2 FROM tab1 AS cor0
----
-5
-66
11

query I rowsort
SELECT - - col0 * col1 - col1 * cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
12804
246132
687141

query I rowsort
SELECT - col1 * col0 + + col1 * + 52 + col1 FROM tab1 AS cor0
----
-110
-351
1300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) - + cor0.col1 * col1 col0 FROM tab1 cor0
----
-157
-265
-730

query I rowsort
SELECT - col2 + ( 57 ) FROM tab1 AS cor0
----
-39
0
3

query I rowsort
SELECT + 63 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT DISTINCT col1 + - col0 * 56 AS col0 FROM tab1
----
-142
-3574
-4467

query I rowsort
SELECT - + col0 * + ( col2 ) + col1 * col2 AS col0 FROM tab1 cor0
----
-3078
-6432
1242

query I rowsort
SELECT col2 * ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ( 48 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT + col1 + + cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-2117
SELECT + col1 + + cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT + col1 + 46 FROM tab1 AS cor0
----
56
59
72

query I rowsort
SELECT - + col1 + - col1 + col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT col2 * ( 20 ) + - col2 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT + col1 * 32 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT col2 * + col0 * - 11 FROM tab1
----
-1782
-40128
-84480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * + col2 col2 FROM tab0
----
2409
5986
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT tab0.col1 * col1 DIV - col1 AS col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2124
SELECT tab0.col1 * col1 / - col1 AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 * - col1 col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - col0 + col2 * + cor0.col0 * - col1 FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT DISTINCT + 92 FROM tab2, tab1 cor0
----
92

query I rowsort
SELECT + col1 * 91 FROM tab0
----
7826
8281
8827

query I rowsort
SELECT + 36 * + cor0.col1 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT ALL 21 * col1 AS col2 FROM tab0 cor0
----
1806
1911
2037

query I rowsort
SELECT 34 + 44 - tab1.col1 FROM tab1, tab0 cor0
----
9 values hashing to 00d5bf967485ac3653e20be3bb4337d8

query I rowsort
SELECT ALL - col0 + col1 * 88 AS col2 FROM tab2
----
1417
2721
5114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - tab2.col0 col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL + cor0.col1 * - col0 * - 64 + - col1 * col0 * + col2 AS col2 FROM tab2 AS cor0
----
174876
34918
8029

query I rowsort
SELECT DISTINCT cor1.col0 * + 55 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1320
1925
4895

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 cor0, tab2 cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2138
SELECT 53 DIV col2 FROM tab0
----
0
1
53

skipif mysql # not compatible
query I rowsort label-2138
SELECT 53 / col2 FROM tab0
----
0
1
53

query I rowsort
SELECT 8 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT col2 * + tab1.col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + - 9 + + col2 FROM tab1 AS cor0
----
45
48
87

query I rowsort
SELECT + 21 * + col1 AS col2 FROM tab2 AS cor0
----
1239
357
651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 + - col1 col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - col1 + - col0 * + col1 * col0 AS col2 FROM tab2 cor0
----
-106114
-1550
-359015

query I rowsort
SELECT ALL + col2 * col1 AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2146
SELECT + col2 DIV col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2146
SELECT + col2 / col2 FROM tab0 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col2 col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col1 * + col0 + + col2 FROM tab1
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT ALL + tab1.col1 + tab1.col0 DIV col0 + col0 * col0 * tab1.col2 FROM tab1
----
233483
513
614414

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL + tab1.col1 + tab1.col0 / col0 + col0 * col0 * tab1.col2 FROM tab1
----
233483
513
614414

query I rowsort
SELECT DISTINCT - col2 + col0 * + col1 + col0 * col1 FROM tab2
----
2648
407
9178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + + col1 col2 FROM tab1
----
20
26
52

query I rowsort
SELECT cor0.col0 * col0 * - cor0.col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT ALL + col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col1 + + col1 * col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT col1 - + col1 * + col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - col2 * col0 AS col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2157
SELECT DISTINCT tab2.col1 * col2 DIV - col0 FROM tab2
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT tab2.col1 * col2 / - col0 FROM tab2
----
-119
-19
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2158
SELECT DISTINCT col0 * col1 DIV + col1 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT col0 * col1 / + col1 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - + cor0.col2 + + col1 * - cor0.col2 FROM tab2 cor0
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab0.col0 col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - col0 * + col1 + col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL + + col2 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT 26 + tab2.col0 AS col1 FROM tab2
----
104
105
33

query I rowsort
SELECT DISTINCT 48 * + col0 + + col1 * - col1 FROM tab1
----
-532
2972
3671

onlyif mysql # use DIV operator for integer division
query I rowsort label-2165
SELECT - ( col1 ) DIV tab1.col2 + col2 AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2165
SELECT - ( col1 ) / tab1.col2 + col2 AS col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + + col1 * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT col2 * - col0 + - col1 FROM tab2
----
-2087
-220
-3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-2169
SELECT DISTINCT + col0 * col2 + col2 DIV + col2 AS col1 FROM tab0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-2169
SELECT DISTINCT + col0 * col2 + col2 / + col2 AS col1 FROM tab0
----
36
7299
793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 + tab0.col2 col0 FROM tab0
----
-33
42
75

query I rowsort
SELECT ALL + cor0.col0 * + col2 * col1 + col2 FROM tab0 AS cor0
----
3396
664200
68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT DISTINCT col1 * col2 DIV - col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT col1 * col2 / - col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 * col0 col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT - col2 - tab1.col0 AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT col1 * - tab2.col1 + col0 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT - col0 + + tab0.col2 * + col1 AS col2 FROM tab0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT + col1 * + col2 - - col1 DIV - col1 FROM tab1
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-2177
SELECT + col1 * + col2 - - col1 / - col1 FROM tab1
----
1247
1403
569

query I rowsort
SELECT col2 + - col2 * tab1.col2 + col2 * + col0 AS col2 FROM tab1
----
-1440
-2700
456

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2180
SELECT ALL + col1 DIV col1 - + col0 * - col1 AS col0 FROM tab2
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL + col1 / col1 - + col0 * - col1 AS col0 FROM tab2
----
1344
218
4603

query I rowsort
SELECT ALL - tab1.col2 * + col2 FROM tab1
----
-2916
-3249
-9216

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <> - col2
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE ( - col0 ) >= NULL
----

query I rowsort
SELECT col2 * col0 + col1 * - col2 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT - - cor0.col0 + col0 + - col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
167
2886
7640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col1 * 3 col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-2188
SELECT DISTINCT + col2 DIV - cor0.col0 - - col2 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT + col2 / - cor0.col0 - - col2 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT ALL - - 26 + - col2 * 6 AS col1 FROM tab1 cor0
----
-298
-316
-550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + col0 col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL 6 FROM tab1, tab0 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL col0 * - col0 * + col2 FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT + + col0 DIV col2 + + col0 * + col1 + + col2 FROM tab0 AS cor0
----
2097
3431
8182

skipif mysql # not compatible
query I rowsort label-2193
SELECT + + col0 / col2 + + col0 * + col1 + + col2 FROM tab0 AS cor0
----
2097
3431
8182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 col0 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT ALL cor0.col0 DIV col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL cor0.col0 / col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2196
SELECT - tab1.col1 DIV - tab1.col0 + + col2 AS col2 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-2196
SELECT - tab1.col1 / - tab1.col0 + + col2 AS col2 FROM tab1
----
57
62
96

query III rowsort
SELECT * FROM tab0 WHERE ( col0 + - col0 ) NOT IN ( tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 * col1 * tab1.col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL - tab1.col1 + + tab1.col2 * col2 FROM tab1
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-2200
SELECT col2 * col2 + col2 DIV col0 AS col2 FROM tab2
----
1444
676
732

skipif mysql # not compatible
query I rowsort label-2200
SELECT col2 * col2 + col2 / col0 AS col2 FROM tab2
----
1444
676
732

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > col0 / col1
----

query I rowsort
SELECT + col2 * col1 / - col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - col0 + col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT ALL + col2 DIV - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL + col2 / - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col1 * + col1 * - col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT col2 + col0 * col2 + + col2 * + col0 AS col0 FROM tab0
----
14678
1617
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL - col1 + + col1 + + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT col1 * col1 * col1 AS col0 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT col2 FROM tab0 WHERE NULL NOT IN ( + tab0.col1 * col0 / - col2 + + col1 * tab0.col0 * - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE tab2.col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT ALL - col1 DIV - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL - col1 / - col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + col2 * col0 + + tab0.col1 + + col2 FROM tab0
----
133
7471
911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col1 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 - + col0 col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT DISTINCT + tab2.col2 + col2 + col1 FROM tab2
----
111
85
93

query I rowsort
SELECT ALL - col2 * tab0.col0 * - col0 AS col2 FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT DISTINCT - col1 + - tab1.col1 DIV col1 AS col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT - col1 + - tab1.col1 / col1 AS col1 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT ALL col2 * col1 + - col0 * col0 AS col2 FROM tab1 WHERE NOT ( col1 + col2 ) BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2220
SELECT DISTINCT + col1 + + col1 DIV + col2 + col2 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT + col1 + + col1 / + col2 + col2 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + + col0 + + col0 col2 FROM tab1
----
192
240
9

query I rowsort
SELECT + col1 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
210
3403
954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 17 ) col1 FROM tab1
----
17
17
17

query I rowsort
SELECT + col0 + col1 * col0 * col1 AS col2 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT - - col2 * + col2 + - col1 AS col2 FROM tab1 AS cor0
----
2890
3239
9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2226
SELECT - CAST( NULL AS DECIMAL ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2226
SELECT - CAST ( NULL AS REAL ) * - col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * + col1 col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + 98 * - col0 AS col1 FROM tab2
----
-686
-7644
-7742

query I rowsort
SELECT ALL - 71 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT - - 95 + col1 * col2 AS col2 FROM tab0 AS cor0
----
192
2933
7557

query I rowsort
SELECT - 74 * - col2 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT + col1 - - col0 * - ( col0 * - col2 + + tab1.col1 ) FROM tab1
----
232842
434
613373

query I rowsort
SELECT + 81 * col2 - - 0 AS col0 FROM tab0
----
2673
6642
81

query I rowsort
SELECT 55 + col1 * 18 FROM tab0
----
1603
1693
1801

query I rowsort
SELECT - 31 FROM tab1, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT + - col0 * + 87 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT DISTINCT - 39 FROM tab2, tab1 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col1 * - col0 * cor0.col1 col2 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT - + 97 + - cor0.col2 FROM tab2 AS cor0
----
-123
-124
-135

query I rowsort
SELECT - col0 + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT + 86 AS col1 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT + + col0 * cor0.col1 + col2 - col1 * 26 AS col0 FROM tab1 AS cor0
----
-544
437
798

query I rowsort
SELECT - 48 * - 51 + col2 FROM tab2 AS cor0
----
2474
2475
2486

query I rowsort
SELECT - 33 - + col1 * col1 FROM tab2
----
-322
-3514
-994

query I rowsort
SELECT ( - 9 ) + col2 AS col1 FROM tab1
----
45
48
87

query I rowsort
SELECT 11 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 + col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-2248
SELECT + col0 + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2248
SELECT + col0 + col1 / + col1 AS col1 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2249
SELECT ALL - col0 + + col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - col0 + + col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL - col0 - + col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + 71 AS col2 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + 38 + col2 * + col1 FROM tab2 AS cor0
----
1572
684
875

query I rowsort
SELECT + - col0 * col0 - - col1 * col2 FROM tab0 AS cor0
----
-1128
-459
2262

query I rowsort
SELECT DISTINCT 67 + col1 FROM tab0 AS cor0
----
153
158
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 35 * + col1 - - col0 col2 FROM tab0 AS cor0
----
-2986
-3096
-3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-2256
SELECT - + 49 DIV + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2256
SELECT - + 49 / + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT CAST( NULL AS DECIMAL ) * tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT CAST ( NULL AS REAL ) * tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 col2 FROM tab2
----
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2259
SELECT - col2 DIV 61 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2259
SELECT - col2 / 61 FROM tab1
----
-1
0
0

query I rowsort
SELECT col1 + - col0 - + col0 FROM tab0 AS cor0
----
-87
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2261
SELECT ALL - 89 DIV col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - 89 / col1 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT + col1 + - col2 DIV col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-64
24

skipif mysql # not compatible
query I rowsort label-2262
SELECT + col1 + - col2 / col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-64
24

query I rowsort
SELECT ALL + - 23 AS col1 FROM tab2 cor0
----
-23
-23
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT - col1 DIV col2 + - col0 * + cor0.col1 AS col2 FROM tab0 cor0
----
-2066
-3492
-8100

skipif mysql # not compatible
query I rowsort label-2264
SELECT - col1 / col2 + - col0 * + cor0.col1 AS col2 FROM tab0 cor0
----
-2066
-3492
-8100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 9 + col2 AS col0 FROM tab2 AS cor0
----
17
18
29

query I rowsort
SELECT ALL ( - col0 ) * cor0.col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-13824
-42875
-704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( col1 ) col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - tab2.col2 * - 98 FROM tab2
----
2548
2646
3724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2270
SELECT col1 * - 94 + - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-8084
-8554
-9118

skipif mysql # not compatible
query I rowsort label-2270
SELECT col1 * - 94 + - col0 / - col1 AS col0 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT + col0 * col0 * 26 FROM tab1 AS cor0
----
106496
166400
234

query I rowsort
SELECT ALL + col0 + ( col1 ) * col2 AS col0 FROM tab2 cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 75 col1 FROM tab0 AS cor0
----
-2475
-6150
-75

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 - col2 * - 63 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT DISTINCT + col0 * + col1 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - - col2 + col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL - col2 - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL - ( + cor0.col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col1 + - 32 * - col2 AS col0 FROM tab1 AS cor0
----
1754
1834
3085

onlyif mysql # use DIV operator for integer division
query I rowsort label-2281
SELECT ALL 78 DIV 41 + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL 78 / 41 + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT + - col1 * + ( col0 * col0 ) FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - 6 FROM tab2, tab1 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2285
SELECT col1 DIV - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2285
SELECT col1 / - col0 AS col1 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - + col1 + - cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - col2 * - ( col1 ) * col2 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT DISTINCT col0 * + 84 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT + col1 * + ( 78 ) FROM tab1 AS cor0
----
1014
2028
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-2290
SELECT - col2 DIV col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-2290
SELECT - col2 / col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
32
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * ( + col2 ) col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col1 + col2 * + col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT col0 + col0 * col2 * - col1 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT - col2 + ( - col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL col2 * - ( cor0.col2 ) - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT + cor0.col1 * + col0 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + - col1 * - 15 * cor0.col1 + - col2 FROM tab1 AS cor0
----
10086
1443
2439

query I rowsort
SELECT - col0 * - cor0.col2 AS col1 FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( 53 AS REAL ) * - col0 AS col2 FROM tab2 AS cor0
----
-371
-4134
-4187

query I rowsort
SELECT DISTINCT - col2 + + ( + 69 ) AS col2 FROM tab0
----
-13
36
68

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT - 29 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1102
754
783

query I rowsort
SELECT ALL - col2 * + col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2304
SELECT ALL cor0.col1 + CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL cor0.col1 + CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col1 + - 62 AS col2 FROM tab2
----
-3
-31
-45

query I rowsort
SELECT 57 + + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1295fcc3f53ccb8d670657c738f5123d

query I rowsort
SELECT DISTINCT + 52 * col2 * - ( 64 ) AS col1 FROM tab1 AS cor0
----
-179712
-189696
-319488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 + col0 col2 FROM tab0 AS cor0
----
144
79
90

query I rowsort
SELECT ALL - + 40 AS col0 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL + - 95 + + col0 AS col1 FROM tab0 AS cor0
----
-6
-60
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2311
SELECT col1 DIV + col2 + 32 + col2 AS col2 FROM tab0 AS cor0
----
115
130
67

skipif mysql # not compatible
query I rowsort label-2311
SELECT col1 / + col2 + 32 + col2 AS col2 FROM tab0 AS cor0
----
115
130
67

query I rowsort
SELECT DISTINCT col0 * col0 + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + 98 * - tab0.col1 * col0 FROM tab0
----
-202272
-332710
-793702

query I rowsort
SELECT DISTINCT + 50 + - col1 AS col0 FROM tab1
----
24
37
40

query I rowsort
SELECT DISTINCT + + 27 * col2 AS col1 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT DISTINCT col2 * tab1.col2 + + col1 AS col0 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + ( col1 * - 73 ) + - 42 AS col2 FROM tab2
----
-1283
-2305
-4349

onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT DISTINCT tab1.col0 DIV col0 + + col0 * col2 * col1 AS col0 FROM tab1
----
36481
4213
99841

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT tab1.col0 / col0 + + col0 * col2 * col1 AS col0 FROM tab1
----
36481
4213
99841

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2319
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2319
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + cor0.col0 + - col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT - - col2 - + col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + 79 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2323
SELECT col2 DIV tab0.col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2323
SELECT col2 / tab0.col0 FROM tab0
----
0
0
1

query I rowsort
SELECT 95 FROM tab0, tab2 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT - - 68 AS col1 FROM tab2, tab1, tab2 cor0, tab0
----
68

query I rowsort
SELECT cor0.col1 * - col0 - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + col0 * + ( - ( col0 ) ) + + col1 * cor0.col0 * col2 FROM tab0 AS cor0
----
2170
656197
67536

query I rowsort
SELECT DISTINCT + col2 * + 81 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT ( 40 + + col0 * + 54 ) AS col2 FROM tab2
----
418
4252
4306

query I rowsort
SELECT DISTINCT + col0 - + col0 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col0 - ( + col2 ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - ( - col0 ) * ( col0 ) + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL col0 * col1 + 45 FROM tab2 AS cor0
----
1388
262
4647

onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT DISTINCT - - col2 + col2 DIV - 91 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - - col2 + col2 / - 91 + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + cor0.col2 * col2 - + cor0.col0 AS col2 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT ALL + col0 + - col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT col0 * + col0 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2262
1128
459

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2338
SELECT col1 + + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2338
SELECT col1 + + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 73 + col2 + col0 * col2 FROM tab2 AS cor0
----
-2727
-295
-3640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2340
SELECT - CAST( NULL AS SIGNED ) * - 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2340
SELECT - CAST ( NULL AS INTEGER ) * - 52 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 42 FROM tab1, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL + 33 FROM tab0, tab2 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT 29 * + 97 FROM tab1
----
2813
2813
2813

query I rowsort
SELECT + col2 * col1 * + col0 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT ( 62 ) * col1 * - col1 FROM tab0
----
-458552
-513422
-583358

query I rowsort
SELECT - 91 AS col2 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - + 63 AS col2 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT DISTINCT - col0 * col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL ( col0 ) - - col2 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col0 FROM tab1
----
64
64
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT ALL + col2 DIV + tab0.col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + col2 / + tab0.col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 * - col1 * - col2 AS col2 FROM tab1
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT ALL 93 DIV col2 FROM tab0
----
1
2
93

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL 93 / col2 FROM tab0
----
1
2
93

query I rowsort
SELECT - col1 * - 19 FROM tab2 AS cor0
----
1121
323
589

query I rowsort
SELECT DISTINCT + 1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query I rowsort
SELECT DISTINCT 94 * - cor0.col1 FROM tab2, tab1 AS cor0
----
-1222
-2444
-940

query I rowsort
SELECT ALL col0 * ( + col0 ) AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT col0 + ( - cor0.col0 + - col1 ) * + ( + cor0.col0 + - ( col1 ) ) FROM tab1 cor0
----
-3932
-6151
670

onlyif mysql # use DIV operator for integer division
query I rowsort label-2359
SELECT DISTINCT - cor0.col0 DIV 14 AS col2 FROM tab1, tab0, tab0 AS cor0
----
-1
-2
-6

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT - cor0.col0 / 14 AS col2 FROM tab1, tab0, tab0 AS cor0
----
-1
-2
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + ( col2 ) * cor0.col0 col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - 54 + col1 FROM tab0 AS cor0
----
32
37
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2362
SELECT + - ( + 59 ) DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2362
SELECT + - ( + 59 ) / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * + 3 AS col0 FROM tab2 AS cor0
----
-177
-51
-93

query I rowsort
SELECT ALL - col2 * ( + col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 96 + col2 AS col2 FROM tab1 cor0
----
150
153
192

query I rowsort
SELECT DISTINCT - - col1 + col1 * - col1 FROM tab0 cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - + 95 * + ( col0 ) FROM tab0 AS cor0
----
-2280
-3325
-8455

query I rowsort
SELECT - + col1 * 58 FROM tab1 cor0
----
-1508
-580
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT + col0 DIV + 99 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2369
SELECT + col0 / + 99 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col0 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT 27 + col1 AS col0 FROM tab2 AS cor0
----
44
58
86

query I rowsort
SELECT + 71 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT DISTINCT ( - 69 ) FROM tab0, tab1 AS cor0
----
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-2374
SELECT DISTINCT - - col0 DIV + 25 AS col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT - - col0 / + 25 AS col2 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT 12 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + + col2 + - 31 * - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
142688
41671
6754

query I rowsort
SELECT ALL 36 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL ( - col1 ) + - tab0.col1 AS col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT ALL - tab1.col0 + 62 FROM tab1
----
-18
-2
59

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 cor0, tab2 AS cor1
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

query I rowsort
SELECT + 70 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
80
83
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2383
SELECT DISTINCT - + CAST( - col0 AS SIGNED ) * col0 + 16 AS col2 FROM tab0 AS cor0
----
1241
592
7937

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT - + CAST ( - col0 AS INTEGER ) * col0 + 16 AS col2 FROM tab0 AS cor0
----
1241
592
7937

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2384
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 + col0 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - ( + cor0.col0 ) FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + + 44 + + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7440
8325
9453

query I rowsort
SELECT ALL - 94 + - 21 * col1 * + col0 AS col1 FROM tab1
----
-13534
-1732
-21934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2388
SELECT CAST( NULL AS SIGNED ) + + col2 * tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT CAST ( NULL AS INTEGER ) + + col2 * tab1.col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col1 ) + ( + col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT - col0 * + col2 + 51 AS col1 FROM tab2 AS cor0
----
-138
-1977
-2951

query I rowsort
SELECT ALL + + col1 + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - col0 * - col1 + + 90 FROM tab1 AS cor0
----
1130
168
730

query I rowsort
SELECT ALL - 41 * - cor0.col2 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT - col0 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT - 40 * col1 AS col1 FROM tab1 AS cor0
----
-1040
-400
-520

query I rowsort
SELECT - 96 * - tab0.col2 AS col0 FROM tab0
----
3168
7872
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2397
SELECT ALL - col1 + - col0 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - col1 + - col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2398
SELECT DISTINCT + col0 * + col2 + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT + col0 * + col2 + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT + + col0 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2399
SELECT + + col0 / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col0 + + col1 * col2 + col1 AS col1 FROM tab1
----
1341
1433
644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - col2 + + cor0.col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - - col0 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab2 AS cor0
----
60

query I rowsort
SELECT ALL 56 + col2 AS col0 FROM tab1 cor0
----
110
113
152

query I rowsort
SELECT col0 * col1 + ( 31 ) AS col0 FROM tab0 AS cor0
----
2095
3426
8130

query I rowsort
SELECT + 40 * - 33 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 97137395a3e088f23e2f20a3724e12bf

query I rowsort
SELECT DISTINCT - + cor0.col0 + + ( - 67 ) * + col1 FROM tab1 cor0
----
-1745
-734
-951

query I rowsort
SELECT ALL - + col0 + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 * 60 FROM tab0 AS cor0
----
-1440
-2100
-5340

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2411
SELECT + + col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT + + col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 78 AS col2 FROM tab2 AS cor0
----
104
105
116

onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT ALL - col0 DIV + 15 - 3 AS col0 FROM tab0 AS cor0
----
-4
-5
-8

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL - col0 / + 15 - 3 AS col0 FROM tab0 AS cor0
----
-4
-5
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 91 - col0 * cor0.col0 col1 FROM tab2 AS cor0
----
-2783
-3718
2408

query I rowsort
SELECT DISTINCT - cor0.col2 * - 28 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT - col1 * - col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + + col2 + col2 + + 81 AS col0 FROM tab0 AS cor0
----
147
245
83

query I rowsort
SELECT DISTINCT 97 + 62 FROM tab0 AS cor0
----
159

query I rowsort
SELECT DISTINCT - col1 + 54 AS col0 FROM tab0 AS cor0
----
-32
-37
-43

query I rowsort
SELECT - ( 89 ) AS col2 FROM tab1 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + - 67 * 98 + col0 AS col0 FROM tab1 AS cor0
----
-6486
-6502
-6563

query I rowsort
SELECT ALL 86 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2423
SELECT ALL - CAST( 19 AS SIGNED ) * col0 + ( 40 * col0 ) - 99 AS col0 FROM tab1 AS cor0
----
-36
1245
1581

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - CAST ( 19 AS INTEGER ) * col0 + ( 40 * col0 ) - 99 AS col0 FROM tab1 AS cor0
----
-36
1245
1581

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query I rowsort
SELECT ALL - 52 * col0 * - cor0.col2 + + 17 AS col2 FROM tab0 AS cor0
----
1837
379513
41201

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT + - 28 * + col1 FROM tab0 AS cor0
----
-2408
-2548
-2716

query I rowsort
SELECT 2 * col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + 61 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
1150
62
6785

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 col0 FROM tab0 cor0
----
83
83
83

query I rowsort
SELECT + col0 * - 99 FROM tab2 AS cor0
----
-693
-7722
-7821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 58 col2 FROM tab1 AS cor0
----
-22
-6
55

skipif mysql # not compatible
query I rowsort
SELECT col2 * ( + 62 ) + - col0 * - CAST ( - col0 * col1 AS REAL ) FROM tab2
----
-103741
-357344
155

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2434
SELECT - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2434
SELECT - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * ( + col2 ) + - col1 * col1 AS col0 FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT ( 39 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 3 ) col2 FROM tab0, tab2 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT col1 * col0 - - 4 FROM tab0 AS cor0
----
2068
3399
8103

query I rowsort
SELECT + 10 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT + 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + 32 * col1 + + ( 80 ) * col1 FROM tab2
----
1904
3472
6608

query I rowsort
SELECT + - col2 * + col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 29 FROM tab1, tab2 AS cor0
----
29

query I rowsort
SELECT + col2 * + cor0.col1 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 * + 44 + - cor0.col2 col0 FROM tab0 AS cor0
----
-149381
-356438
-90849

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + - col1 * + 60 AS col1 FROM tab1 cor0
----
-1560
-600
-780

query I rowsort
SELECT col1 * - ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + + 34 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1191
-542
-7887

query I rowsort
SELECT ALL col1 * col1 + + col0 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT cor0.col2 + 58 * - col2 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT - ( 28 ) * - col1 FROM tab1 AS cor0
----
280
364
728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2453
SELECT ALL + + 17 DIV - col2 - + col1 FROM tab0 AS cor0
----
-114
-86
-91

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + + 17 / - col2 - + col1 FROM tab0 AS cor0
----
-114
-86
-91

query I rowsort
SELECT ALL - cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 + col0 * col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT + - ( + col0 ) * 20 FROM tab1 AS cor0
----
-1280
-1600
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 38 * col2 col1 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT ALL ( - col0 + - col0 ) AS col2 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT 66 * - 47 FROM tab1
----
-3102

query I rowsort
SELECT - 57 + + col1 FROM tab2 cor0
----
-26
-40
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2461
SELECT ALL - 25 DIV - col2 FROM tab0 AS cor0
----
0
0
25

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - 25 / - col2 FROM tab0 AS cor0
----
0
0
25

query I rowsort
SELECT ALL - - ( col1 ) + cor0.col2 * col1 - - col0 AS col2 FROM tab1 cor0
----
1341
1433
644

query I rowsort
SELECT + 21 AS col0 FROM tab1
----
21
21
21

query I rowsort
SELECT ALL + cor1.col1 + cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0cb793b50a400e8b905f92ad22c8878f

query I rowsort
SELECT DISTINCT + 31 + col0 FROM tab0
----
120
55
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2466
SELECT + 37 + col0 DIV + 20 AS col0 FROM tab2
----
37
40
40

skipif mysql # not compatible
query I rowsort label-2466
SELECT + 37 + col0 / + 20 AS col0 FROM tab2
----
37
40
40

query I rowsort
SELECT DISTINCT - col1 - - 53 AS col2 FROM tab0 AS cor0
----
-33
-38
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + 60 col0 FROM tab0 AS cor0
----
-29
25
36

query I rowsort
SELECT ALL - col2 * - 78 + col1 * cor0.col1 FROM tab0 AS cor0
----
14677
9487
9970

query I rowsort
SELECT - col1 * col1 + - tab0.col0 FROM tab0
----
-7420
-8370
-9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2471
SELECT DISTINCT ( col2 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT DISTINCT ( col2 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT 78 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to f0487ba81d377516702723e098c02ba1

query I rowsort
SELECT + 35 * + col0 - - tab2.col2 FROM tab2
----
272
2756
2803

onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT tab2.col0 DIV - ( + 76 ) AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT tab2.col0 / - ( + 76 ) AS col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT 31 FROM tab0, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT DISTINCT + - col1 * col0 * col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + + ( + col2 ) * - col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + - col1 * + col2 + - col2 * col0 - col0 FROM tab2 cor0
----
-1033
-3640
-3727

query I rowsort
SELECT DISTINCT ( + 12 ) + col1 AS col1 FROM tab0 AS cor0
----
103
109
98

query I rowsort
SELECT ALL + - 70 FROM tab2 AS cor0
----
-70
-70
-70

query I rowsort
SELECT col2 + - col2 + + cor0.col1 * 91 FROM tab1 AS cor0
----
1183
2366
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT tab0.col1 - ( 89 * + col1 ) AS col1 FROM tab0
----
-7568
-8008
-8536

query I rowsort
SELECT ALL col2 - - 46 FROM tab1
----
100
103
142

query I rowsort
SELECT col2 + - 25 + col1 FROM tab2
----
30
33
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2486
SELECT col1 * col0 DIV col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2486
SELECT col1 * col0 / col0 FROM tab1
----
10
13
26

query I rowsort
SELECT col0 * ( - 15 ) AS col2 FROM tab2
----
-105
-1170
-1185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2488
SELECT - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2489
SELECT DISTINCT ( col1 ) DIV - col0 + col2 + + 55 * - col0 AS col1 FROM tab1
----
-119
-3463
-4304

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT ( col1 ) / - col0 + col2 + + 55 * - col0 AS col1 FROM tab1
----
-119
-3463
-4304

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query I rowsort
SELECT DISTINCT - col2 + - col2 * - col2 FROM tab2 cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-2492
SELECT - + col2 * col1 + col0 - ( - cor0.col2 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-1167
-1400
-505

skipif mysql # not compatible
query I rowsort label-2492
SELECT - + col2 * col1 + col0 - ( - cor0.col2 ) / + col2 AS col0 FROM tab1 AS cor0
----
-1167
-1400
-505

query I rowsort
SELECT - col0 * + col2 + col2 * col2 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT DISTINCT - ( col0 ) + + col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT cor0.col2 * 50 + col2 FROM tab1 AS cor0
----
2754
2907
4896

query I rowsort
SELECT ( 91 ) - col0 FROM tab2 AS cor0
----
12
13
84

query I rowsort
SELECT - col0 - col2 * - 84 * - 7 FROM tab1
----
-31755
-33580
-56528

query I rowsort
SELECT ALL col2 * 78 FROM tab1 cor0
----
4212
4446
7488

onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT DISTINCT col1 DIV 18 AS col0 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT col1 / 18 AS col0 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT - cor0.col0 * - 94 AS col2 FROM tab1 AS cor0
----
282
6016
7520

onlyif mysql # use DIV operator for integer division
query I rowsort label-2501
SELECT col2 DIV 33 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2501
SELECT col2 / 33 FROM tab1 AS cor0
----
1
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT + + col1 DIV + ( - 33 ) FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2502
SELECT + + col1 / + ( - 33 ) FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT + - col2 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-2503
SELECT + - col2 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT tab1.col2 + - tab1.col2 * + 45 FROM tab1
----
-2376
-2508
-4224

query I rowsort
SELECT ALL - 41 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query I rowsort
SELECT - col2 + 1 AS col2 FROM tab2
----
-25
-26
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT ALL + col1 + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL + col1 + col2 / col2 AS col1 FROM tab1 AS cor0
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-2508
SELECT - cor0.col0 DIV - col0 AS col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2508
SELECT - cor0.col0 / - col0 AS col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 * - 50 AS col2 FROM tab2 AS cor0
----
1300
1350
1900

onlyif mysql # use DIV operator for integer division
query I rowsort label-2510
SELECT - col2 DIV + 56 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT - col2 / + 56 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - cor0.col2 * + 81 AS col2 FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT ALL col1 + 10 FROM tab1 AS cor0
----
20
23
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-2514
SELECT col2 - 50 * col2 DIV col2 AS col2 FROM tab1 AS cor0
----
4
46
7

skipif mysql # not compatible
query I rowsort label-2514
SELECT col2 - 50 * col2 / col2 AS col2 FROM tab1 AS cor0
----
4
46
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 + + 74 * col0 col0 FROM tab2
----
525
5850
5925

query I rowsort
SELECT DISTINCT - 87 + col2 * col2 * col1 AS col1 FROM tab0 AS cor0
----
10
611797
93567

query I rowsort
SELECT - 19 + 23 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT DISTINCT 84 + 73 * col0 AS col1 FROM tab2 AS cor0
----
5778
5851
595

query I rowsort
SELECT DISTINCT - 54 * + col1 + + col1 + + cor0.col1 FROM tab2 AS cor0
----
-1612
-3068
-884

onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT DISTINCT - + cor0.col1 * 35 + col2 * col1 DIV - col1 FROM tab0 AS cor0
----
-3043
-3267
-3396

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT - + cor0.col1 * 35 + col2 * col1 / - col1 FROM tab0 AS cor0
----
-3043
-3267
-3396

query I rowsort
SELECT - 29 + 18 FROM tab2 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * + col2 + - col1 col2 FROM tab1 AS cor0
----
-1376
-1435
-2413

query I rowsort
SELECT ALL - 92 + + ( col0 ) FROM tab0 AS cor0
----
-3
-57
-68

query I rowsort
SELECT DISTINCT + cor0.col1 * cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
9 values hashing to 2dce99ccc9ab3f12533423eaad01995c

query I rowsort
SELECT + + 52 AS col2 FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + - col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT ( 56 ) + - col0 * - 38 * col1 FROM tab0
----
129066
307818
78488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col0 * - 59 col0 FROM tab0 AS cor0
----
-2065
-430582
-46728

query I rowsort
SELECT DISTINCT - 7 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-7

query I rowsort
SELECT DISTINCT 45 * - col0 AS col2 FROM tab0 cor0
----
-1080
-1575
-4005

query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col2 AS col2 FROM tab1 cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * - col0 col1 FROM tab0 AS cor0
----
-1400
-3560
-960

query I rowsort
SELECT ALL - col1 + col2 * col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT 45 * col1 AS col1 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT DISTINCT ( - col1 ) * + 1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - tab0.col0 * - col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - col2 * + col1 + 34 AS col1 FROM tab2 AS cor0
----
-1500
-612
-803

onlyif mysql # use DIV operator for integer division
query I rowsort label-2540
SELECT + col0 + - cor0.col2 DIV col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-2540
SELECT + col0 + - cor0.col2 / col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT 1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 41 + col1 AS col1 FROM tab0 AS cor0
----
127
132
138

query I rowsort
SELECT + 11 AS col1 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col1 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + + col0 * - col2 * cor0.col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + + col1 * - 85 AS col2 FROM tab2 AS cor0
----
-1445
-2635
-5015

query I rowsort
SELECT - 19 + + col1 FROM tab0
----
67
72
78

query I rowsort
SELECT + 66 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * - 31 + - col1 col0 FROM tab2 cor0
----
2948
2976
2990

query I rowsort
SELECT DISTINCT - 61 * col1 * col1 AS col1 FROM tab2 AS cor0
----
-17629
-212341
-58621

query I rowsort
SELECT 32 + 86 - + col0 * 46 FROM tab0 AS cor0
----
-1492
-3976
-986

query I rowsort
SELECT - 7 + cor0.col1 AS col0 FROM tab1 AS cor0
----
19
3
6

query I rowsort
SELECT DISTINCT - col1 * 54 FROM tab2 cor0
----
-1674
-3186
-918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2555
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * ( - col0 ) col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * ( - col0 ) col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col0 - - ( - col0 ) FROM tab2
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26

query I rowsort
SELECT - + tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL 6 + tab2.col2 * + col1 + 40 AS col1 FROM tab2
----
1580
692
883

query I rowsort
SELECT + col1 + + ( col2 ) AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT ( - col2 ) + col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT col0 + - ( col2 ) + col2 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT 80 FROM tab0, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 7 col0 FROM tab1
----
-378
-399
-672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * col2 col2 FROM tab0 cor0
----
-36
-7380
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2566
SELECT - CAST( + 51 AS SIGNED ) col0 FROM tab2
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2566
SELECT - CAST ( + 51 AS INTEGER ) col0 FROM tab2
----
-51
-51
-51

query I rowsort
SELECT + 73 * - 69 FROM tab1 AS cor0
----
-5037
-5037
-5037

query I rowsort
SELECT ALL 53 * ( + col1 ) * col1 FROM tab1 cor0
----
35828
5300
8957

query I rowsort
SELECT DISTINCT col0 * 45 * col0 FROM tab0
----
25920
356445
55125

query I rowsort
SELECT DISTINCT + col2 * col2 * + col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT - ( - ( - col2 ) ) FROM tab1
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2572
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - - 88 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT - + col0 + + col2 + col2 * col2 * col2 AS col2 FROM tab0 cor0
----
-33
35946
551361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col1 + - 45 * 38 * + cor0.col2 col2 FROM tab2 cor0
----
-40979
-45209
-64691

query I rowsort
SELECT 69 * col1 AS col0 FROM tab0
----
5934
6279
6693

query I rowsort
SELECT + - cor0.col0 * cor0.col2 + + 5 AS col2 FROM tab0 AS cor0
----
-30
-7293
-787

query I rowsort
SELECT + 68 + + col1 FROM tab1 AS cor0
----
78
81
94

query I rowsort
SELECT - col2 * - col1 + - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + + col0 + + 92 FROM tab1 AS cor0
----
156
172
95

query I rowsort
SELECT 68 * + col2 + - ( - col0 * col0 ) AS col2 FROM tab0
----
1293
13497
2820

query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col2 FROM tab1
----
45

query I rowsort
SELECT + - col1 + col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2586
SELECT - col1 DIV col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2586
SELECT - col1 / col2 + - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col1 + - 91 AS col2 FROM tab0 AS cor0
----
-5
0
6

query I rowsort
SELECT + col0 + + col1 + col0 FROM tab2 cor0
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 + - col0 * - col0 col2 FROM tab2
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2590
SELECT col2 * CAST( NULL AS SIGNED ) / - tab0.col0 + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2590
SELECT col2 * CAST ( NULL AS INTEGER ) / - tab0.col0 + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 86 * ( cor0.col0 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 0d70d6d78daa852f0f5d7642f27b0274

query I rowsort
SELECT DISTINCT col0 * - col0 - + ( cor0.col2 ) FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT - - col2 - cor0.col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 - 98 FROM tab1 AS cor0
----
-101
-162
-178

query I rowsort
SELECT DISTINCT - col0 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2596
SELECT + - col1 - col1 DIV + col2 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-2596
SELECT + - col1 - col1 / + col2 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT ALL + - col0 + col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT DISTINCT - + col0 - + col1 * col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-126
-87
-97

skipif mysql # not compatible
query I rowsort label-2598
SELECT DISTINCT - + col0 - + col1 * col2 / col0 AS col2 FROM tab2 AS cor0
----
-126
-87
-97

query I rowsort
SELECT col0 - 84 AS col1 FROM tab2 AS cor0
----
-5
-6
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2600
SELECT ALL - col0 + 4 + - 5 DIV + col1 FROM tab0 AS cor0
----
-20
-31
-85

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - col0 + 4 + - 5 / + col1 FROM tab0 AS cor0
----
-20
-31
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2601
SELECT DISTINCT + CAST( cor0.col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT + CAST ( cor0.col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT ALL col1 + - col2 DIV + cor0.col0 FROM tab0 cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL col1 + - col2 / + cor0.col0 FROM tab0 cor0
----
85
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2603
SELECT ALL - - col0 DIV col1 - - col2 * - cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - - col0 / col1 - - col2 * - cor0.col1 * col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ( - col0 ) + + cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + 6 * col2 FROM tab1 AS cor0
----
298
332
563

query I rowsort
SELECT ALL + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL + cor0.col2 + col2 * - col0 * + cor0.col0 FROM tab2 AS cor0
----
-1296
-158158
-237120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 43 ) col2 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT - col2 + ( + col0 ) * - 94 AS col2 FROM tab0 AS cor0
----
-2289
-3291
-8448

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2611
SELECT DISTINCT + CAST( - ( - col1 ) AS SIGNED ) + col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT + CAST ( - ( - col1 ) AS INTEGER ) + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2613
SELECT ALL col1 DIV 46 - - col1 col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL col1 / 46 - - col1 col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - tab2.col2 * - col2 + - tab2.col2 AS col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT ALL col0 + ( col1 * + col0 ) FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL + col1 * col2 + + col1 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + 87 * cor0.col0 FROM tab2 AS cor0
----
609
6786
6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-2618
SELECT DISTINCT + + cor0.col1 DIV - col2 + - col2 * 47 AS col2 FROM tab1 AS cor0
----
-2538
-2679
-4512

skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT + + cor0.col1 / - col2 + - col2 * 47 AS col2 FROM tab1 AS cor0
----
-2538
-2679
-4512

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2619
SELECT ( col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2619
SELECT ( col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col1 ) * ( col1 ) AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - + 63 AS col1 FROM tab2 AS cor0
----
-63
-63
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT + + col0 DIV - col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT + + col0 / - col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT ALL col2 DIV tab2.col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL col2 / tab2.col0 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 * col0 * col2 col0 FROM tab0 AS cor0
----
1995
415986
45144

query I rowsort
SELECT ALL + - ( - cor0.col1 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col1 * + col0 - - col2 * - col2 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT - + cor0.col0 + col0 * 81 AS col1 FROM tab1 AS cor0
----
240
5120
6400

query I rowsort
SELECT col0 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT + col0 DIV col0 + ( 8 ) FROM tab2
----
9
9
9

skipif mysql # not compatible
query I rowsort label-2629
SELECT + col0 / col0 + ( 8 ) FROM tab2
----
9
9
9

query I rowsort
SELECT - col2 * tab2.col1 + - col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ALL col1 * col0 - 89 * - col0 FROM tab1 AS cor0
----
345
6336
8160

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 + col2 * 22 AS col1 FROM tab0 AS cor0
----
119
1895
812

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2634
SELECT - col1 + col1 * CAST( col1 AS SIGNED ) * + cor0.col1 FROM tab1 AS cor0
----
17550
2184
990

skipif mysql # not compatible
query I rowsort label-2634
SELECT - col1 + col1 * CAST ( col1 AS INTEGER ) * + cor0.col1 FROM tab1 AS cor0
----
17550
2184
990

query I rowsort
SELECT ALL + 76 * col2 FROM tab1
----
4104
4332
7296

query I rowsort
SELECT col0 * col1 * - col1 + col2 AS col0 FROM tab0
----
-177471
-329314
-736927

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2637
SELECT + col1 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-2637
SELECT + col1 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL + 90 * col1 FROM tab0
----
7740
8190
8730

query I rowsort
SELECT ALL - 38 * col1 AS col0 FROM tab1 AS cor0
----
-380
-494
-988

query I rowsort
SELECT cor0.col0 * + 6 + - col2 AS col0 FROM tab1 cor0
----
-36
327
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 14 col2 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT DISTINCT col2 - 90 * + tab2.col2 AS col1 FROM tab2
----
-2314
-2403
-3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-2643
SELECT - - CAST( col0 AS SIGNED ) + col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-2643
SELECT - - CAST ( col0 AS INTEGER ) + col2 / - col0 AS col1 FROM tab2 AS cor0
----
4
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2644
SELECT ALL 71 / ( col0 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL 71 / ( col0 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 30 * col0 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab0 cor0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 80 + col2 col2 FROM tab1 cor0
----
-23
-26
16

query I rowsort
SELECT - 67 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2131
-3462
-8166

query I rowsort
SELECT ALL + 34 * - col0 FROM tab2 AS cor0
----
-238
-2652
-2686

onlyif mysql # use DIV operator for integer division
query I rowsort label-2650
SELECT + 27 + - 30 DIV + col1 AS col2 FROM tab1 AS cor0
----
24
25
26

skipif mysql # not compatible
query I rowsort label-2650
SELECT + 27 + - 30 / + col1 AS col2 FROM tab1 AS cor0
----
24
25
26

query I rowsort
SELECT ALL + col0 + col1 * 83 * + col2 + col0 FROM tab0
----
235602
619524
8121

query I rowsort
SELECT col2 - 16 * - col2 FROM tab0
----
1394
17
561

query I rowsort
SELECT tab0.col0 + 47 + + col2 FROM tab0
----
104
218
83

query I rowsort
SELECT ALL col1 * 53 + - tab2.col1 FROM tab2
----
1612
3068
884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2655
SELECT ALL - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2655
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2656
SELECT ALL + col0 * - 28 - - col1 DIV cor0.col0 FROM tab0 cor0
----
-2491
-669
-978

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + col0 * - 28 - - col1 / cor0.col0 FROM tab0 cor0
----
-2491
-669
-978

query I rowsort
SELECT ALL ( - col0 ) - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - + 1 FROM tab2 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2659
SELECT DISTINCT + col0 * col0 + - col0 DIV col0 AS col1 FROM tab1 AS cor0
----
4095
6399
8

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + col0 * col0 + - col0 / col0 AS col1 FROM tab1 AS cor0
----
4095
6399
8

query I rowsort
SELECT + - col2 * ( col0 * 16 ) FROM tab0 AS cor0
----
-116768
-12672
-560

query I rowsort
SELECT - ( col1 ) + col0 * 53 * + col0 FROM tab1 cor0
----
217078
339187
451

query I rowsort
SELECT ALL 21 + - col2 AS col0 FROM tab0 AS cor0
----
-12
-61
20

query I rowsort
SELECT + 86 * + cor0.col0 AS col2 FROM tab2 cor0
----
602
6708
6794

onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT DISTINCT col2 + + col1 DIV col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2664
SELECT DISTINCT col2 + + col1 / col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT 25 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col1 FROM tab1
----
90
90
90

query I rowsort
SELECT 11 * ( col0 ) AS col0 FROM tab0
----
264
385
979

query I rowsort
SELECT 10 AS col0 FROM tab2
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-2669
SELECT DISTINCT ( + col0 ) DIV col0 + + col0 + col1 col1 FROM tab1
----
30
75
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT ( + col0 ) / col0 + + col0 + col1 col1 FROM tab1
----
30
75
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT ALL + ( col2 ) DIV + col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL + ( col2 ) / + col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT ALL + 19 * col2 FROM tab2
----
494
513
722

query I rowsort
SELECT DISTINCT tab0.col0 * - col1 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 col1 FROM tab0, tab2 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT 42 * + col2 FROM tab2 cor0
----
1092
1134
1596

query I rowsort
SELECT + + col2 * + col0 * + col0 + + col2 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT + + cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT - ( col1 ) * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2678
SELECT CAST( NULL AS SIGNED ) * 54 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2678
SELECT CAST ( NULL AS INTEGER ) * 54 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + col0 ) col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2680
SELECT ALL - col1 DIV col0 + 15 * col0 + - CAST( col1 * + col1 AS SIGNED ) FROM tab0 AS cor0
----
-6947
-7039
-8886

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL - col1 / col0 + 15 * col0 + - CAST ( col1 * + col1 AS INTEGER ) FROM tab0 AS cor0
----
-6947
-7039
-8886

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT + + col0 * ( - col0 * col1 ) AS col2 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL + col2 * - 43 + - ( - cor0.col0 + + ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT ALL + - col0 * - col2 + 72 * - col2 AS col1 FROM tab0 AS cor0
----
-1584
-37
1394

query I rowsort
SELECT ALL - + col2 * col0 + - col2 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - 4 + + col1 * - col1 * + 85 FROM tab2 AS cor0
----
-24569
-295889
-81689

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab0 cor0
----
24
35
89

query I rowsort
SELECT col2 * - 35 + + cor0.col2 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT ALL + 54 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT + col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT - + col0 + - col2 DIV cor0.col0 - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-58

skipif mysql # not compatible
query I rowsort label-2691
SELECT - + col0 + - col2 / cor0.col0 - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT + col2 DIV col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2692
SELECT + col2 / col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - col2 * ( + col1 ) + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2694
SELECT 12 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2694
SELECT 12 / - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - + col0 + - ( + 24 ) AS col1 FROM tab2 AS cor0
----
-102
-103
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( + col2 ) col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col0 + col2 + + col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + col1 * ( + col0 ) + - col2 + - col2 FROM tab1 AS cor0
----
-30
526
848

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2699
SELECT ALL col0 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL col0 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + - col2 * + 28 col1 FROM tab1 AS cor0
----
1404
1653
6528

query I rowsort
SELECT ALL 44 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT col1 * + col0 + col1 * col0 AS col2 FROM tab1 cor0
----
1280
156
2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT col2 + - col1 DIV tab2.col0 AS col0 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-2704
SELECT col2 + - col1 / tab2.col0 AS col0 FROM tab2
----
23
26
38

query I rowsort
SELECT ALL + 1 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 53 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 NOT BETWEEN col0 * - col1 AND - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT - col0 - col0 FROM tab0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2709
SELECT 2 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2709
SELECT 2 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 + - col2 - + 92 AS col2 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT ALL col1 + - col0 * - 77 - col2 FROM tab2
----
543
6039
6062

query I rowsort
SELECT DISTINCT 86 * - col0 AS col1 FROM tab1
----
-258
-5504
-6880

query I rowsort
SELECT - 88 * tab0.col2 FROM tab0
----
-2904
-7216
-88

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + col2 * + tab0.col0 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT - 78 DIV + col2 AS col0 FROM tab0
----
-2
-78
0

skipif mysql # not compatible
query I rowsort label-2716
SELECT - 78 / + col2 AS col0 FROM tab0
----
-2
-78
0

query I rowsort
SELECT - + 36 + + col2 * + ( - col0 * - col0 ) AS col2 FROM tab1 AS cor0
----
233436
450
614364

query I rowsort
SELECT ALL + + 67 - + 52 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT + col2 + ( - col1 ) AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col1 + col2 - - col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT - - 92 AS col1 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT - col0 + - ( 39 ) DIV - cor0.col1 col0 FROM tab1 cor0
----
-2
-61
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2724
SELECT - col0 + - ( 39 ) / - cor0.col1 col0 FROM tab1 cor0
----
-2
-61
-77

query I rowsort
SELECT ALL col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 9 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT ALL col2 DIV + col1 + - col2 * tab2.col2 * 92 + col1 col1 FROM tab2
----
-132829
-62133
-67037

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2727
SELECT ALL col2 / + col1 + - col2 * tab2.col2 * 92 + col1 col1 FROM tab2
----
-132829
-62133
-67037

query I rowsort
SELECT col2 * 31 FROM tab0
----
1023
2542
31

query I rowsort
SELECT cor1.col0 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + cor0.col1 * - ( col2 + - col2 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col0 + ( 73 ) - + cor0.col2 FROM tab1 AS cor0
----
22
57
80

query I rowsort
SELECT ALL + col0 + - 27 AS col2 FROM tab2 AS cor0
----
-20
51
52

query I rowsort
SELECT DISTINCT - + col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT col1 * + col2 + - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - cor0.col0 - + ( + 40 ) * col0 AS col1 FROM tab0 cor0
----
-1435
-3649
-984

query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 * + col0 + + col1 FROM tab2 cor0
----
-131
-1943
-2947

query I rowsort
SELECT + 61 + col1 FROM tab1
----
71
74
87

query I rowsort
SELECT + 8 * + col0 + col2 FROM tab0 AS cor0
----
225
281
794

query I rowsort
SELECT 50 + 14 * col1 * col0 AS col0 FROM tab1
----
1142
14610
9010

query I rowsort
SELECT + - cor0.col2 AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab0 AS cor0
----
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2742
SELECT ALL CAST( cor0.col0 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL CAST ( cor0.col0 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + 98 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d

query I rowsort
SELECT DISTINCT - col0 + - col1 AS col0 FROM tab1 cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 + + cor2.col0 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 cor2
----
125
126
54

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - 94 + + col0 * - 78 AS col1 FROM tab2 cor0
----
-6178
-6256
-640

query I rowsort
SELECT ALL + + col0 * col2 * - col0 + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-236721
-3402
-623616

query I rowsort
SELECT ALL - cor0.col0 + - col1 AS col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT + col0 * cor0.col0 + 76 AS col1 FROM tab1 AS cor0
----
4172
6476
85

query I rowsort
SELECT ALL - + ( col2 ) * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2752
SELECT - cor0.col0 + + cor0.col1 DIV col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-2752
SELECT - cor0.col0 + + cor0.col1 / col0 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT ALL + col2 + col0 * - 12 AS col0 FROM tab1 AS cor0
----
-711
-864
18

query I rowsort
SELECT DISTINCT col0 * col2 + col1 * - col0 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT - 4 AS col2 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - 87 * col1 AS col0 FROM tab2 cor0
----
-1479
-2697
-5133

query I rowsort
SELECT ALL - - col0 + col0 * col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + + col1 * cor0.col2 + - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT - 90 * + col0 FROM tab1 AS cor0
----
-270
-5760
-7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT DISTINCT - + col0 DIV col0 + - col2 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT - + col0 / col0 + - col2 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT - ( col2 ) - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 * 43 col1 FROM tab2 cor0
----
-197886
-57749
-9331

query I rowsort
SELECT DISTINCT + 26 FROM tab2
----
26

query I rowsort
SELECT ALL - - col0 + cor0.col1 * 13 FROM tab0 cor0
----
1142
1272
1296

query I rowsort
SELECT col0 * + ( col2 + col0 ) * - ( + col0 * - col0 ) AS col2 FROM tab1
----
1539
31719424
90112000

query I rowsort
SELECT DISTINCT + cor0.col0 + + ( + col0 ) FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + cor0.col1 * - 76 + col0 AS col1 FROM tab2 AS cor0
----
-1213
-2349
-4406

query I rowsort
SELECT ALL 63 FROM tab1, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT + + col0 + + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col0 + + col2 * - 52 FROM tab2 AS cor0
----
-1274
-1397
-1897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + ( col0 ) col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * + col1 + col1 * col0 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT - col1 * - col2 + - 56 * + col2 FROM tab2 AS cor0
----
-1482
-675
78

query I rowsort
SELECT DISTINCT + col2 + col2 + - cor0.col0 * - col0 FROM tab0 AS cor0
----
1227
642
8085

query I rowsort
SELECT DISTINCT - col0 * + 10 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT + 54 + - col2 * - col2 FROM tab1 AS cor0
----
2970
3303
9270

query I rowsort
SELECT DISTINCT + + ( + 49 ) AS col1 FROM tab1 AS cor0
----
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2778
SELECT ALL - - CAST( NULL AS SIGNED ) + 2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2778
SELECT ALL - - CAST ( NULL AS INTEGER ) + 2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2779
SELECT CAST( + 75 AS SIGNED ) FROM tab1 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-2779
SELECT CAST ( + 75 AS INTEGER ) FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT + - col1 + col2 * col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL - col1 * 52 + col1 AS col0 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT + tab0.col2 - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 52 + + col0 AS col2 FROM tab1
----
-153
-3264
-4080

onlyif mysql # use DIV operator for integer division
query I rowsort label-2784
SELECT ALL col2 * col2 DIV - col0 + + col2 FROM tab1
----
-19
-918
7

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL col2 * col2 / - col0 + + col2 FROM tab1
----
-19
-918
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2785
SELECT - col0 + col0 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2785
SELECT - col0 + col0 / - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - cor0.col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 68 - + col0 FROM tab1 cor0
----
-12
4
65

query I rowsort
SELECT + - col0 - + col0 * col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT - col2 * col2 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
-798
108
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-2790
SELECT ALL - - col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - - col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 85 + - cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
-2113
-274
-3087

query I rowsort
SELECT + col0 * - col1 * 59 + - col2 * cor0.col0 FROM tab2 cor0
----
-12992
-273546
-82239

onlyif mysql # use DIV operator for integer division
query I rowsort label-2793
SELECT ALL + 35 DIV - col1 - col2 FROM tab1 AS cor0
----
-55
-60
-98

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + 35 / - col1 - col2 FROM tab1 AS cor0
----
-55
-60
-98

query I rowsort
SELECT 88 * cor0.col1 FROM tab0 AS cor0
----
7568
8008
8536

onlyif mysql # use DIV operator for integer division
query I rowsort label-2795
SELECT DISTINCT + 57 + col1 DIV + col1 FROM tab0 cor0
----
58

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT + 57 + col1 / + col1 FROM tab0 cor0
----
58

query I rowsort
SELECT col0 + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * col0 * col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - ( - cor0.col0 ) * 93 FROM tab0 AS cor0
----
2232
3255
8277

query I rowsort
SELECT ALL - col2 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - + col2 * col2 + 40 AS col0 FROM tab0 AS cor0
----
-1049
-6684
39

query I rowsort
SELECT ALL + 30 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1504
-616
-807

query I rowsort
SELECT DISTINCT + 29 + + col0 FROM tab1 AS cor0
----
109
32
93

query I rowsort
SELECT + + ( cor0.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT col0 + + col1 * + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT col0 + + ( + col0 ) FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT col0 * ( cor0.col1 * - col0 ) - ( ( col2 ) ) * 19 FROM tab1 AS cor0
----
-1260
-42043
-85024

query I rowsort
SELECT - + cor0.col0 * cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT + col2 * - cor0.col1 + - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT - cor0.col2 + col2 - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + + cor0.col2 + 68 AS col1 FROM tab2 AS cor0
----
106
94
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2811
SELECT + col2 * CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-2811
SELECT + col2 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + 20 * tab2.col2 AS col1 FROM tab2
----
520
540
760

query I rowsort
SELECT ALL + 5 + col2 AS col2 FROM tab1
----
101
59
62

query I rowsort
SELECT DISTINCT - col2 - - cor0.col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT col2 * - 68 + - cor0.col1 - col2 FROM tab1 AS cor0
----
-3752
-3943
-6637

query I rowsort
SELECT ALL - 55 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT col1 * - ( - col0 ) * - col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + col0 + + cor0.col1 - - col1 * col2 AS col1 FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT + 22 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 002a717a3d902d97220759065fb107c3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT 7 DIV + col0 AS col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2821
SELECT 7 / + col0 AS col2 FROM tab2 cor0
----
0
0
1

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 5a114c3d024b82b28eeddb04849c8215

query I rowsort
SELECT ALL 52 AS col0 FROM tab2
----
52
52
52

query I rowsort
SELECT ALL - + 32 + + col0 AS col2 FROM tab2 AS cor0
----
-25
46
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2825
SELECT + CAST( - cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2825
SELECT + CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + col1 * 34 FROM tab1 AS cor0
----
340
442
884

query I rowsort
SELECT DISTINCT + 95 + + 27 * - col2 FROM tab0 AS cor0
----
-2119
-796
68

query I rowsort
SELECT ( - col0 + + col1 ) FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2830
SELECT DISTINCT + 47 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2830
SELECT DISTINCT + 47 / + col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - tab0.col0 * col0 AS col1 FROM tab0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2832
SELECT + - CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT + - CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col2 + + cor0.col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT 76 + 6 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT - ( + cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + ( + 26 ) + col0 FROM tab1 cor0
----
106
29
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2837
SELECT CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2837
SELECT CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT + - col0 DIV - cor0.col1 - 50 FROM tab1 cor0
----
-44
-44
-50

skipif mysql # not compatible
query I rowsort label-2838
SELECT + - col0 / - cor0.col1 - 50 FROM tab1 cor0
----
-44
-44
-50

query I rowsort
SELECT DISTINCT cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col0 * + col2 + 27 FROM tab0 AS cor0
----
62
7325
819

query I rowsort
SELECT DISTINCT cor0.col0 - - col2 * + 27 FROM tab2 cor0
----
1105
736
780

query I rowsort
SELECT - col0 * col1 + + col2 FROM tab1 cor0
----
-24
-583
-944

query I rowsort
SELECT + col0 * col0 + ( - col0 * + cor0.col2 + col2 ) FROM tab0 AS cor0
----
-183
1191
705

query I rowsort
SELECT DISTINCT + cor0.col2 - + col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - 68 FROM tab0, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT col1 DIV + ( col2 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT col1 / + ( col2 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( + 75 ) AS col2 FROM tab2, tab1 cor0 CROSS JOIN tab0, tab1, tab1 AS cor1
----
75

query I rowsort
SELECT ALL 45 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT - col1 * - ( col1 * + col0 ) FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT cor0.col0 * + ( + ( - col2 ) ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + tab1.col0 * - col1 * 12 AS col1 FROM tab1
----
-12480
-7680
-936

query I rowsort
SELECT DISTINCT tab1.col1 * ( col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + - cor0.col0 + ( col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 56 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1456
-1512
-2128

query I rowsort
SELECT DISTINCT - col2 * col1 + col2 - ( - 49 ) FROM tab0 cor0
----
-2756
-47
-7331

onlyif mysql # use DIV operator for integer division
query I rowsort label-2857
SELECT tab0.col1 DIV - 52 + ( + col0 ) * - col2 AS col0 FROM tab0
----
-36
-7299
-793

skipif mysql # not compatible
query I rowsort label-2857
SELECT tab0.col1 / - 52 + ( + col0 ) * - col2 AS col0 FROM tab0
----
-36
-7299
-793

onlyif mysql # use DIV operator for integer division
query I rowsort label-2858
SELECT - - col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2858
SELECT - - col2 / cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - + 28 AS col0 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT DISTINCT + - 12 * 63 AS col2 FROM tab1 AS cor0
----
-756

query I rowsort
SELECT ALL + - ( - 1 ) * col2 + + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT 70 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT ALL + col1 DIV - col0 AS col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL + col1 / - col0 AS col0 FROM tab2
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2865
SELECT + ( col0 ) + + tab0.col1 * col2 DIV - col0 AS col0 FROM tab0
----
-94
33
6

skipif mysql # not compatible
query I rowsort label-2865
SELECT + ( col0 ) + + tab0.col1 * col2 / - col0 AS col0 FROM tab0
----
-94
33
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2866
SELECT ALL + 44 DIV cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cc025a6f53a666623d5403409b882835

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL + 44 / cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cc025a6f53a666623d5403409b882835

query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2868
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 68 + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 68 + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * 12 AS col2 FROM tab2 AS cor0
----
84
936
948

query I rowsort
SELECT ALL col1 * col1 + + col1 * - 23 FROM tab1
----
-130
-130
78

query I rowsort
SELECT - col1 + - col1 * 51 - + col2 FROM tab0
----
-4505
-4814
-5045

query I rowsort
SELECT DISTINCT tab0.col1 + 63 FROM tab0, tab1 AS cor0
----
149
154
160

query I rowsort
SELECT - col2 + col0 + - 51 FROM tab1 AS cor0
----
-102
-44
-67

query I rowsort
SELECT col2 * - col2 + + ( + col2 ) FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT + + cor0.col1 + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 + + col1 col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + - col0 + col2 FROM tab2 AS cor0
----
1976
209
2961

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2879
SELECT + col1 * + col1 + + col0 + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT + col1 * + col1 + + col0 + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 11 * + col1 AS col0 FROM tab1 AS cor0
----
11440
7040
858

query I rowsort
SELECT - - col0 * cor0.col1 + ( col2 * col1 ) AS col2 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL + cor0.col0 * col1 + cor0.col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT + + col1 + - col2 + col0 * - col2 AS col0 FROM tab2 cor0
----
-185
-1995
-3023

query I rowsort
SELECT DISTINCT col1 * 86 FROM tab1 cor0
----
1118
2236
860

query I rowsort
SELECT - cor0.col0 + - 66 + col1 FROM tab2 AS cor0
----
-128
-42
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT - col2 + - col1 DIV ( - col2 * + col0 + cor0.col0 ) FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2886
SELECT - col2 + - col1 / ( - col2 * + col0 + cor0.col0 ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - + col0 + + cor0.col0 + - 51 * col1 FROM tab0 AS cor0
----
-4386
-4641
-4947

query I rowsort
SELECT DISTINCT + col1 + + 29 * col0 AS col1 FROM tab1
----
113
1866
2333

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + tab2.col2 col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + 54 FROM tab1 cor0
----
-54
-54
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 * col1 col2 FROM tab0
----
-4730
-5005
-5335

query I rowsort
SELECT col0 + col2 * 80 * + cor0.col2 - col2 FROM tab1 cor0
----
233229
259927
737264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 - col2 col2 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2895
SELECT + - 99 + col0 + - CAST( 33 * col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-365
-448
-954

skipif mysql # not compatible
query I rowsort label-2895
SELECT + - 99 + col0 + - CAST ( 33 * col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-365
-448
-954

query I rowsort
SELECT + col2 * - col1 + col0 + + 97 FROM tab1 AS cor0
----
-1071
-1304
-409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + tab0.col2 col0 FROM tab0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * col1 col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - col0 * 38 AS col1 FROM tab2 AS cor0
----
-266
-2964
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT ALL - cor0.col2 DIV + 20 FROM tab1 cor0
----
-2
-2
-4

skipif mysql # not compatible
query I rowsort label-2900
SELECT ALL - cor0.col2 / + 20 FROM tab1 cor0
----
-2
-2
-4

query I rowsort
SELECT ALL cor0.col0 * + cor0.col1 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 65 col0 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT DISTINCT + ( col1 ) + col2 * 95 AS col1 FROM tab0 AS cor0
----
192
3221
7881

query I rowsort
SELECT DISTINCT + ( + 17 ) * - col0 AS col0 FROM tab2 cor0
----
-119
-1326
-1343

query I rowsort
SELECT 32 * col2 AS col1 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT ALL - ( col0 ) + col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 3 * + col2 AS col0 FROM tab2 cor0
----
114
78
81

query I rowsort
SELECT ALL - col2 + col1 + col1 FROM tab0 AS cor0
----
100
139
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col2 FROM tab2 AS cor0
----
-18

query I rowsort
SELECT + - col0 + 44 + + col2 AS col2 FROM tab0 AS cor0
----
10
37
53

query I rowsort
SELECT DISTINCT - - 10 AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT col2 * + col1 + + col1 FROM tab1 cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2913
SELECT CAST( - col0 AS SIGNED ) * + cor0.col0 + 1 * col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif mysql # not compatible
query I rowsort label-2913
SELECT CAST ( - col0 AS INTEGER ) * + cor0.col0 + 1 * col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT + col2 * ( tab0.col1 ) + + col0 FROM tab0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 col2 FROM tab1
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col0 ) col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 64 FROM tab0 cor0
----
-64
-64
-64

query I rowsort
SELECT ALL + 11 FROM tab0
----
11
11
11

skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( - col2 ) AS REAL ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col1 * - col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT - + ( - col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + - col0 + + col1 - col2 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT + col2 - - col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + - col0 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT col2 * col0 - + col2 AS col1 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - 25 FROM tab2, tab0, tab0 AS cor0
----
-25

query I rowsort
SELECT ALL - 60 * col0 - + 25 FROM tab2 AS cor0
----
-445
-4705
-4765

query I rowsort
SELECT ALL 93 FROM tab1, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT - col1 * col2 + - cor0.col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL - 48 + + col0 FROM tab1
----
-45
16
32

query I rowsort
SELECT ALL + 35 AS col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT cor0.col2 * - 64 AS col2 FROM tab1 AS cor0
----
-3456
-3648
-6144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 + ( col0 ) col2 FROM tab0
----
253
37
90

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT 52 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2937
SELECT DISTINCT - col1 - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT - col1 - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT 3 FROM tab1, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT 80 * - col2 FROM tab1
----
-4320
-4560
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2940
SELECT ALL - 67 DIV col2 AS col0 FROM tab0
----
-2
-67
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - 67 / col2 AS col0 FROM tab0
----
-2
-67
0

query I rowsort
SELECT DISTINCT + - cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT DISTINCT + col0 DIV 13 FROM tab2 cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT + col0 / 13 FROM tab2 cor0
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col0 FROM tab1
----
54
57
96

query I rowsort
SELECT + cor0.col2 * - tab0.col1 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9248dc8e2a9503d5bb41eb88b96ebec3

query I rowsort
SELECT - 70 + - col1 AS col1 FROM tab2
----
-101
-129
-87

query I rowsort
SELECT ALL 15 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT + col1 - col0 * + col2 AS col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + + col0 + col2 * 72 AS col2 FROM tab1 AS cor0
----
3891
4168
6992

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT cor0.col2 * col1 * cor0.col0 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * 74 AS col0 FROM tab1 AS cor0
----
222
4736
5920

onlyif mysql # use DIV operator for integer division
query I rowsort label-2953
SELECT - + col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2953
SELECT - + col0 / col2 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2954
SELECT col2 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2954
SELECT col2 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL - - col2 * + ( cor0.col1 + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT DISTINCT + - col2 * 99 + - cor0.col2 FROM tab0 AS cor0
----
-100
-3300
-8200

query I rowsort
SELECT + col0 * 32 AS col0 FROM tab2 AS cor0
----
224
2496
2528

onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT - - col1 * cor0.col2 + col2 * ( - 77 + + col0 ) DIV 99 AS col0 FROM tab1 AS cor0
----
1250
1364
563

skipif mysql # not compatible
query I rowsort label-2958
SELECT - - col1 * cor0.col2 + col2 * ( - 77 + + col0 ) / 99 AS col0 FROM tab1 AS cor0
----
1250
1364
563

query I rowsort
SELECT + col1 * col1 + 8 + col2 FROM tab1 AS cor0
----
165
273
738

query I rowsort
SELECT + ( + 58 ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT DISTINCT - 8 + - cor0.col0 AS col1 FROM tab1, tab1 cor0
----
-11
-72
-88

query I rowsort
SELECT ALL - 2 AS col0 FROM tab1 cor0
----
-2
-2
-2

query I rowsort
SELECT ALL + ( + col2 ) + - col2 * col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL + + 35 * col1 + col1 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT DISTINCT - 58 - + col0 FROM tab1 AS cor0
----
-122
-138
-61

query I rowsort
SELECT 63 * - col1 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT DISTINCT + + 21 * - col0 AS col1 FROM tab2 AS cor0
----
-147
-1638
-1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT - col2 * col2 DIV + 66 + - col0 * col0 * + col0 FROM tab1 AS cor0
----
-262193
-512139
-71

skipif mysql # not compatible
query I rowsort label-2968
SELECT - col2 * col2 / + 66 + - col0 * col0 * + col0 FROM tab1 AS cor0
----
-262193
-512139
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2969
SELECT ALL cor0.col2 * col0 + - col0 DIV - col1 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL cor0.col2 * col0 + - col0 / - col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2970
SELECT - col2 + - col1 * - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT - col2 + - col1 * - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 * cor0.col1 + - 66 * - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-168480
-202176
-70110

query I rowsort
SELECT DISTINCT + 81 FROM tab1 AS cor0
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT ALL - col1 DIV + col2 + ( + 19 ) * col1 col2 FROM tab1 AS cor0
----
190
247
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL - col1 / + col2 + ( + 19 ) * col1 col2 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2975
SELECT - - col1 * + col1 DIV + col1 + - col0 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-2975
SELECT - - col1 * + col1 / + col1 + - col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - - col0 * + col1 * + ( cor0.col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
177471
329314
736927

query I rowsort
SELECT + 89 + col1 * col1 AS col1 FROM tab1 AS cor0
----
189
258
765

query I rowsort
SELECT ALL 16 FROM tab2 cor0
----
16
16
16

query I rowsort
SELECT - - col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + 65 * col1 AS col0 FROM tab1 cor0
----
1690
650
845

query I rowsort
SELECT - col0 * col1 + - ( col0 ) FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col1 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT ALL 58 * - col2 * 76 FROM tab1 AS cor0
----
-238032
-251256
-423168

onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT + col0 DIV col0 + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2984
SELECT + col0 / col0 + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT tab0.col2 + col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - - col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2987
SELECT DISTINCT col0 DIV + 44 AS col2 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT col0 / + 44 AS col2 FROM tab2 cor0
----
0
1

query I rowsort
SELECT + 80 - + col1 * + 24 FROM tab2
----
-1336
-328
-664

onlyif mysql # use DIV operator for integer division
query I rowsort label-2989
SELECT + 59 - - 59 * col1 DIV col1 AS col1 FROM tab0 AS cor0
----
118
118
118

skipif mysql # not compatible
query I rowsort label-2989
SELECT + 59 - - 59 * col1 / col1 AS col1 FROM tab0 AS cor0
----
118
118
118

query I rowsort
SELECT DISTINCT - - ( ( + col1 ) ) * 34 + col0 AS col1 FROM tab2 AS cor0
----
1061
2084
657

query I rowsort
SELECT ALL cor0.col1 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col1 - - 9 FROM tab1 cor0
----
19
22
35

query I rowsort
SELECT + - 83 - - col0 AS col1 FROM tab0 AS cor0
----
-48
-59
6

query I rowsort
SELECT DISTINCT 58 * - cor0.col2 * col0 + 55 FROM tab0 cor0
----
-1975
-423229
-45881

query I rowsort
SELECT DISTINCT - cor1.col1 - - 31 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-28
0
14

query I rowsort
SELECT ALL - - 68 + col1 * col0 FROM tab1 AS cor0
----
1108
146
708

query I rowsort
SELECT ALL + 77 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL col0 - col0 * + 90 AS col0 FROM tab1
----
-267
-5696
-7120

query I rowsort
SELECT ALL col2 - + ( 44 * + col2 ) AS col2 FROM tab0
----
-1419
-3526
-43

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to fc7c00509fb9d4b8a5290fa6926cc518

query I rowsort
SELECT ALL col1 * - 70 AS col2 FROM tab1
----
-1820
-700
-910

query I rowsort
SELECT + 49 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT ALL - tab2.col1 * + col0 + tab2.col2 * + 34 * col2 AS col1 FROM tab2
----
18382
24569
47753

query I rowsort
SELECT DISTINCT 89 + + tab1.col0 FROM tab1
----
153
169
92

query I rowsort
SELECT ALL 8 * + col1 + col1 FROM tab1
----
117
234
90

query I rowsort
SELECT DISTINCT ( + 17 ) + - col1 AS col0 FROM tab0
----
-69
-74
-80

query I rowsort
SELECT ALL - col0 + + 44 FROM tab1
----
-20
-36
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3008
SELECT - col1 + col1 DIV - cor0.col2 + col2 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-3008
SELECT - col1 + col1 / - cor0.col2 + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + 61 + 44 AS col1 FROM tab1 cor0
----
105
105
105

query I rowsort
SELECT DISTINCT col2 * + col2 + cor0.col1 + + col0 AS col2 FROM tab0 cor0
----
1199
133
6904

query I rowsort
SELECT DISTINCT col2 + col1 - col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - ( - col0 ) + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - ( 49 ) + col2 * + col0 FROM tab2 AS cor0
----
140
1979
2953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 80 + col0 col1 FROM tab1 AS cor0
----
29
64
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT 21 DIV 92 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3015
SELECT 21 / 92 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - col0 + + col0 * 1 + col0 AS col0 FROM tab2
----
-175
-1872
-2844

query I rowsort
SELECT - col1 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL col0 + - col0 * col2 AS col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL - col1 + tab2.col0 + - col2 AS col1 FROM tab2
----
-51
-7
24

query I rowsort
SELECT ALL col2 * - col2 + + col0 * + col2 AS col0 FROM tab0
----
-297
34
574

query I rowsort
SELECT ALL + tab0.col0 + tab0.col0 * col0 * col0 FROM tab0
----
13848
42910
705058

query I rowsort
SELECT ALL - col0 * - col0 + - tab1.col0 AS col2 FROM tab1
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * + col2 * col0 col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - col1 * col0 + + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3028
SELECT + col1 DIV - col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3028
SELECT + col1 / - col1 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - tab1.col2 * - tab1.col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + 87 - + col2 AS col1 FROM tab2
----
49
60
61

query I rowsort
SELECT ALL + 50 * col2 + + col2 * col0 AS col1 FROM tab0
----
11398
2442
85

query I rowsort
SELECT + 37 AS col2 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 AS col0 FROM tab1
----
-1248
-1404
-570

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab1 cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3035
SELECT ALL + + col0 DIV col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL + + col0 / col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + col1 * ( col2 * col2 ) FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ( col2 ) + + col0 AS col0 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 * col0 col0 FROM tab0 AS cor0
----
1015
2581
696

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT - - cor0.col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3039
SELECT - - cor0.col2 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * + col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - col1 * - col0 + + col0 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - tab1.col0 * + col2 * tab1.col1 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT ALL + 95 DIV + cor0.col1 col0 FROM tab0 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + 95 / + cor0.col1 col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT - 84 * col1 AS col0 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT DISTINCT ( col2 ) * col2 + - col2 AS col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT - ( - col1 ) + - col2 * col2 AS col0 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - col0 + + col0 * col2 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * col2 col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT ALL - - cor0.col0 + + col2 + col1 DIV col1 AS col1 FROM tab2 cor0
----
105
118
35

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL - - cor0.col0 + + col2 + col1 / col1 AS col1 FROM tab2 cor0
----
105
118
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT DISTINCT col0 + + col1 DIV col2 AS col0 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT col0 + + col1 / col2 AS col0 FROM tab0
----
132
26
90

query I rowsort
SELECT + tab0.col1 + tab0.col2 * col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL - col1 + tab1.col2 FROM tab1
----
28
47
83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= + col1
----

query I rowsort
SELECT col1 FROM tab0 WHERE col1 IN ( + col2 + - col0 )
----

query I rowsort
SELECT + col1 * col2 + - col1 AS col2 FROM tab2
----
1475
629
806

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT col2 * col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN tab2.col2 * - col2 * col2 AND + col0 + col2 * col0
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - col1 + col0 + col1 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + tab2.col1 + tab2.col2 * + col1 * + col2 FROM tab2
----
22630
24565
39943

query I rowsort
SELECT ALL + col1 * col0 + col1 - + col0 * col2 AS col0 FROM tab1 AS cor0
----
-2998
-58
-6627

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( + tab0.col0 )
----

query I rowsort
SELECT col0 * + col1 + col2 - col1 AS col0 FROM tab1
----
106
1123
687

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT - tab2.col2 * col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL col2 + - col0 * - col2 * col2 FROM tab1
----
207993
737376
8802

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT col0 + tab2.col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT tab0.col1 * col0 * col0 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL col2 + + col0 * - tab1.col0 * + col1 AS col1 FROM tab1
----
-180
-40903
-83104

query I rowsort
SELECT col1 + col1 + tab1.col1 AS col0 FROM tab1
----
30
39
78

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( col1 * col0 )
----

query I rowsort
SELECT ALL + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - col1 - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - + col2 * - col1 + col2 - cor0.col1 FROM tab0 cor0
----
1
2785
7453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 + col2 col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL cor0.col1 + + col1 + - col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + - col0 * col1 * - col2 + + col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT cor0.col1 - col1 * col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3083
SELECT - col1 + + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-3083
SELECT - col1 + + col2 / col0 AS col2 FROM tab0 AS cor0
----
-85
-91
-97

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NOT col0 * col2 <= - col2 + col2 * col0
----
-54
-57
-96

query I rowsort
SELECT + col1 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT col2 * col0 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 * - col2 + - col0 col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL col0 * + col1 + - col2 * tab0.col2 FROM tab0
----
1375
3394
975

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( + cor0.col0 * col1 ) NOT IN ( col1 )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL <= cor0.col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT DISTINCT - ( col2 ) DIV - col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT - ( col2 ) / - col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL + cor0.col1 + 1 * - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3093
SELECT CAST( cor0.col0 AS SIGNED ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-3093
SELECT CAST ( cor0.col0 AS INTEGER ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - + 36 * 99 AS col0 FROM tab0 AS cor0
----
-3564
-3564
-3564

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col1 * + col1 * + col1 FROM tab1 cor0
----
-1000
-17576
-2197

query I rowsort
SELECT col2 + + 53 FROM tab2 AS cor0
----
79
80
91

query I rowsort
SELECT ALL + 43 FROM tab1 AS cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 40 col0 FROM tab1 AS cor0
----
-2160
-2280
-3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * - 20 col2 FROM tab0 AS cor0
----
-540
-540
-540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + cor0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3103
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3103
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 55 * 59 * - col2 FROM tab0
----
-107085
-266090
-3245

query I rowsort
SELECT + - col1 * col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
80

query I rowsort
SELECT - + 64 * col0 + cor0.col0 FROM tab1 AS cor0
----
-189
-4032
-5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3108
SELECT + + col0 + + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-3108
SELECT + + col0 + + col0 / col2 AS col1 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT - col2 * - col0 + + cor0.col2 * - col1 * cor0.col2 - - col1 AS col1 FROM tab2 AS cor0
----
-21529
-22379
-37797

query I rowsort
SELECT DISTINCT - 2 - + tab0.col2 FROM tab0
----
-3
-35
-84

query I rowsort
SELECT col2 * + 40 + - col1 FROM tab0 AS cor0
----
-57
1234
3189

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( - col2 AS REAL ) + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL col2 + ( col1 * col1 ) AS col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT - col0 * 99 + col2 AS col2 FROM tab2 AS cor0
----
-666
-7696
-7783

query I rowsort
SELECT - cor0.col2 * col1 - cor0.col0 * - col1 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT + - col1 * col1 * 29 - - col0 * col1 AS col1 FROM tab0 cor0
----
-212420
-232050
-269466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + 69 * + cor0.col1 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f3fcbc342f0cf0f979d39fd4f9181700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3118
SELECT ALL + col0 * col2 DIV tab1.col2 + + col0 AS col0 FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + col0 * col2 / tab1.col2 + + col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT col1 * col2 + - 19 AS col0 FROM tab2
----
1515
627
818

query I rowsort
SELECT ALL - col1 * col1 - - cor0.col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - - cor0.col2 * + ( - cor0.col1 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col0 * + ( cor0.col1 ) + cor0.col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - - col1 + - ( cor0.col1 ) * col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + col1 * col2 * cor0.col1 + col1 FROM tab2 cor0
----
10999
25978
90565

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3125
SELECT ALL + + cor0.col2 + - CAST( NULL AS SIGNED ) / cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + + cor0.col2 + - CAST ( NULL AS INTEGER ) / cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + 62 AS col2 FROM tab0 AS cor0
----
-1488
-2170
-5518

query I rowsort
SELECT ALL + cor0.col1 - + col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + col0 + 60 + - cor0.col2 FROM tab2 AS cor0
----
101
112
40

query I rowsort
SELECT + col1 + ( + col2 ) * col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + 97 * - col1 AS col2 FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT ALL col0 * + 90 + + cor0.col0 FROM tab0 AS cor0
----
2184
3185
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3132
SELECT ALL - CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab2 cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL - CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3133
SELECT - + col0 * cor0.col2 + col1 * cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort label-3133
SELECT - + col0 * cor0.col2 + col1 * cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL 73 * - 99 + + col2 AS col2 FROM tab1 cor0
----
-7131
-7170
-7173

onlyif mysql # use DIV operator for integer division
query I rowsort label-3135
SELECT ALL - col0 + + col2 DIV 99 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL - col0 + + col2 / 99 AS col0 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 + col1 col2 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 * col1 + - ( 4 ) col0 FROM tab1 AS cor0
----
-104
-173
-680

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - 70 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + ( col2 ) * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - 9 + - col0 * 18 + - col1 FROM tab1 AS cor0
----
-1153
-1444
-71

query I rowsort
SELECT ALL + cor0.col2 + 48 FROM tab2, tab2 AS cor0
----
9 values hashing to 6fe043fa50b9f667c16243a739033cd5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col1 - cor0.col1 col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - col1 * + ( - col1 ) * col1 + col2 AS col1 FROM tab1 AS cor0
----
1057
17630
2293

query I rowsort
SELECT DISTINCT + col2 + + 77 * - 47 FROM tab1 AS cor0
----
-3523
-3562
-3565

query I rowsort
SELECT DISTINCT tab0.col2 - col0 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col2 * - 89 + + col0 FROM tab1 cor0
----
-4803
-5009
-8464

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col0 + col0 - 21 AS col1 FROM tab0 AS cor0
----
157
27
49

query I rowsort
SELECT 52 + + tab1.col1 FROM tab1
----
62
65
78

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab0
----
42

query I rowsort
SELECT - col0 * + col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 * - 79 AS col1 FROM tab1 AS cor0
----
-234
-4992
-6240

query I rowsort
SELECT 88 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
112
123
177

query I rowsort
SELECT DISTINCT - + col1 + col0 * + 46 - col0 FROM tab0 AS cor0
----
1478
3914
994

query I rowsort
SELECT - + col1 + col2 * col2 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT + + col2 DIV - cor0.col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3159
SELECT + + col2 / - cor0.col0 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3160
SELECT + + CAST( 42 AS SIGNED ) - col0 AS col0 FROM tab2 AS cor0
----
-36
-37
35

skipif mysql # not compatible
query I rowsort label-3160
SELECT + + CAST ( 42 AS INTEGER ) - col0 AS col0 FROM tab2 AS cor0
----
-36
-37
35

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + 20 + - col1 FROM tab2 AS cor0
----
-11
-39
3

query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT ALL col0 * - col1 * col2 + - col1 + 52 FROM tab1 AS cor0
----
-36438
-4186
-99801

query I rowsort
SELECT ALL - cor0.col1 * col2 - + col0 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + 25 * + tab2.col1 + + tab2.col1 AS col1 FROM tab2
----
1534
442
806

query I rowsort
SELECT 77 + 11 FROM tab1
----
88
88
88

query I rowsort
SELECT ALL tab0.col1 * col0 + col2 * + 53 AS col1 FROM tab0
----
12445
3448
3813

query I rowsort
SELECT ALL ( - 64 ) FROM tab1
----
-64
-64
-64

query I rowsort
SELECT 69 * - 44 + col2 AS col2 FROM tab2
----
-2998
-3009
-3010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col1 FROM tab0
----
58
58
58

query I rowsort
SELECT ALL - 94 FROM tab1, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT + 84 * + col0 * + col2 AS col2 FROM tab1
----
13608
306432
645120

query I rowsort
SELECT DISTINCT - col2 * col0 * + cor0.col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT - 19 * + col2 AS col0 FROM tab2 cor0
----
-494
-513
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT + 72 DIV - cor0.col2 + - col2 FROM tab0 AS cor0
----
-35
-73
-82

skipif mysql # not compatible
query I rowsort label-3176
SELECT + 72 / - cor0.col2 + - col2 FROM tab0 AS cor0
----
-35
-73
-82

query I rowsort
SELECT DISTINCT + 86 FROM tab2
----
86

query I rowsort
SELECT ALL + ( + col0 ) * col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - tab1.col2 + + 12 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 22062474df89732c4d4a2a1d9509f2a6

query I rowsort
SELECT + + col2 * col1 * cor0.col0 + - col1 * col0 FROM tab0 AS cor0
----
0
656019
66048

query I rowsort
SELECT 16 * col1 AS col1 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT ALL col2 * tab2.col2 + col0 FROM tab2
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-3183
SELECT ALL col1 DIV + ( tab0.col1 * col2 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL col1 / + ( tab0.col1 * col2 ) FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT 75 FROM tab1, tab1 AS cor0
----
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3185
SELECT ALL col1 * CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + col2 - - col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT ALL col1 + - col0 * col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col2 * col1 * + col0 + + col2 * col0 AS col2 FROM tab0
----
-3360
-656820
-67320

query I rowsort
SELECT - ( + 45 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # use DIV operator for integer division
query I rowsort label-3190
SELECT ALL tab0.col1 DIV - col0 AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3190
SELECT ALL tab0.col1 / - col0 AS col0 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT ALL + 9 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - 88 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 15 AS REAL ) AS col2 FROM tab1 AS cor0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + ( ( col0 ) ) * col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + - col0 * + 1 * col0 + ( col1 ) * col2 + - col2 FROM tab0 cor0
----
-1129
-541
2229

query I rowsort
SELECT + + ( + 44 ) * col2 + col0 AS col2 FROM tab1 AS cor0
----
2379
2572
4304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3198
SELECT CAST( NULL AS SIGNED ) * col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3198
SELECT CAST ( NULL AS INTEGER ) * col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 - - col1 * col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3200
SELECT + + col1 * - cor0.col0 * + col0 + - CAST( col2 AS SIGNED ) - - col2 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

skipif mysql # not compatible
query I rowsort label-3200
SELECT + + col1 * - cor0.col0 * + col0 + - CAST ( col2 AS INTEGER ) - - col2 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT - 2 + 74 + col1 AS col0 FROM tab1 AS cor0
----
82
85
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3202
SELECT - CAST( + col1 AS SIGNED ) * cor0.col2 - 50 AS col0 FROM tab1 AS cor0
----
-1298
-1454
-620

skipif mysql # not compatible
query I rowsort label-3202
SELECT - CAST ( + col1 AS INTEGER ) * cor0.col2 - 50 AS col0 FROM tab1 AS cor0
----
-1298
-1454
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 73 + 46 col2 FROM tab0 AS cor0
----
-6232
-6597
-7035

query I rowsort
SELECT DISTINCT - col1 + ( col2 ) AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT col0 * - ( + col2 ) AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * col1 + - 90 * - col0 FROM tab0
----
15472
3247
4998

query I rowsort
SELECT ALL + col0 * + 30 - - 30 AS col0 FROM tab2 AS cor0
----
2370
240
2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3209
SELECT ALL - col1 DIV ( + col1 ) + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3209
SELECT ALL - col1 / ( + col1 ) + col0 / - col0 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3210
SELECT + - col1 * - cor0.col2 + - cor0.col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
2837
7462
97

skipif mysql # not compatible
query I rowsort label-3210
SELECT + - col1 * - cor0.col2 + - cor0.col2 / + col0 AS col2 FROM tab0 AS cor0
----
2837
7462
97

query I rowsort
SELECT DISTINCT cor0.col0 + - ( + 98 ) AS col2 FROM tab0 AS cor0
----
-63
-74
-9

query I rowsort
SELECT ALL + col1 * + ( + 1 ) - - col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL col0 * + 61 AS col2 FROM tab1 cor0
----
183
3904
4880

query I rowsort
SELECT DISTINCT + ( col1 ) + - col2 + + 70 * + col0 FROM tab0 AS cor0
----
1733
2546
6239

query I rowsort
SELECT + col0 * 76 + + col1 FROM tab2 AS cor0
----
563
5987
6021

query I rowsort
SELECT + col0 * 53 AS col0 FROM tab1 AS cor0
----
159
3392
4240

query I rowsort
SELECT ( - col0 ) * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT ALL + col1 + + cor0.col1 * col1 DIV col0 AS col2 FROM tab1 AS cor0
----
11
15
251

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL + col1 + + cor0.col1 * col1 / col0 AS col2 FROM tab1 AS cor0
----
11
15
251

query I rowsort
SELECT + - 4 * - 89 AS col1 FROM tab1 AS cor0
----
356
356
356

query I rowsort
SELECT DISTINCT - - ( - 51 ) + col2 AS col2 FROM tab0 AS cor0
----
-18
-50
31

query I rowsort
SELECT DISTINCT ( - col1 ) + + col1 * 86 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT ALL + 47 AS col0 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT + 66 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + cor0.col2 + cor0.col2 * 19 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f7dfbbb148535eac9b7d3eecee67074c

query I rowsort
SELECT ALL + + col2 + - col2 * - col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT col2 * col1 * col1 AS col1 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - - col0 * + col0 - 90 FROM tab1 AS cor0
----
-81
4006
6310

query I rowsort
SELECT DISTINCT - col1 * col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-3229
SELECT ALL - 75 DIV + cor0.col0 + + cor0.col0 - - 94 FROM tab0 AS cor0
----
115
127
183

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - 75 / + cor0.col0 + + cor0.col0 - - 94 FROM tab0 AS cor0
----
115
127
183

query I rowsort
SELECT DISTINCT 16 * col1 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT - - 64 * + col1 AS col0 FROM tab2 AS cor0
----
1088
1984
3776

query I rowsort
SELECT DISTINCT + 99 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + - col0 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT - tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL 29 - - cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0ffb8c9be4ef1ad2716eac216b279aec

query I rowsort
SELECT + 54 + cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
103
6138
6295

query I rowsort
SELECT col0 * col0 * - col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + 69 + + tab1.col0 * - tab1.col1 AS col2 FROM tab1
----
-571
-9
-971

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT col2 - + col0 DIV + col1 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-3241
SELECT col2 - + col0 / + col1 FROM tab1
----
51
54
90

query I rowsort
SELECT ALL cor0.col1 + ( 43 ) FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT - col0 * 51 AS col0 FROM tab1 AS cor0
----
-153
-3264
-4080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col1 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - ( + col2 * - ( - 56 ) ) FROM tab1
----
-3024
-3192
-5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT 68 + + col0 FROM tab2
----
146
147
75

query I rowsort
SELECT + col0 * 8 FROM tab2
----
56
624
632

onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT - col1 * + tab2.col1 + col0 DIV + col1 FROM tab2
----
-285
-3480
-961

skipif mysql # not compatible
query I rowsort label-3249
SELECT - col1 * + tab2.col1 + col0 / + col1 FROM tab2
----
-285
-3480
-961

query I rowsort
SELECT DISTINCT - col2 * col1 + + ( - tab2.col1 ) FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT - - col0 + - 92 + 7 FROM tab0 AS cor0
----
-50
-61
4

query I rowsort
SELECT DISTINCT col2 + ( - cor0.col0 ) * col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-3253
SELECT DISTINCT col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT col2 / - cor0.col0 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT ALL - - cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + col0 + col2 * cor0.col1 FROM tab2 AS cor0
----
1573
2169
2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + - col0 * col0 * ( - 94 ) col2 FROM tab1 AS cor0
----
385664
602640
924

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab1, tab2 AS cor0, tab0, tab0 cor1
----
56

query I rowsort
SELECT - - col0 - ( cor0.col1 + col2 ) FROM tab2 AS cor0
----
-51
-7
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT DISTINCT + col2 DIV ( col2 ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + col2 / ( col2 ) AS col2 FROM tab1 cor0
----
1

query I rowsort
SELECT ALL + col1 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col2 * col0 + + col0 * - col2 * + 89 + col2 AS col2 FROM tab1 AS cor0
----
-14202
-320967
-675744

query I rowsort
SELECT ALL + col2 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 1 * + ( col1 ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - + 90 AS col0 FROM tab2 cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - cor0.col0 + 36 FROM tab0 AS cor0
----
-53
1
12

query I rowsort
SELECT + + ( - ( col2 ) ) + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + ( - 73 ) + col2 * col1 FROM tab0 AS cor0
----
24
2765
7389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col0 FROM tab0 AS cor0
----
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3269
SELECT + CAST( - 94 AS SIGNED ) FROM tab1 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-3269
SELECT + CAST ( - 94 AS INTEGER ) FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT - 37 * col0 AS col0 FROM tab1 AS cor0
----
-111
-2368
-2960

query I rowsort
SELECT + + col1 * col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

query I rowsort
SELECT ALL + col1 * + cor0.col1 FROM tab1 cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT ALL + + ( cor0.col2 ) DIV col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + + ( cor0.col2 ) / col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL ( - col1 + 94 ) FROM tab1
----
68
81
84

query I rowsort
SELECT 95 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT + col2 * - col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 * + 70 AS col1 FROM tab1 AS cor0
----
44800
5460
72800

onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT DISTINCT - cor0.col2 DIV - cor0.col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3279
SELECT DISTINCT - cor0.col2 / - cor0.col2 FROM tab1 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col1 FROM tab0 AS cor0
----
64

query I rowsort
SELECT + ( + col1 ) + - 64 FROM tab1 AS cor0
----
-38
-51
-54

query I rowsort
SELECT + + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT col2 * + CAST( + col2 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-3283
SELECT col2 * + CAST ( + col2 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT col0 * ( - col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( + 13 ) col1 FROM tab0 AS cor0
----
1118
1183
1261

query I rowsort
SELECT + col1 * + 40 * col2 AS col0 FROM tab0 AS cor0
----
113520
298480
3880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT + col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3288
SELECT + col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + ( + col2 ) AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + cor0.col1 * - 44 FROM tab1 AS cor0
----
-1144
-440
-572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * 72 col0 FROM tab2 AS cor0
----
497
5538
5609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( + col2 + col0 * 13 ) col1 FROM tab2 AS cor0
----
1048
87
981

query I rowsort
SELECT 15 * 93 + cor0.col2 + 61 AS col0 FROM tab1 AS cor0
----
1510
1513
1552

query I rowsort
SELECT ALL 96 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3295
SELECT ALL CAST( col2 AS SIGNED ) FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ( ( - col2 ) ) + - col2 * + col0 AS col2 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT - col0 * 91 AS col0 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT ( - col1 ) * 86 + ( - col0 ) FROM tab2 AS cor0
----
-1541
-2673
-5152

query I rowsort
SELECT + + 13 + col1 FROM tab1 AS cor0
----
23
26
39

query I rowsort
SELECT DISTINCT + 62 + col2 FROM tab2 AS cor0
----
100
88
89

query I rowsort
SELECT - 67 AS col1 FROM tab1
----
-67
-67
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT + ( + col2 + col1 ) DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3303
SELECT + ( + col2 + col1 ) / col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + 70 * col0 + 17 AS col2 FROM tab0 AS cor0
----
1697
2467
6247

query I rowsort
SELECT ALL - 69 + col2 AS col0 FROM tab2 AS cor0
----
-31
-42
-43

query I rowsort
SELECT ALL - - 46 + + col0 FROM tab0 AS cor0
----
135
70
81

query I rowsort
SELECT DISTINCT + col1 - + col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - - col1 + + col0 * + cor0.col0 AS col1 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT + - col1 * - ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3310
SELECT DISTINCT + col0 + + cor0.col1 DIV + 97 AS col0 FROM tab0 AS cor0
----
24
36
89

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT + col0 + + cor0.col1 / + 97 AS col0 FROM tab0 AS cor0
----
24
36
89

query I rowsort
SELECT col2 * + ( col2 ) - col2 FROM tab0 cor0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-3312
SELECT - cor0.col0 DIV col2 + - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-571

skipif mysql # not compatible
query I rowsort label-3312
SELECT - cor0.col0 / col2 + - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-571

query I rowsort
SELECT - + col0 * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + tab2.col1 * ( - cor0.col1 ) + tab2.col0 * - 48 FROM tab2, tab2 AS cor0
----
9 values hashing to 1c864a09bf9d258bbcf6377c5b49a694

query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab2, tab1, tab0 cor0
----
35

query I rowsort
SELECT ALL tab2.col1 + - tab2.col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT + - col1 DIV + cor0.col1 + - cor0.col0 * + col1 * - col1 AS col0 FROM tab0 cor0
----
177503
329314
737008

skipif mysql # not compatible
query I rowsort label-3318
SELECT + - col1 / + cor0.col1 + - cor0.col0 * + col1 * - col1 AS col0 FROM tab0 cor0
----
177503
329314
737008

query I rowsort
SELECT - col1 * - col0 + - 90 * - cor0.col2 FROM tab2 cor0
----
2647
4763
6942

query I rowsort
SELECT + col0 * - 78 AS col0 FROM tab2
----
-546
-6084
-6162

query I rowsort
SELECT ALL ( + col0 ) + + col1 + + 87 AS col2 FROM tab2 AS cor0
----
125
183
224

query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + col2 + + 15 FROM tab2 AS cor0
----
41
42
53

query I rowsort
SELECT ALL col2 - tab1.col1 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT col1 * - 63 FROM tab2
----
-1071
-1953
-3717

query I rowsort
SELECT col0 * + col2 * - col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT - 94 + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-191
-2932
-7556

query I rowsort
SELECT - - cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 99 * - tab2.col1 * tab2.col0 FROM tab2
----
132957
21483
455598

query I rowsort
SELECT + 77 * + col2 AS col0 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT 41 * col0 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT - - 56 * col0 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT 16 * cor0.col2 FROM tab1 AS cor0
----
1536
864
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-3334
SELECT ALL - 34 DIV col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT ALL - 34 / col0 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT ALL col1 DIV tab1.col0 AS col1 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL col1 / tab1.col0 AS col1 FROM tab1
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT - + col0 * col2 + + ( + 11 ) FROM tab2 AS cor0
----
-178
-2017
-2991

query I rowsort
SELECT ( - col2 ) * - col0 AS col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3339
SELECT + tab2.col0 - tab2.col2 DIV + col1 AS col2 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-3339
SELECT + tab2.col0 - tab2.col2 / + col1 AS col2 FROM tab2
----
7
77
78

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab2, tab2 cor0
----
81

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab1, tab0 AS cor0
----
78

query I rowsort
SELECT ALL 68 AS col0 FROM tab0
----
68
68
68

query I rowsort
SELECT DISTINCT + ( + col2 ) * - col0 * + col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL 65 + + cor0.col1 + + cor0.col0 FROM tab0 AS cor0
----
175
197
245

query I rowsort
SELECT ( col2 ) + - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - + col0 * col1 * 26 + - col2 FROM tab2 AS cor0
----
-119678
-34956
-5669

query I rowsort
SELECT DISTINCT - + 50 AS col1 FROM tab2 cor0
----
-50

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3350
SELECT - + 45 - - col2 DIV col1 AS col1 FROM tab0 cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + 45 - - col2 / col1 AS col1 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT DISTINCT - 69 * col2 + col1 + - col2 DIV col2 AS col0 FROM tab1 cor0
----
-3701
-3924
-6612

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT - 69 * col2 + col1 + - col2 / col2 AS col0 FROM tab1 cor0
----
-3701
-3924
-6612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col2 FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL + + cor0.col2 * col0 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - col1 - col1 * col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
177418
329218
736918

query I rowsort
SELECT ALL - 1 + - col1 AS col1 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT + - col1 * + ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + col0 * 58 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT ALL + - col1 * - 32 AS col1 FROM tab0 cor0
----
2752
2912
3104

query I rowsort
SELECT - col0 * ( 21 ) AS col0 FROM tab1 cor0
----
-1344
-1680
-63

query I rowsort
SELECT + col1 * col0 + col1 * + col1 * 86 AS col2 FROM tab2 AS cor0
----
26197
303968
82863

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + ( + 1 ) * - col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col0 + - 67 FROM tab0 AS cor0
----
-32
-43
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3364
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 46 + cor0.col2 * + col2 FROM tab1 AS cor0
----
2962
3295
9262

query I rowsort
SELECT ALL - col0 * + col2 - - col0 * - col0 AS col2 FROM tab1 AS cor0
----
-14080
-171
-7744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3367
SELECT + CAST( NULL AS SIGNED ) + col2 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT + CAST ( NULL AS INTEGER ) + col2 * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * 2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + ( 78 ) * + col2 AS col2 FROM tab2 AS cor0
----
2028
2106
2964

query I rowsort
SELECT + 70 * - col2 FROM tab1 AS cor0
----
-3780
-3990
-6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3371
SELECT ALL 55 DIV 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL 55 / 64 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + col0 ) * col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col2 - cor0.col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 27 AS col0 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT + ( + cor0.col2 ) + + col2 FROM tab1 cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3376
SELECT DISTINCT CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + + cor0.col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - 32 * 92 * + col0 AS col1 FROM tab1 AS cor0
----
-188416
-235520
-8832

query I rowsort
SELECT DISTINCT col1 + - col2 * - col1 - ( col1 + - col1 ) FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + col1 + 82 * + 73 AS col2 FROM tab0
----
6072
6077
6083

query I rowsort
SELECT col0 + col2 * + 59 AS col0 FROM tab2
----
1600
1612
2321

query I rowsort
SELECT - - 88 * 57 AS col2 FROM tab1 AS cor0
----
5016
5016
5016

query I rowsort
SELECT tab0.col1 * 91 + + 88 FROM tab0
----
7914
8369
8915

query I rowsort
SELECT - - col0 * col0 + - col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT - 36 FROM tab2, tab2 AS cor0
----
-36

query I rowsort
SELECT + 19 AS col0 FROM tab2
----
19
19
19

query I rowsort
SELECT - ( col2 ) + + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3388
SELECT ALL + - 78 DIV 72 + col0 * + col0 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-233473
-487
-614401

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL + - 78 / 72 + col0 * + col0 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-233473
-487
-614401

query I rowsort
SELECT ALL - col1 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT - ( - 33 ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT ALL - col1 DIV CAST( - ( col1 ) * - cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL - col1 / CAST ( - ( col1 ) * - cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 9 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT - col0 * + tab2.col1 AS col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3394
SELECT + + col2 DIV 28 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3394
SELECT + + col2 / 28 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT + tab1.col0 + 1 * tab1.col0 * col1 AS col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT + col1 * 89 FROM tab1
----
1157
2314
890

query I rowsort
SELECT col0 + col0 * 67 AS col2 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT DISTINCT col0 + ( 10 ) FROM tab1 AS cor0
----
13
74
90

query I rowsort
SELECT DISTINCT - col0 * - col0 * - col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

skipif mysql # not compatible
query I rowsort
SELECT - col0 + - CAST ( - 60 AS REAL ) AS col2 FROM tab1 AS cor0
----
-20
-4
57

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - cor0.col1 + CAST ( cor0.col2 AS REAL ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col2 * 32 AS col1 FROM tab2 AS cor0
----
-1216
-832
-864

query I rowsort
SELECT + + col0 + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - - col2 * 28 + - 84 FROM tab0 AS cor0
----
-56
2212
840

query I rowsort
SELECT 12 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT - - col2 - - col2 * - col1 AS col0 FROM tab2 cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-3407
SELECT - col1 DIV + col0 + col0 + + col1 AS col2 FROM tab2
----
137
34
96

skipif mysql # not compatible
query I rowsort label-3407
SELECT - col1 / + col0 + col0 + + col1 AS col2 FROM tab2
----
137
34
96

query I rowsort
SELECT ALL tab2.col0 * col1 + col0 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3409
SELECT ALL - col2 + - 64 DIV - tab2.col0 AS col0 FROM tab2
----
-18
-26
-38

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - col2 + - 64 / - tab2.col0 AS col0 FROM tab2
----
-18
-26
-38

query I rowsort
SELECT ALL - col2 * 99 + - col1 AS col2 FROM tab2
----
-2633
-2704
-3779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT ALL + cor0.col1 + - col2 * col0 DIV col2 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL + cor0.col1 + - col2 * col0 / col2 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3413
SELECT + + col0 * - col0 DIV col0 - col2 * cor0.col1 FROM tab2 AS cor0
----
-1612
-725
-844

skipif mysql # not compatible
query I rowsort label-3413
SELECT + + col0 * - col0 / col0 - col2 * cor0.col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT - col1 + - col2 * col0 FROM tab2 cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL 96 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26

query I rowsort
SELECT ALL 97 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - ( + tab2.col1 ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL ( col2 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT 87 * + col0 FROM tab2
----
609
6786
6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-3422
SELECT - col2 DIV - col0 AS col1 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3422
SELECT - col2 / - col0 AS col1 FROM tab2
----
0
0
3

query I rowsort
SELECT ALL - ( col1 ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col1 FROM tab1, tab0 AS cor0
----
1
33
82

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT ALL + 13 AS col1 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT - col2 DIV ( col1 ) AS col0 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3428
SELECT - col2 / ( col1 ) AS col0 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT + col0 - col0 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 > - col0
----

query I rowsort
SELECT - col1 * - col0 + cor0.col1 AS col2 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT col0 * - col1 + + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + col1 * + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT DISTINCT + tab1.col2 DIV + col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT + tab1.col2 / + col0 FROM tab1
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3435
SELECT + col0 * - col2 DIV - col2 col0 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3435
SELECT + col0 * - col2 / - col2 col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + col1 + - col1 + col1 FROM tab2
----
17
31
59

query I rowsort
SELECT col2 * + col2 FROM tab0 WHERE - col0 * col1 - - col2 IN ( - col1 )
----

query I rowsort
SELECT cor0.col0 + - col0 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT DISTINCT col2 DIV col0 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT col2 / col0 FROM tab0 cor0
----
0
1

query I rowsort
SELECT ALL col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col2 * col1 + - col0 * col1 FROM tab1 AS cor0
----
-1210
-1482
-2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT ALL col0 DIV + col1 + - col0 * col1 AS col1 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL col0 / + col1 + - col0 * col1 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT tab0.col0 - - tab0.col2 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col0 + - col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col2 FROM tab0 AS cor0 WHERE col1 IN ( + cor0.col0 ) OR - col0 * col0 IN ( + col2 )
----

query I rowsort
SELECT col0 + - col0 + col2 * col2 * - col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3449
SELECT - + col0 + col1 DIV + col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-3449
SELECT - + col0 + col1 / + col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT DISTINCT col2 + + col1 + - col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT DISTINCT + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT + col2 / col1 AS col0 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3452
SELECT - + col0 DIV - col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3452
SELECT - + col0 / - col1 col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT + col1 * col2 DIV col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3453
SELECT + col1 * col2 / col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL cor0.col0 * col1 * - col1 + + cor0.col2 FROM tab2 AS cor0
----
-22793
-271492
-6700

query I rowsort
SELECT DISTINCT - col0 * col0 * col1 + cor0.col0 FROM tab0 AS cor0
----
-118790
-49512
-720722

query I rowsort
SELECT tab2.col2 * - col1 - - col0 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL ( col1 ) * + ( col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - col2 + 49 FROM tab2 AS cor0
----
11
22
23

query I rowsort
SELECT DISTINCT + tab1.col0 * + col0 AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT col2 * tab0.col1 + + col2 * - 65 FROM tab0
----
2132
32
693

query I rowsort
SELECT ALL - col0 * - col0 * - col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT 46 * - 31 AS col2 FROM tab2, tab2 AS cor0
----
-1426

query I rowsort
SELECT col0 + - 1 FROM tab0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3464
SELECT + + col1 + 37 * 13 DIV col0 FROM tab2 AS cor0
----
23
65
99

skipif mysql # not compatible
query I rowsort label-3464
SELECT + + col1 + 37 * 13 / col0 FROM tab2 AS cor0
----
23
65
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3465
SELECT col1 * + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT col1 * + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 45 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + col0 * - col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT 76 * + 76 - + col1 FROM tab2
----
5717
5745
5759

query I rowsort
SELECT - col1 * + 19 + + col1 FROM tab0 AS cor0
----
-1548
-1638
-1746

query I rowsort
SELECT col0 * col2 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ( + col0 ) + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL ( - col2 ) * col1 + - 82 FROM tab1
----
-1330
-1486
-652

query I rowsort
SELECT ALL - col0 * 31 * - tab1.col2 + ( col2 ) FROM tab1
----
113145
238176
5076

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3475
SELECT CAST( NULL AS DECIMAL ) + + 37 + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT CAST ( NULL AS REAL ) + + 37 + tab0.col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col2 col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col0 + col0 * 6 AS col1 FROM tab2 cor0
----
35
390
395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 4 col0 FROM tab1 AS cor0
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3479
SELECT DISTINCT + col2 + col0 DIV 72 AS col0 FROM tab1 AS cor0
----
54
57
97

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + col2 + col0 / 72 AS col0 FROM tab1 AS cor0
----
54
57
97

query I rowsort
SELECT ALL + 86 FROM tab0 cor0
----
86
86
86

query I rowsort
SELECT + col2 * + col1 + 6 * col1 FROM tab2 AS cor0
----
1023
1888
748

query I rowsort
SELECT ALL 35 + col1 FROM tab1 AS cor0
----
45
48
61

query I rowsort
SELECT DISTINCT - - 96 + - col1 FROM tab1 AS cor0
----
70
83
86

query I rowsort
SELECT DISTINCT - col0 * col2 + - 91 AS col0 FROM tab2 AS cor0
----
-2119
-280
-3093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 62 * - cor0.col2 col2 FROM tab0 cor0
----
2046
5084
62

query I rowsort
SELECT - 20 + + col2 FROM tab0 AS cor0
----
-19
13
62

query I rowsort
SELECT ALL cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + cor0.col2 + + col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT 75 * - col0 FROM tab0 cor0
----
-1800
-2625
-6675

onlyif mysql # use DIV operator for integer division
query I rowsort label-3491
SELECT + col1 + - col0 DIV - 53 AS col1 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-3491
SELECT + col1 + - col0 / - 53 AS col1 FROM tab0 AS cor0
----
86
92
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT DISTINCT 96 DIV + col1 AS col0 FROM tab1
----
3
7
9

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT 96 / + col1 AS col0 FROM tab1
----
3
7
9

query I rowsort
SELECT + col1 * col1 * 23 AS col0 FROM tab0
----
170108
190463
216407

onlyif mysql # use DIV operator for integer division
query I rowsort label-3494
SELECT DISTINCT 46 * - col2 + - col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1195
-1242
-1744

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT 46 * - col2 + - col0 / - col1 AS col1 FROM tab2 AS cor0
----
-1195
-1242
-1744

query I rowsort
SELECT - 84 AS col2 FROM tab1 AS cor0
----
-84
-84
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3496
SELECT DISTINCT col0 DIV tab2.col0 col1 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT col0 / tab2.col0 col1 FROM tab2
----
1

query I rowsort
SELECT + ( + col0 ) + + col0 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT ( cor0.col0 ) * - ( 58 ) + col1 FROM tab2 AS cor0
----
-375
-4465
-4565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 48 - col2 col1 FROM tab0 AS cor0
----
-34
15
47

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + - 12 + col1 AS col0 FROM tab1 AS cor0
----
-2
1
14

query I rowsort
SELECT col0 * - col2 + - ( - 77 ) FROM tab0 cor0
----
-715
-7221
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 * col1 + 73 col2 FROM tab1 AS cor0
----
-161
-17
-44

query I rowsort
SELECT + col0 * 55 AS col1 FROM tab0 AS cor0
----
1320
1925
4895

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3505
SELECT + col0 + + CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT + col0 + + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3506
SELECT DISTINCT + col1 * CAST( - 97 AS SIGNED ) FROM tab0 AS cor0
----
-8342
-8827
-9409

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT + col1 * CAST ( - 97 AS INTEGER ) FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT DISTINCT + col0 + col2 * + col0 * col2 AS col0 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT DISTINCT + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL 85 AS col2 FROM tab1
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ( col1 ) * ( + col1 ) FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3512
SELECT cor0.col2 DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3512
SELECT cor0.col2 / col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - ( - ( col0 ) ) * - cor0.col2 col0 FROM tab0 AS cor0
----
-70
-7387
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * ( + col0 ) + + 71 * 60 col2 FROM tab0 cor0
----
-3661
3035
3684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 - col0 col0 FROM tab2 AS cor0
----
-100
-28
-99

query I rowsort
SELECT DISTINCT + ( col0 ) + - col1 * + 23 FROM tab2 AS cor0
----
-1279
-312
-706

query I rowsort
SELECT ALL - - col0 * + ( col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + cor0.col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT - col0 + + cor0.col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT 73 * + ( + cor0.col0 ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
245
4682
5853

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3521
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 98 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3521
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 98 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + 24 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + col2 * col0 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT - col2 DIV + 88 - - col1 FROM tab1 AS cor0
----
10
12
26

skipif mysql # not compatible
query I rowsort label-3524
SELECT - col2 / + 88 - - col1 FROM tab1 AS cor0
----
10
12
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3525
SELECT + + CAST( - cor0.col1 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-3525
SELECT + + CAST ( - cor0.col1 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - tab2.col1 * ( col0 ) AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col2 * 54 - - 25 AS col2 FROM tab1
----
2941
3103
5209

query I rowsort
SELECT - col1 + + col0 * col1 * - col1 FROM tab2
----
-22848
-271577
-6758

query I rowsort
SELECT + 3 FROM tab1, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL - 27 - + col2 * col2 FROM tab2 AS cor0
----
-1471
-703
-756

query I rowsort
SELECT DISTINCT + col0 + + ( - col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 59 + - ( col2 ) FROM tab2 AS cor0
----
21
32
33

query I rowsort
SELECT + - 23 * cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-1296
-1368
-2304

query I rowsort
SELECT + col2 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - tab0.col1 * col2 + - col0 * 92 FROM tab0
----
-15650
-3317
-5046

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 + 33 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7f8a05e2f28522eed08d204239376c87

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 CROSS JOIN tab0
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab0, tab1 AS cor0
----
61

query I rowsort
SELECT ( + cor0.col1 ) + + col0 AS col2 FROM tab0 cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3541
SELECT + CAST( NULL AS SIGNED ) * 23 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT + CAST ( NULL AS INTEGER ) * 23 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 28 + + col0 AS col0 FROM tab2 cor0
----
-21
50
51

query I rowsort
SELECT - - col0 * 46 AS col1 FROM tab1 AS cor0
----
138
2944
3680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3544
SELECT 94 * col1 - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT 94 * col1 - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + ( col2 * + col1 ) + 80 FROM tab2
----
1692
805
924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * + cor0.col2 col2 FROM tab0, tab2 cor0, tab2, tab1 AS cor1
----
81 values hashing to 470298600a502696f20b01b14cd03090

query I rowsort
SELECT col1 + col1 - ( col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-6542
-917
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 * col2 * 48 + col0 col2 FROM tab2 AS cor0
----
-117234
-121817
-171377

query I rowsort
SELECT DISTINCT 34 FROM tab0, tab1 AS cor0
----
34

query I rowsort
SELECT ( - 19 ) AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT ALL - 52 * col2 AS col1 FROM tab2
----
-1352
-1404
-1976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3552
SELECT ALL + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 - 68 FROM tab0 AS cor0
----
-35
-67
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT + cor0.col0 DIV - col1 + - 37 FROM tab1 AS cor0
----
-37
-43
-43

skipif mysql # not compatible
query I rowsort label-3554
SELECT + cor0.col0 / - col1 + - 37 FROM tab1 AS cor0
----
-37
-43
-43

query I rowsort
SELECT ALL - 1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT ALL - tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT + - ( - cor0.col2 ) * - col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + + 40 + - col0 * + col0 FROM tab2 AS cor0
----
-6044
-6201
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT DISTINCT col0 DIV ( ( tab2.col1 ) ) AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT col0 / ( ( tab2.col1 ) ) AS col2 FROM tab2
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3560
SELECT 78 - ( col0 + + CAST( NULL AS SIGNED ) * + 84 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3560
SELECT 78 - ( col0 + + CAST ( NULL AS INTEGER ) * + 84 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 49 AS col1 FROM tab0 cor0
----
49
49
49

query I rowsort
SELECT - cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT 68 DIV + col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3563
SELECT 68 / + col0 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT - ( col1 * + 47 + col2 * col1 ) AS col0 FROM tab0
----
-11739
-4656
-6880

query I rowsort
SELECT DISTINCT + 89 AS col2 FROM tab2
----
89

query I rowsort
SELECT ALL 32 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT 34 * + col0 FROM tab0
----
1190
3026
816

query I rowsort
SELECT + col1 * col0 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + + col2 + 85 AS col0 FROM tab2 AS cor0
----
111
112
123

query I rowsort
SELECT col0 + - col1 + - 44 FROM tab0 AS cor0
----
-106
-106
-46

query I rowsort
SELECT - + col2 * ( col1 ) + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + col1 + + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + - cor0.col1 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT + col0 * + col0 + col1 * - col2 + tab0.col0 FROM tab0
----
-2238
1163
548

onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT - col2 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3575
SELECT - col2 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 41 AS col0 FROM tab0 AS cor0
----
-41
-41
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3577
SELECT ALL + col0 DIV + col0 - 39 FROM tab2 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL + col0 / + col0 - 39 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT DISTINCT col2 DIV col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT col2 / col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT ALL + + cor0.col1 + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL tab1.col2 - col1 * - col0 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL - col2 + + col0 - - col0 * + tab1.col2 FROM tab1
----
111
3655
7664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col1 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT + col0 - + col1 * - tab2.col0 AS col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT DISTINCT - 99 AS col0 FROM tab1
----
-99

query I rowsort
SELECT col1 + + tab2.col2 * col2 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT col0 * col0 * - col1 + + col1 FROM tab1
----
-208
-40950
-83187

query I rowsort
SELECT col2 * - 22 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT DISTINCT - col0 * + 79 + - col1 FROM tab1 AS cor0
----
-263
-5066
-6333

onlyif mysql # use DIV operator for integer division
query I rowsort label-3590
SELECT DISTINCT + + col1 + 22 DIV + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT + + col1 + 22 / + col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3591
SELECT DISTINCT - col0 * CAST( - col2 * - col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-19008
-649522

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT - col0 * CAST ( - col2 * - col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT cor0.col2 * tab0.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to beb2df893579871bcb51459c78b13f94

query I rowsort
SELECT DISTINCT + col1 + + col0 * - col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT tab0.col0 FROM tab0 WHERE NOT ( + col2 * + col0 ) <> NULL
----

query I rowsort
SELECT - col2 + col2 * + tab1.col2 AS col2 FROM tab1
----
2862
3192
9120

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL + col2 * col1 + - col0 * col1 FROM tab2
----
-3068
-697
620

query I rowsort
SELECT col1 + - col1 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 * col1 + col2 + tab2.col1 AS col2 FROM tab2
----
-1449
-591
-779

onlyif mysql # use DIV operator for integer division
query I rowsort label-3600
SELECT ALL - tab1.col1 DIV - col1 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - tab1.col1 / - col1 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT col1 + + col2 + - col1 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL col0 + + col1 + col1 * + col2 AS col2 FROM tab2
----
1671
742
875

query I rowsort
SELECT tab1.col2 AS col0 FROM tab1 WHERE NOT + col1 * col0 <> ( - col2 )
----

query I rowsort
SELECT col0 + col0 * - col0 AS col2 FROM tab2 WHERE NOT NULL = ( + col1 + - col2 )
----

query I rowsort
SELECT DISTINCT + col2 * + col1 * col2 AS col1 FROM tab2
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + col1 * tab0.col2 col1 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT - col1 * tab0.col2 * - col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col2 + col2 + + col1 FROM tab0
----
152
255
99

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col1 AS col1 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3610
SELECT DISTINCT + col1 DIV col2 + col0 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-3610
SELECT DISTINCT + col1 / col2 + col0 FROM tab0
----
132
26
90

query I rowsort
SELECT DISTINCT + col2 * + tab2.col2 + - col0 AS col0 FROM tab2
----
1365
598
722

query I rowsort
SELECT - col2 + col0 + + col0 * col2 FROM tab0
----
69
7305
783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * col2 col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col0 * col2 - + col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT + col2 * + 57 FROM tab1
----
3078
3249
5472

query I rowsort
SELECT 60 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL 52 + col1 + col2 AS col2 FROM tab1
----
119
132
161

query I rowsort
SELECT 88 * col2 FROM tab0
----
2904
7216
88

query I rowsort
SELECT DISTINCT - cor0.col0 + - 19 * col0 FROM tab1 AS cor0
----
-1280
-1600
-60

query I rowsort
SELECT + 39 + + 17 AS col1 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT col1 + - 45 FROM tab1 AS cor0
----
-19
-32
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 col2 FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL ( + 4 ) + col1 AS col0 FROM tab2 AS cor0
----
21
35
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3624
SELECT DISTINCT - col0 + 49 DIV + col1 + + col1 AS col2 FROM tab0 AS cor0
----
2
62

skipif mysql # not compatible
query I rowsort label-3624
SELECT DISTINCT - col0 + 49 / + col1 + + col1 AS col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT - col0 + 50 + + col0 * col1 * col0 FROM tab2
----
106068
1562
358928

query I rowsort
SELECT - 40 + ( + col2 ) * col1 + + col0 * + col1 FROM tab1
----
1170
1442
2248

query I rowsort
SELECT ALL + 34 + col2 FROM tab1
----
130
88
91

query I rowsort
SELECT + + col2 * col1 + 81 AS col1 FROM tab1 AS cor0
----
1329
1485
651

query I rowsort
SELECT DISTINCT ( col1 ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col1 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL + cor0.col2 + col1 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT DISTINCT - col0 DIV + col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT - col0 / + col0 FROM tab2 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3633
SELECT + - col2 * cor0.col1 * col0 + col0 * col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-36423
-4158
-99744

skipif mysql # not compatible
query I rowsort label-3633
SELECT + - col2 * cor0.col1 * col0 + col0 * col2 / + col0 AS col0 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT ( + col1 ) + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT col2 * - col0 + - 0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col2 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + + 14 AS col1 FROM tab1 AS cor0
----
14

query I rowsort
SELECT DISTINCT + ( col1 ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT 6 + col1 FROM tab1 AS cor0
----
16
19
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT 74 DIV + cor0.col0 FROM tab1 AS cor0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-3641
SELECT 74 / + cor0.col0 FROM tab1 AS cor0
----
0
1
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3642
SELECT ALL + 3 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL + 3 / - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3643
SELECT col2 + + col1 + + col2 DIV 60 AS col1 FROM tab0 AS cor0
----
119
174
98

skipif mysql # not compatible
query I rowsort label-3643
SELECT col2 + + col1 + + col2 / 60 AS col1 FROM tab0 AS cor0
----
119
174
98

query I rowsort
SELECT ALL + col0 + + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col1 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT + + col1 * ( - cor0.col1 ) FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL col1 + col0 * col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - + col1 * + ( col1 ) + col0 + + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1159
534
731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 63 * + ( - cor0.col1 ) col1 FROM tab0 cor0
----
-5385
-5651
-6110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * - col1 * - col0 col1 FROM tab0 AS cor0
----
177418
329218
736918

query I rowsort
SELECT ALL + col1 + 24 AS col1 FROM tab0 AS cor0
----
110
115
121

query I rowsort
SELECT DISTINCT + col2 * + ( col2 ) FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col2 + cor0.col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + + col0 * + 43 + - col0 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT col0 + cor0.col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + col1 + + 54 AS col1 FROM tab0 cor0
----
140
145
151

query I rowsort
SELECT col0 + - 68 - + col2 AS col0 FROM tab2 cor0
----
-16
-27
-88

query I rowsort
SELECT ALL + col0 + 71 * - col1 FROM tab1 AS cor0
----
-1843
-646
-843

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3660
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * ( - col2 ) * + 64 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * ( - col2 ) * + 64 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 3 * + col2 + + col0 FROM tab0 AS cor0
----
123
335
38

query I rowsort
SELECT DISTINCT - 56 + col0 FROM tab0 AS cor0
----
-21
-32
33

query I rowsort
SELECT + col1 + - col2 + col2 AS col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3664
SELECT ALL + col0 * col1 DIV col2 AS col2 FROM tab1
----
1
10
11

skipif mysql # not compatible
query I rowsort label-3664
SELECT ALL + col0 * col1 / col2 AS col2 FROM tab1
----
1
10
11

query I rowsort
SELECT ALL - 87 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT ALL 53 AS col0 FROM tab2
----
53
53
53

query I rowsort
SELECT - col2 * cor0.col2 + ( + 56 ) AS col0 FROM tab2 AS cor0
----
-1388
-620
-673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT - col2 * - ( 57 ) AS col2 FROM tab2 cor0
----
1482
1539
2166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 * + col2 col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - + cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT - col0 DIV 56 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT - col0 / 56 AS col2 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3673
SELECT ALL CAST( - 58 AS SIGNED ) col2 FROM tab1 AS cor0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL CAST ( - 58 AS INTEGER ) col2 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ALL + - col1 + 67 AS col2 FROM tab1 AS cor0
----
41
54
57

query I rowsort
SELECT DISTINCT + col1 * col2 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT + - 45 * cor0.col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1167
-386
-505

query I rowsort
SELECT - + cor0.col0 * + col2 + col1 * 98 FROM tab1 AS cor0
----
-2668
-6406
2386

query I rowsort
SELECT 21 * + col1 FROM tab1
----
210
273
546

query I rowsort
SELECT - 17 AS col2 FROM tab1 AS cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - cor0.col2 ) ) * col1 - + cor0.col2 col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + col2 + - 32 FROM tab1 AS cor0
----
22
25
64

query I rowsort
SELECT + + 37 AS col0 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT - ( col2 ) * col2 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-14186
-3927
-98

query I rowsort
SELECT - 86 * - col0 * + col0 FROM tab1 cor0
----
352256
550400
774

onlyif mysql # use DIV operator for integer division
query I rowsort label-3685
SELECT - - col1 + cor0.col0 DIV + ( 93 + + col0 * + ( col0 ) ) FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3685
SELECT - - col1 + cor0.col0 / + ( 93 + + col0 * + ( col0 ) ) FROM tab1 cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3686
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * col0 - - col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col1 * col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + col1 * - col0 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + - cor0.col2 - + col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + + ( + cor0.col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + 0 * - col0 + 60 FROM tab0 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 55 col2 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT - + 49 * col0 FROM tab0 AS cor0
----
-1176
-1715
-4361

query I rowsort
SELECT + 52 * - col1 AS col2 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT 44 * - col0 AS col0 FROM tab0
----
-1056
-1540
-3916

query I rowsort
SELECT - ( col1 ) * - col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + + col2 * + 2 + - col0 AS col1 FROM tab0 AS cor0
----
-7354
-8206
-9442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col0 col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL col1 - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 * col2 col1 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT ALL - cor0.col2 * - col0 - - cor0.col0 AS col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 * - 47 + + cor0.col1 FROM tab0 AS cor0
----
-26986
-372196
-57478

query I rowsort
SELECT ALL cor2.col0 AS col1 FROM tab0, tab0 cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT col1 * col0 * 87 FROM tab0
----
179568
295365
704613

query I rowsort
SELECT + 67 * + cor1.col2 + cor1.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4d4289d18f524330e2ddf3359da7af9c

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab2 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT col2 * col2 + - col1 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT DISTINCT col1 + col0 * col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT + col0 * + col0 + 78 AS col0 FROM tab0
----
1303
654
7999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor2.col2 col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT ALL - + col2 + - col1 * - col2 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3714
SELECT DISTINCT tab0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT tab0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + + 95 + - 24 AS col2 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT ALL - ( 92 ) * - col1 + - 19 AS col2 FROM tab2 AS cor0
----
1545
2833
5409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3717
SELECT DISTINCT 95 DIV + 19 FROM tab0, tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT 95 / + 19 FROM tab0, tab2 cor0
----
5

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 3d17e101d6f341609114801ea035bed1

query I rowsort
SELECT ALL - ( + cor0.col1 ) FROM tab0, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL col2 * + 1 FROM tab2
----
26
27
38

query I rowsort
SELECT - 50 + + 62 FROM tab0
----
12
12
12

query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 - ( - col1 ) * tab1.col0 FROM tab1
----
1210
1482
2288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3723
SELECT DISTINCT CAST( col1 + + col1 AS SIGNED ) * ( col2 ) * - col0 AS col0 FROM tab1
----
-199680
-72960
-8424

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT CAST ( col1 + + col1 AS INTEGER ) * ( col2 ) * - col0 AS col0 FROM tab1
----
-199680
-72960
-8424

query I rowsort
SELECT DISTINCT ( - col2 + col0 ) FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT - 99 DIV 89 col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3725
SELECT - 99 / 89 col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - 92 + 76 + + col2 FROM tab0 AS cor0
----
-15
17
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3727
SELECT - ( col0 ) DIV + col0 + + 41 * col1 AS col2 FROM tab2 AS cor0
----
1270
2418
696

skipif mysql # not compatible
query I rowsort label-3727
SELECT - ( col0 ) / + col0 + + 41 * col1 AS col2 FROM tab2 AS cor0
----
1270
2418
696

query I rowsort
SELECT - col2 + ( + col2 ) * col1 + ( - 31 ) * + col2 * + col2 AS col1 FROM tab1
----
-100206
-284544
-89046

query I rowsort
SELECT ALL + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT col0 * + ( col0 ) + - col0 * + 3 FROM tab1
----
0
3904
6160

query I rowsort
SELECT 31 FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col2 col0 FROM tab2 cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + col0 col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col2 - ( - cor0.col0 * col2 ) FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL col0 + ( + cor0.col0 ) * col0 + + 5 FROM tab2 cor0
----
61
6167
6325

query I rowsort
SELECT DISTINCT + col1 + ( + col1 ) FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3737
SELECT - col0 DIV + 81 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3737
SELECT - col0 / + 81 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL 64 AS col2 FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3740
SELECT DISTINCT + - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3741
SELECT ALL - CAST( col1 AS SIGNED ) + + cor0.col0 FROM tab0 cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-3741
SELECT ALL - CAST ( col1 AS INTEGER ) + + cor0.col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL ( col0 ) + - col0 * col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT + 91 + col0 FROM tab2 AS cor0
----
169
170
98

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query I rowsort
SELECT ( + col2 ) + - col0 * + 55 AS col1 FROM tab2 cor0
----
-358
-4264
-4307

query I rowsort
SELECT DISTINCT - 47 * cor0.col2 FROM tab0 AS cor0
----
-1551
-3854
-47

query I rowsort
SELECT - - col2 * - 35 FROM tab2 AS cor0
----
-1330
-910
-945

onlyif mysql # use DIV operator for integer division
query I rowsort label-3748
SELECT - col1 DIV + col1 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3748
SELECT - col1 / + col1 col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 + + col1 * ( + col2 ) + col2 FROM tab2 AS cor0
----
1619
701
895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col1 FROM tab0, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL 10 * col1 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT ALL + + 89 * ( - cor1.col1 ) FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
243 values hashing to 28ec9c653e897b0a3ec4c7437aef30d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3753
SELECT ALL - - col1 / - cor0.col2 + + CAST( NULL AS SIGNED ) * + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL - - col1 / - cor0.col2 + + CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 66 * col1 * + cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
187341
492574
6403

query I rowsort
SELECT ALL + cor0.col2 * ( - col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - col1 + col1 * 87 AS col1 FROM tab1
----
1118
2236
860

query I rowsort
SELECT DISTINCT + col0 + - tab1.col0 * 78 * - tab1.col0 - col0 AS col2 FROM tab1
----
319488
499200
702

query I rowsort
SELECT - 10 + - col0 + col1 * + 45 AS col1 FROM tab2
----
1378
2567
676

query I rowsort
SELECT ALL + col1 + + 30 * col1 AS col0 FROM tab1 AS cor0
----
310
403
806

query I rowsort
SELECT - col0 * ( col1 ) * + col1 + - col0 FROM tab2 AS cor0
----
-22910
-271596
-6734

query I rowsort
SELECT DISTINCT col2 + col2 * 0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT ( col1 ) - col1 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 - + col0 * col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + - col2 * - 95 FROM tab2 AS cor0
----
2470
2565
3610

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3766
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
10
13
26

query I rowsort
SELECT ALL col1 * - ( tab1.col2 ) + col1 AS col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT ALL - tab1.col2 + 11 * col1 AS col1 FROM tab1
----
232
47
53

query I rowsort
SELECT DISTINCT col1 + ( + 97 ) * - tab2.col1 FROM tab2
----
-1632
-2976
-5664

query I rowsort
SELECT + 28 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT DISTINCT col1 + ( + ( col2 ) ) FROM tab0
----
119
173
98

query I rowsort
SELECT + 87 - cor0.col2 * - col0 FROM tab0 AS cor0
----
122
7385
879

query I rowsort
SELECT ALL - - col1 * col2 * col1 + - cor0.col1 FROM tab0 AS cor0
----
243982
678951
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 + + tab2.col0 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 360688844eea5f423bc1c9260da26ce8

query I rowsort
SELECT - 51 + + col0 AS col0 FROM tab1
----
-48
13
29

query I rowsort
SELECT - - 10 * - col1 AS col0 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT 23 * col0 AS col2 FROM tab2
----
161
1794
1817

query I rowsort
SELECT DISTINCT col2 * ( col0 ) AS col1 FROM tab0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3781
SELECT + 88 + - cor0.col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3781
SELECT + 88 + - cor0.col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 70 * col1 col1 FROM tab1 AS cor0
----
-1794
-690
-897

onlyif mysql # use DIV operator for integer division
query I rowsort label-3783
SELECT - 86 DIV + col1 + cor0.col0 FROM tab2 AS cor0
----
5
74
77

skipif mysql # not compatible
query I rowsort label-3783
SELECT - 86 / + col1 + cor0.col0 FROM tab2 AS cor0
----
5
74
77

query I rowsort
SELECT 89 * + col2 AS col1 FROM tab2
----
2314
2403
3382

query I rowsort
SELECT DISTINCT col0 * + 71 FROM tab1
----
213
4544
5680

query I rowsort
SELECT + 81 AS col1 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT 76 + col0 * + 34 * + col2 AS col0 FROM tab0 AS cor0
----
1266
248208
27004

query I rowsort
SELECT ALL - col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + + 55 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL - col0 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT - - 72 * col1 AS col1 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT + 53 * - col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

query I rowsort
SELECT ALL 18 * col1 FROM tab2 AS cor0
----
1062
306
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 87 col0 FROM tab2 AS cor0
----
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3795
SELECT ALL - col2 * - col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT ALL - col2 * - col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 92 * - cor0.col0 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT - cor0.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + ( 75 ) FROM tab1, tab1 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT + - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3799
SELECT + - col1 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3800
SELECT DISTINCT - col0 DIV - col2 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - col0 / - col2 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT ALL ( 32 ) + - tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fba7e7fa1234b4b733a48bc147ffc9d

query I rowsort
SELECT DISTINCT col1 * 80 AS col2 FROM tab1
----
1040
2080
800

query I rowsort
SELECT col2 * - 84 FROM tab1
----
-4536
-4788
-8064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3804
SELECT - col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3804
SELECT - col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 41 ) * + col1 FROM tab1
----
1066
410
533

query I rowsort
SELECT - 90 + cor0.col2 * col0 * + col0 FROM tab1 AS cor0
----
233382
396
614310

query I rowsort
SELECT + - col2 + 4 FROM tab2 AS cor0
----
-22
-23
-34

query I rowsort
SELECT + ( - cor0.col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + + 27 * + cor0.col1 * + col2 AS col1 FROM tab2 cor0
----
17442
22599
41418

query I rowsort
SELECT DISTINCT col1 + - tab0.col0 AS col1 FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT 92 * col2 + ( col0 ) FROM tab1 AS cor0
----
4971
5308
8912

query I rowsort
SELECT ALL col1 + col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - 83 AS col2 FROM tab1 AS cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col2 * col2 + - col0 * col1 + - cor0.col0 * cor0.col1 col0 FROM tab0 AS cor0
----
-40065
-567566
-6791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col0 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab2 cor0, tab2 cor1
----
7
78
79

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) FROM tab1, tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + - 47 + col1 col2 FROM tab2 AS cor0
----
-2016
-205
-3032

query I rowsort
SELECT DISTINCT col1 + - tab0.col1 * + col0 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT - col1 + - col2 * col0 AS col2 FROM tab1
----
-188
-3658
-7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3821
SELECT - col1 / - CAST( NULL AS SIGNED ) + - col2 * col2 + + ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3821
SELECT - col1 / - CAST ( NULL AS INTEGER ) + - col2 * col2 + + ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 87 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT + col0 + col2 - - col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT col0 + + col1 * col2 AS col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL - col1 + 80 AS col1 FROM tab0 AS cor0
----
-11
-17
-6

query I rowsort
SELECT DISTINCT + col0 - col0 * 61 * col1 FROM tab1 AS cor0
----
-38976
-4755
-63360

query I rowsort
SELECT DISTINCT + col0 * + col0 + col0 FROM tab0 cor0
----
1260
600
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col0 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col2 + - 30 AS col0 FROM tab0 AS cor0
----
-112
-31
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT col0 DIV 49 - col0 FROM tab2 cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-3830
SELECT col0 / 49 - col0 FROM tab2 cor0
----
-7
-77
-78

query I rowsort
SELECT ALL + col0 + 11 + col0 FROM tab2 AS cor0
----
167
169
25

query I rowsort
SELECT - cor0.col2 + + 40 * - col2 * 17 AS col1 FROM tab1 AS cor0
----
-36774
-38817
-65376

query I rowsort
SELECT ALL - + 96 + - 12 AS col1 FROM tab1 AS cor0
----
-108
-108
-108

query I rowsort
SELECT DISTINCT - 55 * - 37 AS col0 FROM tab0 AS cor0
----
2035

query I rowsort
SELECT DISTINCT + col1 * 23 FROM tab2 AS cor0
----
1357
391
713

query I rowsort
SELECT + 89 * col2 + col0 FROM tab1 AS cor0
----
4809
5137
8624

query I rowsort
SELECT + - cor0.col1 - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3838
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col2 + + 20 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b6b901b352b58e0b7db5ce924b564ec4

query I rowsort
SELECT DISTINCT - 14 + + col1 * + 0 AS col1 FROM tab0 cor0
----
-14

query I rowsort
SELECT + ( - cor0.col0 ) * - col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL + - 56 + col0 + + ( - cor0.col1 + col2 ) * 2 FROM tab2 AS cor0
----
-44
-57
65

query I rowsort
SELECT ALL ( - tab0.col1 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT + + 25 FROM tab2, tab1, tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT - tab0.col0 - + col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL - 75 - tab2.col1 * col1 FROM tab2
----
-1036
-3556
-364

query I rowsort
SELECT - col1 + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL + + 67 + 53 AS col2 FROM tab1 AS cor0
----
120
120
120

onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT DISTINCT - 63 * col2 DIV col0 + + col2 * + col2 FROM tab0 AS cor0
----
0
1003
6666

skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT - 63 * col2 / col0 + + col2 * + col2 FROM tab0 AS cor0
----
0
1003
6666

query I rowsort
SELECT DISTINCT - + 95 AS col1 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT DISTINCT - - 11 + col2 * + col2 AS col0 FROM tab0 AS cor0
----
1100
12
6735

query I rowsort
SELECT ALL - ( + cor0.col0 ) + cor0.col1 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to bae587a8285614200d114dd089f83a2b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 80 ) col0 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT CAST( + tab2.col1 AS SIGNED ) * cor1.col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 95981a80d3d59cb4fd463f4a7ad46da1

skipif mysql # not compatible
query I rowsort label-3855
SELECT CAST ( + tab2.col1 AS INTEGER ) * cor1.col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 95981a80d3d59cb4fd463f4a7ad46da1

query I rowsort
SELECT col2 * + col0 + + ( - col1 ) + col2 FROM tab2 AS cor0
----
185
1995
3023

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3857
SELECT ALL + + col0 + - col0 * + CAST( + 15 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1120
-42
-896

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL + + col0 + - col0 * + CAST ( + 15 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT - cor0.col2 * col2 + 94 + col0 AS col2 FROM tab0 AS cor0
----
-6541
-971
128

query I rowsort
SELECT DISTINCT - 88 * col1 AS col1 FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT - + 57 + cor0.col0 - col1 FROM tab2 AS cor0
----
-38
-81
5

query I rowsort
SELECT DISTINCT 36 * - col0 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT + - 79 + - col1 + ( col1 ) FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT ALL - 93 + - col1 FROM tab2 AS cor0
----
-110
-124
-152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3864
SELECT col2 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3864
SELECT col2 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * ( col2 ) - - tab0.col0 * col1 AS col1 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT col2 * + ( col0 * col0 ) + + col0 AS col0 FROM tab2
----
1330
158262
237237

query I rowsort
SELECT DISTINCT - col2 * - ( - col0 ) AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col1 * 25 AS col1 FROM tab1
----
250
325
650

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - cor0.col1 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + + col1 + + 62 AS col2 FROM tab1 cor0
----
72
75
88

query I rowsort
SELECT ALL + + 48 * col2 + + col2 FROM tab1 AS cor0
----
2646
2793
4704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - cor0.col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + col1 * 28 AS col1 FROM tab2 AS cor0
----
1652
476
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3876
SELECT ALL CAST( + col2 AS SIGNED ) + + col2 * col2 FROM tab2 cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL CAST ( + col2 AS INTEGER ) + + col2 * col2 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT + ( col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + ( - col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + + col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col0 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3882
SELECT - CAST( NULL AS SIGNED ) + - 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT - CAST ( NULL AS INTEGER ) + - 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 77 * col0 AS col0 FROM tab1 AS cor0
----
231
4928
6160

query I rowsort
SELECT ALL + ( col1 ) + col0 * ( - col1 ) FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT DISTINCT - ( col1 ) DIV - col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT - ( col1 ) / - col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL cor0.col0 * - cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT + ( 18 ) FROM tab1 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL - + col2 + + col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 7 + col0 * col2 AS col1 FROM tab0 AS cor0
----
42
7305
799

query I rowsort
SELECT - - col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - + col0 * 4 FROM tab1 AS cor0
----
-12
-256
-320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 22 FROM tab1, tab2, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to c6f049334398e3533dd6996714479a2f

query I rowsort
SELECT DISTINCT - ( 95 ) AS col0 FROM tab0
----
-95

query I rowsort
SELECT + + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col2 + + col2 * 8 AS col2 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT + col0 + + cor0.col1 * - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-22592
-24469
-39806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT + col0 DIV + col2 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3900
SELECT + col0 / + col2 FROM tab0 cor0
----
0
1
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3901
SELECT + CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3901
SELECT + CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 24 AS col0 FROM tab2
----
24
24
24

query I rowsort
SELECT - 25 AS col0 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * + 63 FROM tab2 AS cor0
----
468
4940
5015

onlyif mysql # use DIV operator for integer division
query I rowsort label-3905
SELECT ALL - + col1 * - col1 DIV col1 - + col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3905
SELECT ALL - + col1 * - col1 / col1 - + col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 * col1 + + 29 FROM tab2 cor0
----
-1505
-617
-808

onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT cor0.col1 + cor0.col2 DIV col2 + col0 FROM tab1 AS cor0
----
30
75
94

skipif mysql # not compatible
query I rowsort label-3907
SELECT cor0.col1 + cor0.col2 / col2 + col0 FROM tab1 AS cor0
----
30
75
94

query I rowsort
SELECT ALL col2 * 16 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT - col1 * ( + col0 ) + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT cor0.col0 + 86 * cor0.col0 FROM tab2 AS cor0
----
609
6786
6873

query I rowsort
SELECT ALL + + col2 * col0 + - 37 + + cor0.col2 FROM tab0 AS cor0
----
-1
7343
788

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3912
SELECT ALL - col0 * col2 + CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - col0 * col2 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL + 34 + - col1 AS col1 FROM tab2
----
-25
17
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 + + 15 col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT ALL 54 * col1 + - ( tab2.col1 * col2 ) FROM tab2
----
1652
272
837

query I rowsort
SELECT + 32 - col1 FROM tab0
----
-54
-59
-65

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT col1 * 70 FROM tab1 AS cor0
----
1820
700
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-3919
SELECT ALL - col1 DIV + ( 25 ) AS col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL - col1 / + ( 25 ) AS col1 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3920
SELECT + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 84 col1 FROM tab2 AS cor0
----
5
6
77

query I rowsort
SELECT DISTINCT - - cor0.col2 + + 8 AS col1 FROM tab0 AS cor0
----
41
9
90

query I rowsort
SELECT ALL - col0 * - col1 * + col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT col2 + - 41 * + col2 AS col2 FROM tab2 cor0
----
-1040
-1080
-1520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3925
SELECT ALL + + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL + + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3926
SELECT - col2 - 51 DIV 68 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3926
SELECT - col2 - 51 / 68 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col1 + + 56 * + col1 AS col2 FROM tab1 AS cor0
----
1482
570
741

query I rowsort
SELECT + col2 * col1 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3929
SELECT + - col1 + CAST( NULL AS SIGNED ) * + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT + - col1 + CAST ( NULL AS INTEGER ) * + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - + 11 AS col2 FROM tab1 AS cor0
----
-1
15
2

query I rowsort
SELECT col1 * ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col1 * - 61 FROM tab0
----
-5246
-5551
-5917

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col0 AS REAL ) + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3934
SELECT DISTINCT + CAST( + 65 AS SIGNED ) * - cor0.col2 * col0 + col2 FROM tab1 cor0
----
-10476
-237063
-499104

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT + CAST ( + 65 AS INTEGER ) * - cor0.col2 * col0 + col2 FROM tab1 cor0
----
-10476
-237063
-499104

query I rowsort
SELECT DISTINCT - + col1 * cor0.col1 + + cor0.col0 * - col0 AS col2 FROM tab2 cor0
----
-1010
-6530
-9565

query I rowsort
SELECT + 30 * col2 AS col2 FROM tab1 AS cor0
----
1620
1710
2880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3937
SELECT CAST( NULL AS SIGNED ) * col2 + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT CAST ( NULL AS INTEGER ) * col2 + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - 50 AS col2 FROM tab2 AS cor0
----
-350
-3900
-3950

query I rowsort
SELECT ALL col0 * 28 * + col1 FROM tab0 cor0
----
226772
57792
95060

onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT ALL + 66 DIV + col1 + col0 * ( + cor0.col0 ) FROM tab1 cor0
----
11
4102
6405

skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL + 66 / + col1 + col0 * ( + cor0.col0 ) FROM tab1 cor0
----
11
4102
6405

query I rowsort
SELECT - col1 * 89 AS col2 FROM tab2
----
-1513
-2759
-5251

query I rowsort
SELECT DISTINCT tab1.col1 - - ( col0 ) FROM tab1
----
29
74
93

query I rowsort
SELECT - 43 * col0 * - 37 AS col0 FROM tab1 AS cor0
----
101824
127280
4773

query I rowsort
SELECT ALL - 59 * 43 AS col1 FROM tab2
----
-2537
-2537
-2537

query I rowsort
SELECT ALL col2 * - col1 * col2 AS col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL cor1.col1 + cor0.col0 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to dbf53c8d395fe624f70bcff710ecddf8

query I rowsort
SELECT ALL - tab1.col1 * + cor0.col0 * 66 FROM tab1, tab2 AS cor0
----
9 values hashing to 47da957f9c88057f63ba7a16e417f54b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3948
SELECT col1 * - col2 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
22599
24548
39884

skipif mysql # not compatible
query I rowsort label-3948
SELECT col1 * - col2 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT - 7 AS col0 FROM tab0 cor0
----
-7
-7
-7

query I rowsort
SELECT + 54 + + col0 FROM tab2 AS cor0
----
132
133
61

query I rowsort
SELECT ALL + col1 * col1 * 57 FROM tab0
----
421572
472017
536313

query I rowsort
SELECT ALL - col2 * + 36 AS col0 FROM tab2 AS cor0
----
-1368
-936
-972

onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3953
SELECT + col2 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT tab2.col1 + col1 * 73 * 56 AS col0 FROM tab2
----
126759
241251
69513

query I rowsort
SELECT ALL + 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3956
SELECT col1 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3956
SELECT col1 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + + 21 * ( col2 ) * - 98 AS col1 FROM tab1 cor0
----
-111078
-117249
-197472

query I rowsort
SELECT + col2 * + 97 FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT + col0 * ( + 9 ) FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT ALL - col0 - ( + 6 ) * col1 FROM tab0 AS cor0
----
-540
-617
-635

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab2.col0 ) * + col0 * col0 col2 FROM tab2
----
343
474552
493039

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab2, tab1 AS cor0
----
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-3964
SELECT DISTINCT - col1 * col1 DIV - col0 + col1 * + col2 * col0 AS col1 FROM tab1
----
36481
4437
99842

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT - col1 * col1 / - col0 + col1 * + col2 * col0 AS col1 FROM tab1
----
36481
4437
99842

query I rowsort
SELECT DISTINCT - 20 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab2 cor1
----
-20

query I rowsort
SELECT - 43 * - col0 + col2 FROM tab1
----
183
2809
3536

query I rowsort
SELECT 43 + ( cor0.col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
2107
3438
8142

query I rowsort
SELECT + col1 * + ( - col2 ) + + ( col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT 25 * 51 FROM tab1 cor0
----
1275
1275
1275

query I rowsort
SELECT + + cor0.col0 + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - - col2 + - cor0.col1 * - col1 AS col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT - + 90 * + col2 AS col1 FROM tab2 AS cor0
----
-2340
-2430
-3420

query I rowsort
SELECT + ( - col2 ) + ( 52 ) * - col1 FROM tab1 AS cor0
----
-1406
-577
-772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 * tab2.col1 col0 FROM tab2
----
-155
-295
-85

query I rowsort
SELECT - col0 * col0 + col2 + + col1 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE + col1 NOT IN ( col2 )
----
-24
-35
-89

query III rowsort
SELECT * FROM tab0 WHERE col0 / col0 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 = - col2
----

query I rowsort
SELECT col0 * - col1 + col0 - + col0 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT tab0.col1 * - col0 + col0 AS col0 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT ALL + col2 DIV col1 + tab0.col1 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + col2 / col1 + tab0.col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT tab2.col0 * col0 + col0 AS col1 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL - col2 + - col0 AS col0 FROM tab0
----
-171
-36
-57

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col1 + + col2 + + col2 AS col1 FROM tab2
----
111
85
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - tab0.col2 col1 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3987
SELECT - col0 DIV col2 col1 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3987
SELECT - col0 / col2 col1 FROM tab1
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col0 / + col1 AND ( NULL )
----

query I rowsort
SELECT - tab1.col1 * + col1 AS col0 FROM tab1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 col1 FROM tab1
----
54
57
96

query I rowsort
SELECT + col0 + col2 * col1 + + col2 * col2 FROM tab1
----
10544
3883
4323

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT DISTINCT + 77 FROM tab0, tab2 cor0, tab2 AS cor1
----
77

query I rowsort
SELECT + col2 * tab0.col2 * col2 AS col0 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + tab2.col0 + col1 * + col1 FROM tab2
----
3559
368
968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab1.col2 col2 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT col2 + tab0.col1 DIV col2 AS col0 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-3997
SELECT col2 + tab0.col1 / col2 AS col0 FROM tab0
----
35
83
98

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4000
SELECT col2 DIV col1 - - col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-4000
SELECT col2 / col1 - - col2 FROM tab1
----
103
56
62

query I rowsort
SELECT + col2 + tab2.col1 * + col1 AS col1 FROM tab2
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-4002
SELECT DISTINCT col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT col0 / + col1 AS col0 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND - col2
----

query I rowsort
SELECT tab0.col0 + col2 * + col1 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL + tab0.col2 + col1 + col2 FROM tab0
----
152
255
99

query I rowsort
SELECT - tab1.col0 + col2 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 + col2 col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 + col1 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT tab2.col0 * col2 + + col0 FROM tab2
----
196
2106
3081

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT ALL - col2 + - tab0.col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + cor0.col0 - - col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT tab1.col0 * col1 + col2 + + col1 * + col0 FROM tab1
----
1337
210
2176

query I rowsort
SELECT - col1 * col0 + + col0 * tab2.col1 * + col0 FROM tab2
----
104754
1302
354354

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT tab2.col2 * col1 + + col1 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - col2 - - col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * + col0 + col1 > NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col0 - + col0 FROM tab1 AS cor0
----
-1120
-704
-81

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT - col1 + 41 FROM tab1 cor0
----
15
28
31

query I rowsort
SELECT - + col1 + + col1 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT ALL + cor0.col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL + cor0.col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - 60 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT ALL 23 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to d3b0357ceadb3a70da7f1649b1ef2a30

query I rowsort
SELECT DISTINCT - 77 * col0 - col2 FROM tab1 AS cor0
----
-285
-4985
-6256

query I rowsort
SELECT ALL col1 * 29 FROM tab0
----
2494
2639
2813

query I rowsort
SELECT ALL + col0 * + 44 FROM tab0
----
1056
1540
3916

query I rowsort
SELECT ALL + ( - col1 ) AS col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - col0 * col1 * col1 AS col1 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT - 51 + + 15 FROM tab0 cor0
----
-36

query I rowsort
SELECT ( - ( + col2 ) ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - 19 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
-126
-167
-491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + + col2 col2 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + col2 * - ( 82 ) col2 FROM tab2 AS cor0
----
-2189
-2271
-3173

query I rowsort
SELECT 37 AS col1 FROM tab1
----
37
37
37

query I rowsort
SELECT - 88 - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-2116
-277
-3090

query I rowsort
SELECT + 6 AS col2 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ALL + + col1 + col0 * col2 AS col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT col1 * - col2 + 39 + + 41 FROM tab2 AS cor0
----
-1454
-566
-757

query I rowsort
SELECT - cor0.col2 + 66 FROM tab2 AS cor0
----
28
39
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 94 + - col0 col0 FROM tab0 AS cor0
----
3078
59
7619

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4043
SELECT - col1 + CAST( - 27 AS SIGNED ) FROM tab2 AS cor0
----
-44
-58
-86

skipif mysql # not compatible
query I rowsort label-4043
SELECT - col1 + CAST ( - 27 AS INTEGER ) FROM tab2 AS cor0
----
-44
-58
-86

query I rowsort
SELECT - + col2 * col1 * - col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + col0 * 15 FROM tab1 AS cor0
----
1200
45
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT ALL - col2 + col0 DIV 31 FROM tab0 AS cor0
----
-33
-80
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL - col2 + col0 / 31 FROM tab0 AS cor0
----
-33
-80
0

query I rowsort
SELECT + col1 + - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + - tab1.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL - col2 * - col0 + + 84 * 23 AS col2 FROM tab2
----
2121
3960
4934

query I rowsort
SELECT cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT ( col1 ) + col1 AS col2 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4052
SELECT tab1.col0 + col1 DIV col2 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4052
SELECT tab1.col0 + col1 / col2 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + ( + col1 ) * + col1 + 23 * - ( tab0.col1 ) AS col1 FROM tab0
----
5418
6188
7178

query I rowsort
SELECT + + ( 38 ) * col2 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 27 col1 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT + cor0.col0 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - + 86 + + col1 FROM tab0 AS cor0
----
0
11
5

query I rowsort
SELECT - 18 + col1 AS col1 FROM tab0 AS cor0
----
68
73
79

query I rowsort
SELECT + 91 * col1 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT + col2 * col2 + col1 AS col2 FROM tab2 cor0
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4062
SELECT col1 * - cor0.col2 + cor0.col0 - + 48 * + col2 * CAST( + col0 * col0 AS SIGNED ) FROM tab2 AS cor0
----
-11384151
-64334
-7594288

skipif mysql # not compatible
query I rowsort label-4062
SELECT col1 * - cor0.col2 + cor0.col0 - + 48 * + col2 * CAST ( + col0 * col0 AS INTEGER ) FROM tab2 AS cor0
----
-11384151
-64334
-7594288

query I rowsort
SELECT 59 - col1 FROM tab2 AS cor0
----
0
28
42

query I rowsort
SELECT 13 * tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9484e9b7c9bf51f2da71037766f081d0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT + cor0.col1 DIV - 47 + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4065
SELECT + cor0.col1 / - 47 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + cor0.col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 52 * + col1 FROM tab1
----
1352
520
676

query I rowsort
SELECT - tab0.col0 * + col2 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + 10 col0 FROM tab0 AS cor0
----
-23
-72
9

query I rowsort
SELECT - - col2 * cor0.col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - tab1.col1 * 55 FROM tab1
----
-1430
-550
-715

query I rowsort
SELECT ALL - col1 * - 8 + - col0 AS col1 FROM tab1 AS cor0
----
16
205
24

query I rowsort
SELECT ALL + - col2 + - col0 - - col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL cor0.col0 + - col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT - + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4076
SELECT DISTINCT + + 93 + col0 DIV col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT + + 93 + col0 / col1 FROM tab0 AS cor0
----
93

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * - col0 + + 78 AS col0 FROM tab1 AS cor0
----
1118
156
718

query I rowsort
SELECT ALL - + col2 * col0 - + cor0.col0 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT DISTINCT - CAST( + col1 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) / col0 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT DISTINCT col1 DIV + col1 col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4080
SELECT DISTINCT col1 / + col1 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 * + ( col2 ) FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - 50 FROM tab1 AS cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4083
SELECT ALL cor0.col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL cor0.col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 19 + col1 * - col0 * + col0 AS col1 FROM tab0 cor0
----
-118806
-49517
-720792

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 76 AS REAL ) * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4086
SELECT ALL CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + ( col0 ) + - col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT - 71 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * cor0.col1 col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + + cor0.col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - - 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL 29 AS col1 FROM tab2
----
29
29
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4093
SELECT ALL + CAST( - cor0.col2 AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL + CAST ( - cor0.col2 AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

skipif mysql # not compatible
query I rowsort
SELECT col1 + col1 * CAST ( - col0 AS REAL ) * col0 + + cor0.col2 FROM tab1 cor0
----
-154
-40893
-83091

query I rowsort
SELECT + + ( + col1 ) + - 79 AS col0 FROM tab2 AS cor0
----
-20
-48
-62

query I rowsort
SELECT + col0 * col2 + + tab1.col1 AS col2 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4097
SELECT - col1 * col2 DIV col0 + + cor0.col1 AS col2 FROM tab2 cor0
----
-88
40
9

skipif mysql # not compatible
query I rowsort label-4097
SELECT - col1 * col2 / col0 + + cor0.col1 AS col2 FROM tab2 cor0
----
-88
40
9

query I rowsort
SELECT ALL + col1 * - tab0.col2 * + 84 + - col1 AS col1 FROM tab0
----
-238478
-626899
-8245

onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT ALL - col0 + - col1 * 4 DIV + col1 AS col2 FROM tab1
----
-68
-7
-84

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - col0 + - col1 * 4 / + col1 AS col2 FROM tab1
----
-68
-7
-84

query I rowsort
SELECT DISTINCT 9 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + 39 col2 FROM tab1 AS cor0
----
-25
-41
36

query I rowsort
SELECT ALL + col1 * + 92 AS col2 FROM tab2 cor0
----
1564
2852
5428

query I rowsort
SELECT DISTINCT 21 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
21

query I rowsort
SELECT col0 + 35 AS col2 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT + col2 * - 77 FROM tab0 AS cor0
----
-2541
-6314
-77

query I rowsort
SELECT ALL - - ( + col0 ) + col0 * col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col0 + + cor0.col2 * + 97 + col0 AS col2 FROM tab0 AS cor0
----
167
3249
8132

query I rowsort
SELECT DISTINCT col1 * - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - - 10 FROM tab2 cor0
----
10
10
10

query I rowsort
SELECT - 31 + col1 * ( + col0 ) + col2 FROM tab1 cor0
----
101
1105
666

query I rowsort
SELECT DISTINCT - + col1 + + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - 32 AS col0 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT + - 8 * - col0 + col2 + + col2 AS col2 FROM tab2 AS cor0
----
110
676
708

onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT ALL col1 + col2 * cor0.col0 DIV 37 + col2 AS col0 FROM tab1 AS cor0
----
165
316
84

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL col1 + col2 * cor0.col0 / 37 + col2 AS col0 FROM tab1 AS cor0
----
165
316
84

query I rowsort
SELECT ALL + - 46 * col1 + + 26 AS col2 FROM tab2 cor0
----
-1400
-2688
-756

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT - ( 71 ) + col2 AS col1 FROM tab0
----
-38
-70
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-4118
SELECT DISTINCT + col0 * col1 + ( - col2 ) DIV + col1 + - 42 * 6 FROM tab2 cor0
----
-35
1089
4350

skipif mysql # not compatible
query I rowsort label-4118
SELECT DISTINCT + col0 * col1 + ( - col2 ) / + col1 + - 42 * 6 FROM tab2 cor0
----
-35
1089
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col2 + + col2 * col0 * + col2 col1 FROM tab1 AS cor0
----
10152
208506
738528

query I rowsort
SELECT col1 * - col1 + 78 FROM tab2 AS cor0
----
-211
-3403
-883

query I rowsort
SELECT ALL - - col2 * col1 + ( col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4122
SELECT - col1 DIV - 60 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4122
SELECT - col1 / - 60 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT cor0.col1 * - 84 AS col2 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
-1092
-2184
-840

query I rowsort
SELECT ALL + col0 + - 92 AS col2 FROM tab0 AS cor0
----
-3
-57
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4125
SELECT ALL col0 * CAST( 70 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
490
5460
5530

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL col0 * CAST ( 70 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT ALL + + cor0.col0 + + col2 * + col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - - cor2.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
24
35
89

query I rowsort
SELECT ALL + ( 29 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ( col1 ) - - col2 FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4130
SELECT + CAST( NULL AS SIGNED ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT + CAST ( NULL AS INTEGER ) - - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) * col0 + - ( col2 + col2 ) * + 74 AS col2 FROM tab1 AS cor0
----
-4788
-6528
-7830

query I rowsort
SELECT + col0 * 38 - col2 FROM tab1 AS cor0
----
2375
2944
60

query I rowsort
SELECT DISTINCT - col0 - - ( col2 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4134
SELECT ( col1 ) DIV + col1 + col0 * - cor0.col0 col0 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4134
SELECT ( col1 ) / + col1 + col0 * - cor0.col0 col0 FROM tab0 AS cor0
----
-1224
-575
-7920

query I rowsort
SELECT DISTINCT + ( + col1 ) + + col0 * ( col1 ) AS col2 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4136
SELECT ALL + + CAST( NULL AS SIGNED ) * - 46 + + col0 * ( ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 46 + + col0 * ( ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4137
SELECT ALL - CAST( - col1 AS SIGNED ) + + col0 * + 34 FROM tab1 AS cor0
----
128
2186
2733

skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - CAST ( - col1 AS INTEGER ) + + col0 * + 34 FROM tab1 AS cor0
----
128
2186
2733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4138
SELECT ALL CAST( NULL AS SIGNED ) / - col2 + - col1 * 13 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 + - col1 * 13 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - col2 * col0 AS col2 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT ( ( + col0 ) ) * col0 + - 11 AS col2 FROM tab1
----
-2
4085
6389

query I rowsort
SELECT + 92 * - col2 - tab1.col2 * - col2 FROM tab1
----
-1995
-2052
384

query I rowsort
SELECT ALL cor0.col1 * + col0 - col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-4143
SELECT ALL cor0.col2 + - 18 * cor0.col0 + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-1378
-1384
-96

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL cor0.col2 + - 18 * cor0.col0 + col2 / col0 AS col2 FROM tab2 AS cor0
----
-1378
-1384
-96

query I rowsort
SELECT 12 + + col2 FROM tab0 AS cor0
----
13
45
94

query I rowsort
SELECT + col0 + - 19 FROM tab0
----
16
5
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT ALL col2 DIV + tab0.col1 + col2 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL col2 / + tab0.col1 + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT - tab1.col1 * - tab1.col2 + col1 * - col0 AS col2 FROM tab1
----
-70
1326
208

query I rowsort
SELECT ALL + 5 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT col0 + - col2 * col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - col1 + col0 + ( 26 + col0 ) FROM tab2 AS cor0
----
123
167
9

query I rowsort
SELECT 48 AS col0 FROM tab0
----
48
48
48

query I rowsort
SELECT + tab1.col0 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT ( + tab2.col0 * tab2.col1 ) AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + col0 + + col2 * + tab1.col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT 45 * - col2 * col2 AS col2 FROM tab0
----
-302580
-45
-49005

query I rowsort
SELECT + 77 * - tab1.col2 FROM tab1
----
-4158
-4389
-7392

query I rowsort
SELECT - ( + col0 ) - - col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + 23 + col0 FROM tab0 AS cor0
----
112
47
58

query I rowsort
SELECT ALL - 89 + col1 AS col2 FROM tab1 AS cor0
----
-63
-76
-79

query I rowsort
SELECT ALL 74 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT - + cor0.col1 * col1 + col1 * col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4162
SELECT col2 * cor0.col1 + - CAST( NULL AS SIGNED ) * col2 / - col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4162
SELECT col2 * cor0.col1 + - CAST ( NULL AS INTEGER ) * col2 / - col0 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4163
SELECT ALL ( + col1 ) DIV + col1 - + col2 * col0 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL ( + col1 ) / + col1 - + col2 * col0 FROM tab1 AS cor0
----
-161
-3647
-7679

onlyif mysql # use DIV operator for integer division
query I rowsort label-4164
SELECT + col0 DIV + col0 + - col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4164
SELECT + col0 / + col0 + - col2 FROM tab0 AS cor0
----
-32
-81
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT DISTINCT + 11 DIV + 86 AS col1 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + 11 / + 86 AS col1 FROM tab0, tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4166
SELECT + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col2 * 99 AS col2 FROM tab0
----
2
3181
8027

onlyif mysql # use DIV operator for integer division
query I rowsort label-4168
SELECT + col0 DIV - col2 AS col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT + col0 / - col2 AS col2 FROM tab0 cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + 47 * col1 col0 FROM tab0 AS cor0
----
4018
4188
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-4170
SELECT ALL + col2 DIV - tab0.col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL + col2 / - tab0.col2 AS col2 FROM tab0
----
-1
-1
-1

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT ALL 16 * col2 - - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1092
1161
2052

query I rowsort
SELECT ALL - col0 + 48 AS col0 FROM tab1 AS cor0
----
-16
-32
45

query I rowsort
SELECT + col2 - col1 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - col2 + 2 * - col1 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT DISTINCT + - 15 AS col2 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT - - cor1.col2 + - cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0b65e3a549910903b0e666f5e0860c54

query I rowsort
SELECT 46 * 29 - + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
-4750
-4907
1285

query I rowsort
SELECT DISTINCT - 48 * + col1 AS col1 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT 99 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
2633
2704
3779

query I rowsort
SELECT DISTINCT + + col2 + 30 AS col2 FROM tab0 AS cor0
----
112
31
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4182
SELECT DISTINCT - col2 DIV - col0 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT - col2 / - col0 FROM tab2
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4183
SELECT - col2 + - 47 DIV cor0.col2 AS col2 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4183
SELECT - col2 + - 47 / cor0.col2 AS col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + 61 * 83 FROM tab2 AS cor0
----
5063
5063
5063

query I rowsort
SELECT - - col0 * + ( 22 ) AS col0 FROM tab1 AS cor0
----
1408
1760
66

query I rowsort
SELECT ALL + tab1.col1 * col0 * + tab1.col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT col0 - ( col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 - tab0.col2 * - col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + col1 + + 72 FROM tab1 cor0
----
82
85
98

query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab1, tab1 AS cor0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT cor0.col2 + - 78 FROM tab1 AS cor0
----
-21
-24
18

query I rowsort
SELECT - col1 * 2 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + tab0.col1 * - tab0.col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4197
SELECT CAST( - col2 AS SIGNED ) * + col0 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-4197
SELECT CAST ( - col2 AS INTEGER ) * + col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 97 + tab2.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b3b2a965505749791d1f730ffd16938f

query I rowsort
SELECT - 37 * + col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-3149
-3285
-3588

query I rowsort
SELECT col1 + - col0 * ( col2 ) FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT - col0 * col1 DIV col2 col0 FROM tab1 AS cor0
----
-1
-10
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4201
SELECT - col0 * col1 / col2 col0 FROM tab1 AS cor0
----
-1
-10
-11

query I rowsort
SELECT + 32 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ( 17 ) * col0 AS col1 FROM tab0
----
1513
408
595

query I rowsort
SELECT ALL - col2 * + tab0.col0 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + - col0 + - col2 * + col1 * - col0 FROM tab0 AS cor0
----
3360
664029
68088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * + col1 col1 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT DISTINCT + 42 * - col1 AS col2 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT + 86 * col2 + + col0 * col0 FROM tab0 AS cor0
----
1311
14973
3414

query I rowsort
SELECT - 6 + col0 AS col1 FROM tab0 cor0
----
18
29
83

query I rowsort
SELECT - col0 + + col0 * - 50 FROM tab2 AS cor0
----
-357
-3978
-4029

query I rowsort
SELECT ALL col1 * + col2 + + 32 FROM tab2
----
1566
678
869

query I rowsort
SELECT ALL - col0 * col2 + - col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT 33 + + col2 FROM tab2 AS cor0
----
59
60
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4215
SELECT + - 27 * + col2 - CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4215
SELECT + - 27 * + col2 - CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + 11 + - col2 FROM tab2 cor0
----
-15
-16
-27

query I rowsort
SELECT ALL - - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL col1 * + col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT + col1 + 52 * - col2 FROM tab0 AS cor0
----
-1630
-4173
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + ( + col2 ) * col0 * - col2 col2 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT DISTINCT - - col1 * ( - ( + col0 ) ) FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + col1 + - 38 FROM tab2 AS cor0
----
-21
-7
21

query I rowsort
SELECT + - col0 * - 69 AS col1 FROM tab0 AS cor0
----
1656
2415
6141

onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT DISTINCT + col1 + ( col2 ) * col2 DIV col0 FROM tab0 AS cor0
----
131
166
97

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT + col1 + ( col2 ) * col2 / col0 FROM tab0 AS cor0
----
131
166
97

query I rowsort
SELECT col0 * - 96 FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT ALL col2 + 64 FROM tab0 AS cor0
----
146
65
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4229
SELECT DISTINCT + col2 + - tab2.col0 * - 34 + col2 DIV + col1 FROM tab2
----
265
2678
2726

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + col2 + - tab2.col0 * - 34 + col2 / + col1 FROM tab2
----
265
2678
2726

query I rowsort
SELECT ALL + col2 * + col1 + - col0 AS col2 FROM tab2
----
1456
567
830

query I rowsort
SELECT DISTINCT + 77 + - col0 FROM tab2
----
-1
-2
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4232
SELECT ALL 0 DIV - tab0.col0 + 94 * col1 FROM tab0
----
8084
8554
9118

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL 0 / - tab0.col0 + 94 * col1 FROM tab0
----
8084
8554
9118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4233
SELECT + + CAST( col1 AS SIGNED ) * - cor0.col0 + - ( col1 ) FROM tab1 AS cor0
----
-104
-1053
-650

skipif mysql # not compatible
query I rowsort label-4233
SELECT + + CAST ( col1 AS INTEGER ) * - cor0.col0 + - ( col1 ) FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT + col0 DIV 87 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT + col0 / 87 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 68 ) + col2 FROM tab2 AS cor0
----
106
94
95

query I rowsort
SELECT ALL 95 + + 84 + col0 * + col0 FROM tab2 AS cor0
----
228
6263
6420

query I rowsort
SELECT + 35 AS col0 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT ALL + 84 AS col1 FROM tab2 cor0
----
84
84
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4239
SELECT - CAST( col0 AS SIGNED ) + cor0.col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT - CAST ( col0 AS INTEGER ) + cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 67 * + 22 * col0 + + 39 * col0 AS col2 FROM tab2 AS cor0
----
10591
118014
119527

query I rowsort
SELECT 16 AS col1 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-4242
SELECT DISTINCT - col0 DIV + 20 AS col2 FROM tab1 AS cor0
----
-3
-4
0

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT - col0 / + 20 AS col2 FROM tab1 AS cor0
----
-3
-4
0

query I rowsort
SELECT DISTINCT - - 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 ALL col0 * col1 - col2 * col1 * col0 col2 FROM tab1 cor0
----
-35840
-4134
-98800

query I rowsort
SELECT DISTINCT - - col1 + - col0 AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col0 * + col2 * + 45 AS col0 FROM tab2 AS cor0
----
135090
8505
91260

query I rowsort
SELECT + ( 34 ) - col0 * - 74 FROM tab1 AS cor0
----
256
4770
5954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 * 56 - - col2 * + col2 col1 FROM tab2
----
-108
-55
660

query I rowsort
SELECT - 66 * - 2 FROM tab1
----
132
132
132

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT - + CAST( 9 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-4250
SELECT - + CAST ( 9 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + col1 + ( 20 ) * col1 FROM tab0 AS cor0
----
1806
1911
2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT - col1 DIV + col0 + 97 * col1 FROM tab1 AS cor0
----
1261
2514
970

skipif mysql # not compatible
query I rowsort label-4252
SELECT - col1 / + col0 + 97 * col1 FROM tab1 AS cor0
----
1261
2514
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-4253
SELECT + cor0.col2 * - 44 + col0 DIV - cor0.col0 FROM tab2 AS cor0
----
-1145
-1189
-1673

skipif mysql # not compatible
query I rowsort label-4253
SELECT + cor0.col2 * - 44 + col0 / - cor0.col0 FROM tab2 AS cor0
----
-1145
-1189
-1673

query I rowsort
SELECT ALL + - ( col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT + ( col1 ) * col0 + 14 AS col1 FROM tab1 AS cor0
----
1054
654
92

query I rowsort
SELECT ALL - + 79 + 51 FROM tab1 AS cor0
----
-28
-28
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4257
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 29 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 29 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT tab2.col2 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col2 AS REAL ) / col2 AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col0 * + col0 * - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-262087
-511904
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4261
SELECT CAST( NULL AS SIGNED ) + + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT CAST ( NULL AS INTEGER ) + + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + 45 AS col0 FROM tab0 cor0
----
-44
10
21

query I rowsort
SELECT DISTINCT - + 28 + - col0 AS col0 FROM tab1 AS cor0
----
-108
-31
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT DISTINCT + 53 DIV - col1 FROM tab1 cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT + 53 / - col1 FROM tab1 cor0
----
-2
-4
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4265
SELECT - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + 22 * 36 * + col2 + col0 FROM tab1 AS cor0
----
42771
45208
76112

query I rowsort
SELECT DISTINCT + + cor0.col1 - + col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4270
SELECT ALL + - 82 + col1 DIV col0 FROM tab1 cor0
----
-74
-82
-82

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL + - 82 + col1 / col0 FROM tab1 cor0
----
-74
-82
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4271
SELECT - col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4271
SELECT - col1 / + col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * col2 * - col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + - col1 * + col1 + - ( - 57 ) * col2 * 94 FROM tab2 AS cor0
----
135827
143705
203315

onlyif mysql # use DIV operator for integer division
query I rowsort label-4274
SELECT ALL - - col2 + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - - col2 + col2 / - col2 AS col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT 20 + col1 FROM tab0 AS cor0
----
106
111
117

query I rowsort
SELECT ALL - - col2 * col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT + - 62 * cor0.col1 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT DISTINCT - - cor0.col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT DISTINCT + - cor0.col2 + - col1 DIV ( col2 ) FROM tab0 AS cor0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + - cor0.col2 + - col1 / ( col2 ) FROM tab0 AS cor0
----
-35
-83
-98

query I rowsort
SELECT ALL - 15 * col0 FROM tab0 AS cor0
----
-1335
-360
-525

query I rowsort
SELECT 2 AS col1 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + - cor0.col0 * - col1 + col0 + + col0 FROM tab0 AS cor0
----
2112
3465
8277

query I rowsort
SELECT ALL + col2 - - 50 * + 23 AS col1 FROM tab2 cor0
----
1176
1177
1188

query I rowsort
SELECT - col1 - + col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - ( - col0 ) * + col2 col0 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-4287
SELECT + col0 DIV - col1 + + col2 + col2 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-4287
SELECT + col0 / - col1 + + col2 + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col1 * 82 + col2 - + col2 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT ALL + col0 + - 35 AS col1 FROM tab2 AS cor0
----
-28
43
44

query I rowsort
SELECT + col0 + - ( - col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - - col0 + + cor0.col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + col2 + + col1 * ( + col1 + col0 ) FROM tab0
----
12805
16462
9493

query I rowsort
SELECT ALL - tab2.col2 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4294
SELECT + col1 * 80 DIV + col2 col0 FROM tab1 AS cor0
----
10
14
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4294
SELECT + col1 * 80 / + col2 col0 FROM tab1 AS cor0
----
10
14
38

query I rowsort
SELECT cor0.col2 * col0 - - col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4296
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * col0 + - col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT + col0 + col0 * + col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 94 AS col1 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT + + 53 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT col1 + + 23 * + col0 AS col0 FROM tab0
----
2138
638
902

query I rowsort
SELECT DISTINCT ( col2 + - col0 ) FROM tab2
----
-41
-52
20

query I rowsort
SELECT - 59 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT 90 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT + tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - ( - tab1.col2 ) FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + ( - col0 ) - - col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - cor0.col2 - 53 AS col0 FROM tab0, tab0 AS cor0
----
-135
-54
-86

query I rowsort
SELECT DISTINCT 22 * + col2 AS col0 FROM tab2 AS cor0
----
572
594
836

query I rowsort
SELECT ALL - + 60 * cor0.col0 * col1 FROM tab2 AS cor0
----
-13020
-276120
-80580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col0 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + + ( cor0.col2 ) + + col2 + col0 AS col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT - + ( col2 ) + - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT - 3 + col1 FROM tab1 AS cor0
----
10
23
7

query I rowsort
SELECT ALL + 75 + 65 FROM tab1 AS cor0
----
140
140
140

query I rowsort
SELECT 21 + ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
310
3502
982

onlyif mysql # use DIV operator for integer division
query I rowsort label-4318
SELECT + 31 DIV - col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1246
1403
567

skipif mysql # not compatible
query I rowsort label-4318
SELECT + 31 / - col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1246
1403
567

query I rowsort
SELECT DISTINCT + + 48 AS col1 FROM tab1 AS cor0
----
48

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT ALL - 34 * - 14 FROM tab1
----
476
476
476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 9 ) col2 FROM tab2
----
-9
-9
-9

query I rowsort
SELECT col2 * tab2.col0 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + 67 + + 45 FROM tab1
----
112
112
112

query I rowsort
SELECT ALL tab2.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-4326
SELECT ALL col0 + col1 DIV col1 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-4326
SELECT ALL col0 + col1 / col1 FROM tab2
----
79
8
80

query I rowsort
SELECT ALL - tab1.col2 * col1 AS col1 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL cor0.col0 * + 20 AS col0 FROM tab0 AS cor0
----
1780
480
700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4330
SELECT col0 * CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4330
SELECT col0 * CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - col0 + - tab1.col2 + 51 AS col0 FROM tab1
----
-12
-4102
-6445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 + - 31 col0 FROM tab1
----
-8
-85
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - cor0.col2 col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 * - col0 col2 FROM tab2
----
-217
-2418
-2449

query I rowsort
SELECT + ( + col0 + - 54 ) FROM tab2
----
-47
24
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-4336
SELECT col0 * col2 DIV - cor0.col2 + + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-4336
SELECT col0 * col2 / - cor0.col2 + + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 - + col2 col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - col2 + 52 AS col2 FROM tab0 AS cor0
----
-30
19
51

query I rowsort
SELECT + col2 + + 32 FROM tab1 AS cor0
----
128
86
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4340
SELECT + tab2.col0 + col1 * tab2.col2 DIV - col1 + col2 AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4340
SELECT + tab2.col0 + col1 * tab2.col2 / - col1 + col2 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - col1 * tab1.col2 - + col1 AS col0 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT - col0 + col1 * col1 FROM tab2
----
210
3403
954

query I rowsort
SELECT ALL col0 - tab2.col2 * col0 * col0 AS col2 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT DISTINCT col0 * + col1 - col1 AS col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT + col2 + + col0 - + col1 * col2 AS col1 FROM tab2
----
-1430
-529
-803

query I rowsort
SELECT DISTINCT tab1.col2 - col0 * tab1.col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + col1 - - col2 AS col2 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4348
SELECT - cor0.col1 DIV col0 col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4348
SELECT - cor0.col1 / col0 col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - col1 + - col1 + - col0 AS col0 FROM tab0
----
-196
-229
-271

query I rowsort
SELECT ALL - col1 - + col1 AS col0 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT ALL cor0.col0 * col0 + col1 * col0 - cor0.col0 * + col2 FROM tab1 AS cor0
----
-240
-75
1088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + - col0 * col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT + col2 + - col0 * col2 - col1 FROM tab1 AS cor0
----
-134
-3601
-7597

query I rowsort
SELECT - col0 + col0 - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col1 * + col0 * col0 + col0 AS col1 FROM tab0 cor0
----
118860
49560
720900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 * + col2 col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - + col2 + col2 * col2 FROM tab1 cor0
----
2862
3192
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col2 * col2 col0 FROM tab2 AS cor0
----
-17576
-19683
-54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT + col2 + + cor0.col0 DIV col0 AS col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4360
SELECT + col2 + + cor0.col0 / col0 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 FROM tab1 cor0
----
0

query I rowsort
SELECT - + ( cor0.col0 ) + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 51 + col1 AS col2 FROM tab1 AS cor0
----
61
64
77

query I rowsort
SELECT ALL - - cor0.col2 * - col0 + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 37 + + col0 AS col2 FROM tab1 AS cor0
----
101
117
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4366
SELECT ALL - col0 DIV + col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - col0 / + col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 52 * col1 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT ALL + col1 * col2 * col0 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-4369
SELECT DISTINCT + col2 DIV + col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT + col2 / + col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 * - col0 * + col0 col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT DISTINCT col2 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + cor1.col2 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a3b44b1349b97a64e1970dbe00e8d983

query I rowsort
SELECT + col2 - - 13 FROM tab0
----
14
46
95

query I rowsort
SELECT + - col2 - + col2 * col1 * - ( col0 + col0 ) FROM tab0 AS cor0
----
1328154
136191
6789

query I rowsort
SELECT DISTINCT - + 71 AS col2 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT 82 - + cor0.col1 FROM tab1 AS cor0
----
56
69
72

query I rowsort
SELECT ALL - 98 * col2 AS col1 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT ALL + col1 * - tab1.col2 * - col2 FROM tab1
----
119808
32490
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col1 FROM tab1
----
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4380
SELECT DISTINCT col2 DIV + col2 + + ( - col1 ) FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT col2 / + col2 + + ( - col1 ) FROM tab0
----
-85
-90
-96

query I rowsort
SELECT ALL - col2 * + tab0.col0 + - col2 * col0 FROM tab0
----
-14596
-1584
-70

query I rowsort
SELECT ALL + cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - 30 - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2886
-3219
-9186

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4384
SELECT ALL + cor0.col1 + - col1 / - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL + cor0.col1 + - col1 / - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT - col0 - + col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - - cor0.col2 - col1 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col0 FROM tab0
----
-7
-7
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4389
SELECT ALL + col2 * col0 / CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + col2 * col0 / CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - cor0.col2 + 42 FROM tab2 AS cor0
----
2070
231
3044

onlyif mysql # use DIV operator for integer division
query I rowsort label-4391
SELECT ALL + + col0 - cor0.col0 DIV cor0.col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL + + col0 - cor0.col0 / cor0.col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT col1 * col1 * - col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT + tab1.col1 * col2 + 19 * col0 FROM tab1
----
1461
1786
2768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4394
SELECT DISTINCT - - col1 * + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT - - col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * - 24 AS col1 FROM tab2 AS cor0
----
-624
-648
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT ALL - col1 DIV col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - col1 / col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col1 * tab0.col1 + 77 AS col1 FROM tab0
----
7473
8358
9486

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4398
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4398
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - ( col0 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - 56 AS col0 FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT ALL + cor0.col2 + + ( + col0 ) * 67 FROM tab1 AS cor0
----
255
4345
5456

query I rowsort
SELECT ALL 52 AS col2 FROM tab1 AS cor0
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 col2 FROM tab1 AS cor0
----
-57
-57
-57

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to c9ee6ec1bc8c6eb5f95042f98a50bd57

query I rowsort
SELECT ( - 15 ) FROM tab2
----
-15
-15
-15

query I rowsort
SELECT - + ( - col1 ) + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT + 89 * + col1 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT ( - col0 ) * - col1 + + col2 * 32 * col1 + - col2 * col0 FROM tab0 cor0
----
239585
6464
92088

query I rowsort
SELECT col2 * 91 AS col2 FROM tab2 AS cor0
----
2366
2457
3458

query I rowsort
SELECT col2 + - 48 AS col0 FROM tab2 AS cor0
----
-10
-21
-22

query I rowsort
SELECT cor0.col1 + col2 * col2 AS col1 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT ALL - col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4413
SELECT ALL CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 * + ( + col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 39 * - col2 FROM tab0 AS cor0
----
1287
3198
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 * - col0 col1 FROM tab2 AS cor0
----
-119
-1326
-1343

query I rowsort
SELECT DISTINCT - 25 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-25

query I rowsort
SELECT DISTINCT col2 * 53 AS col1 FROM tab1
----
2862
3021
5088

query I rowsort
SELECT ALL + col2 - - 68 AS col1 FROM tab1 AS cor0
----
122
125
164

query I rowsort
SELECT col1 * col2 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - col0 * cor0.col0 + col0 FROM tab2 cor0
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 17 col0 FROM tab0 cor0
----
-16
16
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) - + col2 * - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) - + col2 * - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + - ( col1 + + col1 ) * col2 AS col1 FROM tab0 cor0
----
-14833
-5590
-97

query I rowsort
SELECT ALL - 19 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0fbbff28a7b63c37b01cf369f9325662

query I rowsort
SELECT + tab1.col0 + 90 FROM tab1
----
154
170
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT DISTINCT - col0 DIV col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT - col0 / col0 FROM tab0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4428
SELECT CAST( 21 AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif mysql # not compatible
query I rowsort label-4428
SELECT CAST ( 21 AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4429
SELECT DISTINCT + col1 DIV + 60 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT + col1 / + 60 AS col0 FROM tab0
----
1

query I rowsort
SELECT col1 * - ( col1 ) * + col1 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT + col0 + + col0 AS col2 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT + col1 - + 78 FROM tab1 AS cor0
----
-52
-65
-68

query I rowsort
SELECT - cor0.col2 + - 1 FROM tab1 cor0
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4435
SELECT col2 * col1 + - col1 DIV col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4435
SELECT col2 * col1 + - col1 / col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 + + 9 * col0 * col0 - 84 FROM tab0 AS cor0
----
10844
5014
71114

query I rowsort
SELECT DISTINCT - col2 * 66 AS col1 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT col2 + 91 * 29 - cor0.col2 FROM tab2 AS cor0
----
2639
2639
2639

query I rowsort
SELECT DISTINCT col2 * - 9 AS col2 FROM tab0 AS cor0
----
-297
-738
-9

query I rowsort
SELECT ALL + col1 + col0 + 31 * col1 FROM tab1 AS cor0
----
384
496
835

query I rowsort
SELECT + - col2 + + ( 66 ) - col0 AS col0 FROM tab0 AS cor0
----
-105
30
9

query I rowsort
SELECT col2 * 45 - - col0 FROM tab0 AS cor0
----
1509
3779
80

query I rowsort
SELECT - col2 + + cor0.col2 - + col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT col2 * 79 AS col1 FROM tab1 AS cor0
----
4266
4503
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT - 54 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4445
SELECT - 54 / cor0.col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT 19 + - col0 AS col0 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT - 54 + + col1 * - col2 FROM tab2 AS cor0
----
-1588
-700
-891

query I rowsort
SELECT ALL + col1 * - cor0.col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT DISTINCT - col2 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT - col2 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4450
SELECT + CAST( NULL AS SIGNED ) * ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4450
SELECT + CAST ( NULL AS INTEGER ) * ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 22 + col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1321
195
4580

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab1 AS cor0
----
28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4454
SELECT CAST( cor0.col2 AS SIGNED ) * + col1 - + 99 AS col0 FROM tab1 AS cor0
----
1149
1305
471

skipif mysql # not compatible
query I rowsort label-4454
SELECT CAST ( cor0.col2 AS INTEGER ) * + col1 - + 99 AS col0 FROM tab1 AS cor0
----
1149
1305
471

query I rowsort
SELECT + + 80 AS col2 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT ALL + col1 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL + col1 / - col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - col0 * - 16 + col0 FROM tab0 cor0
----
1513
408
595

query I rowsort
SELECT DISTINCT - col0 * ( - col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + + col0 + - col0 * col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT + + col1 + 18 AS col2 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT col0 - - col2 * + 56 FROM tab2
----
1519
1534
2207

query I rowsort
SELECT ALL - 78 * col2 FROM tab0
----
-2574
-6396
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT - 12 DIV - col1 + ( - 94 ) FROM tab2
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-4463
SELECT - 12 / - col1 + ( - 94 ) FROM tab2
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + + col0 + + 90 FROM tab2 AS cor0
----
168
169
97

query I rowsort
SELECT DISTINCT + - 3 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

query I rowsort
SELECT + 58 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT col0 DIV + col0 + col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4469
SELECT col0 / + col0 + col2 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT + tab0.col1 - + col2 * - col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT col1 + col2 * 90 AS col1 FROM tab0
----
187
3056
7471

query I rowsort
SELECT ( + cor0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + + col2 * ( 3 ) FROM tab0 cor0
----
246
3
99

query I rowsort
SELECT DISTINCT + col1 * - ( - ( col2 ) ) + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + tab0.col0 * col1 + + col1 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL - col0 + + 56 AS col1 FROM tab0
----
-33
21
32

query I rowsort
SELECT - col0 * 37 AS col2 FROM tab2
----
-259
-2886
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + col1 * - col1 + + col1 * col0 FROM tab2 AS cor0
----
-744
1054
1121

query I rowsort
SELECT + 27 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 96 + ( col2 ) AS col2 FROM tab2
----
122
123
134

query I rowsort
SELECT ALL - tab1.col2 + + col0 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + 44 AS col0 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2 AS cor0
----
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4486
SELECT ALL - 35 * col1 * - CAST( - col0 AS SIGNED ) FROM tab2 cor0
----
-161070
-47005
-7595

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL - 35 * col1 * - CAST ( - col0 AS INTEGER ) FROM tab2 cor0
----
-161070
-47005
-7595

onlyif mysql # use DIV operator for integer division
query I rowsort label-4487
SELECT ALL - - col1 DIV col0 + - 8 AS col2 FROM tab2 AS cor0
----
-4
-8
-8

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL - - col1 / col0 + - 8 AS col2 FROM tab2 AS cor0
----
-4
-8
-8

query I rowsort
SELECT ALL - - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - 34 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT ALL 43 * col2 FROM tab1
----
2322
2451
4128

query I rowsort
SELECT + 67 * col1 AS col2 FROM tab2 cor0
----
1139
2077
3953

query I rowsort
SELECT 55 + col0 FROM tab1 AS cor0
----
119
135
58

query I rowsort
SELECT 98 * + cor0.col1 + ( 47 ) AS col0 FROM tab1 AS cor0
----
1027
1321
2595

query I rowsort
SELECT DISTINCT col1 * col0 + 36 AS col1 FROM tab2 AS cor0
----
1379
253
4638

query I rowsort
SELECT DISTINCT - + 4 * col1 * + ( col0 ) - col2 FROM tab0 AS cor0
----
-13581
-32478
-8289

query I rowsort
SELECT ALL 89 * col1 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT ALL 39 * + col0 FROM tab0 AS cor0
----
1365
3471
936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 * col1 col1 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT DISTINCT col1 * + col0 - col0 AS col0 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT ALL - + col1 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT 44 * col1 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT ALL + ( + col0 ) + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - - col1 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + col1 col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT DISTINCT - - col2 DIV + col1 - + col2 * - col1 AS col2 FROM tab1 cor0
----
1255
1406
575

skipif mysql # not compatible
query I rowsort label-4506
SELECT DISTINCT - - col2 / + col1 - + col2 * - col1 AS col2 FROM tab1 cor0
----
1255
1406
575

query I rowsort
SELECT DISTINCT 17 FROM tab1, tab0 cor0
----
17

query I rowsort
SELECT ALL + - 45 * col0 FROM tab1 AS cor0
----
-135
-2880
-3600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 93 col2 FROM tab0 AS cor0
----
-7998
-8463
-9021

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # use DIV operator for integer division
query I rowsort label-4511
SELECT ALL col0 DIV + cor0.col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL col0 / + cor0.col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 + col2 AS col0 FROM tab0 cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT - col1 * + col0 DIV col0 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4513
SELECT - col1 * + col0 / col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT 52 FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d

query I rowsort
SELECT + 14 * + col2 + col1 * - 80 AS col2 FROM tab0 AS cor0
----
-6132
-6418
-7746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4517
SELECT - CAST( 21 AS SIGNED ) + - col2 FROM tab0
----
-103
-22
-54

skipif mysql # not compatible
query I rowsort label-4517
SELECT - CAST ( 21 AS INTEGER ) + - col2 FROM tab0
----
-103
-22
-54

query I rowsort
SELECT - cor0.col1 * col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + 91 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 * - col1 col2 FROM tab0
----
3784
4004
4268

query I rowsort
SELECT - 99 AS col0 FROM tab2
----
-99
-99
-99

query I rowsort
SELECT + col2 * col0 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT col2 * 94 + + col0 AS col2 FROM tab2 AS cor0
----
2522
2545
3651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4524
SELECT col0 * - CAST( NULL AS SIGNED ) + + col1 + + col0 * 67 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-4524
SELECT col0 * - CAST ( NULL AS INTEGER ) + + col1 + + col0 * 67 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 - - ( + cor0.col1 ) FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4526
SELECT ALL + cor0.col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + cor0.col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + 54 FROM tab0 cor0
----
-35
19
30

query I rowsort
SELECT DISTINCT - col2 * col0 + + col1 - + col2 AS col2 FROM tab2 AS cor0
----
-185
-1995
-3023

query I rowsort
SELECT DISTINCT 17 + - col1 FROM tab2
----
-14
-42
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col1 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4531
SELECT ALL col2 * 58 + col1 DIV + col0 col1 FROM tab2 AS cor0
----
1508
1570
2204

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL col2 * 58 + col1 / + col0 col1 FROM tab2 AS cor0
----
1508
1570
2204

query I rowsort
SELECT ALL + + col0 * cor0.col2 + + ( - col1 ) * - col1 + - col0 * + col1 FROM tab0 cor0
----
6049
6124
7480

query I rowsort
SELECT ALL col1 * - ( - col0 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col0 + 50 * + col2 FROM tab2 cor0
----
1222
1343
1821

query I rowsort
SELECT col0 + col0 AS col2 FROM tab1 cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 21 AS REAL ) FROM tab2, tab2 AS cor0
----
21

query I rowsort
SELECT col0 * + col2 * col1 AS col0 FROM tab2
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4538
SELECT ALL CAST( 71 AS SIGNED ) AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL CAST ( 71 AS INTEGER ) AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 39b7515708f32e28b7b5a1bfec0df356

query I rowsort
SELECT - col1 * - ( + col0 * col1 ) AS col2 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT 71 * + col1 FROM tab2
----
1207
2201
4189

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT ( + col2 * col0 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT 40 * - col2 AS col1 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT + 36 + - col2 FROM tab2 AS cor0
----
-2
10
9

query I rowsort
SELECT + + col0 * col2 + col1 * col0 AS col0 FROM tab2 cor0
----
406
4345
6630

query I rowsort
SELECT - col1 * 24 * - col2 + ( - 74 ) * col1 FROM tab1 AS cor0
----
12940
28990
31772

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4547
SELECT + CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4547
SELECT + CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + col0 * + tab0.col1 * + col1 FROM tab0
----
177480
329280
736920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) + - 61 * col0 col2 FROM tab0 AS cor0
----
-1488
-2170
-5518

query I rowsort
SELECT - + 77 * + col1 - ( cor0.col1 ) FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT + + col2 + 7 + - col1 AS col2 FROM tab2 AS cor0
----
-26
28
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 39 * col0 + + col1 col0 FROM tab2 AS cor0
----
3127
3136
331

query I rowsort
SELECT - - cor1.col2 + cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd

query I rowsort
SELECT + col1 - + col0 * 62 AS col1 FROM tab1 AS cor0
----
-160
-3958
-4947

query I rowsort
SELECT - col0 - col0 AS col0 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT - col1 + ( cor0.col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT tab1.col1 + - col1 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT - 11 - cor0.col0 DIV col0 FROM tab0 cor0
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-4558
SELECT - 11 - cor0.col0 / col0 FROM tab0 cor0
----
-12
-12
-12

query I rowsort
SELECT col2 * col0 - - 35 AS col0 FROM tab1 AS cor0
----
197
3683
7715

query I rowsort
SELECT DISTINCT + col2 - col1 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT 26 + col2 + - col1 * col1 FROM tab1 AS cor0
----
-17
-47
-596

query I rowsort
SELECT ALL col2 + - cor0.col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 71 FROM tab0, tab0 cor0, tab2 AS cor1
----
71

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 FROM tab0, tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 33 * col0 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT - - 94 * col1 AS col1 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT cor0.col2 + - ( - 16 ) FROM tab2 AS cor0
----
42
43
54

query I rowsort
SELECT + 85 FROM tab1, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + col2 - tab0.col0 FROM tab0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4570
SELECT col1 * CAST( NULL AS SIGNED ) + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT col1 * CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * 49 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT ALL 8 + cor0.col0 * col1 * col0 AS col1 FROM tab0 AS cor0
----
118833
49544
720819

query I rowsort
SELECT - col0 * 96 AS col2 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT DISTINCT - col1 * - 81 FROM tab0 AS cor0
----
6966
7371
7857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4575
SELECT + CAST( + col0 AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4575
SELECT + CAST ( + col0 AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - - 95 * + col1 AS col2 FROM tab2 AS cor0
----
1615
2945
5605

onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT + cor0.col0 DIV + 36 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4577
SELECT + cor0.col0 / + 36 FROM tab1 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 17 col2 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT ALL + 48 + - col0 AS col0 FROM tab1 AS cor0
----
-16
-32
45

query I rowsort
SELECT col2 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + tab2.col0 * ( + col2 ) AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - 64 FROM tab2, tab1 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT ALL - - col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col2 * col2 + col1 * ( 9 ) FROM tab0 AS cor0
----
1863
7543
874

onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT DISTINCT + col0 * 33 DIV col0 - col1 AS col2 FROM tab1 AS cor0
----
20
23
7

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT + col0 * 33 / col0 - col1 AS col2 FROM tab1 AS cor0
----
20
23
7

query I rowsort
SELECT col0 + col1 + col1 * col2 AS col2 FROM tab0 AS cor0
----
229
2948
7642

query I rowsort
SELECT DISTINCT 0 + 40 AS col1 FROM tab2 AS cor0
----
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4588
SELECT ( cor0.col1 ) * col0 DIV col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4588
SELECT ( cor0.col1 ) * col0 / col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col0 * 29 + col1 FROM tab2 cor0
----
-172
-2203
-2274

query I rowsort
SELECT DISTINCT col1 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT col0 * 16 - cor0.col2 AS col2 FROM tab2 AS cor0
----
1222
1226
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4592
SELECT ALL - col1 DIV 21 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - col1 / 21 AS col0 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT + 32 FROM tab2, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL + ( + cor0.col0 ) + + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + 87 + cor0.col0 FROM tab2 AS cor0
----
165
166
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4596
SELECT ALL 17 DIV 8 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL 17 / 8 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL + col0 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL + + cor0.col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ( 78 ) AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT 26 + tab0.col0 DIV col2 FROM tab0
----
26
27
61

skipif mysql # not compatible
query I rowsort label-4601
SELECT 26 + tab0.col0 / col2 FROM tab0
----
26
27
61

query I rowsort
SELECT + 89 * - col2 - col0 FROM tab0
----
-124
-2961
-7387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 col1 FROM tab1
----
-10

query I rowsort
SELECT 82 * col2 FROM tab2
----
2132
2214
3116

query I rowsort
SELECT - - 16 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( + 15 ) * col2 col0 FROM tab0 AS cor0
----
-20
1141
471

query I rowsort
SELECT DISTINCT - col1 - - 77 AS col1 FROM tab2 AS cor0
----
18
46
60

query I rowsort
SELECT col0 * - col1 - - 7 AS col2 FROM tab2 cor0
----
-1336
-210
-4595

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT DISTINCT col0 * - col2 * - CAST( col2 AS SIGNED ) - + col1 FROM tab0
----
-62
26050
598345

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT col0 * - col2 * - CAST ( col2 AS INTEGER ) - + col1 FROM tab0
----
-62
26050
598345

query I rowsort
SELECT ALL col2 - col0 * + col2 * - col1 AS col2 FROM tab1
----
36537
4266
99936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4613
SELECT + col1 + + col1 / CAST( NULL AS DECIMAL ) - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT + col1 + + col1 / CAST ( NULL AS REAL ) - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 - col0 col0 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4615
SELECT 7 DIV - col0 AS col0 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4615
SELECT 7 / - col0 AS col0 FROM tab1
----
-2
0
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0, tab1 cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT ( col0 * col1 ) + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL + cor0.col1 * + 4 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 59e0193abedbe8f6196ef3516a6ea8d0

query I rowsort
SELECT ALL + col2 + + 54 * + col2 FROM tab2
----
1430
1485
2090

query I rowsort
SELECT + + col0 + - cor0.col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + col1 + 69 FROM tab1 cor0
----
136
149
178

query I rowsort
SELECT ALL cor0.col2 * - 27 + - col2 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT ALL - cor0.col2 + 89 AS col2 FROM tab0 cor0
----
56
7
88

query I rowsort
SELECT col0 + + 39 FROM tab2 cor0
----
117
118
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT cor0.col1 + col1 DIV - col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4625
SELECT cor0.col1 + col1 / - col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + col0 * + ( + 71 ) + col1 * 19 AS col1 FROM tab2 cor0
----
1086
5932
6659

query I rowsort
SELECT + col0 + - ( col2 + - col2 ) * - col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 38 + - cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to dfe7c495ddb399fd0b8bc29ea773d3e7

query I rowsort
SELECT - col2 + col0 * ( 76 ) FROM tab1
----
174
4807
5984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 * - col2 ) col0 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 col0 FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT - ( col2 * - tab0.col1 + + tab0.col1 ) FROM tab0
----
0
2752
7371

query I rowsort
SELECT + 20 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT - - 71 + col0 FROM tab0 AS cor0
----
106
160
95

query I rowsort
SELECT - col2 * col2 * - col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT DISTINCT + col1 + col1 AS col0 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT + col2 * 17 AS col0 FROM tab1 AS cor0
----
1632
918
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col2 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + col2 * 41 FROM tab1 AS cor0
----
2214
2337
3936

onlyif mysql # use DIV operator for integer division
query I rowsort label-4640
SELECT ALL - col2 DIV - col0 AS col1 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL - col2 / - col0 AS col1 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT + + col1 * + ( col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - ( col1 ) * - ( + col0 ) AS col1 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4643
SELECT DISTINCT - cor0.col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - cor0.col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + + 89 AS col2 FROM tab1 AS cor0
----
63
76
79

query I rowsort
SELECT DISTINCT - - col1 * 25 AS col1 FROM tab0 AS cor0
----
2150
2275
2425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 31 col1 FROM tab2 AS cor0
----
31

query I rowsort
SELECT ALL - col1 * col2 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT 84 * + col2 FROM tab0
----
2772
6888
84

query I rowsort
SELECT DISTINCT + col0 * - col1 + + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - 17 * - col2 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT ALL + col2 * + col0 + + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + cor0.col0 + 87 FROM tab2 AS cor0
----
165
166
94

query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + col1 * + col1 * col0 - col1 FROM tab2 AS cor0
----
22814
271459
6696

query I rowsort
SELECT ALL - col1 + - col2 * col0 + - col2 AS col2 FROM tab1 cor0
----
-242
-3715
-7789

query I rowsort
SELECT ALL - + ( + cor0.col0 ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + - col0 + col1 * + cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT ( + col2 ) + + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT 60 * - col2 + - cor0.col0 FROM tab2 cor0
----
-1627
-1638
-2359

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4661
SELECT - col0 * + col1 * + CAST( NULL AS SIGNED ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4661
SELECT - col0 * + col1 * + CAST ( NULL AS INTEGER ) - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 45 + + col1 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT + 13 * col1 + ( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
1094
1094
1226

query I rowsort
SELECT + 89 + - col2 FROM tab0 AS cor0
----
56
7
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT CAST( ( col0 ) + + col2 AS SIGNED ) DIV - 78 AS col0 FROM tab1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4665
SELECT CAST ( ( col0 ) + + col2 AS INTEGER ) / - 78 AS col0 FROM tab1
----
-1
-2
0

query I rowsort
SELECT - col2 * ( + col2 ) + col0 AS col1 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT tab1.col0 + 10 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 24df7e294fac80a23e006cc975d7bb0a

query I rowsort
SELECT - + 90 FROM tab2 cor0
----
-90
-90
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * cor0.col1 + ( col2 ) col0 FROM tab2 cor0
----
22626
24586
39910

query I rowsort
SELECT ALL col1 * - 52 * tab2.col0 AS col2 FROM tab2
----
-11284
-239304
-69836

query I rowsort
SELECT ALL + col0 * - 32 AS col2 FROM tab1
----
-2048
-2560
-96

query I rowsort
SELECT + col0 * - 21 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT - col0 + - 29 FROM tab1 AS cor0
----
-109
-32
-93

query I rowsort
SELECT ALL 36 * col0 AS col2 FROM tab1
----
108
2304
2880

query I rowsort
SELECT DISTINCT cor1.col0 - - cor1.col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
178
48
70

query I rowsort
SELECT col0 + 12 FROM tab2 AS cor0
----
19
90
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4677
SELECT cor0.col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4677
SELECT cor0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col1 * + col2 + - col1 * col2 * - cor0.col2 FROM tab0 AS cor0
----
1290926
337722
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + + col0 - + 83 FROM tab1 AS cor0
----
-19
-3
-80

query I rowsort
SELECT ALL - + cor0.col0 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4682
SELECT ALL - col2 + CAST( 77 AS SIGNED ) * col1 * + col0 AS col1 FROM tab0 AS cor0
----
158895
261414
623541

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL - col2 + CAST ( 77 AS INTEGER ) * col1 * + col0 AS col1 FROM tab0 AS cor0
----
158895
261414
623541

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT col1 * 71 AS col1 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT ALL - cor0.col1 + ( col2 ) FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col1 * + 48 * col1 AS col2 FROM tab2 AS cor0
----
13872
167088
46128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - tab1.col1 * col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL - 30 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374

query I rowsort
SELECT col0 + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + + CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT ALL col1 DIV + 7 FROM tab1
----
1
1
3

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL col1 / + 7 FROM tab1
----
1
1
3

query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab0, tab0 cor0
----
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4695
SELECT - col2 * col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT - col2 * col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4696
SELECT + ( col2 ) * col0 + + col2 DIV - col2 FROM tab1 cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-4696
SELECT + ( col2 ) * col0 + + col2 / - col2 FROM tab1 cor0
----
161
3647
7679

onlyif mysql # use DIV operator for integer division
query I rowsort label-4697
SELECT DISTINCT + col0 * 61 - col2 DIV col2 AS col0 FROM tab0
----
1463
2134
5428

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT + col0 * 61 - col2 / col2 AS col0 FROM tab0
----
1463
2134
5428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 * + col1 * - ( - col2 ) + cor0.col0 col2 FROM tab0 cor0
----
-232692
-611795
-7919

query I rowsort
SELECT - col1 + - col0 * 26 AS col1 FROM tab2 AS cor0
----
-2071
-2087
-213

query I rowsort
SELECT ALL col2 * col0 + + col0 - col2 AS col0 FROM tab1 AS cor0
----
111
3655
7664

query I rowsort
SELECT ALL + - col1 * + col2 - 11 AS col1 FROM tab1 AS cor0
----
-1259
-1415
-581

query I rowsort
SELECT DISTINCT - col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT cor0.col2 DIV col1 + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4703
SELECT cor0.col2 / col1 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - col0 + - col1 * col0 * col2 + - col1 FROM tab1
----
-36554
-4241
-99933

query I rowsort
SELECT DISTINCT + col1 + col2 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL 27 * col0 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT - col0 + - cor0.col0 * col1 * col0 FROM tab1 AS cor0
----
-237
-41024
-83280

query I rowsort
SELECT DISTINCT col0 + - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT 22 + col1 AS col1 FROM tab2 AS cor0
----
39
53
81

query I rowsort
SELECT DISTINCT + col0 + col0 * + col1 - + cor0.col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL - 29 AS col2 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL - + col0 * - cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT col1 * - col1 + col1 * col0 AS col0 FROM tab2 AS cor0
----
-744
1054
1121

query I rowsort
SELECT ALL - cor0.col2 * col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT - cor0.col1 * col0 DIV - col2 + col2 DIV col2 AS col0 FROM tab0 AS cor0
----
3396
63
99

skipif mysql # not compatible
query I rowsort label-4716
SELECT - cor0.col1 * col0 / - col2 + col2 / col2 AS col0 FROM tab0 AS cor0
----
3396
63
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4717
SELECT ALL col2 * col2 DIV col2 - col0 AS col2 FROM tab0 cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL col2 * col2 / col2 - col0 AS col2 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT + - col2 + col1 * cor0.col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-164
-41
-70

skipif mysql # not compatible
query I rowsort label-4718
SELECT + - col2 + col1 * cor0.col1 / - col0 AS col0 FROM tab2 AS cor0
----
-164
-41
-70

query I rowsort
SELECT ALL - tab2.col1 + + col1 * tab2.col1 AS col1 FROM tab2
----
272
3422
930

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) BETWEEN + col2 AND col1 * col1 ) AND NULL NOT IN ( + col1 * + tab1.col2 + col2 * col1 )
----

query I rowsort
SELECT ALL + ( - col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col1 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT + 60 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT - col2 * + 98 + col2 AS col2 FROM tab1 AS cor0
----
-5238
-5529
-9312

query I rowsort
SELECT - col0 + - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 83 * col1 col0 FROM tab1 AS cor0
----
-1175
-2212
-887

query I rowsort
SELECT ( ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 5 col0 FROM tab0 cor0
----
120
175
445

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + - 24 AS col2 FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4731
SELECT DISTINCT tab1.col2 DIV 10 FROM tab1
----
5
9

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT tab1.col2 / 10 FROM tab1
----
5
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab0, tab1 cor0
----
83

query I rowsort
SELECT ALL + 29 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + 93 + col1 FROM tab1 cor0
----
103
106
119

query I rowsort
SELECT + cor0.col0 + - cor0.col0 + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 19 * col0 FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT ALL 92 + col1 - - col1 AS col1 FROM tab1
----
112
118
144

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT DISTINCT col0 * col2 - - col2 DIV - col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT col0 * col2 - - col2 / - col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT - + ( col1 ) + col0 DIV col2 - col2 * col0 AS col1 FROM tab1 AS cor0
----
-188
-3657
-7693

skipif mysql # not compatible
query I rowsort label-4739
SELECT - + ( col1 ) + col0 / col2 - col2 * col0 AS col1 FROM tab1 AS cor0
----
-188
-3657
-7693

query I rowsort
SELECT DISTINCT 68 + + col2 FROM tab2 AS cor0
----
106
94
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4741
SELECT - ( 95 ) DIV col1 FROM tab2
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-4741
SELECT - ( 95 ) / col1 FROM tab2
----
-1
-3
-5

query I rowsort
SELECT ( - col0 ) * - col2 * + tab1.col2 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT - 18 * 94 + col2 + - tab2.col1 DIV col0 FROM tab2
----
-1654
-1666
-1669

skipif mysql # not compatible
query I rowsort label-4743
SELECT - 18 * 94 + col2 + - tab2.col1 / col0 FROM tab2
----
-1654
-1666
-1669

query I rowsort
SELECT DISTINCT + col0 * col1 + col2 - col2 * + tab2.col0 AS col0 FROM tab2
----
-1621
2600
55

query I rowsort
SELECT ALL 92 FROM tab1, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT col1 + - col1 * tab0.col0 * col1 AS col1 FROM tab0
----
-177418
-329218
-736918

query I rowsort
SELECT ALL tab2.col2 - - col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT + col0 + + 49 - - col0 AS col1 FROM tab1
----
177
209
55

query I rowsort
SELECT - 50 + ( + tab1.col2 ) AS col1 FROM tab1
----
4
46
7

query I rowsort
SELECT DISTINCT - 93 + col0 - - col1 FROM tab2
----
-55
3
44

query I rowsort
SELECT DISTINCT 99 - - col0 FROM tab0
----
123
134
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 77 ) + + cor0.col0 col2 FROM tab2 AS cor0
----
155
156
84

query I rowsort
SELECT DISTINCT - 26 AS col0 FROM tab2, tab1 AS cor0
----
-26

query I rowsort
SELECT ALL - 96 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT col2 + + ( - tab2.col1 ) * col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT col2 * + 37 * - col1 FROM tab2
----
-23902
-30969
-56758

query I rowsort
SELECT ALL 59 AS col1 FROM tab1
----
59
59
59

query I rowsort
SELECT - 51 * col1 FROM tab0
----
-4386
-4641
-4947

query I rowsort
SELECT - 50 * - tab0.col2 * col2 AS col1 FROM tab0
----
336200
50
54450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col2 col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT ( + col2 ) + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col2 * col2 * col0 + 65 AS col2 FROM tab1 AS cor0
----
208001
737345
8813

query I rowsort
SELECT + - col0 * cor0.col0 + col0 + + 0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT - 9 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
154
197
237

query I rowsort
SELECT DISTINCT - col1 + + ( - col0 ) * col1 + col2 FROM tab0 AS cor0
----
-2117
-3491
-8108

query I rowsort
SELECT DISTINCT + tab1.col0 * tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 9 * col1 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT col0 - 86 AS col1 FROM tab0 AS cor0
----
-51
-62
3

query I rowsort
SELECT DISTINCT col0 + col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - col2 * + col1 + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + col2 + 40 * - col0 FROM tab1 AS cor0
----
-2503
-3104
-66

query I rowsort
SELECT - col0 * 18 AS col1 FROM tab0 cor0
----
-1602
-432
-630

query I rowsort
SELECT col0 * ( col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 FROM tab2 cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( col1 + col0 ) col0 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT + col0 * col2 - - cor0.col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT ALL + cor0.col0 DIV + 4 - col2 AS col1 FROM tab0 AS cor0
----
-27
-60
7

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + cor0.col0 / + 4 - col2 AS col1 FROM tab0 AS cor0
----
-27
-60
7

query I rowsort
SELECT - col1 + 44 * col1 AS col2 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT DISTINCT + col0 - col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT cor0.col2 + + tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b8b62762005dc0d7237145d0538edb34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col2 FROM tab2
----
45

query I rowsort
SELECT + + cor0.col0 * col0 + cor0.col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-4784
SELECT + col1 * 80 + 78 DIV + tab1.col2 AS col1 FROM tab1
----
1040
2081
801

skipif mysql # not compatible
query I rowsort label-4784
SELECT + col1 * 80 + 78 / + tab1.col2 AS col1 FROM tab1
----
1040
2081
801

query I rowsort
SELECT ( + 53 ) FROM tab2, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT - col1 DIV ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4786
SELECT - col1 / ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * 49 AS col0 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT col1 * - 14 AS col2 FROM tab1 AS cor0
----
-140
-182
-364

query I rowsort
SELECT - ( col0 ) + cor0.col1 + - 45 AS col0 FROM tab2 AS cor0
----
-107
-21
-64

query I rowsort
SELECT DISTINCT - 20 FROM tab2 AS cor0
----
-20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4791
SELECT CAST( NULL AS SIGNED ) * + ( cor0.col2 ) + + CAST( col0 AS SIGNED ) + col2 * + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT CAST ( NULL AS INTEGER ) * + ( cor0.col2 ) + + CAST ( col0 AS INTEGER ) + col2 * + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 + cor0.col2 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) * + 66 FROM tab1 AS cor0
----
-1716
-660
-858

query I rowsort
SELECT ( 62 ) * col1 FROM tab2 AS cor0
----
1054
1922
3658

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4795
SELECT - CAST( NULL AS SIGNED ) * col0 - + col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT - CAST ( NULL AS INTEGER ) * col0 - + col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 98 + + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-98
-98
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4797
SELECT + 5 - cor0.col0 DIV + col0 AS col1 FROM tab0 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-4797
SELECT + 5 - cor0.col0 / + col0 AS col1 FROM tab0 cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + - 19 * - ( col0 ) + ( col0 * col0 ) FROM tab0 AS cor0
----
1032
1890
9612

query I rowsort
SELECT - + col1 * - cor0.col1 + - cor0.col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL + ( - cor0.col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col2 + - 0 * - col2 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( + tab1.col2 + - col0 ) col2 FROM tab1
----
-448
1280
153

query I rowsort
SELECT - 17 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT DISTINCT 61 DIV + 72 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT 61 / + 72 AS col0 FROM tab2
----
0

query I rowsort
SELECT ( col0 * col2 ) + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT + - col0 + col0 * - 85 AS col0 FROM tab1 cor0
----
-258
-5504
-6880

query I rowsort
SELECT DISTINCT tab0.col0 + - cor0.col0 AS col2 FROM tab0, tab1 cor0, tab1, tab2 AS cor1
----
9 values hashing to b24ecd0e424d2b21b31092e4a9b94f1c

query I rowsort
SELECT ALL + col2 * - ( + col1 * - col0 ) FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 * ( col2 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 * - 61 AS col2 FROM tab1 AS cor0
----
-1640
-667
-889

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4811
SELECT - col2 * - cor0.col1 + CAST( NULL AS DECIMAL ) 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-4811
SELECT - col2 * - cor0.col1 + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4812
SELECT ALL cor0.col1 + col1 + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL cor0.col1 + col1 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + col2 - ( 24 ) FROM tab1 AS cor0
----
1224
1380
546

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col1 * + col0 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + col1 + + col1 * 14 AS col2 FROM tab0 AS cor0
----
1290
1365
1455

query I rowsort
SELECT + 55 * + col1 + - cor0.col1 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT DISTINCT 34 + - col2 * + cor0.col1 FROM tab0 AS cor0
----
-2804
-63
-7428

query I rowsort
SELECT ALL - + 94 * col1 + - col1 * - 44 AS col0 FROM tab0 cor0
----
-4300
-4550
-4850

onlyif mysql # use DIV operator for integer division
query I rowsort label-4819
SELECT + col0 + cor0.col1 DIV col0 AS col2 FROM tab2 cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-4819
SELECT + col0 + cor0.col1 / col0 AS col2 FROM tab2 cor0
----
11
78
79

query I rowsort
SELECT - 58 * + 12 FROM tab0
----
-696
-696
-696

query I rowsort
SELECT + - col0 + - col2 * - 62 AS col1 FROM tab0 AS cor0
----
2022
27
4995

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL + + ( + col2 ) * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 * - col2 * - col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - ( col1 ) * col1 + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-232
-2805
1155

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT - cor0.col1 * cor0.col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col0 * - 22 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT + 24 * col1 - col0 AS col1 FROM tab1
----
176
232
621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - 82 - col1 FROM tab0 AS cor0
----
-168
-173
-179

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4832
SELECT - ( ( + col1 / - col2 / + ( col2 / + CAST( NULL AS SIGNED ) ) / + 7 / col0 ) ) * + col0 * 81 - + col0 * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT - ( ( + col1 / - col2 / + ( col2 / + CAST ( NULL AS INTEGER ) ) / + 7 / col0 ) ) * + col0 * 81 - + col0 * + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4833
SELECT ALL + CAST( + col2 AS SIGNED ) - - col2 AS col2 FROM tab0 AS cor0
----
164
2
66

skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL + CAST ( + col2 AS INTEGER ) - - col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - - 14 - col2 FROM tab2 AS cor0
----
-12
-13
-24

query I rowsort
SELECT DISTINCT 3 * col1 - col2 AS col1 FROM tab0
----
191
225
290

query I rowsort
SELECT + col1 * + col0 + col0 AS col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT 30 AS col0 FROM tab1
----
30

query I rowsort
SELECT + + col2 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - 91 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT - 65 DIV 86 + - col2 * col1 AS col1 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4841
SELECT - 65 / 86 + - col2 * col1 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col2 * + 9 FROM tab2 AS cor0
----
234
243
342

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + - 83 col2 FROM tab1
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + 67 + + cor0.col1 * - 18 AS col1 FROM tab2 AS cor0
----
-239
-491
-995

onlyif mysql # use DIV operator for integer division
query I rowsort label-4846
SELECT DISTINCT cor0.col0 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT cor0.col0 / col2 AS col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT - - col1 * + col2 + + 75 AS col0 FROM tab2 AS cor0
----
1609
721
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT ALL + col1 * col1 DIV + 84 + - col2 AS col1 FROM tab1
----
-46
-56
-94

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL + col1 * col1 / + 84 + - col2 AS col1 FROM tab1
----
-46
-56
-94

query I rowsort
SELECT ALL 88 + + col1 FROM tab2
----
105
119
147

query I rowsort
SELECT ALL col0 + col1 * 21 FROM tab0
----
1830
2000
2072

query I rowsort
SELECT ALL + col2 + - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT ALL + - col1 - + col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT DISTINCT + 82 * cor0.col2 - CAST( 42 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
3516
3830
4610

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + 82 * cor0.col2 - CAST ( 42 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
3516
3830
4610

query I rowsort
SELECT cor0.col0 + + 87 + + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 910b68efd2edfdd0e6e707caef5f285f

query I rowsort
SELECT cor0.col1 * - col2 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col0 + - col1 * 97 * 32 FROM tab2 AS cor0
----
-183058
-52689
-96217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col1 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT + - ( - col1 ) DIV + 39 + col0 * + col0 FROM tab2 AS cor0
----
49
6085
6241

skipif mysql # not compatible
query I rowsort label-4859
SELECT + - ( - col1 ) / + 39 + col0 * + col0 FROM tab2 AS cor0
----
49
6085
6241

query I rowsort
SELECT DISTINCT 0 + col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT col0 + 10 * col0 AS col0 FROM tab1
----
33
704
880

query I rowsort
SELECT DISTINCT - col2 * tab0.col2 AS col2 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4863
SELECT col0 - col0 * col1 DIV col0 FROM tab0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-4863
SELECT col0 - col0 * col1 / col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT ( - 51 ) FROM tab2, tab2 AS cor0
----
-51

query I rowsort
SELECT + + col2 * 54 FROM tab0 AS cor0
----
1782
4428
54

query I rowsort
SELECT DISTINCT + - 70 AS col0 FROM tab0 AS cor0
----
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT + col2 + + col1 DIV col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4867
SELECT + col2 + + col1 / col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + + 32 * + col0 FROM tab2 cor0
----
224
2496
2528

query I rowsort
SELECT ALL ( 3 ) + - cor0.col1 * 97 FROM tab1 AS cor0
----
-1258
-2519
-967

query I rowsort
SELECT DISTINCT + + 42 + col1 AS col2 FROM tab2 cor0
----
101
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4871
SELECT col0 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4871
SELECT col0 + col0 / col0 AS col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL - col1 + + 78 AS col2 FROM tab2 AS cor0
----
19
47
61

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 27 FROM tab1 cor0
----
270
351
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4874
SELECT + CAST( col2 AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-4874
SELECT + CAST ( col2 AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4875
SELECT ALL + ( + 40 ) DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL + ( + 40 ) / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 10 * col0 FROM tab2 cor0
----
70
780
790

query I rowsort
SELECT DISTINCT + + 0 * 19 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 60 + 29 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL - 50 * ( - col2 ) FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT + 2 FROM tab0, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL col2 * 81 - col2 AS col1 FROM tab2 AS cor0
----
2080
2160
3040

query I rowsort
SELECT ALL + 90 AS col1 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4883
SELECT + - CAST( + col1 AS SIGNED ) * - col1 AS col2 FROM tab2 cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-4883
SELECT + - CAST ( + col1 AS INTEGER ) * - col1 AS col2 FROM tab2 cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4884
SELECT DISTINCT CAST( + col1 AS SIGNED ) + col1 AS col2 FROM tab1 cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + col1 AS col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT ALL - - col1 * - col2 - col2 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + 80 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4887
SELECT DISTINCT + col0 DIV + cor0.col0 + + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1443
-675
-728

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT + col0 / + cor0.col0 + + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1443
-675
-728

query I rowsort
SELECT col0 + cor0.col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 * cor0.col1 col2 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT - col2 * col0 AS col1 FROM tab0 WHERE NULL = col1
----

query I rowsort
SELECT tab0.col2 + - col0 * col1 AS col0 FROM tab0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 * - tab2.col2 col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT col2 + col0 * col2 AS col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT col2 * - col2 + + col0 * + tab2.col0 FROM tab2
----
-680
4797
5408

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col2 AS col0 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT col2 + + tab1.col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT - col0 + + cor0.col1 * cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-36544
-4215
-99920

query I rowsort
SELECT col1 * col2 * - tab1.col2 + col2 FROM tab1
----
-119712
-32433
-75762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab0.col2 col0 FROM tab0
----
119
173
98

query I rowsort
SELECT - col1 + col2 * + col2 * col2 FROM tab2
----
17517
19652
54855

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
7
78
79

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col2 + col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT ALL - col0 + + col2 + col2 AS col1 FROM tab0 cor0
----
-33
42
75

query I rowsort
SELECT + + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - col0 + col0 * col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1316
158106
237079

query I rowsort
SELECT ALL + - col2 * + col1 + col2 AS col1 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - col1 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL - col2 * - col1 * ( - col2 ) FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ALL 28 AS col1 FROM tab1
----
28
28
28

query I rowsort
SELECT ALL ( - col1 + col0 ) * + 27 AS col0 FROM tab1
----
-621
1458
1809

query I rowsort
SELECT ALL 50 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT + col0 DIV - col1 + col2 col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4914
SELECT + col0 / - col1 + col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT tab1.col0 + 63 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3ae0f1064ff1f5d034a03e672585d08e

query I rowsort
SELECT + + 24 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL - 46 AS col1 FROM tab1
----
-46
-46
-46

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query I rowsort
SELECT DISTINCT col0 * col1 + - col0 - col1 FROM tab0 AS cor0
----
1954
3263
7919

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col0 * - CAST ( col0 AS REAL ) - + col1 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + 20 col1 FROM tab0 AS cor0
----
1640
20
660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4922
SELECT DISTINCT col2 + - CAST( - 15 AS SIGNED ) + + cor0.col2 FROM tab2 AS cor0
----
67
69
91

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT col2 + - CAST ( - 15 AS INTEGER ) + + cor0.col2 FROM tab2 AS cor0
----
67
69
91

query I rowsort
SELECT DISTINCT tab1.col2 * - tab1.col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col0 * col2 - col2 AS col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT col1 + tab0.col0 + + col1 * col0 AS col2 FROM tab0
----
2174
3527
8279

query I rowsort
SELECT + col0 * + col1 * - col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT col0 * col0 + - col0 AS col1 FROM tab2
----
42
6006
6162

query I rowsort
SELECT DISTINCT col1 + col2 * col0 + + col1 AS col1 FROM tab2
----
2146
251
3036

query I rowsort
SELECT ALL col0 * + col1 + col0 + - col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT - col2 + col2 DIV - col0 + tab2.col1 FROM tab2
----
-21
1
33

skipif mysql # not compatible
query I rowsort label-4930
SELECT - col2 + col2 / - col0 + tab2.col1 FROM tab2
----
-21
1
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT col1 DIV tab2.col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4931
SELECT col1 / tab2.col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 + col0 ) <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4934
SELECT DISTINCT col1 * + col2 DIV + tab1.col2 + col0 + - col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4934
SELECT DISTINCT col1 * + col2 / + tab1.col2 + col0 + - col0 FROM tab1
----
10
13
26

query I rowsort
SELECT + ( col0 ) * cor0.col1 AS col0 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + col2 col1 FROM tab1
----
216
3705
7776

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 > NULL
----

query I rowsort
SELECT col2 * - col0 * - col1 + - col2 AS col0 FROM tab2
----
119626
50996
5832

query I rowsort
SELECT + tab0.col1 + col1 * col2 - + col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT tab1.col0 * + col1 * - 68 FROM tab1
----
-43520
-5304
-70720

query I rowsort
SELECT col1 + + 85 FROM tab2
----
102
116
144

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4942
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) - ( - tab1.col1 ) * + col2 / - 79 col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4942
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) - ( - tab1.col1 ) * + col2 / - 79 col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 - col0 col0 FROM tab0
----
148
159
93

query I rowsort
SELECT DISTINCT + col2 + 96 + 71 * + col1 FROM tab0 AS cor0
----
6235
6639
6984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col0 + col2 * col1 AS col2 FROM tab1
----
1408
1410
698

query I rowsort
SELECT - 1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT + col0 + + col1 + + col1 FROM tab2
----
113
196
69

query I rowsort
SELECT + - col1 + ( col0 ) * - cor0.col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4951
SELECT + col2 DIV - ( - 58 ) + col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4951
SELECT + col2 / - ( - 58 ) + col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL 53 + - col1 FROM tab0 AS cor0
----
-33
-38
-44

query I rowsort
SELECT col0 * col1 + - col2 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4954
SELECT - CAST( NULL AS SIGNED ) * + col0 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT - CAST ( NULL AS INTEGER ) * + col0 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - col1 col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT col1 + 4 FROM tab0 AS cor0
----
101
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT 88 DIV - col1 + + col0 FROM tab1 AS cor0
----
0
56
74

skipif mysql # not compatible
query I rowsort label-4957
SELECT 88 / - col1 + + col0 FROM tab1 AS cor0
----
0
56
74

query I rowsort
SELECT ALL - 97 * 19 + - col0 AS col2 FROM tab0 AS cor0
----
-1867
-1878
-1932

query I rowsort
SELECT + + 27 AS col1 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT ( + col0 ) - - cor0.col2 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + 42 - 18 AS col0 FROM tab2 AS cor0
----
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4962
SELECT CAST( - col2 AS SIGNED ) - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

skipif mysql # not compatible
query I rowsort label-4962
SELECT CAST ( - col2 AS INTEGER ) - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT + col0 * col2 * - col2 + 79 * + col2 AS col1 FROM tab1 AS cor0
----
-203433
-4482
-729696

onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT - col0 DIV - 40 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4964
SELECT - col0 / - 40 FROM tab2
----
0
1
1

query I rowsort
SELECT + col0 * - tab0.col2 * - col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT col2 * tab2.col0 - + col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT ALL - - col0 * + col2 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4968
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 41 * - col0 col1 FROM tab1 AS cor0
----
-2614
-3267
-97

query I rowsort
SELECT ( - col1 ) * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT 34 * - cor0.col0 + + col1 + + cor0.col0 FROM tab1 AS cor0
----
-2102
-2627
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 56 col1 FROM tab0 AS cor0
----
142
147
153

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4973
SELECT - + 60 + - ( + col0 * - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT - + 60 + - ( + col0 * - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 29 + - col0 FROM tab0 AS cor0
----
-6
-60
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - 70 FROM tab1 cor0
----
70
70
70

query I rowsort
SELECT - 49 AS col0 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT + col2 + cor0.col1 * 76 * 87 AS col2 FROM tab2 AS cor0
----
112442
204999
390134

query I rowsort
SELECT ALL - + 56 AS col0 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + + 97 * - col2 AS col0 FROM tab2 AS cor0
----
-2522
-2619
-3686

query I rowsort
SELECT ALL - - ( col1 ) * + col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT 64 + - col2 AS col0 FROM tab2 AS cor0
----
26
37
38

query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( col0 ) * - ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + + 51 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-2499
-310284
-318291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + col1 col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT ( + ( cor0.col1 ) ) * 99 AS col2 FROM tab0, tab1 AS cor0
----
1287
2574
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-4988
SELECT ALL col0 DIV ( 46 ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL col0 / ( 46 ) FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - + col0 * + 59 AS col0 FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT DISTINCT col2 * + col0 + 39 AS col0 FROM tab0 AS cor0
----
7337
74
831

query I rowsort
SELECT ALL 19 * + col2 FROM tab2
----
494
513
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4992
SELECT DISTINCT - + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT - + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * 41 * - cor0.col2 FROM tab2 AS cor0
----
-27716
-29889
-59204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col2 col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4995
SELECT DISTINCT cor0.col2 * - CAST( 67 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-10854
-244416
-514560

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT cor0.col2 * - CAST ( 67 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-10854
-244416
-514560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT ALL + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + col0 / col2 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT cor0.col0 + 38 FROM tab2 AS cor0
----
116
117
45

query I rowsort
SELECT ALL + 10 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 cor2, tab1
----
13122 values hashing to 10056dbdff161d61931f2724b5488f26

query I rowsort
SELECT tab1.col1 + - 56 FROM tab1
----
-30
-43
-46

query I rowsort
SELECT + tab1.col1 + + 58 FROM tab1
----
68
71
84

query I rowsort
SELECT DISTINCT - col0 * 88 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT ALL cor0.col0 * - 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30daa29f4cd03eb157c2346a198a49f9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5004
SELECT DISTINCT tab2.col2 + ( col0 ) / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT tab2.col2 + ( col0 ) / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + - cor0.col2 * col2 + + ( col1 * - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-14186
-3927
-98

query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL - 98 + + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 31b751dbd900a17357c89aeaeb8ae4ad

query I rowsort
SELECT tab0.col0 + col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab2, tab1, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - cor0.col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 33 + col0 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
195
3681
7713

query I rowsort
SELECT ALL + + col2 + + col2 * ( 24 * col1 + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
16986
20844
37518

query I rowsort
SELECT col1 * + col1 + + col2 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT col1 + + col1 * + 15 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT ALL col2 + col2 + + col2 AS col1 FROM tab1 AS cor0
----
162
171
288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5017
SELECT ALL + - cor0.col0 + col2 * CAST( + 54 AS SIGNED ) FROM tab1 AS cor0
----
2913
3014
5104

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL + - cor0.col0 + col2 * CAST ( + 54 AS INTEGER ) FROM tab1 AS cor0
----
2913
3014
5104

onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT + col0 DIV 11 FROM tab0 cor0
----
2
3
8

skipif mysql # not compatible
query I rowsort label-5018
SELECT + col0 / 11 FROM tab0 cor0
----
2
3
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5019
SELECT ALL + ( - ( + col0 ) ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL + ( - ( + col0 ) ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5020
SELECT - CAST( - 95 AS SIGNED ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
181
186
192

skipif mysql # not compatible
query I rowsort label-5020
SELECT - CAST ( - 95 AS INTEGER ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
181
186
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT DISTINCT - col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT - col0 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + + 72 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT + + 80 * col2 + + cor0.col2 AS col2 FROM tab0 cor0
----
2673
6642
81

query I rowsort
SELECT - col0 + - col2 AS col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT + + col1 * - ( + col0 ) + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT + col1 + ( - 13 ) FROM tab1 AS cor0
----
-3
0
13

query I rowsort
SELECT ALL + cor0.col1 + + 46 * + col0 FROM tab2 AS cor0
----
353
3647
3651

query I rowsort
SELECT DISTINCT + ( - 14 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-14

query I rowsort
SELECT DISTINCT ( + col0 ) + + col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT col2 * col0 + - 98 FROM tab1 AS cor0
----
3550
64
7582

query I rowsort
SELECT ALL + col2 * col1 * + col1 AS col1 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT ALL tab2.col2 DIV - 54 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL tab2.col2 / - 54 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * + 61 AS col0 FROM tab2
----
1037
1891
3599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 65 col1 FROM tab2
----
-1690
-1755
-2470

onlyif mysql # use DIV operator for integer division
query I rowsort label-5037
SELECT DISTINCT + tab2.col1 DIV 27 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT + tab2.col1 / 27 FROM tab2
----
0
1
2

query I rowsort
SELECT + col0 * col2 + - 35 FROM tab1
----
127
3613
7645

query I rowsort
SELECT ALL 35 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT DISTINCT - ( + 27 ) FROM tab0 AS cor0
----
-27

query I rowsort
SELECT ALL + 87 * - cor0.col1 - - col0 AS col2 FROM tab1 cor0
----
-1051
-2259
-806

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - + 55 AS col2 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT + + col2 + - col0 + col1 * col0 FROM tab1 AS cor0
----
1056
129
633

query I rowsort
SELECT + - 17 + + 41 AS col0 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT + cor0.col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL + 91 + + tab1.col0 * - col0 FROM tab1
----
-4005
-6309
82

query I rowsort
SELECT - col2 + - col0 AS col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL col1 + 44 FROM tab2
----
103
61
75

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT col2 * 71 FROM tab1
----
3834
4047
6816

query I rowsort
SELECT - 55 * col1 FROM tab2
----
-1705
-3245
-935

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL col2 + + col1 AS col1 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5055
SELECT - col0 DIV - col2 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5055
SELECT - col0 / - col2 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * - col2 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT - + col2 - - 12 FROM tab0 AS cor0
----
-21
-70
11

query I rowsort
SELECT ALL col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5059
SELECT ALL - col1 DIV col1 + + col1 * col1 col0 FROM tab0
----
7395
8280
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL - col1 / col1 + + col1 * col1 col0 FROM tab0
----
7395
8280
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-5060
SELECT ALL + col1 * tab0.col1 + - 96 DIV col0 AS col2 FROM tab0
----
7392
8280
9407

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + col1 * tab0.col1 + - 96 / col0 AS col2 FROM tab0
----
7392
8280
9407

query I rowsort
SELECT ALL + 4 FROM tab0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col1 FROM tab0
----
69
69
69

query I rowsort
SELECT + 37 + tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ee8c9d3918378341621adab60e191e26

query I rowsort
SELECT + - col0 * 16 AS col0 FROM tab0 AS cor0
----
-1424
-384
-560

query I rowsort
SELECT - cor0.col0 - ( 2 ) AS col2 FROM tab0 AS cor0
----
-26
-37
-91

query I rowsort
SELECT + col1 - - 80 AS col1 FROM tab0 AS cor0
----
166
171
177

query I rowsort
SELECT + tab0.col2 * col1 * col0 + + col1 AS col2 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT ALL 91 * - col1 + - cor0.col0 - + col0 FROM tab1 AS cor0
----
-1038
-1343
-2372

query I rowsort
SELECT DISTINCT + ( col0 * + col2 ) AS col0 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5070
SELECT col1 + col0 DIV col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5070
SELECT col1 + col0 / col1 AS col1 FROM tab0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5071
SELECT CAST( + col0 AS SIGNED ) * - col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5071
SELECT CAST ( + col0 AS INTEGER ) * - col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5072
SELECT + CAST( + col2 AS SIGNED ) + + col2 FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-5072
SELECT + CAST ( + col2 AS INTEGER ) + + col2 FROM tab2
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5073
SELECT - CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

skipif mysql # not compatible
query I rowsort label-5073
SELECT - CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - ( - col2 ) * 96 AS col1 FROM tab1 AS cor0
----
5184
5472
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) * + cor0.col2 col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + col0 + col0 * + ( 59 ) AS col0 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 + 44 + cor0.col2 FROM tab0 AS cor0
----
142
2915
7588

query I rowsort
SELECT ALL - 47 AS col1 FROM tab0 cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT + - col0 * col1 + 0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT ( + col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL 92 + col0 AS col0 FROM tab0 AS cor0
----
116
127
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col0 * col1 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5083
SELECT DISTINCT cor0.col2 + col2 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT cor0.col2 + col2 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5084
SELECT ALL + col1 DIV + col1 + 44 AS col0 FROM tab0 cor0
----
45
45
45

skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL + col1 / + col1 + 44 AS col0 FROM tab0 cor0
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5085
SELECT ALL + + col1 * col2 * + 16 + 4 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
19968
22464
9120

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL + + col1 * col2 * + 16 + 4 / cor0.col1 AS col1 FROM tab1 AS cor0
----
19968
22464
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT DISTINCT - col2 * - col2 + - col1 + + col2 DIV - 28 AS col1 FROM tab1
----
2889
3237
9200

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - col2 * - col2 + - col1 + + col2 / - 28 AS col1 FROM tab1
----
2889
3237
9200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT col2 * - ( cor0.col2 ) + + col0 DIV col2 FROM tab0 AS cor0
----
-1089
-6723
34

skipif mysql # not compatible
query I rowsort label-5087
SELECT col2 * - ( cor0.col2 ) + + col0 / col2 FROM tab0 AS cor0
----
-1089
-6723
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 + + 6 col0 FROM tab1 AS cor0
----
102
60
63

query I rowsort
SELECT - cor0.col2 * 38 AS col1 FROM tab0 cor0
----
-1254
-3116
-38

query I rowsort
SELECT - col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col1 + 36 FROM tab0 AS cor0
----
-50
-55
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 8 ) col2 FROM tab1 AS cor0
----
8

query I rowsort
SELECT + col0 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL cor1.col2 * 94 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 092d5b210170c98daba810ec2f4af649

query I rowsort
SELECT + 94 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT ALL col0 + 32 FROM tab1 AS cor0
----
112
35
96

query I rowsort
SELECT DISTINCT - + 79 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT DISTINCT + col0 + - 4 FROM tab2 AS cor0
----
3
74
75

query I rowsort
SELECT ALL - + col2 * + 70 FROM tab2 AS cor0
----
-1820
-1890
-2660

query I rowsort
SELECT ALL - col2 * col0 + - col2 + col1 * - col0 FROM tab1 AS cor0
----
-294
-4345
-8816

query I rowsort
SELECT + 6 * + 77 + + col2 FROM tab2 cor0
----
488
489
500

query I rowsort
SELECT ALL - col0 * - 0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + 72 * 64 + + cor0.col2 AS col2 FROM tab1 cor0
----
4662
4665
4704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5105
SELECT - 82 * + col0 + col2 * CAST( + 59 AS SIGNED ) * - col2 + ( col1 ) AS col0 FROM tab2 AS cor0
----
-43554
-46221
-91657

skipif mysql # not compatible
query I rowsort label-5105
SELECT - 82 * + col0 + col2 * CAST ( + 59 AS INTEGER ) * - col2 + ( col1 ) AS col0 FROM tab2 AS cor0
----
-43554
-46221
-91657

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5106
SELECT DISTINCT CAST( NULL AS SIGNED ) * 29 + - col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 29 + - col1 + col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 96 + - col1 * col0 AS col1 FROM tab1 cor0
----
-1136
-174
-736

query I rowsort
SELECT ALL - 77 * + col0 AS col1 FROM tab1 AS cor0
----
-231
-4928
-6160

query I rowsort
SELECT col0 * - ( + col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col0 + 26 * col1 FROM tab0 AS cor0
----
2260
2455
2557

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( - col1 AS REAL ) * cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + + 75 * - col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-5115
SELECT ALL col1 * - col2 - col1 DIV - cor0.col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL col1 * - col2 - col1 / - cor0.col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 + - 53 * + col1 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT ALL + + col1 + + ( ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - cor0.col2 * - ( col1 * + col0 + col2 * col1 ) FROM tab0 AS cor0
----
1276002
161766
3492

query I rowsort
SELECT + col0 * col0 + 99 FROM tab2 AS cor0
----
148
6183
6340

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5120
SELECT DISTINCT col0 * + CAST( col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT col0 * + CAST ( col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL + col2 * - cor0.col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + col1 * col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5123
SELECT ALL - col0 / + CAST( NULL AS SIGNED ) + col0 * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT ALL - col0 / + CAST ( NULL AS INTEGER ) + col0 * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - - col2 * + tab0.col2 * col1 FROM tab0
----
194
611975
93740

query I rowsort
SELECT 38 + + 95 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8f0ca4cf97de794a4b9271d695e9d991

query I rowsort
SELECT DISTINCT + cor0.col1 - col2 * cor0.col2 AS col0 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT - - ( - 35 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT DISTINCT - col2 + - ( 75 ) FROM tab2
----
-101
-102
-113

query I rowsort
SELECT ALL col1 * + 41 + - col0 FROM tab0
----
3502
3642
3942

query I rowsort
SELECT DISTINCT tab0.col0 + col1 AS col2 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5131
SELECT - col0 * - col0 + - 46 DIV col1 AS col1 FROM tab1
----
4092
6397
8

skipif mysql # not compatible
query I rowsort label-5131
SELECT - col0 * - col0 + - 46 / col1 AS col1 FROM tab1
----
4092
6397
8

query I rowsort
SELECT col1 * - 45 * col0 FROM tab2
----
-207090
-60435
-9765

query I rowsort
SELECT col1 + 9 - col2 FROM tab2
----
-12
13
42

query I rowsort
SELECT + col1 + ( + col1 ) FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5135
SELECT DISTINCT - col0 DIV ( ( + col2 ) ) + cor0.col1 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT - col0 / ( ( + col2 ) ) + cor0.col1 FROM tab1 AS cor0
----
13
26
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5136
SELECT col0 * CAST( - 96 AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
-2271
-3359
-8462

skipif mysql # not compatible
query I rowsort label-5136
SELECT col0 * CAST ( - 96 AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
-2271
-3359
-8462

query I rowsort
SELECT col2 * cor0.col2 + col1 * + col2 FROM tab2 AS cor0
----
1566
2090
2210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 + col1 col0 FROM tab0
----
100
139
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-5139
SELECT DISTINCT col1 * tab1.col2 + col1 * - col0 + + 82 DIV + 60 FROM tab1
----
-69
1327
209

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT col1 * tab1.col2 + col1 * - col0 + + 82 / + 60 FROM tab1
----
-69
1327
209

query I rowsort
SELECT ALL - 74 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + + 39 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT ALL - ( col2 ) + 32 * - col1 AS col2 FROM tab0 AS cor0
----
-2785
-2994
-3105

query I rowsort
SELECT + - 16 * + col2 * - col2 + 70 FROM tab2 AS cor0
----
10886
11734
23174

query I rowsort
SELECT DISTINCT - + col2 + + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - - 40 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
1209
2301
663

query I rowsort
SELECT ALL col1 * - col2 - - col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ( col0 ) + ( + col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col1 * 3 FROM tab0 cor0
----
258
273
291

query I rowsort
SELECT - col0 + + 49 FROM tab1 cor0
----
-15
-31
46

query I rowsort
SELECT DISTINCT tab0.col0 * + tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col2 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT + 51 AS col2 FROM tab2, tab0, tab2 cor0
----
51

query I rowsort
SELECT + - col1 * col0 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT DISTINCT - col0 DIV + 67 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT - col0 / + 67 AS col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT + 85 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT col1 * col0 + col1 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
1205
1670
8109

onlyif mysql # use DIV operator for integer division
query I rowsort label-5158
SELECT DISTINCT cor0.col1 DIV col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT cor0.col1 / col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + cor0.col2 * 6 + col1 FROM tab0 AS cor0
----
103
284
583

query I rowsort
SELECT - col0 * 59 + col0 * + col1 - + col2 * col0 AS col0 FROM tab1 cor0
----
-11360
-261
-6784

query I rowsort
SELECT - - 79 + + cor0.col1 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT + 36 + - col1 FROM tab0 cor0
----
-50
-55
-61

query I rowsort
SELECT - - 78 * + col2 AS col2 FROM tab2 AS cor0
----
2028
2106
2964

query I rowsort
SELECT + col2 + 54 * col2 * col1 + + tab2.col1 * + col0 AS col2 FROM tab2
----
36265
45442
87464

query I rowsort
SELECT - 43 - - col0 FROM tab2 AS cor0
----
-36
35
36

query I rowsort
SELECT ALL + 6 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT - col1 + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT + col0 DIV col1 col0 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5168
SELECT + col0 / col1 col0 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col1 FROM tab1 AS cor0
----
162
3648
7680

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

query I rowsort
SELECT - + ( col2 ) + col1 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT - 70 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * - 74 FROM tab0 AS cor0
----
-6397
-6816
-7179

query I rowsort
SELECT + col0 + + col0 - col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 66 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + ( col1 + - tab1.col2 ) * + col0 AS col1 FROM tab1
----
-3008
-6640
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5177
SELECT col1 + + col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-5177
SELECT col1 + + col2 / - col0 AS col2 FROM tab2 AS cor0
----
17
28
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - 79 col0 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT col1 * + col1 * col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5180
SELECT - col2 DIV 20 FROM tab0 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5180
SELECT - col2 / 20 FROM tab0 cor0
----
-1
-4
0

query I rowsort
SELECT ALL col0 + ( - cor0.col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + col1 - - col1 * - col1 * - 96 AS col0 FROM tab1
----
16237
64922
9610

query I rowsort
SELECT - 43 * tab1.col2 FROM tab1
----
-2322
-2451
-4128

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5184
SELECT DISTINCT + col0 + col1 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + col0 + col1 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + 33 AS col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT + col1 * 3 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT - col2 * col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242

onlyif mysql # use DIV operator for integer division
query I rowsort label-5190
SELECT col1 * col1 DIV col2 FROM tab1
----
1
1
12

skipif mysql # not compatible
query I rowsort label-5190
SELECT col1 * col1 / col2 FROM tab1
----
1
1
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5191
SELECT DISTINCT CAST( - col1 AS SIGNED ) DIV + col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT CAST ( - col1 AS INTEGER ) / + col2 FROM tab0
----
-1
-2
-97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

query I rowsort
SELECT ALL 89 AS col2 FROM tab0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 90 AS REAL ) AS col2 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5196
SELECT ALL + + CAST( col2 AS SIGNED ) + col2 + - col0 FROM tab2 AS cor0
----
-26
-3
47

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + + CAST ( col2 AS INTEGER ) + col2 + - col0 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT ALL + 81 * - 2 AS col0 FROM tab0 AS cor0
----
-162
-162
-162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT DISTINCT + CAST( + col2 AS SIGNED ) DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 44 AS col0 FROM tab2 AS cor0
----
44
44
44

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5201
SELECT ALL + - CAST( cor0.col1 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL + - CAST ( cor0.col1 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 41 FROM tab1 cor0
----
41

query I rowsort
SELECT + 80 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT + CAST( col0 AS SIGNED ) DIV + col0 + + 65 FROM tab2
----
66
66
66

skipif mysql # not compatible
query I rowsort label-5204
SELECT + CAST ( col0 AS INTEGER ) / + col0 + + 65 FROM tab2
----
66
66
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5205
SELECT DISTINCT col2 DIV + 75 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT col2 / + 75 FROM tab1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col0 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT - col1 + cor0.col1 * col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - col0 * + 50 FROM tab0
----
-1200
-1750
-4450

query I rowsort
SELECT col2 * col0 + col1 * 36 AS col1 FROM tab0
----
10574
3527
3888

query I rowsort
SELECT 70 + col1 AS col1 FROM tab2
----
101
129
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col0 FROM tab0
----
-15

query I rowsort
SELECT cor0.col0 * cor0.col0 + 15 AS col0 FROM tab0 AS cor0
----
1240
591
7936

query I rowsort
SELECT ALL cor0.col2 * - 91 * - col1 FROM tab2 AS cor0
----
139594
58786
76167

query I rowsort
SELECT DISTINCT col2 + - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT + col0 DIV + 48 + 15 col2 FROM tab0 AS cor0
----
15
15
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5217
SELECT + col0 / + 48 + 15 col2 FROM tab0 AS cor0
----
15
15
16

query I rowsort
SELECT - cor0.col2 + + ( col0 ) FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL + 86 - col0 AS col1 FROM tab1
----
22
6
83

query I rowsort
SELECT cor0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col2 * col2 * + col2 AS col2 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT ALL + col2 - + col0 AS col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT col2 * col1 + 43 + 20 AS col0 FROM tab1
----
1311
1467
633

query I rowsort
SELECT col0 * col0 * col2 AS col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT - cor0.col1 + + 0 * col2 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col1 * col2 + + col0 * cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
106743
2356
360490

query I rowsort
SELECT ALL col1 * 55 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT ALL - col1 * + 15 * col2 AS col0 FROM tab2 AS cor0
----
-12555
-23010
-9690

query I rowsort
SELECT + col0 + - col0 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col0 + - 3 FROM tab2 AS cor0
----
-10
-81
-82

query I rowsort
SELECT ALL + col2 * cor0.col1 * 68 AS col0 FROM tab0 AS cor0
----
192984
507416
6596

query I rowsort
SELECT col1 * col1 + + col1 AS col0 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5233
SELECT ALL col1 + CAST( - 61 AS SIGNED ) AS col1 FROM tab1
----
-35
-48
-51

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL col1 + CAST ( - 61 AS INTEGER ) AS col1 FROM tab1
----
-35
-48
-51

query I rowsort
SELECT DISTINCT + col1 + ( - col2 ) AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT col1 * - col2 * col2 AS col2 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT ALL + col1 DIV 64 + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + col1 / 64 + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT col1 + + 46 * col0 FROM tab1
----
164
2954
3693

query I rowsort
SELECT DISTINCT - 27 * 48 + + col1 FROM tab0 AS cor0
----
-1199
-1205
-1210

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5239
SELECT - - CAST( NULL AS SIGNED ) * - 70 + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5239
SELECT - - CAST ( NULL AS INTEGER ) * - 70 + col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5240
SELECT ALL + col1 + + col1 DIV - col0 - 33 * - col1 AS col1 FROM tab1 AS cor0
----
340
442
876

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + col1 + + col1 / - col0 - 33 * - col1 AS col1 FROM tab1 AS cor0
----
340
442
876

query I rowsort
SELECT ALL - - ( col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5242
SELECT - - CAST( - col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5242
SELECT - - CAST ( - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 13 AS col1 FROM tab2 cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT cor0.col0 + 35 AS col1 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT ALL col1 * - col0 - - col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 45 col1 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT ALL - + col1 * col2 + col1 * col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - 29 + col0 * col0 AS col0 FROM tab0 AS cor0
----
1254
605
7950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 - ( + 44 ) col0 FROM tab0 AS cor0
----
-9
7254
748

query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col0 * + col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-5252
SELECT ALL - 74 - - col1 DIV col2 FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - 74 - - col1 / col2 FROM tab1 AS cor0
----
-74
-74
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5253
SELECT 28 + col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT 28 + col2 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 48 AS col0 FROM tab0 AS cor0
----
48

query I rowsort
SELECT ALL + 78 * cor0.col1 AS col0 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT 95 * col1 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT ALL col0 * cor0.col0 * col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - + 2 FROM tab0 cor0
----
-2
-2
-2

query I rowsort
SELECT - col0 * + 17 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1431
-375
-594

query I rowsort
SELECT + - col0 * ( + 29 ) + cor0.col0 * 31 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col0 - + col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - + col2 + - ( cor0.col1 + col0 ) AS col0 FROM tab0 AS cor0
----
-133
-143
-262

onlyif mysql # use DIV operator for integer division
query I rowsort label-5264
SELECT ALL col2 DIV 78 + - 46 FROM tab1 cor0
----
-45
-46
-46

skipif mysql # not compatible
query I rowsort label-5264
SELECT ALL col2 / 78 + - 46 FROM tab1 cor0
----
-45
-46
-46

query I rowsort
SELECT DISTINCT + col2 - - 32 * 56 FROM tab1 AS cor0
----
1846
1849
1888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 + col1 * col2 + ( col1 ) col1 FROM tab0 AS cor0
----
-4472
-728
-9215

query I rowsort
SELECT - cor0.col2 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL - col0 - col1 * - ( col0 * + col0 ) AS col2 FROM tab0
----
118790
49512
720722

query I rowsort
SELECT cor0.col0 - col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col0 + col1 * + cor0.col1 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT + - col0 DIV + col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5272
SELECT + - col0 / + col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT col2 + + col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT + cor0.col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + cor0.col0 * col0 - + col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT + - col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col2 * - tab1.col1 + - col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT ALL col2 * col2 * + tab2.col2 AS col2 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT ALL - col2 + - col2 * col0 * - col2 - col0 * col2 AS col2 FROM tab0
----
-1
25311
591056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col2 col1 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT DISTINCT ( + cor0.col0 ) * - col0 + - col1 DIV col0 + col0 AS col0 FROM tab1 cor0
----
-14
-4032
-6320

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT ( + cor0.col0 ) * - col0 + - col1 / col0 + col0 AS col0 FROM tab1 cor0
----
-14
-4032
-6320

query I rowsort
SELECT cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col1 + - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT ALL - col1 DIV + col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL - col1 / + col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT DISTINCT - col0 - col2 AS col2 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT - col0 + + col0 - col0 * + col2 AS col2 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col0 / + col1 + col2 * + col2 FROM tab1 WHERE NOT - col0 NOT BETWEEN + col0 AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - tab0.col2 + - col0 + tab0.col2 )
----

query I rowsort
SELECT + col1 * tab0.col1 + tab0.col0 + tab0.col2 AS col2 FROM tab0
----
7453
8452
9445

query I rowsort
SELECT - col1 + + tab2.col2 FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT - col0 DIV - tab1.col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5292
SELECT - col0 / - tab1.col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - col1 + + col2 + + col1 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT + tab1.col0 DIV + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5294
SELECT + tab1.col0 / + col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT col0 + tab1.col2 * tab1.col1 AS col2 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-5296
SELECT - + cor0.col0 DIV - col2 + + 53 FROM tab0 AS cor0
----
53
54
88

skipif mysql # not compatible
query I rowsort label-5296
SELECT - + cor0.col0 / - col2 + + 53 FROM tab0 AS cor0
----
53
54
88

query I rowsort
SELECT col2 - + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * - cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 + 43 AS col2 FROM tab0 AS cor0
----
109
207
45

query I rowsort
SELECT ALL + tab1.col2 * - col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col0 * + col1 + col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT ALL + col0 + col2 AS col1 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT ALL - col2 DIV - col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL - col2 / - col2 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + - col0 NOT IN ( - col1 * col0 * col2 + - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT - col0 * cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT col1 FROM tab0 WHERE - col0 IN ( col2 )
----

query I rowsort
SELECT + col2 FROM tab0 WHERE - col0 NOT IN ( col1 )
----
1
33
82

query I rowsort
SELECT col1 + col2 FROM tab0 WHERE NOT col0 BETWEEN NULL AND - col2
----
119
173
98

query III rowsort
SELECT * FROM tab1 WHERE NULL > - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5311
SELECT DISTINCT - col1 * - col2 DIV col2 + col1 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - col1 * - col2 / col2 + col1 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT - col2 + tab1.col2 DIV col0 FROM tab1
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-5312
SELECT - col2 + tab1.col2 / col0 FROM tab1
----
-36
-57
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5313
SELECT ALL - col1 + - col2 * col2 + 26 DIV - col2 col2 FROM tab0
----
-1175
-124
-6815

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - col1 + - col2 * col2 + 26 / - col2 col2 FROM tab0
----
-1175
-124
-6815

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 FROM tab2, tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + ( + ( col0 ) ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + - 41 * col0 AS col0 FROM tab1 AS cor0
----
-123
-2624
-3280

query I rowsort
SELECT + col0 * - col1 + + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + + col2 + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - 3 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

onlyif mysql # use DIV operator for integer division
query I rowsort label-5322
SELECT DISTINCT col2 * + col2 * col2 + - 26 * col0 DIV col1 AS col2 FROM tab1 AS cor0
----
157461
185027
884576

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT col2 * + col2 * col2 + - 26 * col0 / col1 AS col2 FROM tab1 AS cor0
----
157461
185027
884576

query I rowsort
SELECT DISTINCT - + 75 + col2 AS col2 FROM tab2 cor0
----
-37
-48
-49

query I rowsort
SELECT ALL - col2 * - 24 AS col0 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT - col2 + 68 AS col1 FROM tab0 AS cor0
----
-14
35
67

query I rowsort
SELECT ALL - col0 - 94 AS col1 FROM tab0 AS cor0
----
-118
-129
-183

query I rowsort
SELECT - col0 + col0 * + col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT - 18 + col0 AS col1 FROM tab2
----
-11
60
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5329
SELECT ALL + tab0.col1 - CAST( NULL AS SIGNED ) FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL + tab0.col1 - CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5330
SELECT 59 * + tab1.col0 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT 59 * + tab1.col0 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5331
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + 51 + col1 * col2 FROM tab2
----
1585
697
888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - 74 + + 39 FROM tab1 AS cor0
----
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5335
SELECT ALL - - CAST( NULL AS SIGNED ) * 80 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - - CAST ( NULL AS INTEGER ) * 80 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5336
SELECT DISTINCT CAST( col2 AS SIGNED ) * col2 * - col0 + - cor0.col0 DIV col1 + + col0 * ( cor0.col2 * + col2 + 2 ) AS col2 FROM tab2 AS cor0
----
14
154
155

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col2 * - col0 + - cor0.col0 / col1 + + col0 * ( cor0.col2 * + col2 + 2 ) AS col2 FROM tab2 AS cor0
----
14
154
155

query I rowsort
SELECT ALL ( - col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT cor0.col2 + col1 AS col0 FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5339
SELECT ALL + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + col2 * + col2 + - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT col1 + + 59 * - col1 AS col0 FROM tab2 AS cor0
----
-1798
-3422
-986

query I rowsort
SELECT + - 21 * 58 FROM tab0 cor0
----
-1218
-1218
-1218

query I rowsort
SELECT col0 * + ( col0 ) + - col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL - col0 * 59 AS col0 FROM tab1
----
-177
-3776
-4720

query I rowsort
SELECT + col0 - + 80 AS col1 FROM tab0
----
-45
-56
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5346
SELECT DISTINCT - col0 + + 25 DIV - col0 FROM tab2 AS cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT - col0 + + 25 / - col0 FROM tab2 AS cor0
----
-10
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - 95 col0 FROM tab2 AS cor0
----
2470
2565
3610

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ( + 50 ) FROM tab0
----
50
50
50

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) FROM tab1
----
10
13
26

query I rowsort
SELECT - col2 + - ( + col0 * + ( col2 ) ) - - col1 AS col1 FROM tab2 AS cor0
----
-185
-1995
-3023

query I rowsort
SELECT ALL col1 - - col1 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5353
SELECT - - ( - col2 ) + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5353
SELECT - - ( - col2 ) + col2 / - col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT ( - tab1.col0 ) + col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - - ( - 77 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col2 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5359
SELECT DISTINCT col0 + - col0 * - CAST( - col0 * - col0 + - col0 AS SIGNED ) FROM tab2
----
301
468546
486877

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT col0 + - col0 * - CAST ( - col0 * - col0 + - col0 AS INTEGER ) FROM tab2
----
301
468546
486877

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5360
SELECT DISTINCT col2 + + col0 * - CAST( 52 * + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-189639
-399264
-8370

skipif mysql # not compatible
query I rowsort label-5360
SELECT DISTINCT col2 + + col0 * - CAST ( 52 * + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-189639
-399264
-8370

onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT 68 DIV + col0 FROM tab1 AS cor0
----
0
1
22

skipif mysql # not compatible
query I rowsort label-5361
SELECT 68 / + col0 FROM tab1 AS cor0
----
0
1
22

query I rowsort
SELECT ( col0 ) * + col0 + + col1 - - cor0.col0 FROM tab0 AS cor0
----
1357
686
8101

query I rowsort
SELECT 43 + - col2 * - col2 * ( col2 ) AS col0 FROM tab1 cor0
----
157507
185236
884779

onlyif mysql # use DIV operator for integer division
query I rowsort label-5364
SELECT DISTINCT + - 15 DIV col1 + ( 70 ) + - col1 AS col0 FROM tab2 AS cor0
----
11
39
53

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + - 15 / col1 + ( 70 ) + - col1 AS col0 FROM tab2 AS cor0
----
11
39
53

query I rowsort
SELECT + col1 - cor0.col2 * 96 FROM tab2 AS cor0
----
-2437
-2561
-3631

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5366
SELECT ALL ( - col0 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL ( - col0 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 58 * - cor0.col0 - - col0 * - col1 FROM tab1 AS cor0
----
-252
-4352
-5680

query I rowsort
SELECT - + col2 * col1 + ( - 76 + - cor0.col1 ) FROM tab0 AS cor0
----
-270
-3000
-7629

onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT cor0.col1 + - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-5369
SELECT cor0.col1 + - col2 / col1 AS col0 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT DISTINCT 83 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1079
2158
830

query I rowsort
SELECT col1 + 61 * 10 * col1 AS col1 FROM tab0
----
52546
55601
59267

query I rowsort
SELECT + col2 * + col1 * - col0 - - col1 AS col1 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT col1 + ( - 4 ) FROM tab1 AS cor0
----
22
6
9

query I rowsort
SELECT - col2 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5375
SELECT - col1 * + CAST( + col0 * col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5375
SELECT - col1 * + CAST ( + col0 * col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + col1 - - col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT cor0.col2 * 99 + - col0 + - col0 FROM tab2 AS cor0
----
2418
2659
3604

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab0 cor1, tab2, tab1 AS cor2, tab0
----
13122 values hashing to 2f4a6e2b85b07f1b4a117e7cedb59277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT + + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5379
SELECT + + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 17 + 3 * + col2 FROM tab2 cor0
----
131
95
98

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ALL + + 16 + ( cor0.col0 ) * col2 + col0 * + col1 * - col1 FROM tab2 AS cor0
----
-19813
-269474
-6522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5383
SELECT DISTINCT + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - - 67 + col0 * col0 AS col0 FROM tab1 AS cor0
----
4163
6467
76

query I rowsort
SELECT + ( 13 ) FROM tab1 AS cor0
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-5386
SELECT ALL - - ( - cor0.col0 ) DIV col2 + - col1 FROM tab0 AS cor0
----
-132
-86
-92

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - - ( - cor0.col0 ) / col2 + - col1 FROM tab0 AS cor0
----
-132
-86
-92

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab0 AS cor0
----
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT - + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5388
SELECT - + col1 / col0 AS col1 FROM tab2 AS cor0
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5389
SELECT col1 DIV - 80 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5389
SELECT col1 / - 80 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - col1 + ( + 48 ) * + col2 AS col0 FROM tab2 AS cor0
----
1307
1327
1841

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5392
SELECT col1 * + CAST( + 59 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-33630
-73632
-82836

skipif mysql # not compatible
query I rowsort label-5392
SELECT col1 * + CAST ( + 59 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-33630
-73632
-82836

query I rowsort
SELECT DISTINCT 94 * col1 FROM tab0
----
8084
8554
9118

query I rowsort
SELECT - tab2.col2 + tab2.col1 * col1 * + col0 FROM tab2
----
22793
271492
6700

query I rowsort
SELECT + + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT - + 50 * - col1 + - col0 DIV col1 - + 60 AS col0 FROM tab0 AS cor0
----
4240
4490
4790

skipif mysql # not compatible
query I rowsort label-5396
SELECT - + 50 * - col1 + - col0 / col1 - + 60 AS col0 FROM tab0 AS cor0
----
4240
4490
4790

query I rowsort
SELECT ALL + col0 + + tab1.col2 * col2 AS col2 FROM tab1
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5398
SELECT - + CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5398
SELECT - + CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ( + cor0.col1 ) FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col0 + + 69 AS col1 FROM tab2
----
147
148
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5402
SELECT + col2 * + col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5402
SELECT + col2 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 28 AS col0 FROM tab1 cor0
----
28
28
28

query I rowsort
SELECT + 17 * col1 FROM tab2
----
1003
289
527

query I rowsort
SELECT ALL + 7 AS col2 FROM tab1
----
7
7
7

query I rowsort
SELECT DISTINCT ( + col1 + + tab0.col2 ) FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - tab1.col2 + + 38 FROM tab1, tab1 AS cor0
----
-16
-19
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + - 35 col1 FROM tab2
----
1409
641
694

query I rowsort
SELECT DISTINCT ( col2 ) * col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT 95 AS col0 FROM tab2
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 + - tab2.col1 col0 FROM tab2
----
-26
16
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT 3 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL col2 + - ( + col0 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - col1 * col0 + + col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT + 53 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 * CAST ( - col0 AS REAL ) + col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT ALL - 68 * col2 FROM tab1
----
-3672
-3876
-6528

query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - 16 * tab0.col0 FROM tab0
----
-1424
-384
-560

query I rowsort
SELECT 38 * - col2 AS col1 FROM tab1
----
-2052
-2166
-3648

query I rowsort
SELECT DISTINCT + 70 FROM tab1
----
70

query I rowsort
SELECT - cor0.col2 + col2 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5424
SELECT 59 * cor0.col0 DIV col0 - - ( ( cor0.col1 ) ) AS col2 FROM tab0 AS cor0
----
145
150
156

skipif mysql # not compatible
query I rowsort label-5424
SELECT 59 * cor0.col0 / col0 - - ( ( cor0.col1 ) ) AS col2 FROM tab0 AS cor0
----
145
150
156

query I rowsort
SELECT 81 * + col0 + 20 * 13 * - col2 FROM tab2 AS cor0
----
-3481
-442
-6453

query I rowsort
SELECT 70 * col1 AS col0 FROM tab1
----
1820
700
910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT + CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT + CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 75 FROM tab2, tab0, tab1 AS cor0
----
75

query I rowsort
SELECT ALL + 22 AS col1 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT ( - col0 ) * + col1 DIV - col1 + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

skipif mysql # not compatible
query I rowsort label-5430
SELECT ( - col0 ) * + col1 / - col1 + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + col0 * - col1 * col2 + col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT - 47 * - col0 + + col2 FROM tab0 AS cor0
----
1161
1646
4265

query I rowsort
SELECT ALL + 60 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL + col2 * - col0 - 37 AS col0 FROM tab1
----
-199
-3685
-7717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5435
SELECT ALL tab2.col1 * CAST( NULL AS SIGNED ) - col0 * tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL tab2.col1 * CAST ( NULL AS INTEGER ) - col0 * tab2.col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 47 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL cor0.col0 * ( - ( - cor0.col2 ) * col0 ) FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - col0 + + 3 AS col0 FROM tab2 AS cor0
----
-4
-75
-76

query I rowsort
SELECT col1 * - ( - 80 ) FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT + + col2 * 40 + cor0.col2 FROM tab2 AS cor0
----
1066
1107
1558

query I rowsort
SELECT cor0.col1 + col0 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - - cor0.col1 + - 65 * col2 FROM tab2 AS cor0
----
-1631
-1724
-2453

query I rowsort
SELECT ALL + + 19 + cor0.col0 * + col1 AS col1 FROM tab2 AS cor0
----
1362
236
4621

query I rowsort
SELECT ALL - ( + col0 ) + col1 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 + + col2 col1 FROM tab2 AS cor0
----
-15
-26
-27

query I rowsort
SELECT ALL + - ( - col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT 34 + col1 FROM tab0 cor0
----
120
125
131

query I rowsort
SELECT + + col0 - - col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT 38 + + col2 FROM tab2 AS cor0
----
64
65
76

query I rowsort
SELECT DISTINCT + col0 * col1 - + col2 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + - 16 * - col2 - col1 FROM tab2 AS cor0
----
357
401
591

onlyif mysql # use DIV operator for integer division
query I rowsort label-5452
SELECT - col2 DIV - 9 + + col1 FROM tab0 AS cor0
----
100
89
97

skipif mysql # not compatible
query I rowsort label-5452
SELECT - col2 / - 9 + + col1 FROM tab0 AS cor0
----
100
89
97

query I rowsort
SELECT + cor0.col0 * + col2 - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT 44 * col1 * - col0 FROM tab0
----
-149380
-356356
-90816

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab2
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - 30 AS col0 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT - + 63 * - col0 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT ALL 34 AS col2 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT 55 + col0 * + col1 FROM tab1 AS cor0
----
1095
133
695

query I rowsort
SELECT DISTINCT + 6 + col2 * col1 FROM tab0 AS cor0
----
103
2844
7468

query I rowsort
SELECT ALL 63 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT ALL - 8 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-24
-512
-640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5464
SELECT ALL + col2 DIV col0 + - col2 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + col2 / col0 + - col2 / + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + 81 FROM tab2 AS cor0
----
107
108
119

query I rowsort
SELECT ALL + col1 * + 4 - col0 AS col1 FROM tab1 AS cor0
----
-24
-28
101

query I rowsort
SELECT ALL + col2 + - 92 FROM tab1 AS cor0
----
-35
-38
4

query I rowsort
SELECT ALL - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + + col0 * 40 FROM tab2 cor0
----
280
3120
3160

query I rowsort
SELECT ALL cor0.col1 * cor0.col2 + + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + col1 * ( col0 ) + col0 * 82 AS col0 FROM tab1 AS cor0
----
324
5888
7600

query I rowsort
SELECT DISTINCT + + col0 + + 30 FROM tab1 AS cor0
----
110
33
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT ALL - col0 + - col2 - cor0.col1 DIV col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - col0 + - col2 - cor0.col1 / col2 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col2 FROM tab1
----
91
91
91

query I rowsort
SELECT DISTINCT col1 * col0 + + 87 * col2 - col2 AS col2 FROM tab2 cor0
----
2539
4611
6838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5476
SELECT DISTINCT + col2 * CAST( 15 AS SIGNED ) FROM tab1 AS cor0
----
1440
810
855

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT + col2 * CAST ( 15 AS INTEGER ) FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT + - col1 * 5 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT - - col1 + + col2 * col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT - col2 + - 80 AS col0 FROM tab1
----
-134
-137
-176

query I rowsort
SELECT ALL - col1 * - col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) AS col1 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 18 col1 FROM tab0
----
104
109
115

query I rowsort
SELECT - col1 * col2 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + - col1 + + col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col1 * col1 * - cor0.col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT + - col0 * - col2 + + 51 + col0 FROM tab1 AS cor0
----
216
3763
7811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + col0 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + ( - col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * tab0.col0 + 8 col0 FROM tab0
----
1616
2353
5971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 col1 FROM tab0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 + ( + col0 ) * cor0.col0 col1 FROM tab0 AS cor0
----
1163
514
7919

query I rowsort
SELECT - + col1 * col0 + col0 * col2 + col1 FROM tab0 AS cor0
----
-1186
-3263
-710

query I rowsort
SELECT ALL cor0.col2 + + col1 * 79 AS col0 FROM tab1 AS cor0
----
1123
2108
847

query I rowsort
SELECT ALL 90 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - 2 AS col1 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT DISTINCT ( - 97 * + col1 ) FROM tab1
----
-1261
-2522
-970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5501
SELECT ALL - CAST( - 44 AS SIGNED ) col1 FROM tab2
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL - CAST ( - 44 AS INTEGER ) col1 FROM tab2
----
44
44
44

query I rowsort
SELECT DISTINCT - 41 + col1 FROM tab1 AS cor0
----
-15
-28
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + - col1 * - 88 col1 FROM tab1 cor0
----
1050
2194
786

query I rowsort
SELECT ALL col0 + ( - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - - col1 * + cor0.col1 + 89 AS col0 FROM tab0 AS cor0
----
7485
8370
9498

query I rowsort
SELECT col1 * - cor0.col1 + 81 FROM tab1 AS cor0
----
-19
-595
-88

query I rowsort
SELECT - + col0 + + 94 FROM tab2 AS cor0
----
15
16
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT + - col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5508
SELECT + - col1 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - col1 + 88 AS col1 FROM tab1 AS cor0
----
62
75
78

query I rowsort
SELECT + col1 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - - col2 * - 57 + col0 AS col0 FROM tab0 AS cor0
----
-1857
-22
-4585

query I rowsort
SELECT + 38 + + col2 FROM tab1 AS cor0
----
134
92
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + + 19 col1 FROM tab2
----
-19
-7
-8

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 1 AS REAL ) + - col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT + col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL 11 * + col0 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT DISTINCT - + col2 * - 57 + col2 AS col1 FROM tab1 AS cor0
----
3132
3306
5568

query I rowsort
SELECT - ( col0 ) + tab2.col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5519
SELECT + + col2 * - 75 + cor0.col1 DIV - ( + 32 + col1 ) FROM tab0 cor0
----
-2475
-6150
-75

skipif mysql # not compatible
query I rowsort label-5519
SELECT + + col2 * - 75 + cor0.col1 / - ( + 32 + col1 ) FROM tab0 cor0
----
-2475
-6150
-75

query I rowsort
SELECT DISTINCT + ( cor1.col0 ) AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5521
SELECT ALL - + CAST( NULL AS SIGNED ) + col2 * - cor0.col2 col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - + CAST ( NULL AS INTEGER ) + col2 * - cor0.col2 col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + col2 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 + col0 col0 FROM tab0 cor0
----
-46
-57
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 * col0 + col2 col0 FROM tab2 AS cor0
----
1196
1223
132

query I rowsort
SELECT DISTINCT + + col1 * - 14 AS col2 FROM tab0 AS cor0
----
-1204
-1274
-1358

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT ALL col1 * col1 * - tab1.col1 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT + col1 * + col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL 64 FROM tab2, tab0 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT - col1 + + col2 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT - - col1 + 88 FROM tab1 AS cor0
----
101
114
98

query I rowsort
SELECT 63 + - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c526fd09f17e1f500877f5ebe067c973

query I rowsort
SELECT - col1 * - col2 + - col1 AS col2 FROM tab1 cor0
----
1235
1378
560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5534
SELECT + col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT + col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT ALL col2 DIV ( col0 ) AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL col2 / ( col0 ) AS col1 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col0 FROM tab0
----
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5537
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) * + col0 - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) * + col0 - col2 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT DISTINCT - col1 DIV col0 - - tab0.col0 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT - col1 / col0 - - tab0.col0 FROM tab0
----
21
33
88

query I rowsort
SELECT - col2 * ( col2 ) AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT + tab0.col1 * + tab0.col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col0 * tab0.col2 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT col0 - 83 FROM tab0
----
-48
-59
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5543
SELECT DISTINCT - col2 - + CAST( - tab2.col0 AS SIGNED ) FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT - col2 - + CAST ( - tab2.col0 AS INTEGER ) FROM tab2
----
-20
41
52

query I rowsort
SELECT + cor0.col2 + ( - 49 * col2 ) FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT col0 * - ( col1 ) + - col0 + col0 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col1 + + tab2.col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT - col1 + + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + col1 * + col0 AS col2 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT + col1 * col1 + + 94 DIV + cor0.col0 FROM tab1 AS cor0
----
101
170
707

skipif mysql # not compatible
query I rowsort label-5549
SELECT + col1 * col1 + + 94 / + cor0.col0 FROM tab1 AS cor0
----
101
170
707

query I rowsort
SELECT col0 + + ( col2 ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL 53 * - col2 + col0 FROM tab0 AS cor0
----
-1725
-18
-4257

query I rowsort
SELECT ALL + col0 * col2 * 64 FROM tab2 AS cor0
----
12096
129792
192128

query I rowsort
SELECT + col0 * + col0 * - col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + cor0.col1 * 33 FROM tab0, tab2 cor0
----
9 values hashing to ca1c3aac59acee4d5db2847dddc1b912

query I rowsort
SELECT ALL + - col2 * + col0 * + col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL ( col2 * + col0 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - 55 AS col2 FROM tab0
----
-55
-55
-55

query I rowsort
SELECT DISTINCT + 47 + col1 * - tab1.col1 FROM tab1
----
-122
-53
-629

onlyif mysql # use DIV operator for integer division
query I rowsort label-5560
SELECT DISTINCT ( - col1 ) * 56 DIV + 23 FROM tab2
----
-143
-41
-75

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT ( - col1 ) * 56 / + 23 FROM tab2
----
-143
-41
-75

query I rowsort
SELECT ALL col2 * col0 * ( col1 ) FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 - + col2 AS col1 FROM tab1
----
-106
-122
-77

query I rowsort
SELECT DISTINCT + 81 - col2 AS col2 FROM tab1
----
-15
24
27

query I rowsort
SELECT + - 24 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT - 84 * tab0.col0 + + col0 DIV + col2 + + col1 * + col1 FROM tab0
----
5380
6504
806

skipif mysql # not compatible
query I rowsort label-5565
SELECT - 84 * tab0.col0 + + col0 / + col2 + + col1 * + col1 FROM tab0
----
5380
6504
806

query I rowsort
SELECT col0 + - col1 + - col0 AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab0
----
2
62
62

query I rowsort
SELECT ALL - col0 * + col1 + - 76 + + col1 FROM tab0 AS cor0
----
-2054
-3374
-8084

query I rowsort
SELECT tab2.col2 + 70 AS col1 FROM tab2
----
108
96
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5571
SELECT col0 * tab1.col2 - - col2 DIV col0 FROM tab1
----
180
3648
7681

skipif mysql # not compatible
query I rowsort label-5571
SELECT col0 * tab1.col2 - - col2 / col0 FROM tab1
----
180
3648
7681

query I rowsort
SELECT ALL + cor0.col1 * 62 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9a24033db08975c220458ddfc5036fe2

query I rowsort
SELECT ALL + tab1.col1 + tab1.col0 FROM tab1
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5574
SELECT ALL col2 + CAST( col0 * col1 AS SIGNED ) FROM tab1
----
1136
132
697

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL col2 + CAST ( col0 * col1 AS INTEGER ) FROM tab1
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5575
SELECT ALL col2 * + CAST( NULL AS DECIMAL ) + ( + col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL col2 * + CAST ( NULL AS REAL ) + ( + col2 ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - col0 + + tab1.col1 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + - col2 * col1 + - col2 AS col0 FROM tab0 cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - - ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ( 62 ) * + col0 + - ( col1 ) * col0 FROM tab2 cor0
----
217
234
3555

query I rowsort
SELECT DISTINCT - col2 + 26 FROM tab2 AS cor0
----
-1
-12
0

query I rowsort
SELECT ALL col2 * - col1 - col2 * - col1 FROM tab1 AS cor0
----
0
0
0

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query I rowsort
SELECT ALL - 44 * + 40 - + col2 AS col1 FROM tab2 AS cor0
----
-1786
-1787
-1798

query I rowsort
SELECT DISTINCT 2 * col0 * col2 + col2 FROM tab0 AS cor0
----
14678
1617
71

query I rowsort
SELECT ALL - + ( col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - 33 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT ALL - + col0 + 89 FROM tab1 AS cor0
----
25
86
9

query I rowsort
SELECT ALL + ( + col0 ) * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT col0 * col2 + col2 + + 1 * + 17 * - cor0.col1 FROM tab0 AS cor0
----
-1613
-637
5833

query I rowsort
SELECT DISTINCT - - 41 + 41 FROM tab2 AS cor0
----
82

query I rowsort
SELECT - 41 + 95 * col1 AS col0 FROM tab1 AS cor0
----
1194
2429
909

query I rowsort
SELECT DISTINCT - - col0 + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - 73 + 27 * col0 * col2 + - 39 FROM tab0 cor0
----
196934
21272
833

query I rowsort
SELECT + tab0.col2 * + 8 FROM tab0
----
264
656
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * col0 col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col0 * col0 - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL 83 + col0 - + cor0.col1 AS col1 FROM tab1 AS cor0
----
137
150
60

query I rowsort
SELECT + col0 * col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5600
SELECT - ( col0 ) DIV + col2 + col1 AS col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-5600
SELECT - ( col0 ) / + col2 + col1 AS col2 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT ALL - col2 * + col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - col2 * + 32 AS col0 FROM tab0 AS cor0
----
-1056
-2624
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab0 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + 10 + + col0 AS col2 FROM tab2 AS cor0
----
17
88
89

query I rowsort
SELECT DISTINCT - + col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - col0 + - col0 + cor0.col1 FROM tab0 AS cor0
----
-87
27
38

query I rowsort
SELECT ALL - 69 AS col0 FROM tab1
----
-69
-69
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT DISTINCT - 45 + cor0.col2 DIV - tab1.col1 col2 FROM tab1, tab1 AS cor0
----
-47
-48
-49
-50
-52
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT - 45 + cor0.col2 / - tab1.col1 col2 FROM tab1, tab1 AS cor0
----
-47
-48
-49
-50
-52
-54

query I rowsort
SELECT - 90 * - col2 AS col2 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT DISTINCT - col1 * + ( - col1 ) AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL cor0.col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col2 + col2 - - col0 FROM tab0 AS cor0
----
253
37
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5613
SELECT ALL + - col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT ALL + - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + col0 * col2 * + cor0.col0 + + col2 FROM tab1 AS cor0
----
233519
514
614483

query I rowsort
SELECT ALL + col2 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT - col0 + ( col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT col1 + + col0 * ( + cor0.col2 ) - col2 AS col0 FROM tab1 AS cor0
----
134
3601
7597

query I rowsort
SELECT + - col1 * 38 * + 63 - col2 * - cor0.col0 FROM tab0 cor0
----
-205092
-210556
-232183

query I rowsort
SELECT 20 * tab0.col0 FROM tab0
----
1780
480
700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5620
SELECT - col2 DIV col1 + - col1 - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-5620
SELECT - col2 / col1 + - col1 - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + - col0 + 16 FROM tab0 AS cor0
----
-19
-73
-8

query I rowsort
SELECT ALL - col1 + 77 AS col1 FROM tab0 cor0
----
-14
-20
-9

query I rowsort
SELECT + cor0.col0 * + cor0.col2 + + col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5624
SELECT + CAST( NULL AS SIGNED ) * - 22 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-5624
SELECT + CAST ( NULL AS INTEGER ) * - 22 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 39 * - col0 AS col0 FROM tab0 AS cor0
----
-1365
-3471
-936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5626
SELECT - tab1.col2 + - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5626
SELECT - tab1.col2 + - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5627
SELECT - col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5627
SELECT - col2 / - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 + + 36 + - 52 * col0 AS col1 FROM tab2 AS cor0
----
-359
-4079
-4089

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + - col1 * - col0 * 9 col2 FROM tab0 AS cor0
----
11180
21146
64610

query I rowsort
SELECT DISTINCT - cor0.col0 * + 90 + - 13 AS col2 FROM tab2 AS cor0
----
-643
-7033
-7123

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT DISTINCT - 70 DIV col1 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - 70 / col1 AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * col0 col2 FROM tab2
----
343
3822
3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab1
----
99
99
99

query I rowsort
SELECT DISTINCT + 12 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
12

query I rowsort
SELECT - ( col0 ) * col0 * + col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT DISTINCT + 29 * + tab2.col2 AS col0 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
1102
754
783

query I rowsort
SELECT col0 * cor0.col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + col1 + 1 + col0 AS col2 FROM tab2 AS cor0
----
138
39
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5640
SELECT CAST( NULL AS SIGNED ) * 2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT CAST ( NULL AS INTEGER ) * 2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 21 + 36 AS col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT + col1 * - 85 FROM tab0 AS cor0
----
-7310
-7735
-8245

onlyif mysql # use DIV operator for integer division
query I rowsort label-5643
SELECT ALL - col1 + - cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - col1 + - cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT + - ( col0 ) * + col2 - - col0 * - col1 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT DISTINCT + ( 82 ) FROM tab2, tab2 cor0, tab1 AS cor1
----
82

query I rowsort
SELECT - col0 * + col1 + + cor0.col0 * + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 - + col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - ( + col0 ) - 53 FROM tab2 cor0
----
-131
-132
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT DISTINCT + + col1 DIV - col1 + CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT + + col1 / - col1 + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
2
63
79

query I rowsort
SELECT ALL + col2 + + col2 - + ( 6 ) FROM tab1 AS cor0
----
102
108
186

onlyif mysql # use DIV operator for integer division
query I rowsort label-5651
SELECT - col1 + cor0.col1 DIV + col1 AS col1 FROM tab0 cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5651
SELECT - col1 + cor0.col1 / + col1 AS col1 FROM tab0 cor0
----
-85
-90
-96

query I rowsort
SELECT ALL - + cor0.col1 - - col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + col0 + + col2 * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 33 + col2 * + 47 + 66 AS col1 FROM tab0 AS cor0
----
146
1650
3953

query I rowsort
SELECT ( - col0 ) - cor0.col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT ALL - 9 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - 9 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 23 * 79 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to d7765073eb47ce1dbc85f370a7ceaa0c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 46 col0 FROM tab0 AS cor0
----
1104
1610
4094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + + cor0.col1 * col1 col0 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT cor0.col0 + 25 FROM tab1 AS cor0
----
105
28
89

query I rowsort
SELECT + col0 * ( - col1 ) + - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - 38 + cor1.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4c375f5a2e769d9303e1df642d291b2f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5663
SELECT + cor0.col1 + ( + col1 ) DIV col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5663
SELECT + cor0.col1 + ( + col1 ) / col1 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( col1 ) ) + 89 col1 FROM tab2 AS cor0
----
106
120
148

onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT - 33 + col0 * cor0.col2 DIV + col1 FROM tab0 AS cor0
----
-24
-33
47

skipif mysql # not compatible
query I rowsort label-5665
SELECT - 33 + col0 * cor0.col2 / + col1 FROM tab0 AS cor0
----
-24
-33
47

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + + 5 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-15
-320
-400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5668
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - ( - col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ( - ( col1 ) ) AS col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - + 16 - - cor0.col1 FROM tab0 AS cor0
----
70
75
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5673
SELECT ALL + + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL + + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 33 AS col0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT - col0 * - ( + col2 ) + - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT DISTINCT - + 12 + col0 FROM tab1 cor0
----
-9
52
68

query I rowsort
SELECT 24 * - col0 FROM tab1 cor0
----
-1536
-1920
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5678
SELECT + CAST( ( + col1 ) AS SIGNED ) * cor0.col0 * col2 AS col2 FROM tab1 cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-5678
SELECT + CAST ( ( + col1 ) AS INTEGER ) * cor0.col0 * col2 AS col2 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT + + cor0.col0 + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + col1 * - col1 + col0 FROM tab1 cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT + 8 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5681
SELECT + 8 / col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5682
SELECT ALL - CAST( + 85 AS SIGNED ) FROM tab1 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-5682
SELECT ALL - CAST ( + 85 AS INTEGER ) FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT - 16 * - 54 + col1 FROM tab1 AS cor0
----
874
877
890

query I rowsort
SELECT DISTINCT - + col2 * 55 * cor0.col2 AS col1 FROM tab0 cor0
----
-369820
-55
-59895

query I rowsort
SELECT DISTINCT + + 94 AS col0 FROM tab2 cor0
----
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT CAST( + col2 AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-5686
SELECT CAST ( + col2 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + 64 * col2 + col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT + - ( col2 ) * 51 FROM tab2 AS cor0
----
-1326
-1377
-1938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5689
SELECT ALL CAST( 31 AS SIGNED ) * col1 FROM tab2
----
1829
527
961

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL CAST ( 31 AS INTEGER ) * col1 FROM tab2
----
1829
527
961

query I rowsort
SELECT + 11 + tab2.col2 FROM tab2
----
37
38
49

query I rowsort
SELECT ( tab2.col0 ) FROM tab1, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5692
SELECT DISTINCT - col2 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT - col2 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - 96 col2 FROM tab1 AS cor0
----
1248
2496
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5694
SELECT + col1 * - CAST( NULL AS SIGNED ) + - ( - col0 ) * col2 - col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5694
SELECT + col1 * - CAST ( NULL AS INTEGER ) + - ( - col0 ) * col2 - col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5695
SELECT - cor0.col2 DIV - 57 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5695
SELECT - cor0.col2 / - 57 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + 42 + col1 col1 FROM tab1 AS cor0
----
152
2698
3373

query I rowsort
SELECT ALL col2 * + 18 AS col0 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT DISTINCT - col1 * + 72 AS col2 FROM tab1 AS cor0
----
-1872
-720
-936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( - ( + col0 ) ) * - col0 col1 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-5700
SELECT - col2 + - cor0.col1 DIV 89 - - col0 AS col2 FROM tab0 AS cor0
----
-9
33
6

skipif mysql # not compatible
query I rowsort label-5700
SELECT - col2 + - cor0.col1 / 89 - - col0 AS col2 FROM tab0 AS cor0
----
-9
33
6

query I rowsort
SELECT DISTINCT col0 + + col1 * 57 FROM tab0
----
4926
5276
5564

query I rowsort
SELECT - col1 - - 47 * + col0 * tab2.col2 AS col2 FROM tab2
----
141077
8852
95257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5704
SELECT 42 DIV + cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5704
SELECT 42 / + cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT cor1.col1 + + 76 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 88dc1e6db3fcc04b44e0b31fbaa39f64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5706
SELECT DISTINCT col0 + + col1 DIV tab2.col0 AS col2 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT col0 + + col1 / tab2.col0 AS col2 FROM tab2
----
11
78
79

query I rowsort
SELECT DISTINCT tab2.col1 AS col0 FROM tab2, tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5708
SELECT ALL + 6 DIV col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + 6 / col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 74 * 2 + - col0 AS col2 FROM tab0 AS cor0
----
-172
-183
-237

query I rowsort
SELECT - cor2.col0 FROM tab0, tab0 cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT DISTINCT + ( + col1 ) + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + ( + col2 ) + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT 4 FROM tab0, tab1 cor0
----
4

query I rowsort
SELECT ALL + 88 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

onlyif mysql # use DIV operator for integer division
query I rowsort label-5715
SELECT - col0 DIV - col2 + - 22 FROM tab0
----
-21
-22
13

skipif mysql # not compatible
query I rowsort label-5715
SELECT - col0 / - col2 + - 22 FROM tab0
----
-21
-22
13

query I rowsort
SELECT cor1.col2 * + 96 AS col1 FROM tab2, tab1, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to ee6f66a9c21348c822154b4610538f69

query I rowsort
SELECT ALL - + 57 FROM tab2 AS cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT tab0.col1 AS col1 FROM tab0, tab2, tab0 cor0
----
86
91
97

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a

query I rowsort
SELECT ALL - col0 * 11 + 7 AS col0 FROM tab2 AS cor0
----
-70
-851
-862

query I rowsort
SELECT + col2 + + ( - 90 * col1 ) AS col2 FROM tab0 AS cor0
----
-7707
-8108
-8729

query I rowsort
SELECT DISTINCT + col1 + col0 * - ( col1 ) FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL col0 * + ( - 80 ) + - col2 FROM tab0 cor0
----
-1953
-2801
-7202

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5724
SELECT DISTINCT col1 * ( 95 ) + col0 * + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5724
SELECT DISTINCT col1 * ( 95 ) + col0 * + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col2 * col1 + ( col1 ) FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col0 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT DISTINCT - col1 + + 63 DIV col1 AS col1 FROM tab2 AS cor0
----
-14
-29
-58

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - col1 + + 63 / col1 AS col1 FROM tab2 AS cor0
----
-14
-29
-58

query I rowsort
SELECT ALL + col1 * 60 + - col0 FROM tab0 AS cor0
----
5136
5371
5785

query I rowsort
SELECT - - col0 * col1 * cor0.col2 + col0 FROM tab2 AS cor0
----
119730
51113
5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 - - 57 * cor0.col1 col1 FROM tab2 AS cor0
----
2413
2496
4039

query I rowsort
SELECT - + cor0.col1 * + col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - 78 * tab2.col2 FROM tab2
----
-2028
-2106
-2964

query I rowsort
SELECT - col2 + - ( col1 * - col1 ) FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT col2 - + 71 * - 29 AS col1 FROM tab0 AS cor0
----
2060
2092
2141

query I rowsort
SELECT - + col1 * + col0 + 94 * - col1 AS col1 FROM tab2 AS cor0
----
-10148
-2941
-3131

query I rowsort
SELECT ALL 59 AS col0 FROM tab2
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col1 ) ) col0 FROM tab2
----
17
31
59

query I rowsort
SELECT 26 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

onlyif mysql # use DIV operator for integer division
query I rowsort label-5739
SELECT ALL + col0 DIV ( 47 ) AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL + col0 / ( 47 ) AS col0 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 42 * col2 col2 FROM tab2 AS cor0
----
1141
1170
1675

query I rowsort
SELECT ALL + col1 + + ( col2 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL 57 FROM tab0
----
57
57
57

query I rowsort
SELECT ALL + col2 - 91 AS col2 FROM tab2 AS cor0
----
-53
-64
-65

query I rowsort
SELECT DISTINCT + col1 + ( - col1 * col0 ) AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + 57 * col2 col1 FROM tab0 cor0
----
1848
4592
56

query I rowsort
SELECT ALL col0 - + 2 FROM tab2 AS cor0
----
5
76
77

query I rowsort
SELECT ALL + col2 + ( + col2 * col1 ) FROM tab2 cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT 98 DIV cor0.col2 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5748
SELECT 98 / cor0.col2 AS col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL - + col2 + - col2 * + col2 * col0 FROM tab0 AS cor0
----
-26169
-36
-598518

onlyif mysql # use DIV operator for integer division
query I rowsort label-5750
SELECT DISTINCT - col1 + - 33 DIV - col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT - col1 + - 33 / - col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col0 AS REAL ) + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + ( + 99 ) * + col1 FROM tab1 cor0
----
1287
2574
990

onlyif mysql # use DIV operator for integer division
query I rowsort label-5753
SELECT DISTINCT + col1 DIV tab0.col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + col1 / tab0.col0 AS col2 FROM tab0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT - CAST( + 78 AS SIGNED ) AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to afa1a417c354fab37e0e421ec67035c7

skipif mysql # not compatible
query I rowsort label-5754
SELECT - CAST ( + 78 AS INTEGER ) AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to afa1a417c354fab37e0e421ec67035c7

query I rowsort
SELECT DISTINCT 14 FROM tab1
----
14

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT - 64 AS col0 FROM tab1
----
-64
-64
-64

query I rowsort
SELECT ( - ( col2 ) ) * 51 AS col0 FROM tab2 AS cor0
----
-1326
-1377
-1938

query I rowsort
SELECT ( ( col0 ) ) AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT + col0 * - cor0.col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT - - col2 + + col1 * ( + 69 ) * - col2 AS col0 FROM tab0 AS cor0
----
-195789
-514796
-6692

query I rowsort
SELECT ALL - col0 * 21 AS col1 FROM tab2
----
-147
-1638
-1659

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5763
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( tab2.col0 * + col0 ) FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT + cor0.col1 + col0 DIV + 10 col0 FROM tab0 AS cor0
----
100
88
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5765
SELECT + cor0.col1 + col0 / + 10 col0 FROM tab0 AS cor0
----
100
88
99

query I rowsort
SELECT - cor1.col0 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL - - col1 * - col2 * col1 + 6 * - col0 AS col1 FROM tab0 AS cor0
----
-244212
-679576
-9619

query I rowsort
SELECT - cor0.col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + 99 * col2 AS col0 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT DISTINCT - - 39 + col2 + cor0.col0 FROM tab2 AS cor0
----
143
156
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT DISTINCT - - cor0.col1 + - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5772
SELECT DISTINCT - - cor0.col1 + - col0 / + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col0 * col1 * col1 + col0 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT + - col2 - + cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5775
SELECT ALL - col0 DIV - col0 + - 84 FROM tab2 cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL - col0 / - col0 + - 84 FROM tab2 cor0
----
-83
-83
-83

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT DISTINCT + col2 + - tab0.col0 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT - + cor0.col0 + col0 * + 98 * col2 FROM tab1 AS cor0
----
15873
357440
752560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 55 * ( + col0 ) col1 FROM tab2 AS cor0
----
392
4368
4424

onlyif mysql # use DIV operator for integer division
query I rowsort label-5780
SELECT - + col0 + - col2 DIV - cor0.col0 FROM tab0 cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-5780
SELECT - + col0 + - col2 / - cor0.col0 FROM tab0 cor0
----
-23
-35
-89

query I rowsort
SELECT ALL - - col0 * col1 + col0 + + col1 FROM tab2 AS cor0
----
1439
255
4739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 * - col2 col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT cor1.col1 AS col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT 52 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT + 65 + + cor0.col0 * cor0.col1 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-533
605
936

query I rowsort
SELECT DISTINCT + col2 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - 96 AS col0 FROM tab2 cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - 7 * - col0 AS col1 FROM tab2 cor0
----
49
546
553

query I rowsort
SELECT DISTINCT - col1 - - col1 AS col0 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL cor0.col1 + + col1 * - col2 - - col0 * col1 AS col0 FROM tab2 AS cor0
----
-589
3127
714

query I rowsort
SELECT DISTINCT + - col1 + - 62 * - col2 AS col2 FROM tab2 AS cor0
----
1553
1643
2339

query I rowsort
SELECT + col1 + 98 AS col2 FROM tab2 cor0
----
115
129
157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5794
SELECT ALL - + cor0.col0 + - CAST( - col1 AS SIGNED ) * col2 col0 FROM tab1 AS cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL - + cor0.col0 + - CAST ( - col1 AS INTEGER ) * col2 col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - col2 + + 39 FROM tab0 AS cor0
----
-43
38
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5796
SELECT DISTINCT - + col0 DIV - 2 AS col2 FROM tab0 cor0
----
12
17
44

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT - + col0 / - 2 AS col2 FROM tab0 cor0
----
12
17
44

query I rowsort
SELECT - 90 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT + col1 + + col1 * cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
260
40970
83213

query I rowsort
SELECT col2 * - col1 * col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL ( - 73 ) * + col2 * + cor0.col2 FROM tab2 AS cor0
----
-105412
-49348
-53217

onlyif mysql # use DIV operator for integer division
query I rowsort label-5802
SELECT ALL + 85 DIV col1 AS col0 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL + 85 / col1 AS col0 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + - col0 * 45 - + col1 AS col1 FROM tab1 AS cor0
----
-161
-2890
-3613

onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT ( cor0.col1 ) + cor0.col0 DIV 39 FROM tab1 AS cor0
----
11
15
26

skipif mysql # not compatible
query I rowsort label-5805
SELECT ( cor0.col1 ) + cor0.col0 / 39 FROM tab1 AS cor0
----
11
15
26

query I rowsort
SELECT ALL - ( col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + + col0 * + cor0.col2 + - 34 * col2 * - col1 FROM tab2 AS cor0
----
24966
28647
54184

query I rowsort
SELECT DISTINCT - 99 - col1 * col0 FROM tab0
----
-2163
-3494
-8198

query I rowsort
SELECT + 47 + - col2 AS col2 FROM tab0 AS cor0
----
-35
14
46

query I rowsort
SELECT ALL - col2 * - col0 + col1 * col0 AS col2 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT - col2 - - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + col0 * col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT DISTINCT - 51 DIV - col0 + col0 FROM tab2 cor0
----
14
78
79

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT - 51 / - col0 + col0 FROM tab2 cor0
----
14
78
79

query I rowsort
SELECT - - col1 * + cor0.col1 + ( - col2 ) * - col2 FROM tab0 AS cor0
----
15005
8485
9410

query I rowsort
SELECT ( - col0 ) * - col1 * + col2 AS col1 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-5816
SELECT - 50 DIV + col1 col0 FROM tab1
----
-1
-3
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5816
SELECT - 50 / + col1 col0 FROM tab1
----
-1
-3
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5817
SELECT ALL CAST( 84 AS SIGNED ) - - col0 AS col2 FROM tab1
----
148
164
87

skipif mysql # not compatible
query I rowsort label-5817
SELECT ALL CAST ( 84 AS INTEGER ) - - col0 AS col2 FROM tab1
----
148
164
87

query I rowsort
SELECT + 24 + col2 FROM tab2
----
50
51
62

query I rowsort
SELECT - col1 + + cor0.col1 * - ( col0 ) - + col0 FROM tab2 cor0
----
-1439
-255
-4739

onlyif mysql # use DIV operator for integer division
query I rowsort label-5820
SELECT - 75 DIV col2 AS col1 FROM tab0 AS cor0
----
-2
-75
0

skipif mysql # not compatible
query I rowsort label-5820
SELECT - 75 / col2 AS col1 FROM tab0 AS cor0
----
-2
-75
0

query I rowsort
SELECT - 22 + tab1.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d632b3a3c7208435b2435bfe25f68784

query I rowsort
SELECT ALL + 13 + + col0 * col1 FROM tab1
----
1053
653
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5823
SELECT - 81 DIV - col0 col0 FROM tab1
----
1
1
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5823
SELECT - 81 / - col0 col0 FROM tab1
----
1
1
27

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-61

query I rowsort
SELECT ALL ( 12 ) AS col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT 75 + col0 AS col1 FROM tab0 AS cor0
----
110
164
99

query I rowsort
SELECT DISTINCT - - col1 + col2 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT + 1 DIV + ( + col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT + 1 / + ( + col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * ( col2 + col2 * + 80 ) AS col2 FROM tab1
----
-236196
-263169
-746496

query I rowsort
SELECT ALL + 52 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab2, tab1 AS cor0
----
13

query I rowsort
SELECT col2 * + 33 * 81 + + col2 FROM tab2
----
101612
69524
72198

query I rowsort
SELECT ALL - ( - 14 ) FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT 88 * cor0.col0 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT DISTINCT col1 * col2 + - cor0.col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT + + col0 * + col1 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT ALL - col0 + - col2 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - col0 + - col2 / - col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 57 * - col0 FROM tab0 AS cor0
----
-1368
-1995
-5073

query I rowsort
SELECT - 30 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT ALL + 88 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
1240
2342
937

query I rowsort
SELECT col2 * 54 AS col1 FROM tab0 AS cor0
----
1782
4428
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT DISTINCT + ( - col1 ) DIV col1 + 2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT + ( - col1 ) / col1 + 2 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - - ( - col1 ) + cor0.col1 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - 57 * - 46 + col1 * cor0.col2 FROM tab1 AS cor0
----
3192
3870
4026

query I rowsort
SELECT DISTINCT 10 * + col1 - col1 FROM tab2 cor0
----
153
279
531

query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT - col0 + col2 * - 53 FROM tab2 AS cor0
----
-1438
-1456
-2093

query I rowsort
SELECT 45 * - 66 + col1 AS col1 FROM tab0 AS cor0
----
-2873
-2879
-2884

query I rowsort
SELECT + - 62 * - 61 + col2 AS col2 FROM tab2 AS cor0
----
3808
3809
3820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5851
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( col0 ) col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - + col1 + - 88 FROM tab2 AS cor0
----
-105
-119
-147

query I rowsort
SELECT + + col2 + 30 * col2 FROM tab0 AS cor0
----
1023
2542
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5855
SELECT ALL CAST( NULL AS SIGNED ) + - 38 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL CAST ( NULL AS INTEGER ) + - 38 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT 57 * 33 AS col1 FROM tab1 cor0
----
1881
1881
1881

query I rowsort
SELECT - 9 * col2 - col2 * - 83 * col2 FROM tab2 AS cor0
----
119510
55874
60264

onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT col1 DIV + col0 + + col1 AS col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-5860
SELECT col1 / + col0 + + col1 AS col1 FROM tab0 AS cor0
----
89
92
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT + + 42 - cor0.col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
38
41
42

skipif mysql # not compatible
query I rowsort label-5861
SELECT + + 42 - cor0.col0 / + col1 AS col2 FROM tab2 AS cor0
----
38
41
42

query I rowsort
SELECT DISTINCT - 57 FROM tab2, tab2 AS cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5864
SELECT ALL + col2 DIV + cor0.col2 - + col1 * col1 * col2 FROM tab0 AS cor0
----
-244067
-679041
-9408

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL + col2 / + cor0.col2 - + col1 * col1 * col2 FROM tab0 AS cor0
----
-244067
-679041
-9408

query I rowsort
SELECT + - col0 * 58 * col1 AS col1 FROM tab0 AS cor0
----
-119712
-196910
-469742

query I rowsort
SELECT DISTINCT + col2 * - col2 - + cor0.col1 AS col0 FROM tab2 cor0
----
-1461
-735
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5867
SELECT col0 * CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5867
SELECT col0 * CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 93 AS col0 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT - cor0.col0 * col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + 20 + col2 * - 94 FROM tab1 cor0
----
-5096
-5378
-9044

query I rowsort
SELECT - 38 * - cor0.col2 * 4 FROM tab1 cor0
----
14592
8208
8664

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT ALL 51 DIV ( - col0 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT ALL 51 / ( - col0 ) FROM tab0
----
-1
-2
0

query I rowsort
SELECT ALL - 2 AS col1 FROM tab1
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * + 27 col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to ef08cb6e02c9e232e76aa8599b3fe96d

query I rowsort
SELECT ALL + col0 * tab1.col0 * - col0 FROM tab1
----
-262144
-27
-512000

query I rowsort
SELECT 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL col2 + 80 * 94 FROM tab0 AS cor0
----
7521
7553
7602

query I rowsort
SELECT col2 + + 46 FROM tab0 AS cor0
----
128
47
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT ALL - - col0 DIV 98 + 88 + col0 * 4 AS col0 FROM tab1 AS cor0
----
100
344
408

skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL - - col0 / 98 + 88 + col0 * 4 AS col0 FROM tab1 AS cor0
----
100
344
408

query I rowsort
SELECT + + cor0.col1 + ( col2 ) * - col0 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT ALL + - cor0.col0 DIV col0 + - 69 AS col0 FROM tab0 cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + - cor0.col0 / col0 + - 69 AS col0 FROM tab0 cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + col2 * + 19 FROM tab2 AS cor0
----
494
513
722

query I rowsort
SELECT + col1 * ( + col1 * + col1 ) FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT - col0 * + 31 AS col2 FROM tab0 AS cor0
----
-1085
-2759
-744

query I rowsort
SELECT DISTINCT + - col2 + - cor0.col1 * - col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT col2 + - col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + col0 * + 64 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT - ( col0 + ( + col0 ) * col0 ) FROM tab0
----
-1260
-600
-8010

query I rowsort
SELECT - col0 * + col1 - tab1.col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT + col1 * + col1 + + col0 AS col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT + tab0.col1 + - tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col0 + - ( col1 ) AS col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT + ( - col2 ) + - col2 AS col0 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
-5

query I rowsort
SELECT 73 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT DISTINCT - 2 + + col0 FROM tab1
----
1
62
78

query I rowsort
SELECT ALL - col0 * col2 * - col2 + + 85 + col1 AS col0 FROM tab2
----
114178
5219
52872

query I rowsort
SELECT ALL + col1 + - tab0.col0 * tab0.col0 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT + col0 - + col2 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT - - col0 - + col1 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - + 82 + cor0.col0 FROM tab0 AS cor0
----
-47
-58
7

query I rowsort
SELECT - col0 * - col2 + + col1 AS col1 FROM tab0 cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col0 col0 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col1 col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + 47 * - cor0.col0 + 65 * - col2 AS col1 FROM tab1 AS cor0
----
-10000
-3651
-6713

query I rowsort
SELECT - + col2 * cor0.col1 + cor0.col0 - 70 FROM tab2 AS cor0
----
-1526
-637
-900

query I rowsort
SELECT ALL - col0 + - col0 - ( + col0 ) FROM tab2
----
-21
-234
-237

query I rowsort
SELECT ALL col0 - tab2.col1 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT + col1 + + col1 + col2 * col0 AS col1 FROM tab1 AS cor0
----
214
3668
7706

query I rowsort
SELECT ALL + + cor0.col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT col1 + 20 FROM tab2 AS cor0
----
37
51
79

query I rowsort
SELECT col2 + col1 + + col0 FROM tab1
----
131
189
83

query I rowsort
SELECT - col1 + - col1 * - 46 AS col1 FROM tab2
----
1395
2655
765

query I rowsort
SELECT DISTINCT - cor1.col1 * + cor0.col0 + - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60317a0572e439a71f01763226d17557

query I rowsort
SELECT + ( col1 + + col0 ) * 87 FROM tab2
----
11919
3306
8352

query I rowsort
SELECT col0 * - 18 FROM tab2
----
-126
-1404
-1422

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 + - col1 col0 FROM tab0
----
-174
-179
-185

query I rowsort
SELECT + tab1.col0 * - tab1.col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT col0 + + col1 * + col2 AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL - col0 + + ( - col2 ) * 14 AS col1 FROM tab2 AS cor0
----
-385
-442
-611

query I rowsort
SELECT - 27 + - col1 AS col0 FROM tab2 AS cor0
----
-44
-58
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5924
SELECT ALL - CAST( NULL AS SIGNED ) + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col2 col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + 46 + - col0 * col2 FROM tab1 AS cor0
----
-116
-3602
-7634

query I rowsort
SELECT ALL + + ( col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + 42 * col0 FROM tab1 cor0
----
126
2688
3360

query I rowsort
SELECT col2 + + 50 FROM tab2 AS cor0
----
76
77
88

query I rowsort
SELECT ALL - col1 + 35 * col1 * col0 FROM tab1 AS cor0
----
22390
2704
36387

query I rowsort
SELECT tab0.col2 + + col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL 99 * col0 + 95 + - col2 FROM tab0 AS cor0
----
2438
3559
8824

query I rowsort
SELECT DISTINCT + col1 - col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - - col0 * cor0.col2 + + 35 FROM tab0 AS cor0
----
70
7333
827

onlyif mysql # use DIV operator for integer division
query I rowsort label-5935
SELECT ALL col0 DIV col1 + 3 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL col0 / col1 + 3 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5936
SELECT DISTINCT + - col1 * - col2 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT + - col1 * - col2 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL col1 + ( col2 ) * col1 FROM tab2 cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT ALL + col1 DIV col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL + col1 / col1 AS col2 FROM tab0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5940
SELECT - CAST( 97 AS SIGNED ) * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8f7e2733aed043d21bbb8bab0f35e60f

skipif mysql # not compatible
query I rowsort label-5940
SELECT - CAST ( 97 AS INTEGER ) * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8f7e2733aed043d21bbb8bab0f35e60f

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + + CAST ( ( - col2 ) AS REAL ) * col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + - col2 + - col0 * 14 FROM tab0 AS cor0
----
-1328
-369
-491

query I rowsort
SELECT + ( 36 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + + col1 + 7 * col2 FROM tab1 AS cor0
----
404
409
685

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1
----
-24
-35
-89

query I rowsort
SELECT - col1 + 58 * + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
10931
117565
174099

query I rowsort
SELECT DISTINCT - - col1 + ( col0 ) * col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT DISTINCT - + col2 * CAST( + col1 AS SIGNED ) - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT - + col2 * CAST ( + col1 AS INTEGER ) - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + - col2 + col0 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL - + col1 + - ( - col2 ) FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT - col2 * 27 AS col1 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT + cor0.col0 + + col2 * cor0.col2 * col2 FROM tab0 AS cor0
----
35961
36
551457

query I rowsort
SELECT + col2 + - col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - col2 * - 84 * col0 FROM tab2
----
15876
170352
252168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 15 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT + + ( 19 ) FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT 7 AS col1 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab2
----
91

query I rowsort
SELECT ALL ( - col0 ) - + col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT ALL - cor0.col1 DIV + col2 - ( col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - cor0.col1 / + col2 - ( col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT 50 DIV - col0 AS col0 FROM tab1 AS cor0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-5962
SELECT 50 / - col0 AS col0 FROM tab1 AS cor0
----
-16
0
0

query I rowsort
SELECT DISTINCT 93 * + col1 FROM tab0
----
7998
8463
9021

query I rowsort
SELECT + 78 * - col1 AS col2 FROM tab1
----
-1014
-2028
-780

query I rowsort
SELECT + 59 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT 26 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT DISTINCT + ( + 61 ) * col2 FROM tab0
----
2013
5002
61

query I rowsort
SELECT + 89 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL 69 * col0 * - col1 FROM tab2 cor0
----
-14973
-317538
-92667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + - 46 col1 FROM tab0
----
24

query I rowsort
SELECT tab1.col2 + col1 AS col0 FROM tab1
----
109
67
80

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

query I rowsort
SELECT ALL + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT 19 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5974
SELECT 19 / col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 76 * + col1 AS col1 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT col1 * - 77 - col0 * col2 FROM tab0
----
-14305
-7414
-7504

query I rowsort
SELECT DISTINCT + col0 * - col0 + - ( col1 * + col2 ) FROM tab2
----
-6887
-7618
-886

query I rowsort
SELECT - col2 * - ( 73 ) AS col2 FROM tab2
----
1898
1971
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-5979
SELECT col2 DIV 79 - + col0 * - col0 FROM tab1 AS cor0
----
4096
6401
9

skipif mysql # not compatible
query I rowsort label-5979
SELECT col2 / 79 - + col0 * - col0 FROM tab1 AS cor0
----
4096
6401
9

query I rowsort
SELECT - col1 + + ( 76 + col0 ) AS col1 FROM tab0 cor0
----
14
14
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT col1 DIV - 52 + - col0 DIV + col0 + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5981
SELECT col1 / - 52 + - col0 / + col0 + col1 AS col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT 74 * col2 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT 36 + - 10 + col0 FROM tab1 AS cor0
----
106
29
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5984
SELECT CAST( NULL AS SIGNED ) * col2 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5984
SELECT CAST ( NULL AS INTEGER ) * col2 + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5985
SELECT + - 30 DIV - col0 FROM tab1 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-5985
SELECT + - 30 / - col0 FROM tab1 AS cor0
----
0
0
10

query I rowsort
SELECT - - 31 + + col1 * col2 FROM tab1 AS cor0
----
1279
1435
601

query I rowsort
SELECT ALL - col0 * + 59 AS col2 FROM tab0
----
-1416
-2065
-5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col0 FROM tab1, tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT 88 * - col0 + - col1 FROM tab1 cor0
----
-290
-5642
-7053

query I rowsort
SELECT ALL + + ( col1 ) * + col2 + ( col2 ) * col2 AS col2 FROM tab1 AS cor0
----
10464
3819
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5991
SELECT DISTINCT - 0 DIV col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT - 0 / col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - 70 + - col0 AS col0 FROM tab0 AS cor0
----
-1704
-2485
-6319

query I rowsort
SELECT + 73 * + col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT DISTINCT ( ( col1 ) ) + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5995
SELECT ( + col1 ) * col2 + CAST( 10 AS SIGNED ) FROM tab0 AS cor0
----
107
2848
7472

skipif mysql # not compatible
query I rowsort label-5995
SELECT ( + col1 ) * col2 + CAST ( 10 AS INTEGER ) FROM tab0 AS cor0
----
107
2848
7472

query I rowsort
SELECT - ( tab1.col1 ) - col0 AS col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL col1 * + col2 + - tab2.col2 AS col0 FROM tab2
----
1508
608
810

query I rowsort
SELECT - 30 * 36 + + col2 AS col2 FROM tab1 AS cor0
----
-1023
-1026
-984

query I rowsort
SELECT DISTINCT + - ( - col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT - cor0.col1 DIV + 93 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6000
SELECT - cor0.col1 / + 93 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6001
SELECT ( - col2 ) DIV - col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6001
SELECT ( - col2 ) / - col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + ( col1 ) * col1 + - col2 - col1 FROM tab2 cor0
----
234
3396
903

query I rowsort
SELECT ALL cor0.col0 - + col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + + 33 + 28 FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT + - col0 * + cor0.col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + ( col0 ) AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + 73 + col1 FROM tab1 AS cor0
----
83
86
99

query I rowsort
SELECT DISTINCT - 90 * col2 - col2 FROM tab0 AS cor0
----
-3003
-7462
-91

query I rowsort
SELECT ALL 40 + cor0.col0 * + 61 FROM tab0 AS cor0
----
1504
2175
5469

onlyif mysql # use DIV operator for integer division
query I rowsort label-6010
SELECT - - col0 * col1 + + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
1345
217
4602

skipif mysql # not compatible
query I rowsort label-6010
SELECT - - col0 * col1 + + col2 / col1 AS col1 FROM tab2 AS cor0
----
1345
217
4602

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab0 AS cor0
----
-73

query I rowsort
SELECT ALL + - 77 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-42
-53
12

query I rowsort
SELECT DISTINCT + col1 + - col0 * 6 AS col2 FROM tab2 cor0
----
-11
-409
-457

query I rowsort
SELECT ALL - 68 + col0 FROM tab2 AS cor0
----
-61
10
11

query I rowsort
SELECT + col2 + ( - tab0.col1 ) - + tab0.col0 FROM tab0
----
-131
-77
-98

query I rowsort
SELECT ALL + col0 + - 83 AS col0 FROM tab2
----
-4
-5
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6017
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6017
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 52 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6019
SELECT ALL + col1 + tab0.col0 DIV - col1 col2 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL + col1 + tab0.col0 / - col1 col2 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + + cor0.col1 * - ( + 6 ) FROM tab1 AS cor0
----
-156
-60
-78

query I rowsort
SELECT DISTINCT + + cor0.col2 * + ( + 9 ) FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT + col0 + 1 + + col2 FROM tab0 AS cor0
----
172
37
58

query I rowsort
SELECT + - col2 + - col1 * + col0 - col2 AS col1 FROM tab2 AS cor0
----
-1419
-271
-4654

query I rowsort
SELECT DISTINCT col1 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - - col0 - + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 - ( col1 + - col1 ) * 46 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + cor0.col2 * 52 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT DISTINCT col0 * col1 * 5 FROM tab2 AS cor0
----
1085
23010
6715

query I rowsort
SELECT col1 + + 95 AS col0 FROM tab2
----
112
126
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-6030
SELECT ALL tab1.col0 - col2 DIV - col2 AS col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL tab1.col0 - col2 / - col2 AS col2 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT - - col1 * - col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col2 * ( + col1 * col0 ) + 94 FROM tab0
----
3489
664212
68206

query I rowsort
SELECT col0 * ( col1 ) + cor0.col1 - + 50 FROM tab1 AS cor0
----
1003
54
600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6034
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6034
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + col0 + tab0.col1 * + col2 * + tab0.col2 AS col2 FROM tab0
----
132
611973
93678

onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT ALL - col1 DIV - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL - col1 / - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - col0 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT - + cor0.col2 * - 79 FROM tab1 cor0
----
4266
4503
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6040
SELECT DISTINCT + - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT + - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col0 * + col0 * 43 AS col1 FROM tab1 AS cor0
----
-176128
-275200
-387

query I rowsort
SELECT ALL col0 * + ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6044
SELECT col0 DIV ( 91 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6044
SELECT col0 / ( 91 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * + 92 FROM tab1 cor0
----
-4968
-5244
-8832

onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT - col0 DIV ( + 59 * - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6046
SELECT - col0 / ( + 59 * - col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - 58 ) FROM tab0, tab1 AS cor0
----
-58

query I rowsort
SELECT - 46 - + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1580
-692
-883

query I rowsort
SELECT DISTINCT - + col2 + 70 FROM tab1 cor0
----
-26
13
16

query I rowsort
SELECT DISTINCT tab1.col2 * + 45 AS col2 FROM tab1, tab0 AS cor0
----
2430
2565
4320

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 * col1 col0 FROM tab2
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT col0 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT tab2.col1 + - tab2.col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 + - col0 * col1 * - col1 AS col1 FROM tab1
----
13424
1974
6343

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL - col1 * - col0 - tab2.col0 * + col0 FROM tab2
----
-1482
-4898
168

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT - col0 * col1 - col2 * - tab1.col2 AS col1 FROM tab1
----
2609
2838
8176

query I rowsort
SELECT col2 + + col0 + col1 * col0 AS col0 FROM tab2
----
1460
251
4706

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + col0 * - col1 * col0 AS col0 FROM tab1
----
-234
-40960
-83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 * col0 col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + ( cor0.col1 ) AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6066
SELECT - col1 * tab1.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT - col1 * tab1.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - tab0.col1 + - 20 * tab0.col2 AS col0 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 44562a26652762db908bacd4f1595801

query I rowsort
SELECT ALL col2 * tab1.col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - 25 + col1 + + col0 FROM tab0 AS cor0
----
107
155
85

query I rowsort
SELECT ALL + 94 AS col1 FROM tab1 AS cor0
----
94
94
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT ALL col0 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL col0 + col2 / col0 AS col1 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT ALL - 37 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT - 13 + col1 DIV - 92 AS col1 FROM tab0 cor0
----
-13
-13
-14

skipif mysql # not compatible
query I rowsort label-6074
SELECT - 13 + col1 / - 92 AS col1 FROM tab0 cor0
----
-13
-13
-14

query I rowsort
SELECT - 0 * col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6076
SELECT DISTINCT - + cor0.col1 DIV - col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT - + cor0.col1 / - col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT 69 + + col0 * col1 FROM tab2 AS cor0
----
1412
286
4671

query I rowsort
SELECT DISTINCT ( col0 ) - 51 AS col0 FROM tab0 AS cor0
----
-16
-27
38

query I rowsort
SELECT DISTINCT + 72 + col0 AS col0 FROM tab0 AS cor0
----
107
161
96

query I rowsort
SELECT - cor0.col2 * col1 + cor0.col1 * 44 FROM tab0 AS cor0
----
-3458
4171
946

query I rowsort
SELECT + col1 + 37 * + col1 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT DISTINCT - col0 * ( ( - tab2.col0 ) ) AS col1 FROM tab2
----
49
6084
6241

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 1713adaf687595322d888d4eeefdbbc8

query I rowsort
SELECT ALL 7 AS col0 FROM tab2
----
7
7
7

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab0
----
86
91
97

query I rowsort
SELECT 42 + 37 AS col2 FROM tab1 cor0
----
79
79
79

query I rowsort
SELECT + - col2 * - cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - 14 + col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
157
22
43

query I rowsort
SELECT col1 - + col2 * + cor0.col2 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6090
SELECT + 80 * - col2 - + col2 * CAST( col0 + cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-3078
-4784
-7486

skipif mysql # not compatible
query I rowsort label-6090
SELECT + 80 * - col2 - + col2 * CAST ( col0 + cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-3078
-4784
-7486

query I rowsort
SELECT DISTINCT + col1 * - 35 + col0 AS col0 FROM tab2 cor0
----
-1078
-1987
-516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col1 col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( col0 ) ) * col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - 0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + cor0.col0 * - col2 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT col2 * - col1 * - 59 + - 5 AS col2 FROM tab1 AS cor0
----
33625
73627
82831

query I rowsort
SELECT - tab0.col2 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * 98 col2 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 955a20ecd6f2a10a9bc6a1cf70f173e7

query I rowsort
SELECT DISTINCT tab1.col1 + 62 * - col0 FROM tab1
----
-160
-3958
-4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + - col0 col2 FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 68 AS col0 FROM tab2
----
68
68
68

query I rowsort
SELECT ALL col2 * tab0.col1 * + col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT - col2 + + tab2.col2 * + col0 * tab2.col2 FROM tab2
----
114038
5076
52702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab0, tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT DISTINCT + col2 DIV col0 + col2 + col2 DIV + tab0.col1 AS col0 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT + col2 / col0 + col2 + col2 / + tab0.col1 AS col0 FROM tab0
----
1
34
82

query I rowsort
SELECT DISTINCT tab1.col2 + col0 + + col0 AS col1 FROM tab1
----
185
256
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6108
SELECT ALL + ( col2 ) DIV + col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL + ( col2 ) / + col0 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT col0 DIV 21 FROM tab0
----
1
1
4

skipif mysql # not compatible
query I rowsort label-6109
SELECT col0 / 21 FROM tab0
----
1
1
4

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT ALL + + 6 AS col1 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT - + cor0.col1 * col0 - - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6113
SELECT CAST( 7 AS SIGNED ) FROM tab1
----
7
7
7

skipif mysql # not compatible
query I rowsort label-6113
SELECT CAST ( 7 AS INTEGER ) FROM tab1
----
7
7
7

query I rowsort
SELECT - 24 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-240
-312
-624

query I rowsort
SELECT cor0.col1 + col1 * - col0 * - col2 AS col0 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT ALL 0 * col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col2 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - 71 * cor0.col1 + + col1 AS col1 FROM tab0 cor0
----
-6020
-6370
-6790

query I rowsort
SELECT col0 * cor0.col1 - col2 * cor0.col2 FROM tab2 AS cor0
----
-101
-512
3926

query I rowsort
SELECT - ( col1 ) * col0 + + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6121
SELECT + - cor0.col1 DIV - col0 + - col1 * col1 col1 FROM tab1 AS cor0
----
-100
-169
-668

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6121
SELECT + - cor0.col1 / - col0 + - col1 * col1 col1 FROM tab1 AS cor0
----
-100
-169
-668

onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT + cor0.col0 + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6122
SELECT + cor0.col0 + col2 / + col0 AS col2 FROM tab1 AS cor0
----
21
64
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + + col1 <= col0
----
7
31
27

query I rowsort
SELECT col1 * + tab1.col1 + col1 + + col0 AS col0 FROM tab1
----
174
262
705

query I rowsort
SELECT + col1 * - col0 * - tab0.col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT tab0.col2 * col0 + + col0 + col0 AS col0 FROM tab0
----
105
7476
840

query I rowsort
SELECT col0 * - tab0.col0 + + col2 FROM tab0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT ALL tab2.col2 DIV - col0 col0 FROM tab2
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL tab2.col2 / - col0 col0 FROM tab2
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6129
SELECT ALL - col2 + col0 + col0 * col0 DIV col2 FROM tab0
----
103
1259
8

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - col2 + col0 + col0 * col0 / col2 FROM tab0
----
103
1259
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6130
SELECT DISTINCT tab0.col2 DIV + col2 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT tab0.col2 / + col2 AS col0 FROM tab0
----
1

query I rowsort
SELECT col0 + + cor0.col0 + + col2 * + cor0.col1 FROM tab1 AS cor0
----
1408
1410
698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + col1 col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT col2 * + col1 * - col2 AS col0 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6134
SELECT - col0 DIV + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-6134
SELECT - col0 / + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-70
-90

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 > ( - col2 )
----

query I rowsort
SELECT + tab2.col0 FROM tab2 WHERE NOT ( + col2 * col0 * col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * + col1 * + tab2.col0 AS col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT col1 * - tab1.col0 + col0 FROM tab1
----
-576
-75
-960

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IN ( - tab2.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * - col0 + col2 col0 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT ALL col1 + tab1.col2 * - col1 + - col1 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT col0 * col1 DIV col2 + col1 + - col1 FROM tab1
----
1
10
11

skipif mysql # not compatible
query I rowsort label-6143
SELECT col0 * col1 / col2 + col1 + - col1 FROM tab1
----
1
10
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6144
SELECT DISTINCT + col0 DIV + col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + col0 / + col2 AS col2 FROM tab0
----
0
1
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT DISTINCT col0 DIV col1 AS col0 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT col0 / col1 AS col0 FROM tab2
----
0
1
4

query I rowsort
SELECT - col0 FROM tab2 WHERE + col1 IN ( tab2.col2 * col0 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + tab2.col1 + + col0 * + col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL col1 + cor0.col2 * - col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 + col0 AS col2 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT ALL col1 * col0 * + col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT col0 * col0 FROM tab0 AS cor0 WHERE NOT NULL >= cor0.col0 OR NULL IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT DISTINCT + + col2 DIV - col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT + + col2 / - col0 FROM tab2 AS cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * + col0 col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + col0 + - col0 * cor0.col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + col2 - - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 AS col2 FROM tab2 cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
3
64
80

query I rowsort
SELECT col1 * col0 + - col1 * col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT col1 + + col0 * + tab2.col1 DIV col1 AS col2 FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6161
SELECT col1 + + col0 * + tab2.col1 / col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab2
----
-36

query I rowsort
SELECT 17 AS col2 FROM tab1
----
17
17
17

query I rowsort
SELECT - ( col2 ) * - col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT cor1.col0 + + 70 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to cc99a7300da6688a14e6195233612581

onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT DISTINCT - CAST( - 12 AS SIGNED ) * col1 - + 18 DIV - col0 AS col0 FROM tab1 AS cor0
----
120
156
318

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT - CAST ( - 12 AS INTEGER ) * col1 - + 18 / - col0 AS col0 FROM tab1 AS cor0
----
120
156
318

query I rowsort
SELECT DISTINCT - 79 * ( col0 * - ( - 74 ) ) AS col1 FROM tab1 AS cor0
----
-17538
-374144
-467680

query I rowsort
SELECT + + col1 * - col2 * + col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL col1 * col2 - + col1 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * - 92 col2 FROM tab1 cor0
----
-8004
-8004
-8004

query I rowsort
SELECT - cor0.col1 + 8 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to be73e69e0c1103dfdec1899aebd9abb7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT ALL - col1 DIV + col0 - - col1 * col0 col2 FROM tab2 AS cor0
----
1343
213
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - col1 / + col0 - - col1 * col0 col2 FROM tab2 AS cor0
----
1343
213
4602

query I rowsort
SELECT + col1 + - col0 AS col0 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + - col0 + - col1 * col1 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT DISTINCT + - col1 DIV + cor0.col2 - + ( - col0 + col2 ) FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT + - col1 / + cor0.col2 - + ( - col0 + col2 ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - + col0 + col1 * col1 FROM tab1 AS cor0
----
36
673
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + 40 FROM tab0, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT - col1 * col1 + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT 93 FROM tab2 cor0
----
93
93
93

query I rowsort
SELECT + col0 * col0 - - col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT - col2 * + col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + cor0.col2 + ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col0 + - cor0.col2 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6187
SELECT ALL - - col2 * ( col0 ) + + col0 * CAST( NULL AS SIGNED ) - - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL - - col2 * ( col0 ) + + col0 * CAST ( NULL AS INTEGER ) - - col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT DISTINCT + - col2 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT + - col2 / + col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL + + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + col1 + 99 AS col2 FROM tab0 AS cor0
----
185
190
196

query I rowsort
SELECT DISTINCT - - col0 + + 26 - col1 AS col2 FROM tab2 AS cor0
----
2
45
88

query I rowsort
SELECT col2 * col1 + - 14 FROM tab0 AS cor0
----
2824
7448
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6193
SELECT ALL - col0 DIV col2 + - cor0.col2 FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL - col0 / col2 + - cor0.col2 FROM tab1 AS cor0
----
-54
-58
-96

query I rowsort
SELECT + col1 + + col0 * - col2 - col1 * col1 * ( - col2 ) FROM tab2
----
25789
7997
88537

query I rowsort
SELECT - col0 * + ( col2 ) + - cor0.col2 AS col0 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL + col0 + tab1.col2 FROM tab1
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6197
SELECT DISTINCT - tab1.col0 + - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - tab1.col0 + - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + ( + col2 ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col0 * - ( - col2 + - col0 ) FROM tab0
----
1260
1368
15219

query I rowsort
SELECT - 37 - col2 * col0 FROM tab2 AS cor0
----
-2065
-226
-3039

query I rowsort
SELECT + - ( 89 ) * + cor0.col1 + 95 FROM tab1 AS cor0
----
-1062
-2219
-795

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6202
SELECT - + CAST( NULL AS DECIMAL ) * 37 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6202
SELECT - + CAST ( NULL AS REAL ) * 37 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 6 + + col0 FROM tab0 AS cor0
----
30
41
95

query I rowsort
SELECT 97 + + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
259
3745
7777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 * - col1 + + col0 + col2 * - col1 col0 FROM tab2
----
-1295
-2341
-822

query I rowsort
SELECT col0 * + 56 AS col0 FROM tab2 cor0
----
392
4368
4424

onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT - col1 + col2 DIV col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-6207
SELECT - col1 + col2 / col1 FROM tab1 AS cor0
----
-24
-5
-6

query I rowsort
SELECT ALL - col2 * 79 AS col1 FROM tab1
----
-4266
-4503
-7584

query I rowsort
SELECT col2 * - ( col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL cor0.col2 + col0 * + ( cor0.col0 ) + col2 FROM tab2 AS cor0
----
103
6136
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-6212
SELECT col1 * col1 DIV col1 AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6212
SELECT col1 * col1 / col1 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT col1 + col1 + col2 AS col2 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT DISTINCT + - col1 + - 17 AS col1 FROM tab0 AS cor0
----
-103
-108
-114

query I rowsort
SELECT ALL - ( cor0.col2 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT 5 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

query I rowsort
SELECT + col2 * ( + col0 ) + - col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6218
SELECT col0 DIV + col0 + - col0 + col2 FROM tab1 AS cor0
----
-6
17
52

skipif mysql # not compatible
query I rowsort label-6218
SELECT col0 / + col0 + - col0 + col2 FROM tab1 AS cor0
----
-6
17
52

query I rowsort
SELECT - col1 + - cor0.col1 * 91 FROM tab2 AS cor0
----
-1564
-2852
-5428

query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL + col1 * col0 + + col1 * + 16 AS col1 FROM tab2 AS cor0
----
1615
5546
713

query I rowsort
SELECT ALL + col2 + col1 * ( - col2 * - col1 + - col2 ) AS col1 FROM tab0 cor0
----
241263
671662
9313

onlyif mysql # use DIV operator for integer division
query I rowsort label-6223
SELECT DISTINCT + 70 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + 70 / + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT - 92 - col2 FROM tab2 cor0
----
-118
-119
-130

query I rowsort
SELECT 21 + col0 * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-1107
-469
-7809

query I rowsort
SELECT col1 * col0 - + 77 * + col0 AS col2 FROM tab2 AS cor0
----
-1404
-322
-4740

query I rowsort
SELECT ALL + col1 + cor0.col0 * + col1 AS col2 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT + 22 * 23 AS col0 FROM tab2, tab1 AS cor0
----
506

query I rowsort
SELECT cor0.col2 * 32 FROM tab2 AS cor0
----
1216
832
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - col0 + + 9 + col1 AS col1 FROM tab2 AS cor0
----
-10
-53
33

query I rowsort
SELECT + cor0.col0 + + ( + col1 * cor0.col2 ) + 92 FROM tab1 AS cor0
----
1420
1499
726

query I rowsort
SELECT 71 * + col2 - + ( + col1 * col1 + ( tab1.col0 ) ) FROM tab1
----
3155
3883
6567

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6234
SELECT ALL - col2 / - CAST( NULL AS SIGNED ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL - col2 / - CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 64 ) FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - 87 * + col2 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT ( ( - col0 ) ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ( col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 87 col0 FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT ALL 91 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT - + col1 + 16 FROM tab2 AS cor0
----
-1
-15
-43

query I rowsort
SELECT + 28 * - col2 AS col1 FROM tab2 cor0
----
-1064
-728
-756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6243
SELECT ALL + CAST( NULL AS SIGNED ) * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL + CAST ( NULL AS INTEGER ) * - cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 62 * col1 * + col0 AS col0 FROM tab1 AS cor0
----
39680
4836
64480

query I rowsort
SELECT + col2 * - col1 + + ( col0 ) + col0 FROM tab0 AS cor0
----
-27
-2790
-7284

query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6247
SELECT - + CAST( NULL AS SIGNED ) * 97 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT - + CAST ( NULL AS INTEGER ) * 97 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT + 31 AS col0 FROM tab2
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + cor0.col0 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6251
SELECT ( - col0 ) DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6251
SELECT ( - col0 ) / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6252
SELECT + col0 + + col1 * col1 DIV 73 AS col0 FROM tab2 AS cor0
----
125
20
82

skipif mysql # not compatible
query I rowsort label-6252
SELECT + col0 + + col1 * col1 / 73 AS col0 FROM tab2 AS cor0
----
125
20
82

query I rowsort
SELECT + col0 * + col1 * col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + col2 + - col0 * ( - col2 * - col1 ) FROM tab2
----
-119626
-50996
-5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-6255
SELECT DISTINCT 51 * col2 + + col2 DIV + 63 AS col1 FROM tab0
----
1683
4183
51

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT 51 * col2 + + col2 / + 63 AS col1 FROM tab0
----
1683
4183
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT DISTINCT + 55 + - col2 DIV + 44 FROM tab1
----
53
54

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + 55 + - col2 / + 44 FROM tab1
----
53
54

query I rowsort
SELECT ALL - 36 + + col0 * col1 AS col0 FROM tab0 cor0
----
2028
3359
8063

query I rowsort
SELECT ALL - cor1.col1 + cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a8817a735e8dbbbc251a641bfd8651b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6259
SELECT DISTINCT - + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - + col2 / col1 AS col2 FROM tab0 AS cor0
----
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT ALL + col1 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + col1 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col2 + - cor0.col2 * 29 FROM tab0 AS cor0
----
-2460
-30
-990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + + 32 + col1 col2 FROM tab1
----
220
3690
7725

query I rowsort
SELECT DISTINCT col2 * + col2 + - 47 AS col1 FROM tab1
----
2869
3202
9169

query I rowsort
SELECT + tab2.col2 + + 21 FROM tab2
----
47
48
59

query I rowsort
SELECT DISTINCT col2 + col1 * + col0 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - col1 + ( + col0 ) * col0 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT ALL col1 + - 12 FROM tab1
----
-2
1
14

query I rowsort
SELECT ALL + 89 * - col2 AS col2 FROM tab2 AS cor0
----
-2314
-2403
-3382

query I rowsort
SELECT - col1 * ( col0 * col1 ) AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col0 FROM tab0 AS cor0
----
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6272
SELECT + CAST( col1 AS SIGNED ) * col0 AS col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6272
SELECT + CAST ( col1 AS INTEGER ) * col0 AS col0 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 81 * col2 col1 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT ALL - - col1 * col0 + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6275
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + col2 + - col0 * col1 * col2 FROM tab2 AS cor0
----
-119685
-51013
-5863

query I rowsort
SELECT ALL + 12 * + col0 FROM tab1 AS cor0
----
36
768
960

query I rowsort
SELECT DISTINCT + + col0 + - 43 AS col2 FROM tab1 AS cor0
----
-40
21
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6279
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 13 * + col1 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT + 3 * cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
12
256
320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6282
SELECT ALL CAST( col0 AS SIGNED ) * + col1 col2 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL CAST ( col0 AS INTEGER ) * + col1 col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + 10 FROM tab2 AS cor0
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-6284
SELECT + 61 + 14 DIV + col1 FROM tab1 AS cor0
----
61
62
62

skipif mysql # not compatible
query I rowsort label-6284
SELECT + 61 + 14 / + col1 FROM tab1 AS cor0
----
61
62
62

query I rowsort
SELECT DISTINCT - ( 84 ) + col1 FROM tab2 AS cor0
----
-25
-53
-67

query I rowsort
SELECT DISTINCT + col2 + col0 AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT col2 + tab1.col2 * col1 + col2 FROM tab1
----
1440
1512
684

query I rowsort
SELECT ALL ( col2 ) + tab0.col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT DISTINCT - - col0 DIV col2 + + col2 * + 51 FROM tab1 AS cor0
----
2754
2908
4896

skipif mysql # not compatible
query I rowsort label-6289
SELECT DISTINCT - - col0 / col2 + + col2 * + 51 FROM tab1 AS cor0
----
2754
2908
4896

query I rowsort
SELECT - col0 * col0 + + 56 AS col0 FROM tab0 AS cor0
----
-1169
-520
-7865

query I rowsort
SELECT - col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - col1 + + col1 + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6293
SELECT ALL + CAST( + 16 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL + CAST ( + 16 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 col2 FROM tab1
----
17
17
17

query I rowsort
SELECT ALL - 13 * 15 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to c337572ae5e03e5daeafd20212221d87

query I rowsort
SELECT cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col2 * - 89 AS col1 FROM tab2 AS cor0
----
-128516
-60164
-64881

query I rowsort
SELECT - cor0.col0 * + col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 + 95 FROM tab1 AS cor0
----
-1
38
41

query I rowsort
SELECT - - col1 * col1 + 49 AS col1 FROM tab2 cor0
----
1010
338
3530

query I rowsort
SELECT - - cor0.col2 + + ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col1 * - col0 + + col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 * col1 + 85 AS col1 FROM tab1 AS cor0
----
1333
1489
655

query I rowsort
SELECT + ( 95 ) + col1 FROM tab0 AS cor0
----
181
186
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + + col2 * + col2 col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + cor0.col1 + - col1 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6309
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT - - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 47 * - cor0.col1 FROM tab2 AS cor0
----
-1457
-2773
-799

query I rowsort
SELECT ( - ( + col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6312
SELECT ALL col0 DIV - 99 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL col0 / - 99 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6313
SELECT + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6313
SELECT + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + cor0.col1 + + 44 FROM tab0 AS cor0
----
130
135
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 17 col1 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ALL + col2 + + col0 * + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - - ( - col0 ) * - cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + - 11 - - ( - col0 + col1 ) AS col2 FROM tab0 AS cor0
----
-9
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6319
SELECT DISTINCT CAST( NULL AS SIGNED ) * 40 + cor0.col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 40 + cor0.col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( 27 ) + + col1 FROM tab1 AS cor0
----
37
40
53

query I rowsort
SELECT ALL + 75 + + 81 AS col0 FROM tab0 AS cor0
----
156
156
156

onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT DISTINCT - 75 - - 19 DIV col2 AS col1 FROM tab0 AS cor0
----
-56
-75

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT - 75 - - 19 / col2 AS col1 FROM tab0 AS cor0
----
-56
-75

query I rowsort
SELECT DISTINCT - 72 + col1 FROM tab0 AS cor0
----
14
19
25

query I rowsort
SELECT + - ( col0 ) + cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + col1 + - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6327
SELECT ALL + 80 * col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL + 80 * col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT col1 - + col2 * 93 FROM tab1 AS cor0
----
-4996
-5291
-8915

query I rowsort
SELECT + 1 * col1 - + ( col2 ) AS col1 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 90 + + cor0.col2 col1 FROM tab2 AS cor0
----
116
117
128

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT + col2 - + col0 DIV + ( col1 * + col1 ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6332
SELECT + col2 - + col0 / + ( col1 * + col1 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - 52 AS col1 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ( ( - tab2.col2 ) ) AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL + col1 + col0 * + 30 AS col0 FROM tab2 cor0
----
2387
2399
241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6336
SELECT ALL - col2 + col1 * CAST( NULL AS SIGNED ) * + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL - col2 + col1 * CAST ( NULL AS INTEGER ) * + col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - cor0.col1 * + col2 + + col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT + 63 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - + cor0.col1 + + 4 FROM tab2 AS cor0
----
-13
-27
-55

query I rowsort
SELECT - 59 + - col0 FROM tab2 AS cor0
----
-137
-138
-66

query I rowsort
SELECT col0 * col1 + col1 FROM tab1
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT DISTINCT + tab0.col1 DIV ( + col2 + + col0 * col2 ) FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT + tab0.col1 / ( + col2 + + col0 * col2 ) FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort
SELECT + col1 * + CAST ( - col0 + - col2 AS REAL ) * - 0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * 97 AS col1 FROM tab0
----
3201
7954
97

query I rowsort
SELECT DISTINCT 45 * ( col0 ) AS col2 FROM tab0
----
1080
1575
4005

query I rowsort
SELECT - ( 96 ) FROM tab2
----
-96
-96
-96

query I rowsort
SELECT DISTINCT 15 * + col0 FROM tab1
----
1200
45
960

query I rowsort
SELECT DISTINCT 5 * + col0 AS col2 FROM tab1
----
15
320
400

query I rowsort
SELECT - ( - col1 ) + - col1 * col1 FROM tab1
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6350
SELECT col1 + - col0 DIV + tab2.col0 AS col2 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-6350
SELECT col1 + - col0 / + tab2.col0 AS col2 FROM tab2
----
16
30
58

query I rowsort
SELECT ( 86 * - col1 ) AS col0 FROM tab1
----
-1118
-2236
-860

query I rowsort
SELECT DISTINCT cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT cor0.col1 + ( col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT col1 + col0 - col1 * col0 FROM tab1 AS cor0
----
-49
-566
-947

query I rowsort
SELECT col1 * - 69 AS col1 FROM tab2
----
-1173
-2139
-4071

query I rowsort
SELECT DISTINCT - 83 + col1 AS col2 FROM tab2
----
-24
-52
-66

query I rowsort
SELECT ALL + + col0 + + 23 AS col1 FROM tab2 AS cor0
----
101
102
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + 42 col2 FROM tab1 AS cor0
----
-12
-15
-54

query I rowsort
SELECT DISTINCT col1 + col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT 76 * 30 + + col2 AS col2 FROM tab1 AS cor0
----
2334
2337
2376

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6363
SELECT - CAST( - col0 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-6363
SELECT - CAST ( - col0 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 84 + - 79 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6365
SELECT ALL - col0 + tab0.col0 DIV col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL - col0 + tab0.col0 / col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - ( - col1 ) * 4 + + tab1.col1 * + col0 * 15 AS col0 FROM tab1
----
1274
15652
9640

query I rowsort
SELECT ALL col2 * col2 + - tab2.col2 AS col1 FROM tab2
----
1406
650
702

query I rowsort
SELECT 37 * col0 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT DISTINCT - - 98 * - col1 FROM tab0 cor0
----
-8428
-8918
-9506

query I rowsort
SELECT + + col1 + cor0.col0 * cor0.col1 AS col0 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT ALL + col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + + col2 * - 89 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-14760
-186
-5775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 91 * - 4 col0 FROM tab2 cor0
----
-371
-442
-443

query I rowsort
SELECT cor0.col0 * + 16 FROM tab0 cor0
----
1424
384
560

query I rowsort
SELECT ALL + + cor0.col2 + col1 + + 21 FROM tab0 AS cor0
----
119
140
194

query I rowsort
SELECT DISTINCT - + col1 + - 54 AS col1 FROM tab2 AS cor0
----
-113
-71
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6377
SELECT DISTINCT 96 DIV + cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
1
32

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT 96 / + cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
1
32

query I rowsort
SELECT col2 * + col0 + - col0 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT cor0.col1 * - ( + col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6380
SELECT + cor0.col2 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6380
SELECT + cor0.col2 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 35 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT ALL - col2 + 7 FROM tab2 AS cor0
----
-19
-20
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col1 FROM tab0, tab1 AS cor0
----
46

query I rowsort
SELECT 39 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - col1 * ( - col2 ) * + tab0.col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT - - 24 FROM tab0 AS cor0
----
24
24
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT tab2.col0 + col2 DIV - 23 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-6387
SELECT tab2.col0 + col2 / - 23 FROM tab2
----
6
77
78

query I rowsort
SELECT 5 * - 80 FROM tab0, tab1 AS cor0
----
9 values hashing to 11287f1182b7174fc53227493d6a4c33

query I rowsort
SELECT ALL tab1.col2 * + col1 * - 72 FROM tab1
----
-101088
-41040
-89856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * + col1 col2 FROM tab2
----
136
248
472

query I rowsort
SELECT DISTINCT 4 FROM tab1, tab2 AS cor0
----
4

query I rowsort
SELECT DISTINCT + ( + 59 ) FROM tab0
----
59

query I rowsort
SELECT ALL - col2 * tab1.col0 * col0 FROM tab1
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col0 col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 40 * cor0.col2 col2 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT ALL + ( col0 ) * ( + ( + col1 ) * ( col0 ) ) FROM tab2 cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-6397
SELECT DISTINCT 19 DIV + col1 col0 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT 19 / + col1 col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + 4 * + col1 AS col2 FROM tab2 AS cor0
----
124
236
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 71 - tab0.col2 * col1 col2 FROM tab0
----
-13923
-6984
-8944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT + col2 * - 9 * tab1.col2 + tab1.col1 AS col2 FROM tab1
----
-26218
-29231
-82931

query I rowsort
SELECT ALL + 95 + col0 * + col0 AS col1 FROM tab0
----
1320
671
8016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 62 * + col1 - - col0 col2 FROM tab2
----
40131
51901
95186

query I rowsort
SELECT + col2 + 1 - col2 AS col0 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT - col2 + tab1.col1 DIV + col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6405
SELECT - col2 + tab1.col1 / + col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL + ( 98 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # use DIV operator for integer division
query I rowsort label-6407
SELECT DISTINCT + cor0.col0 DIV - 95 AS col2 FROM tab2, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT + cor0.col0 / - 95 AS col2 FROM tab2, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col1 * - cor0.col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + - 85 + + col2 AS col2 FROM tab2 AS cor0
----
-47
-58
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6410
SELECT - - col2 DIV - col1 col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6410
SELECT - - col2 / - col1 col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - cor0.col1 * - cor0.col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col0 + - col0 * + ( + cor0.col1 ) * col1 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT ALL col2 + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT 35 + col2 AS col1 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT DISTINCT - - col2 * col0 * col0 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + 25 col1 FROM tab0 AS cor0
----
111
116
122

query I rowsort
SELECT col1 - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6419
SELECT + col2 * col0 + 59 DIV - cor0.col2 + col0 FROM tab0 AS cor0
----
11
7387
815

skipif mysql # not compatible
query I rowsort label-6419
SELECT + col2 * col0 + 59 / - cor0.col2 + col0 FROM tab0 AS cor0
----
11
7387
815

query I rowsort
SELECT + col1 * col1 + + col2 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT DISTINCT 70 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT + cor0.col1 DIV - col1 + - ( + col0 * + col0 ) + col1 AS col2 FROM tab0 AS cor0
----
-1129
-491
-7831

skipif mysql # not compatible
query I rowsort label-6422
SELECT + cor0.col1 / - col1 + - ( + col0 * + col0 ) + col1 AS col2 FROM tab0 AS cor0
----
-1129
-491
-7831

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT col0 + + col1 * + col2 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT tab2.col2 + + tab2.col2 * - col0 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + col1 * + col2 <= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * ( tab2.col0 ) col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col0 * col1 * - 73 AS col1 FROM tab1
----
46720
5694
75920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL tab0.col1 + + tab0.col0 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT + col1 + - col0 FROM tab0 WHERE NULL IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + col2 * col1 AS col1 FROM tab0 WHERE NOT - col0 IN ( tab0.col2 )
----
2838
7462
97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND col2
----

query I rowsort
SELECT ALL + tab0.col2 - - col0 * col0 AS col1 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT col2 + + col2 * - tab0.col0 * + col1 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT - col2 - - col0 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT tab1.col1 + col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 + - tab2.col0 FROM tab2
----
-104
-117
-34

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * + col2 / + col0 ) BETWEEN ( col0 * col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col2 * + col0 col1 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT col1 + - tab2.col2 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT - col0 * col1 AS col1 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT ( + col1 * col0 ) IN ( + col2 )
----
7
78
79

query I rowsort
SELECT ALL - col0 - + col0 * col1 AS col1 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT - col1 + col0 * + col1 AS col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT - col2 + - col1 * col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT col2 + col2 + - col1 AS col1 FROM tab2
----
-7
23
59

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) <= ( NULL )
----

query I rowsort
SELECT ALL col2 * tab0.col2 - col1 AS col1 FROM tab0 WHERE NOT ( - col0 * - col2 ) < + col1
----
1003
6633

query I rowsort
SELECT DISTINCT col2 * 19 AS col0 FROM tab0
----
1558
19
627

query I rowsort
SELECT 18 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL - 72 AS col2 FROM tab1
----
-72
-72
-72

query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 FROM tab1
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6454
SELECT + - 31 DIV - col2 FROM tab0 AS cor0
----
0
0
31

skipif mysql # not compatible
query I rowsort label-6454
SELECT + - 31 / - col2 FROM tab0 AS cor0
----
0
0
31

query I rowsort
SELECT + col0 * col0 * col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT + 11 + - col0 FROM tab2
----
-67
-68
4

query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab1
----
4

query I rowsort
SELECT DISTINCT - + ( col1 ) * + ( 10 * - col2 ) AS col0 FROM tab1 AS cor0
----
12480
14040
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-6459
SELECT ALL - ( + col1 ) * + CAST( - col2 AS SIGNED ) DIV col2 AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - ( + col1 ) * + CAST ( - col2 AS INTEGER ) / col2 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + - 61 + col0 AS col1 FROM tab0 AS cor0
----
-26
-37
28

query I rowsort
SELECT + + 33 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT - + col0 * cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col0 - + col0 AS col0 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT - col2 + - 49 * - col2 FROM tab1 cor0
----
2592
2736
4608

query I rowsort
SELECT col2 * 43 + - col0 AS col1 FROM tab2 AS cor0
----
1040
1154
1555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + ( - 72 ) col2 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT + cor0.col2 + + col0 * col0 * col2 FROM tab2 AS cor0
----
1350
158210
237196

onlyif mysql # use DIV operator for integer division
query I rowsort label-6468
SELECT - 81 + 36 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
-81
-82
-83

skipif mysql # not compatible
query I rowsort label-6468
SELECT - 81 + 36 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
-81
-82
-83

query I rowsort
SELECT DISTINCT + 57 * + col0 FROM tab2 AS cor0
----
399
4446
4503

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e

query I rowsort
SELECT 58 AS col1 FROM tab1 cor0
----
58
58
58

query I rowsort
SELECT ALL + + 25 + col0 - col2 AS col2 FROM tab0 AS cor0
----
16
32
59

query I rowsort
SELECT ALL + 94 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
5073
5294
8944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col0 col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - ( - col0 ) + - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT DISTINCT + col0 * col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT + col0 * col1 / + col0 AS col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6477
SELECT + 61 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
61

skipif mysql # not compatible
query I rowsort label-6477
SELECT + 61 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
61

query I rowsort
SELECT DISTINCT col1 + col1 + + col1 AS col1 FROM tab1
----
30
39
78

query I rowsort
SELECT DISTINCT tab1.col0 + + 91 * + col1 * + col0 FROM tab1
----
58304
7101
94720

query I rowsort
SELECT tab2.col1 + 64 AS col1 FROM tab2
----
123
81
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 + + 64 * + col0 col0 FROM tab2
----
5067
5131
523

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) - col1 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * col2 * tab1.col1 + + col2 AS col2 FROM tab1
----
16320
36558
5757

query I rowsort
SELECT DISTINCT + - col0 + col0 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT ALL - col0 DIV - cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL - col0 / - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 20 * + col1 FROM tab1 cor0
----
-200
-260
-520

query I rowsort
SELECT - ( tab1.col1 * col0 ) + - tab1.col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT - 7 * + col1 * + col1 AS col2 FROM tab1 cor0
----
-1183
-4732
-700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6489
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2 FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL tab2.col0 + tab2.col0 - - 19 FROM tab2
----
175
177
33

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 col2 * col0 + - ( cor0.col1 * cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT ALL + tab0.col2 + - col1 + col1 AS col2 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6494
SELECT ALL CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL CAST ( NULL AS REAL ) + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6495
SELECT ALL + CAST( + ( col0 ) AS SIGNED ) * + col1 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
16198
4128
6790

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL + CAST ( + ( col0 ) AS INTEGER ) * + col1 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT ALL + - ( + col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col2 * + col1 * - col1 AS col0 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT - 80 AS col2 FROM tab0 cor0
----
-80

query I rowsort
SELECT + col1 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT col1 * col2 * col0 FROM tab0
----
3395
664118
68112

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + col1 + col1 )
----

query I rowsort
SELECT DISTINCT - tab2.col2 + col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + tab1.col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT col2 + - col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 + col2 * col1 col1 FROM tab1 cor0
----
1417
2080
670

query I rowsort
SELECT DISTINCT + col2 + col1 * col2 * col0 AS col1 FROM tab0 AS cor0
----
3396
664200
68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-6511
SELECT ALL col0 DIV + col0 - col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL col0 / + col0 - col1 AS col2 FROM tab1 AS cor0
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 + col0 col1 FROM tab2 AS cor0
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 * + col0 col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col0 + + col2 + + col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT ALL - col1 * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col2 * - col0 AND ( NULL )
----

query I rowsort
SELECT ALL - col2 * col2 + tab0.col1 AS col1 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 + + col1 * + col1 AS col2 FROM tab2 cor0
----
251
3455
934

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 = col2
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - col2 * - col1 IN ( - col2 * col1 + + cor0.col1 * - col1 )
----
1
33
82

query I rowsort
SELECT ALL + tab2.col0 * - col2 + col1 * + col2 * tab2.col0 FROM tab2
----
117624
48032
5670

query I rowsort
SELECT col1 * - col2 + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1242
3078
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-6524
SELECT cor0.col1 DIV - col0 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
725

skipif mysql # not compatible
query I rowsort label-6524
SELECT cor0.col1 / - col0 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 col2 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-6526
SELECT DISTINCT + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6526
SELECT DISTINCT + col1 / - col0 AS col0 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT DISTINCT - col2 + tab1.col1 * col2 AS col0 FROM tab1
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6528
SELECT + col0 + col2 + col0 DIV col0 FROM tab2
----
105
118
35

skipif mysql # not compatible
query I rowsort label-6528
SELECT + col0 + col2 + col0 / col0 FROM tab2
----
105
118
35

query I rowsort
SELECT DISTINCT + col0 * - col1 - - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col2 * col0 - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL + col2 * - col2 + col0 * col0 FROM tab0 cor0
----
-513
1197
1224

onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT DISTINCT col0 - + col0 DIV col0 AS col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT col0 - + col0 / col0 AS col2 FROM tab0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * + cor0.col0 * col1 col2 FROM tab0 cor0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT ALL - col2 * col1 - - col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + - col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col2 * + col0 + col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT col0 + tab0.col2 + col0 * - col2 AS col2 FROM tab0
----
-7127
-735
1

query I rowsort
SELECT - col2 + + col0 + col0 FROM tab1
----
-48
64
71

query I rowsort
SELECT ALL - tab1.col0 * col1 - col0 AS col0 FROM tab1
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * - col1 * tab2.col2 col0 FROM tab2
----
-10903
-25940
-90428

query I rowsort
SELECT - col0 * col0 * - col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL - col1 * + col2 - col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT + cor0.col2 + - ( col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - 24 AS col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
-24

query I rowsort
SELECT ALL 35 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT - 25 * cor0.col2 FROM tab1 cor0
----
-1350
-1425
-2400

query I rowsort
SELECT + cor0.col0 + - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + tab0.col2 * - tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT col1 * 99 * col2 + - col1 FROM tab0
----
280876
738647
9506

query I rowsort
SELECT + - col2 + - col0 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
118824
49503
720729

query I rowsort
SELECT + 88 * col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2145
3081
7914

onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT - + cor0.col1 + - col0 DIV + 38 AS col2 FROM tab0 AS cor0
----
-86
-93
-97

skipif mysql # not compatible
query I rowsort label-6555
SELECT - + cor0.col1 + - col0 / + 38 AS col2 FROM tab0 AS cor0
----
-86
-93
-97

query I rowsort
SELECT - - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 66 + + col1 col2 FROM tab2 AS cor0
----
125
83
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6558
SELECT - col2 + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-6558
SELECT - col2 + col0 / + col1 AS col2 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT ( col2 + - col1 ) * - 8 FROM tab0
----
424
72
768

query I rowsort
SELECT ALL - col2 + + tab2.col1 + + col0 AS col1 FROM tab2
----
11
111
58

query I rowsort
SELECT - 61 - - col2 AS col1 FROM tab0
----
-28
-60
21

query I rowsort
SELECT + ( - col2 ) * col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ( 98 ) * + col1 + - 18 AS col1 FROM tab0
----
8410
8900
9488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
7

query I rowsort
SELECT 87 * - col0 * + 2 FROM tab2 AS cor0
----
-1218
-13572
-13746

query I rowsort
SELECT DISTINCT + + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - + 90 * - col1 AS col0 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT cor0.col1 + + col1 * - ( 76 ) AS col2 FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT ALL + - 55 FROM tab0 cor0
----
-55
-55
-55

query I rowsort
SELECT col0 + + 3 + - cor0.col0 FROM tab0 cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT DISTINCT + cor0.col0 DIV CAST( 38 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT + cor0.col0 / CAST ( 38 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 63 col0 FROM tab0 AS cor0
----
-2079
-5166
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT - col2 + CAST( + col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6574
SELECT - col2 + CAST ( + col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT cor0.col1 * 50 FROM tab2 AS cor0
----
1550
2950
850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6576
SELECT - + col1 * + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-6576
SELECT - + col1 * + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - cor0.col2 + ( + col2 ) + col1 AS col0 FROM tab2 cor0
----
111
85
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6578
SELECT - col2 + + 97 DIV col0 AS col2 FROM tab0 AS cor0
----
-29
-81
1

skipif mysql # not compatible
query I rowsort label-6578
SELECT - col2 + + 97 / col0 AS col2 FROM tab0 AS cor0
----
-29
-81
1

query I rowsort
SELECT + col2 + - 15 * + 65 FROM tab2 AS cor0
----
-937
-948
-949

query I rowsort
SELECT col1 * - 17 AS col2 FROM tab0
----
-1462
-1547
-1649

query I rowsort
SELECT col1 - + 32 FROM tab1 AS cor0
----
-19
-22
-6

query I rowsort
SELECT - tab2.col1 * + tab2.col2 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT DISTINCT - col1 * ( - cor0.col0 ) DIV 67 + cor0.col0 FROM tab0 AS cor0
----
209
54
85

skipif mysql # not compatible
query I rowsort label-6583
SELECT DISTINCT - col1 * ( - cor0.col0 ) / 67 + cor0.col0 FROM tab0 AS cor0
----
209
54
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6584
SELECT + col1 + 98 DIV cor0.col1 col0 FROM tab1 AS cor0
----
19
20
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6584
SELECT + col1 + 98 / cor0.col1 col0 FROM tab1 AS cor0
----
19
20
29

query I rowsort
SELECT + col0 * 73 * col1 - - col2 AS col0 FROM tab1 AS cor0
----
46777
5748
76016

query I rowsort
SELECT DISTINCT + + ( ( col1 ) ) + - 49 FROM tab2 AS cor0
----
-18
-32
10

query I rowsort
SELECT - col1 + col0 * col1 * - 28 FROM tab2 cor0
----
-128915
-37621
-6107

query I rowsort
SELECT col0 * - col0 - + col0 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT ALL - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
73

query I rowsort
SELECT ALL + ( - col1 ) + + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + - cor0.col0 * - cor0.col2 - + col2 AS col1 FROM tab1 cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT DISTINCT - col1 DIV + ( - col1 ) + col0 AS col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT - col1 / + ( - col1 ) + col0 AS col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - + 75 + - col2 AS col1 FROM tab1 AS cor0
----
-129
-132
-171

onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT ALL - col0 DIV - col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL - col0 / - col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - col0 + + 18 AS col0 FROM tab0
----
-17
-6
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT ( col1 ) + - col1 DIV + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6597
SELECT ( col1 ) + - col1 / + col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT - col1 + + 65 FROM tab1 AS cor0
----
39
52
55

query I rowsort
SELECT cor0.col2 * + 76 FROM tab1 cor0
----
4104
4332
7296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT DISTINCT + - ( + 85 ) + - col2 DIV 67 FROM tab0 AS cor0
----
-85
-86

skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT + - ( + 85 ) + - col2 / 67 FROM tab0 AS cor0
----
-85
-86

query I rowsort
SELECT ALL - - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT tab1.col0 * tab1.col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT 85 + + col0 FROM tab0 AS cor0
----
109
120
174

query I rowsort
SELECT DISTINCT col2 * col2 * - col0 - + col1 * col0 AS col2 FROM tab1 AS cor0
----
-208576
-738320
-8826

onlyif mysql # use DIV operator for integer division
query I rowsort label-6605
SELECT ALL - col1 + - col0 DIV col2 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL - col1 + - col0 / col2 FROM tab1 AS cor0
----
-11
-13
-26

query I rowsort
SELECT ALL - + 66 - - col0 * col0 * + 74 FROM tab0 cor0
----
42558
586088
90584

query I rowsort
SELECT - ( 28 ) * + col2 + + cor0.col2 AS col0 FROM tab1 cor0
----
-1458
-1539
-2592

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6608
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * + col2 col1 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL - col1 + tab1.col0 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL + 75 + col2 AS col1 FROM tab2 cor0
----
101
102
113

query I rowsort
SELECT ALL - 36 * col1 * cor0.col1 FROM tab1 AS cor0
----
-24336
-3600
-6084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col1 * + col2 col1 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT - col1 * - col0 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + 32 + - tab2.col2 AS col0 FROM tab2
----
-6
5
6

query I rowsort
SELECT DISTINCT 94 + - col0 * - col2 AS col0 FROM tab1
----
256
3742
7774

onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT + col0 DIV ( + col2 ) - col1 col2 FROM tab0 AS cor0
----
-62
-86
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6617
SELECT + col0 / ( + col2 ) - col1 col2 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT + - col0 + + col1 - + 83 * col0 FROM tab2 AS cor0
----
-557
-6493
-6619

query I rowsort
SELECT DISTINCT + + col2 * 8 AS col1 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT DISTINCT + col0 * col0 + 89 AS col2 FROM tab0 AS cor0
----
1314
665
8010

query I rowsort
SELECT - col2 + col2 - col1 AS col0 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 47 col0 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT - 22 + cor1.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f528d431274c3585f6fabf5fc73dee5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 + + cor0.col0 * + col2 * ( col2 ) + - col1 col1 FROM tab0 cor0
----
-159
23212
590883

query I rowsort
SELECT col0 + + tab1.col2 - 1 AS col2 FROM tab1
----
120
175
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6626
SELECT ALL - 94 DIV 74 FROM tab1, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - 94 / 74 FROM tab1, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6627
SELECT + col0 DIV + 8 AS col0 FROM tab0
----
11
3
4

skipif mysql # not compatible
query I rowsort label-6627
SELECT + col0 / + 8 AS col0 FROM tab0
----
11
3
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT DISTINCT + tab2.col1 DIV col0 - 86 AS col2 FROM tab2
----
-82
-86

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT + tab2.col1 / col0 - 86 AS col2 FROM tab2
----
-82
-86

query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col2 * + col2 + - 28 + + col0 AS col1 FROM tab2
----
-1393
-626
-750

query I rowsort
SELECT DISTINCT tab1.col2 + 4 AS col0 FROM tab1
----
100
58
61

query I rowsort
SELECT + col1 * + 88 FROM tab0 AS cor0
----
7568
8008
8536

query I rowsort
SELECT - col2 * cor0.col1 + col2 * - col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-6634
SELECT - tab1.col2 DIV 61 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

skipif mysql # not compatible
query I rowsort label-6634
SELECT - tab1.col2 / 61 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789

query I rowsort
SELECT ALL + col1 + 63 * - 37 AS col2 FROM tab1
----
-2305
-2318
-2321

query I rowsort
SELECT + tab2.col0 - - col1 * - ( + col2 ) FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT tab1.col2 * - tab1.col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col2 + ( col1 ) * col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT - + cor0.col1 * - ( - col2 ) - - col0 DIV col2 FROM tab1 AS cor0
----
-1248
-1404
-569

skipif mysql # not compatible
query I rowsort label-6639
SELECT - + cor0.col1 * - ( - col2 ) - - col0 / col2 FROM tab1 AS cor0
----
-1248
-1404
-569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 74 col0 FROM tab2 AS cor0
----
100
101
112

query I rowsort
SELECT ALL cor0.col2 + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 73e5d3d4212c7c9c8f2e4a4f74108ae2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6642
SELECT CAST( NULL AS SIGNED ) - 42 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT CAST ( NULL AS INTEGER ) - 42 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 + col0 * col1 col0 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6644
SELECT ALL CAST( - col1 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-6644
SELECT ALL CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + - col1 * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * cor0.col0 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 327033a0552226769c3eef5e7d8d7666

query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT + ( + col0 ) + cor0.col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 89 ) col0 FROM tab1 cor0
----
89

query I rowsort
SELECT + + col1 + + 19 FROM tab0 AS cor0
----
105
110
116

query I rowsort
SELECT ALL + 61 AS col0 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT - 10 + + col1 AS col0 FROM tab0
----
76
81
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col0 FROM tab2
----
4
4
4

query I rowsort
SELECT ALL - col2 * + col2 + col1 + + 54 * col2 AS col1 FROM tab2 AS cor0
----
625
760
787

query I rowsort
SELECT DISTINCT 78 * - cor0.col0 FROM tab1 AS cor0
----
-234
-4992
-6240

query I rowsort
SELECT ALL 25 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT + + col2 * col0 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - ( - cor1.col1 ) FROM tab2, tab2 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT ALL - col2 + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * ( + col1 ) + + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-6665
SELECT + col1 * 46 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
-203
-34
-9

skipif mysql # not compatible
query I rowsort label-6665
SELECT + col1 * 46 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
-203
-34
-9

query I rowsort
SELECT DISTINCT + col1 * - 86 + - cor0.col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1503
-2646
-5126

query I rowsort
SELECT ALL + + col2 * + col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 col1 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT DISTINCT + col0 * col0 DIV 56 AS col1 FROM tab1 AS cor0
----
0
114
73

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + col0 * col0 / 56 AS col1 FROM tab1 AS cor0
----
0
114
73

query I rowsort
SELECT ALL + - cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - col0 + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6672
SELECT DISTINCT col0 - CAST( ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT col0 - CAST ( ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - ( - col0 * + ( + col2 ) ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col2 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT cor0.col0 + - col0 * + col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col1 + col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab1
----
-21

query I rowsort
SELECT - - 76 + - 24 + + col1 AS col1 FROM tab0 AS cor0
----
138
143
149

onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT DISTINCT - ( - ( - col1 ) ) * + col1 + + col2 DIV col0 FROM tab0 AS cor0
----
-7395
-8281
-9409

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT - ( - ( - col1 ) ) * + col1 + + col2 / col0 FROM tab0 AS cor0
----
-7395
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6680
SELECT - 31 + - col2 DIV - ( col0 * + col0 ) FROM tab0 cor0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-6680
SELECT - 31 + - col2 / - ( col0 * + col0 ) FROM tab0 cor0
----
-31
-31
-31

query I rowsort
SELECT - + 52 AS col0 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT col2 * cor0.col0 * + cor0.col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT cor0.col2 * + ( 70 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 76230c61c7902fa5a05895113d4f1885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * cor0.col2 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2cdada4ff1957b40d54c501b61f99ecf

query I rowsort
SELECT ALL col2 * ( 32 ) FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT DISTINCT + ( 85 ) FROM tab2, tab1 AS cor0
----
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6687
SELECT cor0.col1 * cor0.col1 / col0 - - col1 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT cor0.col1 * cor0.col1 / col0 - - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + - col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - col2 * 99 + col2 AS col2 FROM tab0 cor0
----
-3234
-8036
-98

query I rowsort
SELECT ALL - - col1 * + col2 + + col0 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6691
SELECT DISTINCT - col0 * - col0 + col2 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
11
4101
6407

skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - col0 * - col0 + col2 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
11
4101
6407

query I rowsort
SELECT col2 * + 31 FROM tab2 AS cor0
----
1178
806
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6693
SELECT + + CAST( NULL AS SIGNED ) + col1 + + cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6693
SELECT + + CAST ( NULL AS INTEGER ) + col1 + + cor0.col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6694
SELECT + CAST( 36 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
1944
2052
3456

skipif mysql # not compatible
query I rowsort label-6694
SELECT + CAST ( 36 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
1944
2052
3456

query I rowsort
SELECT + 7 + - 19 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT + col1 * 16 FROM tab0
----
1376
1456
1552

query I rowsort
SELECT - 20 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT + ( 67 ) AS col2 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6699
SELECT tab0.col2 DIV - col0 + + col2 FROM tab0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-6699
SELECT tab0.col2 / - col0 + + col2 FROM tab0
----
1
32
82

query I rowsort
SELECT - col0 + + 68 FROM tab1 AS cor0
----
-12
4
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6701
SELECT 53 DIV 99 + tab1.col1 * 95 * tab1.col0 + + col0 col0 FROM tab1
----
60864
7413
98880

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6701
SELECT 53 / 99 + tab1.col1 * 95 * tab1.col0 + + col0 col0 FROM tab1
----
60864
7413
98880

query I rowsort
SELECT DISTINCT col2 * 1 + col0 * - col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT + - col1 * cor0.col2 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-648
2356
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-6704
SELECT ALL col0 + 6 * - col1 - cor0.col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-161
2
4

skipif mysql # not compatible
query I rowsort label-6704
SELECT ALL col0 + 6 * - col1 - cor0.col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-161
2
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6705
SELECT + CAST( col0 AS SIGNED ) * + col0 - - col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

skipif mysql # not compatible
query I rowsort label-6705
SELECT + CAST ( col0 AS INTEGER ) * + col0 - - col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT ALL - + col1 + col1 - col1 * col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6707
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) + col2 * col1 col0 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-6710
SELECT ALL + col2 + + col1 * CAST( col0 AS SIGNED ) DIV cor0.col0 AS col2 FROM tab2 cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + col2 + + col1 * CAST ( col0 AS INTEGER ) / cor0.col0 AS col2 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + + col2 * col1 + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT cor1.col2 - 17 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to cd51c959b2b2564a8f7a1678a2d000a8

query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT 53 * + 90 FROM tab1
----
4770
4770
4770

query I rowsort
SELECT 60 + col2 - + col1 FROM tab1
----
107
143
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT + CAST( 82 AS SIGNED ) * col1 * ( + col1 + + col1 ) AS col2 FROM tab2
----
157604
47396
570884

skipif mysql # not compatible
query I rowsort label-6716
SELECT + CAST ( 82 AS INTEGER ) * col1 * ( + col1 + + col1 ) AS col2 FROM tab2
----
157604
47396
570884

query I rowsort
SELECT ALL ( + 33 * + col1 ) AS col1 FROM tab2
----
1023
1947
561

query I rowsort
SELECT - col1 * 49 * - col2 AS col0 FROM tab1 cor0
----
27930
61152
68796

query I rowsort
SELECT DISTINCT tab1.col2 * col0 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 35 AS col2 FROM tab1
----
-35
-35
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6721
SELECT - cor0.col2 * CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6721
SELECT - cor0.col2 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * col1 AS col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT + 48 + + col1 FROM tab1
----
58
61
74

query I rowsort
SELECT col0 + + col1 * - 20 + col0 AS col1 FROM tab0
----
-1642
-1672
-1870

query I rowsort
SELECT - col1 * col0 + col2 - col0 FROM tab0
----
-2055
-3429
-8106

query I rowsort
SELECT DISTINCT col1 + col1 * ( - col2 ) AS col2 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT col0 * col1 + col2 AS col0 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col0 * col2 + + 3 FROM tab1 AS cor0
----
165
3651
7683

query I rowsort
SELECT + col1 * + col0 + - 51 FROM tab2 AS cor0
----
1292
166
4551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT ALL 76 DIV col0 + - 88 col2 FROM tab1 AS cor0
----
-63
-87
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL 76 / col0 + - 88 col2 FROM tab1 AS cor0
----
-63
-87
-88

query I rowsort
SELECT - 75 + - col2 FROM tab2 AS cor0
----
-101
-102
-113

query I rowsort
SELECT + cor0.col0 * 25 + - 59 AS col2 FROM tab1 AS cor0
----
1541
16
1941

onlyif mysql # use DIV operator for integer division
query I rowsort label-6733
SELECT DISTINCT + col2 DIV ( - cor0.col0 ) + col2 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT + col2 / ( - cor0.col0 ) + col2 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT ALL col2 * - 77 + col1 FROM tab0 AS cor0
----
-2455
-6223
20

query I rowsort
SELECT DISTINCT + - col0 * col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6736
SELECT DISTINCT + col2 * CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT + col2 * CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + + col1 * 96 FROM tab0 AS cor0
----
8289
8818
9313

query I rowsort
SELECT - - col0 + cor0.col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - col2 * 2 + - cor0.col1 FROM tab0 AS cor0
----
-152
-255
-99

query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - col0 + - 13 AS col0 FROM tab2 AS cor0
----
-20
-91
-92

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col2 * - CAST ( 87 AS REAL ) FROM tab1 cor0
----
4698
4959
8352

query I rowsort
SELECT + col2 + - col1 * - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
244101
679124
9410

query I rowsort
SELECT ALL col0 * col0 + 2 + + col1 AS col0 FROM tab1 AS cor0
----
37
4108
6415

query I rowsort
SELECT col2 * 12 + + 1 AS col0 FROM tab0 cor0
----
13
397
985

query I rowsort
SELECT DISTINCT tab0.col0 - tab0.col1 AS col1 FROM tab0
----
-2
-62

query I rowsort
SELECT ALL col2 * col0 - + col0 FROM tab0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( + col0 ) col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT ALL col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL col1 / col1 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6750
SELECT col0 * CAST( + col1 AS SIGNED ) + col1 FROM tab0 cor0
----
2150
3492
8190

skipif mysql # not compatible
query I rowsort label-6750
SELECT col0 * CAST ( + col1 AS INTEGER ) + col1 FROM tab0 cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + ( + 65 ) col1 FROM tab1 AS cor0
----
119
122
161

onlyif mysql # use DIV operator for integer division
query I rowsort label-6752
SELECT DISTINCT - col1 DIV + 70 + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT - col1 / + 70 + col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + - col0 * + 70 + col1 - - col0 AS col2 FROM tab2 cor0
----
-452
-5323
-5434

query I rowsort
SELECT ALL - - 95 + ( col2 ) FROM tab1 AS cor0
----
149
152
191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6756
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 54 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 54 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - + 86 + 43 FROM tab2 AS cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT ALL 44 DIV + 7 - + col0 AS col2 FROM tab0 AS cor0
----
-18
-29
-83

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL 44 / + 7 - + col0 AS col2 FROM tab0 AS cor0
----
-18
-29
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + 11 AS col0 FROM tab2 cor0
----
11
11
11

query I rowsort
SELECT ALL + ( + col2 ) * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 11 * col0 * + col0 + - col0 * col0 FROM tab2 cor0
----
490
60840
62410

query I rowsort
SELECT 26 * + col2 - col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
2052
2808
3744

query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 + - 36 * cor0.col2 AS col0 FROM tab2 cor0
----
-1809
-2014
-2470

onlyif mysql # use DIV operator for integer division
query I rowsort label-6766
SELECT ALL 42 * - cor0.col0 + 59 DIV + col2 FROM tab0 AS cor0
----
-1007
-1411
-3738

skipif mysql # not compatible
query I rowsort label-6766
SELECT ALL 42 * - cor0.col0 + 59 / + col2 FROM tab0 AS cor0
----
-1007
-1411
-3738

query I rowsort
SELECT ALL - col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6768
SELECT - col2 DIV - col0 - + col0 FROM tab1 cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-6768
SELECT - col2 / - col0 - + col0 FROM tab1 cor0
----
-64
-79
15

query I rowsort
SELECT DISTINCT + cor0.col1 - + col2 AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6770
SELECT ALL - col1 * col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL - col1 * col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc

query I rowsort
SELECT ( 4 ) - col1 * - 55 * - col1 AS col2 FROM tab2
----
-15891
-191451
-52851

query I rowsort
SELECT DISTINCT 86 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
86

query I rowsort
SELECT ALL + - col0 * - cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 * + col1 * + 64 col2 FROM tab1 AS cor0
----
158080
60800
79040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 * - col2 * ( 49 ) FROM tab2 AS cor0
----
-33124
-35721
-70756

query I rowsort
SELECT DISTINCT + + 87 * col2 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT ALL + 40 * + col1 * col2 FROM tab1
----
22800
49920
56160

query I rowsort
SELECT ALL ( + 27 * - col2 ) AS col2 FROM tab1
----
-1458
-1539
-2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 + - ( col1 ) col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT 65 * col1 FROM tab1 AS cor0
----
1690
650
845

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT DISTINCT + 1 DIV - 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT + 1 / - 76 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 + - col2 * + 4 FROM tab1 AS cor0
----
-378
-3876
-8064

query I rowsort
SELECT - 42 * - col0 * - col2 FROM tab2 AS cor0
----
-126084
-7938
-85176

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 + - col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT 74 * + col0 FROM tab0 AS cor0
----
1776
2590
6586

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6789
SELECT CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6789
SELECT CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6790
SELECT DISTINCT col1 DIV col0 + col1 + tab1.col1 * - ( + col2 ) AS col1 FROM tab1
----
-1235
-1370
-560

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT col1 / col0 + col1 + tab1.col1 * - ( + col2 ) AS col1 FROM tab1
----
-1235
-1370
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6791
SELECT ALL 91 DIV + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 56389a442bcba9c72653c4f5f0199e5b

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL 91 / + cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 56389a442bcba9c72653c4f5f0199e5b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6792
SELECT ALL col1 + col1 DIV + col1 AS col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL col1 + col1 / + col1 AS col1 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT ( + col0 ) * col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL - tab2.col1 * + col2 * tab2.col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT ( col1 * col0 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 66 * + col0 * - col0 FROM tab1
----
-270336
-422400
-594

query I rowsort
SELECT - ( + col2 ) * - col0 + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT DISTINCT + ( - cor0.col1 ) + col2 DIV 33 AS col1 FROM tab1 AS cor0
----
-11
-25
-9

skipif mysql # not compatible
query I rowsort label-6799
SELECT DISTINCT + ( - cor0.col1 ) + col2 / 33 AS col1 FROM tab1 AS cor0
----
-11
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT DISTINCT cor1.col2 DIV cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
0
1
2
3

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT cor1.col2 / cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
0
1
2
3

query I rowsort
SELECT - - col1 * + col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + col1 * - ( + col2 ) + col0 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT - 38 * col2 FROM tab0
----
-1254
-3116
-38

query I rowsort
SELECT 60 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - cor0.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 76 col0 FROM tab0 AS cor0
----
162
167
173

query I rowsort
SELECT cor0.col1 + 31 FROM tab1 AS cor0
----
41
44
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT DISTINCT tab0.col0 DIV col1 + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT tab0.col0 / col1 + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT 64 + - col1 AS col2 FROM tab1
----
38
51
54

query I rowsort
SELECT DISTINCT ( + 28 ) FROM tab0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor0.col2 ) * - col0 col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col1 * + 82 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT DISTINCT - - ( col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 71 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT DISTINCT ( - col0 + - col0 ) DIV col1 FROM tab1
----
-12
0

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT ( - col0 + - col0 ) / col1 FROM tab1
----
-12
0

query I rowsort
SELECT DISTINCT ( - col0 ) * col1 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-6817
SELECT DISTINCT + cor0.col2 * col0 DIV col2 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT + cor0.col2 * col0 / col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - + col0 - + col2 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6821
SELECT + cor0.col2 + - col1 - CAST( col2 AS SIGNED ) * + cor0.col1 AS col2 FROM tab2 cor0
----
-1567
-625
-841

skipif mysql # not compatible
query I rowsort label-6821
SELECT + cor0.col2 + - col1 - CAST ( col2 AS INTEGER ) * + cor0.col1 AS col2 FROM tab2 cor0
----
-1567
-625
-841

onlyif mysql # use DIV operator for integer division
query I rowsort label-6822
SELECT DISTINCT - + col1 * col0 DIV 88 + + col0 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-262151
-27
-512011

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - + col1 * col0 / 88 + + col0 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-262151
-27
-512011

query I rowsort
SELECT - 37 AS col1 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT + 77 + col1 FROM tab2 AS cor0
----
108
136
94

query I rowsort
SELECT 80 - + col2 AS col0 FROM tab0 AS cor0
----
-2
47
79

query I rowsort
SELECT - + col0 + col2 - 47 AS col2 FROM tab1 cor0
----
-31
-54
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + - col1 col2 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT + cor0.col1 * col0 + + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT ALL tab1.col2 DIV col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL tab1.col2 / col2 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL - col1 - tab2.col2 AS col0 FROM tab2
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * - col2 col0 FROM tab2
----
-598
-621
-874

query I rowsort
SELECT ALL 93 - - col1 AS col0 FROM tab1
----
103
106
119

query I rowsort
SELECT + col1 + col2 * 35 + - 52 AS col0 FROM tab1
----
1864
1953
3321

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL + + col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + + col2 + + col0 + col0 * - col1 AS col0 FROM tab2 cor0
----
-1226
-183
-4498

onlyif mysql # use DIV operator for integer division
query I rowsort label-6837
SELECT - col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6837
SELECT - col1 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6838
SELECT DISTINCT + col0 + - ( col1 ) DIV - col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT + col0 + - ( col1 ) / - col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT col1 - - col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + + cor0.col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6841
SELECT col0 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT col0 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab1
----
-5

query I rowsort
SELECT col1 + - 44 AS col2 FROM tab0 AS cor0
----
42
47
53

query I rowsort
SELECT - 53 + + col1 AS col1 FROM tab1 cor0
----
-27
-40
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 * col2 col2 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-54
-57
-96

query I rowsort
SELECT ALL - 36 FROM tab1, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT + 29 DIV 57 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6848
SELECT + 29 / 57 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + ( 21 ) * col2 FROM tab1 cor0
----
-1134
-1197
-2016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6850
SELECT - CAST( NULL AS DECIMAL ) + + col0 * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT - CAST ( NULL AS REAL ) + + col0 * col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 + - col0 * ( - col0 ) FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT ALL 20 * + col2 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT - 59 + - 18 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT 88 * - col2 AS col1 FROM tab1
----
-4752
-5016
-8448

query I rowsort
SELECT + ( ( - col0 ) ) AS col1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - col0 * - 5 AS col2 FROM tab2 AS cor0
----
35
390
395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT + col2 * + 64 AS col0 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT ALL + 67 AS col1 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT ALL - col1 * 97 FROM tab0
----
-8342
-8827
-9409

query I rowsort
SELECT ALL + 97 * ( col0 ) + tab2.col0 * col2 FROM tab2
----
10665
868
9594

query I rowsort
SELECT ALL 22 * + col2 AS col2 FROM tab0 AS cor0
----
1804
22
726

query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col1 + - 49 AS col2 FROM tab1
----
-23
-36
-39

query I rowsort
SELECT + 15 - - col0 * col0 FROM tab1
----
24
4111
6415

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6868
SELECT - CAST( NULL AS SIGNED ) * cor0.col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6868
SELECT - CAST ( NULL AS INTEGER ) * cor0.col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 97 * + 97 FROM tab2 AS cor0
----
9409
9409
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col1 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + col0 + 20 AS col1 FROM tab0 AS cor0
----
109
44
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6872
SELECT + - ( + 65 ) * col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
-18
-23
-63

skipif mysql # not compatible
query I rowsort label-6872
SELECT + - ( + 65 ) * col0 / + col1 AS col2 FROM tab0 AS cor0
----
-18
-23
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - cor0.col2 ) col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT col2 * 61 AS col2 FROM tab2 AS cor0
----
1586
1647
2318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT 74 * col1 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT - 97 * - col0 + - col0 FROM tab1 cor0
----
288
6144
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT - - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 97 + col1 FROM tab1
----
107
110
123

query I rowsort
SELECT DISTINCT + 86 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6881
SELECT + col1 * - col0 + CAST( 47 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-1486
-3129
-5824

skipif mysql # not compatible
query I rowsort label-6881
SELECT + col1 * - col0 + CAST ( 47 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-1486
-3129
-5824

query I rowsort
SELECT DISTINCT - col1 + col1 * + ( + col0 ) FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + col1 * col0 + 50 FROM tab0 AS cor0
----
2114
3445
8149

query I rowsort
SELECT DISTINCT 20 + + col2 FROM tab2 AS cor0
----
46
47
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col0 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 15 + col0 AS col1 FROM tab2
----
22
93
94

query I rowsort
SELECT + + 0 * + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6888
SELECT col0 DIV cor0.col0 + - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-6888
SELECT col0 / cor0.col0 + - col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
50
6085
6242

onlyif mysql # use DIV operator for integer division
query I rowsort label-6889
SELECT col0 DIV - col1 col1 FROM tab2 AS cor0
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6889
SELECT col0 / - col1 col1 FROM tab2 AS cor0
----
-1
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6890
SELECT ALL - col1 DIV - 87 FROM tab0 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL - col1 / - 87 FROM tab0 cor0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6891
SELECT ALL + cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT DISTINCT + cor0.col0 DIV 27 col2 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6892
SELECT DISTINCT + cor0.col0 / 27 col2 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( - cor0.col0 + + cor0.col0 ) col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - col1 * + 83 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT DISTINCT + col2 + 35 AS col1 FROM tab1 AS cor0
----
131
89
92

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 * + CAST ( ( + col0 ) AS REAL ) + + 92 FROM tab1 AS cor0
----
254
3740
7772

onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT ALL + col1 DIV + col2 AS col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + col1 / + col2 AS col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT DISTINCT - + col1 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ALL + - col0 * col0 - - col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

query I rowsort
SELECT col0 * - col1 * - col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - - col1 * - col2 + - 25 FROM tab0 AS cor0
----
-122
-2863
-7487

query I rowsort
SELECT ALL - - cor0.col2 + 57 * col2 FROM tab0 cor0
----
1914
4756
58

query I rowsort
SELECT DISTINCT + - col2 * - col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + col1 * - ( col2 * - col2 ) AS col1 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6905
SELECT DISTINCT col0 DIV + 15 AS col2 FROM tab1 AS cor0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT col0 / + 15 AS col2 FROM tab1 AS cor0
----
0
4
5

query I rowsort
SELECT - + 36 * + col2 AS col1 FROM tab2 AS cor0
----
-1368
-936
-972

onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT ALL - + col2 DIV + cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - + col2 / + cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT ALL + col2 * col1 + col2 * - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 56 AS col2 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT 27 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query I rowsort
SELECT - 58 - - cor0.col0 AS col2 FROM tab1 cor0
----
-55
22
6

query I rowsort
SELECT DISTINCT - 96 - col0 AS col0 FROM tab2 AS cor0
----
-103
-174
-175

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
3
64
80

query I rowsort
SELECT ALL 21 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT ALL + + 39 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT DISTINCT col0 * + col2 - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT - col1 + col1 * col2 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6918
SELECT - col1 + col1 * col2 / col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT ALL + 22 + cor0.col1 DIV - col0 FROM tab1 AS cor0
----
14
22
22

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL + 22 + cor0.col1 / - col0 FROM tab1 AS cor0
----
14
22
22

query I rowsort
SELECT 91 * col0 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
12594
16380
9580

query I rowsort
SELECT DISTINCT - col1 - 74 * col1 * + col0 FROM tab0
----
-152822
-251327
-599417

query I rowsort
SELECT DISTINCT + ( col1 ) + - col1 AS col1 FROM tab0
----
0

query I rowsort
SELECT + 17 + tab1.col2 * col1 + ( + col0 ) * col0 AS col1 FROM tab1
----
1430
4683
7665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6925
SELECT col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6926
SELECT DISTINCT + col2 * col2 * col1 + col1 * col0 DIV 55 AS col1 FROM tab0
----
158
612031
93691

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT + col2 * col2 * col1 + col1 * col0 / 55 AS col1 FROM tab0
----
158
612031
93691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 + + tab1.col1 col1 FROM tab1
----
107
110
123

query I rowsort
SELECT 51 AS col0 FROM tab1
----
51
51
51

query I rowsort
SELECT cor0.col0 * cor0.col1 - + 19 FROM tab2 AS cor0
----
1324
198
4583

query I rowsort
SELECT col2 * + col2 * - col0 - + col2 FROM tab0 AS cor0
----
-26169
-36
-598518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT col0 - - 2 FROM tab0 AS cor0
----
26
37
91

query I rowsort
SELECT DISTINCT col2 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - ( + 61 ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query I rowsort
SELECT - ( + col2 ) * + col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 65 FROM tab1
----
65

query I rowsort
SELECT ( 2 ) FROM tab1
----
2
2
2

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab1
----
69

query I rowsort
SELECT ALL 46 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + cor0.col2 + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883

query I rowsort
SELECT ALL 45 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339

query I rowsort
SELECT ALL + ( - 50 ) FROM tab2
----
-50
-50
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6944
SELECT ALL - ( - col2 ) DIV col1 AS col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL - ( - col2 ) / col1 AS col1 FROM tab1
----
2
5
7

query I rowsort
SELECT - + 40 AS col0 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6946
SELECT - CAST( NULL AS SIGNED ) / - col1 - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6946
SELECT - CAST ( NULL AS INTEGER ) / - col1 - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) * - col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - - tab0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + col1 * + col0 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6950
SELECT ALL col0 + - col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL col0 + - col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 22 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
-513
-563
-819

query I rowsort
SELECT cor1.col2 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 6 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT - col2 + + col1 * + col1 * col0 AS col0 FROM tab0
----
177471
329314
736927

query I rowsort
SELECT - col2 * + 10 FROM tab0
----
-10
-330
-820

query I rowsort
SELECT + col1 + + 51 FROM tab1 AS cor0
----
61
64
77

query I rowsort
SELECT - + cor0.col2 * - col0 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT col0 + + ( col1 ) FROM tab2
----
137
38
96

query I rowsort
SELECT + col1 * - col1 + 58 * cor0.col1 FROM tab1 AS cor0
----
480
585
832

query I rowsort
SELECT + cor0.col0 + 44 * col0 AS col1 FROM tab0 AS cor0
----
1080
1575
4005

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT - col1 * col1 + + col2 DIV + 93 col0 FROM tab1 AS cor0
----
-100
-168
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6961
SELECT - col1 * col1 + + col2 / + 93 col0 FROM tab1 AS cor0
----
-100
-168
-676

query I rowsort
SELECT - - ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - col1 * col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6964
SELECT - + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6964
SELECT - + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6965
SELECT ALL - CAST( col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6965
SELECT ALL - CAST ( col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor0.col0 + + col2 + - col1 * cor0.col0 AS col0 FROM tab0 cor0
----
-2007
-3359
-7928

onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT ALL tab0.col1 * col1 DIV col0 FROM tab0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL tab0.col1 * col1 / col0 FROM tab0
----
268
308
93

query I rowsort
SELECT + col0 + 36 FROM tab1 AS cor0
----
100
116
39

query I rowsort
SELECT ALL 92 * - 57 FROM tab1 AS cor0
----
-5244
-5244
-5244

query I rowsort
SELECT DISTINCT ( - 87 ) AS col1 FROM tab2 AS cor0
----
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6971
SELECT CAST( NULL AS SIGNED ) + col0 + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6971
SELECT CAST ( NULL AS INTEGER ) + col0 + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 43 + col2 FROM tab0 AS cor0
----
-10
-42
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6973
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + 63 FROM tab1, tab0 AS cor0
----
63

query I rowsort
SELECT ALL + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col1 * - ( 63 ) FROM tab2 AS cor0
----
1071
1953
3717

query I rowsort
SELECT DISTINCT - - col2 - - col0 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 * - 80 col0 FROM tab0
----
1944
2835
7209

query I rowsort
SELECT ALL col1 * - col1 + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL cor0.col2 * cor0.col1 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 + 79 AS col2 FROM tab2 AS cor0
----
0
1
72

query I rowsort
SELECT ALL + 17 FROM tab2, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT 17 FROM tab0, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + 1 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT DISTINCT tab1.col2 DIV - cor0.col1 FROM tab1, tab1 AS cor0
----
-2
-3
-4
-5
-7
-9

skipif mysql # not compatible
query I rowsort label-6986
SELECT DISTINCT tab1.col2 / - cor0.col1 FROM tab1, tab1 AS cor0
----
-2
-3
-4
-5
-7
-9

query I rowsort
SELECT ALL + 14 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT 61 + + 35 FROM tab2, tab0 AS cor0
----
96

query I rowsort
SELECT + ( col0 ) + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col2 * + cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT DISTINCT - - 87 AS col0 FROM tab1 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 47 + - col2 col0 FROM tab2 AS cor0
----
20
21
9

query I rowsort
SELECT ALL cor0.col1 * + col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 2 * col1 + - col2 FROM tab1 AS cor0
----
-2
-37
-70

query I rowsort
SELECT + - col1 + + cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - - col0 * - col2 * + col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT ( col1 ) * col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + 31 * - 2 AS col1 FROM tab1
----
-62
-62
-62

query I rowsort
SELECT 14 + col1 AS col1 FROM tab0
----
100
105
111

query I rowsort
SELECT 59 * 95 FROM tab1
----
5605
5605
5605

query I rowsort
SELECT DISTINCT - col1 + - tab2.col1 AS col1 FROM tab2
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT DISTINCT - 9 - col2 DIV col0 FROM tab0
----
-10
-9

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT - 9 - col2 / col0 FROM tab0
----
-10
-9

query I rowsort
SELECT ALL - 60 + + tab2.col1 AS col1 FROM tab2
----
-1
-29
-43

query I rowsort
SELECT DISTINCT + col2 * - col0 + + 71 FROM tab2 AS cor0
----
-118
-1957
-2931

query I rowsort
SELECT + - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + - ( - col0 ) - 74 FROM tab2 AS cor0
----
-67
4
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT col2 * col1 DIV col2 + + cor0.col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-7009
SELECT col2 * col1 / col2 + + cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT + 91 * col1 AS col2 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT DISTINCT - ( col0 ) * 86 AS col2 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT - col2 + col0 * 13 AS col1 FROM tab1 AS cor0
----
-15
775
944

query I rowsort
SELECT - 57 + + col2 + tab1.col2 AS col2 FROM tab1
----
135
51
57

query I rowsort
SELECT DISTINCT - + 78 + + col1 + - 20 FROM tab0 AS cor0
----
-1
-12
-7

query I rowsort
SELECT ALL - ( - col1 ) - ( - col0 + - col1 ) * + col1 FROM tab1 AS cor0
----
1222
750
780

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT ALL - col1 + col0 DIV - ( - col0 ) FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - col1 + col0 / - ( - col0 ) FROM tab0
----
-85
-90
-96

query I rowsort
SELECT - 6 + col1 FROM tab1
----
20
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + + ( col1 * - col2 ) + + col2 col0 FROM tab2
----
-3536
-3610
-999

query I rowsort
SELECT + 79 AS col2 FROM tab2
----
79
79
79

query I rowsort
SELECT DISTINCT 72 + - col2 + + 12 AS col0 FROM tab0
----
2
51
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT ALL - col1 DIV - col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL - col1 / - col2 AS col0 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab2, tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * - cor0.col1 + - col0 AS col2 FROM tab2 cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT DISTINCT + col0 DIV ( + 67 ) FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + col0 / ( + 67 ) FROM tab1 cor0
----
0
1

query I rowsort
SELECT col0 * 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - 51 FROM tab0
----
-4386
-4641
-4947

query I rowsort
SELECT + col2 * 44 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT cor0.col2 * - col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT - + col1 + - 86 FROM tab0 AS cor0
----
-172
-177
-183

query I rowsort
SELECT - col0 + col0 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - ( tab0.col0 ) * col1 AS col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT ALL 74 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL 74 / + col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT tab2.col1 + tab2.col0 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 * + col2 + + cor0.col2 + col1 col1 FROM tab0 AS cor0
----
1274
133
3043

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7036
SELECT ( - 95 ) + + col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT ( - 95 ) + + col1 * CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 85 FROM tab0 cor0
----
-85
-85
-85

query I rowsort
SELECT - - 88 + + col0 * - col2 FROM tab2 AS cor0
----
-101
-1940
-2914

query I rowsort
SELECT ALL + + 3 + + col2 FROM tab0 AS cor0
----
36
4
85

query I rowsort
SELECT DISTINCT - - col0 + + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + 66 + 54 + - col0 FROM tab2 cor0
----
113
41
42

query I rowsort
SELECT ALL + + 59 FROM tab1 AS cor0
----
59
59
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7043
SELECT - - ( - cor0.col2 ) + col1 DIV ( - col1 ) AS col0 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-7043
SELECT - - ( - cor0.col2 ) + col1 / ( - col1 ) AS col0 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT ALL + + ( ( col1 ) ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * + col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - cor0.col2 + - col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col0 * 67 + + col0 AS col1 FROM tab2 cor0
----
476
5304
5372

query I rowsort
SELECT - - cor0.col1 * col2 - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - + 5 * - col1 * + col0 AS col1 FROM tab1 cor0
----
3200
390
5200

query I rowsort
SELECT DISTINCT + - 45 + col1 AS col0 FROM tab1 AS cor0
----
-19
-32
-35

query I rowsort
SELECT + 50 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT - col1 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - - col1 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col1 + - col2 * 19 AS col0 FROM tab2 AS cor0
----
-544
-553
-739

query I rowsort
SELECT ALL 72 + - 51 * - col0 FROM tab2
----
4050
4101
429

query I rowsort
SELECT - col2 * + col2 + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT - col0 - cor0.col0 * col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT + ( cor0.col2 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + - col0 * col1 * col2 col0 FROM tab0 AS cor0
----
-3343
-664066
-68060

onlyif mysql # use DIV operator for integer division
query I rowsort label-7060
SELECT + cor0.col0 DIV + col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7060
SELECT + cor0.col0 / + col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT - ( 25 ) * + col2 * + col1 FROM tab2 AS cor0
----
-16150
-20925
-38350

query I rowsort
SELECT col1 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT cor0.col0 * - col1 + col0 * + ( col2 ) FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT cor0.col1 * - col1 + + col1 AS col1 FROM tab2 cor0
----
-272
-3422
-930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7065
SELECT + col0 * CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT + col0 * CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + cor0.col0 + 75 AS col0 FROM tab1 AS cor0
----
139
155
78

query I rowsort
SELECT ALL - col0 + col1 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1181
1427
516

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7070
SELECT DISTINCT tab2.col2 * CAST( col2 * - col2 AS SIGNED ) FROM tab2
----
-17576
-19683
-54872

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT tab2.col2 * CAST ( col2 * - col2 AS INTEGER ) FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT - col0 + + tab1.col1 AS col2 FROM tab1
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7072
SELECT ALL - tab2.col1 * + CAST( NULL AS DECIMAL ) + - 53 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - tab2.col1 * + CAST ( NULL AS REAL ) + - 53 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col0 FROM tab0
----
172
182
194

query I rowsort
SELECT - col1 * + 36 FROM tab0
----
-3096
-3276
-3492

query I rowsort
SELECT + col2 * - 21 AS col2 FROM tab2
----
-546
-567
-798

query I rowsort
SELECT tab0.col0 AS col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # use DIV operator for integer division
query I rowsort label-7077
SELECT + col1 DIV - col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7077
SELECT + col1 / - col0 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + + 90 * col1 FROM tab1 cor0
----
1170
2340
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT DISTINCT ( - cor0.col2 ) * col2 DIV - col0 FROM tab1 AS cor0
----
115
50
972

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT ( - cor0.col2 ) * col2 / - col0 FROM tab1 AS cor0
----
115
50
972

query I rowsort
SELECT 44 * + col2 + cor0.col2 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT + cor0.col1 + col0 - col0 * col2 FROM tab1 AS cor0
----
-133
-3574
-7587

query I rowsort
SELECT ALL 80 * - col0 + + col1 - + tab1.col0 FROM tab1
----
-217
-5174
-6467

query I rowsort
SELECT ALL + 2 + + col2 * + col0 + col2 * col1 AS col2 FROM tab1
----
1568
4220
8930

query I rowsort
SELECT 26 + - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e276b40eb01817173361fc61d02cc063

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT cor0.col0 * + col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - 65 * + cor0.col2 + col2 * col0 FROM tab2 AS cor0
----
-1566
338
532

query I rowsort
SELECT ALL 11 AS col2 FROM tab0
----
11
11
11

query I rowsort
SELECT ALL cor0.col1 + - 21 AS col1 FROM tab0 AS cor0
----
65
70
76

query I rowsort
SELECT DISTINCT - - col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7091
SELECT ALL + tab2.col1 + + col1 DIV - col0 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + tab2.col1 + + col1 / - col0 FROM tab2
----
17
27
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7092
SELECT + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT 72 + - col0 * col1 AS col2 FROM tab0 cor0
----
-1992
-3323
-8027

query I rowsort
SELECT + + ( col2 ) + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col2 + + cor0.col1 * + 70 - + col1 FROM tab2 AS cor0
----
-1829
1950
2043

query I rowsort
SELECT + - ( + 61 ) * col0 - 58 AS col0 FROM tab2 AS cor0
----
-4816
-485
-4877

query I rowsort
SELECT ALL - col1 + col0 * - col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL + col1 + + col1 + - col2 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT + col0 + col2 * col1 AS col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col1 + - col0 AS col1 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7102
SELECT DISTINCT + + 67 DIV col1 FROM tab1 AS cor0
----
2
5
6

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT + + 67 / col1 FROM tab1 AS cor0
----
2
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + cor0.col1 ) + - col0 col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL 89 * + cor0.col2 + + ( 82 + + col1 ) FROM tab2 AS cor0
----
2455
2516
3481

onlyif mysql # use DIV operator for integer division
query I rowsort label-7105
SELECT ALL - - col1 * col2 DIV + 94 FROM tab2 AS cor0
----
16
6
8

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - - col1 * col2 / + 94 FROM tab2 AS cor0
----
16
6
8

query I rowsort
SELECT ALL - + cor0.col1 * col1 + + col2 * 68 AS col1 FROM tab0 AS cor0
----
-2705
-5152
-9341

query I rowsort
SELECT DISTINCT - 65 * - col2 + col0 FROM tab0 AS cor0
----
100
2169
5419

onlyif mysql # use DIV operator for integer division
query I rowsort label-7108
SELECT ALL + - 30 DIV cor0.col2 FROM tab0 AS cor0
----
-30
0
0

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + - 30 / cor0.col2 FROM tab0 AS cor0
----
-30
0
0

query I rowsort
SELECT ALL 53 + + col1 * + col2 FROM tab1 AS cor0
----
1301
1457
623

query I rowsort
SELECT + + 10 AS col0 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT ALL + + col2 DIV col2 + cor0.col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL + + col2 / col2 + cor0.col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT + col1 + + 97 * col1 AS col1 FROM tab0
----
8428
8918
9506

query I rowsort
SELECT col2 * + 17 AS col0 FROM tab0
----
1394
17
561

onlyif mysql # use DIV operator for integer division
query I rowsort label-7114
SELECT 59 DIV col2 + col2 FROM tab0
----
34
60
82

skipif mysql # not compatible
query I rowsort label-7114
SELECT 59 / col2 + col2 FROM tab0
----
34
60
82

query I rowsort
SELECT DISTINCT + col0 + + tab2.col1 + col0 FROM tab2
----
175
215
45

query I rowsort
SELECT + - col0 - - ( col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT ALL - col0 + col2 DIV 52 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL - col0 + col2 / 52 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col2 * ( cor0.col1 + - col0 ) AS col2 FROM tab1 AS cor0
----
-3078
-6432
1242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + cor0.col2 + col0 * col0 col1 FROM tab0 AS cor0
----
-513
1197
1224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 29 col0 FROM tab1 AS cor0
----
-16
-19
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT DISTINCT + col0 + + col2 DIV col0 col1 FROM tab0 AS cor0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT + col0 + + col2 / col0 col1 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT DISTINCT + col0 * + 99 AS col1 FROM tab1 cor0
----
297
6336
7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT - col1 DIV - ( + 47 ) + + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7123
SELECT - col1 / - ( + 47 ) + + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + col1 + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + col1 * + ( + col2 ) + col0 * ( col2 ) FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL - col2 * 70 + + col1 AS col1 FROM tab0 AS cor0
----
-2224
-5649
27

query I rowsort
SELECT ALL + + col1 - - col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - + col1 * - col2 - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - tab0.col0 * col1 AS col1 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7130
SELECT col1 + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-7130
SELECT col1 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
53
9
96

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2, tab0 AS cor3
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38

query I rowsort
SELECT DISTINCT col0 - + 73 * col2 FROM tab0
----
-2385
-38
-5897

query I rowsort
SELECT col2 * - 55 - col0 * - col2 AS col2 FROM tab2 AS cor0
----
-1296
598
912

query I rowsort
SELECT DISTINCT - col0 + ( tab1.col1 ) AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + - ( - ( col0 ) ) * + 35 AS col0 FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT DISTINCT - col2 * - tab2.col1 + - 82 FROM tab2
----
1452
564
755

query I rowsort
SELECT - - col0 * - 28 + - col1 + - 25 FROM tab2 cor0
----
-2254
-2268
-252

query I rowsort
SELECT - + ( cor0.col0 ) + col1 * col0 - col2 AS col1 FROM tab1 AS cor0
----
21
519
864

query I rowsort
SELECT + cor0.col0 + - col2 + col0 FROM tab2 cor0
----
-13
120
130

query I rowsort
SELECT col2 + - tab2.col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT col0 DIV - CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7142
SELECT col0 / - CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-6
-6
0

query I rowsort
SELECT DISTINCT - col2 + + 35 AS col1 FROM tab2
----
-3
8
9

query I rowsort
SELECT DISTINCT + col2 * col1 + - 14 * + tab0.col1 AS col1 FROM tab0
----
-1261
1634
6188

query I rowsort
SELECT 51 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT 36 FROM tab2, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL col1 * + ( + cor0.col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - cor0.col0 + - col2 * col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT col1 * 47 AS col0 FROM tab0 AS cor0
----
4042
4277
4559

query I rowsort
SELECT ( col1 ) * + cor0.col1 + 54 - 75 * col0 FROM tab1 AS cor0
----
-4646
-5777
505

query I rowsort
SELECT DISTINCT + ( - 81 ) FROM tab2 cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col2 * cor0.col2 col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL - 99 + - 39 AS col0 FROM tab1 AS cor0
----
-138
-138
-138

query I rowsort
SELECT + - 67 AS col2 FROM tab0 AS cor0
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 - cor0.col2 * col1 col2 FROM tab1 AS cor0
----
-1346
-1502
-668

onlyif mysql # use DIV operator for integer division
query I rowsort label-7156
SELECT col2 + col0 * col1 DIV col1 AS col2 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-7156
SELECT col2 + col0 * col1 / col1 AS col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col0 FROM tab1
----
-10
-10
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT - ( + col1 ) DIV + col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-7158
SELECT - ( + col1 ) / + col0 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + 47 * col2 + col2 FROM tab0 AS cor0
----
1584
3936
48

query I rowsort
SELECT ALL 72 + + col1 FROM tab0 AS cor0
----
158
163
169

query I rowsort
SELECT ALL - + cor0.col0 * - col2 * + col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT - 57 + col0 FROM tab0 AS cor0
----
-22
-33
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-7163
SELECT - - col1 DIV + col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7163
SELECT - - col1 / + col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col0 * + 38 AS col1 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-7166
SELECT DISTINCT + col2 * ( - col0 ) DIV col1 FROM tab2 AS cor0
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT + col2 * ( - col0 ) / col1 FROM tab2 AS cor0
----
-176
-34
-6

query I rowsort
SELECT - - col0 * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + ( cor0.col0 ) * 40 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT - col1 * - 20 FROM tab2
----
1180
340
620

query I rowsort
SELECT DISTINCT 61 * + cor0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0, tab1 AS cor1
----
1586
1647
2318

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7172
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 79 * col0 FROM tab0 AS cor0
----
1896
2765
7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT 21 * cor0.col2 + - col2 FROM tab2 AS cor0
----
520
540
760

query I rowsort
SELECT col2 + - 60 AS col0 FROM tab1 AS cor0
----
-3
-6
36

query I rowsort
SELECT col0 * col2 + + col2 * col1 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT - + col1 * col0 - + ( - col0 + 46 ) * col1 AS col2 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT DISTINCT col0 * - 44 AS col0 FROM tab1 AS cor0
----
-132
-2816
-3520

query I rowsort
SELECT - - col1 + - 24 AS col0 FROM tab0 AS cor0
----
62
67
73

query I rowsort
SELECT - - 31 + - col2 AS col2 FROM tab2 cor0
----
-7
4
5

query I rowsort
SELECT ( - 2 ) FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to fbbdc69ed4bc9a68f44d1ba867b620b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 + - col2 col0 FROM tab1
----
-105
-112
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7185
SELECT CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7185
SELECT CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + ( - col0 * + col0 ) + col0 FROM tab2
----
-6065
-6179
-73

query I rowsort
SELECT - col2 * + ( col1 ) FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + + 89 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-270
-5760
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 8 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT + + 2 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
-42
-75
33

query I rowsort
SELECT ( - cor0.col1 ) + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + 56 * ( col0 ) + ( + col1 * col0 + col1 ) FROM tab1 AS cor0
----
272
4234
5533

query I rowsort
SELECT - cor0.col1 + + cor0.col1 * cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d11e5aa664e51cd9821aac4621dcfc8a

query I rowsort
SELECT DISTINCT - col0 + ( - col1 ) AS col1 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT tab2.col0 + - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f8c8144a1e750f938e34a2795af6b4c2

query I rowsort
SELECT 14 + + col1 * + col1 FROM tab1 AS cor0
----
114
183
690

query I rowsort
SELECT ALL - 18 * 35 FROM tab0 AS cor0
----
-630
-630
-630

query I rowsort
SELECT + cor0.col2 - + col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - col2 * col0 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 98 ) * - cor0.col2 * 15 + + col0 col2 FROM tab1 AS cor0
----
-141040
-79377
-83726

query I rowsort
SELECT DISTINCT - + 97 + + cor0.col0 FROM tab0 AS cor0
----
-62
-73
-8

query I rowsort
SELECT ALL 11 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
-15
-2
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * ( col2 + ( col0 ) ) col0 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT ( + 15 ) - col2 FROM tab2 AS cor0
----
-11
-12
-23

query I rowsort
SELECT + 74 * - col2 - col0 AS col2 FROM tab1 AS cor0
----
-3999
-4282
-7184

query I rowsort
SELECT - + 39 AS col0 FROM tab1 AS cor0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7208
SELECT ALL - col0 * col1 + - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL - col0 * col1 + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * col2 col2 FROM tab1 AS cor0
----
-3186
-3363
-5664

query I rowsort
SELECT ALL 24 - - col1 FROM tab0
----
110
115
121

query I rowsort
SELECT DISTINCT tab2.col2 - ( + col2 + - tab2.col2 ) * - 15 * - col1 FROM tab2
----
26
27
38

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 cor1
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT + ( + 84 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL - - 47 * col0 FROM tab2 cor0
----
329
3666
3713

query I rowsort
SELECT DISTINCT col2 * tab1.col2 * + col2 AS col2 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT ALL - - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 48 * + 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT cor0.col2 + - ( col2 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7221
SELECT DISTINCT cor0.col1 + + CAST( - cor0.col2 AS SIGNED ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort label-7221
SELECT DISTINCT cor0.col1 + + CAST ( - cor0.col2 AS INTEGER ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 94 col0 FROM tab0 AS cor0
----
-94
-94
-94

query I rowsort
SELECT + 56 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
120
136
59

query I rowsort
SELECT DISTINCT col2 + 26 * col0 AS col2 FROM tab0 cor0
----
2396
657
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-7226
SELECT DISTINCT + + col1 DIV col0 col1 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT + + col1 / col0 col1 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT ALL + col1 * col1 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
10634
16202
7972

query I rowsort
SELECT ALL - col0 + - 31 * col1 FROM tab1 AS cor0
----
-374
-483
-809

onlyif mysql # use DIV operator for integer division
query I rowsort label-7229
SELECT tab1.col1 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7229
SELECT tab1.col1 / - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col0 - - ( col0 ) AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT ( col2 ) + - col0 * 89 FROM tab2
----
-596
-6916
-6993

query I rowsort
SELECT + - 97 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7233
SELECT - cor0.col0 * - cor0.col0 + - col1 * + col1 - + CAST( NULL AS SIGNED ) * 35 * - col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7233
SELECT - cor0.col0 * - cor0.col0 + - col1 * + col1 - + CAST ( NULL AS INTEGER ) * 35 * - col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + col0 - - ( + col0 ) * cor0.col0 FROM tab1 AS cor0
----
-42
4103
6384

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7235
SELECT - CAST( + 66 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

skipif mysql # not compatible
query I rowsort label-7235
SELECT - CAST ( + 66 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # use DIV operator for integer division
query I rowsort label-7236
SELECT col0 * + col0 + col2 DIV - col0 FROM tab1 AS cor0
----
-9
4096
6399

skipif mysql # not compatible
query I rowsort label-7236
SELECT col0 * + col0 + col2 / - col0 FROM tab1 AS cor0
----
-9
4096
6399

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT DISTINCT col1 * - ( ( - col2 ) ) + - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1475
629
806

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT col1 * - ( ( - col2 ) ) + - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + 66 * + col0 col0 FROM tab0 AS cor0
----
-1608
-2345
-5963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - - 84 * cor0.col0 col2 FROM tab2 cor0
----
615
6578
6674

query I rowsort
SELECT ALL + - cor0.col0 - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - col2 * + col1 * col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT col1 + 30 * - col2 AS col0 FROM tab1 cor0
----
-1594
-1700
-2867

onlyif mysql # use DIV operator for integer division
query I rowsort label-7244
SELECT 69 + + 67 DIV col0 FROM tab1 AS cor0
----
69
70
91

skipif mysql # not compatible
query I rowsort label-7244
SELECT 69 + + 67 / col0 FROM tab1 AS cor0
----
69
70
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7245
SELECT ALL - col2 DIV - 54 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - col2 / - 54 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 77 * + col1 FROM tab0 cor0
----
-6622
-7007
-7469

query I rowsort
SELECT ALL + - 85 + col0 AS col2 FROM tab0 AS cor0
----
-50
-61
4

query I rowsort
SELECT ALL - col1 * + ( col2 + ( + col1 ) ) FROM tab1 AS cor0
----
-1417
-2080
-670

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee

query I rowsort
SELECT DISTINCT + + ( 68 ) FROM tab1 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * 64 col0 FROM tab0 cor0
----
5504
5504
5504

query I rowsort
SELECT DISTINCT + ( 81 ) + col1 AS col0 FROM tab1 AS cor0
----
107
91
94

query I rowsort
SELECT ALL + cor1.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - cor0.col2 + + col0 - col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL - 26 * + col1 + + 79 FROM tab2 AS cor0
----
-1455
-363
-727

query I rowsort
SELECT ALL - col0 * - col1 + col1 FROM tab1 cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * - col0 * - ( col1 ) col0 FROM tab0 AS cor0
----
162960
388752
99072

query I rowsort
SELECT ALL + cor0.col0 * col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - 35 FROM tab1 AS cor0
----
-35
-35
-35

query I rowsort
SELECT col1 * + col1 + - col0 - col1 FROM tab2 AS cor0
----
193
3344
923

query I rowsort
SELECT col0 + + col2 + 30 AS col1 FROM tab1 AS cor0
----
151
206
87

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * - col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + - col2 col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + col2 * - 72 - + col2 AS col2 FROM tab1
----
-3942
-4161
-7008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7267
SELECT ALL CAST( NULL AS SIGNED ) / tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL CAST ( NULL AS INTEGER ) / tab1.col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 44 AS col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT DISTINCT + + col0 * + col1 + + cor0.col0 FROM tab2 cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + tab2.col2 ) col2 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7272
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT + - col1 - ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7274
SELECT - col0 * - CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT - col0 * - CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * col0 + col2 - - col0 AS col0 FROM tab2 cor0
----
-15
-5980
-6124

query I rowsort
SELECT + - col1 * - 25 - col0 AS col2 FROM tab2 AS cor0
----
1397
346
768

query I rowsort
SELECT + + ( tab2.col0 ) * - 33 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 42dfc5922d37b929c26236266da289e0

query I rowsort
SELECT DISTINCT 41 * col2 AS col0 FROM tab2
----
1066
1107
1558

query I rowsort
SELECT 41 + tab0.col0 * + 14 * +