sqllogictest
Artifact Content
Not logged in

Artifact 77f4f8f04af795a2fbd1d719f61cea8a64dc4ddb:


hash-threshold 8

statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)

statement ok
INSERT INTO tab0 VALUES(89,91,82)

statement ok
INSERT INTO tab0 VALUES(35,97,1)

statement ok
INSERT INTO tab0 VALUES(24,86,33)

statement ok
INSERT INTO tab1 VALUES(64,10,57)

statement ok
INSERT INTO tab1 VALUES(3,26,54)

statement ok
INSERT INTO tab1 VALUES(80,13,96)

statement ok
INSERT INTO tab2 VALUES(7,31,27)

statement ok
INSERT INTO tab2 VALUES(79,17,38)

statement ok
INSERT INTO tab2 VALUES(78,59,26)

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

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

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

query I rowsort
SELECT col2 + col0 * col0 * + col1 AS col2 FROM tab2
----
106135
1546
358982

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

query I rowsort
SELECT ALL - col1 - + col1 * col0 * - col0 FROM tab1
----
208
40950
83187

query I rowsort
SELECT DISTINCT tab2.col2 * + col0 * col0 + + col0 AS col2 FROM tab2
----
1330
158262
237237

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) <= ( NULL )
----

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

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

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

query I rowsort
SELECT ALL + col1 + col0 + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2887
-3175
-9123

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * cor0.col0 * col0 IN ( cor0.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

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

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

query I rowsort
SELECT ALL 65 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

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

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

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

query I rowsort
SELECT 36 + - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c761383b343d4c64e68e89b73770aab7

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT + + 91 * col0 AS col2 FROM tab1 cor0
----
273
5824
7280

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + col2 * col0 FROM tab1 AS cor0
----
165
3712
7760

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

query I rowsort
SELECT ALL - 91 * cor0.col2 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to fcec2a4923c75113326f64f8938eea9b

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-32
SELECT col2 * col2 * CAST( col1 AS SIGNED ) - cor0.col2 FROM tab2 AS cor0
----
22572
24510
39858

skipif mysql # not compatible
query I rowsort label-32
SELECT col2 * col2 * CAST ( col1 AS INTEGER ) - cor0.col2 FROM tab2 AS cor0
----
22572
24510
39858

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT cor0.col0 DIV - col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-36
SELECT cor0.col0 / - col0 FROM tab1 cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT ALL - 67 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT cor1.col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

skipif mysql # not compatible
query I rowsort label-40
SELECT + col0 + col2 - - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
100
3
45

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

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

query I rowsort
SELECT ALL col1 * - cor0.col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT col1 + - ( + 23 * + col2 + col0 ) FROM tab2 cor0
----
-597
-617
-936

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + 37 + col1 col2 FROM tab1 AS cor0
----
380
494
988

skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col1 / CAST ( - col1 AS REAL ) FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col1 FROM tab1
----
-100
-169
-676

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

query I rowsort
SELECT + 0 * + col0 FROM tab2
----
0
0
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 24 + col1 * CAST ( NULL AS INTEGER ) - - 50 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - ( - 40 * tab1.col1 ) - + ( 41 ) FROM tab1
----
359
479
999

query I rowsort
SELECT ALL col2 * + col2 * - col2 + col0 * - col0 - + col1 AS col1 FROM tab2
----
-19763
-23719
-61130

query I rowsort
SELECT DISTINCT col1 + col2 * col1 * + col0 AS col1 FROM tab1 AS cor0
----
36490
4238
99853

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

skipif mysql # not compatible
query I rowsort label-59
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) * - col0 + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

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

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

query I rowsort
SELECT ALL 76 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + + col2 + 43 FROM tab0 AS cor0
----
125
44
76

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

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

query I rowsort
SELECT ALL - 80 AS col1 FROM tab1 cor0
----
-80
-80
-80

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

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

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

query I rowsort
SELECT - 40 + + col2 * col0 FROM tab0 AS cor0
----
-5
7258
752

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT + - 66 DIV - col1 + + 88 * col1 AS col0 FROM tab0 AS cor0
----
7568
8008
8536

skipif mysql # not compatible
query I rowsort label-72
SELECT + - 66 / - col1 + + 88 * col1 AS col0 FROM tab0 AS cor0
----
7568
8008
8536

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

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

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

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

query I rowsort
SELECT DISTINCT 80 * col0 - ( 26 * - col2 ) FROM tab2 AS cor0
----
1262
6916
7308

query I rowsort
SELECT 67 + col0 AS col2 FROM tab1 AS cor0
----
131
147
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-79
SELECT DISTINCT col0 * + col0 + + col2 - + 8 DIV + col1 AS col2 FROM tab1
----
4153
63
6496

skipif mysql # not compatible
query I rowsort label-79
SELECT DISTINCT col0 * + col0 + + col2 - + 8 / + col1 AS col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT ALL col0 - + 89 AS col2 FROM tab2
----
-10
-11
-82

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

skipif mysql # not compatible
query I rowsort label-81
SELECT - col0 * ( col1 ) / ( + ( - col2 ) * col1 ) FROM tab1
----
0
0
1

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

query I rowsort
SELECT ALL - col2 + cor0.col2 * - ( + col0 * col1 ) AS col1 FROM tab2 AS cor0
----
-119678
-51072
-5886

query I rowsort
SELECT ALL - 55 AS col2 FROM tab1 AS cor0
----
-55
-55
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-85
SELECT col2 + - 92 DIV col2 FROM tab1 AS cor0
----
53
56
96

skipif mysql # not compatible
query I rowsort label-85
SELECT col2 + - 92 / col2 FROM tab1 AS cor0
----
53
56
96

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

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

query I rowsort
SELECT DISTINCT - col0 * 61 FROM tab1 cor0
----
-183
-3904
-4880

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

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

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

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

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

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

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

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

query I rowsort
SELECT + 92 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( - cor0.col2 ) + col2 col1 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 30 col2 FROM tab0 cor0
----
-1050
-2670
-720

query I rowsort
SELECT ALL + col0 + 11 * col2 FROM tab1 AS cor0
----
1136
597
691

query I rowsort
SELECT - col0 * col2 + 51 FROM tab2 cor0
----
-138
-1977
-2951

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

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

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

query I rowsort
SELECT ALL col0 * + 32 AS col0 FROM tab0 AS cor0
----
1120
2848
768

query I rowsort
SELECT ALL - col2 * cor0.col1 + + col2 * col2 FROM tab1 AS cor0
----
1512
2679
7968

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

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

query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f

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

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

query I rowsort
SELECT ALL - + col1 * 10 - col0 FROM tab1 AS cor0
----
-164
-210
-263

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * 30 col0 FROM tab0 AS cor0
----
-1020
-1020
-1020

query I rowsort
SELECT ALL 99 + col2 AS col2 FROM tab2 AS cor0
----
125
126
137

query I rowsort
SELECT DISTINCT col0 + cor0.col0 - + col2 * - ( col2 + + col1 * - col2 ) AS col0 FROM tab0 AS cor0
----
-26
-604982
-92517

query I rowsort
SELECT - 85 + - cor0.col2 FROM tab1 AS cor0
----
-139
-142
-181

query I rowsort
SELECT ALL - - 32 + col1 * + col0 FROM tab0 AS cor0
----
2096
3427
8131

query I rowsort
SELECT DISTINCT ( - 8 ) * - col1 + ( - cor0.col2 ) FROM tab0 cor0
----
646
655
775

query I rowsort
SELECT col0 + col1 * + 23 AS col0 FROM tab2
----
1435
470
720

query I rowsort
SELECT - col0 * ( + ( tab0.col1 ) ) + 41 AS col2 FROM tab0
----
-2023
-3354
-8058

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

query I rowsort
SELECT + col1 * col0 * + col2 - + col1 * + col1 FROM tab0
----
-6014
60716
655837

query I rowsort
SELECT ALL + - cor0.col0 * 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6e79ae544e0c71adfc130f8679335693

query I rowsort
SELECT ALL 94 AS col1 FROM tab0
----
94
94
94

query I rowsort
SELECT + 42 + - col0 * - col0 FROM tab0
----
1267
618
7963

query I rowsort
SELECT DISTINCT + 75 * cor0.col0 FROM tab0 AS cor0
----
1800
2625
6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + col2 col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col1 * + 3 + col2 * - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-2991
-3215
-9175

query I rowsort
SELECT DISTINCT - + 88 * col2 AS col0 FROM tab2 AS cor0
----
-2288
-2376
-3344

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

query I rowsort
SELECT DISTINCT 49 + 98 AS col1 FROM tab0 AS cor0
----
147

onlyif mysql # use DIV operator for integer division
query I rowsort label-129
SELECT DISTINCT + CAST( col1 AS SIGNED ) DIV - col0 - + col1 col0 FROM tab0 AS cor0
----
-89
-92
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT + CAST ( col1 AS INTEGER ) / - col0 - + col1 col0 FROM tab0 AS cor0
----
-89
-92
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT + 4 + tab2.col1 * 91 * col0 - + col0 AS col2 FROM tab2
----
122138
19744
418708

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

skipif mysql # not compatible
query I rowsort label-132
SELECT cor0.col2 + + col0 / - col0 FROM tab2 AS cor0
----
25
26
37

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 * col2 + + col2 * col0 col1 FROM tab0
----
1683
62
9512

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

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

query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col2 * - 83 FROM tab0
----
-2739
-6806
-83

query I rowsort
SELECT DISTINCT col0 * + 73 FROM tab2
----
511
5694
5767

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

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

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

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

query I rowsort
SELECT + + 26 * + col1 FROM tab2 AS cor0
----
1534
442
806

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

query I rowsort
SELECT + col2 + col1 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1019
344
3566

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

query I rowsort
SELECT + cor0.col1 * + 70 AS col2 FROM tab1 AS cor0
----
1820
700
910

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

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

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

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

query I rowsort
SELECT DISTINCT - cor2.col1 * 12 FROM tab0, tab1 cor0, tab0 AS cor1, tab2 AS cor2
----
-204
-372
-708

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

query I rowsort
SELECT + col1 + - 59 AS col2 FROM tab0
----
27
32
38

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * + col0 + col2 * col0 col2 FROM tab0
----
15575
3024
3290

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * - col1 col2 FROM tab2
----
289
3481
961

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

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

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

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

query I rowsort
SELECT ALL - + ( col2 ) * + 46 FROM tab1 AS cor0
----
-2484
-2622
-4416

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

query I rowsort
SELECT ALL tab1.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT + col2 + - 98 - + col1 * col0 AS col2 FROM tab1
----
-1042
-122
-681

query I rowsort
SELECT 31 + + col2 FROM tab2
----
57
58
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT ALL - tab0.col2 * - 57 FROM tab0, tab1 AS cor0
----
9 values hashing to 1d6306f216c759692cd9a50966ae3340

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 * col2 * - col2 + + col2 col0 FROM tab1
----
207993
737376
8802

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-178
SELECT + cor0.col2 DIV ( + 10 ) FROM tab2 cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-178
SELECT + cor0.col2 / ( + 10 ) FROM tab2 cor0
----
2
2
3

query I rowsort
SELECT ALL 60 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT - col2 * ( 57 ) AS col1 FROM tab0
----
-1881
-4674
-57

query I rowsort
SELECT + col0 + + ( + 25 ) * + col0 AS col2 FROM tab0 AS cor0
----
2314
624
910

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-183
SELECT + col2 * + col0 DIV - cor0.col0 + col0 * cor0.col1 FROM tab1 AS cor0
----
24
583
944

skipif mysql # not compatible
query I rowsort label-183
SELECT + col2 * + col0 / - cor0.col0 + col0 * cor0.col1 FROM tab1 AS cor0
----
24
583
944

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

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 23 AS REAL ) + col1 FROM tab2 AS cor0
----
-6
36
8

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

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

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

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

query I rowsort
SELECT DISTINCT 72 * + 7 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
504

query I rowsort
SELECT DISTINCT col0 * 88 - cor0.col1 AS col0 FROM tab0 AS cor0
----
2026
2983
7741

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-196
SELECT DISTINCT + + col0 + + col2 DIV - cor0.col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-196
SELECT DISTINCT + + col0 + + col2 / - cor0.col2 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-197
SELECT DISTINCT - col1 + - 27 DIV col2 - + col0 AS col2 FROM tab0 AS cor0
----
-110
-159
-180

skipif mysql # not compatible
query I rowsort label-197
SELECT DISTINCT - col1 + - 27 / col2 - + col0 AS col2 FROM tab0 AS cor0
----
-110
-159
-180

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * 55 + cor0.col1 + col2 * + col2 AS col2 FROM tab1 AS cor0
----
3809
4372
9944

query I rowsort
SELECT DISTINCT - col2 + - 66 AS col0 FROM tab1 AS cor0
----
-120
-123
-162

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

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

query I rowsort
SELECT - col2 - - 97 * + col0 FROM tab0
----
2295
3394
8551

query I rowsort
SELECT ALL 44 * col0 + + col2 * - ( ( col1 ) ) FROM tab2
----
-529
1898
2830

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

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

query I rowsort
SELECT col2 + + 96 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
272481
716434
9313

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

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

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

query I rowsort
SELECT ALL - cor1.col0 AS col0 FROM tab0, tab0 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT col1 + ( + col2 + + 89 ) FROM tab0
----
187
208
262

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

query I rowsort
SELECT - 66 * col2 * col0 FROM tab0 cor0
----
-2310
-481668
-52272

query I rowsort
SELECT - ( + col0 ) * 62 AS col2 FROM tab1 AS cor0
----
-186
-3968
-4960

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-220
SELECT + col1 DIV + col2 + - 83 * col0 AS col1 FROM tab1 AS cor0
----
-249
-5312
-6640

skipif mysql # not compatible
query I rowsort label-220
SELECT + col1 / + col2 + - 83 * col0 AS col1 FROM tab1 AS cor0
----
-249
-5312
-6640

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

query I rowsort
SELECT DISTINCT 8 * col1 AS col0 FROM tab0 AS cor0
----
688
728
776

query I rowsort
SELECT - 66 FROM tab0 cor0
----
-66
-66
-66

query I rowsort
SELECT ALL - 21 FROM tab0 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL + 37 * col0 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT + + col0 * - col1 * 69 AS col2 FROM tab0 AS cor0
----
-142416
-234255
-558831

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

query I rowsort
SELECT DISTINCT + 40 * col1 AS col1 FROM tab2 AS cor0
----
1240
2360
680

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

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

query I rowsort
SELECT ALL col1 * col0 + - col2 + col1 FROM tab0 AS cor0
----
2117
3491
8108

query I rowsort
SELECT DISTINCT + 30 * col0 + - col0 + 19 FROM tab2 AS cor0
----
222
2281
2310

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col1 * + 37 FROM tab0
----
-273652
-306397
-348133

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

query I rowsort
SELECT 99 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

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

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

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

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

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

query I rowsort
SELECT + col2 * ( 16 ) AS col0 FROM tab2 AS cor0
----
416
432
608

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

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

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

query I rowsort
SELECT + + cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + 93 FROM tab0
----
93

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-252
SELECT DISTINCT - 68 DIV + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-16
-78
-79

skipif mysql # not compatible
query I rowsort label-252
SELECT DISTINCT - 68 / + col0 + - col0 AS col1 FROM tab2 AS cor0
----
-16
-78
-79

query I rowsort
SELECT + 38 + + 23 FROM tab1 AS cor0
----
61
61
61

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

query I rowsort
SELECT - - 87 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
-261
-5568
-6960

query I rowsort
SELECT DISTINCT - 74 * + col1 + col2 FROM tab1 AS cor0
----
-1870
-683
-866

query I rowsort
SELECT ALL col2 * - col0 * - col2 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-258
SELECT CAST( 66 AS SIGNED ) - col2 * - col0 AS col0 FROM tab0 AS cor0
----
101
7364
858

skipif mysql # not compatible
query I rowsort label-258
SELECT CAST ( 66 AS INTEGER ) - col2 * - col0 AS col0 FROM tab0 AS cor0
----
101
7364
858

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-260
SELECT DISTINCT + 77 DIV - 36 + col2 FROM tab1 AS cor0
----
52
55
94

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT + 77 / - 36 + col2 FROM tab1 AS cor0
----
52
55
94

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

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

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + CAST ( 0 AS INTEGER ) + col0 / - 91 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 92 + 8 FROM tab1 AS cor0
----
100

query I rowsort
SELECT - + col0 * + 68 + cor0.col2 FROM tab0 cor0
----
-1599
-2379
-5970

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

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

query I rowsort
SELECT col2 + + col2 * + 33 AS col2 FROM tab1
----
1836
1938
3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col2 + + col2 col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 18 col1 FROM tab1
----
1026
1728
972

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

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

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

query I rowsort
SELECT DISTINCT - + 11 AS col2 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT ALL - 28 + cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-63
-7326
-820

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

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

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

query I rowsort
SELECT DISTINCT 46 * - col2 + col2 + ( - tab0.col0 ) FROM tab0
----
-1509
-3779
-80

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0 CROSS JOIN tab1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242

query I rowsort
SELECT 33 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 94 col2 FROM tab2
----
1598
2914
5546

query I rowsort
SELECT ALL + ( cor0.col2 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

query I rowsort
SELECT DISTINCT col1 * + col1 + - col2 FROM tab1 cor0
----
43
622
73

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * + 19 FROM tab1
----
-1026
-1083
-1824

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

query I rowsort
SELECT + ( + 50 * cor0.col0 ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 16b1feffcfd4473538f200e291382324

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

query I rowsort
SELECT col1 * 84 FROM tab0
----
7224
7644
8148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + col2 col0 FROM tab1 AS cor0
----
-24
-583
-944

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8

onlyif mysql # use DIV operator for integer division
query I rowsort label-296
SELECT - - 84 * 72 DIV - col1 + cor0.col1 FROM tab2 AS cor0
----
-164
-338
-43

skipif mysql # not compatible
query I rowsort label-296
SELECT - - 84 * 72 / - col1 + cor0.col1 FROM tab2 AS cor0
----
-164
-338
-43

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

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

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

query I rowsort
SELECT - ( 82 ) + col1 AS col0 FROM tab0 cor0
----
15
4
9

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

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

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

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

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

query I rowsort
SELECT ALL cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT 53 + cor0.col0 AS col2 FROM tab2 AS cor0
----
131
132
60

query I rowsort
SELECT + - 56 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + ( + col2 ) * ( - 53 ) FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT ALL - 98 * col0 + 0 FROM tab2 cor0
----
-686
-7644
-7742

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

query I rowsort
SELECT 16 * tab0.col0 AS col1 FROM tab0
----
1424
384
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-311
SELECT ALL + tab0.col0 * + col1 + col2 DIV col1 FROM tab0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + tab0.col0 * + col1 + col2 / col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col1 + col1 * 6 AS col0 FROM tab1 AS cor0
----
130
50
65

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

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

skipif mysql # not compatible
query I rowsort label-314
SELECT + + col1 + - ( + col2 ) / col0 FROM tab1 AS cor0
----
10
12
8

query I rowsort
SELECT - col1 * ( col2 * + col2 ) + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

query I rowsort
SELECT - - col2 + 47 AS col2 FROM tab2 AS cor0
----
73
74
85

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

query I rowsort
SELECT DISTINCT - col0 + + 90 * - col2 + - col0 FROM tab2 AS cor0
----
-2444
-2496
-3578

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

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

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

query I rowsort
SELECT ALL - - col1 * - col1 FROM tab2 cor0
----
-289
-3481
-961

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT ALL col2 + + col0 DIV - col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL col2 + + col0 / - col0 FROM tab1 AS cor0
----
53
56
95

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

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

query I rowsort
SELECT DISTINCT + col1 * + col2 + 33 AS col0 FROM tab2 cor0
----
1567
679
870

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

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

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

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

query I rowsort
SELECT ALL 65 FROM tab2 AS cor0
----
65
65
65

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

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

query I rowsort
SELECT - ( 88 ) + + col2 AS col1 FROM tab2 AS cor0
----
-50
-61
-62

query I rowsort
SELECT 53 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - ( + 40 ) + cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d9eb610deede4783ee4023ba912085ca

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

query I rowsort
SELECT + 55 AS col2 FROM tab0
----
55
55
55

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

query I rowsort
SELECT + 8 FROM tab1
----
8
8
8

query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab1
----
20

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

query I rowsort
SELECT 49 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 - + col1 col1 FROM tab1
----
1
14
17

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

query I rowsort
SELECT ALL ( - col0 ) * - col2 + + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

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

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1 AS cor0
----
87

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

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

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

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

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

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

query I rowsort
SELECT ALL ( + tab0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT cor1.col1 * - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col1 + 99 AS col0 FROM tab2
----
116
130
158

query I rowsort
SELECT col1 + + ( 42 ) * col2 * + col1 FROM tab1
----
23950
52429
58994

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab0
----
38

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

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

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

query I rowsort
SELECT DISTINCT - col1 * 73 AS col2 FROM tab0
----
-6278
-6643
-7081

query I rowsort
SELECT 27 - 71 FROM tab2
----
-44
-44
-44

query I rowsort
SELECT + 80 + col0 AS col1 FROM tab1
----
144
160
83

query I rowsort
SELECT col2 + 58 AS col1 FROM tab0
----
140
59
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-370
SELECT 88 + 44 DIV col1 FROM tab2
----
88
89
90

skipif mysql # not compatible
query I rowsort label-370
SELECT 88 + 44 / col1 FROM tab2
----
88
89
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-371
SELECT - CAST( col0 * col1 AS SIGNED ) - tab0.col0 FROM tab0
----
-2088
-3430
-8188

skipif mysql # not compatible
query I rowsort label-371
SELECT - CAST ( col0 * col1 AS INTEGER ) - tab0.col0 FROM tab0
----
-2088
-3430
-8188

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

query I rowsort
SELECT col2 - col2 FROM tab1
----
0
0
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-375
SELECT ALL + + col1 DIV 84 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + + col1 / 84 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * + 83 FROM tab2 cor0
----
1411
2573
4897

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

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

query I rowsort
SELECT - + col2 * cor0.col1 + col2 * col0 AS col2 FROM tab2 AS cor0
----
-648
2356
494

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

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

query I rowsort
SELECT 88 * tab0.col1 FROM tab0
----
7568
8008
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + col2 col0 FROM tab0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 - + col1 * 58 col2 FROM tab0
----
-5065
-5355
-5703

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

query I rowsort
SELECT DISTINCT col2 + + 44 FROM tab0 AS cor0
----
126
45
77

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

skipif mysql # not compatible
query I rowsort label-386
SELECT DISTINCT - + cor0.col0 + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-54
-67
23

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

query I rowsort
SELECT + cor0.col1 + 92 AS col2 FROM tab0 cor0
----
178
183
189

onlyif mysql # use DIV operator for integer division
query I rowsort label-389
SELECT + 87 DIV col0 AS col2 FROM tab2
----
1
1
12

skipif mysql # not compatible
query I rowsort label-389
SELECT + 87 / col0 AS col2 FROM tab2
----
1
1
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT - - col2 DIV col0 + - col0 + + 61 FROM tab1 AS cor0
----
-18
-3
76

skipif mysql # not compatible
query I rowsort label-390
SELECT - - col2 / col0 + - col0 + + 61 FROM tab1 AS cor0
----
-18
-3
76

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

query I rowsort
SELECT ALL col1 * col1 - ( 43 ) * - col0 AS col0 FROM tab0
----
10914
12108
8428

onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT + col2 * col2 + col1 DIV + col1 col0 FROM tab1 AS cor0
----
2917
3250
9217

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-393
SELECT + col2 * col2 + col1 / + col1 col0 FROM tab1 AS cor0
----
2917
3250
9217

query I rowsort
SELECT ALL - col1 * col0 + 96 * - col1 * + col1 FROM tab0
----
-712080
-803075
-906659

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

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 - 94 * col1 FROM tab2 AS cor0
----
-2865
4643
538

query I rowsort
SELECT DISTINCT + + cor0.col1 + 59 FROM tab0 AS cor0
----
145
150
156

query I rowsort
SELECT - + col1 + - 69 FROM tab2 AS cor0
----
-100
-128
-86

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 93 + + col0 col2 FROM tab1 AS cor0
----
-276
-5888
-7360

query I rowsort
SELECT - + col1 * + ( col1 ) * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
13616
2082
6457

query I rowsort
SELECT ALL - - col2 * - col2 + + col0 * col0 - - cor0.col1 FROM tab2 cor0
----
-649
4814
5467

query I rowsort
SELECT ALL - col0 * 30 + col0 AS col0 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT DISTINCT col2 * col1 + 85 + + col1 * col0 FROM tab0 cor0
----
15646
3577
4987

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

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

query I rowsort
SELECT - col1 + + col2 * 14 * col0 FROM tab0 AS cor0
----
102081
11002
393

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + - col1 * col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT ALL tab2.col1 + col1 FROM tab2
----
118
34
62

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

query I rowsort
SELECT DISTINCT tab1.col1 + - col0 * + col0 AS col2 FROM tab1
----
-4086
-6387
17

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

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

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

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0 WHERE NULL <= NULL
----

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col0 + - col0 * + col2 FROM tab2 cor0
----
-182
-1950
-2923

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

query I rowsort
SELECT + col2 * + col2 * - col2 + + cor0.col2 FROM tab0 AS cor0
----
-35904
-551286
0

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

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

query I rowsort
SELECT ALL col0 + col1 * - col2 * col0 FROM tab2 cor0
----
-119574
-50955
-5852

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

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

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

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

skipif mysql # not compatible
query I rowsort label-437
SELECT ALL + col0 + + col0 / col0 AS col2 FROM tab2
----
79
8
80

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - 79 * + cor0.col0 FROM tab0 cor0
----
-1896
-2765
-7031

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

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 * - cor0.col2 + cor0.col1 * col1 FROM tab1 AS cor0
----
-119639
-32390
-75140

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

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

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

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

query I rowsort
SELECT DISTINCT - + 43 * - cor0.col1 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT ALL 16 FROM tab0 AS cor0
----
16
16
16

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

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

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

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

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

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

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

query I rowsort
SELECT ( col1 ) - - 80 FROM tab0 AS cor0
----
166
171
177

query I rowsort
SELECT + 75 * + col0 + col1 + col2 FROM tab0
----
1919
2723
6848

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

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

query I rowsort
SELECT + 30 * ( - col0 ) AS col0 FROM tab2
----
-210
-2340
-2370

query I rowsort
SELECT ( + 56 ) * tab0.col2 * 3 AS col0 FROM tab0
----
13776
168
5544

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-472
SELECT ( 32 ) + + col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-474
SELECT ALL + col0 DIV 31 + - col2 FROM tab1
----
-54
-55
-94

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + col0 / 31 + - col2 FROM tab1
----
-54
-55
-94

query I rowsort
SELECT 64 * tab0.col1 FROM tab0
----
5504
5824
6208

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97

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

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

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

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

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

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

query I rowsort
SELECT + col2 + col0 * - 27 AS col2 FROM tab2 AS cor0
----
-162
-2080
-2095

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

query I rowsort
SELECT 94 AS col0 FROM tab0 cor0
----
94
94
94

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

query I rowsort
SELECT + col0 * - 76 FROM tab0 AS cor0
----
-1824
-2660
-6764

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

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

query I rowsort
SELECT + col1 * 53 AS col0 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT + 0 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

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

query I rowsort
SELECT 70 + col0 FROM tab1
----
134
150
73

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - ( col1 ) * + col2 * col2 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

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

query I rowsort
SELECT DISTINCT + + 13 AS col2 FROM tab0 AS cor0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col2 FROM tab0 AS cor0
----
1
1089
6724

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

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

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

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

query I rowsort
SELECT DISTINCT + + cor0.col1 + col0 * - ( 27 ) FROM tab2 AS cor0
----
-158
-2047
-2116

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

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

query I rowsort
SELECT ALL + col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT cor0.col1 * + 44 AS col1 FROM tab0 AS cor0
----
3784
4004
4268

onlyif mysql # use DIV operator for integer division
query I rowsort label-509
SELECT col1 + ( + col1 ) DIV col1 col0 FROM tab1
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-509
SELECT col1 + ( + col1 ) / col1 col0 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL + cor0.col0 - ( + cor0.col2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 4646ed87e8cc5aacb51f9b4e472c3c4b

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-512
SELECT - col1 + - cor0.col2 + + col2 DIV col2 FROM tab1 cor0
----
-108
-66
-79

skipif mysql # not compatible
query I rowsort label-512
SELECT - col1 + - cor0.col2 + + col2 / col2 FROM tab1 cor0
----
-108
-66
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-513
SELECT DISTINCT col0 DIV - 67 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
95

skipif mysql # not compatible
query I rowsort label-513
SELECT DISTINCT col0 / - 67 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
95

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

query I rowsort
SELECT DISTINCT - + 4 FROM tab0 AS cor0
----
-4

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-517
SELECT DISTINCT + col0 + + 44 DIV - col0 AS col1 FROM tab1 AS cor0
----
-11
64
80

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT + col0 + + 44 / - col0 AS col1 FROM tab1 AS cor0
----
-11
64
80

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

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

query I rowsort
SELECT + col2 * ( col0 + + 86 ) FROM tab0 cor0
----
121
14350
3630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 * col1 col1 FROM tab0 AS cor0
----
2805
7380
96

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

query I rowsort
SELECT ALL + col2 * 87 FROM tab1
----
4698
4959
8352

query I rowsort
SELECT DISTINCT - col1 * - ( + col2 * col1 ) AS col0 FROM tab2
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 67 + 68 col2 FROM tab2
----
161
162
173

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
1
33
82

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

query I rowsort
SELECT ALL + col0 * 6 FROM tab2
----
42
468
474

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

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 07504092eb64a26979c0bde05f7718cb

query I rowsort
SELECT ALL - col2 + + 61 FROM tab0 AS cor0
----
-21
28
60

query I rowsort
SELECT DISTINCT col2 * + 38 * - col0 FROM tab0 AS cor0
----
-1330
-277324
-30096

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

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

query I rowsort
SELECT ALL col1 * ( 94 ) FROM tab0 AS cor0
----
8084
8554
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 86 col1 FROM tab0 cor0
----
7396
7826
8342

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

query I rowsort
SELECT DISTINCT + col2 + ( + 1 ) * col1 FROM tab1 cor0
----
109
67
80

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

query I rowsort
SELECT + col0 * 44 * col1 AS col1 FROM tab0 AS cor0
----
149380
356356
90816

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

query I rowsort
SELECT DISTINCT + col0 * 30 FROM tab1 AS cor0
----
1920
2400
90

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

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

query I rowsort
SELECT + col2 * 23 FROM tab1 AS cor0
----
1242
1311
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT 97 * ( col0 ) AS col1 FROM tab0 AS cor0
----
2328
3395
8633

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT col2 + 91 * col1 FROM tab0 AS cor0
----
7859
8363
8828

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

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

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

query I rowsort
SELECT ALL + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

query I rowsort
SELECT DISTINCT + col0 + 82 * - ( - col2 ) + 15 * col1 FROM tab1
----
4821
4888
8147

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be

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

query I rowsort
SELECT + ( + cor1.col2 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL 84 + col0 AS col0 FROM tab1 AS cor0
----
148
164
87

query I rowsort
SELECT + 70 * col2 FROM tab0 AS cor0
----
2310
5740
70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col1 ) * - col1 + - col0 col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT + 38 * col2 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT ALL + + cor0.col0 * - col0 + col2 + + 63 AS col1 FROM tab2 AS cor0
----
-5995
-6140
41

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 60 FROM tab2 AS cor0
----
60

query I rowsort
SELECT DISTINCT 61 * col0 AS col0 FROM tab1 AS cor0
----
183
3904
4880

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-571
SELECT DISTINCT 41 + col0 / + CAST( NULL AS DECIMAL ) - 26 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT 41 + col0 / + CAST ( NULL AS REAL ) - 26 AS col0 FROM tab1
----
NULL

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT + + col2 + - ( col2 ) DIV col2 - + 51 FROM tab0 AS cor0
----
-19
-51
30

skipif mysql # not compatible
query I rowsort label-575
SELECT + + col2 + - ( col2 ) / col2 - + 51 FROM tab0 AS cor0
----
-19
-51
30

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

query I rowsort
SELECT + + col0 + + 66 * - col1 * col0 AS col1 FROM tab0 AS cor0
----
-136200
-224035
-534445

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

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

query I rowsort
SELECT DISTINCT col2 * - col1 + - tab2.col1 * + 76 - col1 AS col1 FROM tab2
----
-1955
-3224
-6077

query I rowsort
SELECT ALL 36 * tab2.col0 FROM tab2
----
252
2808
2844

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + col2 * col2 col1 FROM tab2
----
2787
5278
946

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

skipif mysql # not compatible
query I rowsort label-583
SELECT - col1 / ( + tab0.col2 + col0 ) FROM tab0
----
-1
-2
0

query I rowsort
SELECT ALL - 77 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT + col1 * col1 + 33 * - col0 FROM tab2 cor0
----
-2318
730
907

query I rowsort
SELECT DISTINCT + col2 + 80 FROM tab0 AS cor0
----
113
162
81

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT + col0 * 86 DIV + col2 FROM tab1
----
4
71
96

skipif mysql # not compatible
query I rowsort label-589
SELECT + col0 * 86 / + col2 FROM tab1
----
4
71
96

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

query I rowsort
SELECT DISTINCT + 7 * + col0 * col0 AS col2 FROM tab2
----
343
42588
43687

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab2
----
17

query I rowsort
SELECT - 42 FROM tab2, tab1 cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

query I rowsort
SELECT col2 * - 46 FROM tab1
----
-2484
-2622
-4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 59 ) col0 FROM tab0
----
59

query I rowsort
SELECT + 99 * col0 * - 63 + col1 FROM tab0 AS cor0
----
-149602
-218198
-555002

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

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

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

query I rowsort
SELECT DISTINCT col1 * 55 AS col2 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT ALL + col1 + cor0.col1 FROM tab1 cor0
----
20
26
52

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

query I rowsort
SELECT + 79 FROM tab0
----
79
79
79

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

query I rowsort
SELECT ALL - 29 + col0 * - 54 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
-400
-4163
-4216

query I rowsort
SELECT ALL + - 48 * col0 + cor0.col2 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
-103680
-39552
-4356

query I rowsort
SELECT ALL - 48 - + col0 * col1 FROM tab1 AS cor0
----
-1088
-126
-688

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

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

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab0
----
10

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

skipif mysql # not compatible
query I rowsort label-610
SELECT - ( + col2 ) * CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
-189
-2028
-3002

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

query I rowsort
SELECT + 68 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da

query I rowsort
SELECT 9 + col2 AS col2 FROM tab0 AS cor0
----
10
42
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-614
SELECT - 72 DIV 79 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-614
SELECT - 72 / 79 AS col2 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT + ( col1 ) * + 94 FROM tab2 AS cor0
----
1598
2914
5546

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

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

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

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

query I rowsort
SELECT - ( + col0 ) + 94 FROM tab0 cor0
----
5
59
70

query I rowsort
SELECT + 0 * - col2 + - col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL ( col0 ) + col0 * 93 AS col1 FROM tab2 AS cor0
----
658
7332
7426

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

query I rowsort
SELECT ALL 57 * + col1 FROM tab0 AS cor0
----
4902
5187
5529

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

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

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

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

query I rowsort
SELECT - 6 FROM tab2, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

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

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

query I rowsort
SELECT + cor0.col1 * - col1 + 12 * - col0 AS col2 FROM tab0 AS cor0
----
-7684
-9349
-9829

query I rowsort
SELECT + col0 * col2 + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-164
-2046
-62

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

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

skipif mysql # not compatible
query I rowsort label-636
SELECT tab1.col2 + - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT ALL col0 DIV 8 FROM tab0
----
11
3
4

skipif mysql # not compatible
query I rowsort label-637
SELECT ALL col0 / 8 FROM tab0
----
11
3
4

query I rowsort
SELECT + 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

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

query I rowsort
SELECT ALL 70 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

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

skipif mysql # not compatible
query I rowsort label-642
SELECT + - CAST ( col2 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - 63 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

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

query I rowsort
SELECT + + col2 + - 70 FROM tab2 AS cor0
----
-32
-43
-44

query I rowsort
SELECT DISTINCT - 36 * - 17 FROM tab1 AS cor0
----
612

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

query I rowsort
SELECT ALL - 63 * - col1 - cor0.col0 * col0 FROM tab2 AS cor0
----
-2367
-5170
1904

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-650
SELECT ALL - - CAST( cor0.col1 AS SIGNED ) * col0 + - 76 AS col2 FROM tab1 cor0
----
2
564
964

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL - - CAST ( cor0.col1 AS INTEGER ) * col0 + - 76 AS col2 FROM tab1 cor0
----
2
564
964

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

query I rowsort
SELECT ALL + col1 * + ( - 51 ) + + col0 AS col1 FROM tab1
----
-1323
-446
-583

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

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) + + tab1.col0 * - ( col0 ) AS col0 FROM tab1
----
-4086
-6387
17

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

query I rowsort
SELECT ALL - col2 + 36 * - col1 FROM tab2 AS cor0
----
-1143
-2150
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-657
SELECT - col1 + 70 DIV + col1 FROM tab1 AS cor0
----
-24
-3
-8

skipif mysql # not compatible
query I rowsort label-657
SELECT - col1 + 70 / + col1 FROM tab1 AS cor0
----
-24
-3
-8

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

query I rowsort
SELECT ALL 35 * col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-22400
-2730
-36400

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-661
SELECT ALL - col2 DIV - ( col1 ) AS col2 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL - col2 / - ( col1 ) AS col2 FROM tab1 cor0
----
2
5
7

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

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

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

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

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

query I rowsort
SELECT - - ( 59 ) * - col2 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT 24 + col0 + ( tab0.col0 ) FROM tab0
----
202
72
94

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

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

query I rowsort
SELECT + 51 + col1 AS col1 FROM tab0 cor0
----
137
142
148

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - 43 col0 FROM tab1 AS cor0
----
-40
21
37

query I rowsort
SELECT - col2 * 89 AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382

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

query I rowsort
SELECT DISTINCT col0 + ( + col0 ) AS col1 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - 25 col0 FROM tab2 AS cor0
----
-650
-675
-950

query I rowsort
SELECT col1 * 3 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
119
81
94

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 col2 FROM tab2 AS cor0
----
-26
-27
-38

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ( 4 ) * + col0 AS col2 FROM tab1 AS cor0
----
12
256
320

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * - tab0.col1 col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 38ae4ab6a8fdfcd855d57a73fb99e326

query I rowsort
SELECT + + col1 * col2 + col2 + col1 AS col2 FROM tab1 AS cor0
----
1357
1484
637

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + 46 * col0 FROM tab1 cor0
----
138
2944
3680

query I rowsort
SELECT ALL - 57 * - col2 + - 39 * - 95 FROM tab0 AS cor0
----
3762
5586
8379

query I rowsort
SELECT DISTINCT + - cor0.col1 * col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + col1 + - tab2.col2 * ( - col0 * col0 ) AS col0 FROM tab2
----
1354
158243
237175

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

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

skipif mysql # not compatible
query I rowsort label-701
SELECT + tab1.col2 / + tab1.col1 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT - 38 - - col2 AS col2 FROM tab0 AS cor0
----
-37
-5
44

query I rowsort
SELECT + 33 FROM tab1 cor0
----
33
33
33

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

query I rowsort
SELECT + col0 * + 53 FROM tab2 cor0
----
371
4134
4187

query I rowsort
SELECT ALL tab2.col2 * 60 FROM tab2
----
1560
1620
2280

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

query I rowsort
SELECT DISTINCT - - col2 * 33 AS col0 FROM tab1 AS cor0
----
1782
1881
3168

query I rowsort
SELECT - col0 * + 28 FROM tab0 AS cor0
----
-2492
-672
-980

query I rowsort
SELECT - 82 + + 61 * col2 FROM tab0 AS cor0
----
-21
1931
4920

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

query I rowsort
SELECT ALL 94 FROM tab2 AS cor0
----
94
94
94

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

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

query I rowsort
SELECT DISTINCT - 72 - col1 AS col2 FROM tab0 AS cor0
----
-158
-163
-169

query I rowsort
SELECT + + ( 17 ) + col1 * - col1 AS col2 FROM tab0 cor0
----
-7379
-8264
-9392

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

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab0 AS cor0
----
43

query I rowsort
SELECT DISTINCT col1 * - 9 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT - col0 * - 8 + col1 FROM tab0
----
278
377
803

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

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

query I rowsort
SELECT ALL + - col0 + - 63 FROM tab2 AS cor0
----
-141
-142
-70

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-726
SELECT - + col2 DIV + 76 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-726
SELECT - + col2 / + 76 AS col0 FROM tab0 cor0
----
-1
0
0

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

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

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

query I rowsort
SELECT + + col1 * col1 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1054
-1121
744

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

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

query I rowsort
SELECT ALL 83 FROM tab2, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT col1 * + 60 + col0 FROM tab0 cor0
----
5184
5549
5855

query I rowsort
SELECT - 97 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT + + ( 54 ) * col2 FROM tab0 cor0
----
1782
4428
54

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

query I rowsort
SELECT DISTINCT 25 * - col2 FROM tab1
----
-1350
-1425
-2400

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

query I rowsort
SELECT 50 * - col0 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT ALL + 73 * - 22 AS col0 FROM tab2
----
-1606
-1606
-1606

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

query I rowsort
SELECT - 25 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab0 cor0, tab1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

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

query I rowsort
SELECT ALL - 91 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

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

skipif mysql # not compatible
query I rowsort label-746
SELECT col0 + + CAST ( - col2 AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col1 * col0 + 10 FROM tab2 AS cor0
----
-1333
-207
-4592

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

query I rowsort
SELECT DISTINCT - col0 * - col1 + 54 * 93 AS col0 FROM tab0
----
13121
7086
8417

query I rowsort
SELECT + 57 * + cor0.col2 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c45fb15e8792ec9da5626739cd9fd3bc

query I rowsort
SELECT - 75 * col0 FROM tab1
----
-225
-4800
-6000

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

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

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

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

query I rowsort
SELECT ALL col0 * - ( cor0.col0 * col1 ) AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT ALL + col2 DIV col0 + + col0 AS col0 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + col2 / col0 + + col0 AS col0 FROM tab1 AS cor0
----
21
64
81

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT DISTINCT + col0 DIV 82 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + col0 / 82 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - col0 + cor0.col0 + 98 * + col1 AS col0 FROM tab1 AS cor0
----
1274
2548
980

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

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

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

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

query I rowsort
SELECT + - cor0.col2 * col2 + + ( col0 ) * - col0 * col2 FROM tab2 AS cor0
----
-158860
-2052
-238602

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

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

query I rowsort
SELECT - tab1.col1 * - 13 - - 42 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c36e03d09b685106771f46a5217a2318

query I rowsort
SELECT DISTINCT + col2 + col0 * 67 AS col1 FROM tab1
----
255
4345
5456

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

query I rowsort
SELECT DISTINCT tab0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0
----
24
35
89

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

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

query I rowsort
SELECT - - 7 FROM tab1, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be

skipif mysql # not compatible
query I rowsort
SELECT - col2 * + CAST ( - 40 AS REAL ) AS col2 FROM tab0 cor0
----
1320
3280
40

query I rowsort
SELECT + cor0.col0 * + 72 FROM tab0 cor0
----
1728
2520
6408

query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT 58 AS col1 FROM tab1
----
58
58
58

query I rowsort
SELECT cor0.col0 + ( + 59 ) * - col1 FROM tab1 AS cor0
----
-1531
-526
-687

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

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

query I rowsort
SELECT DISTINCT - + col1 * 52 + - 12 FROM tab0 AS cor0
----
-4484
-4744
-5056

query I rowsort
SELECT ALL + - col1 * ( - col1 ) * - col1 + - 51 AS col2 FROM tab0 AS cor0
----
-636107
-753622
-912724

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

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

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

query I rowsort
SELECT 52 + - 37 FROM tab2 AS cor0
----
15
15
15

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

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

skipif mysql # not compatible
query I rowsort label-795
SELECT + + 35 / + col1 FROM tab0 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-796
SELECT - CAST ( col2 AS INTEGER ) * col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

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

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

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

query I rowsort
SELECT - cor0.col2 + - 86 FROM tab2 AS cor0
----
-112
-113
-124

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

query I rowsort
SELECT + 16 + + col0 FROM tab0 cor0
----
105
40
51

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

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

query I rowsort
SELECT - 12 FROM tab1, tab0 cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT - 31 + col0 AS col2 FROM tab1 AS cor0
----
-28
33
49

query I rowsort
SELECT - 52 * - tab2.col0 FROM tab2
----
364
4056
4108

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

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

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

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

query I rowsort
SELECT DISTINCT + 75 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-3
-4
68

query I rowsort
SELECT ALL - ( col2 ) * - col2 - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

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

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

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

query I rowsort
SELECT - 88 - col0 AS col2 FROM tab2 AS cor0
----
-166
-167
-95

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

query I rowsort
SELECT - col0 * col1 + 66 FROM tab1 AS cor0
----
-12
-574
-974

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

query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

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

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

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

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

query I rowsort
SELECT DISTINCT + ( 51 ) * col1 FROM tab1
----
1326
510
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-823
SELECT - ( - col1 ) + - CAST( + 80 AS SIGNED ) + col2 FROM tab0 AS cor0
----
18
39
93

skipif mysql # not compatible
query I rowsort label-823
SELECT - ( - col1 ) + - CAST ( + 80 AS INTEGER ) + col2 FROM tab0 AS cor0
----
18
39
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-824
SELECT DISTINCT tab1.col0 DIV col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT tab1.col0 / col0 FROM tab1
----
1

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

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

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

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1 cor0
----
10
13
26

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

query I rowsort
SELECT ALL 23 + col2 * - col0 FROM tab2 AS cor0
----
-166
-2005
-2979

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT + 84 DIV 94 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-832
SELECT + 84 / 94 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

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

query I rowsort
SELECT + 64 FROM tab2, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

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

query I rowsort
SELECT ALL 87 * + col0 * col1 - 19 FROM tab1
----
55661
6767
90461

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

query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

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

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

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

query I rowsort
SELECT col2 + col0 * col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + ( 52 ) * - col0 col1 FROM tab0 AS cor0
----
-1215
-1819
-4546

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

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

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

query I rowsort
SELECT ALL col1 * 89 + col1 * - col1 FROM tab1 AS cor0
----
1638
790
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-849
SELECT + + cor0.col1 DIV ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-849
SELECT + + cor0.col1 / ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3

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

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

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab1
----
-65

query I rowsort
SELECT - 23 + col1 FROM tab0
----
63
68
74

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab0, tab0 AS cor0
----
55

query I rowsort
SELECT - 81 * col1 + + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-6933
-7289
-7856

query I rowsort
SELECT 98 - col1 * - col0 FROM tab2
----
1441
315
4700

query I rowsort
SELECT DISTINCT + 71 + col0 AS col0 FROM tab0
----
106
160
95

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

skipif mysql # not compatible
query I rowsort label-867
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-868
SELECT ALL - 65 * col1 + - col0 DIV col1 - col0 FROM tab0 cor0
----
-5614
-6004
-6340

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL - 65 * col1 + - col0 / col1 - col0 FROM tab0 cor0
----
-5614
-6004
-6340

query I rowsort
SELECT - ( 59 ) + - col2 FROM tab2 AS cor0
----
-85
-86
-97

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

query I rowsort
SELECT + 33 FROM tab0
----
33
33
33

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

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

query I rowsort
SELECT ( - col2 ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + col2 * col1 + + 76 AS col0 FROM tab1 AS cor0
----
1324
1480
646

query I rowsort
SELECT 54 * col1 + 42 FROM tab0 AS cor0
----
4686
4956
5280

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

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

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

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

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

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

query I rowsort
SELECT 57 * - col0 AS col2 FROM tab0
----
-1368
-1995
-5073

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-886
SELECT ALL + 37 DIV - cor0.col0 + + col0 FROM tab2 AS cor0
----
2
78
79

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL + 37 / - cor0.col0 + + col0 FROM tab2 AS cor0
----
2
78
79

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

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

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

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

query I rowsort
SELECT DISTINCT - + 77 * + col1 FROM tab0 AS cor0
----
-6622
-7007
-7469

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-894
SELECT DISTINCT - 70 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT - 70 / col0 AS col1 FROM tab1 AS cor0
----
-1
-23
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-896
SELECT DISTINCT - col0 * + col1 + - col0 DIV - col1 + + col1 DIV - col1 FROM tab2 AS cor0
----
-1340
-218
-4602

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT - col0 * + col1 + - col0 / - col1 + + col1 / - col1 FROM tab2 AS cor0
----
-1340
-218
-4602

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-901
SELECT - CAST ( 86 AS INTEGER ) FROM tab0 AS cor0
----
-86
-86
-86

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-904
SELECT - col0 + col1 DIV col0 - - col1 FROM tab1 cor0
----
-54
-67
31

skipif mysql # not compatible
query I rowsort label-904
SELECT - col0 + col1 / col0 - - col1 FROM tab1 cor0
----
-54
-67
31

query I rowsort
SELECT DISTINCT + col0 * ( col1 ) + col1 + col1 * + col1 FROM tab0 AS cor0
----
12901
16471
9546

query I rowsort
SELECT 92 FROM tab1
----
92
92
92

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

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

query I rowsort
SELECT col2 * - col0 + col0 - col1 AS col1 FROM tab0 AS cor0
----
-7300
-854
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-910
SELECT + 53 DIV cor0.col1 FROM tab1 cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-910
SELECT + 53 / cor0.col1 FROM tab1 cor0
----
2
4
5

query I rowsort
SELECT ALL - 90 + + tab1.col1 + col2 AS col0 FROM tab1
----
-10
-23
19

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

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

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

query I rowsort
SELECT col0 * cor0.col0 + col1 * + col1 FROM tab0 AS cor0
----
10634
16202
7972

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-917
SELECT + col2 * col0 DIV cor0.col2 + col1 col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-917
SELECT + col2 * col0 / cor0.col2 + col1 col0 FROM tab1 AS cor0
----
29
74
93

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

query I rowsort
SELECT - 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT + 67 + + 69 FROM tab0 AS cor0
----
136
136
136

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + - col1 * - 70 AS col0 FROM tab2 AS cor0
----
1479
3131
7611

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

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

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

query I rowsort
SELECT - 74 * 76 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to f88b1eaf6927b811ab40ab47f28e0d99

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

query I rowsort
SELECT 14 + ( col0 ) * + 96 FROM tab0
----
2318
3374
8558

query I rowsort
SELECT ALL 59 + + col0 * col0 + col1 AS col1 FROM tab2
----
139
6202
6317

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0
----
-1
-33
-82

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

skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT + cor0.col0 / 51 AS col1 FROM tab2, tab1 AS cor0
----
0
1

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab1 cor0, tab2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

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-937
SELECT - col1 DIV ( col1 ) + col1 * CAST( col0 AS SIGNED ) * - cor0.col0 FROM tab2 AS cor0
----
-106098
-1520
-358957

skipif mysql # not compatible
query I rowsort label-937
SELECT - col1 / ( col1 ) + col1 * CAST ( col0 AS INTEGER ) * - cor0.col0 FROM tab2 AS cor0
----
-106098
-1520
-358957

query I rowsort
SELECT - col1 + 66 * col2 - tab2.col1 FROM tab2
----
1598
1720
2474

query I rowsort
SELECT + + col1 - col2 * - col2 * col1 FROM tab1 AS cor0
----
119821
32500
75842

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

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

query I rowsort
SELECT - col2 * - 42 * + 61 + - col2 FROM tab0 AS cor0
----
210002
2561
84513

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

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

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

query I rowsort
SELECT + col1 - - 24 * col0 AS col0 FROM tab2 cor0
----
1913
1931
199

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

query I rowsort
SELECT ALL tab1.col2 + + 32 FROM tab1
----
128
86
89

query I rowsort
SELECT ALL - col0 * 84 * + ( - col0 * - col1 ) + col1 FROM tab2
----
-127565
-30152245
-8912131

query I rowsort
SELECT ALL col2 * 54 + - col0 + - tab0.col1 FROM tab0
----
-78
1672
4248

onlyif mysql # use DIV operator for integer division
query I rowsort label-951
SELECT - tab1.col1 + ( col2 ) DIV col2 + - col1 FROM tab1
----
-19
-25
-51

skipif mysql # not compatible
query I rowsort label-951
SELECT - tab1.col1 + ( col2 ) / col2 + - col1 FROM tab1
----
-19
-25
-51

query I rowsort
SELECT ALL + col2 - - col2 FROM tab1
----
108
114
192

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

query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 - 97 FROM tab1 cor0
----
2819
3152
9119

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

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

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

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

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

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

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

query I rowsort
SELECT ALL cor0.col2 * col1 - - cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT + + 57 + + cor0.col0 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT ALL - col1 * - 15 + col1 FROM tab2 cor0
----
272
496
944

query I rowsort
SELECT DISTINCT - col2 * - 44 AS col0 FROM tab2 AS cor0
----
1144
1188
1672

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-969
SELECT + 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 ALL - 1 + 54 * - col1 col1 FROM tab2 AS cor0
----
-1675
-3187
-919

query I rowsort
SELECT ALL - col1 + + col0 * col1 - ( col2 + - cor0.col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
1683
2596
62

query I rowsort
SELECT DISTINCT tab1.col1 - 34 FROM tab1
----
-21
-24
-8

query I rowsort
SELECT - col1 * 79 + - col2 AS col2 FROM tab2
----
-1381
-2476
-4687

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-975
SELECT CAST( + 32 AS SIGNED ) * col2 + cor0.col1 * ( - col2 ) FROM tab1 AS cor0
----
1254
1824
324

skipif mysql # not compatible
query I rowsort label-975
SELECT CAST ( + 32 AS INTEGER ) * col2 + cor0.col1 * ( - col2 ) FROM tab1 AS cor0
----
1254
1824
324

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

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

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

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

query I rowsort
SELECT DISTINCT col1 - 21 FROM tab0
----
65
70
76

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

query I rowsort
SELECT DISTINCT 84 * col2 + + 55 AS col2 FROM tab2 AS cor0
----
2239
2323
3247

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

query I rowsort
SELECT ALL - col2 + + cor0.col1 * col1 * - 19 FROM tab0 AS cor0
----
-140557
-157421
-178772

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

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

query I rowsort
SELECT DISTINCT 68 FROM tab1 AS cor0
----
68

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

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

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

query I rowsort
SELECT + ( - col0 ) * + 29 AS col1 FROM tab1 cor0
----
-1856
-2320
-87

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

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

query I rowsort
SELECT DISTINCT 26 + col2 * ( - col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
-1297
-158158
-237132

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

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

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

query I rowsort
SELECT DISTINCT + 22 FROM tab1 AS cor0
----
22

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

query I rowsort
SELECT 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-999
SELECT CAST( NULL AS DECIMAL ) * - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-999
SELECT CAST ( NULL AS REAL ) * - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT + col0 * 62 AS col2 FROM tab0 AS cor0
----
1488
2170
5518

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

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

query I rowsort
SELECT - 20 * col1 AS col2 FROM tab1 AS cor0
----
-200
-260
-520

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col2 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + + 66 AS col0 FROM tab2 AS cor0
----
66

query I rowsort
SELECT DISTINCT + 55 + col1 * - ( + cor0.col0 ) FROM tab0 AS cor0
----
-2009
-3340
-8044

query I rowsort
SELECT ALL + col2 * + col2 + col1 + col0 FROM tab0 cor0
----
1199
133
6904

query I rowsort
SELECT - col0 + col0 + col0 FROM tab2 AS cor0
----
7
78
79

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

query I rowsort
SELECT DISTINCT - - 97 * + col2 FROM tab1 AS cor0
----
5238
5529
9312

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

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

query I rowsort
SELECT + 76 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
-562096
-629356
-715084

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

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

query I rowsort
SELECT ALL - - 1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT cor0.col1 * + col0 * + ( col2 ) + col0 + ( - col0 + + cor0.col1 ) DIV col2 AS col1 FROM tab0 cor0
----
3492
664207
68137

skipif mysql # not compatible
query I rowsort label-1020
SELECT cor0.col1 * + col0 * + ( col2 ) + col0 + ( - col0 + + cor0.col1 ) / col2 AS col1 FROM tab0 cor0
----
3492
664207
68137

query I rowsort
SELECT ALL - 37 * col0 FROM tab1 AS cor0
----
-111
-2368
-2960

onlyif mysql # use DIV operator for integer division
query I rowsort label-1022
SELECT DISTINCT + 62 + col0 DIV - cor0.col0 FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT + 62 + col0 / - cor0.col0 FROM tab2 AS cor0
----
61

query I rowsort
SELECT cor0.col0 + + col1 * + cor0.col1 * - col0 + + col2 FROM tab1 AS cor0
----
-13344
-1971
-6279

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1025
SELECT 5 DIV tab1.col1 + + 49 * + col1 AS col0 FROM tab1
----
1274
490
637

skipif mysql # not compatible
query I rowsort label-1025
SELECT 5 / tab1.col1 + + 49 * + col1 AS col0 FROM tab1
----
1274
490
637

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

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

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

query I rowsort
SELECT DISTINCT - 73 * - col2 * col1 FROM tab0 AS cor0
----
207174
544726
7081

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT ALL + col0 DIV + 36 AS col2 FROM tab2 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + col0 / + 36 AS col2 FROM tab2 AS cor0
----
0
2
2

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

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

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1036
SELECT DISTINCT col0 + col0 * - 90 - col2 DIV - col1 AS col2 FROM tab2
----
-623
-6942
-7029

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT col0 + col0 * - 90 - col2 / - col1 AS col2 FROM tab2
----
-623
-6942
-7029

query I rowsort
SELECT + 84 FROM tab1, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT + tab1.col1 * - col1 * col2 AS col0 FROM tab1
----
-16224
-36504
-5700

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

query I rowsort
SELECT ALL + 34 * col0 + col0 FROM tab1
----
105
2240
2800

query I rowsort
SELECT + col0 * 92 * + tab2.col1 - + 56 FROM tab2
----
123500
19908
423328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 6 ) + + cor0.col1 col0 FROM tab2 AS cor0
----
23
37
65

query I rowsort
SELECT DISTINCT + - col1 * ( col0 + + col1 ) AS col2 FROM tab2 AS cor0
----
-1178
-1632
-8083

query I rowsort
SELECT ALL - ( 31 ) * col1 FROM tab0 AS cor0
----
-2666
-2821
-3007

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

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

skipif mysql # not compatible
query I rowsort label-1046
SELECT + col0 + col1 / col1 FROM tab0
----
25
36
90

query I rowsort
SELECT DISTINCT - 79 + - col0 + col2 FROM tab1
----
-28
-63
-86

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

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

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

query I rowsort
SELECT ALL - col1 * - 49 + + col1 AS col0 FROM tab1
----
1300
500
650

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT ALL cor0.col2 * tab0.col0 AS col0 FROM tab2, tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to d995c781f6c224af98e23e798efa8aed

query I rowsort
SELECT - 42 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

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

query I rowsort
SELECT ALL - col0 * + col0 * - col2 + - 19 AS col0 FROM tab1 AS cor0
----
233453
467
614381

onlyif mysql # use DIV operator for integer division
query I rowsort label-1056
SELECT - ( ( - col1 ) ) + - 69 DIV 53 + col0 AS col2 FROM tab1
----
28
73
92

skipif mysql # not compatible
query I rowsort label-1056
SELECT - ( ( - col1 ) ) + - 69 / 53 + col0 AS col2 FROM tab1
----
28
73
92

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + col2 * 9 AS col2 FROM tab0 AS cor0
----
321
44
827

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

query I rowsort
SELECT - + col1 * + 95 AS col1 FROM tab1 AS cor0
----
-1235
-2470
-950

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

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

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

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

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

query I rowsort
SELECT - + col2 * 29 FROM tab0 AS cor0
----
-2378
-29
-957

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1072
SELECT + - CAST( - 88 AS SIGNED ) - cor0.col0 * ( - col0 ) AS col0 FROM tab2 cor0
----
137
6172
6329

skipif mysql # not compatible
query I rowsort label-1072
SELECT + - CAST ( - 88 AS INTEGER ) - cor0.col0 * ( - col0 ) AS col0 FROM tab2 cor0
----
137
6172
6329

query I rowsort
SELECT ALL + col1 * - 60 + col2 AS col0 FROM tab1 AS cor0
----
-1506
-543
-684

query I rowsort
SELECT DISTINCT - + col0 - ( - cor0.col1 ) * - 17 * - col1 FROM tab1 AS cor0
----
11489
1636
2793

onlyif mysql # use DIV operator for integer division
query I rowsort label-1075
SELECT ALL - col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL - col0 / col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0

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

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

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

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

query I rowsort
SELECT 13 AS col0 FROM tab0 AS cor0
----
13
13
13

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

skipif mysql # not compatible
query I rowsort label-1079
SELECT + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 71 * 34 FROM tab1 AS cor0
----
-2414
-2414
-2414

onlyif mysql # use DIV operator for integer division
query I rowsort label-1081
SELECT col2 DIV - col1 - col0 * col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6243

skipif mysql # not compatible
query I rowsort label-1081
SELECT col2 / - col1 - col0 * col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6243

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

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

query I rowsort
SELECT + col0 * col2 - col2 * + col1 FROM tab0
----
-164
-2046
-62

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

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

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

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

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

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

query I rowsort
SELECT + col0 + col1 + col0 * col1 AS col2 FROM tab1
----
107
1133
714

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

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

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

skipif mysql # not compatible
query I rowsort label-1096
SELECT + tab1.col1 / tab1.col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 + + col1 * col2 + + col1 * + col1 col2 FROM tab2
----
1791
4937
856

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 BETWEEN col2 AND NULL
----

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1104
SELECT ALL col0 DIV - tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL col0 / - tab0.col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE col2 = NULL AND NULL <> col2 * + col1 + + col1
----

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

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

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

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

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab0
----
84

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab2
----
-10

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

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

query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab2
----
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1115
SELECT ALL cor0.col2 + 80 DIV - col0 AS col0 FROM tab0 cor0
----
-1
30
82

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL cor0.col2 + 80 / - col0 AS col0 FROM tab0 cor0
----
-1
30
82

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

query I rowsort
SELECT + cor0.col1 + col0 * 82 AS col0 FROM tab0 AS cor0
----
2054
2967
7389

query I rowsort
SELECT DISTINCT col0 * + col2 * 96 + col1 AS col1 FROM tab2 AS cor0
----
18175
194747
288209

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

query I rowsort
SELECT - col0 * 34 * - col0 AS col2 FROM tab1 AS cor0
----
139264
217600
306

query I rowsort
SELECT ALL - col0 * col1 - + col1 * col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT 98 * tab0.col0 - - cor0.col2 * + 74 FROM tab0, tab1 AS cor0
----
9 values hashing to af3acfe59ea76e085892ace0f78219fc

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT DISTINCT - - col1 DIV ( - col2 ) col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT - - col1 / ( - col2 ) col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1128
SELECT DISTINCT + + col0 + 93 DIV col2 AS col1 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT + + col0 + 93 / col2 AS col1 FROM tab1 AS cor0
----
4
65
80

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

skipif mysql # not compatible
query I rowsort label-1129
SELECT ALL - col2 * - ( 35 * col1 ) + CAST ( cor0.col0 AS INTEGER ) * + col0 * ( + cor0.col2 ) FROM tab2 AS cor0
----
211874
259768
30618

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

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1593
663
868

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

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

query I rowsort
SELECT ALL - tab2.col1 * col1 AS col0 FROM tab2
----
-289
-3481
-961

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col1 - - col2 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 + tab1.col2 col1 FROM tab1
----
109
67
80

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > NULL
----

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

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

query I rowsort
SELECT col1 * + tab2.col1 + col1 * col2 FROM tab2
----
1798
5015
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-1146
SELECT col0 + - col2 DIV + col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1146
SELECT col0 + - col2 / + col2 FROM tab1
----
2
63
79

query I rowsort
SELECT DISTINCT col2 * col2 * - col0 + - col2 AS col0 FROM tab2
----
-114114
-5130
-52754

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

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT col2 * + col0 * + col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 97 - + col1 FROM tab1 AS cor0
----
-107
-110
-123

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

query I rowsort
SELECT DISTINCT 28 * + cor0.col2 FROM tab2 AS cor0
----
1064
728
756

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

query I rowsort
SELECT + col0 * + col0 FROM tab1 WHERE ( NULL ) > col0 + col1 * + col2
----

query I rowsort
SELECT col0 - - tab0.col0 * - tab0.col0 AS col1 FROM tab0
----
-1190
-552
-7832

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

query I rowsort
SELECT ALL + - 57 - + col0 AS col1 FROM tab1 AS cor0
----
-121
-137
-60

query I rowsort
SELECT 5 FROM tab0 cor0
----
5
5
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + - col0 * col1 * col2 col1 FROM tab0
----
-3396
-664200
-68145

query I rowsort
SELECT tab2.col0 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - col1 + + col0 * + col0 * - col1 FROM tab0
----
-118922
-49622
-720902

query I rowsort
SELECT ALL - col1 * col1 + col2 * - col2 * + col0 FROM tab1
----
-208036
-737449
-9424

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

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

query I rowsort
SELECT ALL col2 * + col2 + + col0 AS col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT 52 FROM tab1, tab1 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT + - cor0.col0 * 61 - - cor0.col1 FROM tab2 AS cor0
----
-396
-4699
-4802

query I rowsort
SELECT ALL + col2 * col1 * cor0.col2 - - col2 AS col2 FROM tab1 AS cor0
----
119904
32547
75870

onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT - col1 DIV - 97 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1176
SELECT - col1 / - 97 AS col0 FROM tab2
----
0
0
0

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

query I rowsort
SELECT - 17 * cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5f7955bbdedc592819a66ce59bbd5fbc

query I rowsort
SELECT DISTINCT - col2 * 68 + - col2 FROM tab2 AS cor0
----
-1794
-1863
-2622

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

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

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

query I rowsort
SELECT DISTINCT col2 * + col2 + - col1 + col0 AS col2 FROM tab1 AS cor0
----
2893
3303
9283

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1184
SELECT + 87 + - ( - col0 + CAST( - col0 AS SIGNED ) ) * col0 * + ( + 27 ) AS col2 FROM tab0 AS cor0
----
31191
427821
66237

skipif mysql # not compatible
query I rowsort label-1184
SELECT + 87 + - ( - col0 + CAST ( - col0 AS INTEGER ) ) * col0 * + ( + 27 ) AS col2 FROM tab0 AS cor0
----
31191
427821
66237

query I rowsort
SELECT ALL + 10 + + 66 AS col2 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT 62 * - 39 + - col0 * 36 AS col0 FROM tab2 AS cor0
----
-2670
-5226
-5262

query I rowsort
SELECT 63 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
472
4973
4994

query I rowsort
SELECT DISTINCT col1 * ( col2 ) - + 70 * - ( + cor0.col1 ) FROM tab0 cor0
----
13832
6887
8858

query I rowsort
SELECT ALL + col2 + + 84 * col1 FROM tab2 AS cor0
----
1466
2631
4982

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1191
SELECT DISTINCT CAST( - 24 AS SIGNED ) + - col0 * col2 FROM tab1 AS cor0
----
-186
-3672
-7704

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT CAST ( - 24 AS INTEGER ) + - col0 * col2 FROM tab1 AS cor0
----
-186
-3672
-7704

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

query I rowsort
SELECT DISTINCT - 6 * + 62 AS col0 FROM tab0 cor0
----
-372

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1195
SELECT + col2 * col0 + - col2 DIV col1 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1195
SELECT + col2 * col0 + - col2 / col1 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 * 89 AS col1 FROM tab2 AS cor0
----
2314
2403
3382

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

query I rowsort
SELECT + - col2 + - 14 AS col1 FROM tab0 AS cor0
----
-15
-47
-96

query I rowsort
SELECT ( col0 ) + col0 AS col2 FROM tab2 cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col1 FROM tab0 AS cor0
----
119
173
98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1202
SELECT ALL + + 65 DIV - col0 FROM tab2 cor0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL + + 65 / - col0 FROM tab2 cor0
----
-9
0
0

query I rowsort
SELECT DISTINCT - 96 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + 64 * col1 AS col2 FROM tab2 AS cor0
----
1088
1984
3776

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

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

query I rowsort
SELECT - + 88 * cor0.col2 FROM tab2 AS cor0
----
-2288
-2376
-3344

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

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

query I rowsort
SELECT ALL 13 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT DISTINCT - + col1 + - col0 DIV 23 col1 FROM tab1 AS cor0
----
-12
-16
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT - + col1 + - col0 / 23 col1 FROM tab1 AS cor0
----
-12
-16
-26

query I rowsort
SELECT DISTINCT - - col0 * col1 - + ( ( - col1 ) + ( - col2 ) ) * - col1 AS col1 FROM tab1 AS cor0
----
-2002
-30
-377

query I rowsort
SELECT DISTINCT - col0 - col1 * 13 AS col0 FROM tab2
----
-300
-410
-845

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * - CAST ( + cor0.col0 AS REAL ) - col1 AS col2 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT + - col1 - + 49 FROM tab2 AS cor0
----
-108
-66
-80

query I rowsort
SELECT DISTINCT + - 68 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-68

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

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

query I rowsort
SELECT + col2 + 16 * + 5 FROM tab2 AS cor0
----
106
107
118

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

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

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

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

query I rowsort
SELECT - - cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 col2 FROM tab0
----
1225
576
7921

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

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

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

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + 34 FROM tab1, tab2 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

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

query I rowsort
SELECT 80 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

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

query I rowsort
SELECT - 48 * - col0 FROM tab1 AS cor0
----
144
3072
3840

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

query I rowsort
SELECT ALL + 50 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * 3 col0 FROM tab0
----
-246
-3
-99

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

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + 61 * ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-1508
247
30

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

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

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

query I rowsort
SELECT 63 FROM tab0, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

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

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

query I rowsort
SELECT 8 + cor0.col2 FROM tab2 AS cor0
----
34
35
46

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( col0 AS REAL ) + - col2 - col0 FROM tab1 AS cor0
----
-185
-256
-60

query I rowsort
SELECT + 96 + col2 AS col2 FROM tab2 AS cor0
----
122
123
134

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

query I rowsort
SELECT ALL + 7 * - col1 * cor0.col0 FROM tab0 cor0
----
-14448
-23765
-56693

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - + col1 col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT - 67 * + col2 FROM tab1 AS cor0
----
-3618
-3819
-6432

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

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

query I rowsort
SELECT DISTINCT + 4 * - col2 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT DISTINCT col0 + col0 * - 11 FROM tab2 cor0
----
-70
-780
-790

query I rowsort
SELECT ALL - + 88 + col1 * col0 FROM tab1 AS cor0
----
-10
552
952

query I rowsort
SELECT + 52 FROM tab1, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 17 col2 FROM tab1 AS cor0
----
170
221
442

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

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

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

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-1265
SELECT ALL - ( + 47 ) DIV col1 + + 9 FROM tab2 AS cor0
----
7
8
9

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - ( + 47 ) / col1 + + 9 FROM tab2 AS cor0
----
7
8
9

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1267
SELECT ALL - + 46 * col1 + + col2 DIV - col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

skipif mysql # not compatible
query I rowsort label-1267
SELECT ALL - + 46 * col1 + + col2 / - col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 30 AS REAL ) * + col2 AS col0 FROM tab2 cor0
----
-1140
-780
-810

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

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

query I rowsort
SELECT DISTINCT + - 49 * + col2 FROM tab2 AS cor0
----
-1274
-1323
-1862

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

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

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

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

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

query I rowsort
SELECT ALL + - cor0.col2 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

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

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

query I rowsort
SELECT DISTINCT + + 52 + 2 FROM tab1 AS cor0
----
54

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

query I rowsort
SELECT DISTINCT col1 * col2 + + ( col2 ) + + ( col0 ) * col0 FROM tab2
----
6925
7644
913

query I rowsort
SELECT ALL 52 FROM tab0, tab1 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT + col0 * 60 AS col2 FROM tab0
----
1440
2100
5340

query I rowsort
SELECT ALL ( 97 ) + + col2 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1441
1555
724

query I rowsort
SELECT - + 98 * + col0 AS col2 FROM tab0 cor0
----
-2352
-3430
-8722

query I rowsort
SELECT + + ( + tab2.col2 ) AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1290
SELECT - tab2.col0 DIV + col1 + - tab2.col0 * ( col1 ) AS col2 FROM tab2
----
-1347
-217
-4603

skipif mysql # not compatible
query I rowsort label-1290
SELECT - tab2.col0 / + col1 + - tab2.col0 * ( col1 ) AS col2 FROM tab2
----
-1347
-217
-4603

query I rowsort
SELECT tab0.col0 - + col2 * col2 * 92 FROM tab0
----
-100164
-57
-618519

onlyif mysql # use DIV operator for integer division
query I rowsort label-1292
SELECT + ( col1 ) + col2 DIV + CAST( col0 + - col1 * 2 AS SIGNED ) FROM tab1
----
11
14
25

skipif mysql # not compatible
query I rowsort label-1292
SELECT + ( col1 ) + col2 / + CAST ( col0 + - col1 * 2 AS INTEGER ) FROM tab1
----
11
14
25

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

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

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

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

query I rowsort
SELECT + 60 + col0 AS col1 FROM tab2
----
138
139
67

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

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

query I rowsort
SELECT DISTINCT 44 * col2 FROM tab0
----
1452
3608
44

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

query I rowsort
SELECT col1 + col1 + + 12 AS col1 FROM tab1
----
32
38
64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 + 41 * col0 col2 FROM tab0 AS cor0
----
1094
1567
3829

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

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

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

query I rowsort
SELECT ALL + col0 + + col1 * tab0.col0 - + col2 AS col2 FROM tab0
----
2055
3429
8106

query I rowsort
SELECT DISTINCT col0 - - col0 FROM tab2
----
14
156
158

query I rowsort
SELECT col2 + 63 * ( - col0 ) FROM tab0 cor0
----
-1479
-2204
-5525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 * col1 col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT tab0.col2 + ( + ( col0 ) ) * - 87 AS col2 FROM tab0
----
-2055
-3044
-7661

onlyif mysql # use DIV operator for integer division
query I rowsort label-1311
SELECT - col1 + - col1 * col2 * col1 + + col0 DIV + 80 AS col2 FROM tab0 AS cor0
----
-244154
-679132
-9506

skipif mysql # not compatible
query I rowsort label-1311
SELECT - col1 + - col1 * col2 * col1 + + col0 / + 80 AS col2 FROM tab0 AS cor0
----
-244154
-679132
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 * - col0 col2 FROM tab2 AS cor0
----
1323
158184
237158

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * + ( col0 ) + col1 col0 FROM tab0 AS cor0
----
2174
3527
8279

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

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

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

query I rowsort
SELECT DISTINCT col2 + 44 * + col2 AS col0 FROM tab0 AS cor0
----
1485
3690
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1321
SELECT DISTINCT col1 * + CAST( + cor0.col2 AS SIGNED ) + - col1 * - col1 FROM tab0 AS cor0
----
10234
15743
9506

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT col1 * + CAST ( + cor0.col2 AS INTEGER ) + - col1 * - col1 FROM tab0 AS cor0
----
10234
15743
9506

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1327
SELECT - 69 * - col0 - + 99 DIV - col0 FROM tab0 AS cor0
----
1660
2417
6142

skipif mysql # not compatible
query I rowsort label-1327
SELECT - 69 * - col0 - + 99 / - col0 FROM tab0 AS cor0
----
1660
2417
6142

query I rowsort
SELECT 90 + cor0.col0 * ( cor0.col2 ) AS col0 FROM tab0 AS cor0
----
125
7388
882

query I rowsort
SELECT + 57 FROM tab0, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL + 19 FROM tab0
----
19
19
19

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

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

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

query I rowsort
SELECT + 50 FROM tab0 AS cor0
----
50
50
50

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

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

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

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

query I rowsort
SELECT DISTINCT + ( + col0 ) * 34 * - 94 + col2 + - 90 FROM tab1
----
-204577
-255674
-9624

onlyif mysql # use DIV operator for integer division
query I rowsort label-1338
SELECT ( - tab1.col2 ) DIV - tab1.col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1338
SELECT ( - tab1.col2 ) / - tab1.col0 FROM tab1
----
0
1
18

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

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

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

query I rowsort
SELECT DISTINCT + + 25 FROM tab1 AS cor0
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT + col0 DIV - col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1343
SELECT + col0 / - col2 FROM tab0 cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col2 ) col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - 64 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT ALL - cor0.col1 * + col0 - - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-3298
-637
774

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

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

skipif mysql # not compatible
query I rowsort label-1350
SELECT ALL + col0 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 - + ( col0 ) col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + col2 * + 84 + 52 - + col1 AS col1 FROM tab0 AS cor0
----
2738
39
6849

query I rowsort
SELECT ALL - + col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL col0 + col0 * 52 + + col0 * 92 AS col2 FROM tab1 cor0
----
11600
435
9280

query I rowsort
SELECT - col2 + ( - 70 ) AS col1 FROM tab2 AS cor0
----
-108
-96
-97

query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * + col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT - col1 + col1 * + 12 AS col1 FROM tab2 AS cor0
----
187
341
649

query I rowsort
SELECT ALL - cor0.col2 + 50 - + col1 FROM tab2 AS cor0
----
-35
-5
-8

query I rowsort
SELECT ALL col1 + - col0 * col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab0, tab0 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 20 - - col1 col2 FROM tab1 AS cor0
----
-1054
-1130
-1907

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1362
SELECT ALL - + CAST( + col0 AS SIGNED ) + - cor0.col1 FROM tab0 cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - + CAST ( + col0 AS INTEGER ) + - cor0.col1 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT ( - col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT + - ( + col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 + - 56 col2 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT + 43 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col0 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1369
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1369
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1371
SELECT + + CAST( NULL AS SIGNED ) * 22 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT + + CAST ( NULL AS INTEGER ) * 22 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 72 AS col1 FROM tab0
----
72
72
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1373
SELECT + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1373
SELECT + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - col1 + + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col1 + 61 AS col2 FROM tab2 AS cor0
----
2
30
44

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab2
----
35

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1, tab0 cor1
----
3645 values hashing to 9d746e15fdb5adcb43a7518cd9743eb3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) col1 FROM tab0
----
24
35
89

query I rowsort
SELECT + col1 * col0 + + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab2 cor2
----
3645 values hashing to e3826bc27970dd1a441a9cd4c13b096d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 54 * col2 FROM tab2
----
1404
1458
2052

query I rowsort
SELECT DISTINCT + col1 * 11 FROM tab2
----
187
341
649

query I rowsort
SELECT col2 * 19 FROM tab2
----
494
513
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-1386
SELECT - - col2 + cor0.col0 + cor0.col1 DIV 45 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-1386
SELECT - - col2 + cor0.col0 + cor0.col1 / 45 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 4 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL + 62 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT ALL + 33 FROM tab2, tab2 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - - col1 * + 14 AS col1 FROM tab0 AS cor0
----
1204
1274
1358

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-1392
SELECT DISTINCT col0 DIV + 52 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT col0 / + 52 FROM tab0
----
0
1

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1394
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

query I rowsort
SELECT tab1.col0 * - col2 AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - col2 * 90 AS col2 FROM tab0
----
-2970
-7380
-90

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab0, tab0 AS cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col1 FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - ( col2 + - tab1.col1 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + + 22 * - 36 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to efe8af464b9c93ee4c4a10c3a6ae3d7d

query I rowsort
SELECT col0 * col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - - 30 + - col0 * + 85 FROM tab0 AS cor0
----
-2010
-2945
-7535

query I rowsort
SELECT + + 28 + col0 AS col0 FROM tab2 AS cor0
----
106
107
35

query I rowsort
SELECT ALL + col0 * + col2 + ( - col0 ) FROM tab2
----
182
1950
2923

query I rowsort
SELECT 37 AS col1 FROM tab2
----
37
37
37

query I rowsort
SELECT - col2 - col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - col1 + + col1 * col2 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * col1 col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + + col1 + col0 + - 34 AS col2 FROM tab0 AS cor0
----
146
76
98

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1411
SELECT - col1 * - CAST( NULL AS DECIMAL ) + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1411
SELECT - col1 * - CAST ( NULL AS REAL ) + + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-1414
SELECT ALL + col1 DIV 96 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL + col1 / 96 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1415
SELECT DISTINCT - ( + col1 ) DIV + col0 + + CAST( col2 AS SIGNED ) - + col0 col0 FROM tab0
----
-36
-8
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT - ( + col1 ) / + col0 + + CAST ( col2 AS INTEGER ) - + col0 col0 FROM tab0
----
-36
-8
6

query I rowsort
SELECT - 90 * - 16 - cor0.col2 FROM tab0 AS cor0
----
1358
1407
1439

query I rowsort
SELECT ALL ( - col0 ) AS col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT 97 * - col0 * col2 FROM tab0 AS cor0
----
-3395
-707906
-76824

query I rowsort
SELECT - 56 * col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
10584
113568
168112

query I rowsort
SELECT ( cor0.col0 ) * + col2 - + 75 AS col2 FROM tab1 AS cor0
----
3573
7605
87

query I rowsort
SELECT - col2 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL - 46 FROM tab1 AS cor0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT col0 + col2 * - ( 61 ) AS col2 FROM tab1 AS cor0
----
-3291
-3413
-5776

query I rowsort
SELECT - col0 * col2 * + 57 FROM tab1 cor0
----
-207936
-437760
-9234

query I rowsort
SELECT 50 + - col1 * + col2 FROM tab0 AS cor0
----
-2788
-47
-7412

query I rowsort
SELECT ALL - 99 + - col2 * - col0 AS col0 FROM tab2 cor0
----
1929
2903
90

query I rowsort
SELECT + 4 + - col1 FROM tab2 cor0
----
-13
-27
-55

query I rowsort
SELECT + - col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 45 AS col1 FROM tab2 AS cor0
----
-45
-45
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT + + cor0.col1 * col1 + cor0.col1 DIV 65 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-1430
SELECT + + cor0.col1 * col1 + cor0.col1 / 65 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 36 * tab2.col2 AS col2 FROM tab2
----
-1368
-936
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT DISTINCT - - 38 DIV col2 FROM tab0 AS cor0
----
0
1
38

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT - - 38 / col2 FROM tab0 AS cor0
----
0
1
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1434
SELECT + col1 DIV col0 col2 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1434
SELECT + col1 / col0 col2 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT - 98 * col1 * - col2 AS col1 FROM tab2 AS cor0
----
150332
63308
82026

query I rowsort
SELECT - + col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col2 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL + col1 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-1441
SELECT + - col2 + + col2 DIV + 21 FROM tab1 cor0
----
-52
-55
-92

skipif mysql # not compatible
query I rowsort label-1441
SELECT + - col2 + + col2 / + 21 FROM tab1 cor0
----
-52
-55
-92

query I rowsort
SELECT ALL - 91 FROM tab0 cor0
----
-91
-91
-91

query I rowsort
SELECT DISTINCT - + col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + + col0 + - cor0.col0 * - col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + col2 + 61 * - col0 AS col1 FROM tab2 cor0
----
-400
-4732
-4781

query I rowsort
SELECT DISTINCT col0 * col0 + + 82 AS col2 FROM tab0
----
1307
658
8003

query I rowsort
SELECT + + col1 * cor0.col0 + + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + cor0.col0 + ( col2 ) AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col2 + + col1 * col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - tab1.col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT + 73 + - tab0.col2 * col0 AS col0 FROM tab0
----
-719
-7225
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1453
SELECT ALL col2 DIV - col0 + - col2 + 82 AS col2 FROM tab0
----
0
48
81

skipif mysql # not compatible
query I rowsort label-1453
SELECT ALL col2 / - col0 + - col2 + 82 AS col2 FROM tab0
----
0
48
81

query I rowsort
SELECT ALL + ( col1 ) * - 57 + tab1.col1 FROM tab1
----
-1456
-560
-728

query I rowsort
SELECT ALL col2 + - col2 * - col2 + + col2 FROM tab0 AS cor0
----
1155
3
6888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( cor0.col0 ) * + col2 + + col0 col1 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT ALL + 37 * col2 AS col2 FROM tab0 AS cor0
----
1221
3034
37

query I rowsort
SELECT col2 + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL ( - col2 ) + col1 * col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT + 39 + - ( + cor0.col1 ) FROM tab1 AS cor0
----
13
26
29

query I rowsort
SELECT - cor0.col0 * - 78 AS col1 FROM tab0 AS cor0
----
1872
2730
6942

query I rowsort
SELECT ALL + - col0 * 91 + cor0.col1 FROM tab0 AS cor0
----
-2098
-3088
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1463
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - ( col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + + ( 8 ) + - col1 FROM tab0 AS cor0
----
-78
-83
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1466
SELECT col2 - CAST( - col2 + col1 AS SIGNED ) AS col0 FROM tab0
----
-20
-95
73

skipif mysql # not compatible
query I rowsort label-1466
SELECT col2 - CAST ( - col2 + col1 AS INTEGER ) AS col0 FROM tab0
----
-20
-95
73

query I rowsort
SELECT col0 * 96 + - col2 AS col0 FROM tab0
----
2271
3359
8462

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1468
SELECT - CAST( NULL AS SIGNED ) + - col1 - + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT - CAST ( NULL AS INTEGER ) + - col1 - + col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 89 * ( - col2 ) FROM tab1 AS cor0
----
-4806
-5073
-8544

onlyif mysql # use DIV operator for integer division
query I rowsort label-1470
SELECT + col0 DIV + cor0.col2 col1 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1470
SELECT + col0 / + cor0.col2 col1 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + col2 * 13 AS col0 FROM tab0 AS cor0
----
1066
13
429

query I rowsort
SELECT col0 * col2 + - tab1.col1 + 78 * - 96 FROM tab1
----
-3850
-7352
179

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1473
SELECT CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - - col2 * - col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 74 FROM tab2 AS cor0
----
-74
-74
-74

query I rowsort
SELECT - 14 FROM tab2, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab1, tab2 cor0
----
19

query I rowsort
SELECT ALL ( + 22 * - col0 ) FROM tab0
----
-1958
-528
-770

query I rowsort
SELECT ALL ( + tab2.col2 ) * + col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL - ( + tab0.col0 + col1 ) AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT col2 * + 35 FROM tab1
----
1890
1995
3360

query I rowsort
SELECT ALL 66 FROM tab1
----
66
66
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1484
SELECT + col2 + + CAST( - col0 AS SIGNED ) + col0 * 51 FROM tab2 AS cor0
----
377
3926
3988

skipif mysql # not compatible
query I rowsort label-1484
SELECT + col2 + + CAST ( - col0 AS INTEGER ) + col0 * 51 FROM tab2 AS cor0
----
377
3926
3988

query I rowsort
SELECT - col0 + + col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col1 + + 31 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1274
875
943

query I rowsort
SELECT - - cor0.col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + cor0.col0 * - cor0.col2 + - 13 * + cor0.col2 FROM tab1 AS cor0
----
-540
2907
6432

query I rowsort
SELECT 28 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

onlyif mysql # use DIV operator for integer division
query I rowsort label-1490
SELECT col0 DIV - tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1490
SELECT col0 / - tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + tab0.col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL + - 10 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query IIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * 93 * col1 col0 FROM tab1 AS cor0
----
59520
7254
96720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1495
SELECT ALL cor0.col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1495
SELECT ALL cor0.col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - - col2 * - 36 + 83 + - col0 * + col1 FROM tab2 cor0
----
-1106
-2628
-5455

query I rowsort
SELECT ALL + col1 + col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT DISTINCT - col1 * col2 * - col0 + col2 FROM tab1 cor0
----
36537
4266
99936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col2 * col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT 42 + - 58 * col1 FROM tab0 AS cor0
----
-4946
-5236
-5584

onlyif mysql # use DIV operator for integer division
query I rowsort label-1505
SELECT ALL + ( + col0 ) DIV + col0 + + col2 AS col2 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL + ( + col0 ) / + col0 + + col2 AS col2 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT + + 37 * + cor0.col1 FROM tab1 AS cor0
----
370
481
962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1507
SELECT ALL CAST( - 38 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-1507
SELECT ALL CAST ( - 38 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col0 ) col1 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 94 * - col2 col0 FROM tab0
----
-266772
-701428
-9118

onlyif mysql # use DIV operator for integer division
query I rowsort label-1510
SELECT + col1 * + col2 DIV ( col2 ) AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1510
SELECT + col1 * + col2 / ( col2 ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT + + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT ( tab1.col1 * cor0.col2 ) + - ( 28 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 292cffa98381837d51804abdd99402be

query I rowsort
SELECT - 88 FROM tab0, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT - 38 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT - 60 AS col0 FROM tab1 AS cor0
----
-60
-60
-60

query I rowsort
SELECT - ( - col1 ) + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - ( col2 ) + + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT 74 * + col1 + + col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1976
760
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 35 col1 FROM tab2 cor0
----
-35
-35
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1520
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1520
SELECT - 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 ALL - 75 * col1 col2 FROM tab0 AS cor0
----
-6450
-6825
-7275

query I rowsort
SELECT + 56 + col1 AS col2 FROM tab2 AS cor0
----
115
73
87

query I rowsort
SELECT ALL - 50 AS col0 FROM tab0
----
-50
-50
-50

query I rowsort
SELECT ALL + 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT + 83 * - cor0.col1 FROM tab0 cor0
----
-7138
-7553
-8051

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT ( + col1 ) AS col1 FROM tab2 cor0
----
17
31
59

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 * + col2 * 93 FROM tab0 AS cor0
----
101277
625332
93

query I rowsort
SELECT 24 * + col1 + ( col0 ) AS col1 FROM tab1
----
304
392
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT DISTINCT col0 DIV + col0 + 30 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT col0 / + col0 + 30 FROM tab1
----
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1532
SELECT + + col2 + CAST( NULL AS SIGNED ) * - ( col1 ) * + 85 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT + + col2 + CAST ( NULL AS INTEGER ) * - ( col1 ) * + 85 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + cor0.col0 * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - col0 * col1 + + col0 + - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col1 * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col2 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + col1 + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + cor0.col0 + col2 * - col1 * - col0 AS col2 FROM tab2 AS cor0
----
119730
51113
5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-1541
SELECT + col1 + + cor0.col2 + - cor0.col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
108
66
79

skipif mysql # not compatible
query I rowsort label-1541
SELECT + col1 + + cor0.col2 + - cor0.col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
108
66
79

query I rowsort
SELECT DISTINCT + - col0 + + col1 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col2 * + col0 * - col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT - col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - + col0 * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - + col1 + - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + col0 + col1 * col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT col0 * col1 + + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - - col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1554
SELECT - col1 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT - col1 / - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT tab0.col0 * - col0 FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT col0 - col2 AS col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + col1 * + col2 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 * col2 + - col2 - + col2 AS col1 FROM tab0 AS cor0
----
33
7134
726

query I rowsort
SELECT DISTINCT col0 * tab0.col2 * - col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT + tab0.col0 * col1 AS col1 FROM tab0
----
2064
3395
8099

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT col1 * + col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col1 + tab0.col0 * + tab0.col1 AS col0 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL - tab2.col2 + - col1 * - col2 AS col1 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT - col0 * col1 * - col2 + + col2 AS col1 FROM tab1
----
36537
4266
99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-1567
SELECT ALL + col0 DIV col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1567
SELECT ALL + col0 / col2 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col1 * col1 - + col1 AS col0 FROM tab2
----
272
3422
930

query I rowsort
SELECT + tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1571
SELECT ALL col1 DIV - tab2.col1 - + col0 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL col1 / - tab2.col1 - + col0 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT DISTINCT - col0 * col0 - + col0 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT ALL col0 + + tab1.col0 * tab1.col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - col0 * + col1 - - col1 AS col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT col1 * col1 - - col2 * tab2.col1 * - col1 FROM tab2
----
-10693
-24986
-87025

query I rowsort
SELECT + col1 + col1 + col1 AS col0 FROM tab1
----
30
39
78

query I rowsort
SELECT tab2.col0 + col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT ALL + tab1.col1 + + tab1.col0 - tab1.col1 FROM tab1
----
3
64
80

query I rowsort
SELECT cor0.col1 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - col0 - - col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 - cor0.col0 col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col2 - - col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT ALL col2 DIV + col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL col2 / + col0 FROM tab1
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-1586
SELECT col2 DIV col0 + col0 * - tab1.col1 + col0 * col0 FROM tab1
----
-51
3456
5361

skipif mysql # not compatible
query I rowsort label-1586
SELECT col2 / col0 + col0 * - tab1.col1 + col0 * col0 FROM tab1
----
-51
3456
5361

query I rowsort
SELECT DISTINCT - col2 + + col0 + + col0 FROM tab0
----
15
69
96

query I rowsort
SELECT col0 * + col1 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + col1 * + tab2.col1 + col2 * - col2 AS col2 FROM tab2
----
-1155
232
2805

query I rowsort
SELECT - col1 * - col2 * col1 AS col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT col0 + - col1 + col2 AS col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT tab2.col2 * tab2.col2 * + col1 + + col1 AS col1 FROM tab2
----
22630
24565
39943

query I rowsort
SELECT - col0 * + col1 * + tab0.col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + col2 + - col2 * - col2 + + col0 AS col2 FROM tab0
----
1146
37
6895

query I rowsort
SELECT col2 * col2 * + col0 AS col0 FROM tab2 WHERE NOT - col0 - + col1 NOT IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1596
SELECT DISTINCT col0 DIV col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT col0 / col0 FROM tab2
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT + col0 * col2 DIV col1 FROM tab1
----
364
590
6

skipif mysql # not compatible
query I rowsort label-1597
SELECT + col0 * col2 / col1 FROM tab1
----
364
590
6

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col2 + - col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT col0 * + tab0.col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col2 + col1 * + col1 AS col1 FROM tab2
----
251
3455
934

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col1
----

query I rowsort
SELECT + tab1.col0 - - tab1.col2 AS col2 FROM tab1
----
121
176
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( col1 * col0 )
----

query I rowsort
SELECT DISTINCT - col0 * tab0.col2 + - col1 AS col1 FROM tab0
----
-132
-7389
-878

query III rowsort
SELECT * FROM tab0 WHERE NULL = col1 - + col1
----

query I rowsort
SELECT tab0.col1 + - col2 * col0 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * col0 col0 FROM tab0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE ( NULL ) = col0
----

query I rowsort
SELECT ALL + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + 45 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT + col0 * - col2 + - cor0.col0 AS col0 FROM tab2 cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL - ( + col1 ) + 20 FROM tab1 cor0
----
-6
10
7

query I rowsort
SELECT DISTINCT - col0 + - col0 * 35 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT DISTINCT cor0.col1 + col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT - col1 - col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - col1 + + col1 + 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1618
SELECT col2 DIV - tab1.col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1618
SELECT col2 / - tab1.col2 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 - col2 BETWEEN ( col2 + col0 ) AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL + + col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col2 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1622
SELECT + tab0.col1 DIV col1 + col0 + col2 * + col2 AS col1 FROM tab0
----
1114
37
6814

skipif mysql # not compatible
query I rowsort label-1622
SELECT + tab0.col1 / col1 + col0 + col2 * + col2 AS col1 FROM tab0
----
1114
37
6814

onlyif mysql # use DIV operator for integer division
query I rowsort label-1623
SELECT DISTINCT tab2.col0 * col1 + - col2 DIV col1 FROM tab2
----
1341
217
4602

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT tab2.col0 * col1 + - col2 / col1 FROM tab2
----
1341
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 - - col2 col1 FROM tab0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col0 FROM tab2 AS cor0
----
1444
676
729

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 + + col1 * - col0 AS col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col1 * + cor0.col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1631
SELECT - cor0.col0 DIV cor0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 19c49c11cc9b548be21bc64de3610bde

skipif mysql # not compatible
query I rowsort label-1631
SELECT - cor0.col0 / cor0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 19c49c11cc9b548be21bc64de3610bde

query I rowsort
SELECT ALL + col1 * col1 * - col1 + + col1 / col0 FROM tab2 WHERE + col2 < NULL
----

query I rowsort
SELECT ALL - col0 * - tab1.col0 - - col1 AS col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT col1 * - col1 + + tab2.col0 AS col1 FROM tab2
----
-210
-3403
-954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 + col1 col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL + col1 * + col0 / col2 + col1 FROM tab2 WHERE - col0 IN ( + col0 / col0 + tab2.col2 )
----

query I rowsort
SELECT DISTINCT tab2.col1 * col2 + - col2 AS col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT + tab1.col1 * - col1 FROM tab1
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT col2 DIV + tab0.col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1639
SELECT col2 / + tab0.col2 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL tab2.col2 + col0 AS col1 FROM tab2 WHERE NOT ( col0 ) NOT IN ( - tab2.col2 / - col0 )
----

query I rowsort
SELECT tab2.col0 / tab2.col2 FROM tab2 WHERE NOT col0 = NULL
----

query I rowsort
SELECT + tab0.col2 FROM tab0 WHERE col2 IN ( col1 * col2 / - col0 + + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT - col1 DIV + col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-1643
SELECT - col1 / + col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT - tab1.col2 + + col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT tab2.col0 + col2 * + col1 + col0 FROM tab2
----
1690
804
851

query I rowsort
SELECT ALL col0 * + col1 + + col2 FROM tab2 WHERE NULL <> - col0
----

query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - col0 - - col2 * - col2 FROM tab2
----
-1523
-736
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT DISTINCT 88 DIV cor0.col0 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
0
2
3

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT 88 / cor0.col0 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
0
2
3

query I rowsort
SELECT 35 * col0 FROM tab0 cor0
----
1225
3115
840

query I rowsort
SELECT DISTINCT - 70 * cor0.col2 AS col2 FROM tab2 cor0
----
-1820
-1890
-2660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 + col1 col0 FROM tab1 cor0
----
100
84
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col2 * col2 col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT cor0.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1656
SELECT + col1 + + CAST( 60 AS SIGNED ) col1 FROM tab0 AS cor0
----
146
151
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1656
SELECT + col1 + + CAST ( 60 AS INTEGER ) col1 FROM tab0 AS cor0
----
146
151
157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1657
SELECT ( col2 + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1657
SELECT ( col2 + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col1 ) + + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT - 71 AS col1 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT ALL - ( col2 ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - + col1 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT - col0 DIV cor0.col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1663
SELECT - col0 / cor0.col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 95 + col2 - col1 FROM tab1 AS cor0
----
123
142
178

query I rowsort
SELECT + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - + 40 + + col0 AS col0 FROM tab1 AS cor0
----
-37
24
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-1667
SELECT + - col1 + - ( col0 ) DIV + col0 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-1667
SELECT + - col1 + - ( col0 ) / + col0 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT ALL col2 * ( col0 + - col2 ) AS col1 FROM tab2 cor0
----
-540
1352
1558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1669
SELECT + CAST( NULL AS SIGNED ) / + col2 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1669
SELECT + CAST ( NULL AS INTEGER ) / + col2 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col1 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1671
SELECT 67 DIV + 24 AS col2 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1671
SELECT 67 / + 24 AS col2 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT ALL - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col2 - ( 63 ) * col1 FROM tab1
----
-1692
-687
-915

query I rowsort
SELECT + col0 * ( 14 ) FROM tab1
----
1120
42
896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1675
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 - + ( + 31 ) FROM tab0
----
55
60
66

query I rowsort
SELECT DISTINCT - col2 - - 31 * col1 AS col0 FROM tab1
----
253
307
752

onlyif mysql # use DIV operator for integer division
query I rowsort label-1678
SELECT + col0 * col2 + - cor0.col0 - CAST( - 44 AS SIGNED ) DIV - col0 AS col0 FROM tab2 AS cor0
----
176
1950
2923

skipif mysql # not compatible
query I rowsort label-1678
SELECT + col0 * col2 + - cor0.col0 - CAST ( - 44 AS INTEGER ) / - col0 AS col0 FROM tab2 AS cor0
----
176
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-1679
SELECT + col0 * 21 + col2 DIV + 70 FROM tab1 AS cor0
----
1344
1681
63

skipif mysql # not compatible
query I rowsort label-1679
SELECT + col0 * 21 + col2 / + 70 FROM tab1 AS cor0
----
1344
1681
63

query I rowsort
SELECT 98 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT - ( col1 ) * + col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1682
SELECT DISTINCT ( col1 ) + tab1.col1 + - col2 DIV 23 FROM tab1
----
18
22
50

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT ( col1 ) + tab1.col1 + - col2 / 23 FROM tab1
----
18
22
50

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 28a820d445f1d1e09fd3c7443bd16e29

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT ALL + col2 DIV + 97 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + col2 / + 97 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - tab1.col2 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT + - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col1 * + col1 + + col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL + 24 * - col0 + col2 FROM tab1
----
-1479
-18
-1824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1689
SELECT + col0 + col2 * CAST( + 83 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
118
2763
6895

skipif mysql # not compatible
query I rowsort label-1689
SELECT + col0 + col2 * CAST ( + 83 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
118
2763
6895

query I rowsort
SELECT + col2 - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * 49 FROM tab1
----
2646
2793
4704

query I rowsort
SELECT 63 AS col1 FROM tab0
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1693
SELECT - col1 DIV col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1693
SELECT - col1 / col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT 35 * + 37 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d78da9f9d40e1c8364bb498dfa09b0bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1695
SELECT + col2 DIV col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1695
SELECT + col2 / col2 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL + 29 + - 83 FROM tab0
----
-54
-54
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1697
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT 97 FROM tab2
----
97

query I rowsort
SELECT + tab0.col0 * col2 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + tab1.col1 * - col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + 68 * - cor0.col0 FROM tab2 AS cor0
----
-476
-5304
-5372

query I rowsort
SELECT + ( cor0.col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - - col2 * + col0 * - col1 - - 24 FROM tab1 AS cor0
----
-36456
-4188
-99816

query I rowsort
SELECT + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + tab2.col1 AS col2 FROM tab2, tab1 AS cor0
----
17
31
59

query I rowsort
SELECT - col2 + col2 * col0 + col0 FROM tab2
----
169
2080
3043

query I rowsort
SELECT 75 * col0 + col0 - col0 AS col0 FROM tab1
----
225
4800
6000

query I rowsort
SELECT + - col0 * + col2 + + cor0.col2 + + 65 FROM tab1 AS cor0
----
-3526
-43
-7519

query I rowsort
SELECT ALL + cor0.col2 + - cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b3890534a83d60e0e85297212fa3eab4

query I rowsort
SELECT ALL - + col0 + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - + col1 * cor0.col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + + col1 + 92 AS col2 FROM tab2 cor0
----
109
123
151

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col1 AS col0 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT - col0 + 23 * - col0 FROM tab0 AS cor0
----
-2136
-576
-840

query I rowsort
SELECT DISTINCT 54 FROM tab1, tab1 AS cor0
----
54

query I rowsort
SELECT - tab1.col1 * - col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT + 71 AS col0 FROM tab1
----
71
71
71

query I rowsort
SELECT DISTINCT + col2 * col1 + - col2 * + col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 + cor0.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d4859ec1ecc49c71ea843da533e2beb3

query I rowsort
SELECT col1 + + cor0.col0 - ( + col0 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col2 + + col2 + 21 AS col1 FROM tab2 AS cor0
----
73
75
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + 41 * ( col2 * ( col1 ) ) + col2 col1 FROM tab2
----
26603
34351
62998

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1723
SELECT - col2 + - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT - col2 + - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1724
SELECT DISTINCT + + col0 + + col0 * - cor0.col0 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT + + col0 + + col0 * - cor0.col0 / col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 * - 24 FROM tab2 AS cor0
----
-1416
-408
-744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1726
SELECT DISTINCT - - col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT - - col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( + col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col2 + 83 * col0 + + col0 * + col2 AS col0 FROM tab2 AS cor0
----
743
8476
9521

query I rowsort
SELECT - col0 * + 81 AS col1 FROM tab0 AS cor0
----
-1944
-2835
-7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-1732
SELECT - col1 * col1 + col0 + cor0.col1 DIV ( cor0.col1 ) FROM tab1 AS cor0
----
-35
-672
-88

skipif mysql # not compatible
query I rowsort label-1732
SELECT - col1 * col1 + col0 + cor0.col1 / ( cor0.col1 ) FROM tab1 AS cor0
----
-35
-672
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT ALL + col0 + col0 * - col1 DIV col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL + col0 + col0 * - col1 / col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 34 + - col2 AS col1 FROM tab2 AS cor0
----
-4
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 + + 84 * cor0.col2 col0 FROM tab0 AS cor0
----
107
2795
6911

query I rowsort
SELECT ALL - ( col2 ) * + col2 + ( 19 * col1 ) AS col2 FROM tab1 AS cor0
----
-2422
-3059
-8969

query I rowsort
SELECT DISTINCT + cor0.col2 + + 21 * + col0 AS col0 FROM tab1 AS cor0
----
117
1401
1776

query I rowsort
SELECT DISTINCT - col1 - ( - col2 ) AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + tab2.col2 * - tab2.col2 AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL tab1.col0 * - col2 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1744
SELECT - cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1744
SELECT - cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + - ( col2 ) * col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT - 14 FROM tab2 cor0
----
-14
-14
-14

query I rowsort
SELECT ALL - 47 AS col0 FROM tab0
----
-47
-47
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-1749
SELECT ( + col1 ) DIV - 73 + - col1 AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1749
SELECT ( + col1 ) / - 73 + - col1 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL 32 AS col0 FROM tab0
----
32
32
32

query I rowsort
SELECT ALL col1 * - col2 FROM tab1
----
-1248
-1404
-570

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 cor0, tab0
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab2
----
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 23 + cor0.col1 * col1 col1 FROM tab2 AS cor0
----
266
3458
938

query I rowsort
SELECT col2 - col1 * + col1 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT - 8 * tab0.col2 - - col0 AS col0 FROM tab0
----
-240
-567
27

query I rowsort
SELECT - col1 + - col1 AS col1 FROM tab1
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - - col2 + col1 * - col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * tab1.col2 col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT tab1.col2 * 67 + - ( col2 ) * col1 AS col1 FROM tab1
----
2214
3249
5184

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 FROM tab0 cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-1764
SELECT + col2 DIV + 46 AS col0 FROM tab1 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1764
SELECT + col2 / + 46 AS col0 FROM tab1 cor0
----
1
1
2

query I rowsort
SELECT DISTINCT col1 * + 35 + cor0.col1 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 * col0 * - cor0.col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT + ( col0 ) + + col1 * + 42 FROM tab2
----
1309
2556
793

query I rowsort
SELECT ALL ( + col1 ) + col2 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + ( col1 ) * + col0 + - ( tab0.col1 ) FROM tab0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1770
SELECT DISTINCT ( col0 ) * tab0.col0 * CAST( - col0 AS SIGNED ) + col1 col1 FROM tab0
----
-13738
-42778
-704878

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT ( col0 ) * tab0.col0 * CAST ( - col0 AS INTEGER ) + col1 col1 FROM tab0
----
-13738
-42778
-704878

query I rowsort
SELECT ALL 88 * + col0 FROM tab2 AS cor0
----
616
6864
6952

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c

query I rowsort
SELECT - ( ( col0 ) ) + + tab2.col1 + col1 * tab2.col0 FROM tab2
----
1281
241
4583

query I rowsort
SELECT + col2 * - col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - tab0.col1 * + col1 + + col2 * + 85 * + 60 AS col1 FROM tab0
----
-4309
160904
409919

query I rowsort
SELECT + col0 + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1777
SELECT DISTINCT + + ( col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT + + ( col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - + col1 * - col1 + ( 59 ) * - col1 AS col2 FROM tab1 AS cor0
----
-490
-598
-858

query I rowsort
SELECT ALL - col1 + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col2 col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + - col2 + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - col2 * - col0 + ( + 40 ) FROM tab0 AS cor0
----
7338
75
832

query I rowsort
SELECT ALL + col1 * + col1 + cor0.col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT col0 * + col1 - col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT ALL + + col2 + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL 75 AS col0 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 37 * col2 AS col1 FROM tab1 AS cor0
----
1998
2109
3552

onlyif mysql # use DIV operator for integer division
query I rowsort label-1789
SELECT ALL - col2 * col0 + 35 DIV + col0 AS col2 FROM tab0 AS cor0
----
-34
-7298
-791

skipif mysql # not compatible
query I rowsort label-1789
SELECT ALL - col2 * col0 + 35 / + col0 AS col2 FROM tab0 AS cor0
----
-34
-7298
-791

query I rowsort
SELECT ALL - + cor0.col2 AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + + col0 + - col0 * ( col1 + - col1 * col0 ) AS col1 FROM tab0 AS cor0
----
115465
47496
712801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab0.col0 ) col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - col1 * col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ( col2 ) * col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + + col0 + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - - col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - col2 + cor0.col0 * ( cor0.col2 + col0 ) AS col0 FROM tab0 AS cor0
----
1259
1335
15137

query I rowsort
SELECT + col2 * + col1 + + cor0.col2 AS col2 FROM tab0 cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1799
SELECT ALL col2 + cor0.col2 DIV - col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL col2 + cor0.col2 / - col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT - 8 - cor0.col2 AS col2 FROM tab2 cor0
----
-34
-35
-46

query I rowsort
SELECT ALL + - 64 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT + col1 * col0 * col0 + col1 * - col1 * + 74 AS col0 FROM tab0 AS cor0
----
-497768
-577441
108017

query I rowsort
SELECT ALL 79 + 49 + cor2.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 125852a33cfa309339ff4fa80021f335

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT + 12 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # use DIV operator for integer division
query I rowsort label-1806
SELECT col0 DIV - 6 AS col2 FROM tab0
----
-14
-4
-5

skipif mysql # not compatible
query I rowsort label-1806
SELECT col0 / - 6 AS col2 FROM tab0
----
-14
-4
-5

query I rowsort
SELECT ALL - - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1808
SELECT ALL - 76 DIV - col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - 76 / - col1 AS col2 FROM tab1
----
2
5
7

query I rowsort
SELECT ( - 19 ) * - tab0.col2 * + 18 FROM tab0
----
11286
28044
342

query I rowsort
SELECT ALL - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col2 * 29 * - col1 AS col0 FROM tab1 cor0
----
-16530
-36192
-40716

query I rowsort
SELECT DISTINCT col1 * - col0 * + col0 AS col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT 16 AS col1 FROM tab0
----
16
16
16

query I rowsort
SELECT - col1 * + col2 * tab0.col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT 27 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2106
-2133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 24 * + col1 col2 FROM tab1 AS cor0
----
-240
-312
-624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1817
SELECT - - CAST( 38 AS SIGNED ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-380
-494
-988

skipif mysql # not compatible
query I rowsort label-1817
SELECT - - CAST ( 38 AS INTEGER ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-380
-494
-988

query I rowsort
SELECT + - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT 60 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT ALL 42 AS col1 FROM tab1
----
42
42
42

query I rowsort
SELECT - 65 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

query I rowsort
SELECT + cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 30 AS col0 FROM tab0
----
30
30
30

query I rowsort
SELECT DISTINCT + 77 * 38 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
2926

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col0 FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col2 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT + 99 * col2 FROM tab0 AS cor0
----
3267
8118
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1829
SELECT ALL - 21 DIV - col1 + + 87 AS col0 FROM tab1 cor0
----
87
88
89

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL - 21 / - col1 + + 87 AS col0 FROM tab1 cor0
----
87
88
89

query I rowsort
SELECT DISTINCT col0 * + col2 - - ( - col0 * - col1 ) FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT col0 + + col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + + col2 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - - col0 - ( col2 ) FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT DISTINCT + col2 DIV 64 + + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT + col2 / 64 + + col1 / col0 AS col1 FROM tab0 AS cor0
----
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-1835
SELECT ALL + cor0.col1 DIV ( - col0 + + col2 ) FROM tab2 cor0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + cor0.col1 / ( - col0 + + col2 ) FROM tab2 cor0
----
-1
0
1

query I rowsort
SELECT col1 * col2 * col2 + col0 FROM tab2 AS cor0
----
22606
24627
39962

query I rowsort
SELECT ALL cor0.col1 * col0 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 62 col2 FROM tab1 AS cor0
----
36
49
52

query I rowsort
SELECT + tab1.col1 + col2 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT + col2 + 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 col1 * ( col0 ) col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 + 72 AS col1 FROM tab1 AS cor0
----
82
85
98

query I rowsort
SELECT + 85 * + 62 FROM tab2, tab2 AS cor0
----
9 values hashing to a727c09e49a1ccf112a8590fa19771f4

query I rowsort
SELECT + col0 + + 67 AS col1 FROM tab1
----
131
147
70

query I rowsort
SELECT - col0 + + 29 * col1 AS col1 FROM tab0 AS cor0
----
2470
2550
2778

query I rowsort
SELECT ALL - cor0.col1 * col1 - + col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL - + col0 - + col0 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1848
SELECT - - col1 DIV + col1 - - cor0.col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-1848
SELECT - - col1 / + col1 - - cor0.col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT DISTINCT - ( + 56 ) * + col1 + - ( col1 ) AS col1 FROM tab1 cor0
----
-1482
-570
-741

onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT + col0 DIV + col0 - + col0 * - 9 * + col1 AS col2 FROM tab2 AS cor0
----
12088
1954
41419

skipif mysql # not compatible
query I rowsort label-1850
SELECT + col0 / + col0 - + col0 * - 9 * + col1 AS col2 FROM tab2 AS cor0
----
12088
1954
41419

query I rowsort
SELECT ALL - 61 * col1 AS col2 FROM tab0 AS cor0
----
-5246
-5551
-5917

query I rowsort
SELECT - col0 * - col0 - - col1 * col1 AS col1 FROM tab2 AS cor0
----
1010
6530
9565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 4 col0 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT + ( + 40 ) - - col2 AS col2 FROM tab0 AS cor0
----
122
41
73

query I rowsort
SELECT ALL 41 + - col1 + col0 FROM tab2 cor0
----
103
17
60

query I rowsort
SELECT - 15 + + col1 FROM tab2 AS cor0
----
16
2
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1857
SELECT ALL - CAST( col1 AS SIGNED ) + col0 col2 FROM tab1 cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - CAST ( col1 AS INTEGER ) + col0 col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + ( - 16 ) * + cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-1506
-417
-561

query I rowsort
SELECT + 78 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT 48 * col0 AS col2 FROM tab0 cor0
----
1152
1680
4272

query I rowsort
SELECT + col1 + + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - + col1 AS col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT col1 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1865
SELECT + CAST( NULL AS SIGNED ) * - tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT + CAST ( NULL AS INTEGER ) * - tab2.col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 42 * + col0 AS col1 FROM tab2
----
294
3276
3318

query I rowsort
SELECT ( - col2 ) FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col0 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT ( + tab1.col1 ) AS col0 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1871
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col0 * col0 * - col2 FROM tab1
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 - col2 col1 FROM tab0
----
-44
37
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 + - col2 col0 FROM tab2 AS cor0
----
55
66
67

query I rowsort
SELECT 47 FROM tab0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + col2 col2 FROM tab2
----
73
74
85

query I rowsort
SELECT ALL - ( col1 + + col0 ) FROM tab2
----
-137
-38
-96

query I rowsort
SELECT ALL - 62 + - col1 FROM tab1 AS cor0
----
-72
-75
-88

query I rowsort
SELECT ALL 2 AS col1 FROM tab2
----
2
2
2

query I rowsort
SELECT 25 AS col1 FROM tab1
----
25
25
25

query I rowsort
SELECT ALL - tab1.col0 AS col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT + 31 FROM tab1, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT 24 DIV col0 + col0 * col1 col0 FROM tab2
----
1343
220
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1884
SELECT 24 / col0 + col0 * col1 col0 FROM tab2
----
1343
220
4602

query I rowsort
SELECT ( 90 ) + + col2 FROM tab1
----
144
147
186

query I rowsort
SELECT DISTINCT 76 AS col0 FROM tab0
----
76

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col0 ) + + col0 * - col0 col2 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL col2 + col0 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - + ( col2 ) * col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 84 FROM tab1 AS cor0
----
84
84
84

query I rowsort
SELECT ALL + 29 * + col0 + col2 FROM tab2 AS cor0
----
2288
230
2329

onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT DISTINCT + + 28 + + col1 * col2 * + 92 + + cor0.col0 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
141157
59464
77032

skipif mysql # not compatible
query I rowsort label-1893
SELECT DISTINCT + + 28 + + col1 * col2 * + 92 + + cor0.col0 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
141157
59464
77032

onlyif mysql # use DIV operator for integer division
query I rowsort label-1894
SELECT - 85 DIV + tab2.col0 AS col1 FROM tab2
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-1894
SELECT - 85 / + tab2.col0 AS col1 FROM tab2
----
-1
-1
-12

query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ( + col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col1 + col2 * 91 FROM tab1 AS cor0
----
4940
5197
8749

query I rowsort
SELECT ALL - 26 * + col1 * cor0.col0 FROM tab2 AS cor0
----
-119652
-34918
-5642

query I rowsort
SELECT DISTINCT - 58 * col2 AS col1 FROM tab2 AS cor0
----
-1508
-1566
-2204

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab1 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * - col0 + 40 + + col2 AS col0 FROM tab0 AS cor0
----
-7176
-719
6

query I rowsort
SELECT ALL + 46 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT - col0 * 40 - col2 AS col2 FROM tab2
----
-307
-3146
-3198

query I rowsort
SELECT DISTINCT + col2 + - 3 AS col1 FROM tab2
----
23
24
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 56 * - col2 col0 FROM tab1 AS cor0
----
204288
430080
9072

query I rowsort
SELECT col0 + cor0.col1 AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL + col2 + - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT DISTINCT - col1 DIV 69 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT - col1 / 69 FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL col1 * + ( col2 + col1 ) FROM tab2 cor0
----
1798
5015
935

query I rowsort
SELECT DISTINCT - col2 - + 29 AS col2 FROM tab0 AS cor0
----
-111
-30
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1912
SELECT cor0.col1 * - CAST( col1 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

skipif mysql # not compatible
query I rowsort label-1912
SELECT cor0.col1 * - CAST ( col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-1913
SELECT ALL + + col2 DIV 47 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL + + col2 / 47 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col2 + + ( col0 ) * + col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + cor0.col0 * - ( col1 ) * + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-177480
-329280
-736920

query I rowsort
SELECT cor0.col2 + - cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * - ( cor0.col0 ) + col1 * - col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT + col0 DIV - ( - 57 ) + col2 FROM tab1 AS cor0
----
54
58
97

skipif mysql # not compatible
query I rowsort label-1918
SELECT + col0 / - ( - 57 ) + col2 FROM tab1 AS cor0
----
54
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL + + col1 + - col2 * col2 + 60 AS col0 FROM tab1 AS cor0
----
-2830
-3179
-9143

query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + + 66 + ( col0 ) AS col1 FROM tab0 AS cor0
----
101
155
90

query I rowsort
SELECT - cor0.col2 * + 66 AS col0 FROM tab1 AS cor0
----
-3564
-3762
-6336

query I rowsort
SELECT ALL 31 * col1 FROM tab2 cor0
----
1829
527
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1925
SELECT DISTINCT + + ( ( + col1 ) ) + CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT + + ( ( + col1 ) ) + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 85 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1927
SELECT DISTINCT + + cor0.col2 DIV 9 FROM tab1 cor0
----
10
6

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT + + cor0.col2 / 9 FROM tab1 cor0
----
10
6

query I rowsort
SELECT ALL cor0.col0 * col2 + - col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1929
SELECT + + CAST( - 72 AS SIGNED ) FROM tab1 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-1929
SELECT + + CAST ( - 72 AS INTEGER ) FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT cor0.col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT col2 + col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT + - col0 * - ( col0 + ( col2 ) ) AS col1 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - 58 + + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1167
518
7863

query I rowsort
SELECT DISTINCT + 30 * - 14 FROM tab0 AS cor0
----
-420

query I rowsort
SELECT + 35 AS col2 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1937
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + ( + col0 ) * cor0.col0 col0 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT ALL + 34 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL + 34 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( 88 ) * + col2 AS col2 FROM tab0 AS cor0
----
2904
7216
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL ( col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + - ( 3 ) AS col2 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ( col1 ) * col0 + cor0.col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT DISTINCT col2 * col1 + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - - cor0.col0 + col0 AS col2 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL + 27 - + col0 * + cor0.col0 FROM tab1 AS cor0
----
-4069
-6373
18

query I rowsort
SELECT - + 17 + - col2 * col1 * col0 AS col0 FROM tab0 AS cor0
----
-3412
-664135
-68129

query I rowsort
SELECT - cor0.col0 * col2 + + col0 * + col0 + col1 FROM tab2 cor0
----
-109
3256
4115

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1950
SELECT + CAST( NULL AS DECIMAL ) + - col2 * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1950
SELECT + CAST ( NULL AS REAL ) + - col2 * + col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT ALL - col1 + + CAST( + col2 AS SIGNED ) * col0 FROM tab2
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - col1 + + CAST ( + col2 AS INTEGER ) * col0 FROM tab2
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-1952
SELECT ALL + col1 * - 11 + 59 DIV col1 AS col1 FROM tab2
----
-184
-340
-648

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL + col1 * - 11 + 59 / col1 AS col1 FROM tab2
----
-184
-340
-648

query I rowsort
SELECT ALL + + 50 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 59 * - col2 + col2 AS col0 FROM tab0 cor0
----
1980
4920
60

query I rowsort
SELECT ALL col2 * 60 FROM tab1 AS cor0
----
3240
3420
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - - ( + 22 ) + col1 AS col0 FROM tab0 AS cor0
----
108
113
119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - tab2.col1 col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - + 96 FROM tab2 AS cor0
----
-96
-96
-96

query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + 22 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL - col1 * ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col2 * - ( ( col1 ) ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT + - col2 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1966
SELECT + - col2 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - + col1 * col1 + - 87 FROM tab0 AS cor0
----
-7483
-8368
-9496

onlyif mysql # use DIV operator for integer division
query I rowsort label-1969
SELECT col2 DIV - col1 + col2 + - 45 AS col2 FROM tab2
----
-18
-19
-9

skipif mysql # not compatible
query I rowsort label-1969
SELECT col2 / - col1 + col2 + - 45 AS col2 FROM tab2
----
-18
-19
-9

query I rowsort
SELECT + col0 + + tab0.col1 * ( col1 ) + - col1 FROM tab0
----
7334
8279
9347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1971
SELECT - col0 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1971
SELECT - col0 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - - 52 * col1 AS col0 FROM tab1
----
1349
456
596

query I rowsort
SELECT ALL - col0 + - col1 AS col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL - col0 + - col0 * + 26 FROM tab2 cor0
----
-189
-2106
-2133

query I rowsort
SELECT ALL + tab0.col0 + col2 * 49 FROM tab0
----
1641
4107
84

query I rowsort
SELECT DISTINCT - col0 * + 76 AS col2 FROM tab1
----
-228
-4864
-6080

onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT DISTINCT col1 DIV - 84 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT col1 / - 84 AS col1 FROM tab1
----
0

query I rowsort
SELECT + + cor0.col0 + col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT cor0.col2 * 71 + - 66 FROM tab2 AS cor0
----
1780
1851
2632

query I rowsort
SELECT col1 + + col1 * 8 AS col0 FROM tab2 AS cor0
----
153
279
531

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d

query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + 49 AS col2 FROM tab0
----
49
49
49

query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1988
SELECT ALL + ( + col2 ) * - CAST( NULL AS SIGNED ) + - tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL + ( + col2 ) * - CAST ( NULL AS INTEGER ) + - tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 * cor0.col0 col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1990
SELECT - - 51 * col0 + CAST( NULL AS SIGNED ) - cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1990
SELECT - - 51 * col0 + CAST ( NULL AS INTEGER ) - cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 70 + 77 AS col0 FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT - - 3 + + col0 - + col2 * - 26 * col0 AS col0 FROM tab2 AS cor0
----
4924
52809
78134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - cor0.col0 col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL col1 * - col1 * + col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT 42 * col0 AS col1 FROM tab0
----
1008
1470
3738

query I rowsort
SELECT ALL ( col0 ) * col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT col2 * tab1.col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col2 + - ( col1 + - col2 ) FROM tab0
----
-20
-95
73

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab2 AS cor0, tab2 AS cor1
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee

onlyif mysql # use DIV operator for integer division
query I rowsort label-2000
SELECT + ( 27 ) DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-2000
SELECT + ( 27 ) / - cor0.col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT + 17 + col1 FROM tab0 AS cor0
----
103
108
114

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab1 cor0, tab1
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT col2 * 63 + - tab0.col2 * col0 FROM tab0
----
-2132
1287
28

query I rowsort
SELECT + tab1.col2 * col1 + 60 FROM tab1
----
1308
1464
630

query I rowsort
SELECT - col1 + ( 64 * tab0.col1 ) AS col0 FROM tab0
----
5418
5733
6111

query I rowsort
SELECT DISTINCT + col0 * 0 AS col2 FROM tab0
----
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT col1 * + 21 AS col2 FROM tab1
----
210
273
546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2009
SELECT + CAST( NULL AS SIGNED ) * - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT + CAST ( NULL AS INTEGER ) * - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + 55 FROM tab2 cor0
----
55
55
55

query I rowsort
SELECT ALL - col2 + col1 + - col1 AS col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col2 * - col1 * col0 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + 57 FROM tab1
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2016
SELECT - - col2 * 97 DIV col0 FROM tab1 AS cor0
----
116
1746
86

skipif mysql # not compatible
query I rowsort label-2016
SELECT - - col2 * 97 / col0 FROM tab1 AS cor0
----
116
1746
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2017
SELECT ALL - - 93 + col0 DIV col1 col2 FROM tab2 AS cor0
----
93
94
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL - - 93 + col0 / col1 col2 FROM tab2 AS cor0
----
93
94
97

query I rowsort
SELECT DISTINCT - - col2 * + col2 + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - - ( + 46 ) * + cor0.col2 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT DISTINCT col0 + 97 AS col0 FROM tab1 cor0
----
100
161
177

query I rowsort
SELECT 27 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT 41 + col0 * col0 FROM tab1 AS cor0
----
4137
50
6441

query I rowsort
SELECT 54 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT - tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT + ( - col1 ) + - col0 * tab2.col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT - ( col0 ) * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 75 * - col1 + cor0.col2 FROM tab1 AS cor0
----
-1896
-693
-879

query I rowsort
SELECT - col2 * - col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - 24 FROM tab0 cor0
----
24
24
24

query I rowsort
SELECT cor0.col1 * col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 46 AS col0 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 49 + + col2 AS col1 FROM tab0 AS cor0
----
131
50
82

query I rowsort
SELECT DISTINCT 71 + col0 - + col2 FROM tab1 cor0
----
20
55
78

query I rowsort
SELECT ALL cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - 53 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT - - ( col1 ) + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + cor0.col1 + + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + + col2 * + col1 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - ( col0 ) - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + cor0.col1 * ( + 12 * + col2 + - col1 * col1 ) FROM tab0 AS cor0
----
-602000
-664027
-911509

query I rowsort
SELECT col2 * 89 AS col2 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT - + col2 * 22 FROM tab2 AS cor0
----
-572
-594
-836

onlyif mysql # use DIV operator for integer division
query I rowsort label-2044
SELECT cor0.col0 * - col1 - + col2 DIV - cor0.col2 col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2044
SELECT cor0.col0 * - col1 - + col2 / - cor0.col2 col2 FROM tab0 AS cor0
----
-2063
-3394
-8098

skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 * + CAST ( col2 AS REAL ) + - col2 AS col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT col1 * - col1 + 0 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + cor0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 86 + - ( col2 ) * col0 col2 FROM tab2 AS cor0
----
3792
413
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col2 col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + 56 - - col0 AS col0 FROM tab1 AS cor0
----
120
136
59

query I rowsort
SELECT ALL + 57 + ( - col1 ) FROM tab2 cor0
----
-2
26
40

query I rowsort
SELECT ALL - tab1.col0 * 10 FROM tab1
----
-30
-640
-800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2054
SELECT + col0 + col0 DIV cor0.col0 AS col1 FROM tab0 cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2054
SELECT + col0 + col0 / cor0.col0 AS col1 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT - + ( col0 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL col0 * 89 AS col0 FROM tab2
----
623
6942
7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - 71 col0 FROM tab1 AS cor0
----
-125
-128
-167

query I rowsort
SELECT ALL + 22 FROM tab2
----
22
22
22

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col2 * CAST ( - 51 AS REAL ) FROM tab2 AS cor0
----
1326
1377
1938

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT DISTINCT - col1 DIV + 44 FROM tab0 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT - col1 / + 44 FROM tab0 AS cor0
----
-1
-2

query I rowsort
SELECT ALL + cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-2065
SELECT + col0 DIV - 4 FROM tab2 AS cor0
----
-1
-19
-19

skipif mysql # not compatible
query I rowsort label-2065
SELECT + col0 / - 4 FROM tab2 AS cor0
----
-1
-19
-19

query I rowsort
SELECT + + cor0.col0 * - col2 * - col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT - col1 + + ( col0 + - col1 ) DIV - 94 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2067
SELECT - col1 + + ( col0 + - col1 ) / - 94 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col1 * 25 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT ALL 99 + col0 FROM tab2
----
106
177
178

query I rowsort
SELECT tab0.col2 * col2 * + col1 - - col2 FROM tab0
----
611966
93687
98

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab2 cor0, tab0
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT ALL 17 + + col0 AS col2 FROM tab1
----
20
81
97

query I rowsort
SELECT DISTINCT + 86 * + tab0.col0 FROM tab0, tab1, tab1 AS cor0
----
2064
3010
7654

query I rowsort
SELECT cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2075
SELECT ALL CAST( NULL AS SIGNED ) * + 87 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL CAST ( NULL AS INTEGER ) * + 87 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2076
SELECT ALL CAST( NULL AS SIGNED ) - - 82 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL CAST ( NULL AS INTEGER ) - - 82 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - col1 * 65 * cor0.col0 FROM tab1 AS cor0
----
-41600
-5070
-67600

query I rowsort
SELECT ALL + col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - col1 * cor0.col1 AS col2 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col2 FROM tab2 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2082
SELECT col1 * - CAST( col1 * col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2082
SELECT col1 * - CAST ( col1 * col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-2083
SELECT - + col0 DIV col2 col0 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2083
SELECT - + col0 / col2 col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col2 + + 20 FROM tab1 cor0
----
116
74
77

query I rowsort
SELECT - + cor0.col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col1 + cor0.col2 * 70 FROM tab2 AS cor0
----
1879
1921
2677

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0, tab2 AS cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT - 45 AS col2 FROM tab0
----
-45
-45
-45

query I rowsort
SELECT ALL 28 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ( + col1 ) * + col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + + col2 * + 28 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT + 35 + + 25 FROM tab1 AS cor0
----
60
60
60

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0, tab0 cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT 67 FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - - ( - col0 ) + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - + 93 + col1 FROM tab2 AS cor0
----
-34
-62
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 + - col0 col0 FROM tab2
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-2100
SELECT DISTINCT + col1 DIV col1 + tab2.col2 + 50 FROM tab2
----
77
78
89

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + col1 / col1 + tab2.col2 + 50 FROM tab2
----
77
78
89

query I rowsort
SELECT col1 * col2 AS col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2102
SELECT DISTINCT - col0 * + col0 + 21 + col1 DIV - col2 FROM tab1 cor0
----
-4075
-6379
12

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - col0 * + col0 + 21 + col1 / - col2 FROM tab1 cor0
----
-4075
-6379
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col1 col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT col0 * col0 + col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2105
SELECT DISTINCT - 71 * - cor0.col1 - - CAST( - 44 AS SIGNED ) AS col0 FROM tab1 cor0
----
1802
666
879

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT - 71 * - cor0.col1 - - CAST ( - 44 AS INTEGER ) AS col0 FROM tab1 cor0
----
1802
666
879

onlyif mysql # use DIV operator for integer division
query I rowsort label-2106
SELECT 20 DIV col2 + ( col0 + col0 ) AS col2 FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-2106
SELECT 20 / col2 + ( col0 + col0 ) AS col2 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT + col0 DIV - col2 - col1 * + col0 DIV + col0 FROM tab1 AS cor0
----
-11
-13
-26

skipif mysql # not compatible
query I rowsort label-2107
SELECT + col0 / - col2 - col1 * + col0 / + col0 FROM tab1 AS cor0
----
-11
-13
-26

query I rowsort
SELECT DISTINCT - - col0 + col1 * 63 AS col2 FROM tab0 AS cor0
----
5442
5822
6146

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 - - ( + 92 ) AS col0 FROM tab0 AS cor0
----
1181
6816
93

query I rowsort
SELECT - col2 * + col2 + + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2111
SELECT ALL + cor0.col0 + - col1 - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + cor0.col0 + - col1 - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col1 * - col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT col0 + + col1 + col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - - col1 + cor0.col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + ( col1 ) * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT ALL - col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL - col0 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 * col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col1 FROM tab1 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT ALL + col1 DIV - col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL + col1 / - col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT DISTINCT 76 FROM tab0, tab0 cor0, tab1 AS cor1
----
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT + - col1 + col2 DIV 68 AS col2 FROM tab1 AS cor0
----
-10
-12
-26

skipif mysql # not compatible
query I rowsort label-2124
SELECT + - col1 + col2 / 68 AS col2 FROM tab1 AS cor0
----
-10
-12
-26

query I rowsort
SELECT ALL + col0 + ( col1 ) * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2127
SELECT DISTINCT col2 DIV + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2127
SELECT DISTINCT col2 / + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + cor0.col0 * 19 + col1 FROM tab1 AS cor0
----
1226
1533
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2129
SELECT ALL - + col2 DIV - cor0.col0 + + col1 * cor0.col1 FROM tab1 AS cor0
----
100
170
694

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL - + col2 / - cor0.col0 + + col1 * cor0.col1 FROM tab1 AS cor0
----
100
170
694

query I rowsort
SELECT 20 + + col0 * + col0 AS col2 FROM tab2
----
6104
6261
69

query I rowsort
SELECT DISTINCT 49 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
49

query I rowsort
SELECT - col0 + + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - - ( + col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab2 AS cor0
----
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2138
SELECT ALL 59 * col2 DIV col0 - col2 AS col2 FROM tab1 AS cor0
----
-26
-5
1008

skipif mysql # not compatible
query I rowsort label-2138
SELECT ALL 59 * col2 / col0 - col2 AS col2 FROM tab1 AS cor0
----
-26
-5
1008

query I rowsort
SELECT ALL + col1 + col1 * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - - col0 + ( col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT ALL - 68 AS col2 FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT + + ( - col2 ) + - cor0.col0 * col1 * + col1 AS col2 FROM tab1 AS cor0
----
-13616
-2082
-6457

query I rowsort
SELECT ALL + col1 + + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 68 + tab0.col0 + - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7534198bd1612c58fbb5f0b053536e16

query I rowsort
SELECT + 93 + - col0 * col2 FROM tab1
----
-3555
-69
-7587

query I rowsort
SELECT 32 + col0 * tab0.col1 AS col1 FROM tab0
----
2096
3427
8131

query I rowsort
SELECT DISTINCT + 50 + - col1 * - col2 - tab2.col1 FROM tab2
----
1525
679
856

onlyif mysql # use DIV operator for integer division
query I rowsort label-2148
SELECT ALL - + col0 - col0 DIV + 5 FROM tab0 AS cor0
----
-106
-28
-42

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - + col0 - col0 / + 5 FROM tab0 AS cor0
----
-106
-28
-42

query I rowsort
SELECT DISTINCT + col1 * col0 + 3 FROM tab0 AS cor0
----
2067
3398
8102

query I rowsort
SELECT - + col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT - + cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col1 - - 34 FROM tab2
----
51
65
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2153
SELECT DISTINCT + col1 - col1 * tab2.col2 * - CAST( + col1 + col2 AS SIGNED ) AS col2 FROM tab2
----
130449
35547
48577

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT + col1 - col1 * tab2.col2 * - CAST ( + col1 + col2 AS INTEGER ) AS col2 FROM tab2
----
130449
35547
48577

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2154
SELECT - CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2154
SELECT - CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - 1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 69 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT col2 + 89 + - col0 AS col2 FROM tab1
----
105
140
82

query I rowsort
SELECT DISTINCT - ( + col2 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + cor0.col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 46 AS col2 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT + - ( 98 ) * + cor0.col2 FROM tab0 AS cor0
----
-3234
-8036
-98

query I rowsort
SELECT ( cor0.col1 ) + cor0.col1 * col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT tab1.col0 * - tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT 89 * tab0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f034c8f980154bb7786fd4296150ee94

query I rowsort
SELECT + + col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col2 + + col2 * - ( + col1 ) FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL 36 AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - col0 col0 FROM tab0
----
-1260
-3204
-864

query I rowsort
SELECT + col2 * - ( + col1 ) + col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT - tab2.col2 * col2 * 45 FROM tab2
----
-30420
-32805
-64980

query I rowsort
SELECT + col1 * tab0.col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT - col1 + + tab1.col1 DIV col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2173
SELECT - col1 + + tab1.col1 / col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - col0 * ( - col2 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT 1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL - - col0 + + 50 AS col2 FROM tab1 AS cor0
----
114
130
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT - - col0 * 56 + col1 DIV - cor0.col2 FROM tab0 AS cor0
----
1342
1863
4983

skipif mysql # not compatible
query I rowsort label-2177
SELECT - - col0 * 56 + col1 / - cor0.col2 FROM tab0 AS cor0
----
1342
1863
4983

query I rowsort
SELECT DISTINCT + col2 * + tab2.col1 AS col0 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2179
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 92 * cor0.col2 AS col1 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT - col1 * col2 * + col2 + - cor0.col1 * col2 + - col1 AS col2 FROM tab0 cor0
----
-291
-619437
-96578

query I rowsort
SELECT 9 FROM tab1, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT cor1.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL - 79 * + col1 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT ALL ( col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2186
SELECT - col2 DIV 43 + + col0 * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
215
3704
7774

skipif mysql # not compatible
query I rowsort label-2186
SELECT - col2 / 43 + + col0 * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
215
3704
7774

query I rowsort
SELECT 3 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL + col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 46 * - col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + ( + cor0.col0 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL 82 + col1 AS col2 FROM tab2
----
113
141
99

query I rowsort
SELECT ALL - 8 FROM tab0, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + 60 * ( col1 ) + ( 46 ) FROM tab0
----
5206
5506
5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-2196
SELECT ( - cor0.col0 ) + col2 + 15 DIV - 67 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-2196
SELECT ( - cor0.col0 ) + col2 + 15 / - 67 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - 60 FROM tab1, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT 31 AS col0 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT col1 + 92 FROM tab2 AS cor0
----
109
123
151

query I rowsort
SELECT + tab2.col1 * col1 AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT 93 FROM tab2
----
93

query I rowsort
SELECT DISTINCT col1 * tab0.col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + - col1 + + col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + 42 AS col2 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT + 49 FROM tab2
----
49
49
49

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab2, tab2 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 32 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
32

query I rowsort
SELECT col0 + col2 + - 55 FROM tab1 AS cor0
----
121
2
66

query I rowsort
SELECT - col2 * - ( 19 ) + - col2 AS col1 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT col1 * - col0 * + cor0.col1 + - col1 + + 80 FROM tab1 AS cor0
----
-13453
-1974
-6330

query I rowsort
SELECT ALL col2 - - ( + col0 ) * col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT - + col1 - - 45 * col0 FROM tab0 AS cor0
----
1478
3914
994

query I rowsort
SELECT ALL - cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2214
SELECT - col0 - + cor0.col0 DIV + 35 FROM tab0 AS cor0
----
-24
-36
-91

skipif mysql # not compatible
query I rowsort label-2214
SELECT - col0 - + cor0.col0 / + 35 FROM tab0 AS cor0
----
-24
-36
-91

query I rowsort
SELECT ALL col1 + col0 * col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT col2 * - cor0.col1 * + 10 + col1 FROM tab2 AS cor0
----
-15281
-6443
-8339

query I rowsort
SELECT ALL - + col2 + + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT col0 * cor0.col1 * 88 - - col2 AS col2 FROM tab2 AS cor0
----
118222
19123
405002

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col2 + + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - col2 * + ( + col1 ) + col0 * 53 FROM tab0 AS cor0
----
-1566
-2745
1758

query I rowsort
SELECT DISTINCT - col1 * col0 * col2 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + col2 * col2 * + col0 - cor0.col2 FROM tab0 AS cor0
----
26103
34
598354

query I rowsort
SELECT col1 * ( - col2 ) FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col0 + col0 * ( + 84 ) FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT DISTINCT cor0.col1 * col0 * col2 + + ( + col0 ) - - ( + 99 * - col1 ) AS col0 FROM tab1 cor0
----
1641
35554
98633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2227
SELECT + - col0 * + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT + - col0 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 36 FROM tab2
----
36
36
36

query I rowsort
SELECT 13 * - col1 AS col2 FROM tab1
----
-130
-169
-338

query I rowsort
SELECT DISTINCT 92 + + col1 * col2 FROM tab1
----
1340
1496
662

query I rowsort
SELECT ALL - col1 * + tab1.col1 * - col0 + + col0 * col1 AS col2 FROM tab1
----
14560
2106
7040

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0, tab2 AS cor1
----
972 values hashing to a9068b700464993db9fae6f630605fde

query I rowsort
SELECT ALL - cor0.col1 * - col1 + + col1 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT - + col2 + + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + + col2 + - col1 * col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT 81 AS col2 FROM tab0 AS cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * - cor0.col1 col0 FROM tab1 AS cor0
----
-280
-364
-728

query I rowsort
SELECT ALL - cor0.col0 * - col2 + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - 64 AS col1 FROM tab1 AS cor0
----
-64

query I rowsort
SELECT ALL - tab0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT - - col1 + 64 FROM tab1 cor0
----
74
77
90

query I rowsort
SELECT cor0.col2 * col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - col2 + 23 * - col2 AS col1 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT - cor0.col1 + ( + col2 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - col0 * + col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + + col1 + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * tab2.col2 + tab2.col1 * col0 col0 FROM tab2
----
-620
3068
697

query I rowsort
SELECT ALL 85 + tab2.col2 FROM tab2
----
111
112
123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2250
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 30 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT ALL + col2 + col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - - 73 * - 63 FROM tab1 AS cor0
----
-4599

query I rowsort
SELECT DISTINCT - + col2 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * col2 + + col0 FROM tab0 AS cor0
----
-1065
-6635
34

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * col2 + + col0 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT ALL - + col0 + col1 - col1 * col0 DIV col1 FROM tab2 AS cor0
----
-141
-97
17

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL - + col0 + col1 - col1 * col0 / col1 FROM tab2 AS cor0
----
-141
-97
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col1 + - col0 AS col0 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2261
SELECT ALL ( col1 ) * - col2 - - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL ( col1 ) * - col2 - - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - 32 + col0 AS col1 FROM tab0 AS cor0
----
-8
3
57

query I rowsort
SELECT - 61 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL - + col0 * - ( - col2 + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT - 96 FROM tab1 AS cor0
----
-96
-96
-96

query I rowsort
SELECT ALL + + 53 * 82 FROM tab2 AS cor0
----
4346
4346
4346

query I rowsort
SELECT DISTINCT - 44 FROM tab0 AS cor0
----
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2268
SELECT DISTINCT CAST( col1 AS SIGNED ) + + col1 * 44 FROM tab0 AS cor0
----
3870
4095
4365

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + col1 * 44 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT ALL + cor0.col0 - - 85 FROM tab0, tab0 AS cor0
----
9 values hashing to 498d143e3da32634429de14c48e202ba

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1, tab0 AS cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT - 45 AS col2 FROM tab1 cor0
----
-45
-45
-45

query I rowsort
SELECT - col1 + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 * - 98 FROM tab0 AS cor0
----
-8428
-8918
-9506

query I rowsort
SELECT - 25 AS col1 FROM tab1 cor0
----
-25
-25
-25

query I rowsort
SELECT ALL + col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT col1 * - col2 AS col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2277
SELECT - + col2 - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT - + col2 - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col2 + 41 AS col2 FROM tab2 AS cor0
----
1485
717
770

query I rowsort
SELECT col0 - + col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL 88 AS col1 FROM tab1
----
88
88
88

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab1, tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2
----
89

query I rowsort
SELECT ALL + 96 * col0 FROM tab2 AS cor0
----
672
7488
7584

query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + 42 * + col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
1151
1165
1613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2287
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col0 + 40 * - col2 * col0 col1 FROM tab1 AS cor0
----
-150016
-313600
-6489

query I rowsort
SELECT - col1 * - col2 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1128
-459
2262

query I rowsort
SELECT col0 - - col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + 76 * col0 - - 93 AS col2 FROM tab2 AS cor0
----
6021
6097
625

query I rowsort
SELECT DISTINCT + 1 * + col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2294
SELECT - + col1 + col1 * - col0 DIV col0 - - col0 FROM tab0 AS cor0
----
-148
-159
-93

skipif mysql # not compatible
query I rowsort label-2294
SELECT - + col1 + col1 * - col0 / col0 - - col0 FROM tab0 AS cor0
----
-148
-159
-93

query I rowsort
SELECT - col1 + + col2 * - 57 FROM tab2 cor0
----
-1541
-1570
-2183

query I rowsort
SELECT ALL - 34 AS col1 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - - col2 * - col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col1 * + col0 + - col2 * - col0 * + col0 FROM tab0 AS cor0
----
-2170
16944
641423

onlyif mysql # use DIV operator for integer division
query I rowsort label-2299
SELECT DISTINCT col1 + + cor0.col2 DIV col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-54
-66
41

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT col1 + + cor0.col2 / col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-54
-66
41

query I rowsort
SELECT ALL + + col1 - - ( 80 * col1 ) FROM tab1 AS cor0
----
1053
2106
810

query I rowsort
SELECT DISTINCT - col0 + ( + 66 ) * col0 * ( - 82 ) AS col1 FROM tab2 AS cor0
----
-37891
-422214
-427627

query I rowsort
SELECT ALL col2 * + col0 - - col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT ALL - - col1 * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - - col1 * - ( - col1 * - cor0.col2 ) FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + 65 FROM tab1 AS cor0
----
-4031
-6335
56

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 + ( col0 + + ( col2 ) ) col2 FROM tab2 AS cor0
----
-155
-1924
-2885

query I rowsort
SELECT DISTINCT + col0 * col0 - col1 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT - col1 * - col2 + + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col0 + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 24 + + col2 + - col0 * + cor0.col0 AS col2 FROM tab1 cor0
----
-4063
-6328
21

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT DISTINCT - ( - col1 ) + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 9 + - cor0.col2 * ( + col1 ) col0 FROM tab1 AS cor0
----
-1377
-528
6

query I rowsort
SELECT DISTINCT + ( 79 ) AS col1 FROM tab1 AS cor0
----
79

query I rowsort
SELECT ALL 68 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT DISTINCT col0 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT col0 / col1 AS col0 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT - - col0 * - ( + col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT 39 + - col1 * + cor0.col0 FROM tab2 AS cor0
----
-1304
-178
-4563

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 10 + + col1 * col0 col2 FROM tab1 cor0
----
1050
650
88

query I rowsort
SELECT + 39 * col1 FROM tab2 AS cor0
----
1209
2301
663

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

query I rowsort
SELECT ALL cor0.col0 * cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT col0 * - col2 + - 23 FROM tab0
----
-58
-7321
-815

query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT 29 * + col0 * 96 FROM tab0 AS cor0
----
247776
66816
97440

query I rowsort
SELECT col2 * col2 + + col0 * - 2 FROM tab2 AS cor0
----
1286
520
715

query I rowsort
SELECT + col2 * col2 * + col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL - col0 * col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + - 97 + col0 AS col1 FROM tab1 AS cor0
----
-17
-33
-94

query I rowsort
SELECT ALL + col1 + col1 - - col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT - cor0.col0 * - col0 + col1 AS col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + + col2 + - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 + cor0.col2 * col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL 88 FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + col2 * col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + - cor0.col2 - - ( col2 ) * - cor0.col1 FROM tab2 AS cor0
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * - col0 + col2 + - col0 col1 FROM tab0 AS cor0
----
2073
3361
8092

query I rowsort
SELECT ALL 96 FROM tab1 cor0
----
96
96
96

query I rowsort
SELECT - - 99 * + col1 * col1 - col0 FROM tab0 AS cor0
----
732180
819730
931456

query I rowsort
SELECT + col1 * + ( + col1 ) - 43 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-330
-390
-442

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT + col1 DIV - col2 - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-132
-7299
-794

skipif mysql # not compatible
query I rowsort label-2342
SELECT + col1 / - col2 - col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-132
-7299
-794

onlyif mysql # use DIV operator for integer division
query I rowsort label-2343
SELECT - col0 - 53 DIV col1 FROM tab1 AS cor0
----
-5
-69
-84

skipif mysql # not compatible
query I rowsort label-2343
SELECT - col0 - 53 / col1 FROM tab1 AS cor0
----
-5
-69
-84

query I rowsort
SELECT + ( col2 ) + ( + col0 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT cor0.col2 - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT 11 * col1 AS col2 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT - tab1.col0 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT ALL - cor0.col0 * 90 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 92499346bf17ce9ddec7523b44c6ffc5

query I rowsort
SELECT 13 * - col2 FROM tab0
----
-1066
-13
-429

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2351
SELECT DISTINCT + 22 DIV + cor0.col2 FROM tab0 AS cor0
----
0
22

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + 22 / + cor0.col2 FROM tab0 AS cor0
----
0
22

query I rowsort
SELECT + ( - col2 ) * 47 + col2 - - col1 FROM tab1 AS cor0
----
-2458
-2612
-4403

onlyif mysql # use DIV operator for integer division
query I rowsort label-2353
SELECT - col2 * + col0 - col1 DIV col0 FROM tab0 cor0
----
-37
-7299
-795

skipif mysql # not compatible
query I rowsort label-2353
SELECT - col2 * + col0 - col1 / col0 FROM tab0 cor0
----
-37
-7299
-795

query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab1
----
2

query I rowsort
SELECT + tab2.col2 * - tab2.col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + 29 * + ( tab2.col2 + - col0 ) AS col2 FROM tab2
----
-1189
-1508
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT col2 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2357
SELECT col2 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab2 AS cor0
----
7
78
79

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 + 45 * - col0 col1 FROM tab0
----
-1080
-1575
-4005

query I rowsort
SELECT - col1 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT DISTINCT + - col0 * + ( - col2 ) DIV + col2 + ( + 36 ) AS col0 FROM tab0 AS cor0
----
125
60
71

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT + - col0 * + ( - col2 ) / + col2 + ( + 36 ) AS col0 FROM tab0 AS cor0
----
125
60
71

query I rowsort
SELECT ( col0 ) AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col2 - + col1 * + col2 * + 20 AS col0 FROM tab0
----
-149158
-1939
-56727

query I rowsort
SELECT ALL col0 + - tab1.col0 + 90 FROM tab1
----
90
90
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2367
SELECT col2 * - col0 + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-2054
-216
-3040

skipif mysql # not compatible
query I rowsort label-2367
SELECT col2 * - col0 + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL - ( col2 ) * - col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL - col2 * ( + col2 ) * - col1 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT + + col1 * 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - 42 AS col1 FROM tab0 AS cor0
----
1008
1470
3738

query I rowsort
SELECT + - col1 AS col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT - col0 * + col1 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - cor0.col0 + ( col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * - 18 FROM tab2
----
-1062
-306
-558

query I rowsort
SELECT + 7 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 70 ) col1 FROM tab1, tab2 AS cor0
----
-70

query I rowsort
SELECT DISTINCT - 4 * 85 AS col1 FROM tab2, tab1 AS cor0
----
-340

query I rowsort
SELECT ALL col0 * - col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2380
SELECT DISTINCT + 80 * col1 DIV col0 AS col2 FROM tab0
----
221
286
81

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT + 80 * col1 / col0 AS col2 FROM tab0
----
221
286
81

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab0, tab0 AS cor0
----
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2382
SELECT CAST( ( + col2 ) AS SIGNED ) AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2382
SELECT CAST ( ( + col2 ) AS INTEGER ) AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL - tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT - col0 + - 4 AS col0 FROM tab2 AS cor0
----
-11
-82
-83

query I rowsort
SELECT 35 FROM tab0 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + ( col2 ) col0 FROM tab1 cor0
----
110
113
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT - ( col0 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2387
SELECT - ( col0 ) / col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL tab1.col0 + - 3 FROM tab1
----
0
61
77

query I rowsort
SELECT ALL + col2 + col2 * col1 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL + col0 + + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - + col0 + - col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - + col2 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - + col0 + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2396
SELECT ALL - + col2 * CAST( NULL AS SIGNED ) + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL - + col2 * CAST ( NULL AS INTEGER ) + col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT DISTINCT + cor0.col0 DIV - col0 + - col2 + ( + 19 ) FROM tab0 AS cor0
----
-15
-64
17

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT + cor0.col0 / - col0 + - col2 + ( + 19 ) FROM tab0 AS cor0
----
-15
-64
17

query I rowsort
SELECT ALL col0 + col2 * + cor0.col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + col0 * col0 - + col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT - - cor0.col1 + - 79 AS col1 FROM tab2 AS cor0
----
-20
-48
-62

query I rowsort
SELECT ( col2 ) * - cor0.col2 + 44 AS col0 FROM tab1 AS cor0
----
-2872
-3205
-9172

query I rowsort
SELECT ALL + + 54 + + 28 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT ALL - 11 * col2 + col1 * cor0.col1 FROM tab1 AS cor0
----
-527
-887
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT - + col2 DIV cor0.col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-2404
SELECT - + col2 / cor0.col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT DISTINCT - + 20 * col0 AS col2 FROM tab1 AS cor0
----
-1280
-1600
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2406
SELECT DISTINCT col2 + col0 DIV - col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT col2 + col0 / - col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2407
SELECT + CAST( + col1 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-2407
SELECT + CAST ( + col1 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col2 * 35 FROM tab2 AS cor0
----
1330
910
945

query I rowsort
SELECT - - col2 + + 89 * col1 FROM tab2 AS cor0
----
1551
2786
5277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2412
SELECT + col0 * + ( - col1 ) + col0 DIV cor0.col0 FROM tab2 AS cor0
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-2412
SELECT + col0 * + ( - col1 ) + col0 / cor0.col0 FROM tab2 AS cor0
----
-1342
-216
-4601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2413
SELECT DISTINCT + CAST( col2 AS SIGNED ) + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - col2 - col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col1 - - tab2.col2 * col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT col0 - + 53 AS col2 FROM tab0
----
-18
-29
36

query I rowsort
SELECT - col2 + ( col1 * - col1 ) - - col0 AS col1 FROM tab2
----
-248
-3429
-981

query I rowsort
SELECT tab1.col0 * col1 + 58 FROM tab1
----
1098
136
698

query I rowsort
SELECT col2 - - ( 21 ) AS col0 FROM tab1
----
117
75
78

query I rowsort
SELECT DISTINCT - cor0.col0 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - col0 * + 11 + cor0.col0 AS col2 FROM tab2 cor0
----
-70
-780
-790

query I rowsort
SELECT DISTINCT + - 65 AS col0 FROM tab1 AS cor0
----
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT ALL - 80 DIV col2 + - col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-80

skipif mysql # not compatible
query I rowsort label-2423
SELECT ALL - 80 / col2 + - col0 AS col2 FROM tab1 AS cor0
----
-4
-65
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2424
SELECT DISTINCT - col1 + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - col1 + col2 / col0 AS col0 FROM tab0 AS cor0
----
-85
-91
-97

query I rowsort
SELECT DISTINCT ( col0 ) - - col0 AS col1 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col2 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT ALL + - col1 - + cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + cor0.col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-2429
SELECT ALL col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2429
SELECT ALL col0 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab0 cor0
----
74

query I rowsort
SELECT col1 + + col0 * + 35 AS col2 FROM tab0 AS cor0
----
1322
3206
926

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - ( col1 ) * ( + cor0.col0 + col1 ) AS col0 FROM tab1 cor0
----
-1209
-740
-754

query I rowsort
SELECT 17 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT - 26 * col0 AS col1 FROM tab1 AS cor0
----
-1664
-2080
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + - cor0.col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 30 * col1 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT 55 * + col2 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT 6 AS col2 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT ( tab1.col2 ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab2
----
75

query I rowsort
SELECT DISTINCT + + col1 AS col0 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2444
SELECT ALL + - col0 + + cor0.col2 DIV col1 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL + - col0 + + cor0.col2 / col1 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT - col0 + 86 AS col2 FROM tab0 AS cor0
----
-3
51
62

query I rowsort
SELECT DISTINCT - col0 - 91 AS col0 FROM tab1 AS cor0
----
-155
-171
-94

query I rowsort
SELECT DISTINCT + + col1 * 13 + 6 FROM tab0 AS cor0
----
1124
1189
1267

query I rowsort
SELECT ALL cor0.col0 + ( + col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + cor0.col0 + 38 AS col1 FROM tab0 AS cor0
----
127
62
73

query I rowsort
SELECT ALL + cor0.col0 * col0 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2451
SELECT ALL col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * ( col1 * col2 ) AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL 8 * - ( - tab0.col0 ) + + 57 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4cb2ebe449e32abb4768c9fcb20ecea9

query I rowsort
SELECT DISTINCT 99 FROM tab1
----
99

query I rowsort
SELECT DISTINCT + 2 FROM tab0
----
2

query I rowsort
SELECT DISTINCT - ( - 47 ) AS col0 FROM tab1, tab2 AS cor0
----
47

query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1 WHERE ( NULL ) NOT IN ( + cor0.col2 )
----

query I rowsort
SELECT DISTINCT - col2 * col1 * - cor0.col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - col1 * col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - - cor0.col1 * 80 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT + + col1 * - 0 * + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + 66 FROM tab1 AS cor0
----
198
4224
5280

query I rowsort
SELECT - + cor0.col2 * 76 FROM tab0 AS cor0
----
-2508
-6232
-76

query I rowsort
SELECT ALL + col0 + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + col2 * 55 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT - col1 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * - tab1.col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL 97 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT + col2 * col0 * + col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab1, tab0 AS cor0
----
22

query I rowsort
SELECT ( - col1 ) + col2 FROM tab0
----
-53
-9
-96

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

query I rowsort
SELECT - 17 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT DISTINCT - + col2 * + 55 AS col2 FROM tab1 cor0
----
-2970
-3135
-5280

query I rowsort
SELECT - col0 * + ( - col1 ) * col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - tab2.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT ALL 21 * col2 AS col2 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2481
SELECT col0 + - col0 DIV col2 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-2481
SELECT col0 + - col0 / col2 FROM tab0
----
0
24
88

query I rowsort
SELECT + 61 * - col0 * - col2 FROM tab1
----
222528
468480
9882

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT ALL - col1 * - col2 + - 57 * ( + col1 + - CAST( 59 AS SIGNED ) ) FROM tab2 AS cor0
----
1534
2433
3040

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - col1 * - col2 + - 57 * ( + col1 + - CAST ( 59 AS INTEGER ) ) FROM tab2 AS cor0
----
1534
2433
3040

query I rowsort
SELECT DISTINCT 98 + + cor0.col0 FROM tab1 AS cor0
----
101
162
178

query I rowsort
SELECT - 3 + col2 * - col0 AS col0 FROM tab2 cor0
----
-192
-2031
-3005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col2 FROM tab0 cor0
----
46

query I rowsort
SELECT DISTINCT + - 57 FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL - col2 + - col1 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT - col2 * + 50 + col2 FROM tab1 cor0
----
-2646
-2793
-4704

query I rowsort
SELECT ALL - 26 AS col0 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - - 33 * + col1 FROM tab0 AS cor0
----
2838
3003
3201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + ( col0 ) * + col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - ( - 87 ) + + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1002
-6637
86

query I rowsort
SELECT - - ( col2 ) + + col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col0 * cor0.col0 col0 FROM tab2 cor0
----
6143
6258
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 cor0, tab1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

onlyif mysql # use DIV operator for integer division
query I rowsort label-2498
SELECT col0 DIV - ( - col2 + + col1 ) FROM tab0
----
-9
0
0

skipif mysql # not compatible
query I rowsort label-2498
SELECT col0 / - ( - col2 + + col1 ) FROM tab0
----
-9
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * - col2 col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col2 * ( - col1 ) AS col0 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2501
SELECT - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + tab1.col0 * + col1 AS col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col1 + col2 AS REAL ) * col2 FROM tab1
----
10464
3819
4320

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

onlyif mysql # use DIV operator for integer division
query I rowsort label-2506
SELECT ALL + col1 DIV 78 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + col1 / 78 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL 38 FROM tab1
----
38
38
38

query I rowsort
SELECT - cor0.col1 + 37 FROM tab2 AS cor0
----
-22
20
6

query I rowsort
SELECT + col1 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT - ( col0 ) * + col0 + col1 * col1 FROM tab1 AS cor0
----
-3996
-6231
667

query I rowsort
SELECT DISTINCT + ( col0 ) - - col1 AS col0 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2512
SELECT + 44 DIV 96 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2512
SELECT + 44 / 96 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT - + col0 * 32 DIV + col1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
3892
6
6204

skipif mysql # not compatible
query I rowsort label-2513
SELECT - + col0 * 32 / + col1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
3892
6
6204

query I rowsort
SELECT DISTINCT - col2 * - col1 * + tab0.col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT + 20 AS col1 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT ALL 37 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
115
116
44

query I rowsort
SELECT DISTINCT - + col0 + cor0.col0 + + ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT 94 + col2 AS col1 FROM tab2 AS cor0
----
120
121
132

query I rowsort
SELECT ALL cor0.col0 + - col0 * ( - 1 ) * col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - 53 * col1 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT + ( col1 ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT 40 AS col0 FROM tab0
----
40
40
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2523
SELECT - col0 * col1 + + 45 * cor0.col1 DIV col0 - - col0 FROM tab0 AS cor0
----
-1879
-3236
-7964

skipif mysql # not compatible
query I rowsort label-2523
SELECT - col0 * col1 + + 45 * cor0.col1 / col0 - - col0 FROM tab0 AS cor0
----
-1879
-3236
-7964

query I rowsort
SELECT tab1.col2 * + ( + col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT 97 FROM tab0, tab0 AS cor0
----
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2526
SELECT + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * - col1 col0 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-2528
SELECT col2 + + 38 DIV col2 AS col2 FROM tab0 AS cor0
----
34
39
82

skipif mysql # not compatible
query I rowsort label-2528
SELECT col2 + + 38 / col2 AS col2 FROM tab0 AS cor0
----
34
39
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT + - col1 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2529
SELECT + - col1 / col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - cor0.col0 * cor0.col2 col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col2 * 97 + col2 FROM tab2 AS cor0
----
2548
2646
3724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2536
SELECT DISTINCT + col2 + CAST( - 72 * col2 AS SIGNED ) FROM tab2 cor0
----
-1846
-1917
-2698

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + col2 + CAST ( - 72 * col2 AS INTEGER ) FROM tab2 cor0
----
-1846
-1917
-2698

query I rowsort
SELECT + cor0.col2 * + 16 AS col2 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT + col0 + + ( - cor0.col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT 65 * - col2 FROM tab0 AS cor0
----
-2145
-5330
-65

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + 30 * col2 - col0 * col2 FROM tab2 AS cor0
----
-1248
-1862
621

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT ALL + 10 * col2 + - col2 DIV + col2 AS col0 FROM tab0 cor0
----
329
819
9

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL + 10 * col2 + - col2 / + col2 AS col0 FROM tab0 cor0
----
329
819
9

query I rowsort
SELECT 94 AS col0 FROM tab0 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2546
SELECT DISTINCT - col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT - col1 / - col0 AS col2 FROM tab2 AS cor0
----
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2547
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + - 26 AS col2 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT 1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + + ( 8 ) AS col2 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT 67 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT col1 * 97 FROM tab2 cor0
----
1649
3007
5723

query I rowsort
SELECT + - col2 + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 - col1 * 46 * col2 AS col2 FROM tab1
----
-26156
-57328
-64581

query I rowsort
SELECT col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - 71 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT DISTINCT + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col2 + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 + - col2 col2 FROM tab1 cor0
----
-17
-20
-59

query I rowsort
SELECT DISTINCT - col2 + + 19 FROM tab2 AS cor0
----
-19
-7
-8

query I rowsort
SELECT - 24 AS col1 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT ALL col2 + + ( + col0 ) * - cor0.col0 - col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col2 * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT DISTINCT - - col1 + 55 DIV col0 + col0 FROM tab2 AS cor0
----
137
45
96

skipif mysql # not compatible
query I rowsort label-2565
SELECT DISTINCT - - col1 + 55 / col0 + col0 FROM tab2 AS cor0
----
137
45
96

query I rowsort
SELECT - col2 * - col0 + + 29 FROM tab0 AS cor0
----
64
7327
821

query I rowsort
SELECT DISTINCT - col0 * + 43 * 30 FROM tab1 AS cor0
----
-103200
-3870
-82560

query I rowsort
SELECT ALL + col1 * ( 35 ) + - col1 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT ALL col1 * tab1.col0 + - 79 * col1 AS col2 FROM tab1
----
-150
-1976
13

query I rowsort
SELECT ALL col1 + col1 * 45 * - col0 FROM tab1
----
-28790
-3484
-46787

query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab0, tab1 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - 94 FROM tab1
----
-94
-94
-94

query I rowsort
SELECT + ( + col2 ) FROM tab0
----
1
33
82

query I rowsort
SELECT + ( - col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT + 19 FROM tab2, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT DISTINCT - 5 + - col1 FROM tab0 AS cor0
----
-102
-91
-96

query I rowsort
SELECT ALL 31 AS col2 FROM tab0
----
31
31
31

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53

query I rowsort
SELECT ALL tab1.col1 * + col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab0, tab2, tab0 AS cor0
----
84

query I rowsort
SELECT ALL ( col0 + + ( col2 ) ) AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - cor0.col0 * - col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT 59 AS col1 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + + col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 24 * col2 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT DISTINCT + - ( col1 ) * + col1 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2587
SELECT ( + col2 ) DIV 61 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2587
SELECT ( + col2 ) / 61 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - col2 * - tab0.col2 + col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL - col0 + - 43 * - 32 AS col1 FROM tab0
----
1287
1341
1352

query I rowsort
SELECT + 28 * cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a332cfd25dcf64ec1aac7d898652e988

query I rowsort
SELECT + col0 * tab1.col1 + + 21 FROM tab1
----
1061
661
99

query I rowsort
SELECT ALL + col1 * - ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2595
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col2 + 93 * ( - col0 ) AS col1 FROM tab1
----
-225
-5895
-7344

query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - 52 + col0 AS col2 FROM tab1 AS cor0
----
-49
12
28

query I rowsort
SELECT + ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - - col2 * col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 66 * + col2 AS col0 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT ALL + 54 * col0 AS col1 FROM tab0 AS cor0
----
1296
1890
4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2603
SELECT ALL - cor0.col0 DIV + col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL - cor0.col0 / + col1 FROM tab1 AS cor0
----
-6
-6
0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT ALL - ( col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * + col2 col1 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT DISTINCT col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL 85 AS col0 FROM tab0 cor0
----
85
85
85

query I rowsort
SELECT col0 + + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2610
SELECT DISTINCT + col2 DIV col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + col2 / col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col1 FROM tab1 cor0
----
72

query I rowsort
SELECT DISTINCT - 58 * - col0 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT DISTINCT - col1 + + col0 * col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2615
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + cor0.col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + 84 AS col2 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT ALL 66 + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-3582
-7614
-96

query I rowsort
SELECT DISTINCT - 85 AS col2 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT ALL - ( col2 ) + - col2 AS col0 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT - ( 40 ) FROM tab0 cor0
----
-40
-40
-40

query I rowsort
SELECT ALL - ( col2 ) * - col0 + - col2 * + 73 FROM tab2 AS cor0
----
-1782
130
228

query I rowsort
SELECT 99 * + col2 FROM tab0
----
3267
8118
99

query I rowsort
SELECT DISTINCT + col1 + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + - cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT DISTINCT col0 * + 14 * - col2 FROM tab1
----
-107520
-2268
-51072

query I rowsort
SELECT 9 * tab2.col0 FROM tab2
----
63
702
711

query I rowsort
SELECT + 93 FROM tab0
----
93
93
93

query I rowsort
SELECT 45 FROM tab0
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2629
SELECT - ( + col0 ) + cor0.col1 DIV - cor0.col0 col1 FROM tab1 AS cor0
----
-11
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2629
SELECT - ( + col0 ) + cor0.col1 / - cor0.col0 col1 FROM tab1 AS cor0
----
-11
-64
-80

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-2631
SELECT ALL col0 DIV - col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL col0 / - col2 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2632
SELECT DISTINCT col2 + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT col2 + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT + - ( + ( col2 ) ) + - col2 * + 27 AS col0 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT + + cor0.col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - - col1 + col2 * - ( - cor0.col1 ) AS col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT - - col2 + - col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT - cor0.col1 * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col0 * + col2 * ( col1 ) FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col2 + - col1 * - col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL - - col2 + + 87 AS col1 FROM tab1 AS cor0
----
141
144
183

query I rowsort
SELECT DISTINCT - col2 + 82 FROM tab1 AS cor0
----
-14
25
28

query I rowsort
SELECT + - col0 * - col1 - - col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - col2 + col2 * + col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL - cor0.col1 + - col0 AS col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + col1 * col2 + col1 + - cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - col0 - - cor0.col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2647
SELECT DISTINCT col1 + col2 DIV + col2 col0 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT col1 + col2 / + col2 col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - cor0.col0 * + 79 AS col1 FROM tab1 AS cor0
----
-237
-5056
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + 14 * col0 col0 FROM tab1 AS cor0
----
1446
1466
2368

query I rowsort
SELECT - 77 * - tab2.col1 FROM tab2
----
1309
2387
4543

query I rowsort
SELECT + col2 - + 65 * 43 FROM tab1 cor0
----
-2699
-2738
-2741

query I rowsort
SELECT + col1 * - col2 + col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT col2 * - 99 + + col0 FROM tab2 AS cor0
----
-2496
-2666
-3683

query I rowsort
SELECT + + col0 + ( col0 ) * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + 64 * + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ae3d56abe7a621bdd86d1268fc3db87b

query I rowsort
SELECT + - col0 + 72 FROM tab2 cor0
----
-6
-7
65

query I rowsort
SELECT col0 * col0 * + col1 + col0 - + 63 FROM tab2 AS cor0
----
106113
1463
358971

query I rowsort
SELECT ALL cor0.col1 * 52 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5815344d6dd7d359c39dd31c17068f18

query I rowsort
SELECT col1 * 24 FROM tab1 AS cor0
----
240
312
624

query I rowsort
SELECT - - col0 * ( + 71 ) FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT 68 FROM tab1
----
68
68
68

query I rowsort
SELECT ALL - col1 * + tab1.col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT col2 * + 67 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT + cor0.col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + 15 * col1 AS col1 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT DISTINCT ( + tab0.col2 ) + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to bd4afbebf32cf7139d4a26f0c77f8156

query I rowsort
SELECT - col1 * ( + col1 ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT 9 * col1 AS col0 FROM tab1 cor0
----
117
234
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT + col1 DIV cor0.col1 + + col0 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
1225
544
7840

skipif mysql # not compatible
query I rowsort label-2670
SELECT + col1 / cor0.col1 + + col0 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
1225
544
7840

query I rowsort
SELECT - - col2 * + col1 AS col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - tab1.col1 + tab1.col2 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT col1 + + col2 AS col0 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2674
SELECT col0 * + col2 + + CAST( col1 AS SIGNED ) * - col1 FROM tab2 cor0
----
-1453
-772
2713

skipif mysql # not compatible
query I rowsort label-2674
SELECT col0 * + col2 + + CAST ( col1 AS INTEGER ) * - col1 FROM tab2 cor0
----
-1453
-772
2713

query I rowsort
SELECT tab0.col0 * col2 * col1 + - col2 AS col2 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT ALL - col2 * - col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT ALL - col0 + col1 * tab1.col1 FROM tab1
----
36
673
89

query III rowsort
SELECT * FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT - col1 - col0 * col1 FROM tab2
----
-1360
-248
-4661

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - col1 >= NULL
----

query I rowsort
SELECT col1 + - col2 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT col2 + + tab1.col1 AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL tab0.col2 + col0 * col0 AS col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL + 42 * col0 FROM tab1
----
126
2688
3360

query I rowsort
SELECT ALL - col2 * + col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - 72 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2688
SELECT ALL ( col2 ) DIV - col1 col1 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL ( col2 ) / - col1 col1 FROM tab2
----
-2
0
0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT DISTINCT - col1 * col2 + col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT 37 AS col2 FROM tab0
----
37
37
37

query I rowsort
SELECT - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 + - ( col0 * - col0 + col0 ) FROM tab0
----
1191
585
7914

query I rowsort
SELECT DISTINCT ( 3 ) * + cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
30
39
78

query I rowsort
SELECT + col1 - 57 * - col1 AS col2 FROM tab0
----
4988
5278
5626

query I rowsort
SELECT ALL + col0 + + 23 * col0 FROM tab1 AS cor0
----
1536
1920
72

query I rowsort
SELECT ALL - cor0.col2 + cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL + col0 * col0 * col1 + cor0.col2 AS col2 FROM tab0 cor0
----
118826
49569
720893

query I rowsort
SELECT col1 + - ( col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + cor0.col2 + - ( + cor0.col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - - col2 + - 86 * col1 AS col1 FROM tab2 AS cor0
----
-1424
-2639
-5048

onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT - - col1 DIV + 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT - - col1 / + 90 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * 75 AS col0 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT DISTINCT - - col2 + - 39 AS col2 FROM tab0 AS cor0
----
-38
-6
43

query I rowsort
SELECT col2 + - 57 * col1 * - 65 + tab0.col1 * col0 AS col2 FROM tab0
----
320727
345336
362781

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2706
SELECT DISTINCT CAST( NULL AS SIGNED ) * - tab0.col0 + - tab0.col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - tab0.col0 + - tab0.col2 FROM tab0
----
NULL

query I rowsort
SELECT + col1 + - 43 * + col0 AS col2 FROM tab0
----
-1408
-3736
-946

query I rowsort
SELECT 79 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT + + ( + col0 ) AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + 91 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2711
SELECT + CAST( NULL AS DECIMAL ) * + 25 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT + CAST ( NULL AS REAL ) * + 25 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT + col0 * cor0.col2 * col2 + - col2 + col0 DIV - 33 AS col1 FROM tab2 cor0
----
114036
5076
52700

skipif mysql # not compatible
query I rowsort label-2712
SELECT + col0 * cor0.col2 * col2 + - col2 + col0 / - 33 AS col1 FROM tab2 cor0
----
114036
5076
52700

query I rowsort
SELECT DISTINCT 48 * col0 + + 45 FROM tab2 AS cor0
----
3789
381
3837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 + col0 col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT - col0 * col2 + cor0.col0 * 98 AS col0 FROM tab2 cor0
----
4740
497
5616

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT 94 DIV + col0 FROM tab1 AS cor0
----
1
1
31

skipif mysql # not compatible
query I rowsort label-2717
SELECT 94 / + col0 FROM tab1 AS cor0
----
1
1
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2718
SELECT - ( cor0.col0 ) * col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2718
SELECT - ( cor0.col0 ) * col0 / - col0 AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col2 * + 74 FROM tab1
----
3996
4218
7104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2720
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2720
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 58 * col2 col1 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT + 59 + - col1 AS col2 FROM tab1 AS cor0
----
33
46
49

query I rowsort
SELECT ALL - 66 + col0 - + col0 * + ( + col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-3426
-664095
-68154

query I rowsort
SELECT - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT - col0 + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2728
SELECT ALL cor0.col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL cor0.col0 / + col1 AS col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT col2 + - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT ALL col1 DIV col1 + + col2 * col0 FROM tab1 cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL col1 / col1 + + col2 * col0 FROM tab1 cor0
----
163
3649
7681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - col0 - - col0 * col1 col2 FROM tab0 cor0
----
2016
3325
7921

query I rowsort
SELECT ALL - - col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col2 + + col1 * + tab1.col0 AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT - tab1.col2 + + col1 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + - col2 col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT tab2.col2 AS col1 FROM tab2, tab1 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT col1 + + col2 DIV - col0 FROM tab0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-2737
SELECT col1 + + col2 / - col0 FROM tab0
----
85
91
97

query I rowsort
SELECT + col2 * - col0 + + col2 AS col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL - - cor0.col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT tab2.col1 * col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col2 * - col0 * - col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT + col0 * tab1.col2 * - col0 - - col0 FROM tab1
----
-233408
-483
-614320

query I rowsort
SELECT DISTINCT - col0 + - col0 * col1 - col2 FROM tab0
----
-2121
-3431
-8270

query I rowsort
SELECT ( - 70 ) - col2 AS col2 FROM tab0
----
-103
-152
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2745
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 - - col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab0 AS cor0
----
53

query I rowsort
SELECT DISTINCT 45 + + col2 AS col2 FROM tab0 AS cor0
----
127
46
78

query I rowsort
SELECT DISTINCT - - 48 + + cor0.col2 FROM tab0 AS cor0
----
130
49
81

query I rowsort
SELECT + 9 * col2 * - col1 + + col2 FROM tab2 AS cor0
----
-13780
-5776
-7506

query I rowsort
SELECT + ( + col0 + col0 ) * - tab0.col1 AS col2 FROM tab0
----
-16198
-4128
-6790

query I rowsort
SELECT ALL - ( col0 ) + + col2 AS col2 FROM tab1
----
-7
16
51

query I rowsort
SELECT 4 * + col2 + + col2 * col1 * - tab1.col2 FROM tab1
----
-119424
-32262
-75600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT col2 DIV ( col2 ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2755
SELECT col2 / ( col2 ) FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT DISTINCT - col0 - col1 DIV + col0 col0 FROM tab1
----
-11
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT - col0 - col1 / + col0 col0 FROM tab1
----
-11
-64
-80

query I rowsort
SELECT - 21 + col0 * - tab1.col2 - tab1.col0 AS col1 FROM tab1
----
-186
-3733
-7781

onlyif mysql # use DIV operator for integer division
query I rowsort label-2758
SELECT ALL 68 DIV 90 + - col1 AS col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL 68 / 90 + - col1 AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL 74 + col0 FROM tab0
----
109
163
98

query I rowsort
SELECT + 23 * cor0.col1 FROM tab0 AS cor0
----
1978
2093
2231

onlyif mysql # use DIV operator for integer division
query I rowsort label-2761
SELECT - cor0.col0 * col0 + col1 * - cor0.col2 + - col2 DIV col2 FROM tab0 AS cor0
----
-1323
-15384
-3415

skipif mysql # not compatible
query I rowsort label-2761
SELECT - cor0.col0 * col0 + col1 * - cor0.col2 + - col2 / col2 FROM tab0 AS cor0
----
-1323
-15384
-3415

query I rowsort
SELECT ALL - col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT tab1.col1 + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + tab0.col0 + col2 FROM tab0
----
171
36
57

query I rowsort
SELECT col1 * - col0 + + col1 + - col0 FROM tab0 cor0
----
-2002
-3333
-8097

query I rowsort
SELECT ALL + - 60 AS col0 FROM tab0 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * - col0 + col2 col1 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT ALL - 97 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2328
3395
8633

query I rowsort
SELECT ALL + 0 * - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + 38 * col2 + cor0.col1 FROM tab0 cor0
----
1340
135
3207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + - cor0.col2 AS col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT ( col1 ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 4 + + col0 FROM tab1 cor0
----
-1
60
76

query I rowsort
SELECT ALL tab2.col2 * col0 * col1 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - col1 + - col0 * - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE ( - col1 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab2.col0 col2 FROM tab2
----
137
38
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + col1 * tab1.col0 )
----

query I rowsort
SELECT DISTINCT col0 * + tab2.col2 * + tab2.col0 AS col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - col2 * tab0.col2 * + tab0.col2 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + col1 * col1 AS col2 FROM tab0 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT - tab1.col2 * - col2 AS col0 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT col2 + col2 DIV + col0 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-2787
SELECT col2 + col2 / + col0 FROM tab2
----
26
30
38

query I rowsort
SELECT + col1 * - col0 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT + col2 + + col2 * col0 * col0 AS col2 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT DISTINCT col2 - + col2 AS col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL col1 * + col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - col2 * col2 FROM tab0 WHERE ( col0 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * - col2 + + col2 col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT + col1 * col2 + + col0 AS col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT col2 * + col0 * col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT + col0 * col2 - col2 AS col2 FROM tab1
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-2797
SELECT - col1 DIV + col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2797
SELECT - col1 / + col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL col0 * - col2 + - col0 + tab0.col1 * + col2 AS col1 FROM tab0
----
2022
27
75

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1 / - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) < NULL
----

query I rowsort
SELECT + col2 * col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 * + col1 col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL + col0 + tab2.col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + col0 * + col1 - col2 AS col2 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2805
SELECT col1 DIV - col0 AS col2 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2805
SELECT col1 / - col0 AS col2 FROM tab1
----
-8
0
0

query I rowsort
SELECT DISTINCT col1 - col2 FROM tab2 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT col1 * + col2 + col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col0 + + col1 + - col1 AS col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT ALL col1 DIV + tab0.col0 + + tab0.col1 * col2 FROM tab0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL col1 / + tab0.col0 + + tab0.col1 * col2 FROM tab0
----
2841
7463
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col2 * + col2 + + col1 + + col1 AS col1 FROM tab1
----
-2864
-3229
-9190

query I rowsort
SELECT ALL + tab0.col2 + tab0.col1 + col0 AS col2 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-2813
SELECT - col1 * col0 DIV + col0 AS col2 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2813
SELECT - col1 * col0 / + col0 AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - col1 * col2 + tab1.col0 * col0 * tab1.col0 FROM tab1
----
-1377
261574
510752

onlyif mysql # use DIV operator for integer division
query I rowsort label-2815
SELECT col1 DIV col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2815
SELECT col1 / col1 AS col2 FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2816
SELECT DISTINCT col1 + col2 DIV col0 - - tab2.col2 AS col1 FROM tab2
----
55
61
85

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT col1 + col2 / col0 - - tab2.col2 AS col1 FROM tab2
----
55
61
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + + col2 col1 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-2818
SELECT ALL + + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2818
SELECT ALL + + col2 / + col0 AS col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT col0 + col2 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL + + col2 * col1 + col1 - - col2 FROM tab0 AS cor0
----
195
2957
7635

query I rowsort
SELECT DISTINCT - col1 + col2 * col0 AS col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-2822
SELECT ALL cor0.col2 DIV + col1 + col2 col2 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL cor0.col2 / + col1 + col2 col2 FROM tab0 cor0
----
1
33
82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col2 AS col2 FROM tab2 cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT + col2 + + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - cor0.col0 + - cor0.col0 AS col2 FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT ALL + col2 * col1 + - col2 * - col1 - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT DISTINCT + - col2 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT + - col2 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT - col0 + cor0.col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + col0 * cor0.col1 + + col0 AS col2 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT + col2 + col0 * + col0 * + col2 FROM tab2 AS cor0
----
1350
158210
237196

query I rowsort
SELECT + col0 * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 - + col1 col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL - col0 - col1 AS col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT - 14 FROM tab0 cor0
----
-14
-14
-14

query I rowsort
SELECT + ( + col2 ) * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ( col0 ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 10 + + col0 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT 75 * + col2 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT - 77 FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT - - ( + col0 ) + - col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT DISTINCT ( - col0 ) DIV + col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT ( - col0 ) / + col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT ALL + cor0.col2 + col0 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - - col2 + col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col1 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2848
SELECT - cor0.col2 + col2 * 71 DIV col2 FROM tab0 AS cor0
----
-11
38
70

skipif mysql # not compatible
query I rowsort label-2848
SELECT - cor0.col2 + col2 * 71 / col2 FROM tab0 AS cor0
----
-11
38
70

query I rowsort
SELECT ALL 97 AS col2 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2850
SELECT + ( - col0 ) DIV - 35 AS col0 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2850
SELECT + ( - col0 ) / - 35 AS col0 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT + col2 + - col0 * col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - col1 * + 11 + col1 AS col2 FROM tab2 AS cor0
----
-170
-310
-590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 89 col1 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT + col2 + col0 * 33 FROM tab2 AS cor0
----
258
2600
2645

query I rowsort
SELECT - col2 + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + - col2 + ( col1 ) FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + col2 * - col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 col2 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT + col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col2 * - col0 * col0 + 91 * col2 FROM tab0 AS cor0
----
-1134
-16005
-642060

query I rowsort
SELECT col0 + - ( col1 ) AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + 28 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

query I rowsort
SELECT + cor1.col1 * 36 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76914f330847d0243812dd0ae2e4649e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + - cor1.col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + + ( 44 ) - col1 AS col0 FROM tab2 AS cor0
----
-15
13
27

query I rowsort
SELECT DISTINCT - + 4 * col0 - - col2 FROM tab1 AS cor0
----
-199
-224
42

query I rowsort
SELECT DISTINCT - ( 44 ) * + col2 FROM tab0 AS cor0
----
-1452
-3608
-44

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 col1 + 6 * col0 AS col0 FROM tab1 AS cor0
----
394
44
493

query I rowsort
SELECT ALL - + cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - + ( + 8 ) * col1 * ( + cor0.col2 + col0 ) FROM tab2 AS cor0
----
-15912
-49088
-8432

query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + ( col1 ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - - ( + col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT tab0.col2 * + col1 + + col2 - tab0.col0 FROM tab0
----
2847
63
7455

query I rowsort
SELECT - 6 * + col1 + col2 FROM tab2 AS cor0
----
-159
-328
-64

query I rowsort
SELECT DISTINCT - 89 + col2 AS col2 FROM tab2 AS cor0
----
-51
-62
-63

query I rowsort
SELECT ALL + 37 * - col1 + col2 FROM tab1 AS cor0
----
-313
-385
-908

onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT DISTINCT CAST( - col1 AS SIGNED ) DIV - cor0.col1 - col2 * - 8 FROM tab1 AS cor0
----
433
457
769

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT CAST ( - col1 AS INTEGER ) / - cor0.col1 - col2 * - 8 FROM tab1 AS cor0
----
433
457
769

query I rowsort
SELECT + + 43 + - col0 FROM tab0 AS cor0
----
-46
19
8

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 + 67 + 21 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab1 cor0
----
3
64
80

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

query I rowsort
SELECT - cor0.col1 * 37 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to be1cec0c74285dae0aa8e3415ab72ec4

query I rowsort
SELECT ALL - 37 * + cor0.col0 FROM tab2 cor0
----
-259
-2886
-2923

query I rowsort
SELECT - - col0 * - col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + - 68 * + 53 AS col1 FROM tab2 AS cor0
----
-3604
-3604
-3604

query I rowsort
SELECT 1 * + col0 + col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT ( tab0.col0 ) + col2 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT col2 - tab1.col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL - 64 FROM tab1, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT ALL - col1 + + col0 AS col1 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2898
SELECT ALL col1 DIV + 40 - + tab2.col2 FROM tab2
----
-25
-27
-38

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL col1 / + 40 - + tab2.col2 FROM tab2
----
-25
-27
-38

query I rowsort
SELECT tab0.col0 - 9 FROM tab0
----
15
26
80

query I rowsort
SELECT tab0.col0 + 62 AS col0 FROM tab0
----
151
86
97

query I rowsort
SELECT ALL col1 + col1 * + col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + 79 FROM tab2, tab1 AS cor0
----
105
89
92

query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col0 * cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT ALL - col2 DIV + col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - col2 / + col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + col1 - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col0 + - cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + col0 + col1 + col1 AS col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + 90 + - cor0.col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
4186
6490
99

query I rowsort
SELECT - tab0.col1 * col1 * - 9 AS col2 FROM tab0
----
66564
74529
84681

query I rowsort
SELECT DISTINCT - ( 57 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-57

query I rowsort
SELECT DISTINCT - 41 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT DISTINCT + ( col0 ) - - 29 * - col2 AS col2 FROM tab2 AS cor0
----
-1023
-676
-776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2914
SELECT + - col1 / - col1 - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2914
SELECT + - col1 / - col1 - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL - col2 * + col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT + 59 AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2 cor0
----
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2920
SELECT ALL + col0 DIV - col2 + - ( + 51 ) FROM tab0 AS cor0
----
-51
-52
-86

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + col0 / - col2 + - ( + 51 ) FROM tab0 AS cor0
----
-51
-52
-86

query I rowsort
SELECT ALL + col0 + + cor0.col0 + - col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col2 * 9 + - col2 AS col1 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT + 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-2924
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + col1 * + col2 + - col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - cor0.col2 * cor0.col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 + col2 * - col1 FROM tab0 cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL 22 * + col0 AS col2 FROM tab0 AS cor0
----
1958
528
770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) + 37 FROM tab1 cor0
----
-17
-20
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2932
SELECT + CAST( + col2 AS SIGNED ) * - col1 + 79 FROM tab0 AS cor0
----
-18
-2759
-7383

skipif mysql # not compatible
query I rowsort label-2932
SELECT + CAST ( + col2 AS INTEGER ) * - col1 + 79 FROM tab0 AS cor0
----
-18
-2759
-7383

query I rowsort
SELECT + - 73 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
13
18
24

query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2935
SELECT ALL - cor0.col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - cor0.col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 48 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT cor0.col0 * - 49 FROM tab0 AS cor0
----
-1176
-1715
-4361

onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT DISTINCT 63 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT 63 / + col1 AS col2 FROM tab2 AS cor0
----
1
2
3

query I rowsort
SELECT 37 * - 81 FROM tab0 AS cor0
----
-2997
-2997
-2997

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2942
SELECT + CAST( NULL AS SIGNED ) * col1 + col0 * + col2 * + col2 + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2942
SELECT + CAST ( NULL AS INTEGER ) * col1 + col0 * + col2 * + col2 + - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + - col2 * 6 AS col1 FROM tab0 AS cor0
----
-174
-403
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT + ( cor0.col0 ) DIV + ( col0 ) + col2 * col1 AS col1 FROM tab2 cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-2944
SELECT + ( cor0.col0 ) / + ( col0 ) + col2 * col1 AS col1 FROM tab2 cor0
----
1535
647
838

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2945
SELECT DISTINCT - CAST( 21 AS SIGNED ) + tab2.col2 AS col0 FROM tab2
----
17
5
6

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT - CAST ( 21 AS INTEGER ) + tab2.col2 AS col0 FROM tab2
----
17
5
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2946
SELECT + ( col1 ) DIV col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2946
SELECT + ( col1 ) / col0 FROM tab1
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT ALL 92 DIV - 30 + col2 AS col0 FROM tab0
----
-2
30
79

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL 92 / - 30 + col2 AS col0 FROM tab0
----
-2
30
79

query I rowsort
SELECT DISTINCT ( col1 ) * col1 + + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT + col1 * col0 * + tab1.col0 + - tab1.col2 FROM tab1
----
180
40903
83104

query I rowsort
SELECT ALL tab0.col2 + + 50 AS col0 FROM tab0
----
132
51
83

query I rowsort
SELECT - + col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b

query I rowsort
SELECT - - col0 + col2 - col2 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL col1 * col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2956
SELECT CAST( - col1 AS SIGNED ) FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2956
SELECT CAST ( - col1 AS INTEGER ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - 68 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT ALL - 78 AS col1 FROM tab2
----
-78
-78
-78

query I rowsort
SELECT ALL - col0 + col0 * col1 * - 27 AS col0 FROM tab1 AS cor0
----
-17344
-2109
-28160

onlyif mysql # use DIV operator for integer division
query I rowsort label-2960
SELECT - col0 * col1 - + col1 * col2 DIV + col0 FROM tab2 cor0
----
-1351
-336
-4621

skipif mysql # not compatible
query I rowsort label-2960
SELECT - col0 * col1 - + col1 * col2 / + col0 FROM tab2 cor0
----
-1351
-336
-4621

query I rowsort
SELECT DISTINCT + ( - cor1.col2 ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - ( - col0 + ( - col1 ) ) * + col0 * + col2 AS col0 FROM tab0
----
1313640
4620
87120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT + col2 * - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT + col2 * - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - col0 * 7 * + 5 AS col1 FROM tab2
----
-245
-2730
-2765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL col1 + + ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL 92 + 35 FROM tab2, tab1 AS cor0
----
9 values hashing to 55400066049fe9a655ffc1f4b4055564

query I rowsort
SELECT - col1 * 87 AS col1 FROM tab0
----
-7482
-7917
-8439

query I rowsort
SELECT - 49 + - cor0.col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 35ebfa6ebe362c8e749ee71e89957222

query I rowsort
SELECT DISTINCT + + cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT ( + col2 ) * - col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT col0 * - 70 AS col2 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT DISTINCT - + ( col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - ( + 27 ) * col2 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT ( - col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - + 10 + col1 AS col0 FROM tab2 AS cor0
----
21
49
7

query I rowsort
SELECT DISTINCT - 61 * - 47 AS col0 FROM tab1 AS cor0
----
2867

onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT - col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2980
SELECT - col1 / col0 AS col2 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT + col1 * 61 AS col2 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT ALL cor0.col1 + + 65 FROM tab2 AS cor0
----
124
82
96

query I rowsort
SELECT ALL + 98 FROM tab1 cor0
----
98
98
98

query I rowsort
SELECT - col2 * col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col0 * + col2 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + 84 + cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 88690b86b4088e2a9f2a0ba664caa793

query I rowsort
SELECT DISTINCT - col1 * + col1 + + cor0.col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL + cor0.col1 + cor0.col2 * + col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col1 * col2 * ( col1 * + tab1.col2 ) AS col1 FROM tab1
----
-1557504
-1971216
-324900

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0, tab0 AS cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT col1 * + col1 * + col0 - - tab1.col2 FROM tab1
----
13616
2082
6457

query I rowsort
SELECT 44 - - col0 AS col0 FROM tab0
----
133
68
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT DISTINCT col1 DIV col0 AS col1 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-2993
SELECT DISTINCT col1 / col0 AS col1 FROM tab2
----
0
4

query I rowsort
SELECT + col0 * - 29 + + col2 FROM tab1 AS cor0
----
-1799
-2224
-33

query I rowsort
SELECT 75 FROM tab1, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ( + 22 ) FROM tab2, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - + col1 + 59 AS col1 FROM tab1 AS cor0
----
33
46
49

query I rowsort
SELECT col1 * + 81 + + col0 + cor0.col1 FROM tab0 AS cor0
----
7076
7551
7989

query I rowsort
SELECT - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3000
SELECT - + col1 + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-3000
SELECT - + col1 + col0 / col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT + 65 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # use DIV operator for integer division
query I rowsort label-3003
SELECT DISTINCT col2 DIV + 58 col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3003
SELECT DISTINCT col2 / + 58 col1 FROM tab2
----
0

query I rowsort
SELECT + 71 - - cor0.col2 FROM tab0 cor0
----
104
153
72

query I rowsort
SELECT + - col0 + col1 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3006
SELECT + CAST( - col2 AS SIGNED ) + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756

skipif mysql # not compatible
query I rowsort label-3006
SELECT + CAST ( - col2 AS INTEGER ) + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL - col2 * - cor0.col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + - 89 AS col2 FROM tab2 AS cor0
----
-89
-89
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3009
SELECT + CAST( 72 AS SIGNED ) FROM tab0 cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-3009
SELECT + CAST ( 72 AS INTEGER ) FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT - ( col1 ) + + col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col1 * col1 * cor0.col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT 83 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT 31 * 44 AS col1 FROM tab0
----
1364
1364
1364

query I rowsort
SELECT - 22 * + col0 * + col0 FROM tab2
----
-1078
-133848
-137302

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT 61 * col1 - col2 FROM tab0 AS cor0
----
5213
5469
5916

query I rowsort
SELECT - - 59 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-19
-20
52

query I rowsort
SELECT - col1 * + col2 + + col0 AS col2 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT col1 - cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - tab0.col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + tab0.col0 + col0 + - tab0.col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - + 55 * col2 - - 32 AS col0 FROM tab1 AS cor0
----
-2938
-3103
-5248

query I rowsort
SELECT DISTINCT + 49 FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col0 + + cor0.col1 * 80 + col0 * col0 FROM tab0 AS cor0
----
15290
7480
9020

query I rowsort
SELECT ALL 86 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT DISTINCT - - ( col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT cor0.col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) - col1 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT DISTINCT - col1 DIV - col1 + col0 + col2 AS col1 FROM tab2 AS cor0
----
105
118
35

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - col1 / - col1 + col0 + col2 AS col1 FROM tab2 AS cor0
----
105
118
35

query I rowsort
SELECT ALL - col0 - - cor0.col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + - col2 * col2 + col1 FROM tab1 cor0
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT ALL - col1 * col0 DIV col0 - - col2 AS col0 FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL - col1 * col0 / col0 - - col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT - 16 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL col1 + col0 * col2 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-3037
SELECT - 82 DIV - col0 + 73 AS col2 FROM tab1 cor0
----
100
74
74

skipif mysql # not compatible
query I rowsort label-3037
SELECT - 82 / - col0 + 73 AS col2 FROM tab1 cor0
----
100
74
74

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 + ( col0 ) * ( col0 ) FROM tab0 AS cor0
----
1357
686
8101

query I rowsort
SELECT ALL - + cor0.col1 + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col2 + + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - cor0.col2 + - 40 AS col2 FROM tab2 cor0
----
-66
-67
-78

query I rowsort
SELECT DISTINCT - col0 + - 86 AS col2 FROM tab1 AS cor0
----
-150
-166
-89

query I rowsort
SELECT DISTINCT + 75 FROM tab2, tab0 AS cor0
----
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3044
SELECT DISTINCT col1 DIV - col0 - + col2 FROM tab2 AS cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-3044
SELECT DISTINCT col1 / - col0 - + col2 FROM tab2 AS cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - col0 AS REAL ) * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col0 col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + + ( col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
17
31
59

query I rowsort
SELECT 8 FROM tab1, tab0 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3054
SELECT col2 * col2 + - col2 * + CAST( + col1 * col2 + col0 AS SIGNED ) col2 FROM tab2
----
-22059
-26106
-41236

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3054
SELECT col2 * col2 + - col2 * + CAST ( + col1 * col2 + col0 AS INTEGER ) col2 FROM tab2
----
-22059
-26106
-41236

query I rowsort
SELECT 6 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab1.col1 col0 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL - col0 + ( - tab0.col0 + + col1 ) AS col2 FROM tab0
----
-87
27
38

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3059
SELECT - col2 * CAST( 92 AS SIGNED ) * + col0 + - col0 + 12 FROM tab0
----
-3243
-671493
-72876

skipif mysql # not compatible
query I rowsort label-3059
SELECT - col2 * CAST ( 92 AS INTEGER ) * + col0 + - col0 + 12 FROM tab0
----
-3243
-671493
-72876

query I rowsort
SELECT DISTINCT - col1 * - col2 + col0 * + col0 FROM tab1 cor0
----
1413
4666
7648

query I rowsort
SELECT ALL col2 * + 70 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT ALL + + col2 + 51 + + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2148
3447
8232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + 91 * col1 col0 FROM tab1 AS cor0
----
1279
2420
967

query I rowsort
SELECT DISTINCT - tab2.col2 + col0 * - col2 + col0 FROM tab2
----
-1976
-209
-2961

query I rowsort
SELECT ALL col2 * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col1 * - cor0.col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT col0 + col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 6 ) col2 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - ( col0 + col1 ) * - col1 FROM tab2
----
1178
1632
8083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3070
SELECT ALL CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3071
SELECT - + col2 DIV - col2 + + col2 DIV 79 col2 FROM tab0 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3071
SELECT - + col2 / - col2 + + col2 / 79 col2 FROM tab0 AS cor0
----
1
1
2

query I rowsort
SELECT - col2 + + 39 FROM tab1 AS cor0
----
-15
-18
-57

query I rowsort
SELECT DISTINCT + 21 AS col2 FROM tab1 AS cor0
----
21

query I rowsort
SELECT + col1 * 90 FROM tab0 cor0
----
7740
8190
8730

query I rowsort
SELECT + + col0 * col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col0 * - 21 FROM tab0 AS cor0
----
-1869
-504
-735

query I rowsort
SELECT ALL - ( + col1 ) + - col0 * - 52 AS col0 FROM tab1 cor0
----
130
3318
4147

query I rowsort
SELECT ALL - 13 + col2 FROM tab2 cor0
----
13
14
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - - col1 + - cor0.col2 * col2 + col0 FROM tab0 AS cor0
----
-6544
-979
131

query I rowsort
SELECT - tab2.col1 + col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT tab0.col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + 21 * - cor0.col2 - cor0.col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 1f0eb541feec7772f200f87bcd3d7270

query I rowsort
SELECT 48 + + col0 * - tab0.col0 * 83 AS col0 FROM tab0
----
-101627
-47760
-657395

query I rowsort
SELECT DISTINCT - col2 - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT 71 AS col2 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT - - col2 + + col0 + 95 FROM tab2 AS cor0
----
129
199
212

query I rowsort
SELECT DISTINCT - col0 + - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-260
-71
-81

query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col0 * col0 - cor0.col0 AS col1 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT - - 86 * col0 * 51 FROM tab0 AS cor0
----
105264
153510
390354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3093
SELECT cor0.col1 * + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3093
SELECT cor0.col1 * + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 44 FROM tab2 AS cor0
----
308
3432
3476

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3095
SELECT col2 + - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-3095
SELECT col2 + - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-7
16
51

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 ALL + col1 + ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * 21 + col0 col1 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT ALL col2 * col1 + - ( - cor0.col2 ) * cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
3492
671580
70950

query I rowsort
SELECT cor0.col2 * + 67 AS col2 FROM tab1 AS cor0
----
3618
3819
6432

query I rowsort
SELECT ALL - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + col1 * ( + 0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 81 + - col1 AS col1 FROM tab0
----
-10
-16
-5

query I rowsort
SELECT ALL - tab0.col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3107
SELECT - col1 + - CAST( NULL AS SIGNED ) * + 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT - col1 + - CAST ( NULL AS INTEGER ) * + 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * - 52 AS col2 FROM tab2 AS cor0
----
1612
3068
884

query I rowsort
SELECT + col1 * - 50 AS col1 FROM tab0 cor0
----
-4300
-4550
-4850

query I rowsort
SELECT + col1 + ( col1 ) * - col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - tab0.col0 + cor0.col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 3bf815aa1abab719801164f7eb7c7cba

query I rowsort
SELECT + - col0 * - 63 FROM tab0 AS cor0
----
1512
2205
5607

query I rowsort
SELECT + - col1 * + cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col0 + col1 * - col2 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT + cor0.col1 + + col2 * col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT 44 + - col0 AS col0 FROM tab1
----
-20
-36
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 5 + col2 * 10 col0 FROM tab1 AS cor0
----
535
565
955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + ( col0 ) * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col0 * - col1 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - 33 FROM tab1, tab2, tab2 AS cor0, tab0
----
-33

query I rowsort
SELECT ALL + 33 + col0 + + col0 FROM tab1
----
161
193
39

query I rowsort
SELECT + tab0.col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + col0 * + ( - tab0.col2 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL 54 FROM tab2
----
54
54
54

query I rowsort
SELECT DISTINCT 11 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1237
-1393
-559

query I rowsort
SELECT - col2 * - col1 + 55 * + col0 * + col0 + ( col1 ) AS col0 FROM tab0 AS cor0
----
34604
443208
67569

onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT DISTINCT - 0 DIV + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - 0 / + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col2 * - cor0.col0 + + ( col1 + + col1 * 74 ) AS col2 FROM tab2 AS cor0
----
-1727
2136
2397

query I rowsort
SELECT + + col1 + + cor0.col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + - 60 FROM tab2 AS cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
262144
27
512000

onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT col0 DIV col1 + col0 DIV - col1 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3134
SELECT col0 / col1 + col0 / - col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - + cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 AS col1 FROM tab2 cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col0 col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE ( col0 ) >= ( - col0 + col0 )
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 50 * - cor0.col1 + 55 AS col1 FROM tab0 AS cor0
----
-4245
-4495
-4795

query I rowsort
SELECT - - col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + 68 * + col2 AS col0 FROM tab1
----
3672
3876
6528

query I rowsort
SELECT + col1 * tab0.col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - - col2 + - col1 * col0 * col0 FROM tab1 cor0
----
-180
-40903
-83104

query I rowsort
SELECT ALL - col1 + ( + col2 + col1 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 * - col1 + - col1 * + col1 AS col2 FROM tab1
----
-1352
-200
-338

query I rowsort
SELECT + 86 + + col1 FROM tab2
----
103
117
145

onlyif mysql # use DIV operator for integer division
query I rowsort label-3147
SELECT - col1 - + tab1.col2 DIV - col0 AS col1 FROM tab1
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-3147
SELECT - col1 - + tab1.col2 / - col0 AS col1 FROM tab1
----
-10
-12
-8

query I rowsort
SELECT 59 * + col1 AS col1 FROM tab1
----
1534
590
767

onlyif mysql # use DIV operator for integer division
query I rowsort label-3149
SELECT DISTINCT col1 DIV - col0 + tab2.col1 * col1 FROM tab2
----
289
3481
957

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT col1 / - col0 + tab2.col1 * col1 FROM tab2
----
289
3481
957

onlyif mysql # use DIV operator for integer division
query I rowsort label-3150
SELECT ALL col0 DIV - col1 + - col1 AS col2 FROM tab2
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL col0 / - col1 + - col1 AS col2 FROM tab2
----
-21
-31
-60

query I rowsort
SELECT col1 * - col1 / col1 FROM tab1 WHERE ( NULL ) IN ( - col1 - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3152
SELECT tab0.col0 + tab0.col0 DIV col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3152
SELECT tab0.col0 + tab0.col0 / col0 FROM tab0
----
25
36
90

query I rowsort
SELECT col0 * col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 + col0 * + col0 + col0 AND NULL
----

query I rowsort
SELECT ALL - col0 * tab1.col0 + tab1.col0 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT ALL - col1 + + col2 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col1 - + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 / + col1 FROM tab2 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col1 FROM tab2
----
0

query I rowsort
SELECT col1 + col2 * - col1 FROM tab1
----
-1235
-1378
-560

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT IN ( col1 + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT ALL col2 DIV - col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL col2 / - col2 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3162
SELECT ALL tab0.col0 DIV tab0.col1 + col2 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL tab0.col0 / tab0.col1 + col2 AS col0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT col0 DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT col0 / + col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3164
SELECT DISTINCT col0 DIV col1 + col2 col0 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT col0 / col1 + col2 col0 FROM tab0
----
1
33
82

query I rowsort
SELECT - tab2.col0 * col1 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col0 + col1 FROM tab0 WHERE NULL NOT IN ( col1 - col0 )
----

query I rowsort
SELECT ALL - tab1.col2 / col2 + - col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + col0 * col0 * col1 + - col1 AND col1
----

query I rowsort
SELECT DISTINCT col0 + col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT col1 - col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT + tab2.col2 * col2 FROM tab2
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3171
SELECT ALL + col1 + tab1.col0 DIV + col0 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL + col1 + tab1.col0 / + col0 FROM tab1
----
11
14
27

query I rowsort
SELECT col0 + + col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL col1 + tab2.col2 * + col1 AS col2 FROM tab2
----
1593
663
868

query I rowsort
SELECT - col0 * tab1.col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - tab1.col2 + col0 * col0 AS col2 FROM tab1
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-3176
SELECT - col2 DIV tab2.col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3176
SELECT - col2 / tab2.col1 FROM tab2
----
-2
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - col0 < NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3178
SELECT CAST( - ( col1 ) AS SIGNED ) FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3178
SELECT CAST ( - ( col1 ) AS INTEGER ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - col2 * tab1.col0 * - col1 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col1 * tab0.col0 AS col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-3181
SELECT - CAST( + col1 AS SIGNED ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-3181
SELECT - CAST ( + col1 AS INTEGER ) / + col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3182
SELECT + CAST( NULL AS SIGNED ) - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT + CAST ( NULL AS INTEGER ) - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 8 FROM tab1
----
8
8
8

query I rowsort
SELECT cor0.col0 * - 89 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to bcbd6f3dda60914021bf504d8f4e1da1

query I rowsort
SELECT col2 * col2 + + col1 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT 33 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - - col1 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3188
SELECT + ( cor0.col0 ) / CAST( NULL AS DECIMAL ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT + ( cor0.col0 ) / CAST ( NULL AS REAL ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + - col2 + + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL + - 62 * col1 - ( 29 ) FROM tab2 AS cor0
----
-1083
-1951
-3687

query I rowsort
SELECT cor0.col1 * col0 + col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-3195
SELECT DISTINCT + ( col0 ) DIV ( col2 + col0 * - ( + ( + cor0.col0 ) ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT + ( col0 ) / ( col2 + col0 * - ( + ( + cor0.col0 ) ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT + 60 DIV - col0 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT + 60 / - col0 AS col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT + + col1 * col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - col1 + + col0 * col1 * - 80 FROM tab2 AS cor0
----
-107457
-17391
-368219

query I rowsort
SELECT col0 * + col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 col1 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + col2 * - col2 col0 FROM tab0 cor0
----
-1175
-6815
-98

query I rowsort
SELECT ALL 93 AS col1 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT - col2 + col2 * col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT + 98 * - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-202272
-332710
-793702

query I rowsort
SELECT DISTINCT - + 2 * cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - 5 * col2 FROM tab2 cor0
----
-130
-135
-190

onlyif mysql # use DIV operator for integer division
query I rowsort label-3208
SELECT ALL - - 63 DIV col0 FROM tab2 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL - - 63 / col0 FROM tab2 AS cor0
----
0
0
9

query I rowsort
SELECT + cor0.col1 + cor0.col2 + ( col1 ) FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT + col1 * + cor0.col0 + - cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT ALL + col1 * - 23 + + cor0.col1 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT ALL - col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT ALL + - col0 DIV - col1 + col2 * - col2 FROM tab1 cor0
----
-2916
-3243
-9210

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL + - col0 / - col1 + col2 * - col2 FROM tab1 cor0
----
-2916
-3243
-9210

query I rowsort
SELECT ALL + col0 * 71 - + col0 FROM tab0 AS cor0
----
1680
2450
6230

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-3217
SELECT ALL cor0.col2 DIV 55 + 26 * cor0.col1 FROM tab0 cor0
----
2236
2367
2522

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL cor0.col2 / 55 + 26 * cor0.col1 FROM tab0 cor0
----
2236
2367
2522

query I rowsort
SELECT + col1 + - 92 * + col1 FROM tab1 AS cor0
----
-1183
-2366
-910

query I rowsort
SELECT ALL + col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col1 * col2 + ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col1 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL - - col1 * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3223
SELECT DISTINCT + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3223
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 78 FROM tab2 AS cor0
----
78

query I rowsort
SELECT - ( + 54 ) AS col0 FROM tab0, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 440ee4bea4c39df49899f4a4d88059fe

query I rowsort
SELECT ALL - ( - col1 ) + + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - + col0 + + col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + + col0 + - col0 + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT DISTINCT - ( col1 ) DIV - col1 + ( cor0.col0 ) FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT - ( col1 ) / - col1 + ( cor0.col0 ) FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT + col2 * + 2 - ( col1 ) FROM tab1
----
104
179
82

query I rowsort
SELECT - - cor0.col1 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT 13 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT 14 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3234
SELECT 14 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 52 FROM tab2 cor0
----
-52
-52
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3236
SELECT ALL - col1 + - cor0.col0 * col2 DIV col1 FROM tab0 cor0
----
-171
-95
-97

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL - col1 + - cor0.col0 * col2 / col1 FROM tab0 cor0
----
-171
-95
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + 38 AS col1 FROM tab1 AS cor0
----
38

query I rowsort
SELECT - ( - col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + col1 + - col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT col1 * col2 + col0 * col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT + ( + col2 ) AS col2 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + - col1 col2 FROM tab2
----
-20
-34
-62

query I rowsort
SELECT ALL ( col1 * col0 + + col0 ) AS col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT - - col0 + + cor0.col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + tab0.col0 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + 46 * - cor0.col2 + - cor0.col0 FROM tab2 AS cor0
----
-1249
-1274
-1827

query I rowsort
SELECT DISTINCT cor0.col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + 39 + col1 FROM tab2 cor0
----
56
70
98

query I rowsort
SELECT ALL + ( cor0.col1 ) * col1 + col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT DISTINCT - 20 * cor0.col2 - col0 FROM tab0 AS cor0
----
-1729
-55
-684

query I rowsort
SELECT DISTINCT ( col2 ) - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + 17 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT ALL - + 81 * - col0 AS col2 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT + ( + 23 ) * + col2 AS col1 FROM tab0 AS cor0
----
1886
23
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT + tab0.col0 DIV + col0 + - col2 AS col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3256
SELECT + tab0.col0 / + col0 + - col2 AS col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT ALL 85 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3258
SELECT DISTINCT - col2 + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-3258
SELECT DISTINCT - col2 + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT DISTINCT - col0 + + 61 + col0 DIV + col1 AS col0 FROM tab0
----
-28
26
37

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT - col0 + + 61 + col0 / + col1 AS col0 FROM tab0
----
-28
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT 34 FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT ALL + 7 AS col2 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT - 11 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-277
-811
86

query I rowsort
SELECT - + 9 AS col2 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT ( - col2 ) AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT col0 * + 35 + - col2 FROM tab0
----
1224
3033
807

query I rowsort
SELECT - tab0.col0 + + 58 AS col0 FROM tab0
----
-31
23
34

query I rowsort
SELECT ( - col1 + - col0 ) FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL + ( - col2 ) + + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + col1 * + 6 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT - col1 * + 41 + - col1 + - col1 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT DISTINCT - - 38 * + 61 * col1 + col2 FROM tab2 AS cor0
----
136788
39444
71885

query I rowsort
SELECT ALL - + 93 * - 86 - col0 FROM tab2 AS cor0
----
7919
7920
7991

query I rowsort
SELECT ALL ( ( - col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3275
SELECT ALL + 13 DIV cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3275
SELECT ALL + 13 / cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - cor0.col1 + + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + cor0.col0 + col1 * - col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col0 - col0 * - col2 )
----

query I rowsort
SELECT DISTINCT col0 * col2 + - col0 AS col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT - col1 * - col2 AS col0 FROM tab2 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - col2 * - col2 - col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT col0 + + col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3285
SELECT DISTINCT - cor0.col0 * col0 + col0 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-4102
-6406
-9

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT - cor0.col0 * col0 + col0 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-4102
-6406
-9

query I rowsort
SELECT + col2 + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + col0 + col2 * + col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT + col2 * - col1 + - col1 + col1 * col2 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT + - col1 + - col0 + cor0.col0 * col1 FROM tab1 AS cor0
----
49
566
947

query I rowsort
SELECT DISTINCT + col1 * col0 + + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT + - col2 * col1 * - col0 + col1 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT + cor0.col2 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL tab0.col2 + - col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3295
SELECT ALL - col1 DIV - col0 + + col2 + tab1.col2 FROM tab1
----
114
116
192

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL - col1 / - col0 + + col2 + tab1.col2 FROM tab1
----
114
116
192

query I rowsort
SELECT + + col2 + col1 * - col0 AS col1 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - col0 + col0 * col1 AS col2 FROM tab2
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * 82 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b597be2f4da6e48d840683a22dea545d

query I rowsort
SELECT DISTINCT col1 + + 34 * ( - col1 * + 48 ) AS col1 FROM tab2 AS cor0
----
-27727
-50561
-96229

query I rowsort
SELECT - col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + + col0 + + col1 FROM tab1 AS cor0
----
29
74
93

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808

query I rowsort
SELECT + + col0 * - ( 53 ) AS col0 FROM tab0 AS cor0
----
-1272
-1855
-4717

query I rowsort
SELECT ALL - col1 * + 82 + + col1 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT + ( - 84 ) * col0 + 49 AS col1 FROM tab2 AS cor0
----
-539
-6503
-6587

query I rowsort
SELECT - - 68 * col2 - + col1 FROM tab1 cor0
----
3646
3866
6515

onlyif mysql # use DIV operator for integer division
query I rowsort label-3307
SELECT DISTINCT - - col0 DIV - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3307
SELECT DISTINCT - - col0 / - col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ( - col2 ) * col0 + - 98 * 67 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-13775
-6566
-7334

onlyif mysql # use DIV operator for integer division
query I rowsort label-3309
SELECT + col1 DIV 29 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3309
SELECT + col1 / 29 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - + col1 * 83 AS col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT ALL + col2 DIV - 20 + - col2 FROM tab0 AS cor0
----
-1
-34
-86

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + col2 / - 20 + - col2 FROM tab0 AS cor0
----
-1
-34
-86

query I rowsort
SELECT ALL ( col0 ) AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col1 * 19 * + col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-12195
-15896
-29068

query I rowsort
SELECT - - col1 * + cor0.col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - col1 * - col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT 48 AS col0 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT col0 + - col0 * ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT + ( col2 ) + col0 * 73 * + col1 FROM tab2 cor0
----
15868
335972
98077

query I rowsort
SELECT + - 5 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - 14 AS col2 FROM tab0
----
-14

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2, tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT ( col1 + col0 ) FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - col1 + col1 * - col1 - col0 AS col0 FROM tab2 cor0
----
-3618
-385
-999

query I rowsort
SELECT DISTINCT + + ( col0 ) * col0 + - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT + - col1 * 42 FROM tab2 AS cor0
----
-1302
-2478
-714

query I rowsort
SELECT + col2 + - cor0.col1 * 67 FROM tab2 AS cor0
----
-1101
-2050
-3927

query I rowsort
SELECT DISTINCT + col1 + + 90 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
296
5770
7213

query I rowsort
SELECT ALL + + col2 + ( - col0 ) * + col1 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + 60 col0 FROM tab2 AS cor0
----
119
77
91

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * col0 - col1 FROM tab2 AS cor0
----
165
2047
3064

onlyif mysql # use DIV operator for integer division
query I rowsort label-3334
SELECT DISTINCT col2 DIV - ( + 51 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3334
SELECT DISTINCT col2 / - ( + 51 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 - - col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col2 * tab2.col0 + - col0 + - 37 FROM tab2
----
145
1913
2886

onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT tab0.col0 - col1 * 48 DIV col0 AS col2 FROM tab0
----
-148
-98
40

skipif mysql # not compatible
query I rowsort label-3337
SELECT tab0.col0 - col1 * 48 / col0 AS col2 FROM tab0
----
-148
-98
40

query I rowsort
SELECT - col1 + col0 * + 64 AS col1 FROM tab2
----
417
4933
5039

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 57708840c4ff70ecdca82ffd05259432

query I rowsort
SELECT ALL col2 * 0 FROM tab1
----
0
0
0

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 021da207cdc2a046fb0a79bf7cfc38ae

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 20 col1 FROM tab1 AS cor0
----
200
260
520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3343
SELECT - col2 + + CAST( - 68 AS SIGNED ) FROM tab0 cor0
----
-101
-150
-69

skipif mysql # not compatible
query I rowsort label-3343
SELECT - col2 + + CAST ( - 68 AS INTEGER ) FROM tab0 cor0
----
-101
-150
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-3344
SELECT DISTINCT - + col0 DIV col1 col0 FROM tab1 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT - + col0 / col1 col0 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT + col0 * - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 48 * 36 col2 FROM tab2 cor0
----
44928
46656
65664

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1, tab1 AS cor1
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c

query I rowsort
SELECT - cor1.col2 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT - ( + col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3350
SELECT + + CAST( NULL AS SIGNED ) * - 19 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3350
SELECT + + CAST ( NULL AS INTEGER ) * - 19 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col0 + 81 FROM tab2 cor0
----
159
160
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3352
SELECT + CAST( NULL AS SIGNED ) - - ( - col2 * CAST( + cor0.col1 AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT + CAST ( NULL AS INTEGER ) - - ( - col2 * CAST ( + cor0.col1 AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + + ( col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 + cor0.col0 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e0ab7687b39d863630f7de8e1435afbb

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT + col2 + + col2 * col0 * ( + col0 ) + 40 FROM tab1 AS cor0
----
233569
580
614536

query I rowsort
SELECT ALL - - ( col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - 77 FROM tab2
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + + col2 * col1 + col0 * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - - col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3364
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

skipif mysql # not compatible
query I rowsort label-3364
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

query I rowsort
SELECT ALL + ( col1 ) + col2 * - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT ALL - ( ( cor0.col1 ) ) * col2 + - cor0.col2 + - col0 FROM tab1 AS cor0
----
-1424
-1461
-691

query I rowsort
SELECT DISTINCT - 34 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3369
SELECT ALL + + cor0.col1 * 99 + - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL + + cor0.col1 * 99 + - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 68 + col1 FROM tab2 AS cor0
----
-37
-51
-9

query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - - 3 AS col2 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT + 68 + + 27 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT + 51 AS col0 FROM tab2
----
51

query I rowsort
SELECT ALL - 12 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ALL 37 - - 31 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT - - 37 * + col1 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
11466
5246
6984

onlyif mysql # use DIV operator for integer division
query I rowsort label-3379
SELECT ALL col1 DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL col1 / + col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col2 * col2 + 79 FROM tab2
----
1523
755
808

query I rowsort
SELECT DISTINCT - col1 + + 22 FROM tab2
----
-37
-9
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3382
SELECT CAST( - ( col1 ) AS SIGNED ) * - col1 + col2 * + col2 FROM tab1 AS cor0
----
3349
3592
9385

skipif mysql # not compatible
query I rowsort label-3382
SELECT CAST ( - ( col1 ) AS INTEGER ) * - col1 + col2 * + col2 FROM tab1 AS cor0
----
3349
3592
9385

query I rowsort
SELECT + col0 + - 51 AS col2 FROM tab0
----
-16
-27
38

query I rowsort
SELECT ALL + col1 + + col0 * cor0.col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col1 + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + - 46 + + col2 AS col2 FROM tab0 AS cor0
----
-13
-45
36

query I rowsort
SELECT DISTINCT col0 * col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - - col0 * cor0.col0 + col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT + 14 DIV + col2 + + col2 * 61 * col1 col1 FROM tab1 AS cor0
----
34770
76128
85644

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3389
SELECT + 14 / + col2 + + col2 * 61 * col1 col1 FROM tab1 AS cor0
----
34770
76128
85644

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

query I rowsort
SELECT ALL - 91 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT ALL + col1 - - col0 FROM tab2
----
137
38
96

query I rowsort
SELECT col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3395
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3395
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + + ( + col2 ) FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3397
SELECT ALL col0 * - col0 + - ( col2 ) * - CAST( col0 AS SIGNED ) FROM tab1
----
-448
1280
153

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL col0 * - col0 + - ( col2 ) * - CAST ( col0 AS INTEGER ) FROM tab1
----
-448
1280
153

query I rowsort
SELECT col0 + + col1 * - col2 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT cor1.col0 + - cor1.col1 * 41 FROM tab1, tab0 cor0, tab2 cor1
----
27 values hashing to 22b22469ecaa36fa1dd05bc880b2e2d2

query I rowsort
SELECT ALL - col1 * + 13 + - 25 FROM tab0
----
-1143
-1208
-1286

query I rowsort
SELECT - col2 * 57 AS col0 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT ALL - col1 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col1 + - 94 AS col2 FROM tab0 AS cor0
----
-3
-8
3

query I rowsort
SELECT ALL - cor0.col1 + ( col1 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 - - col0 * + col0 FROM tab0 AS cor0
----
1128
490
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3406
SELECT col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col2 + col1 AS col0 FROM tab1 AS cor0
----
124
134
205

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3408
SELECT + CAST( NULL AS DECIMAL ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3408
SELECT + CAST ( NULL AS REAL ) FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3409
SELECT ALL + col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL + col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3410
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * + col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col1 * + 84 FROM tab1
----
1092
2184
840

query I rowsort
SELECT + col1 * - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + 85 FROM tab1, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT 15 AS col2 FROM tab2
----
15
15
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3416
SELECT CAST( - col0 AS SIGNED ) AS col2 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3416
SELECT CAST ( - col0 AS INTEGER ) AS col2 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + col0 + col1 col2 FROM tab2 cor0
----
113
196
69

query I rowsort
SELECT - - ( - 3 ) + + col1 FROM tab1 AS cor0
----
10
23
7

query I rowsort
SELECT cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL 56 + ( cor1.col0 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 17d99addd1ce1febfe9037b343ae08f1

query I rowsort
SELECT DISTINCT - - col2 * + col1 * + ( + col2 ) + - col2 * + 54 * col0 AS col0 FROM tab2 AS cor0
----
-137560
-69628
12393

query I rowsort
SELECT + - 50 AS col2 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT col0 + + col2 * - ( col1 ) FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - - col1 + + col0 * - 46 AS col1 FROM tab0 AS cor0
----
-1018
-1513
-4003

query I rowsort
SELECT DISTINCT + - 67 + + col0 + 56 AS col0 FROM tab2 AS cor0
----
-4
67
68

query I rowsort
SELECT - + cor0.col2 + ( 60 ) AS col2 FROM tab1 cor0
----
-36
3
6

query I rowsort
SELECT + col0 * + ( - col1 ) + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT - cor0.col1 + ( cor0.col1 ) * - col2 * col2 FROM tab1 AS cor0
----
-119821
-32500
-75842

onlyif mysql # use DIV operator for integer division
query I rowsort label-3430
SELECT ALL + col0 + + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL + col0 + + col0 / + col0 AS col1 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT - + cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT 14 + col1 FROM tab0
----
100
105
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col1 FROM tab2
----
78
78
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT + col2 DIV col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3434
SELECT + col2 / col0 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-3435
SELECT + col1 DIV - col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3435
SELECT + col1 / - col2 FROM tab0 cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT + col2 DIV ( - col0 ) + - cor0.col2 - - col0 * + cor0.col0 FROM tab1 AS cor0
----
-63
4039
6303

skipif mysql # not compatible
query I rowsort label-3436
SELECT + col2 / ( - col0 ) + - cor0.col2 - - col0 * + cor0.col0 FROM tab1 AS cor0
----
-63
4039
6303

query I rowsort
SELECT ALL + ( + col0 + - col2 * 61 ) FROM tab2
----
-1508
-1640
-2239

query I rowsort
SELECT DISTINCT + 34 AS col2 FROM tab2, tab0 AS cor0
----
34

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 53 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 63949b5362442f48bd29195397a57dad

query I rowsort
SELECT - col0 * cor0.col0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3442
SELECT CAST( 62 * + col2 AS SIGNED ) FROM tab2
----
1612
1674
2356

skipif mysql # not compatible
query I rowsort label-3442
SELECT CAST ( 62 * + col2 AS INTEGER ) FROM tab2
----
1612
1674
2356

onlyif mysql # use DIV operator for integer division
query I rowsort label-3443
SELECT 66 DIV - col0 + col2 + col1 * - 60 FROM tab2 cor0
----
-1842
-3514
-982

skipif mysql # not compatible
query I rowsort label-3443
SELECT 66 / - col0 + col2 + col1 * - 60 FROM tab2 cor0
----
-1842
-3514
-982

query I rowsort
SELECT - + col2 * 83 + + cor0.col1 * + 76 + - col2 * - col0 * + 56 FROM tab1 cor0
----
200317
423100
6566

query I rowsort
SELECT DISTINCT - 45 + + 53 * - tab2.col0 FROM tab2
----
-416
-4179
-4232

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3446
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 49 + col0 * - ( + col2 ) * tab1.col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 49 + col0 * - ( + col2 ) * tab1.col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col0 + + tab0.col0 * + 0 * - tab0.col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - col2 + col1 * + 59 FROM tab1
----
1480
533
671

query I rowsort
SELECT + col0 * + tab0.col0 + + 31 FROM tab0
----
1256
607
7952

query I rowsort
SELECT DISTINCT + + col2 + col1 * + ( 40 + cor0.col0 ) FROM tab0 cor0
----
11821
5537
7276

query I rowsort
SELECT + col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + col0 + + col0 * - 95 FROM tab1 cor0
----
-282
-6016
-7520

query I rowsort
SELECT ALL - ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 40 - col2 * 22 FROM tab0 AS cor0
----
-1844
-62
-766

query I rowsort
SELECT + ( col1 ) + + 75 AS col0 FROM tab2 cor0
----
106
134
92

query I rowsort
SELECT ALL + 89 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT col0 + col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL cor1.col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + 5 * + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 34ff6994b476f6f007f4db49c664ea5a

query I rowsort
SELECT - col2 * col1 + col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + col0 * - col1 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - col2 * 83 AS col0 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT ALL 88 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT ALL - 45 * + col1 * + col2 + 37 FROM tab2 cor0
----
-29033
-37628
-68993

query I rowsort
SELECT + 19 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT 96 AS col1 FROM tab2 cor0
----
96
96
96

query I rowsort
SELECT ALL cor0.col0 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 * col1 col1 FROM tab1 AS cor0
----
117
234
90

query I rowsort
SELECT cor0.col2 + - col1 + + col1 AS col1 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT DISTINCT tab1.col1 DIV - tab1.col1 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT tab1.col1 / - tab1.col1 AS col2 FROM tab1
----
-1

query I rowsort
SELECT - col1 * col0 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + + 62 + 50 * - col1 AS col1 FROM tab0 AS cor0
----
-4238
-4488
-4788

query I rowsort
SELECT ALL + - 68 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL col2 * - ( + 61 ) AS col0 FROM tab0
----
-2013
-5002
-61

query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab1 AS cor0
----
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 * col0 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3480
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 * col0 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 89 + ( + col2 ) FROM tab1 cor0
----
143
146
185

query I rowsort
SELECT ALL - - 15 AS col0 FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT ALL - 96 FROM tab2
----
-96
-96
-96

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36

query I rowsort
SELECT DISTINCT 38 FROM tab1 AS cor0
----
38

query I rowsort
SELECT ( cor0.col2 ) FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - col1 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL + - col1 + + ( + col1 ) * + col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL - 74 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 83dc6c0e38784f5f5c6b91de33ab4ff1

query I rowsort
SELECT ALL - 96 + + 37 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT + col1 * col2 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 * + 15 + - col1 col2 FROM tab0 AS cor0
----
104
109
98

query I rowsort
SELECT ALL - - ( col2 ) + col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT ( - col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT col2 * col0 + - col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT col1 + - 29 + col1 FROM tab0
----
143
153
165

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT DISTINCT 86 + - 47 * + tab0.col1 + col2 DIV col0 FROM tab0
----
-3955
-4191
-4473

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT 86 + - 47 * + tab0.col1 + col2 / col0 FROM tab0
----
-3955
-4191
-4473

query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab1 cor0
----
76

query I rowsort
SELECT + 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 27 + + col2 FROM tab1 AS cor0
----
123
81
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + col0 * ( col1 ) col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT + col2 * + cor0.col2 + - 96 AS col1 FROM tab1 AS cor0
----
2820
3153
9120

query I rowsort
SELECT ALL - - cor0.col1 + + cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3507
SELECT DISTINCT col0 + - col2 DIV - col1 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-3507
SELECT DISTINCT col0 + - col2 / - col1 FROM tab1 AS cor0
----
5
69
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3508
SELECT ALL - col0 DIV - col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL - col0 / - col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT + col0 * col0 + - ( col0 + + col0 ) FROM tab1 AS cor0
----
3
3968
6240

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL + col0 + - 89 FROM tab1
----
-25
-86
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3512
SELECT ALL CAST( NULL AS SIGNED ) + - tab1.col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL CAST ( NULL AS INTEGER ) + - tab1.col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * ( - 53 ) FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT ALL + col0 + + col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + + col1 * col2 + - 63 col0 FROM tab1 AS cor0
----
-133
1263
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3517
SELECT DISTINCT + - col0 * - ( - 92 ) + col2 DIV col2 + - 79 * + col2 FROM tab0 AS cor0
----
-14665
-3298
-4814

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT + - col0 * - ( - 92 ) + col2 / col2 + - 79 * + col2 FROM tab0 AS cor0
----
-14665
-3298
-4814

query I rowsort
SELECT ALL - col2 + - 82 AS col0 FROM tab1 AS cor0
----
-136
-139
-178

query I rowsort
SELECT ALL cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + col2 * - 10 * + col1 - + col1 * + 28 FROM tab0 AS cor0
----
-30788
-3686
-77168

query I rowsort
SELECT DISTINCT col0 + ( 11 ) * col1 FROM tab2 AS cor0
----
266
348
727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * col2 col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + cor0.col2 * - col0 + - 2 - col0 AS col1 FROM tab1 AS cor0
----
-167
-3714
-7762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 75 col1 FROM tab1 AS cor0
----
101
85
88

query I rowsort
SELECT - col2 - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - col0 * + ( + 73 + col1 ) * 28 FROM tab1 AS cor0
----
-148736
-192640
-8316

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab2, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + col2 + - tab2.col1 FROM tab2
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 * tab2.col1 col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to cffa4bc41db7c140b9c9cff7bc8bc26e

query I rowsort
SELECT DISTINCT + col2 + - col1 * 59 * col1 FROM tab1 cor0
----
-39830
-5843
-9875

query I rowsort
SELECT ALL - col2 * col1 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col2 + col2 * - col1 AS col2 FROM tab1
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 56 - - 71 col1 FROM tab0
----
-4745
-5025
-5361

query I rowsort
SELECT ALL - col2 + + ( col1 ) * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + - col1 * - 38 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT ALL + + col2 - ( - col0 ) AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT col1 - + ( + col1 ) AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + col0 + - col2 * - col0 AS col1 FROM tab0 cor0
----
71
7469
849

query I rowsort
SELECT DISTINCT col2 * - 97 - - 39 FROM tab0 AS cor0
----
-3162
-58
-7915

query I rowsort
SELECT DISTINCT - col2 + col2 AS col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 * - col0 col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL + 0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 9 * cor0.col1 FROM tab2 AS cor0
----
153
279
531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - - col0 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - ( - col1 ) * 79 FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT DISTINCT + - col2 * col1 + + 33 AS col2 FROM tab0 AS cor0
----
-2805
-64
-7429

query I rowsort
SELECT col2 * tab0.col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col0 FROM tab2
----
42
42
42

query I rowsort
SELECT - col2 * col2 AS col2 FROM tab2
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3550
SELECT + - col2 * col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT + - col2 * col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 * col0 col0 FROM tab0
----
1157
312
455

onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT ALL - col2 DIV - 68 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3552
SELECT ALL - col2 / - 68 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT col2 * - col0 * + cor0.col0 FROM tab0 cor0
----
-1225
-19008
-649522

query I rowsort
SELECT col0 + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col0 * col2 AS col1 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - + cor0.col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT + col2 * ( 11 ) + col0 AS col2 FROM tab1 AS cor0
----
1136
597
691

query I rowsort
SELECT + col0 * + cor0.col2 * col1 + + col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT + col2 + - ( - 72 ) * col2 * + ( - cor0.col2 ) + col1 AS col0 FROM tab2 AS cor0
----
-103913
-48587
-52430

query I rowsort
SELECT - tab0.col1 + + col0 + + col2 AS col1 FROM tab0
----
-29
-61
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3562
SELECT - - col0 + - CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3562
SELECT - - col0 + - CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL ( col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - - col2 + col2 - + col0 AS col0 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT DISTINCT - 79 + 4 FROM tab1 AS cor0
----
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT - ( cor0.col0 ) DIV - col1 AS col2 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3566
SELECT - ( cor0.col0 ) / - col1 AS col2 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT ALL col1 * + col0 * - col1 + - ( + col0 + col2 ) FROM tab2 cor0
----
-22948
-271622
-6761

query I rowsort
SELECT ALL + col2 * col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3569
SELECT DISTINCT - + 4 DIV cor0.col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - + 4 / cor0.col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 47 + - col1 AS col2 FROM tab2 AS cor0
----
-12
16
30

query I rowsort
SELECT - 84 AS col2 FROM tab2 AS cor0
----
-84
-84
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT ALL - - CAST( - col0 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - - CAST ( - col0 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 AS col1 FROM tab1 cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3574
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col0 + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + 97 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT ALL - - ( - col1 ) + col1 * col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT 80 + + col0 + col2 AS col2 FROM tab0 cor0
----
116
137
251

query I rowsort
SELECT + 36 + + col2 FROM tab0 AS cor0
----
118
37
69

query I rowsort
SELECT - 21 AS col2 FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT cor0.col0 + + col2 * - 57 * + col1 FROM tab2 AS cor0
----
-36743
-47702
-87360

query I rowsort
SELECT + - 37 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT + + 39 FROM tab1 AS cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col2 col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + col1 * + col0 - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - ( - col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + ( tab1.col1 * col1 ) AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT - - 22 + + col0 FROM tab1 AS cor0
----
102
25
86

query I rowsort
SELECT - - 25 AS col1 FROM tab0 AS cor0
----
25
25
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-3590
SELECT DISTINCT + col2 DIV + col0 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT + col2 / + col0 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT 46 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - 38 * - cor1.col0 + - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ee133ee0e3f55ab6f469fad16f23a91

query I rowsort
SELECT - 83 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

query I rowsort
SELECT DISTINCT + col2 * - col0 AS col2 FROM tab0
----
-35
-7298
-792

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT - 69 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-69

query I rowsort
SELECT + 99 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab2
----
24

query I rowsort
SELECT ALL 84 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT - + 18 + + 54 * col1 AS col1 FROM tab1 cor0
----
1386
522
684

query I rowsort
SELECT 19 * - col2 * + col1 AS col0 FROM tab1 cor0
----
-10830
-23712
-26676

query I rowsort
SELECT + 98 FROM tab2
----
98
98
98

query I rowsort
SELECT ALL + + cor0.col2 * 17 + col2 AS col2 FROM tab0 AS cor0
----
1476
18
594

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3607
SELECT - - col1 + CAST( 70 + col2 AS SIGNED ) FROM tab0 AS cor0
----
168
189
243

skipif mysql # not compatible
query I rowsort label-3607
SELECT - - col1 + CAST ( 70 + col2 AS INTEGER ) FROM tab0 AS cor0
----
168
189
243

query I rowsort
SELECT DISTINCT + + col0 * - 9 * - cor0.col0 + + col0 FROM tab2 AS cor0
----
448
54834
56248

query I rowsort
SELECT ALL - - col0 - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2, tab1 AS cor1
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT ALL col2 * + ( 52 * - col1 ) + col1 FROM tab0
----
-147490
-387933
-4947

query I rowsort
SELECT ALL + col2 + - tab0.col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col1 * + col1 + - col0 * col2 * + col0 AS col2 FROM tab0
----
-10634
-26404
-657803

query I rowsort
SELECT ( + 76 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL col0 * 6 FROM tab2
----
42
468
474

query I rowsort
SELECT - col2 * ( + cor0.col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3619
SELECT - col1 * + CAST( - col1 AS SIGNED ) + + col0 * cor0.col0 * + col0 + + col0 col1 FROM tab0 AS cor0
----
21244
52319
713339

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3619
SELECT - col1 * + CAST ( - col1 AS INTEGER ) + + col0 * cor0.col0 * + col0 + + col0 col1 FROM tab0 AS cor0
----
21244
52319
713339

query I rowsort
SELECT - + col0 + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - 86 FROM tab0, tab0 AS cor0
----
-86

query I rowsort
SELECT col2 * + col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT + col1 * ( - tab0.col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col2 * - col2 * - col2 AS col1 FROM tab0
----
1
35937
551368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col2 * ( col0 ) AS col1 FROM tab0
----
35
7298
792

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 cor0, tab2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

query I rowsort
SELECT ALL 5 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ( + col1 ) * + col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab0 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + col0 col2 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col1 FROM tab1
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col0 col1 FROM tab1
----
0

query I rowsort
SELECT tab2.col0 * - col0 * + col0 + + col2 * 98 - col0 AS col2 FROM tab2
----
-472082
-489394
2296

query I rowsort
SELECT + + 86 * col0 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT + col0 * col0 + tab1.col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT col1 * - col2 + + 44 AS col0 FROM tab1
----
-1204
-1360
-526

query I rowsort
SELECT 18 - col1 AS col0 FROM tab0
----
-68
-73
-79

query I rowsort
SELECT col2 * col0 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - col0 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - + ( + cor0.col0 ) * - ( - col2 ) + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + ( - col1 ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 AS col0 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + col1 * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort
SELECT + col0 * col0 - CAST ( - col2 AS REAL ) FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT - ( - col1 ) + col0 * 90 AS col0 FROM tab0 AS cor0
----
2246
3247
8101

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3647
SELECT + 27 * - cor0.col2 + + CAST( col2 * cor0.col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-99
5084
8

skipif mysql # not compatible
query I rowsort label-3647
SELECT + 27 * - cor0.col2 + + CAST ( col2 * cor0.col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-99
5084
8

query I rowsort
SELECT ALL - 16 AS col2 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT + - cor0.col0 + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + tab1.col1 FROM tab1
----
20
26
52

query I rowsort
SELECT 45 * - col2 * col2 - - col1 * + col2 AS col2 FROM tab1
----
-129816
-145635
-413472

query I rowsort
SELECT DISTINCT col1 + - col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT - 54 + col2 FROM tab1
----
0
3
42

query I rowsort
SELECT col1 * col0 + 92 AS col1 FROM tab1
----
1132
170
732

onlyif mysql # use DIV operator for integer division
query I rowsort label-3655
SELECT DISTINCT + - col2 + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT + - col2 + col1 / col1 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT ALL + col0 * + col0 * col0 AS col2 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT - col1 * + cor0.col1 - 17 FROM tab2 AS cor0
----
-306
-3498
-978

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 + + 16 * - col2 * cor0.col0 col1 FROM tab0 AS cor0
----
-124230
-15510
-657

query I rowsort
SELECT ALL + + cor0.col2 + col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3663
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) * 9 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) * 9 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 * 63 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT ALL col1 * + ( + col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT + cor0.col0 + col1 * col0 * - col1 + - col1 FROM tab2 AS cor0
----
-22769
-271499
-6751

onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT tab1.col0 DIV col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3667
SELECT tab1.col0 / col2 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT 4 * - col2 - 49 AS col2 FROM tab2
----
-153
-157
-201

query I rowsort
SELECT col1 + - tab1.col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + 49 * + col1 AS col2 FROM tab0 cor0
----
4128
4368
4656

query I rowsort
SELECT ALL - 22 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

query I rowsort
SELECT - + col0 * ( 17 ) AS col1 FROM tab2 AS cor0
----
-119
-1326
-1343

query I rowsort
SELECT ALL + 92 + + col0 + + col2 FROM tab2 AS cor0
----
126
196
209

query I rowsort
SELECT ALL + - 83 AS col0 FROM tab0 AS cor0
----
-83
-83
-83

query I rowsort
SELECT + - 30 FROM tab1 cor0
----
-30
-30
-30

query I rowsort
SELECT ALL + ( 66 ) + col2 AS col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT DISTINCT + + 20 * 77 + + col2 * + col1 * col1 FROM tab1 AS cor0
----
17764
38044
7240

query I rowsort
SELECT DISTINCT - 25 FROM tab1 AS cor0
----
-25

query I rowsort
SELECT - ( - col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - tab0.col2 * + 67 AS col0 FROM tab0
----
-2211
-5494
-67

query I rowsort
SELECT DISTINCT + - ( col1 ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col1 FROM tab1 AS cor0
----
86

query I rowsort
SELECT - ( 33 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
-16
-2
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3685
SELECT ALL + col0 DIV + cor0.col1 + col0 DIV + 97 + 84 FROM tab1 AS cor0
----
84
90
90

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + col0 / + cor0.col1 + col0 / + 97 + 84 FROM tab1 AS cor0
----
84
90
90

query I rowsort
SELECT DISTINCT - 54 * col0 - col2 * 64 AS col2 FROM tab0 AS cor0
----
-10054
-1954
-3408

query I rowsort
SELECT + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - ( 55 ) FROM tab0
----
-55
-55
-55

query I rowsort
SELECT ALL - - col0 * + col0 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - ( cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + 15 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT + 21 * 90 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 0b233c0c53c78f852a46da4acac78ef7

query I rowsort
SELECT col1 - + col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT ALL 79 AS col1 FROM tab0
----
79
79
79

query I rowsort
SELECT - col0 + tab1.col0 - - col0 FROM tab1
----
3
64
80

query I rowsort
SELECT col0 + - ( 43 ) FROM tab2
----
-36
35
36

query I rowsort
SELECT - cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT DISTINCT + col0 + + 54 AS col0 FROM tab2
----
132
133
61

query I rowsort
SELECT + col2 * col2 * col1 AS col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT - - col0 + ( col2 ) * - col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT col1 + + cor0.col0 - col1 * col1 FROM tab2 AS cor0
----
-193
-3344
-923

query I rowsort
SELECT + - col2 * + 50 + - col0 AS col1 FROM tab0 AS cor0
----
-1674
-4189
-85

query I rowsort
SELECT ALL + col0 * - tab0.col0 AS col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT 71 + 1 * tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a4b5b55cb4bc3f01ce02ac5ced902f99

query I rowsort
SELECT ALL - col0 * - col1 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3706
SELECT col0 + CAST( - col1 AS SIGNED ) * col0 AS col2 FROM tab1
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-3706
SELECT col0 + CAST ( - col1 AS INTEGER ) * col0 AS col2 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT - col0 DIV 79 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3707
SELECT - col0 / 79 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col2 + 97 * cor0.col2 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT + 11 AS col0 FROM tab0
----
11
11
11

query I rowsort
SELECT DISTINCT - + ( + col1 ) * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + col1 + cor0.col2 * - col1 AS col0 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT ( ( col0 ) ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - col0 + col2 - cor0.col0 FROM tab2 cor0
----
-120
-130
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 43 col0 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT col2 * - col1 + - col0 AS col0 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - col2 + - 93 - col1 FROM tab0 AS cor0
----
-191
-212
-266

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3717
SELECT DISTINCT + CAST( col0 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + ( col0 ) + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT - col0 * + col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - - col2 + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT + - cor0.col0 DIV col1 AS col2 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3723
SELECT + - cor0.col0 / col1 AS col2 FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT ALL + 20 + - col1 FROM tab0 AS cor0
----
-66
-71
-77

query I rowsort
SELECT DISTINCT - - col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col2 + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-3727
SELECT DISTINCT cor0.col0 * col0 DIV - ( 9 ) FROM tab2 AS cor0
----
-5
-676
-693

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT cor0.col0 * col0 / - ( 9 ) FROM tab2 AS cor0
----
-5
-676
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col2 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT ALL col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + + 28 FROM tab1 AS cor0
----
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-3731
SELECT + - ( - col0 ) DIV - 34 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3731
SELECT + - ( - col0 ) / - 34 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL - col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + + col0 + + col2 * col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
105
7476
840

query I rowsort
SELECT + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col0 * + col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to f9101173abc9e524c6310e6c0eeefb0c

query I rowsort
SELECT ALL - cor0.col0 * + col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - col2 * 49 FROM tab2 AS cor0
----
-1274
-1323
-1862

query I rowsort
SELECT DISTINCT - tab2.col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + col2 * 57 AS col0 FROM tab2 cor0
----
1482
1539
2166

onlyif mysql # use DIV operator for integer division
query I rowsort label-3741
SELECT + col0 DIV - 72 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3741
SELECT + col0 / - 72 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + 68 AS col0 FROM tab1 cor0
----
68
68
68

query I rowsort
SELECT ALL + 51 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT - 60 DIV 4 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to af17c026b0658d7a3496b8b16be82ec5

skipif mysql # not compatible
query I rowsort label-3745
SELECT - 60 / 4 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to af17c026b0658d7a3496b8b16be82ec5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * - col2 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT 79 + 18 AS col1 FROM tab1
----
97

query I rowsort
SELECT + col0 * tab0.col2 + - col2 + 57 AS col2 FROM tab0
----
7273
816
91

query I rowsort
SELECT - + 18 + + col0 AS col2 FROM tab0 AS cor0
----
17
6
71

query I rowsort
SELECT - col2 + cor0.col1 * col2 AS col2 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT col1 * - col0 AS col1 FROM tab1
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 87 ) col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT + 66 AS col2 FROM tab1
----
66
66
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3756
SELECT + col1 + + col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-3756
SELECT + col1 + + col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col0 + cor0.col1 * + 57 AS col0 FROM tab1 AS cor0
----
1485
634
821

query I rowsort
SELECT ( col1 ) * 34 AS col2 FROM tab0 AS cor0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab2
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + col2 * cor0.col0 col0 FROM tab2 AS cor0
----
174
2013
2987

query I rowsort
SELECT + col2 * col2 - col0 AS col2 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT ALL + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + col1 * + col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-3764
SELECT DISTINCT + cor0.col0 * + col1 + col2 * 83 DIV + cor0.col1 col2 FROM tab2 cor0
----
1528
289
4638

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT + cor0.col0 * + col1 + col2 * 83 / + cor0.col1 col2 FROM tab2 cor0
----
1528
289
4638

onlyif mysql # use DIV operator for integer division
query I rowsort label-3765
SELECT - + col0 DIV + col0 - + col2 AS col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-3765
SELECT - + col0 / + col0 - + col2 AS col1 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT - + 67 + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
3581
7613
95

query I rowsort
SELECT DISTINCT + 63 * - col2 + - 98 AS col1 FROM tab2 cor0
----
-1736
-1799
-2492

query I rowsort
SELECT - col2 + col2 * - ( 80 ) FROM tab0 cor0
----
-2673
-6642
-81

query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort
SELECT - + col0 - col1 * CAST ( - col0 + col2 AS REAL ) FROM tab1 AS cor0
----
-1329
-288
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT + col2 + - col1 + col0 DIV 2 FROM tab2 AS cor0
----
-1
6
60

skipif mysql # not compatible
query I rowsort label-3771
SELECT + col2 + - col1 + col0 / 2 FROM tab2 AS cor0
----
-1
6
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT DISTINCT + col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT + col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - - col2 * + cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - + col1 * cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL + - col2 + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 - - col0 * ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT - 52 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3777
SELECT - 52 / col1 AS col2 FROM tab2 AS cor0
----
-1
-3
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3778
SELECT ALL + - col1 * CAST( NULL AS SIGNED ) + - 1 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-3778
SELECT ALL + - col1 * CAST ( NULL AS INTEGER ) + - 1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 + + col1 + - col2 * col0 AS col2 FROM tab2 cor0
----
-127
-1910
-2968

onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT ALL col2 DIV - 39 + + col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-3780
SELECT ALL col2 / - 39 + + col2 + + col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT col2 + + ( - 39 ) AS col2 FROM tab2 AS cor0
----
-1
-12
-13

query I rowsort
SELECT cor0.col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - col0 * ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + - col1 + - col2 AS col1 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + ( col0 ) + ( + col0 * + tab2.col2 ) - 91 FROM tab2
----
105
2015
2990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT ALL + + CAST( NULL AS SIGNED ) - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL + + CAST ( NULL AS INTEGER ) - col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3787
SELECT DISTINCT + + 4 DIV ( col1 ) col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT + + 4 / ( col1 ) col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - ( - col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 27 FROM tab2, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT + 13 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT col2 + 34 * + col2 FROM tab1 AS cor0
----
1890
1995
3360

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

onlyif mysql # use DIV operator for integer division
query I rowsort label-3794
SELECT DISTINCT - cor0.col2 DIV cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - cor0.col2 / cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - ( + col1 ) * col0 + 60 AS col0 FROM tab1 AS cor0
----
-18
-580
-980

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT col1 * - col2 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
24
35
89

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT ALL 50 AS col2 FROM tab0
----
50
50
50

query I rowsort
SELECT + col1 * 3 - col2 FROM tab1
----
-27
-57
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 col2 FROM tab2
----
38
38
38

query I rowsort
SELECT + - 7 AS col0 FROM tab2 AS cor0
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + ( + col1 ) col2 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT cor1.col2 + + 37 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7b3b81f262fe2057ef6599175f145de0

query I rowsort
SELECT 56 * + 66 + col0 FROM tab1
----
3699
3760
3776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 54 col0 FROM tab2
----
54
54
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT ALL - col1 DIV - col1 + col1 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - col1 / - col1 + col1 AS col2 FROM tab1
----
11
14
27

query I rowsort
SELECT + 92 + col0 AS col1 FROM tab0
----
116
127
181

query I rowsort
SELECT col0 + col0 * col1 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT col1 DIV + col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3811
SELECT col1 / + col0 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT - col0 + col2 * - ( col2 * col1 ) FROM tab0
----
-132
-611973
-93678

query I rowsort
SELECT + 49 AS col0 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT 42 + 66 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
108

query I rowsort
SELECT - 62 FROM tab1 AS cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) + - cor0.col0 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col1 - + cor0.col1 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + - col1 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT tab0.col0 DIV + 7 FROM tab0, tab0 AS cor0
----
9 values hashing to 648670beca64e38b2c22b66bbf139b83

skipif mysql # not compatible
query I rowsort label-3819
SELECT tab0.col0 / + 7 FROM tab0, tab0 AS cor0
----
9 values hashing to 648670beca64e38b2c22b66bbf139b83

query I rowsort
SELECT ALL col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT ALL - col1 * col1 - col0 AS col1 FROM tab2 cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL - col1 + + 1 + 12 FROM tab2
----
-18
-4
-46

query I rowsort
SELECT 43 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT ALL + cor0.col1 + + 69 FROM tab1, tab1 AS cor0
----
9 values hashing to 35cd26f33597c096312fa50511b41cbe

query I rowsort
SELECT ALL tab0.col0 * 52 FROM tab0, tab2 AS cor0
----
9 values hashing to 064a0a3374c503b28491a45b55423f96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT ALL - col1 DIV + ( + 71 ) + col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - col1 / + ( + 71 ) + col0 FROM tab0
----
23
34
88

query I rowsort
SELECT - col0 + 6 * + 50 AS col2 FROM tab0
----
211
265
276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + 89 col2 FROM tab0
----
113
124
178

query I rowsort
SELECT ALL col1 + - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 44 col2 FROM tab2 AS cor0
----
1144
1188
1672

onlyif mysql # use DIV operator for integer division
query I rowsort label-3833
SELECT ALL 34 DIV - col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 34 / - col2 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT - 20 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT - 20 / col1 AS col2 FROM tab1 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT DISTINCT col2 DIV 97 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT col2 / 97 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - ( + col0 ) * col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 41 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT 36 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - + 56 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT - 60 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - + cor0.col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + + 82 + col2 * + col2 FROM tab0 cor0
----
1171
6806
83

query I rowsort
SELECT col1 + - col2 * + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL ( + col0 ) + - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT + col2 + 15 DIV + col0 FROM tab1
----
57
59
96

skipif mysql # not compatible
query I rowsort label-3846
SELECT + col2 + 15 / + col0 FROM tab1
----
57
59
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3847
SELECT tab1.col0 - ( - 8 + tab1.col1 ) DIV col1 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3847
SELECT tab1.col0 - ( - 8 + tab1.col1 ) / col1 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - - 86 * + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
312
5561
6976

query I rowsort
SELECT ALL col0 * + col2 - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + 26 * - col0 FROM tab2 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT - 66 AS col0 FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - 17 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT DISTINCT - 18 * col0 AS col0 FROM tab0 cor0
----
-1602
-432
-630

query I rowsort
SELECT DISTINCT + - ( - cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - 21 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-546
-567
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-3856
SELECT ALL col2 + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL col2 + col2 / + col2 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL - + col0 * col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + col0 - - 89 AS col2 FROM tab0 AS cor0
----
113
124
178

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col0 + 20 AS col0 FROM tab0 cor0
----
-15
-4
-69

query I rowsort
SELECT + - 63 * + col1 FROM tab2 AS cor0
----
-1071
-1953
-3717

query I rowsort
SELECT DISTINCT col1 * ( - 69 * col2 ) AS col1 FROM tab1
----
-39330
-86112
-96876

query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT DISTINCT col1 DIV + ( - tab0.col0 ) FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT col1 / + ( - tab0.col0 ) FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT DISTINCT + col1 * col0 DIV col0 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + col1 * col0 / col0 FROM tab0
----
86
91
97

query I rowsort
SELECT - + col2 * + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + + 25 + + col1 AS col2 FROM tab1 cor0
----
35
38
51

query I rowsort
SELECT ALL col0 * - tab1.col1 * - col2 + + col1 AS col0 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - col0 * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 48 AS col1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT ( - col0 ) + cor0.col1 * 94 AS col1 FROM tab1 AS cor0
----
1142
2441
876

query I rowsort
SELECT ALL 60 * tab2.col2 + - col2 FROM tab2
----
1534
1593
2242

query I rowsort
SELECT ALL col0 + col1 + + col1 AS col1 FROM tab2
----
113
196
69

query I rowsort
SELECT ALL - 8 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL - ( tab1.col0 ) + + tab1.col0 * - col2 AS col2 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT col1 * col1 + - col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT - col0 + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT cor0.col1 + - col1 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + col2 - cor0.col1 * - col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - col1 + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - tab2.col1 AS col0 FROM tab2, tab1 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + ( + col0 ) * cor0.col2 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + col2 + + cor0.col1 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + + col0 * + col1 + col2 + 96 FROM tab2 cor0
----
1477
340
4724

query I rowsort
SELECT ALL + col2 * + ( 72 * col2 ) AS col0 FROM tab0 cor0
----
484128
72
78408

query I rowsort
SELECT DISTINCT - col1 + + col2 * col0 * col2 FROM tab1 AS cor0
----
207926
737267
8722

query I rowsort
SELECT col2 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT - cor0.col1 + - ( - cor0.col2 ) * - col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + 3 - col0 FROM tab0
----
-21
-32
-86

query I rowsort
SELECT + cor0.col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - 76 * - col1 + ( - col0 ) FROM tab1
----
1973
696
908

query I rowsort
SELECT - 85 AS col0 FROM tab1
----
-85
-85
-85

query I rowsort
SELECT DISTINCT col0 * + col1 AS col0 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( tab2.col1 ) + + tab2.col2 col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT - col2 * + 47 + col2 AS col1 FROM tab0 AS cor0
----
-1518
-3772
-46

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col0 + + 58 AS col2 FROM tab0 AS cor0
----
147
82
93

query I rowsort
SELECT ALL + tab1.col0 + 1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 710fb9a037683dcbe6b423bbdb2dd4ff

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3903
SELECT CAST( NULL AS SIGNED ) / + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3903
SELECT CAST ( NULL AS INTEGER ) / + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col2 + col2 col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + ( col1 ) - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col2 ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 - col2 * + col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT 50 * + col2 AS col0 FROM tab1 AS cor0
----
2700
2850
4800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3910
SELECT DISTINCT + CAST( NULL AS SIGNED ) * tab1.col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * tab1.col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - 13 * 2 FROM tab0
----
-26
-26
-26

query I rowsort
SELECT + col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col1 * - ( + ( col1 ) * col0 + - 97 ) FROM tab2
----
21182
265795
3720

query I rowsort
SELECT + - col0 * ( - col2 * cor0.col1 ) FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3915
SELECT + col2 DIV - CAST( col2 * + cor0.col1 + col0 * + col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3915
SELECT + col2 / - CAST ( col2 * + cor0.col1 + col0 * + col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + - col0 * cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
-103
-6136
-6317

query I rowsort
SELECT - col2 * - cor0.col1 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col1 * ( + 23 ) FROM tab2 cor0
----
-1357
-391
-713

query I rowsort
SELECT ALL + + col0 + ( col2 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - - col2 * - col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 * - 56 FROM tab2 AS cor0
----
1456
1512
2128

onlyif mysql # use DIV operator for integer division
query I rowsort label-3922
SELECT - CAST( col1 AS SIGNED ) DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3922
SELECT - CAST ( col1 AS INTEGER ) / + col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - - ( - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - + 95 * + col0 AS col1 FROM tab2 AS cor0
----
-665
-7410
-7505

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9

query I rowsort
SELECT - ( col1 ) + col2 - 77 FROM tab0 AS cor0
----
-130
-173
-86

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT ALL col0 * + col2 * + col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT col2 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b

query I rowsort
SELECT - 25 + + col1 AS col0 FROM tab1 AS cor0
----
-12
-15
1

query I rowsort
SELECT 29 * + 28 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7d9bb07faf447831f8ffcff9aec1c0ac

query I rowsort
SELECT ( + col1 ) + col1 * + tab2.col2 * tab2.col1 FROM tab2
----
10999
25978
90565

query I rowsort
SELECT + 14 * col0 * - col1 + col0 * col1 FROM tab1
----
-1014
-13520
-8320

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - col1 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - - 20 + - col2 FROM tab2 AS cor0
----
-18
-6
-7

query I rowsort
SELECT DISTINCT + 72 + + col1 FROM tab2 AS cor0
----
103
131
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 + - 58 col1 FROM tab1 AS cor0
----
1190
1346
512

query I rowsort
SELECT DISTINCT - 74 + - col2 AS col2 FROM tab0 AS cor0
----
-107
-156
-75

query I rowsort
SELECT DISTINCT + col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) + cor0.col2 * cor0.col0 * + col0 FROM tab1 AS cor0
----
236721
3402
623616

query I rowsort
SELECT ALL - col0 * cor0.col2 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT col2 + - 90 AS col1 FROM tab1 AS cor0
----
-33
-36
6

query I rowsort
SELECT ALL col1 * col1 + - col0 + + col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - - col1 + col2 AS col1 FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + col2 * col1 col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT 84 FROM tab0
----
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3950
SELECT ALL ( col2 ) DIV - ( tab1.col0 ) FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL ( col2 ) / - ( tab1.col0 ) FROM tab1
----
-1
-18
0

query I rowsort
SELECT - 10 AS col2 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT cor0.col2 + + 71 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ad3a49e3385c421062a79fe5dc433531

query I rowsort
SELECT ALL - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + cor0.col2 * - col1 + - 53 AS col1 FROM tab0 AS cor0
----
-150
-2891
-7515

query I rowsort
SELECT ALL col2 + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 * cor0.col0 col1 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT col2 * + 22 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT ALL - - cor0.col2 + + ( 95 ) FROM tab0 AS cor0
----
128
177
96

query I rowsort
SELECT ALL + + col1 * + 5 - + col1 * col0 FROM tab2 AS cor0
----
-1258
-4307
-62

query I rowsort
SELECT DISTINCT - col2 - col1 * - col0 * col1 AS col0 FROM tab1 AS cor0
----
13424
1974
6343

query I rowsort
SELECT ALL + col2 + 83 FROM tab1 AS cor0
----
137
140
179

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - col1 + cor0.col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT cor0.col2 * + 53 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9813e4ee7aa6e0f69346868405acacd1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3965
SELECT DISTINCT CAST( NULL AS SIGNED ) + 78 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 78 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 + + col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3967
SELECT DISTINCT + col1 + ( + ( + col1 ) ) * col0 + col1 DIV col2 FROM tab0 AS cor0
----
2152
3589
8191

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + col1 + ( + ( + col1 ) ) * col0 + col1 / col2 FROM tab0 AS cor0
----
2152
3589
8191

query I rowsort
SELECT + col0 + - ( + 77 ) * - col2 FROM tab2
----
2080
2086
3005

query I rowsort
SELECT col2 * 85 + + 91 * col0 AS col0 FROM tab1
----
10669
15440
4863

query I rowsort
SELECT DISTINCT ( col0 * col1 ) - ( 35 ) * col2 FROM tab0
----
3360
5229
909

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 * col0 AS REAL ) col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT ( - col0 * col1 ) + col2 * col0 - - col2 * col1 AS col1 FROM tab1
----
1488
3578
7888

query I rowsort
SELECT DISTINCT col0 + - col1 - tab1.col1 AS col1 FROM tab1
----
-49
44
54

query I rowsort
SELECT DISTINCT - ( - ( col0 ) * - col1 ) - - col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT ALL + 89 AS col1 FROM tab0 cor0
----
89
89
89

query I rowsort
SELECT - + 11 * + col1 AS col1 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT DISTINCT cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL + + 74 AS col1 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT ALL 66 + + tab0.col0 AS col1 FROM tab0
----
101
155
90

query I rowsort
SELECT 60 AS col1 FROM tab1
----
60
60
60

query I rowsort
SELECT + - 88 + col2 FROM tab0 AS cor0
----
-55
-6
-87

query I rowsort
SELECT DISTINCT - - 39 * cor0.col2 - - 3 FROM tab2 AS cor0
----
1017
1056
1485

onlyif mysql # use DIV operator for integer division
query I rowsort label-3983
SELECT ALL + - col0 + col2 * + col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL + - col0 + col2 * + col0 / + col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + col1 + col0 * - 49 FROM tab2
----
-312
-3763
-3854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab1
----
92
92
92

query I rowsort
SELECT ALL col0 * + col1 - ( col2 ) FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT 75 + col2 FROM tab0 AS cor0
----
108
157
76

query I rowsort
SELECT ALL col2 + + col1 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ( col2 ) * + col1 + 89 * - col0 FROM tab1 AS cor0
----
-5126
-5872
1137

query I rowsort
SELECT ALL - 41 * col2 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT ALL col2 + + col0 AS col0 FROM tab0 cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3992
SELECT ALL - - ( col0 ) * CAST( + col1 AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

skipif mysql # not compatible
query I rowsort label-3992
SELECT ALL - - ( col0 ) * CAST ( + col1 AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - col0 col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT - - col1 - col0 AS col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT - - col0 * - col1 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT ALL 99 FROM tab0 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 30 col1 FROM tab2 AS cor0
----
108
109
37

query I rowsort
SELECT DISTINCT - cor0.col0 + col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT col2 * + cor0.col0 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4002
SELECT + 4 * col0 DIV ( + 49 + col2 ) FROM tab0 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4002
SELECT + 4 * col0 / ( + 49 + col2 ) FROM tab0 cor0
----
1
2
2

query I rowsort
SELECT DISTINCT + tab0.col0 * + col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4004
SELECT DISTINCT col1 DIV 46 col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT col1 / 46 col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col2 col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT - + col2 * + 78 + + col1 * + col0 AS col1 FROM tab0 AS cor0
----
-510
1703
3317

query I rowsort
SELECT ALL - + cor0.col2 * col0 + 21 * col1 FROM tab2 cor0
----
-2645
-789
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + col1 col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col0 * - col2 + - 94 FROM tab0 AS cor0
----
-59
698
7204

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4010
SELECT DISTINCT + cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4010
SELECT DISTINCT + cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT - cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4014
SELECT ALL + - col2 * CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL + - col2 * CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - tab1.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + ( + col0 ) + - col2 FROM tab0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4017
SELECT 3 * col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT 3 * col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab0.col2 * - col0 + 2 * - col1 AS col1 FROM tab0
----
-159
620
7116

query I rowsort
SELECT - col1 + col1 * col2 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4020
SELECT col2 * CAST( NULL AS SIGNED ) * 12 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT col2 * CAST ( NULL AS INTEGER ) * 12 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + 80 * - ( col2 ) FROM tab2
----
-2139
-2191
-3057

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 4b145ce61881e246723968d1ac787ac2

query I rowsort
SELECT + col0 + 29 FROM tab0 AS cor0
----
118
53
64

query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL col2 * - 27 + + col0 AS col0 FROM tab2 AS cor0
----
-624
-722
-947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4026
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + ( col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col0 + - 17 AS col1 FROM tab0 AS cor0
----
-106
-41
-52

query I rowsort
SELECT ALL + ( col1 ) + - col2 * - 31 FROM tab1 AS cor0
----
1700
1777
2989

onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT 63 - 19 DIV + col2 FROM tab0 AS cor0
----
44
63
63

skipif mysql # not compatible
query I rowsort label-4030
SELECT 63 - 19 / + col2 FROM tab0 AS cor0
----
44
63
63

query I rowsort
SELECT + + 22 * ( col1 + + ( 27 ) ) FROM tab2 AS cor0
----
1276
1892
968

query I rowsort
SELECT + 97 AS col0 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT - 37 * - col1 - col1 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT + col0 * - col0 + - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT ( ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 44 AS col0 FROM tab1 AS cor0
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col1 FROM tab0
----
21
21
21

query I rowsort
SELECT - 31 AS col0 FROM tab2 AS cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 20 ) col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT 40 AS col1 FROM tab2
----
40
40
40

query I rowsort
SELECT col0 + col2 - 35 * col0 FROM tab2 AS cor0
----
-211
-2626
-2648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 6 ) col1 FROM tab2, tab1 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT DISTINCT - col1 * + tab2.col1 * col0 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT + col0 * + col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT col2 * - ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4046
SELECT + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4046
SELECT + col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 45 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - 35 col0 FROM tab1 cor0
----
-22
-25
-9

query I rowsort
SELECT + - col0 * col1 - 46 * - cor0.col2 FROM tab0 AS cor0
----
-3349
-4327
-546

query I rowsort
SELECT DISTINCT + - cor0.col1 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4051
SELECT ALL + + col0 + - cor0.col0 DIV col0 - 44 FROM tab1 AS cor0
----
-42
19
35

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL + + col0 + - cor0.col0 / col0 - 44 FROM tab1 AS cor0
----
-42
19
35

query I rowsort
SELECT col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT col2 * - col0 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col0 * - col2 + ( col0 ) - + cor0.col2 * col1 FROM tab2 AS cor0
----
-1019
-3484
-3569

query I rowsort
SELECT + col1 + - col1 * + ( col1 ) FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - - ( - col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - cor0.col2 - + col1 * + ( + 80 ) AS col1 FROM tab1 AS cor0
----
-1136
-2134
-857

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col1 * + col2 + - col1 * 38 FROM tab0 AS cor0
----
-3589
-430
4004

onlyif mysql # use DIV operator for integer division
query I rowsort label-4060
SELECT ALL - - 4 - col1 DIV col0 FROM tab2 AS cor0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - - 4 - col1 / col0 FROM tab2 AS cor0
----
0
4
4

query I rowsort
SELECT DISTINCT + 88 FROM tab2 AS cor0
----
88

query I rowsort
SELECT ALL 38 * + 76 FROM tab0
----
2888
2888
2888

query I rowsort
SELECT col2 + - tab1.col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL tab0.col1 + - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 - col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col0 ) * cor0.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

query I rowsort
SELECT ALL - + ( + cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col2 + col1 * + 82 FROM tab2 AS cor0
----
1432
2569
4864

query I rowsort
SELECT DISTINCT - - col1 * col2 + - col1 AS col1 FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab2 cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - cor0.col1 * - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - cor0.col1 * - col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + - col0 + - col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - col2 * cor0.col0 + - ( - 26 ) FROM tab0 AS cor0
----
-7272
-766
-9

query I rowsort
SELECT DISTINCT col1 + col1 + col1 * col2 FROM tab0 AS cor0
----
291
3010
7644

query I rowsort
SELECT - col1 + 45 * - 36 AS col2 FROM tab0 AS cor0
----
-1706
-1711
-1717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4079
SELECT - col1 + + CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4079
SELECT - col1 + + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * + ( - col0 ) + col2 AS col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col2 + - col2 + col0 * col1 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 37 col0 FROM tab1 AS cor0
----
-11
-24
-27

query I rowsort
SELECT ALL cor1.col0 + - cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to a3f662bbe50d6b1683ee7bc2894619be

query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-4085
SELECT DISTINCT - ( + col0 ) + - col2 DIV - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT - ( + col0 ) + - col2 / - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-4
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4086
SELECT ALL - 51 + 93 DIV + tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a4be52c0f3a54c6437280d155e0759fb

skipif mysql # not compatible
query I rowsort label-4086
SELECT ALL - 51 + 93 / + tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a4be52c0f3a54c6437280d155e0759fb

query I rowsort
SELECT DISTINCT 73 * tab0.col1 * + col2 AS col0 FROM tab0
----
207174
544726
7081

query I rowsort
SELECT 97 FROM tab2 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + - 43 * + 30 + - col1 FROM tab0 AS cor0
----
-1376
-1381
-1387

onlyif mysql # use DIV operator for integer division
query I rowsort label-4090
SELECT - 0 * col2 + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4090
SELECT - 0 * col2 + + col1 / col1 AS col0 FROM tab2 AS cor0
----
1
1
1

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

query I rowsort
SELECT DISTINCT + - col0 + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + cor0.col0 + col0 + col2 * + 98 FROM tab1 AS cor0
----
5298
5714
9568

query I rowsort
SELECT ALL + col0 * 62 AS col2 FROM tab0 AS cor0
----
1488
2170
5518

onlyif mysql # use DIV operator for integer division
query I rowsort label-4095
SELECT ALL - - 27 DIV col2 + - col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-69
-9

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL - - 27 / col2 + - col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-69
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4096
SELECT ALL - - CAST( col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + + cor0.col1 * 27 AS col2 FROM tab2 cor0
----
1593
459
837

query I rowsort
SELECT - ( - col0 ) + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL 97 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT 93 + 23 AS col2 FROM tab1 cor0
----
116

query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4104
SELECT - col0 + 33 DIV + col1 FROM tab1
----
-2
-61
-78

skipif mysql # not compatible
query I rowsort label-4104
SELECT - col0 + 33 / + col1 FROM tab1
----
-2
-61
-78

query I rowsort
SELECT - col1 * + col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - 86 * 26 FROM tab0 AS cor0
----
-2236
-2236
-2236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col1 + col0 * col2 col1 FROM tab0 AS cor0
----
7300
854
97

query I rowsort
SELECT DISTINCT + 86 + col1 AS col2 FROM tab0 AS cor0
----
172
177
183

query I rowsort
SELECT ALL - + ( - cor0.col1 ) * cor0.col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL col1 * + cor0.col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + 89 * col0 AS col0 FROM tab2 AS cor0
----
623
6942
7031

query I rowsort
SELECT ALL + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 6 ) * - col1 col0 FROM tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT ALL cor0.col1 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT ( - 69 ) * col2 FROM tab0 cor0
----
-2277
-5658
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT ALL - ( + col1 ) + - cor0.col0 DIV CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - ( + col1 ) + - cor0.col0 / CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col1 ) * - 55 col2 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT - + col0 * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - cor0.col2 + - col2 AS col0 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT + + 13 FROM tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ( - tab1.col1 ) + col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - + 89 + + col0 FROM tab0 cor0
----
-54
-65
0

query I rowsort
SELECT DISTINCT + col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 28 FROM tab0, tab1, tab2 cor0, tab2
----
-28

query I rowsort
SELECT ALL - cor0.col1 * + 30 AS col2 FROM tab2 AS cor0
----
-1770
-510
-930

query I rowsort
SELECT ALL - col0 * ( - col0 ) + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - ( col2 * + col1 ) + tab2.col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + col0 - - col1 * ( col1 ) FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - col2 * ( ( - col0 ) ) + col0 * col2 FROM tab0 AS cor0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4131
SELECT col1 * col0 DIV col1 col1 FROM tab0 cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4131
SELECT col1 * col0 / col1 col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 - - col1 AS col1 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT tab2.col1 + ( - col0 ) + col2 DIV col0 FROM tab2
----
-19
-62
27

skipif mysql # not compatible
query I rowsort label-4133
SELECT tab2.col1 + ( - col0 ) + col2 / col0 FROM tab2
----
-19
-62
27

query I rowsort
SELECT + col2 * + col0 * col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT + col0 + col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT col2 + + 92 * - col2 + + col0 FROM tab0
----
-2979
-56
-7373

query I rowsort
SELECT - 6 + 1 + + col1 FROM tab2 AS cor0
----
12
26
54

query I rowsort
SELECT + + col1 + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL - col0 + col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT - tab1.col1 * + CAST ( col1 AS REAL ) AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + col0 + col0 + - col0 * + col0 FROM tab1
----
-3
-3968
-6240

query I rowsort
SELECT DISTINCT + col1 + ( - tab1.col2 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col1 + - col0 * - 35 FROM tab1
----
131
2250
2813

query I rowsort
SELECT ALL - col1 + 25 + col2 AS col1 FROM tab0
----
-28
-71
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-4145
SELECT col1 DIV col1 + 67 AS col0 FROM tab2
----
68
68
68

skipif mysql # not compatible
query I rowsort label-4145
SELECT col1 / col1 + 67 AS col0 FROM tab2
----
68
68
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-4146
SELECT - col0 DIV 90 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4146
SELECT - col0 / 90 FROM tab0
----
0
0
0

query I rowsort
SELECT tab1.col2 * - 68 AS col2 FROM tab1
----
-3672
-3876
-6528

onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT + ( col0 ) * col1 DIV - col0 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4148
SELECT + ( col0 ) * col1 / - col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + col2 + - ( - tab0.col2 ) AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT col2 * cor0.col2 * + col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL ( + 84 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT 5 + - 25 FROM tab0, tab0 AS cor0
----
-20

query I rowsort
SELECT - col0 * col0 + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL 72 * - col0 AS col2 FROM tab1
----
-216
-4608
-5760

query I rowsort
SELECT - 34 FROM tab2
----
-34
-34
-34

query I rowsort
SELECT DISTINCT 87 * col2 * + col2 FROM tab1 AS cor0
----
253692
282663
801792

query I rowsort
SELECT ALL + ( col1 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col2 * 54 FROM tab0 AS cor0
----
-1782
-4428
-54

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1 cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT ALL + col1 + ( - col0 ) * col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + - 90 AS col1 FROM tab2 AS cor0
----
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4164
SELECT CAST( col2 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-4164
SELECT CAST ( col2 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + ( col0 ) * - cor0.col1 + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT + - col2 + + col0 * + 26 * col1 AS col0 FROM tab1 AS cor0
----
16583
1974
26944

query I rowsort
SELECT ALL - + cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 13 * col1 - ( col0 ) * col1 col2 FROM tab1 AS cor0
----
-510
-871
260

query I rowsort
SELECT col1 * col2 * + 9 FROM tab2 cor0
----
13806
5814
7533

query I rowsort
SELECT DISTINCT + tab2.col1 + + col1 * - col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - 25 * col0 + col2 FROM tab0
----
-2143
-567
-874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - ( - col1 ) + + col2 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT - col1 * col1 + + 30 FROM tab0 AS cor0
----
-7366
-8251
-9379

query I rowsort
SELECT - - 43 - + col1 FROM tab0 AS cor0
----
-43
-48
-54

query I rowsort
SELECT - 40 * + col0 - 68 FROM tab1 AS cor0
----
-188
-2628
-3268

query I rowsort
SELECT - - 11 FROM tab2 AS cor0
----
11
11
11

query I rowsort
SELECT - ( col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col1 * tab1.col1 + - col1 - - col0 * tab1.col0 * col1 AS col1 FROM tab1
----
41050
83356
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * + col2 + ( col1 ) + + tab0.col2 * - 59 * + ( + col0 + + col0 ) col0 FROM tab0
----
-4029
-860745
-93238

onlyif mysql # use DIV operator for integer division
query I rowsort label-4181
SELECT col0 DIV col0 + - 54 FROM tab2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-4181
SELECT col0 / col0 + - 54 FROM tab2
----
-53
-53
-53

query I rowsort
SELECT ALL + ( col0 ) * - 88 AS col0 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT DISTINCT + 77 * + col0 AS col1 FROM tab0 AS cor0
----
1848
2695
6853

query I rowsort
SELECT - 95 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT - 53 * col0 AS col0 FROM tab1 AS cor0
----
-159
-3392
-4240

onlyif mysql # use DIV operator for integer division
query I rowsort label-4186
SELECT - - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4186
SELECT - - col0 / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col2 * + col0 * - col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

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 - col1 * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - + col0 * - col2 + - 84 FROM tab0 AS cor0
----
-49
708
7214

query I rowsort
SELECT DISTINCT + + cor0.col2 + + 11 FROM tab0 AS cor0
----
12
44
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT - col0 DIV - 24 AS col0 FROM tab1 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-4192
SELECT - col0 / - 24 AS col0 FROM tab1 AS cor0
----
0
2
3

query I rowsort
SELECT ALL col1 * 77 FROM tab0 AS cor0
----
6622
7007
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-4194
SELECT DISTINCT col2 + - 45 DIV 45 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT col2 + - 45 / 45 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - + col1 * - col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - ( + col0 ) col2 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT - + cor0.col1 DIV + 78 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4197
SELECT - + cor0.col1 / + 78 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4198
SELECT DISTINCT - col0 + CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - col0 + CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL - tab1.col2 * - col2 AS col0 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4200
SELECT ALL + 69 DIV - col1 col0 FROM tab1
----
-2
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4200
SELECT ALL + 69 / - col1 col0 FROM tab1
----
-2
-5
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT DISTINCT col1 - tab2.col1 DIV col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT col1 - tab2.col1 / col1 FROM tab2
----
16
30
58

query I rowsort
SELECT + col2 + + col2 + + col2 AS col2 FROM tab2
----
114
78
81

query I rowsort
SELECT ALL 21 FROM tab0
----
21
21
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col2 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4205
SELECT + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 3 AS col0 FROM tab0 cor0
----
-246
-3
-99

query I rowsort
SELECT + col1 + 60 FROM tab0 AS cor0
----
146
151
157

query I rowsort
SELECT 88 * col1 FROM tab2 cor0
----
1496
2728
5192

query I rowsort
SELECT - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + 71 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to ac364708ef97c5cf80f126fc088b952e

query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab0, tab2 AS cor0
----
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4212
SELECT - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4212
SELECT - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - + ( col1 ) * cor0.col1 + - col2 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL + 36 * col1 AS col2 FROM tab2 cor0
----
1116
2124
612

query I rowsort
SELECT - 17 AS col1 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab0
----
92

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2, tab1 AS cor1
----
3645 values hashing to 35707ade138fec4b370f5140a4cd2963

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4218
SELECT + CAST( - col0 AS SIGNED ) + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4218
SELECT + CAST ( - col0 AS INTEGER ) + col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + 4 FROM tab1
----
12
256
320

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT DISTINCT + ( + col1 ) * + col1 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4222
SELECT DISTINCT col0 DIV col2 + + tab0.col0 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT col0 / col2 + + tab0.col0 FROM tab0
----
24
70
90

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > tab1.col1
----

query I rowsort
SELECT DISTINCT tab2.col1 * - col0 - - col0 AS col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL col1 * col2 - col1 * + tab0.col0 AS col2 FROM tab0
----
-3298
-637
774

query I rowsort
SELECT DISTINCT + tab0.col1 + tab0.col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL - col0 + tab1.col1 AS col2 FROM tab1
----
-54
-67
23

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 ) IN ( col0 )
----

query I rowsort
SELECT ALL + col0 + + col2 * col1 * - tab2.col1 AS col0 FROM tab2
----
-10903
-25940
-90428

onlyif mysql # use DIV operator for integer division
query I rowsort label-4230
SELECT DISTINCT col0 DIV col0 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4230
SELECT DISTINCT col0 / col0 AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL col0 + col1 - col2 FROM tab0
----
131
77
98

query I rowsort
SELECT DISTINCT tab0.col2 + + col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT col2 * col2 * col0 AS col1 FROM tab1 WHERE NOT ( col2 ) BETWEEN + col1 AND + col2 / + col1
----
207936
737280
8748

query I rowsort
SELECT + col0 + col2 - + col1 FROM tab1
----
111
163
31

query I rowsort
SELECT DISTINCT col2 * + col2 + col0 AS col2 FROM tab0
----
1113
36
6813

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT DISTINCT + col1 * tab1.col1 AS col2 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT col2 DIV - col2 + - tab0.col0 DIV col2 + col2 FROM tab0
----
-35
32
80

skipif mysql # not compatible
query I rowsort label-4238
SELECT col2 / - col2 + - tab0.col0 / col2 + col2 FROM tab0
----
-35
32
80

query I rowsort
SELECT ALL tab0.col2 * col2 + col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT col1 * col0 * col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT col1 * + col1 * + col0 + col2 + col0 * - col2 AS col2 FROM tab1
----
1920
2809
5936

query I rowsort
SELECT + col1 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - tab1.col0 * col1 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + tab2.col0 AS col1 FROM tab2 WHERE NULL BETWEEN ( col1 * col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * + tab0.col2 + col1 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT col0 * + col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 WHERE ( + col2 ) BETWEEN ( NULL ) AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + col1 col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT tab2.col0 * tab2.col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL + col2 + col0 * + col0 FROM tab1
----
4153
63
6496

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT IN ( tab0.col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4253
SELECT + tab1.col0 DIV col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4253
SELECT + tab1.col0 / col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT tab2.col0 * - col0 * col0 AS col1 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT DISTINCT col1 + + col1 AS col0 FROM tab1
----
20
26
52

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col0 * - col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col1 * - col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 * - col2 * col0 AS col2 FROM tab2
----
1323
158184
237158

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 BETWEEN NULL AND + col2
----

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT col1 * + col1 * + col1 AS col0 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT - col2 + col1 * col2 AS col0 FROM tab2
----
1508
608
810

query I rowsort
SELECT ALL - tab1.col1 * + col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 * - col1 col2 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT col1 + col0 * + col0 - - col0 AS col2 FROM tab2
----
6221
6337
87

query I rowsort
SELECT ALL + col2 - + col2 * col0 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT - col0 + - tab0.col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT col1 * col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT col2 + col0 - col1 AS col1 FROM tab2
----
100
3
45

query I rowsort
SELECT + col0 * col0 * + col0 AS col2 FROM tab0 WHERE NOT NULL > ( + col2 )
----

query I rowsort
SELECT + col2 * col2 + col0 AS col2 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL tab1.col1 * col1 FROM tab1
----
100
169
676

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NULL IN ( - tab2.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4277
SELECT ALL col1 + col1 * + col2 - col1 DIV col2 AS col0 FROM tab0
----
2922
7552
97

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL col1 + col1 * + col2 - col1 / col2 AS col0 FROM tab0
----
2922
7552
97

query I rowsort
SELECT - col2 * col0 * col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT tab2.col1 * col1 + + col2 * + col1 + col2 FROM tab2
----
1825
5041
973

query I rowsort
SELECT tab2.col1 * - col1 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * col1 * col0 col1 FROM tab2 WHERE col0 + - col2 * col1 IN ( col1 * tab2.col1 + + col2 + + col1 )
----

query I rowsort
SELECT - col1 + tab1.col2 FROM tab1
----
28
47
83

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT ALL cor0.col2 + + col0 - + col1 * col2 FROM tab1 AS cor0
----
-1072
-1347
-449

onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT ALL cor0.col1 DIV - cor0.col0 + + col0 - cor0.col1 FROM tab2 cor0
----
-28
19
62

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL cor0.col1 / - cor0.col0 + + col0 - cor0.col1 FROM tab2 cor0
----
-28
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + cor0.col1 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL tab2.col2 - col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT ALL + col2 * ( 31 ) + col1 FROM tab0 AS cor0
----
1109
128
2633

query I rowsort
SELECT + + col1 + + 53 FROM tab1 AS cor0
----
63
66
79

query I rowsort
SELECT DISTINCT col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT ALL + col1 DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL + col1 / col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - ( 72 ) + - col0 col1 FROM tab0 AS cor0
----
-107
-2400
-5993

query I rowsort
SELECT ALL col2 + + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col0 + 59 FROM tab1
----
-21
-5
56

query I rowsort
SELECT 87 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * 42 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1ea0017e89cf5da318dabc57f0cbc4f9

query I rowsort
SELECT tab1.col2 * - 35 AS col2 FROM tab1
----
-1890
-1995
-3360

query I rowsort
SELECT + 36 FROM tab1
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * - col0 col0 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT + - cor0.col0 + col2 * - col2 FROM tab0 AS cor0
----
-1113
-36
-6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4303
SELECT + + CAST( + 3 AS SIGNED ) FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4303
SELECT + + CAST ( + 3 AS INTEGER ) FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT ( + col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL - ( - 49 ) + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1297
1453
619

query I rowsort
SELECT ALL + 18 + + 32 AS col1 FROM tab2 cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4309
SELECT ALL + - col0 DIV 48 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + - col0 / 48 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + col0 + col2 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT tab0.col1 + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * + 96 FROM tab0 AS cor0
----
-1
3082
7781

onlyif mysql # use DIV operator for integer division
query I rowsort label-4313
SELECT 94 DIV - tab0.col1 + ( col0 ) AS col1 FROM tab0
----
23
35
88

skipif mysql # not compatible
query I rowsort label-4313
SELECT 94 / - tab0.col1 + ( col0 ) AS col1 FROM tab0
----
23
35
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4314
SELECT - 39 * - col1 + + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4314
SELECT - 39 * - col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor0.col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT + - col1 DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4316
SELECT + - col1 / + col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT - - col0 * + col0 + cor0.col2 * + 64 AS col2 FROM tab2 AS cor0
----
1777
7748
8673

query I rowsort
SELECT - 60 FROM tab2 cor0
----
-60
-60
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-4320
SELECT 25 * - col0 DIV col0 FROM tab0 AS cor0
----
-25
-25
-25

skipif mysql # not compatible
query I rowsort label-4320
SELECT 25 * - col0 / col0 FROM tab0 AS cor0
----
-25
-25
-25

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 DISTINCT - col1 * 24 + - col1 FROM tab0 AS cor0
----
-2150
-2275
-2425

onlyif mysql # use DIV operator for integer division
query I rowsort label-4323
SELECT + col0 * col1 DIV col2 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-4323
SELECT + col0 * col1 / col2 FROM tab1 AS cor0
----
1
10
11

query I rowsort
SELECT cor0.col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col0 * - ( col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col0 * 65 FROM tab1 cor0
----
195
4160
5200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT - - col2 DIV col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4327
SELECT - - col2 / col0 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT DISTINCT col0 DIV - col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT col0 / - col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - - col0 + 93 * - col0 * col2 FROM tab0 AS cor0
----
-3220
-678625
-73632

query I rowsort
SELECT ALL col0 + - cor0.col2 FROM tab1 cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 - col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 * + col0 + + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT - ( - cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ( - tab2.col1 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT 90 AS col1 FROM tab1, tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT ( + 54 ) FROM tab1
----
54

query I rowsort
SELECT ALL - col1 + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - col1 * 35 - - col1 * col0 FROM tab1 AS cor0
----
-832
290
585

query I rowsort
SELECT + col0 + + cor0.col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT - tab1.col0 DIV col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4341
SELECT - tab1.col0 / col1 FROM tab1
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4342
SELECT DISTINCT col2 DIV + tab1.col0 AS col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT col2 / + tab1.col0 AS col0 FROM tab1
----
0
1
18

query I rowsort
SELECT tab0.col0 * col2 * ( col2 ) + + col1 FROM tab0
----
132
26222
598527

query I rowsort
SELECT + 18 * col2 + col2 * + tab1.col0 FROM tab1
----
1134
4674
9408

query I rowsort
SELECT ALL col2 * - col2 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - + 53 FROM tab0 AS cor0
----
-53
-53
-53

query I rowsort
SELECT + 2 FROM tab1
----
2
2
2

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab2
----
57

query I rowsort
SELECT + 53 FROM tab1, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT col0 + 87 * + col0 FROM tab1 AS cor0
----
264
5632
7040

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4353
SELECT ALL + - col0 DIV col1 AS col2 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + - col0 / col1 AS col2 FROM tab1 cor0
----
-6
-6
0

query I rowsort
SELECT - + col2 * - 3 FROM tab2 cor0
----
114
78
81

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col0 * + 3 AS col2 FROM tab0
----
105
267
72

query I rowsort
SELECT - + col2 AS col1 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col0 * tab2.col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + + col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - cor0.col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT cor0.col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + - col2 * col0 + cor0.col0 AS col1 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL col0 * col2 + - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - tab1.col2 AS col1 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4366
SELECT ALL + col1 DIV col0 col2 FROM tab0 AS cor0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + col1 / col0 col2 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT ALL - col1 - col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT - - col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + ( + col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + + 66 * + cor0.col1 + col0 * cor0.col1 FROM tab0 AS cor0
----
14105
7740
9797

query I rowsort
SELECT - + 38 AS col2 FROM tab0 AS cor0
----
-38
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + 88 AS col2 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT - + col2 * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT 82 + col0 FROM tab2
----
160
161
89

query I rowsort
SELECT + col2 * - col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT col0 * + col1 + cor0.col2 + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
1305
3361
883

query I rowsort
SELECT col2 * col2 + - col2 AS col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT - 2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT ALL col0 + + col1 DIV + cor0.col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL col0 + + col1 / + cor0.col0 FROM tab0 AS cor0
----
27
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4383
SELECT DISTINCT col2 DIV - col1 + col2 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-4383
SELECT DISTINCT col2 / - col1 + col2 FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT ALL col0 + - col0 * - col2 * - col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT + col1 * - col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4386
SELECT DISTINCT col2 DIV col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT col2 / col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort
SELECT 21 + + col2 + - CAST ( - col1 AS REAL ) * + col1 FROM tab2
----
1009
348
3528

query I rowsort
SELECT + + col1 - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4389
SELECT ALL + + ( col2 ) DIV col1 AS col2 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL + + ( col2 ) / col1 AS col2 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT + - col1 * cor0.col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - + ( - col2 ) * col2 * 4 + col1 + - 21 FROM tab2 AS cor0
----
2742
2926
5772

query I rowsort
SELECT ALL col0 * - cor0.col1 + 7 AS col1 FROM tab1 AS cor0
----
-1033
-633
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4393
SELECT + cor0.col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4393
SELECT + cor0.col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col2 * + col2 + + ( col1 ) FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT - - col0 * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4397
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * + ( 63 ) AS col2 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT ALL + + col1 + 87 FROM tab0 AS cor0
----
173
178
184

query I rowsort
SELECT ALL - col2 * - 23 AS col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT cor0.col1 * + 96 AS col2 FROM tab0 AS cor0
----
8256
8736
9312

query I rowsort
SELECT col2 - col2 * - ( - col1 ) FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT DISTINCT - col0 DIV + col0 - 8 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT - col0 / + col0 - 8 FROM tab0
----
-9

query I rowsort
SELECT ALL + 87 - col2 * col1 AS col2 FROM tab1
----
-1161
-1317
-483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 + - tab1.col0 col0 FROM tab1
----
-158
-174
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT - cor0.col1 DIV - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4406
SELECT - cor0.col1 / - col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 11 + + ( + col2 ) + col1 FROM tab0 AS cor0
----
109
130
184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4408
SELECT CAST( NULL AS SIGNED ) * 27 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT CAST ( NULL AS INTEGER ) * 27 + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4409
SELECT DISTINCT - 39 * col1 + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT - 39 * col1 + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col2 * col0 + col2 * ( + col1 * cor0.col0 ) AS col2 FROM tab2 AS cor0
----
121680
54036
6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) + col2 * - cor0.col0 col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col0 + - cor0.col0 * - cor0.col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col2 * + 79 FROM tab1 cor0
----
4266
4503
7584

query I rowsort
SELECT - - 34 * + 58 * col0 AS col0 FROM tab0 cor0
----
175508
47328
69020

query I rowsort
SELECT ALL - + 88 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT DISTINCT col1 DIV - col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT col1 / - col1 FROM tab2
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4419
SELECT + CAST( NULL AS SIGNED ) + - cor0.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4419
SELECT + CAST ( NULL AS INTEGER ) + - cor0.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4420
SELECT ALL + - CAST( NULL AS DECIMAL ) * col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + - CAST ( NULL AS REAL ) * col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - ( 46 ) + col0 * ( ( + col2 ) ) + col1 AS col0 FROM tab2 AS cor0
----
174
2041
2973

query I rowsort
SELECT + ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - 88 * - cor0.col0 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT ALL - + 81 + col2 + cor0.col1 * col0 FROM tab0 AS cor0
----
2016
3315
8100

query I rowsort
SELECT DISTINCT - - col1 + + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT - cor0.col0 DIV - 17 col1 FROM tab2 AS cor0
----
0
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4427
SELECT - cor0.col0 / - 17 col1 FROM tab2 AS cor0
----
0
4
4

query I rowsort
SELECT DISTINCT 29 * - col0 FROM tab1
----
-1856
-2320
-87

query I rowsort
SELECT DISTINCT + - 1 * col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL - 99 AS col1 FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4431
SELECT + + col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT + + col2 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col0 * 74 AS col1 FROM tab1
----
222
4736
5920

query I rowsort
SELECT + 93 + 57 * + col0 AS col0 FROM tab2
----
4539
4596
492

query I rowsort
SELECT ALL + 30 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT 4 AS col1 FROM tab2
----
4
4
4

query I rowsort
SELECT + + 80 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT + - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - - cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + 17 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ALL + 54 * col0 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT DISTINCT 18 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ( + 51 ) AS col2 FROM tab0
----
51
51
51

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 AS cor0, tab0 cor1
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query I rowsort
SELECT ALL + 15 * + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d9cc92c402a4159be19434b1b50d150a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col1 * cor0.col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4448
SELECT ALL + - col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL + - col2 / col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + col1 * - col1 + ( col0 ) AS col2 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT ALL + 62 * + col2 + ( - 97 ) DIV + col2 AS col2 FROM tab1 cor0
----
3347
3533
5951

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL + 62 * + col2 + ( - 97 ) / + col2 AS col2 FROM tab1 cor0
----
3347
3533
5951

query I rowsort
SELECT DISTINCT + 64 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
64

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 + CAST ( - 34 AS REAL ) + - col2 AS col0 FROM tab1
----
-117
-62
-81

query I rowsort
SELECT 20 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( - col1 ) * - col1 + - 74 + col0 AS col1 FROM tab1 cor0
----
-1010
-17647
-2191

query I rowsort
SELECT ALL - + col2 - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4457
SELECT + cor0.col0 + + CAST( col1 AS SIGNED ) * col0 * 9 FROM tab2 AS cor0
----
12166
1960
41496

skipif mysql # not compatible
query I rowsort label-4457
SELECT + cor0.col0 + + CAST ( col1 AS INTEGER ) * col0 * 9 FROM tab2 AS cor0
----
12166
1960
41496

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT ALL col1 + + col2 * tab2.col2 AS col1 FROM tab2
----
1461
735
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4460
SELECT ALL - - CAST( 34 AS SIGNED ) FROM tab0 cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL - - CAST ( 34 AS INTEGER ) FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT DISTINCT - 54 + 93 AS col2 FROM tab2 AS cor0
----
39

query I rowsort
SELECT + col1 * - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + ( tab1.col1 ) AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT col1 + - 45 AS col0 FROM tab0
----
41
46
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4466
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 99 AS col1 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT - 42 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
-3588
-3733
-4039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - ( cor0.col0 ) * col2 col2 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4470
SELECT ALL - col2 * col0 + + col1 * ( + 35 ) DIV cor0.col0 FROM tab0 AS cor0
----
-667
-7263
62

skipif mysql # not compatible
query I rowsort label-4470
SELECT ALL - col2 * col0 + + col1 * ( + 35 ) / cor0.col0 FROM tab0 AS cor0
----
-667
-7263
62

query I rowsort
SELECT DISTINCT - col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4472
SELECT - - col0 DIV CAST( + 32 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4472
SELECT - - col0 / CAST ( + 32 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
2
2

query I rowsort
SELECT + + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col1 + + ( - cor0.col0 ) * + col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT - col0 + ( - ( - col1 ) ) FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 3 col1 FROM tab1 AS cor0
----
192
240
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

query I rowsort
SELECT + 39 * - col0 AS col1 FROM tab1 AS cor0
----
-117
-2496
-3120

query I rowsort
SELECT ALL tab2.col0 + 57 FROM tab2, tab2 AS cor0
----
9 values hashing to 68fc57f79052f34eea43db6d4374dae0

query I rowsort
SELECT ALL + - 12 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54
57
96

query I rowsort
SELECT cor0.col2 * + ( col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 89 FROM tab1, tab2 AS cor0
----
89

query I rowsort
SELECT col0 + + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + - cor0.col1 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT + col1 * - 33 + + col0 + col1 FROM tab1
----
-256
-336
-829

query I rowsort
SELECT 41 * + col2 FROM tab1
----
2214
2337
3936

query I rowsort
SELECT cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - 92 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab2
----
84

query I rowsort
SELECT + col1 * 53 AS col1 FROM tab0 cor0
----
4558
4823
5141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT DISTINCT - 48 DIV - col2 FROM tab0
----
0
1
48

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - 48 / - col2 FROM tab0
----
0
1
48

query I rowsort
SELECT + cor0.col2 + 78 FROM tab0 AS cor0
----
111
160
79

query I rowsort
SELECT ALL + col2 * - 33 + - col1 FROM tab1 AS cor0
----
-1808
-1891
-3181

query I rowsort
SELECT DISTINCT col2 * - 15 * - col1 - - col2 * col1 AS col2 FROM tab2 AS cor0
----
10336
13392
24544

query I rowsort
SELECT col0 + col0 FROM tab2 cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-4499
SELECT col0 DIV ( + ( col2 ) ) + col0 FROM tab1 cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4499
SELECT col0 / ( + ( col2 ) ) + col0 FROM tab1 cor0
----
3
65
80

query I rowsort
SELECT DISTINCT col0 + - ( col1 * col2 ) FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + + col2 * col0 - col2 * + col1 AS col1 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL + + cor0.col1 + - cor0.col2 * - col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - cor0.col2 + + col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + col1 * - col2 + col1 * col0 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT + + 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL - col0 + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - col1 + - 88 FROM tab2 AS cor0
----
-105
-119
-147

onlyif mysql # use DIV operator for integer division
query I rowsort label-4508
SELECT ALL - cor0.col1 + + 68 DIV cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 09791a9382d8f4b6a8201e7967403cfd

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - cor0.col1 + + 68 / cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 09791a9382d8f4b6a8201e7967403cfd

query I rowsort
SELECT col1 + - 81 - tab1.col1 AS col2 FROM tab1
----
-81
-81
-81

query I rowsort
SELECT - col1 - - col2 FROM tab2
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4511
SELECT ( ( - tab2.col1 ) ) + col2 * tab2.col0 / col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT ( ( - tab2.col1 ) ) + col2 * tab2.col0 / col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT + - col0 DIV col2 + 0 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4512
SELECT + - col0 / col2 + 0 AS col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT cor0.col2 * + col2 + - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT - 70 * col1 + 7 * col0 FROM tab0 AS cor0
----
-5747
-5852
-6545

query I rowsort
SELECT - ( - col0 ) * col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT - + 12 * + col0 + 14 AS col1 FROM tab2 AS cor0
----
-70
-922
-934

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + + 46 * col2 FROM tab1 AS cor0
----
2722
3160
4585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col0 col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL col2 * + col0 + ( + 2 ) - - col0 AS col1 FROM tab2 AS cor0
----
198
2108
3083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col1 + col1 * + col1 FROM tab0 cor0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 * + cor0.col1 + - col2 col1 FROM tab2 AS cor0
----
-1143
-2150
-650

query I rowsort
SELECT - col1 + col1 * 2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL + 27 * + col1 + col2 FROM tab2 cor0
----
1619
497
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT col2 DIV + col2 + - ( col1 ) * col2 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-4525
SELECT col2 / + col2 + - ( col1 ) * col2 FROM tab0 AS cor0
----
-2837
-7461
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4526
SELECT DISTINCT + col0 DIV col0 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT + col0 / col0 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
190
2029
3003

onlyif mysql # use DIV operator for integer division
query I rowsort label-4527
SELECT ALL col1 DIV ( col0 + - col1 * col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL col1 / ( col0 + - col1 * col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col0 * 66 + - col1 AS col0 FROM tab1 AS cor0
----
172
4214
5267

query I rowsort
SELECT DISTINCT - + col1 - 60 FROM tab1 cor0
----
-70
-73
-86

query I rowsort
SELECT ALL 12 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ( cor0.col0 ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT - col2 * col2 * col1 + col0 DIV col0 AS col2 FROM tab1
----
-119807
-32489
-75815

skipif mysql # not compatible
query I rowsort label-4532
SELECT - col2 * col2 * col1 + col0 / col0 AS col2 FROM tab1
----
-119807
-32489
-75815

query I rowsort
SELECT ALL col1 * ( ( col0 ) ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT - col0 + 84 * tab2.col1 FROM tab2
----
1349
2597
4878

query I rowsort
SELECT ALL - 47 FROM tab1, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4536
SELECT + CAST( NULL AS SIGNED ) * ( col0 * col0 ) - + col2 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4536
SELECT + CAST ( NULL AS INTEGER ) * ( col0 * col0 ) - + col2 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 26 ) + col0 FROM tab2 AS cor0
----
104
105
33

query I rowsort
SELECT ALL - + 36 * col1 FROM tab2 AS cor0
----
-1116
-2124
-612

query I rowsort
SELECT DISTINCT - 50 * col0 FROM tab1 cor0
----
-150
-3200
-4000

query I rowsort
SELECT ALL + 50 + col2 AS col2 FROM tab1 AS cor0
----
104
107
146

query I rowsort
SELECT - + 99 + + col1 FROM tab2 cor0
----
-40
-68
-82

query I rowsort
SELECT DISTINCT - 49 * - col2 AS col1 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT DISTINCT + - ( - col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + 3 + - col0 + - tab1.col0 FROM tab1
----
-125
-157
-3

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4546
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + + col1 + + col0 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT ALL 54 + - col0 AS col0 FROM tab2 AS cor0
----
-24
-25
47

query I rowsort
SELECT - + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - ( + col0 ) - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + + 5 FROM tab0 AS cor0
----
5

query I rowsort
SELECT - col2 * + col0 + col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL col0 + + 88 FROM tab1 AS cor0
----
152
168
91

query I rowsort
SELECT ALL - col2 + - 71 FROM tab1 AS cor0
----
-125
-128
-167

query I rowsort
SELECT - - col1 + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT col2 + + 52 AS col2 FROM tab0 AS cor0
----
134
53
85

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col1 - + col2 AS col0 FROM tab2
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + cor0.col1 * col2 col2 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col1 + col2 * col2 col1 FROM tab0 AS cor0
----
1199
133
6904

query I rowsort
SELECT DISTINCT col0 + col0 * 40 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT ALL + + 47 * col2 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT DISTINCT - col1 + col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 48 AS col0 FROM tab1 AS cor0
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 27 * col0 col2 FROM tab0 AS cor0
----
2403
648
945

query I rowsort
SELECT 1 + col1 AS col0 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT DISTINCT 49 * + col0 FROM tab0 AS cor0
----
1176
1715
4361

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - ( col2 ) + - cor0.col2 * - 88 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-14310
-321081
-675936

query I rowsort
SELECT ALL + cor0.col2 + - 49 * - cor0.col2 AS col0 FROM tab1 cor0
----
2700
2850
4800

query I rowsort
SELECT ALL col2 * col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT + cor0.col2 + col2 * col0 * - col0 FROM tab2 cor0
----
-1296
-158158
-237120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4573
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - + cor0.col1 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT 69 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4577
SELECT col2 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-4577
SELECT col2 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - 50 FROM tab1
----
-50
-50
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4579
SELECT ALL - + col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL - + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 49 FROM tab0 AS cor0
----
131
50
82

query I rowsort
SELECT DISTINCT + col2 + ( - col0 + - col1 ) * + col2 AS col0 FROM tab2 AS cor0
----
-3536
-3610
-999

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT DISTINCT + col0 DIV col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT + col0 / col1 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * - 86 + ( - col1 ) FROM tab0 AS cor0
----
-11
2752
6961

query I rowsort
SELECT ALL cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4585
SELECT DISTINCT cor0.col0 * CAST( NULL AS SIGNED ) + col1 * col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT cor0.col0 * CAST ( NULL AS INTEGER ) + col1 * col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + ( - col2 ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col0 + - 63 FROM tab0 AS cor0
----
-28
-39
26

query I rowsort
SELECT DISTINCT + - col2 * col0 * + col0 + - col2 FROM tab1 AS cor0
----
-233529
-540
-614496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT + col0 DIV 7 FROM tab2 AS cor0
----
1
11
11

skipif mysql # not compatible
query I rowsort label-4589
SELECT + col0 / 7 FROM tab2 AS cor0
----
1
11
11

query I rowsort
SELECT col0 + 7 AS col2 FROM tab1 AS cor0
----
10
71
87

query I rowsort
SELECT ALL 84 + - tab2.col2 * 42 FROM tab2
----
-1008
-1050
-1512

query I rowsort
SELECT ALL - col0 * + 36 - col0 * - col1 FROM tab0 AS cor0
----
1200
2135
4895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 19 col1 FROM tab2 AS cor0
----
-1121
-323
-589

query I rowsort
SELECT DISTINCT + - cor0.col1 * + 49 FROM tab0 cor0
----
-4214
-4459
-4753

query I rowsort
SELECT + col2 + col2 AS col2 FROM tab0 cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + 0 * col1 col1 FROM tab0 AS cor0
----
24
35
89

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766

query I rowsort
SELECT - 57 * col2 AS col0 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT DISTINCT cor0.col0 + - col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT - cor0.col2 DIV - col2 + - col2 AS col2 FROM tab0 cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT - cor0.col2 / - col2 + - col2 AS col2 FROM tab0 cor0
----
-32
-81
0

query I rowsort
SELECT - 18 FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL + 53 * - col1 AS col0 FROM tab0 AS cor0
----
-4558
-4823
-5141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 + ( + col1 ) col2 FROM tab2 AS cor0
----
-1427
-617
-698

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab2
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT ALL + col2 + - 8 * col1 FROM tab2
----
-221
-446
-98

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2
----
3645 values hashing to 750b3c1b743e18f68d402d034647fcf2

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab2
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT DISTINCT + 9 + col2 * + col1 FROM tab1
----
1257
1413
579

query I rowsort
SELECT ALL + 78 AS col2 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT ALL - col1 * + col0 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT + - col2 * + cor0.col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT 27 * col0 AS col2 FROM tab2 cor0
----
189
2106
2133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4613
SELECT 85 + - col2 * - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1529
761
814

skipif mysql # not compatible
query I rowsort label-4613
SELECT 85 + - col2 * - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1529
761
814

query I rowsort
SELECT DISTINCT + 46 * - col1 AS col2 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab2 cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 * col0 col1 FROM tab0
----
-1424
-384
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4617
SELECT + CAST( 39 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-20
22
8

skipif mysql # not compatible
query I rowsort label-4617
SELECT + CAST ( 39 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-20
22
8

query I rowsort
SELECT - + 78 + cor0.col2 + + cor0.col1 FROM tab1 AS cor0
----
-11
2
31

query I rowsort
SELECT - 70 * + cor0.col2 + - col2 + - 17 FROM tab2 AS cor0
----
-1863
-1934
-2715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4620
SELECT DISTINCT + + CAST( + 17 AS SIGNED ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT + + CAST ( + 17 AS INTEGER ) FROM tab0 AS cor0
----
17

query I rowsort
SELECT col2 + + cor0.col0 * col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - 18 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ALL 32 FROM tab0
----
32
32
32

query I rowsort
SELECT - col0 * col2 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-4625
SELECT col1 + cor0.col0 DIV - col1 FROM tab1 cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-4625
SELECT col1 + cor0.col0 / - col1 FROM tab1 cor0
----
26
4
7

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 - 72 * + col0 AS col0 FROM tab1 AS cor0
----
-216
-4608
-5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4628
SELECT - + 82 * col2 + cor0.col1 + - col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-4402
-4665
-7859

skipif mysql # not compatible
query I rowsort label-4628
SELECT - + 82 * col2 + cor0.col1 + - col0 / col2 AS col0 FROM tab1 AS cor0
----
-4402
-4665
-7859

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 47 + + cor0.col2 FROM tab1 AS cor0
----
10
49
7

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + 19 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT DISTINCT - + cor0.col0 * col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4635
SELECT ALL - col0 DIV + ( + tab1.col2 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4635
SELECT ALL - col0 / + ( + tab1.col2 ) FROM tab1
----
-1
0
0

query I rowsort
SELECT - col1 + col0 + ( col1 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 - 38 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
140
2442
3053

query I rowsort
SELECT - col0 * col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 + 88 FROM tab1 AS cor0
----
152
168
91

query I rowsort
SELECT + ( - col0 ) + col1 * - col2 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - col0 + + cor0.col2 * col1 + 5 AS col2 FROM tab1 AS cor0
----
1173
1406
511

query I rowsort
SELECT - - 44 + - ( + cor0.col0 ) FROM tab1 AS cor0
----
-20
-36
41

query I rowsort
SELECT + 48 + ( - cor0.col1 ) * 12 AS col2 FROM tab0 AS cor0
----
-1044
-1116
-984

query I rowsort
SELECT + + ( + col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 38 * - col0 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT ALL tab1.col2 * + 23 AS col2 FROM tab1
----
1242
1311
2208

query I rowsort
SELECT + col1 * - 69 AS col0 FROM tab1
----
-1794
-690
-897

query I rowsort
SELECT ALL col1 + 52 * 71 AS col1 FROM tab1
----
3702
3705
3718

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col1 + col1 AS col2 FROM tab1
----
0

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col0 + + 58 FROM tab1 cor0
----
122
138
61

query I rowsort
SELECT ALL - ( col0 ) + col2 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + col1 * + col1 + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL + cor0.col0 + 33 * + col2 AS col0 FROM tab0 AS cor0
----
1113
2795
68

query I rowsort
SELECT DISTINCT tab2.col0 * + 12 FROM tab2, tab1 AS cor0
----
84
936
948

query I rowsort
SELECT ALL col2 + ( col2 ) FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4659
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 84 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab1
----
-52

query I rowsort
SELECT - 73 FROM tab2
----
-73
-73
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4663
SELECT - 6 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT - 6 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + + col1 + + cor0.col1 * - 97 * col1 + col2 * 53 FROM tab0 AS cor0
----
-715577
-798820
-912523

query I rowsort
SELECT DISTINCT + ( - col2 ) + col2 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT DISTINCT 24 * - col2 + - col1 + - col0 AS col0 FROM tab2
----
-1008
-686
-761

query I rowsort
SELECT - - 6 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT - 50 + 87 AS col2 FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT col1 * + 95 + col0 AS col1 FROM tab2
----
1694
2952
5683

query I rowsort
SELECT - ( - col1 ) * - col0 + ( col1 ) - - col2 AS col2 FROM tab0
----
-1945
-3297
-7926

query I rowsort
SELECT ALL - - col2 - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 * 41 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT DISTINCT - + cor0.col0 * - col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-4675
SELECT ALL col1 - cor0.col2 DIV 9 FROM tab2 AS cor0
----
13
28
57

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL col1 - cor0.col2 / 9 FROM tab2 AS cor0
----
13
28
57

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + ( + col0 ) FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - - col1 + 74 + col2 * - col0 * + col0 FROM tab0 cor0
----
-1054
-18848
-649357

query I rowsort
SELECT ALL - col2 - ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - 76 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab0
----
2

query I rowsort
SELECT ALL - tab2.col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col2 FROM tab0
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT - col2 DIV ( - tab0.col2 ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4683
SELECT - col2 / ( - tab0.col2 ) FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT ALL - col2 + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL - col2 + - col2 / col0 AS col0 FROM tab1 AS cor0
----
-57
-72
-97

query I rowsort
SELECT - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col1 + col0 + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1155
-1375
-496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT ALL col2 * col1 DIV - col0 FROM tab2 AS cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL col2 * col1 / - col0 FROM tab2 AS cor0
----
-119
-19
-8

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col1 + col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col0 + + col2 * col0 AS col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT DISTINCT col2 + col0 * + col2 + - tab2.col1 FROM tab2
----
185
1995
3023

query I rowsort
SELECT col1 - - col0 FROM tab0
----
110
132
180

query I rowsort
SELECT col0 * tab0.col2 + col2 FROM tab0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL - col2 - col0 AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT col0 * tab0.col1 * - col0 + tab0.col0 FROM tab0
----
-118790
-49512
-720722

query I rowsort
SELECT ALL col2 + - col1 AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT tab0.col2 + tab0.col2 AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT col2 * - col1 <> NULL
----

query I rowsort
SELECT ALL + col0 + col1 AS col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT - cor0.col2 DIV cor0.col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT - cor0.col2 / cor0.col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - tab1.col0 - + tab1.col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0 WHERE ( NULL ) <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4707
SELECT - col2 + col0 DIV + col1 AS col2 FROM tab2
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-4707
SELECT - col2 + col0 / + col1 AS col2 FROM tab2
----
-25
-27
-34

query I rowsort
SELECT DISTINCT - col1 * - col0 * - col2 + col1 FROM tab2
----
-119593
-51017
-5828

query I rowsort
SELECT DISTINCT - col1 + + col2 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL + col2 + + col2 FROM tab0
----
164
2
66

query I rowsort
SELECT + col0 + col1 * - col2 * tab2.col1 - tab2.col0 AS col1 FROM tab2
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4712
SELECT DISTINCT - - col2 DIV cor0.col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT - - col2 / cor0.col0 FROM tab1 AS cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT - col0 + - col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-4713
SELECT - col0 + - col2 / - cor0.col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT ALL + col1 + + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + + cor0.col2 + + col2 * col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab0
----
164
2
66

query I rowsort
SELECT col0 + + col1 + + col1 AS col2 FROM tab0
----
196
229
271

query I rowsort
SELECT col1 + + tab2.col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - tab0.col2 + col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT col0 * tab0.col0 DIV - col0 AS col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4721
SELECT col0 * tab0.col0 / - col0 AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT tab2.col1 + col1 AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT - col2 - - col0 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT tab0.col1 * col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - tab2.col1 + - col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col2 + - col1 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col2 * + col2 * - col0 + col2 FROM tab1
----
-207879
-737184
-8694

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * col0 AS col2 FROM tab0 cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT + cor0.col2 DIV + col1 + + col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4729
SELECT + cor0.col2 / + col1 + + col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT ALL - - col2 DIV - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - - col2 / - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT ALL - col0 + col2 * col0 AS col0 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT + - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + + col1 + - col1 AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + - col1 * col1 - col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
219
3769
7856

query I rowsort
SELECT ALL + - col0 * - col1 * + col2 + - col0 * col1 * col1 FROM tab0 AS cor0
----
-109392
-325920
-72891

query I rowsort
SELECT + col2 * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col1 * - tab2.col0 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL + tab2.col1 * col0 FROM tab2
----
1343
217
4602

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 cor0, tab0
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT ALL + tab0.col0 * + col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL - col0 * - col1 - - ( + col1 ) * col0 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT + - 25 - col0 AS col2 FROM tab0 AS cor0
----
-114
-49
-60

query I rowsort
SELECT + - col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col1 * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - col0 * + col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - 56 * col2 AS col2 FROM tab1
----
-3024
-3192
-5376

query I rowsort
SELECT DISTINCT - col0 - cor0.col1 FROM tab0 cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4750
SELECT - col2 DIV col0 + col1 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-4750
SELECT - col2 / col0 + col1 FROM tab2 AS cor0
----
17
28
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT - + col1 + - 63 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4751
SELECT - + col1 + - 63 / cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT cor0.col2 * ( col0 ) + - col1 * - 80 AS col1 FROM tab2 AS cor0
----
2669
4362
6748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - col2 col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - + col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * cor0.col2 col0 FROM tab0 cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-4757
SELECT - 4 * - col2 + col1 * - col1 DIV col1 AS col1 FROM tab2
----
135
45
77

skipif mysql # not compatible
query I rowsort label-4757
SELECT - 4 * - col2 + col1 * - col1 / col1 AS col1 FROM tab2
----
135
45
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4758
SELECT - col2 * + CAST( + ( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-4758
SELECT - col2 * + CAST ( + ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col1 * + 79 AS col2 FROM tab0 AS cor0
----
6794
7189
7663

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 / - col1 NOT IN ( col0 * + col1 + - col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT - col1 + - tab1.col0 * tab1.col0 AS col0 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT col1 - + tab1.col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT tab1.col0 + tab1.col2 * col1 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT col0 * col1 + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL tab2.col1 + - col0 AS col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col0 + col0 * col2 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT DISTINCT col2 + tab0.col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + col0 + + col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT + col1 + + tab2.col1 FROM tab2
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4770
SELECT - col1 - col2 * col2 DIV col2 AS col2 FROM tab1
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-4770
SELECT - col1 - col2 * col2 / col2 AS col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + col1 * - tab2.col2 + tab2.col2 * - col2 * + col0 FROM tab2
----
-114722
-54262
-5940

query III rowsort
SELECT * FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL col1 + - col2 * col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT - col0 * - cor0.col0 + col1 * col2 * - col0 FROM tab2 AS cor0
----
-113568
-44793
-5810

query I rowsort
SELECT DISTINCT - + ( + col2 ) * ( + col2 + - cor0.col1 ) FROM tab0 AS cor0
----
1749
738
96

query I rowsort
SELECT - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + cor0.col0 ) * - col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col0 * col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 * col2 AS col1 FROM tab1
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * - tab2.col1 col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + col2 * tab2.col2 * col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col0 + col2 FROM tab2 WHERE col0 * col2 + - col2 NOT IN ( col1 )
----
-41
-52
20

query I rowsort
SELECT - col0 + + col1 AS col2 FROM tab1 WHERE NOT NULL IN ( col1 )
----

query I rowsort
SELECT col1 * - col0 * - col2 AS col2 FROM tab2
----
119652
51034
5859

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4786
SELECT - col0 + col0 - - col1 DIV + col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4786
SELECT - col0 + col0 - - col1 / + col2 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL - col2 * - col1 FROM tab1
----
1248
1404
570

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col0 + - col0 * col1 )
----

query I rowsort
SELECT col1 * col1 + col0 * col1 * col2 AS col1 FROM tab2
----
123133
51323
6820

onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT DISTINCT - col0 + col1 DIV - col2 + + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4790
SELECT DISTINCT - col0 + col1 / - col2 + + col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT DISTINCT + col2 + - col1 + - col2 DIV - col0 AS col0 FROM tab0
----
-52
-9
-96

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT + col2 + - col1 + - col2 / - col0 AS col0 FROM tab0
----
-52
-9
-96

query I rowsort
SELECT - cor0.col2 + + col2 * + col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT - col2 * 98 + + cor0.col1 FROM tab0 AS cor0
----
-1
-3148
-7945

onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT + + col1 DIV - col0 + col1 * + col1 * + cor0.col0 FROM tab1 cor0
----
13520
2020
6400

skipif mysql # not compatible
query I rowsort label-4794
SELECT + + col1 / - col0 + col1 * + col1 * + cor0.col0 FROM tab1 cor0
----
13520
2020
6400

query I rowsort
SELECT ALL - - col1 + + 74 FROM tab0 AS cor0
----
160
165
171

query I rowsort
SELECT ALL - col2 + - 43 AS col0 FROM tab1 AS cor0
----
-100
-139
-97

query I rowsort
SELECT ALL col2 + + ( - 60 ) * + col2 - col2 AS col0 FROM tab1 AS cor0
----
-3240
-3420
-5760

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - + col1 * - 44 FROM tab2 cor0
----
1364
2596
748

query I rowsort
SELECT + cor0.col0 + + col1 + col2 AS col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT col1 * - col1 + - cor0.col0 FROM tab1 cor0
----
-164
-249
-679

query I rowsort
SELECT - cor0.col0 + + col1 AS col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT 49 * tab2.col0 FROM tab2
----
343
3822
3871

onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT + col0 DIV col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4804
SELECT + col0 / col1 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL 44 FROM tab2, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL 88 FROM tab0, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT col1 * col2 * - col0 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT + col0 DIV 52 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4808
SELECT + col0 / 52 AS col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT - col2 - + tab0.col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - col0 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - ( + col0 ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 79 * col0 AS col1 FROM tab0 AS cor0
----
1896
2765
7031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 + + col1 * col2 col0 FROM tab0 cor0
----
177
2918
7542

query I rowsort
SELECT ALL col0 - col1 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT + ( + col2 ) + + cor0.col0 AS col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL 17 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + + 97 - col0 col1 FROM tab0
----
-13
-35
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4818
SELECT + ( - col2 ) + - CAST( col2 AS SIGNED ) FROM tab0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-4818
SELECT + ( - col2 ) + - CAST ( col2 AS INTEGER ) FROM tab0
----
-164
-2
-66

query I rowsort
SELECT - - ( + col1 ) * - 87 AS col0 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT + col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col1 - col1 * ( col0 ) FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + cor0.col2 - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - - col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col2 * col0 - - col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT 14 + - col2 * + col1 FROM tab2 AS cor0
----
-1520
-632
-823

query I rowsort
SELECT DISTINCT - + col1 + col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - 32 * - col1 AS col0 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * col0 * - col0 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col2 - + col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - col0 - - col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 - + col1 * - col1 col2 FROM tab1
----
-540
-871
598

query I rowsort
SELECT DISTINCT - + col0 * col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + cor0.col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-4839
SELECT + col0 DIV - ( - col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4839
SELECT + col0 / - ( - col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab1, tab0 cor0
----
12

query I rowsort
SELECT ALL + 50 * - 70 AS col2 FROM tab1
----
-3500
-3500
-3500

query I rowsort
SELECT + + 73 AS col1 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + + 41 + - 97 AS col0 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT 54 AS col0 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4846
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + col2 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT ALL - col0 * 22 * col0 + col0 DIV col2 col2 FROM tab1 AS cor0
----
-140800
-198
-90111

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL - col0 * 22 * col0 + col0 / col2 col2 FROM tab1 AS cor0
----
-140800
-198
-90111

query I rowsort
SELECT DISTINCT - 28 AS col1 FROM tab2 AS cor0
----
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col0 col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT col1 * + col0 DIV col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4851
SELECT col1 * + col0 / col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 14 AS col2 FROM tab1, tab0 AS cor0
----
14

query I rowsort
SELECT DISTINCT - 70 * + col2 FROM tab1 AS cor0
----
-3780
-3990
-6720

query I rowsort
SELECT ALL + 70 * cor0.col2 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT + 26 AS col1 FROM tab1 AS cor0
----
26
26
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - + col1 + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 4 + - tab2.col0 * - col1 AS col2 FROM tab2
----
1339
213
4598

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4860
SELECT DISTINCT CAST( + col2 AS SIGNED ) * tab0.col1 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * tab0.col1 FROM tab0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4861
SELECT - CAST( NULL AS SIGNED ) - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4861
SELECT - CAST ( NULL AS INTEGER ) - col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 37 AS REAL ) AS col2 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT + 83 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT - - 13 AS col2 FROM tab1 AS cor0
----
13

query I rowsort
SELECT ALL + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col1 FROM tab0 cor0
----
88

query I rowsort
SELECT + 28 + 65 AS col2 FROM tab1
----
93
93
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4868
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + col2 * + 15 FROM tab0 AS cor0
----
1230
15
495

query I rowsort
SELECT ALL + ( col1 ) * col0 + - col1 + col2 AS col2 FROM tab2 cor0
----
1364
213
4569

query I rowsort
SELECT + + 84 * + cor0.col1 + col1 AS col0 FROM tab1 cor0
----
1105
2210
850

query I rowsort
SELECT 12 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT + 88 + - col2 AS col2 FROM tab2 AS cor0
----
50
61
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + 17 FROM tab2 AS cor0
----
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4878
SELECT ALL 73 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL 73 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT + col1 + - col2 AS col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + ( - col1 ) + col2 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL col1 * col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 + col0 AS col1 FROM tab2
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4883
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 + col2 FROM tab1
----
NULL

query I rowsort
SELECT + + col2 * 9 * + 50 + cor0.col1 FROM tab0 AS cor0
----
14936
36991
547

query I rowsort
SELECT ALL + col2 + - ( - col2 + col1 ) * 90 AS col0 FROM tab1 AS cor0
----
2574
4287
7566

query I rowsort
SELECT DISTINCT + col0 * col2 - - 67 FROM tab0 AS cor0
----
102
7365
859

query I rowsort
SELECT DISTINCT + col1 * 7 FROM tab0 AS cor0
----
602
637
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - 95 col1 FROM tab1 AS cor0
----
-15
-31
-92

query I rowsort
SELECT ALL - col2 + + 64 FROM tab0 AS cor0
----
-18
31
63

query I rowsort
SELECT ALL - col0 + col1 * + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT cor0.col2 + - col1 * + col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT col1 * 75 - + col1 FROM tab1 AS cor0
----
1924
740
962

query I rowsort
SELECT - - col0 * + ( + 30 ) * col0 + + col1 * col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
128580
208224
36774

query I rowsort
SELECT ALL - - cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + col0 * + 25 + + col1 FROM tab1 AS cor0
----
101
1610
2013

query I rowsort
SELECT - cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - col1 * 38 FROM tab1 AS cor0
----
-380
-494
-988

query I rowsort
SELECT DISTINCT + col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col0 + ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4900
SELECT ALL col1 DIV - 63 + - cor0.col2 AS col0 FROM tab0 cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL col1 / - 63 + - cor0.col2 AS col0 FROM tab0 cor0
----
-2
-34
-83

query I rowsort
SELECT - - col0 + ( 24 * cor0.col2 ) FROM tab1 AS cor0
----
1299
1432
2384

onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT DISTINCT col0 + + col1 DIV 3 FROM tab0 AS cor0
----
119
52
67

skipif mysql # not compatible
query I rowsort label-4902
SELECT DISTINCT col0 + + col1 / 3 FROM tab0 AS cor0
----
119
52
67

query I rowsort
SELECT 78 + col0 AS col1 FROM tab2
----
156
157
85

query I rowsort
SELECT DISTINCT - col0 - col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT col0 + + col1 AS col1 FROM tab2
----
137
38
96

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 cor2, tab1 cor3
----
3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab0.col1 * col1 col0 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT + col2 + col2 + col2 AS col2 FROM tab1
----
162
171
288

query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col0 + - 74 AS col1 FROM tab2 AS cor0
----
-67
4
5

query I rowsort
SELECT + col0 * col1 - + col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL + col0 * ( + col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col2 * - 37 + col2 FROM tab0 AS cor0
----
-1188
-2952
-36

query I rowsort
SELECT - - col0 - - cor0.col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4915
SELECT ALL + col2 DIV col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + col2 / col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT DISTINCT + col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4917
SELECT ALL col0 * CAST( NULL AS SIGNED ) + + 74 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL col0 * CAST ( NULL AS INTEGER ) + + 74 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col2 * 32 AS col2 FROM tab1
----
1728
1824
3072

query I rowsort
SELECT DISTINCT - col0 + 86 AS col0 FROM tab1
----
22
6
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT col1 DIV + col1 col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4920
SELECT col1 / + col1 col0 FROM tab2
----
1
1
1

query I rowsort
SELECT 17 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT - 32 - col1 * + col1 FROM tab1 AS cor0
----
-132
-201
-708

query I rowsort
SELECT - cor0.col0 + ( - col2 ) * + cor0.col2 FROM tab2 AS cor0
----
-1523
-736
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-4924
SELECT col1 DIV col0 AS col1 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4924
SELECT col1 / col0 AS col1 FROM tab2
----
0
0
4

query I rowsort
SELECT col1 * 74 * + col1 FROM tab0
----
547304
612794
696266

query I rowsort
SELECT - tab2.col2 * tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 309d8ba6d1ea89e6795c82dda466e1ce

query I rowsort
SELECT DISTINCT + ( 85 ) FROM tab2
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * cor0.col0 + - col2 col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + 58 + col0 AS col0 FROM tab0 AS cor0
----
147
82
93

query I rowsort
SELECT 61 * - col0 AS col2 FROM tab2 AS cor0
----
-427
-4758
-4819

query I rowsort
SELECT 0 * - col1 + - col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
85

query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab0
----
-20

query I rowsort
SELECT DISTINCT - 2 * col1 * + col0 FROM tab2 AS cor0
----
-2686
-434
-9204

query I rowsort
SELECT - + col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL 63 FROM tab2 AS cor0
----
63
63
63

query I rowsort
SELECT ALL col2 * + col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - + col1 * col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT 27 * col1 AS col2 FROM tab0 AS cor0
----
2322
2457
2619

query I rowsort
SELECT ALL + 20 * + col0 AS col1 FROM tab2 AS cor0
----
140
1560
1580

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87

query I rowsort
SELECT + - col0 + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL + + col2 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col0 * + col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + + col2 + col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - - col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT + col2 + - col1 DIV - col1 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-4952
SELECT + col2 + - col1 / - col1 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT ALL - + cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4954
SELECT + CAST( col0 AS SIGNED ) col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4954
SELECT + CAST ( col0 AS INTEGER ) col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * col2 col1 FROM tab1
----
3564
3762
6336

query I rowsort
SELECT 61 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT DISTINCT + tab2.col1 DIV 86 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT + tab2.col1 / 86 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4958
SELECT DISTINCT + tab0.col2 DIV - ( + col1 + ( + 85 ) * col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT + tab0.col2 / - ( + col1 + ( + 85 ) * col2 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT + 13 FROM tab0 AS cor0
----
13
13
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4960
SELECT - col1 * CAST( - col2 AS SIGNED ) * col1 + 51 AS col1 FROM tab2 AS cor0
----
11033
25998
90557

skipif mysql # not compatible
query I rowsort label-4960
SELECT - col1 * CAST ( - col2 AS INTEGER ) * col1 + 51 AS col1 FROM tab2 AS cor0
----
11033
25998
90557

onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT DISTINCT + col2 * col1 DIV col0 FROM tab0 cor0
----
118
2
83

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + col2 * col1 / col0 FROM tab0 cor0
----
118
2
83

query I rowsort
SELECT DISTINCT - cor0.col2 * + ( ( col2 ) + 92 * - col2 ) AS col2 FROM tab0 AS cor0
----
611884
91
99099

query I rowsort
SELECT + 55 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4964
SELECT ALL + CAST( NULL AS DECIMAL ) * 84 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL + CAST ( NULL AS REAL ) * 84 col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 54 * - 3 AS col1 FROM tab2 AS cor0
----
-162
-162
-162

query I rowsort
SELECT ALL - col2 * 85 AS col2 FROM tab2
----
-2210
-2295
-3230

query I rowsort
SELECT ALL + ( + col2 ) FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT + 2 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4968
SELECT + 2 / + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 61 AS col2 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT - cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ( cor0.col2 ) * + col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT - + 88 DIV - 64 + col2 * - 63 AS col2 FROM tab1 AS cor0
----
-3401
-3590
-6047

skipif mysql # not compatible
query I rowsort label-4973
SELECT - + 88 / - 64 + col2 * - 63 AS col2 FROM tab1 AS cor0
----
-3401
-3590
-6047

onlyif mysql # use DIV operator for integer division
query I rowsort label-4974
SELECT col2 DIV + col1 + col2 AS col2 FROM tab1
----
103
56
62

skipif mysql # not compatible
query I rowsort label-4974
SELECT col2 / + col1 + col2 AS col2 FROM tab1
----
103
56
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4975
SELECT - cor0.col2 + 22 DIV - 33 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif mysql # not compatible
query I rowsort label-4975
SELECT - cor0.col2 + 22 / - 33 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT DISTINCT + + col2 * + col2 * ( col1 ) + col0 DIV ( - col0 ) + - col0 * cor0.col0 * cor0.col0 FROM tab0 cor0
----
-42779
-93086
79829

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + + col2 * + col2 * ( col1 ) + col0 / ( - col0 ) + - col0 * cor0.col0 * cor0.col0 FROM tab0 cor0
----
-42779
-93086
79829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 * + cor0.col1 + 48 AS col1 FROM tab0 cor0
----
636104
753619
912721

query I rowsort
SELECT DISTINCT col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - - col0 + col1 * - col2 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT + col0 + - col1 DIV + col0 + + col1 FROM tab0
----
107
130
179

skipif mysql # not compatible
query I rowsort label-4983
SELECT + col0 + - col1 / + col0 + + col1 FROM tab0
----
107
130
179

query I rowsort
SELECT ALL col1 + tab2.col0 * + col1 + + col2 * + ( col1 * + tab2.col1 + ( + col1 ) ) FROM tab2
----
12988
27032
96701

query I rowsort
SELECT DISTINCT - tab0.col0 + - col0 + 47 AS col0 FROM tab0
----
-1
-131
-23

query I rowsort
SELECT col2 * - ( 97 ) AS col2 FROM tab1
----
-5238
-5529
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT + col0 - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT + col0 - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 6 * col2 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT DISTINCT + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - ( col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col2 * + col0 * + cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ( + col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 90 + col2 AS col0 FROM tab2 AS cor0
----
-52
-63
-64

query I rowsort
SELECT DISTINCT + col1 + 77 * + col1 FROM tab2 AS cor0
----
1326
2418
4602

query I rowsort
SELECT ALL - col0 * - col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col0 + col2 * col2 * - cor0.col1 + + col1 FROM tab0 AS cor0
----
-611704
-93544
35

query I rowsort
SELECT ALL - tab2.col1 + col0 * col2 AS col0 FROM tab2
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4998
SELECT col1 + col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4998
SELECT col1 + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col2 + col2 AS col0 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT + - col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - ( - col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - 19 * + col0 + - col0 * 10 AS col1 FROM tab1 AS cor0
----
-1856
-2320
-87

query I rowsort
SELECT + - ( - col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col1 - col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - - 81 + cor0.col0 AS col2 FROM tab0 cor0
----
105
116
170

query I rowsort
SELECT - col0 + - cor0.col0 FROM tab1 cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT ALL col2 DIV col0 + tab1.col0 * col2 * col1 + - 66 AS col0 FROM tab1
----
36414
4164
99775

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL col2 / col0 + tab1.col0 * col2 * col1 + - 66 AS col0 FROM tab1
----
36414
4164
99775

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70

query I rowsort
SELECT ALL col0 * 24 * col0 FROM tab1 AS cor0
----
153600
216
98304

query I rowsort
SELECT DISTINCT ( + 22 ) AS col0 FROM tab0, tab1 AS cor0
----
22

query I rowsort
SELECT - col1 * - 69 FROM tab1
----
1794
690
897

query I rowsort
SELECT DISTINCT - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col2 + ( col1 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT col2 + ( - col0 ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + 64 FROM tab2
----
64
64
64

query I rowsort
SELECT - 32 + - col2 * col0 AS col0 FROM tab0 cor0
----
-67
-7330
-824

query I rowsort
SELECT ALL - col0 + + 9 AS col0 FROM tab2 cor0
----
-69
-70
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5019
SELECT DISTINCT + 75 DIV col2 FROM tab0 AS cor0
----
0
2
75

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT + 75 / col2 FROM tab0 AS cor0
----
0
2
75

query I rowsort
SELECT - 25 FROM tab1, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5022
SELECT DISTINCT + cor1.col2 + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT + cor1.col2 + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + + col1 * - col1 + + col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT 99 * cor0.col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to aeeab3c5e6e6c4e3b52e02a269c4d392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5025
SELECT + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - ( col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5028
SELECT + CAST( + col1 AS SIGNED ) * col0 + cor0.col1 AS col0 FROM tab1 cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-5028
SELECT + CAST ( + col1 AS INTEGER ) * col0 + cor0.col1 AS col0 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT - - ( col0 ) * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 * 81 AS col1 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT ALL + 82 + col0 FROM tab0 AS cor0
----
106
117
171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5032
SELECT CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5032
SELECT CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - - 18 + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
27
4114
6418

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT DISTINCT + - ( col2 ) DIV + cor0.col0 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT + - ( col2 ) / + cor0.col0 FROM tab2 AS cor0
----
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - 41 * - cor0.col0 + cor0.col1 * col0 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
2256
4450
4795

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT cor0.col0 - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT ALL col1 DIV + col0 + col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL col1 / + col0 + col0 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT ALL + 78 * - col2 AS col2 FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT DISTINCT - col1 * col0 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - col1 * + col2 + ( + 90 ) AS col0 FROM tab1 AS cor0
----
-1158
-1314
-480

query I rowsort
SELECT + cor0.col1 + - col2 * - col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col2 - - cor0.col1 * col0 * col2 AS col0 FROM tab0 AS cor0
----
3396
664200
68145

onlyif mysql # use DIV operator for integer division
query I rowsort label-5046
SELECT ALL + col2 DIV col0 AS col2 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL + col2 / col0 AS col2 FROM tab2
----
0
0
3

query I rowsort
SELECT col1 * col1 + col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT + 72 * col0 AS col0 FROM tab2 AS cor0
----
504
5616
5688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 * + 44 AS col0 FROM tab0
----
-3784
-4004
-4268

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT + ( + col2 ) DIV col0 AS col1 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5051
SELECT + ( + col2 ) / col0 AS col1 FROM tab1 cor0
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5052
SELECT col2 / - col0 AS col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL - 84 * cor0.col1 + - ( - cor0.col1 ) * col2 AS col1 FROM tab1 AS cor0
----
-270
-780
156

query I rowsort
SELECT 51 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT DISTINCT - 87 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-87

query I rowsort
SELECT + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - cor0.col2 * - col0 + cor0.col0 - col1 * col0 FROM tab1 AS cor0
----
3072
6720
87

query I rowsort
SELECT ( + col0 + 59 ) AS col0 FROM tab2
----
137
138
66

query I rowsort
SELECT DISTINCT + col0 * col0 AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - col1 * col0 + - col2 - col1 FROM tab1 AS cor0
----
-1149
-158
-707

query I rowsort
SELECT - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL + 27 * col0 * col1 AS col1 FROM tab2
----
124254
36261
5859

query I rowsort
SELECT ALL 25 * col2 FROM tab2
----
650
675
950

query I rowsort
SELECT tab1.col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT DISTINCT col1 DIV col0 AS col2 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT col1 / col0 AS col2 FROM tab1
----
0
8

query I rowsort
SELECT - 13 AS col0 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT + ( 3 ) * + col2 + col0 AS col2 FROM tab1 cor0
----
165
235
368

query I rowsort
SELECT - 4 AS col1 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT 29 + + 82 AS col2 FROM tab2 AS cor0
----
111
111
111

query I rowsort
SELECT + ( col0 ) * - col2 * col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT col1 DIV 71 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5072
SELECT col1 / 71 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5073
SELECT - CAST( NULL AS SIGNED ) + 65 * cor0.col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT - CAST ( NULL AS INTEGER ) + 65 * cor0.col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 67 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT + - col2 + col2 * + col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + col1 + + ( col0 ) AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - ( 4 + - cor0.col1 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 000e54bcb4bb4fe2e97bd113abd24b00

query I rowsort
SELECT ALL col2 * col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + ( + 16 ) AS col0 FROM tab2
----
16
16
16

query I rowsort
SELECT DISTINCT + 92 AS col1 FROM tab0
----
92

query I rowsort
SELECT ALL + col2 + + 76 FROM tab1 AS cor0
----
130
133
172

query I rowsort
SELECT - col0 * - cor0.col0 + + cor0.col0 * ( cor0.col1 ) FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT - - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5084
SELECT - + col0 DIV ( + col0 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5084
SELECT - + col0 / ( + col0 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 64 * + col0 - + col2 * col0 AS col0 FROM tab2 AS cor0
----
2054
259
2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5086
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + col1 * col1 * col1 FROM tab0 AS cor0
----
636023
753489
912672

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + col1 * col1 * col1 FROM tab0 AS cor0
----
636023
753489
912672

query I rowsort
SELECT 4 FROM tab2, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT + + col2 * 39 * col1 FROM tab0 cor0
----
110682
291018
3783

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 3 + col1 FROM tab2 AS cor0
----
20
34
62

query I rowsort
SELECT 56 AS col1 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT col2 * + 36 FROM tab1 AS cor0
----
1944
2052
3456

query I rowsort
SELECT ALL + ( + col0 ) + col1 * - 8 AS col1 FROM tab1 cor0
----
-16
-205
-24

query I rowsort
SELECT ALL - - col2 * + col2 - col2 * col0 FROM tab1 AS cor0
----
-399
1536
2754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT col0 + + col0 DIV col1 AS col1 FROM tab2
----
7
79
83

skipif mysql # not compatible
query I rowsort label-5095
SELECT col0 + + col0 / col1 AS col1 FROM tab2
----
7
79
83

query I rowsort
SELECT 99 FROM tab1 cor0
----
99
99
99

query I rowsort
SELECT ALL + 97 AS col0 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-10
-13
-26

query I rowsort
SELECT - col1 * cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - ( - 43 ) - col0 AS col1 FROM tab0 AS cor0
----
-46
19
8

query I rowsort
SELECT ALL - 10 * 98 AS col0 FROM tab1 AS cor0
----
-980
-980
-980

query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + 13 * 43 FROM tab0 AS cor0
----
559
559
559

query I rowsort
SELECT + ( + cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + col2 + + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col1 * - cor0.col0 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT 79 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
17
31
59

query I rowsort
SELECT - col0 + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - + cor0.col0 + col1 * 97 * - 9 AS col2 FROM tab0 AS cor0
----
-75102
-79532
-84716

query I rowsort
SELECT - 37 * + col1 + col1 + - col2 FROM tab2 AS cor0
----
-1143
-2150
-650

query I rowsort
SELECT + col0 + + col2 + + 2 FROM tab0 AS cor0
----
173
38
59

query I rowsort
SELECT - col0 + + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL col2 * col1 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - col0 * col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col1 + col1 * 14 AS col0 FROM tab1 cor0
----
130
169
338

query I rowsort
SELECT cor2.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT + col0 * col2 FROM tab0 cor0
----
35
7298
792

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb

query I rowsort
SELECT ALL - cor0.col0 * ( + 31 ) FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT ALL + col0 + - col2 * col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT + cor0.col2 * - CAST( + 33 AS SIGNED ) FROM tab1 AS cor0
----
-1782
-1881
-3168

skipif mysql # not compatible
query I rowsort label-5125
SELECT + cor0.col2 * - CAST ( + 33 AS INTEGER ) FROM tab1 AS cor0
----
-1782
-1881
-3168

query I rowsort
SELECT ALL + - col1 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + - col0 + cor0.col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL - col1 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - + cor0.col1 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5131
SELECT ALL col0 * CAST( 83 AS SIGNED ) FROM tab1 AS cor0
----
249
5312
6640

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL col0 * CAST ( 83 AS INTEGER ) FROM tab1 AS cor0
----
249
5312
6640

query I rowsort
SELECT - cor0.col0 * 32 + + col2 AS col2 FROM tab1 AS cor0
----
-1991
-2464
-42

query I rowsort
SELECT DISTINCT - - col0 * col0 * - col0 FROM tab2 AS cor0
----
-343
-474552
-493039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5134
SELECT DISTINCT - - col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT - - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 92 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT col1 * + tab1.col2 + 49 * + 1 AS col1 FROM tab1
----
1297
1453
619

query I rowsort
SELECT - + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT cor0.col0 * - 97 * + col2 + - col2 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
-18633
-357169
-754256

query I rowsort
SELECT col2 * - ( 47 ) + col0 * col2 FROM tab0 AS cor0
----
-12
-759
3444

query I rowsort
SELECT ALL + col2 + + col2 + col2 AS col2 FROM tab2 cor0
----
114
78
81

query I rowsort
SELECT DISTINCT col0 + ( 21 ) * col2 FROM tab2 AS cor0
----
574
624
877

query I rowsort
SELECT ALL col2 * 21 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT - col1 + - ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - + 10 * col1 FROM tab2 AS cor0
----
-170
-310
-590

query I rowsort
SELECT + ( - 76 ) FROM tab1 cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT col0 * 4 + col1 * - 40 AS col2 FROM tab0 AS cor0
----
-3284
-3344
-3740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 76 * - col2 col2 FROM tab1 AS cor0
----
4104
4332
7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - cor0.col0 + - 2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-196
-229
-271

query I rowsort
SELECT ALL cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - 38 FROM tab2, tab1 cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT 68 * + tab1.col0 AS col0 FROM tab1
----
204
4352
5440

query I rowsort
SELECT DISTINCT - ( - 13 * + col2 ) FROM tab2
----
338
351
494

query I rowsort
SELECT - - 60 + - cor0.col2 * + 65 AS col1 FROM tab1 AS cor0
----
-3450
-3645
-6180

query I rowsort
SELECT ALL col0 - - ( + col1 ) AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * + col1 * col0 col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT - col1 + - col2 AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab1
----
121
176
57

query I rowsort
SELECT col0 - - col1 * - tab1.col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT - 97 * - col0 * + 11 FROM tab1
----
3201
68288
85360

query I rowsort
SELECT + col2 + col0 + ( + 8 ) AS col1 FROM tab1
----
129
184
65

query I rowsort
SELECT ( - tab2.col2 ) * + ( col0 ) * + col2 AS col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT + 54 AS col2 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT ALL + cor0.col0 + - cor0.col2 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - col2 - col2 * + 76 * - col0 AS col1 FROM tab2 AS cor0
----
14337
154102
228114

query I rowsort
SELECT - - cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - - ( - col2 ) FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - 67 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 93deaa122e114ffa8d6beb273abef2f9

query I rowsort
SELECT + col1 - col0 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT ALL - 14 DIV col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - 14 / col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT + cor0.col0 * + 71 AS col2 FROM tab0 AS cor0
----
1704
2485
6319

query I rowsort
SELECT - 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
81 values hashing to afa1a417c354fab37e0e421ec67035c7

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT DISTINCT col2 + 88 FROM tab0
----
121
170
89

query I rowsort
SELECT DISTINCT - col1 + - 10 AS col1 FROM tab0
----
-101
-107
-96

query I rowsort
SELECT ALL ( 89 ) + + col0 AS col2 FROM tab1
----
153
169
92

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 70 + col0 ) col1 FROM tab2
----
-63
8
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT - tab2.col2 * col1 + col1 DIV ( col2 + - col0 ) FROM tab2
----
-1535
-646
-836

skipif mysql # not compatible
query I rowsort label-5181
SELECT - tab2.col2 * col1 + col1 / ( col2 + - col0 ) FROM tab2
----
-1535
-646
-836

query I rowsort
SELECT ( + col0 ) * - tab1.col2 + col2 + + col2 FROM tab1
----
-3534
-54
-7488

query I rowsort
SELECT DISTINCT - col0 * + 88 + + col2 FROM tab2
----
-589
-6838
-6914

query I rowsort
SELECT ALL + col0 * - col1 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab1 AS cor0
----
-58

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5188
SELECT - - ( - col0 ) * col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT - - ( - col0 ) * col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 * + col1 * + col0 FROM tab0 cor0
----
177504
329315
737009

query I rowsort
SELECT + tab2.col0 * - cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to a3b44b1349b97a64e1970dbe00e8d983

query I rowsort
SELECT DISTINCT - 85 * + col0 - col0 AS col1 FROM tab1 AS cor0
----
-258
-5504
-6880

query I rowsort
SELECT - 66 * + cor0.col0 - col1 FROM tab2 AS cor0
----
-493
-5207
-5231

query I rowsort
SELECT - + col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 13 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT DISTINCT - tab2.col2 + - col2 AS col2 FROM tab2
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + tab0.col0 * - 69 col1 FROM tab0
----
-1570
-2318
-6050

query I rowsort
SELECT ALL 99 + - col1 FROM tab0
----
13
2
8

query I rowsort
SELECT - tab0.col0 * col0 + tab0.col0 AS col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT - col0 * col0 * 69 AS col1 FROM tab0
----
-39744
-546549
-84525

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5200
SELECT - 17 + - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5200
SELECT - 17 + - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + cor0.col2 + col2 FROM tab0 cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab1 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT + col0 + - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + - col1 * col1 + 92 * col0 FROM tab0 AS cor0
----
-5188
-6189
-93

query I rowsort
SELECT - col0 * - 63 AS col2 FROM tab1 AS cor0
----
189
4032
5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5207
SELECT ALL - col0 DIV - col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL - col0 / - col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 * - col1 + - ( col1 ) - CAST ( - col2 AS REAL ) * col2 FROM tab0 AS cor0
----
-1835
-193
-829

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + 12 col2 FROM tab1 AS cor0
----
-42
-45
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT ALL + - col2 DIV + col2 + col1 - - col2 FROM tab1 AS cor0
----
108
66
79

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL + - col2 / + col2 + col1 - - col2 FROM tab1 AS cor0
----
108
66
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5211
SELECT DISTINCT col0 * CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT col0 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col2 + col0 * + 63 AS col2 FROM tab1 AS cor0
----
243
4089
5136

query I rowsort
SELECT DISTINCT + + col0 + + 68 AS col0 FROM tab0 AS cor0
----
103
157
92

query I rowsort
SELECT + col0 + col0 * + ( - tab0.col2 ) FROM tab0
----
-7209
-768
0

query I rowsort
SELECT col2 * - col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + - col0 + - 92 * ( - col2 ) AS col0 FROM tab2 cor0
----
2314
2477
3417

query I rowsort
SELECT DISTINCT + col2 + 99 AS col1 FROM tab2 AS cor0
----
125
126
137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + col2 * + 25 FROM tab1
----
1350
1425
2400

query I rowsort
SELECT - col0 * ( - col0 * + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
343
474552
493039

query I rowsort
SELECT + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + - col2 * - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ( cor0.col0 ) * + col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + - 17 * col0 + - col2 AS col1 FROM tab2 AS cor0
----
-1352
-1381
-146

onlyif mysql # use DIV operator for integer division
query I rowsort label-5226
SELECT DISTINCT tab0.col2 DIV col0 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT tab0.col2 / col0 AS col0 FROM tab0
----
0
1

query I rowsort
SELECT + ( + 76 ) + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1324
1480
646

query I rowsort
SELECT ALL - col0 * - col2 AS col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT 74 * col0 AS col1 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT ALL - + col2 * + col1 + ( - col0 + - col0 * + col1 ) AS col2 FROM tab0 AS cor0
----
-15650
-3527
-4926

onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT + 76 + - col1 DIV col1 + 8 FROM tab0 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-5232
SELECT + 76 + - col1 / col1 + 8 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - col1 + + col0 * - col0 FROM tab2 cor0
----
-6143
-6258
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5234
SELECT col0 + - col0 + + CAST( - col1 AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-5234
SELECT col0 + - col0 + + CAST ( - col1 AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + - 72 * - col1 FROM tab1 AS cor0
----
1872
720
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT DISTINCT - + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT - + col1 / col0 AS col2 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL + col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - 47 + - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-145
-166
-220

query I rowsort
SELECT + 60 AS col2 FROM tab1
----
60
60
60

query I rowsort
SELECT + 62 + - 78 + tab1.col0 FROM tab1
----
-13
48
64

query I rowsort
SELECT + col0 - - col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + + 14 + col2 FROM tab2 AS cor0
----
40
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5243
SELECT + - col0 * + col0 - CAST( 40 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
-129
-6656
-9600

skipif mysql # not compatible
query I rowsort label-5243
SELECT + - col0 * + col0 - CAST ( 40 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
-129
-6656
-9600

query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 67 * - col1 AS col2 FROM tab2
----
-1139
-2077
-3953

query I rowsort
SELECT - tab2.col0 + - col1 * - col2 + + tab2.col0 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT 88 FROM tab2
----
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5248
SELECT + cor0.col2 * + CAST( NULL AS SIGNED ) + ( + col1 ) * - 55 + - col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT + cor0.col2 * + CAST ( NULL AS INTEGER ) + ( + col1 ) * - 55 + - col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * + 90 col1 FROM tab2 cor0
----
-2314
-2403
-3382

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
17
31
59

query I rowsort
SELECT - 26 AS col0 FROM tab2
----
-26
-26
-26

query I rowsort
SELECT - 90 * col0 AS col1 FROM tab0
----
-2160
-3150
-8010

query I rowsort
SELECT 99 FROM tab0
----
99
99
99

query I rowsort
SELECT ALL + 45 AS col0 FROM tab1
----
45
45
45

query I rowsort
SELECT DISTINCT col0 * - tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - col1 * + col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 2 + - col1 * col0 FROM tab0 AS cor0
----
-2066
-3397
-8101

query I rowsort
SELECT - 74 FROM tab1 cor0
----
-74
-74
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL + - 23 * cor0.col1 + col1 DIV + 32 FROM tab0 AS cor0
----
-1976
-2091
-2228

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL + - 23 * cor0.col1 + col1 / + 32 FROM tab0 AS cor0
----
-1976
-2091
-2228

query I rowsort
SELECT + - 55 + cor0.col2 FROM tab0 AS cor0
----
-22
-54
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + tab0.col1 * col2 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col2 + col0 * col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT - col2 + tab2.col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT col2 + col0 - - col2 AS col1 FROM tab2
----
130
155
61

query I rowsort
SELECT DISTINCT + ( col2 + tab2.col0 ) AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 20 * + 45 * cor0.col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 9b7d29414a122f83262db94354226259

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
58

query I rowsort
SELECT + + 80 * col0 FROM tab1 cor0
----
240
5120
6400

query I rowsort
SELECT - ( + cor0.col1 ) + cor0.col2 FROM tab1 cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 FROM tab0 cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5273
SELECT DISTINCT + ( + col2 ) * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT + ( + col2 ) * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - cor0.col1 + col1 * - ( + col1 ) FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT + - cor0.col2 * col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT 84 * - 88 AS col1 FROM tab0, tab1 AS cor0
----
-7392

query I rowsort
SELECT - col0 + 29 FROM tab0 AS cor0
----
-6
-60
5

query I rowsort
SELECT + - cor0.col0 * + 10 + col1 FROM tab2 cor0
----
-39
-721
-773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( col2 ) col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + ( ( - col1 ) ) + + 60 AS col1 FROM tab0 cor0
----
-26
-31
-37

query I rowsort
SELECT - ( col2 ) * + cor0.col0 + + 24 * - col1 * + cor0.col2 FROM tab0 cor0
----
-186386
-2363
-68904

query I rowsort
SELECT ALL - 99 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 501094e80bab5e6e81bd79b84ea81e69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 47 col2 FROM tab0 cor0
----
-1128
-1645
-4183

query I rowsort
SELECT DISTINCT + 9 * col0 FROM tab1 cor0
----
27
576
720

query I rowsort
SELECT - col1 * 39 FROM tab2 AS cor0
----
-1209
-2301
-663

query I rowsort
SELECT - col0 * col0 - + col2 * + 11 AS col2 FROM tab2 AS cor0
----
-346
-6370
-6659

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5289
SELECT - CAST( NULL AS SIGNED ) * 73 * + cor0.col0 + + ( - col2 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT - CAST ( NULL AS INTEGER ) * 73 * + cor0.col0 + + ( - col2 ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5290
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 * col2 col1 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT DISTINCT + - 45 AS col2 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL - 74 * col2 AS col1 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT + 77 FROM tab2
----
77
77
77

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT + ( 65 ) + col2 * + ( - col1 ) * col1 FROM tab2
----
-10917
-25882
-90441

query I rowsort
SELECT - + col0 + 2 FROM tab0 cor0
----
-22
-33
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5298
SELECT ALL - CAST( - 59 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1003
1829
3481

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL - CAST ( - 59 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT DISTINCT + + ( + 66 ) FROM tab0 AS cor0
----
66

query I rowsort
SELECT 88 * - col0 AS col0 FROM tab2 AS cor0
----
-616
-6864
-6952

query I rowsort
SELECT ALL + - col1 * - 39 * col1 + cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
286380
314860
363556

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5302
SELECT ALL + CAST( + ( - cor0.col1 ) AS SIGNED ) + ( ( cor0.col0 / - CAST( NULL AS DECIMAL ) / col0 ) ) * + col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL + CAST ( + ( - cor0.col1 ) AS INTEGER ) + ( ( cor0.col0 / - CAST ( NULL AS REAL ) / col0 ) ) * + col0 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT ALL + + 95 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5303
SELECT ALL + + 95 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5304
SELECT - CAST( NULL AS DECIMAL ) / ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT - CAST ( NULL AS REAL ) / ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 24 + col0 FROM tab2 AS cor0
----
102
103
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5306
SELECT ALL + ( - cor0.col1 ) + + col0 DIV col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + ( - cor0.col1 ) + + col0 / col0 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT - col0 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col1 + + 91 FROM tab0 cor0
----
177
182
188

query I rowsort
SELECT ALL + + col0 + 55 * col0 FROM tab0 AS cor0
----
1344
1960
4984

query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - ( - 83 ) + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1165
-1321
-487

query I rowsort
SELECT ALL ( - cor0.col0 ) * + col0 + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT ( col2 ) * - col0 * 30 FROM tab2 cor0
----
-5670
-60840
-90060

query I rowsort
SELECT ALL + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 5 * col2 AS col2 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT ALL 40 * col1 + + ( cor0.col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
-3248
-7160
878

query I rowsort
SELECT ( - col0 ) * - col0 + col0 FROM tab1 cor0
----
12
4160
6480

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + 9 * + col1 + CAST ( + 68 + cor0.col0 AS REAL ) AS col0 FROM tab0 cor0
----
866
976

query I rowsort
SELECT DISTINCT - 75 * col2 AS col1 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT - + 24 * col1 FROM tab0 AS cor0
----
-2064
-2184
-2328

query I rowsort
SELECT ALL 24 * col0 + col0 * - col1 FROM tab1
----
-6
880
896

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0, tab2 AS cor1
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5323
SELECT DISTINCT col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + col1 * col0 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col2 * 73 + 83 + + col0 * 23 FROM tab1 AS cor0
----
4094
5716
8931

query I rowsort
SELECT DISTINCT 28 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT - col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5328
SELECT - col0 / col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + 66 AS col1 FROM tab2 AS cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 + - col2 col1 FROM tab0 AS cor0
----
-15
34
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT ALL col0 DIV + 27 AS col1 FROM tab1
----
0
2
2

skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL col0 / + 27 AS col1 FROM tab1
----
0
2
2

query I rowsort
SELECT - tab2.col1 + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - cor0.col2 * 80 AS col0 FROM tab2 AS cor0
----
-2080
-2160
-3040

query I rowsort
SELECT - 16 * + 79 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d47a09616e12d524617712cc772b1f92

query I rowsort
SELECT + + col2 * - ( - col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - col2 * ( col1 ) FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 * + 11 AS col0 FROM tab2 AS cor0
----
-16874
-7106
-9207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5339
SELECT ALL + col0 * + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL + col0 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - + cor0.col2 * - col0 + col1 * col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab2
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + 22 + - cor0.col2 col0 FROM tab1 AS cor0
----
-1322
-1436
-605

onlyif mysql # use DIV operator for integer division
query I rowsort label-5343
SELECT + col1 DIV + col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5343
SELECT + col1 / + col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - - cor0.col0 * ( + 45 ) * + col2 FROM tab0 AS cor0
----
1575
328410
35640

onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT - col1 DIV ( col1 * col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT - col1 / ( col1 * col0 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + cor1.col0 * - cor1.col2 * cor1.col1 - + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
-36544
-4215
-99920

query I rowsort
SELECT ALL tab2.col2 * + ( col0 ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - ( 82 ) FROM tab2, tab0 AS cor0
----
-82

query I rowsort
SELECT - + 30 + col0 + - 50 FROM tab2 AS cor0
----
-1
-2
-73

query I rowsort
SELECT - col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + 12 + cor0.col0 + + col0 FROM tab0 cor0
----
190
60
82

query I rowsort
SELECT ALL 88 * - col1 + tab1.col1 FROM tab1
----
-1131
-2262
-870

query I rowsort
SELECT ALL - col0 + col1 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT ALL col0 DIV col1 + + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL col0 / col1 + + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + col0 * - tab0.col1 * col1 + 40 * - col0 - tab0.col2 * - col2 FROM tab0
----
-177375
-330714
-733845

query I rowsort
SELECT ALL + col1 * - col2 AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 + col2 * - col0 AS col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT col0 + - tab1.col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL 56 * - col2 AS col1 FROM tab0 AS cor0
----
-1848
-4592
-56

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + tab0.col1 * + ( col1 + + col1 ) FROM tab0
----
14792
16562
18818

onlyif mysql # use DIV operator for integer division
query I rowsort label-5366
SELECT DISTINCT col2 DIV tab1.col0 AS col1 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT col2 / tab1.col0 AS col1 FROM tab1
----
0
1
18

query I rowsort
SELECT + tab1.col1 + - 98 FROM tab1
----
-72
-85
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5368
SELECT col1 * - CAST( col2 AS SIGNED ) col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5368
SELECT col1 * - CAST ( col2 AS INTEGER ) col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5369
SELECT col1 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-5369
SELECT col1 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT - col1 * - col0 + col0 DIV - col0 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-5370
SELECT - col1 * - col0 + col0 / - col0 FROM tab1 AS cor0
----
1039
639
77

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
7
78
79

query I rowsort
SELECT ALL ( + 73 ) FROM tab1
----
73
73
73

query I rowsort
SELECT - 24 + + 31 FROM tab0
----
7
7
7

query I rowsort
SELECT DISTINCT - ( - col0 ) + - col1 FROM tab0
----
-2
-62

query I rowsort
SELECT DISTINCT 72 + col0 AS col2 FROM tab2
----
150
151
79

query I rowsort
SELECT ALL + 58 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT + + 34 + col2 * 86 * 68 AS col0 FROM tab0 cor0
----
193018
479570
5882

query I rowsort
SELECT ALL + 26 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor1.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-2
-51
-56
-62
-67
-73
-8
3

query I rowsort
SELECT ALL + 25 * - col0 + + col2 FROM tab1 AS cor0
----
-1543
-1904
-21

query I rowsort
SELECT cor0.col1 + - col1 * ( - col2 ) AS col2 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT + cor0.col0 * + col0 * + col1 - col0 AS col2 FROM tab2 AS cor0
----
106018
1512
358878

query I rowsort
SELECT + col2 - + col2 * col2 * cor0.col0 AS col1 FROM tab2 cor0
----
-114038
-5076
-52702

query I rowsort
SELECT - + 65 AS col2 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - 5 + col1 + - col1 AS col0 FROM tab2
----
-5

query I rowsort
SELECT + - 95 * col0 + col2 AS col1 FROM tab1 AS cor0
----
-231
-6023
-7504

query I rowsort
SELECT - + col1 AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT col1 - col1 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + - col1 + + col1 + cor0.col1 * - 22 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT - 69 * - 84 AS col0 FROM tab1 AS cor0
----
5796
5796
5796

onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT ALL ( col2 ) DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL ( col2 ) / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 14 FROM tab0, tab0 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22

query I rowsort
SELECT col2 + + 13 AS col1 FROM tab0 AS cor0
----
14
46
95

query I rowsort
SELECT DISTINCT 46 * ( - cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT ALL col2 + - col1 * + col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT DISTINCT col2 + 87 DIV col2 FROM tab1 cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT col2 + 87 / col2 FROM tab1 cor0
----
55
58
96

query I rowsort
SELECT + - 6 * - col2 + - cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
189
40
499

query I rowsort
SELECT + + col2 * - 64 * + col0 + + col2 AS col0 FROM tab2 cor0
----
-12069
-129766
-192090

query I rowsort
SELECT DISTINCT 0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 5 * - col0 - col2 AS col0 FROM tab0 AS cor0
----
-153
-176
-527

query I rowsort
SELECT ALL + col0 * col1 + col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT 95 + col1 FROM tab1 AS cor0
----
105
108
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col2 FROM tab0 cor0
----
11
11
11

query I rowsort
SELECT DISTINCT 80 * - col0 + + col0 + - col1 * col2 * - col2 AS col0 FROM tab0
----
-2668
604853
91758

onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT ( + col0 ) - - tab1.col0 * col2 DIV col0 AS col1 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-5406
SELECT ( + col0 ) - - tab1.col0 * col2 / col0 AS col1 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT DISTINCT + 49 DIV col2 + col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + 49 / col2 + col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - tab1.col1 + - ( col1 ) * 11 AS col2 FROM tab1
----
-120
-156
-312

query I rowsort
SELECT tab0.col1 - + col1 * + col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT - col1 * + ( + 84 ) FROM tab0 cor0
----
-7224
-7644
-8148

query I rowsort
SELECT DISTINCT - cor0.col1 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - col2 + 93 FROM tab1 AS cor0
----
-3
36
39

query I rowsort
SELECT ALL + 92 AS col1 FROM tab2
----
92
92
92

query I rowsort
SELECT ( col1 ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT 12 * tab1.col1 FROM tab1, tab0, tab1 AS cor0
----
120
156
312

query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1, tab2 AS cor0
----
54
57
96

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 AS cor0, tab1 AS cor1
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

query I rowsort
SELECT - col2 + col2 - col2 FROM tab0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5419
SELECT ALL col1 * + CAST( NULL AS SIGNED ) + - col2 - + col2 * - col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) + - col2 - + col2 * - col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 - 73 AS col2 FROM tab2
----
-14
-42
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 94 col0 FROM tab0 AS cor0
----
12
61
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5423
SELECT col2 * - col1 - + col0 * + col0 DIV ( - col0 ) FROM tab2 AS cor0
----
-1456
-567
-830

skipif mysql # not compatible
query I rowsort label-5423
SELECT col2 * - col1 - + col0 * + col0 / ( - col0 ) FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - 84 AS col1 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5426
SELECT DISTINCT + tab2.col2 * CAST( + 73 AS SIGNED ) AS col1 FROM tab2
----
1898
1971
2774

skipif mysql # not compatible
query I rowsort label-5426
SELECT DISTINCT + tab2.col2 * CAST ( + 73 AS INTEGER ) AS col1 FROM tab2
----
1898
1971
2774

query I rowsort
SELECT ALL col2 * col0 + col1 * + ( + col2 + + col1 * 60 ) FROM tab1 AS cor0
----
10218
19068
42126

query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 64 AS col1 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5430
SELECT ALL - cor0.col0 + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - cor0.col0 + + col1 / col1 AS col0 FROM tab2 AS cor0
----
-6
-77
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5431
SELECT ALL + CAST( NULL AS SIGNED ) + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col2 * + 73 - + col1 FROM tab2 cor0
----
1839
1940
2757

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT col2 + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + cor0.col0 * - col2 * - col1 AS col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + 21 + - col1 * + col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1591
-704
-823

query I rowsort
SELECT ALL cor0.col2 * - cor0.col0 - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT - 38 + 93 AS col2 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT ALL - cor0.col1 + col1 * + col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT + - ( 7 ) * + col0 + cor0.col0 * - cor0.col2 FROM tab2 AS cor0
----
-238
-2574
-3555

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab1 cor0
----
-95

query I rowsort
SELECT DISTINCT col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col2 * - 28 * cor0.col1 FROM tab2 AS cor0
----
18088
23436
42952

query I rowsort
SELECT DISTINCT + ( col1 ) + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - - col2 + + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + col0 - - 48 AS col1 FROM tab2 cor0
----
126
127
55

query I rowsort
SELECT ALL - + ( - col2 ) * - col0 * col1 + col2 * col0 + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-2646
-32262
-90912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5450
SELECT + - CAST( + col2 AS SIGNED ) * - col0 - + col1 FROM tab1 AS cor0
----
136
3638
7667

skipif mysql # not compatible
query I rowsort label-5450
SELECT + - CAST ( + col2 AS INTEGER ) * - col0 - + col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT col0 - - 11 AS col0 FROM tab2 AS cor0
----
18
89
90

query I rowsort
SELECT - col1 + - col0 * col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - 12 * col1 + col2 AS col1 FROM tab2
----
-166
-345
-682

query I rowsort
SELECT ALL - 74 + col0 FROM tab2 AS cor0
----
-67
4
5

query I rowsort
SELECT - cor0.col1 + col2 * col1 + + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL ( - cor0.col0 ) * 53 FROM tab1 AS cor0
----
-159
-3392
-4240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + col0 * - col0 + col1 col1 FROM tab2 AS cor0
----
-5966
-6207
13

query I rowsort
SELECT ALL + - col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col2 + col2 * + ( - col0 ) AS col2 FROM tab0 cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 + - col1 col1 FROM tab2 AS cor0
----
-37
-9
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5462
SELECT col1 DIV col2 + ( - col2 ) * col2 + 56 * col0 AS col0 FROM tab1 AS cor0
----
-2748
-4736
335

skipif mysql # not compatible
query I rowsort label-5462
SELECT col1 / col2 + ( - col2 ) * col2 + 56 * col0 AS col0 FROM tab1 AS cor0
----
-2748
-4736
335

query I rowsort
SELECT ALL - - 20 + col2 FROM tab0 AS cor0
----
102
21
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5464
SELECT DISTINCT - ( + col0 ) * + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-5464
SELECT DISTINCT - ( + col0 ) * + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - cor0.col1 + ( 94 ) FROM tab1 AS cor0
----
104
107
120

query I rowsort
SELECT - col1 * - 69 AS col0 FROM tab0 AS cor0
----
5934
6279
6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 - - col0 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - 13 FROM tab2, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT + col1 * col1 AS col2 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL col0 * ( col1 ) + - col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5474
SELECT ALL - cor0.col1 * 3 DIV cor0.col2 - - col1 FROM tab1 cor0
----
10
13
25

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL - cor0.col1 * 3 / cor0.col2 - - col1 FROM tab1 cor0
----
10
13
25

query I rowsort
SELECT DISTINCT - + col0 + 76 * - col1 FROM tab1 AS cor0
----
-1068
-1979
-824

onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT - col0 * col0 DIV col1 + 45 * - col0 FROM tab0
----
-1086
-1587
-4092

skipif mysql # not compatible
query I rowsort label-5476
SELECT - col0 * col0 / col1 + 45 * - col0 FROM tab0
----
-1086
-1587
-4092

query I rowsort
SELECT DISTINCT - + cor0.col1 + col0 - col1 FROM tab1 AS cor0
----
-49
44
54

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT 60 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT ALL + - col0 * cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor0.col2 * col1 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - 77 * col2 AS col2 FROM tab0 AS cor0
----
-2541
-6314
-77

query I rowsort
SELECT + 39 FROM tab1
----
39
39
39

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab2
----
28

query I rowsort
SELECT ALL col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + cor0.col2 + ( + col2 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + - cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5488
SELECT cor0.col0 DIV col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5488
SELECT cor0.col0 / col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT DISTINCT + cor0.col0 + col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5490
SELECT ALL - CAST( - col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL - CAST ( - col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - col0 - 44 FROM tab0 AS cor0
----
-133
-68
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5492
SELECT ALL CAST( col0 AS SIGNED ) * col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL CAST ( col0 AS INTEGER ) * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - 88 + + col1 + col0 FROM tab0 AS cor0
----
22
44
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 * + col2 col1 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT + + 32 * - cor0.col2 FROM tab1 AS cor0
----
-1728
-1824
-3072

onlyif mysql # use DIV operator for integer division
query I rowsort label-5496
SELECT - col1 DIV - 24 AS col2 FROM tab0 AS cor0
----
3
3
4

skipif mysql # not compatible
query I rowsort label-5496
SELECT - col1 / - 24 AS col2 FROM tab0 AS cor0
----
3
3
4

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5498
SELECT col1 * - col0 + CAST( + 8 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-5498
SELECT col1 * - col0 + CAST ( + 8 AS INTEGER ) / col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col2 + + col2 + + 37 AS col1 FROM tab0 AS cor0
----
103
201
39

query I rowsort
SELECT DISTINCT + + ( col0 ) + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - 80 * - col1 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT ALL - 79 + col1 FROM tab2 AS cor0
----
-20
-48
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 + + col2 col0 FROM tab2
----
18
19
30

query I rowsort
SELECT ( col1 * + tab1.col0 ) + - col0 + + 62 FROM tab1
----
1022
137
638

query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 * - col0 FROM tab1 cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT - cor0.col2 DIV + col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5506
SELECT - cor0.col2 / + col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL - + col1 * col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - col1 * + 16 AS col2 FROM tab0 cor0
----
1376
1456
1552

onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT - col0 DIV 53 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5509
SELECT - col0 / 53 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT col1 * col0 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT col1 + - col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * tab2.col2 + col2 + + col0 AS col1 FROM tab2
----
2132
223
3119

query I rowsort
SELECT DISTINCT + col1 * col0 + col0 AS col2 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-5514
SELECT + col1 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5514
SELECT + col1 / + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT tab0.col0 + ( + col0 ) + - col1 FROM tab0
----
-27
-38
87

query I rowsort
SELECT col2 * + 89 FROM tab2 AS cor0
----
2314
2403
3382

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5517
SELECT + - CAST( NULL AS SIGNED ) * col2 + - col2 * - CAST( - 57 + col1 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5517
SELECT + - CAST ( NULL AS INTEGER ) * col2 + - col2 * - CAST ( - 57 + col1 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * cor0.col1 - col2 * - 34 FROM tab0 AS cor0
----
11069
8518
9443

query I rowsort
SELECT DISTINCT + col1 + 0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col0 + 25 AS col1 FROM tab2
----
103
104
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col1 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5522
SELECT col2 / CAST( NULL AS SIGNED ) + - col0 + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5522
SELECT col2 / CAST ( NULL AS INTEGER ) + - col0 + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5523
SELECT col0 / - CAST( NULL AS SIGNED ) + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5523
SELECT col0 / - CAST ( NULL AS INTEGER ) + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - col2 + + col2 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT - col0 + - col1 * col1 + col1 FROM tab0
----
-7334
-8279
-9347

query I rowsort
SELECT cor0.col2 + 98 * col2 + 4 AS col0 FROM tab1 cor0
----
5350
5647
9508

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5527
SELECT - ( col2 ) * - col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT - ( col2 ) * - col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 39 + - cor0.col2 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT - 4 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT + col2 * - 5 * + col0 FROM tab0
----
-175
-36490
-3960

query I rowsort
SELECT + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * col1 * col2 FROM tab1
----
16224
36504
5700

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 cor0, tab0 AS cor1
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

query I rowsort
SELECT 0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT 61 * col2 FROM tab0
----
2013
5002
61

query I rowsort
SELECT - 21 * col0 AS col0 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT - 88 AS col1 FROM tab0
----
-88
-88
-88

query I rowsort
SELECT ALL + tab1.col1 * col2 * tab1.col0 AS col0 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5539
SELECT DISTINCT - col1 * ( - 42 + cor0.col0 ) DIV col0 FROM tab1 AS cor0
----
-3
-6
338

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT - col1 * ( - 42 + cor0.col0 ) / col0 FROM tab1 AS cor0
----
-3
-6
338

query I rowsort
SELECT ALL + col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + + cor0.col0 * ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b

query I rowsort
SELECT + cor0.col0 * + col0 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5544
SELECT DISTINCT + col0 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT + col0 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 36 col1 FROM tab1 AS cor0
----
132
90
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT col2 * - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT cor0.col1 * 46 FROM tab2, tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT ALL - + cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - + 90 AS col1 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT DISTINCT - cor0.col0 DIV - 60 + 27 FROM tab2 AS cor0
----
27
28

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT - cor0.col0 / - 60 + 27 FROM tab2 AS cor0
----
27
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-5552
SELECT DISTINCT + col1 * col1 DIV col0 AS col1 FROM tab0 AS cor0
----
268
308
93

skipif mysql # not compatible
query I rowsort label-5552
SELECT DISTINCT + col1 * col1 / col0 AS col1 FROM tab0 AS cor0
----
268
308
93

query I rowsort
SELECT cor0.col2 - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5554
SELECT DISTINCT + cor0.col0 + CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + cor0.col0 + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 77 col0 FROM tab0 cor0
----
110
159
78

query I rowsort
SELECT ALL - col1 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5558
SELECT DISTINCT col2 * ( + col2 + col2 ) DIV - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-5558
SELECT DISTINCT col2 * ( + col2 + col2 ) / - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT cor0.col0 + ( col0 ) FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5560
SELECT - - col1 + CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5560
SELECT - - col1 + CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col0 * ( col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + col0 - - col2 AS col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL - col1 + 86 FROM tab1 AS cor0
----
60
73
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5565
SELECT DISTINCT + col2 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT + col2 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - tab1.col0 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5567
SELECT ALL + col2 * + col0 - + ( col0 ) DIV col2 AS col0 FROM tab0
----
0
7297
792

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL + col2 * + col0 - + ( col0 ) / col2 AS col0 FROM tab0
----
0
7297
792

query I rowsort
SELECT DISTINCT - col0 - + col2 * col2 * col0 AS col1 FROM tab2
----
-114155
-5110
-52806

query I rowsort
SELECT ALL col2 * + col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT 71 * + col0 FROM tab2
----
497
5538
5609

query I rowsort
SELECT + + ( - 88 ) AS col0 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT 68 AS col2 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5573
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5573
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 87 * + col0 FROM tab1 cor0
----
-261
-5568
-6960

query I rowsort
SELECT col1 * + 12 AS col0 FROM tab2
----
204
372
708

query I rowsort
SELECT ALL - 26 FROM tab0 AS cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 83 * 15 + col0 col0 FROM tab2 cor0
----
1252
1323
1324

query I rowsort
SELECT DISTINCT 14 * col2 FROM tab2 AS cor0
----
364
378
532

onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT ALL + ( + cor0.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-5579
SELECT ALL + ( + cor0.col0 ) / - col1 col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT + ( col0 ) * 66 AS col0 FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT ALL - 38 AS col1 FROM tab0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + 18 FROM tab2
----
18

query I rowsort
SELECT 47 AS col0 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5584
SELECT CAST( col1 AS SIGNED ) * cor0.col1 FROM tab1 cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-5584
SELECT CAST ( col1 AS INTEGER ) * cor0.col1 FROM tab1 cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5585
SELECT + CAST( col1 AS SIGNED ) FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5585
SELECT + CAST ( col1 AS INTEGER ) FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT tab0.col0 * 61 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
1464
2135
5429

query I rowsort
SELECT ALL 71 + - col2 AS col0 FROM tab0 AS cor0
----
-11
38
70

query I rowsort
SELECT ALL - col1 * col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT ( + col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + - 90 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT col1 * col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL col0 * - col0 + - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL + - col0 * + col0 + - col2 + col1 * col0 FROM tab1 AS cor0
----
-3513
-5456
15

query I rowsort
SELECT ALL 10 + col0 * col1 * cor0.col0 AS col2 FROM tab2 cor0
----
106107
1529
358966

query I rowsort
SELECT DISTINCT + 11 + + col1 * - col1 FROM tab2 AS cor0
----
-278
-3470
-950

query I rowsort
SELECT - 32 * tab1.col1 + col1 FROM tab1
----
-310
-403
-806

query I rowsort
SELECT + 53 + 23 FROM tab2
----
76
76
76

query I rowsort
SELECT + col2 * 32 + col0 FROM tab1
----
1731
1888
3152

query I rowsort
SELECT - - 34 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 col1 FROM tab2
----
-72
-72
-72

query I rowsort
SELECT + 56 - col2 AS col2 FROM tab1
----
-1
-40
2

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col1 AS REAL ) AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col0 * tab2.col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col0 - - col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - 44 FROM tab2 AS cor0
----
44

query I rowsort
SELECT ALL + - 25 + col2 + - col1 * col2 FROM tab2 AS cor0
----
-1533
-633
-835

query I rowsort
SELECT DISTINCT col1 * col2 + - col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT + 5 * - cor0.col2 FROM tab2 AS cor0
----
-130
-135
-190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - col1 * col0 + - ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

query I rowsort
SELECT + 88 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + 85 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - col0 * + ( col0 + col0 ) AS col0 FROM tab1
----
-12800
-18
-8192

query I rowsort
SELECT col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 22 col1 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT col1 * + 38 - 52 AS col0 FROM tab2 AS cor0
----
1126
2190
594

query I rowsort
SELECT ALL - - col1 + col1 + - col2 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT ALL cor1.col0 * - 73 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 454cf7147d4b01326ce14913cc21c42b

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT ALL + 24 FROM tab0, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + cor0.col2 + 26 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4352cb57ce39aa705bd322c37798874

query I rowsort
SELECT ALL + ( + col2 ) FROM tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5627
SELECT DISTINCT + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5628
SELECT DISTINCT + - col1 + ( + col0 ) DIV - cor0.col1 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT + - col1 + ( + col0 ) / - cor0.col1 FROM tab2 AS cor0
----
-21
-31
-60

query I rowsort
SELECT - + ( - col0 ) * col1 + cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT DISTINCT - - col0 + - col2 + col2 DIV 29 AS col2 FROM tab1 AS cor0
----
-13
-50
8

skipif mysql # not compatible
query I rowsort label-5630
SELECT DISTINCT - - col0 + - col2 + col2 / 29 AS col2 FROM tab1 AS cor0
----
-13
-50
8

query I rowsort
SELECT ALL - - col2 * 61 - - col2 * + col0 FROM tab1 cor0
----
13536
3456
7125

query I rowsort
SELECT + 43 + col2 * col0 AS col1 FROM tab0 AS cor0
----
7341
78
835

query I rowsort
SELECT ALL + 14 + - col0 FROM tab2 AS cor0
----
-64
-65
7

query I rowsort
SELECT ALL + - ( 7 ) * col1 - 69 AS col1 FROM tab0 AS cor0
----
-671
-706
-748

query I rowsort
SELECT col1 * col2 + - col1 AS col1 FROM tab0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-5636
SELECT DISTINCT col2 DIV - col1 + + ( 74 ) * col1 AS col1 FROM tab1
----
1922
735
955

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT col2 / - col1 + + ( 74 ) * col1 AS col1 FROM tab1
----
1922
735
955

query I rowsort
SELECT - 38 + - col2 + 90 AS col0 FROM tab2
----
14
25
26

query I rowsort
SELECT + col2 * tab2.col0 * + col0 AS col1 FROM tab2
----
1323
158184
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-5639
SELECT DISTINCT col0 + col1 DIV - 40 AS col0 FROM tab0
----
22
33
87

skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT col0 + col1 / - 40 AS col0 FROM tab0
----
22
33
87

query I rowsort
SELECT - col1 * col2 + 32 + + cor0.col2 * col2 FROM tab0 cor0
----
-1717
-64
-706

query I rowsort
SELECT - + col0 - - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + 33 AS col0 FROM tab2 AS cor0
----
1254
858
891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5643
SELECT + col1 + 40 + + col0 * col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT + col1 + 40 + + col0 * col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 FROM tab0
----
1
1089
6724

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab1 cor0, tab0 cor1
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query I rowsort
SELECT DISTINCT - tab0.col0 * + col0 + 47 * col0 AS col2 FROM tab0
----
-3738
420
552

query I rowsort
SELECT 94 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + + 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT - 21 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * tab2.col0 col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT col2 * ( 72 ) * - col0 + - 83 * + col0 * - col2 + + col2 * col0 * col2 FROM tab1
----
10530
248064
821760

query I rowsort
SELECT - 24 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT + col1 + + col1 * 79 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT - cor0.col0 * - cor0.col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - col2 * 10 + + col1 FROM tab0 AS cor0
----
-244
-729
87

query I rowsort
SELECT + - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col2 * - 83 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT - - col2 + col0 + 85 AS col0 FROM tab0 AS cor0
----
121
142
256

query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - col0 + ( col2 ) * col2 AS col2 FROM tab0 cor0
----
-34
1065
6635

query I rowsort
SELECT + cor0.col2 - 70 AS col0 FROM tab2 AS cor0
----
-32
-43
-44

query I rowsort
SELECT DISTINCT + col0 * 34 + 11 FROM tab1 AS cor0
----
113
2187
2731

query I rowsort
SELECT + col2 * - col1 + col0 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL ( 38 ) * col1 FROM tab2 AS cor0
----
1178
2242
646

query I rowsort
SELECT DISTINCT - cor0.col1 + ( cor0.col1 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 * + cor0.col2 * - col1 col2 FROM tab1 AS cor0
----
-31350
-68640
-77220

onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT ALL col1 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL col1 / col0 AS col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + cor0.col1 AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL col1 + + 94 FROM tab0 cor0
----
180
185
191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5672
SELECT DISTINCT + CAST( ( col2 ) AS SIGNED ) - + ( cor0.col1 ) FROM tab1 AS cor0
----
28
47
83

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + CAST ( ( col2 ) AS INTEGER ) - + ( cor0.col1 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * col0 + + col0 col0 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab2 AS cor0
----
-43

query I rowsort
SELECT ALL + cor0.col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to bd2b318ad064d89aa12ab468220362b6

query I rowsort
SELECT + - cor0.col2 AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT 4 + - col0 FROM tab0 AS cor0
----
-20
-31
-85

query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT cor0.col0 * + col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT 71 AS col0 FROM tab1 AS cor0
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5683
SELECT ( + col0 ) + 84 DIV + col0 FROM tab2 AS cor0
----
19
79
80

skipif mysql # not compatible
query I rowsort label-5683
SELECT ( + col0 ) + 84 / + col0 FROM tab2 AS cor0
----
19
79
80

query I rowsort
SELECT - col1 * - cor0.col0 + col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - 83 * col1 AS col2 FROM tab2 AS cor0
----
-1411
-2573
-4897

query I rowsort
SELECT - cor0.col1 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-306
-3540
-992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5687
SELECT DISTINCT + tab2.col0 * + CAST( - 47 AS SIGNED ) FROM tab2, tab1 AS cor0
----
-329
-3666
-3713

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT + tab2.col0 * + CAST ( - 47 AS INTEGER ) FROM tab2, tab1 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT - + col2 + - 32 AS col2 FROM tab1 AS cor0
----
-128
-86
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5689
SELECT ALL - cor0.col0 DIV 18 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 35791804d57e773fd6768723abffa37d

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - cor0.col0 / 18 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 35791804d57e773fd6768723abffa37d

query I rowsort
SELECT - col2 * + 29 * 17 AS col2 FROM tab0
----
-16269
-40426
-493

query I rowsort
SELECT ALL + cor1.col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - 92 * - 85 FROM tab1, tab2 AS cor0
----
9 values hashing to fb0f9be2ea82ada430ed8f12cfec9d16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 - + col2 col2 FROM tab2 AS cor0
----
-1
-12
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col1 FROM tab2
----
26
27
38

query I rowsort
SELECT 11 AS col1 FROM tab1
----
11
11
11

query I rowsort
SELECT 46 * 11 FROM tab1
----
506
506
506

query I rowsort
SELECT DISTINCT ( col2 ) * - col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT cor0.col2 + - 4 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a28aab2c55d3c3594bbdd8d3200ada1d

query I rowsort
SELECT ALL col0 * - col1 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab1 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT col2 * + col2 AS col2 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - - col2 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + ( - col1 ) * col2 + + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - col0 + - col1 * + col2 * + ( + col0 ) - + col0 * - 4 AS col2 FROM tab0 AS cor0
----
-3290
-663851
-68040

query I rowsort
SELECT col1 + + 54 FROM tab1 cor0
----
64
67
80

query I rowsort
SELECT col2 * col2 - 69 AS col2 FROM tab0
----
-68
1020
6655

query I rowsort
SELECT DISTINCT + tab1.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8

query I rowsort
SELECT col1 * 88 AS col1 FROM tab2 cor0
----
1496
2728
5192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col0 ) + + cor0.col0 col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT col0 + tab0.col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL + tab1.col0 * + 11 FROM tab1
----
33
704
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + + col1 - + ( - col1 ) col2 FROM tab2 AS cor0
----
111
6202
6275

query I rowsort
SELECT + + cor0.col2 + col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + ( + ( col1 ) ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - - 55 + - col2 * + col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
244123
679097
9464

query I rowsort
SELECT ALL + col2 * - 55 FROM tab2 AS cor0
----
-1430
-1485
-2090

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5719
SELECT DISTINCT + - CAST( col0 AS SIGNED ) * col2 + 45 * - col2 AS col1 FROM tab1 AS cor0
----
-12000
-2592
-6213

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) * col2 + 45 * - col2 AS col1 FROM tab1 AS cor0
----
-12000
-2592
-6213

query I rowsort
SELECT ALL - - col2 + col2 * col1 * col2 FROM tab0 AS cor0
----
611966
93687
98

query I rowsort
SELECT 58 FROM tab2
----
58
58
58

query I rowsort
SELECT col0 - - tab1.col2 * ( col2 ) AS col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT + col1 * - col2 * col0 AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - tab1.col0 AS col1 FROM tab1, tab0 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 64 * col2 * + tab0.col2 + - col2 * + col1 FROM tab0
----
-33
422874
66858

query I rowsort
SELECT ALL + tab0.col2 * col2 + + ( col0 ) FROM tab0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT DISTINCT - 47 + col0 DIV ( 83 ) FROM tab0
----
-46
-47

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - 47 + col0 / ( 83 ) FROM tab0
----
-46
-47

query I rowsort
SELECT DISTINCT - 42 * - col0 + + tab1.col2 FROM tab1
----
180
2745
3456

query I rowsort
SELECT ALL 40 FROM tab1 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + + 7 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 25 * col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + + cor0.col0 * + cor0.col1 + + 75 AS col2 FROM tab2 AS cor0
----
1418
292
4677

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5736
SELECT ALL col1 * CAST( NULL AS SIGNED ) + - ( col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + - ( col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * + col1 + - col1 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT - col1 * + 61 + + 55 DIV + col0 FROM tab2 AS cor0
----
-1037
-1884
-3599

skipif mysql # not compatible
query I rowsort label-5738
SELECT - col1 * + 61 + + 55 / + col0 FROM tab2 AS cor0
----
-1037
-1884
-3599

query I rowsort
SELECT - - col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5740
SELECT - col2 + CAST( + ( - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-5740
SELECT - col2 + CAST ( + ( - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col2 + - 99 AS col0 FROM tab0 AS cor0
----
-100
-132
-181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 col0 FROM tab2
----
78
78
78

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - - cor0.col1 - - ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + cor0.col0 * col1 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL + + cor0.col2 - 42 FROM tab1 cor0
----
12
15
54

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - 85 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL + - col2 * - col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - - col0 + + 85 + 37 FROM tab1 cor0
----
125
186
202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + col2 ) col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
85

query I rowsort
SELECT cor0.col0 + + col1 * - cor0.col1 + - cor0.col2 * 72 FROM tab0 AS cor0
----
-14096
-9446
-9748

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 * 30 FROM tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT + + cor0.col0 * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col1 + col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5761
SELECT CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 79 FROM tab1 AS cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 0 - 73 * + col0 col2 FROM tab1 cor0
----
-219
-4672
-5840

query I rowsort
SELECT - - col1 + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - - 61 + col2 AS col1 FROM tab1 AS cor0
----
115
118
157

query I rowsort
SELECT DISTINCT col0 * - 54 FROM tab1
----
-162
-3456
-4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * + col1 + 21 col1 FROM tab1
----
-1227
-1383
-549

query I rowsort
SELECT DISTINCT col2 + - 35 * + tab0.col2 AS col1 FROM tab0
----
-1122
-2788
-34

query I rowsort
SELECT DISTINCT - col1 * col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - ( cor0.col0 ) FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5771
SELECT col2 - - tab1.col0 / - ( + col2 + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT col2 - - tab1.col0 / - ( + col2 + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT + col0 * 11 + + col1 * - col1 AS col0 FROM tab1
----
-643
604
711

query I rowsort
SELECT col1 - cor0.col2 * 5 FROM tab0 AS cor0
----
-319
-79
92

query I rowsort
SELECT + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + col0 + col0 * + col1 AS col1 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT - 92 * + col1 - + cor0.col1 * + col2 FROM tab1 AS cor0
----
-1490
-2444
-3796

query I rowsort
SELECT + 89 * + col0 FROM tab2 cor0
----
623
6942
7031

query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - - 98 FROM tab1 AS cor0
----
98

query I rowsort
SELECT - col1 * col1 - + col2 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL - 46 + col0 AS col0 FROM tab1 AS cor0
----
-43
18
34

query I rowsort
SELECT - col1 + col0 + cor0.col0 * col1 * - cor0.col2 AS col2 FROM tab0 cor0
----
-3457
-664120
-68174

query I rowsort
SELECT ALL + 46 AS col0 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT + col0 * col2 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL ( - col0 ) AS col1 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5787
SELECT + col2 DIV cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5787
SELECT + col2 / cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - - 74 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT - 94 * - 5 AS col2 FROM tab2
----
470
470
470

query I rowsort
SELECT ALL + 73 + col2 - tab2.col1 FROM tab2
----
40
69
94

query I rowsort
SELECT DISTINCT ( tab2.col0 ) - - tab2.col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT 7 FROM tab0, tab1 AS cor0
----
7

query I rowsort
SELECT 20 * col1 FROM tab2
----
1180
340
620

query I rowsort
SELECT ALL col1 + col2 + col0 FROM tab0
----
133
143
262

query I rowsort
SELECT - 6 + col2 + + ( - col1 + - col1 ) AS col2 FROM tab1
----
-4
31
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5797
SELECT + col2 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT 66 + col2 AS col2 FROM tab0 AS cor0
----
148
67
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col0 * + cor0.col2 col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - 70 AS col2 FROM tab0 cor0
----
-70
-70
-70

query I rowsort
SELECT 7 AS col1 FROM tab0
----
7
7
7

query I rowsort
SELECT ALL tab0.col0 + - col2 AS col0 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT cor0.col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5803
SELECT cor0.col1 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT - - col1 DIV col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5804
SELECT - - col1 / col0 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 * col1 * - cor0.col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + tab0.col2 + + col0 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT - col0 * col2 * + col1 + + col1 AS col2 FROM tab2
----
-119593
-51017
-5828

query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( col2 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 + - col0 col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL tab0.col0 + col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT col0 * col1 - col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN + col0 + - col0 / col1 AND ( col0 + - col2 + col0 )
----

query I rowsort
SELECT DISTINCT - col0 * col0 - col0 * - col1 * col2 FROM tab1 WHERE NOT NULL NOT IN ( - tab1.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + + cor0.col1 + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + col0 + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
1204
2576
2811

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 + col0 + + col2 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - col0 * + col2 + col2 + + col1 AS col1 FROM tab1
----
-3581
-7571
-82

query I rowsort
SELECT ALL col0 + - col1 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT ALL - 78 AS col1 FROM tab0
----
-78
-78
-78

query I rowsort
SELECT - col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ( - col1 ) AS col1 FROM tab2
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 col2 FROM tab0
----
79

query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col0 + + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - col0 * + col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + tab1.col2 * + col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT DISTINCT + tab1.col1 DIV - col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT + tab1.col1 / - col0 FROM tab1
----
-8
0

query I rowsort
SELECT - tab0.col2 * - col1 + + col1 * col2 AS col0 FROM tab0
----
14924
194
5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT DISTINCT - col1 DIV col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT - col1 / col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT col1 + col0 + + col1 FROM tab2 AS cor0
----
113
196
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT DISTINCT + - col2 + col0 + col2 DIV col1 AS col2 FROM tab0 cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT + - col2 + col0 + col2 / col1 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL col2 * col1 + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT ALL - - col0 * cor0.col2 + + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col1 / col1 FROM tab1 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT DISTINCT col0 + col1 * - col1 FROM tab2
----
-210
-3403
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-5840
SELECT ALL - col1 * col2 DIV + col1 + col0 * + col0 col2 FROM tab0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - col1 * col2 / + col1 + col0 * + col0 col2 FROM tab0
----
1224
543
7839

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( - col2 / col1 + col2 * - col1 * col2 + + col0 )
----

query I rowsort
SELECT ALL - col0 * tab0.col2 * col2 + + col2 FROM tab0
----
-26103
-34
-598354

query I rowsort
SELECT ALL + col0 + - tab0.col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - col2 * col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + tab1.col1 + col0 * col2 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE NOT ( NULL ) < ( - col1 )
----

query I rowsort
SELECT + col2 * + col1 + + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL + col0 * col1 + col2 AS col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT + col1 + - col2 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + - tab0.col2 col2 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - col1 + + tab1.col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * + col1 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 + + cor1.col2 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
104
117
34

query I rowsort
SELECT ALL col2 * - col1 - + col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + - col1 + - col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT col1 + col0 * + col2 * col1 AS col0 FROM tab0
----
3492
664209
68198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5859
SELECT + col0 / + col0 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 * + tab0.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5863
SELECT ALL - tab0.col0 DIV + col1 + + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL - tab0.col0 / + col1 + + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL col1 * + col0 + - col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + col1 * col2 * + col2 + + col1 <> col0 * col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT col2 + - col2 DIV col1 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5866
SELECT col2 + - col2 / col1 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT - col1 * tab2.col2 FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 - tab0.col0 col1 FROM tab0
----
2
62
62

query I rowsort
SELECT col2 / - tab1.col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + col1 + + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 + + col0 * col2 ) NOT IN ( col2 + + col0 )
----

query I rowsort
SELECT ALL + col2 * + col0 FROM tab1
----
162
3648
7680

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + col1 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + + col0 * + col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + col1 + - col2 AS col0 FROM tab2
----
-21
33
4

query III rowsort
SELECT * FROM tab1 WHERE NULL < col1 * - col0
----

query I rowsort
SELECT + tab0.col1 * - col2 - tab0.col1 AS col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab1 WHERE NULL BETWEEN col0 + col0 + col2 * col0 * col2 AND col0
----

query I rowsort
SELECT DISTINCT col1 - tab2.col2 * + col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT + col1 + col0 * + col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col2 * - col0 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL col0 + tab1.col1 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT + 11 * col1 + + col0 * 88 AS col0 FROM tab1 AS cor0
----
550
5742
7183

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL - - col2 + + cor0.col2 * + 21 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
13604
17604
32240

query I rowsort
SELECT + cor0.col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL 93 + + col2 FROM tab0 AS cor0
----
126
175
94

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + col0 + 84 FROM tab0 cor0
----
2148
3479
8183

query I rowsort
SELECT 35 + col2 FROM tab0 cor0
----
117
36
68

query I rowsort
SELECT ALL + 26 + + col0 AS col1 FROM tab0
----
115
50
61

query I rowsort
SELECT col2 * + ( + col1 ) AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL 68 FROM tab1
----
68
68
68

query I rowsort
SELECT + 36 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT col0 FROM tab0 WHERE ( ( + col1 + col2 IN ( - col2 - col1 ) AND NULL <> NULL ) AND ( NULL ) IN ( + col1 ) ) AND + col0 > tab0.col0 + col1 * col2
----

query I rowsort
SELECT 81 AS col1 FROM tab0
----
81
81
81

query I rowsort
SELECT col0 * + col0 - col2 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT DISTINCT tab0.col1 * + tab0.col1 AS col2 FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5900
SELECT - 31 DIV - tab0.col0 + - col1 FROM tab0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-5900
SELECT - 31 / - tab0.col0 + - col1 FROM tab0
----
-85
-91
-97

query I rowsort
SELECT + 91 + - col0 FROM tab1 AS cor0
----
11
27
88

query I rowsort
SELECT - - 89 * - col0 AS col1 FROM tab0 AS cor0
----
-2136
-3115
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col2 col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col0 + - ( col2 ) col2 FROM tab0 cor0
----
-36
-7380
-825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5905
SELECT ALL - tab1.col1 DIV - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - tab1.col1 / - col1 FROM tab1
----
1
1
1

query I rowsort
SELECT - tab2.col0 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5907
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5907
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 * ( col2 ) * col0 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL + 13 * 64 AS col2 FROM tab2 AS cor0
----
832
832
832

query I rowsort
SELECT DISTINCT col1 * + 88 * cor0.col0 + 13 FROM tab2 AS cor0
----
118197
19109
404989

query I rowsort
SELECT DISTINCT - 44 FROM tab1, tab1 AS cor0
----
-44

query I rowsort
SELECT tab0.col2 * - 29 AS col0 FROM tab0
----
-2378
-29
-957

query I rowsort
SELECT DISTINCT tab0.col0 - col2 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL col2 - + col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT col1 + + 67 FROM tab0 AS cor0
----
153
158
164

query I rowsort
SELECT + - col1 + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 + + col2 col0 FROM tab0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - col1 col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + - ( 27 ) * col2 + col1 * col0 AS col0 FROM tab0 cor0
----
1173
3368
5885

query I rowsort
SELECT DISTINCT + col1 * + 55 * + cor0.col2 - + col0 AS col2 FROM tab1 AS cor0
----
31286
68560
77217

query I rowsort
SELECT - 38 + 73 AS col0 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5922
SELECT - + CAST( - col1 AS SIGNED ) - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-5922
SELECT - + CAST ( - col1 AS INTEGER ) - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5923
SELECT ALL + + col2 DIV - col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL + + col2 / - col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col2 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT ALL - - col0 * cor0.col1 + col1 AS col0 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - col1 + col0 - - col0 AS col1 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT - - ( col0 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 57 - col2 AS col0 FROM tab2 cor0
----
-83
-84
-95

query I rowsort
SELECT + col0 + 7 AS col1 FROM tab2 AS cor0
----
14
85
86

query I rowsort
SELECT ALL + 14 AS col0 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 2 + col0 FROM tab2 AS cor0
----
80
81
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5934
SELECT - + cor0.col1 DIV col0 + - col0 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-5934
SELECT - + cor0.col1 / col0 + - col0 FROM tab2 AS cor0
----
-11
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5935
SELECT + 46 * col1 DIV - col1 FROM tab1
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-5935
SELECT + 46 * col1 / - col1 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT 97 * ( col2 ) FROM tab2
----
2522
2619
3686

query I rowsort
SELECT tab1.col1 + col1 + - col0 FROM tab1
----
-44
-54
49

query I rowsort
SELECT + col1 + + 95 FROM tab2
----
112
126
154

query I rowsort
SELECT ( col2 * col0 ) AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + 76 + col0 * + col0 AS col1 FROM tab2
----
125
6160
6317

query I rowsort
SELECT + 26 FROM tab2
----
26
26
26

query I rowsort
SELECT - col1 + 14 AS col2 FROM tab1 AS cor0
----
-12
1
4

query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - + col1 + cor0.col1 - col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col0 * - col2 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col1 * 7 AS col2 FROM tab2 AS cor0
----
119
217
413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col0 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT - col0 DIV - col1 + col2 * col0 FROM tab1 AS cor0
----
162
3654
7686

skipif mysql # not compatible
query I rowsort label-5948
SELECT - col0 / - col1 + col2 * col0 FROM tab1 AS cor0
----
162
3654
7686

query I rowsort
SELECT DISTINCT 54 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1701
3212
956

query I rowsort
SELECT - col0 * col0 + col2 AS col1 FROM tab2 cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT DISTINCT - + 47 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT - + 47 / col1 AS col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - + col2 + - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL + - col0 - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col2 * col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL col2 + + col1 * col2 * col1 AS col2 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT - 68 + col2 AS col1 FROM tab0 AS cor0
----
-35
-67
14

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT cor0.col2 * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + + 32 AS col2 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + + ( col0 ) * cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col0 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT ALL + + col1 + - cor0.col0 DIV + col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL + + col1 + - cor0.col0 / + col2 FROM tab1 AS cor0
----
13
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 + - col2 col0 FROM tab2
----
-82
-83
-94

query I rowsort
SELECT 14 * + tab1.col0 + tab1.col0 FROM tab1
----
1200
45
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + - col0 + - tab2.col1 * col1 col0 FROM tab2
----
-1017
-6609
-9643

query I rowsort
SELECT ALL + ( - col2 ) * cor0.col2 + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-14022
-1881
-36

query I rowsort
SELECT ALL - col1 * cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT col0 + col2 * - col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + 83 + col0 AS col0 FROM tab1 AS cor0
----
147
163
86

query I rowsort
SELECT ALL - - col2 + col0 * col1 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT - cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + col2 + 31 AS col2 FROM tab1 AS cor0
----
127
85
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT cor0.col2 + + 82 DIV - col2 AS col0 FROM tab0 cor0
----
-81
31
81

skipif mysql # not compatible
query I rowsort label-5974
SELECT cor0.col2 + + 82 / - col2 AS col0 FROM tab0 cor0
----
-81
31
81

query I rowsort
SELECT DISTINCT col0 + col1 * - col1 * col1 AS col0 FROM tab2 AS cor0
----
-205301
-29784
-4834

query I rowsort
SELECT + col1 * 33 AS col2 FROM tab1 AS cor0
----
330
429
858

query I rowsort
SELECT DISTINCT - col1 * 84 FROM tab1 AS cor0
----
-1092
-2184
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5978
SELECT DISTINCT + col2 + - 43 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5978
SELECT DISTINCT + col2 + - 43 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab2
----
13

query I rowsort
SELECT ALL - col0 * 83 AS col1 FROM tab0 AS cor0
----
-1992
-2905
-7387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5981
SELECT DISTINCT + + col0 * - CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT + + col0 * - CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - + col2 AS col1 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5983
SELECT col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5983
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + + 16 * - cor0.col2 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT - + cor0.col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + - col0 + - 71 * - cor0.col1 FROM tab0 cor0
----
6082
6372
6852

query I rowsort
SELECT ALL - + 83 + col2 AS col0 FROM tab1 AS cor0
----
-26
-29
13

query I rowsort
SELECT DISTINCT + col1 * + ( 96 ) - - tab2.col2 * col1 FROM tab2
----
2278
3813
7198

query I rowsort
SELECT - 46 * + cor0.col2 + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1102
-405
338

query I rowsort
SELECT DISTINCT + col0 + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - + 74 FROM tab0 cor0
----
-74
-74
-74

query I rowsort
SELECT + col0 * + col2 - + col2 * - col0 FROM tab1
----
15360
324
7296

query I rowsort
SELECT - ( 7 ) FROM tab0, tab0 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5994
SELECT ALL col2 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL col2 / col1 + col1 AS col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT - - col1 * 21 * + col2 FROM tab2 AS cor0
----
13566
17577
32214

query I rowsort
SELECT ALL - - col0 + + ( + 10 ) AS col0 FROM tab2 AS cor0
----
17
88
89

query I rowsort
SELECT DISTINCT - - col1 * - col0 + cor0.col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - - ( + col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - cor0.col0 * + col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT - 21 AS col1 FROM tab1 cor0
----
-21
-21
-21

query I rowsort
SELECT - col0 * ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - 76 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT + col0 * - col1 * + ( - col0 ) + - col2 FROM tab1 AS cor0
----
180
40903
83104

query I rowsort
SELECT ALL - + 65 * col0 AS col0 FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT - 95 + + col1 FROM tab2 AS cor0
----
-36
-64
-78

query I rowsort
SELECT ALL + - col2 * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6007
SELECT ALL - - col1 DIV + col0 col2 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL - - col1 / + col0 col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL 65 - - col1 AS col2 FROM tab2 AS cor0
----
124
82
96

query I rowsort
SELECT DISTINCT + 5 * col2 AS col2 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT + + col1 * - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT ALL + col1 * + col0 * - col1 + CAST( + col1 AS SIGNED ) * - col0 FROM tab0
----
-179568
-332710
-745108

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + col1 * + col0 * - col1 + CAST ( + col1 AS INTEGER ) * - col0 FROM tab0
----
-179568
-332710
-745108

query I rowsort
SELECT + ( - 63 ) AS col0 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT col1 * col1 + + 40 + + cor0.col0 * + col1 FROM tab2 AS cor0
----
1218
1672
8123

query I rowsort
SELECT + col2 * col1 + + cor0.col1 * col0 FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6015
SELECT + col2 * col0 + CAST( NULL AS SIGNED ) + + col0 * - col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT + col2 * col0 + CAST ( NULL AS INTEGER ) + + col0 * - col2 * + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * + col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 + + 32 col2 FROM tab0 AS cor0
----
34
94
94

query I rowsort
SELECT 53 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL + + col0 * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col2 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * + col0 col1 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col2 col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL - + cor0.col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT cor0.col1 + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6025
SELECT - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + col0 + 88 AS col1 FROM tab1 AS cor0
----
4184
6488
97

query I rowsort
SELECT + - col0 * ( + col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab0, tab0 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * + col1 * - 40 FROM tab1
----
-27040
-4000
-6760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col2 FROM tab0
----
1
33
82

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT DISTINCT - 99 FROM tab1, tab1 AS cor0
----
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6033
SELECT + CAST( - 82 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

skipif mysql # not compatible
query I rowsort label-6033
SELECT + CAST ( - 82 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT col2 * 86 AS col0 FROM tab1 AS cor0
----
4644
4902
8256

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6035
SELECT + + cor0.col1 + CAST( col2 AS SIGNED ) + - col1 * 20 FROM tab1 cor0
----
-133
-151
-440

skipif mysql # not compatible
query I rowsort label-6035
SELECT + + cor0.col1 + CAST ( col2 AS INTEGER ) + - col1 * 20 FROM tab1 cor0
----
-133
-151
-440

onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT - 59 DIV col1 + col2 * 39 FROM tab1 AS cor0
----
2104
2218
3740

skipif mysql # not compatible
query I rowsort label-6036
SELECT - 59 / col1 + col2 * 39 FROM tab1 AS cor0
----
2104
2218
3740

query I rowsort
SELECT 34 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - col0 * + cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab0
----
8

query I rowsort
SELECT ALL - col0 - col0 AS col1 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT 64 * - col0 * col2 AS col0 FROM tab0
----
-2240
-467072
-50688

onlyif mysql # use DIV operator for integer division
query I rowsort label-6043
SELECT col0 DIV - col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6043
SELECT col0 / - col1 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 - - col0 col0 FROM tab1 cor0
----
-24
-8
-85

query I rowsort
SELECT - 47 AS col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT 92 - col2 FROM tab0 AS cor0
----
10
59
91

query I rowsort
SELECT 3 FROM tab1, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # use DIV operator for integer division
query I rowsort label-6048
SELECT + + col0 * col2 DIV - col0 - + 51 FROM tab1 AS cor0
----
-105
-108
-147

skipif mysql # not compatible
query I rowsort label-6048
SELECT + + col0 * col2 / - col0 - + 51 FROM tab1 AS cor0
----
-105
-108
-147

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6049
SELECT ALL CAST( - col0 AS SIGNED ) * col0 + - col0 * ( col2 ) FROM tab0
----
-1260
-1368
-15219

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL CAST ( - col0 AS INTEGER ) * col0 + - col0 * ( col2 ) FROM tab0
----
-1260
-1368
-15219

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6050
SELECT + CAST( NULL AS SIGNED ) / 43 - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6050
SELECT + CAST ( NULL AS INTEGER ) / 43 - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 32 + - col1 AS col0 FROM tab2 AS cor0
----
-27
1
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT ALL CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col2 + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT ALL + col0 * + 54 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT ALL - 68 * - col0 + col2 FROM tab0
----
1665
2381
6134

query I rowsort
SELECT - 54 * - 44 FROM tab0 AS cor0
----
2376
2376
2376

query I rowsort
SELECT ALL 99 AS col1 FROM tab2 cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 - col0 col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL - col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6060
SELECT + + 93 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-13

skipif mysql # not compatible
query I rowsort label-6060
SELECT + + 93 / - col0 FROM tab2 AS cor0
----
-1
-1
-13

query I rowsort
SELECT DISTINCT - col0 * + 84 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT DISTINCT 50 * col2 AS col2 FROM tab2 cor0
----
1300
1350
1900

query I rowsort
SELECT ALL + + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL 8 - col2 AS col0 FROM tab0 AS cor0
----
-25
-74
7

query I rowsort
SELECT - - ( - 37 ) + - col2 FROM tab2 AS cor0
----
-63
-64
-75

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT DISTINCT + ( ( col0 ) ) + CAST( + col0 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6067
SELECT DISTINCT + ( ( col0 ) ) + CAST ( + col0 AS INTEGER ) / col0 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 + cor0.col2 * - col0 col1 FROM tab0 AS cor0
----
-7341
-78
-835

query I rowsort
SELECT ALL - ( 51 ) * cor0.col0 AS col0 FROM tab2 cor0
----
-357
-3978
-4029

query I rowsort
SELECT - ( + ( + col0 ) ) + ( col1 ) FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + + col1 * 86 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT ALL ( - col2 ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT DISTINCT 19 DIV - col1 + col1 AS col1 FROM tab2 AS cor0
----
16
31
59

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT 19 / - col1 + col1 AS col1 FROM tab2 AS cor0
----
16
31
59

query I rowsort
SELECT + cor0.col1 + + cor0.col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col0 * - col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT - 44 * - col1 FROM tab2 AS cor0
----
1364
2596
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 + - col0 col2 FROM tab0 cor0
----
-128
-63
-74

query I rowsort
SELECT DISTINCT - + col0 + + col0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT DISTINCT col2 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT DISTINCT col2 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL + - col2 + + col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6083
SELECT + 6 + ( + tab2.col0 ) + CAST( NULL AS SIGNED ) * - 79 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT + 6 + ( + tab2.col0 ) + CAST ( NULL AS INTEGER ) * - 79 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - - col2 * 7 FROM tab1 cor0
----
378
399
672

query I rowsort
SELECT ALL col0 * 65 + - col2 AS col2 FROM tab2 AS cor0
----
428
5044
5097

query I rowsort
SELECT ALL + + col2 * - ( + col1 ) + - col2 + + col1 * - col0 * col2 AS col1 FROM tab2 cor0
----
-121212
-51718
-6723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + 20 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0ac5adb7a2b0cab9fe42930f5c60e309

query I rowsort
SELECT ALL col0 - + 62 AS col2 FROM tab0
----
-27
-38
27

query I rowsort
SELECT + 89 * - col1 + col2 FROM tab2 AS cor0
----
-1475
-2732
-5225

query I rowsort
SELECT ALL tab1.col1 * + 21 * col2 - + col0 FROM tab1
----
11906
26128
29481

query I rowsort
SELECT 37 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT ALL col2 DIV + 3 AS col1 FROM tab2
----
12
8
9

skipif mysql # not compatible
query I rowsort label-6093
SELECT ALL col2 / + 3 AS col1 FROM tab2
----
12
8
9

query I rowsort
SELECT ALL col0 * + ( - 46 ) * col2 - + col2 AS col1 FROM tab2
----
-138130
-8721
-93314

query I rowsort
SELECT 37 * tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 15e612af7bdbfa7ecd8ca17d6127a720

query I rowsort
SELECT ALL tab0.col1 - + col1 * - 83 * col2 FROM tab0
----
235640
619437
8148

query I rowsort
SELECT ALL + col0 - + ( - col1 ) * - col1 AS col1 FROM tab1
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6098
SELECT col1 + - tab2.col0 DIV 86 + + col2 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-6098
SELECT col1 + - tab2.col0 / 86 + + col2 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT - col0 DIV col1 col0 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6099
SELECT - col0 / col1 col0 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT cor0.col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6101
SELECT ALL cor1.col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL cor1.col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6103
SELECT + CAST( col0 * - col1 AS SIGNED ) FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-6103
SELECT + CAST ( col0 * - col1 AS INTEGER ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * + col0 + + 0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT + col2 + + col0 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT - col1 DIV tab1.col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6106
SELECT - col1 / tab1.col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 + + col2 * - col1 AS col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col0 * col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col2 * - 79 FROM tab2 AS cor0
----
-2054
-2133
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6110
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 56 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6110
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 56 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * - col2 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - - cor0.col0 + 59 AS col1 FROM tab2 cor0
----
137
138
66

query I rowsort
SELECT 81 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT - 71 * + tab0.col0 + col2 * col0 AS col1 FROM tab0
----
-2450
-912
979

query I rowsort
SELECT DISTINCT tab1.col2 * col0 AS col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6116
SELECT ALL - 3 + col1 * + col0 * + 12 + + col1 DIV 42 AS col1 FROM tab0 AS cor0
----
24767
40739
97187

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL - 3 + col1 * + col0 * + 12 + + col1 / 42 AS col1 FROM tab0 AS cor0
----
24767
40739
97187

query I rowsort
SELECT cor0.col1 * + 41 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 30409c9b11b13673f59fbfbf006e10df

query I rowsort
SELECT DISTINCT - col0 * col2 - col1 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT ALL cor0.col2 + - cor0.col2 DIV - 95 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL cor0.col2 + - cor0.col2 / - 95 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 53 FROM tab1
----
53
53
53

query I rowsort
SELECT DISTINCT 96 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
96

query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6123
SELECT DISTINCT - - col1 + + ( cor0.col1 ) DIV + col1 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT - - col1 + + ( cor0.col1 ) / + col1 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT DISTINCT col2 + ( - ( - col2 ) ) FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( - col0 ) + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - col0 + 29 FROM tab2 AS cor0
----
-49
-50
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-6128
SELECT ALL + col0 + - col0 DIV - col1 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL + col0 + - col0 / - col1 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT DISTINCT - + cor0.col0 + + col0 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col2 + 43 FROM tab0 AS cor0
----
-39
10
42

query I rowsort
SELECT DISTINCT - cor0.col0 + - col1 + - col2 FROM tab0 cor0
----
-133
-143
-262

query I rowsort
SELECT ALL + col1 * 97 + cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
8399
8998
9445

query I rowsort
SELECT DISTINCT - - col1 * - ( 71 ) FROM tab1 AS cor0
----
-1846
-710
-923

query I rowsort
SELECT DISTINCT 83 FROM tab2
----
83

query I rowsort
SELECT + 62 FROM tab0, tab2, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a

query I rowsort
SELECT + 75 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + - cor0.col2 * col0 col0 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT ALL - - 43 * col1 AS col1 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT - col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - - col2 + col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT cor0.col0 * cor0.col0 - cor0.col1 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to b6bcef2b5ccafc92ff1f976518695b30

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * 39 + - col2 * col0 FROM tab1 AS cor0
----
-10800
-279
-6144

query I rowsort
SELECT col0 * col2 + 39 FROM tab0 AS cor0
----
7337
74
831

query I rowsort
SELECT + 79 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT col0 * - col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT 92 + + col2 AS col2 FROM tab0 AS cor0
----
125
174
93

query I rowsort
SELECT - col0 + - col1 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6149
SELECT + 5 * cor0.col0 + - col1 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
123
177
446

skipif mysql # not compatible
query I rowsort label-6149
SELECT + 5 * cor0.col0 + - col1 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
123
177
446

query I rowsort
SELECT + + 19 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + - col2 * - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + cor0.col2 - + col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT DISTINCT - col1 * ( + col2 ) + - col0 * col0 DIV 99 AS col2 FROM tab1 AS cor0
----
-1312
-1404
-611

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT - col1 * ( + col2 ) + - col0 * col0 / 99 AS col2 FROM tab1 AS cor0
----
-1312
-1404
-611

query I rowsort
SELECT ALL col0 + ( col0 ) * + col2 - + 51 FROM tab1 AS cor0
----
114
3661
7709

query I rowsort
SELECT - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - - col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT + col0 + CAST( ( col0 ) AS SIGNED ) DIV - col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-6157
SELECT + col0 + CAST ( ( col0 ) AS INTEGER ) / - col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL col2 * - col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT ALL + col1 + col0 DIV - col0 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL + col1 + col0 / - col0 FROM tab0 cor0
----
85
90
96

query I rowsort
SELECT + col2 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT 79 + - col1 FROM tab2 AS cor0
----
20
48
62

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab1 cor3
----
3645 values hashing to 79b6ae096785aaecea9c1428e4a43e5f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6165
SELECT ALL col1 * - col0 + col2 DIV tab1.col0 + col0 AS col1 FROM tab1
----
-57
-576
-959

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL col1 * - col0 + col2 / tab1.col0 + col0 AS col1 FROM tab1
----
-57
-576
-959

query I rowsort
SELECT + + col2 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - col2 + ( col0 ) * col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT col2 - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 - col2 * - col0 AS col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT col2 * col1 + + col2 AS col1 FROM tab0 cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6171
SELECT - CAST( - col0 AS SIGNED ) * cor0.col2 + col0 * col0 AS col0 FROM tab1 cor0
----
14080
171
7744

skipif mysql # not compatible
query I rowsort label-6171
SELECT - CAST ( - col0 AS INTEGER ) * cor0.col2 + col0 * col0 AS col0 FROM tab1 cor0
----
14080
171
7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT ALL - col0 DIV tab1.col0 - col1 AS col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-6172
SELECT ALL - col0 / tab1.col0 - col1 AS col1 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT + - col0 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + col0 + col2 - cor0.col1 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT + - 77 * col2 - cor0.col2 FROM tab2 cor0
----
-2028
-2106
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT - - cor0.col1 DIV - col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6176
SELECT - - cor0.col1 / - col1 FROM tab1 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 + + col2 * col1 col0 FROM tab0 AS cor0
----
104
2845
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-6178
SELECT DISTINCT 17 DIV cor0.col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT 17 / cor0.col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - + 78 + - 35 AS col2 FROM tab0 AS cor0
----
-113
-113
-113

query I rowsort
SELECT + ( - 73 ) AS col0 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT ALL + 35 + - 79 AS col2 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6185
SELECT col0 * - col1 + - col1 * col2 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

skipif mysql # not compatible
query I rowsort label-6185
SELECT col0 * - col1 + - col1 * col2 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6186
SELECT ALL + col1 + - col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + col1 + - col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 69 - - col1 FROM tab1
----
79
82
95

query I rowsort
SELECT + col0 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + 72 * - cor0.col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a2271746de2f822c2e7478dd6681881e

query I rowsort
SELECT + 29 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - tab1.col1 * tab1.col0 * - col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT + 76 + + col2 + col0 FROM tab2
----
110
180
193

query I rowsort
SELECT - - col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + 16 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT 62 + col0 AS col1 FROM tab2 AS cor0
----
140
141
69

query I rowsort
SELECT DISTINCT - col1 * - 72 + 46 FROM tab2 AS cor0
----
1270
2278
4294

query I rowsort
SELECT DISTINCT 73 FROM tab1, tab2 cor0, tab1 cor1
----
73

query I rowsort
SELECT ALL + - col2 * ( - 66 ) - col2 AS col2 FROM tab2 AS cor0
----
1690
1755
2470

query I rowsort
SELECT ALL + col0 * - 22 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-120
-1465
-1856

query I rowsort
SELECT - col0 + + ( - cor0.col1 ) FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + 33 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
33

query I rowsort
SELECT DISTINCT - col0 * - col2 - - ( col2 + col2 ) * 7 * + 56 FROM tab1
----
42498
48336
82944

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - - col1 + 91 * col1 * cor0.col2 FROM tab0 AS cor0
----
258344
679133
8924

query I rowsort
SELECT col1 * ( 97 ) + + col0 AS col0 FROM tab1 AS cor0
----
1034
1341
2525

onlyif mysql # use DIV operator for integer division
query I rowsort label-6208
SELECT ALL - col2 DIV - col1 + col1 * - cor0.col2 col1 FROM tab1 AS cor0
----
-1241
-1402
-565

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6208
SELECT ALL - col2 / - col1 + col1 * - cor0.col2 col1 FROM tab1 AS cor0
----
-1241
-1402
-565

query I rowsort
SELECT ALL - col2 * col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT 90 AS col2 FROM tab0 AS cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + - col2 * col0 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - 53 * - col1 FROM tab1 cor0
----
1378
530
689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6214
SELECT CAST( + ( + col2 ) AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6214
SELECT CAST ( + ( + col2 ) AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 * + cor0.col1 + + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT - - 72 + col1 * + col0 FROM tab1 AS cor0
----
1112
150
712

query I rowsort
SELECT DISTINCT col1 * col0 * cor0.col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - col2 * col0 + + ( cor0.col2 ) FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL + 39 * cor0.col0 + col1 FROM tab2 AS cor0
----
304
3098
3101

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6220
SELECT CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6220
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 63 * col0 AS col2 FROM tab0
----
-1512
-2205
-5607

query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 * ( - 33 * - col0 ) AS col0 FROM tab2 AS cor0
----
6268
66983
99083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - + col2 - col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT + 53 * - cor0.col1 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT ALL + - col0 * - col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - col1 * - 4 AS col1 FROM tab1
----
104
40
52

query I rowsort
SELECT tab0.col0 + col0 * - col2 AS col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT - tab1.col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6230
SELECT - CAST( NULL AS DECIMAL ) - ( - col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT - CAST ( NULL AS REAL ) - ( - col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col0 - + col1 AS col2 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT + 29 AS col1 FROM tab0 AS cor0
----
29

query I rowsort
SELECT - 38 AS col2 FROM tab1 AS cor0
----
-38
-38
-38

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87

query I rowsort
SELECT ALL col2 * cor0.col1 + 2 AS col0 FROM tab1 AS cor0
----
1250
1406
572

onlyif mysql # use DIV operator for integer division
query I rowsort label-6236
SELECT + cor0.col1 DIV - CAST( + 69 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6236
SELECT + cor0.col1 / - CAST ( + 69 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - ( - col0 ) FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6239
SELECT ALL CAST( 0 AS SIGNED ) * cor0.col2 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL CAST ( 0 AS INTEGER ) * cor0.col2 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6240
SELECT + - ( + col1 ) + ( - ( col1 ) + col1 ) DIV 88 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6240
SELECT + - ( + col1 ) + ( - ( col1 ) + col1 ) / 88 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ( 54 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT + 31 AS col1 FROM tab1
----
31
31
31

query I rowsort
SELECT col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - cor0.col1 * col0 * - 24 FROM tab2 AS cor0
----
110448
32232
5208

query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT DISTINCT + - col0 + + col1 DIV col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT + - col0 + + col1 / col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT - + 28 + col1 * ( 39 ) FROM tab1 AS cor0
----
362
479
986

onlyif mysql # use DIV operator for integer division
query I rowsort label-6248
SELECT + cor0.col0 DIV cor0.col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6248
SELECT + cor0.col0 / cor0.col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 * tab1.col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 62 * - col2 + - col0 AS col1 FROM tab0
----
-2070
-5173
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col2 FROM tab0, tab1 cor0, tab2 cor1
----
70

query I rowsort
SELECT ALL + 58 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT col2 * col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT - tab2.col2 * 43 * - col0 FROM tab2
----
129086
8127
87204

query I rowsort
SELECT DISTINCT + col1 + col0 + + tab2.col1 FROM tab2
----
113
196
69

query I rowsort
SELECT ALL + col1 - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + ( col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - cor0.col2 + col0 AS col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - + ( - col1 ) * + col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + col2 + - cor0.col1 * col2 * + col2 + ( + col0 ) * + col0 AS col2 FROM tab2 cor0
----
-18269
-22523
-33774

query I rowsort
SELECT ALL + + ( + col2 ) FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6262
SELECT - col0 DIV + 49 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT - col0 / + 49 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT - col1 * + tab0.col1 + + col2 FROM tab0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT - col1 + 93 * - 13 AS col0 FROM tab2
----
-1226
-1240
-1268

onlyif mysql # use DIV operator for integer division
query I rowsort label-6265
SELECT col0 * ( - col2 + col1 ) DIV + col1 AS col0 FROM tab0
----
14
34
8

skipif mysql # not compatible
query I rowsort label-6265
SELECT col0 * ( - col2 + col1 ) / + col1 AS col0 FROM tab0
----
14
34
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col2 FROM tab0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6267
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 + 0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + col0 - col1 * col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL + ( col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL 4 + col0 AS col1 FROM tab1 AS cor0
----
68
7
84

query I rowsort
SELECT ALL - 19 - - tab0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 6e9fb08c3c4687fb8275d2d4415b0b95

query I rowsort
SELECT DISTINCT + ( col2 ) AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - - col1 + - 86 AS col2 FROM tab2 AS cor0
----
-27
-55
-69

query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - - col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT 38 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT + - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - cor0.col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - 43 * cor0.col1 + + col2 FROM tab1 cor0
----
-1064
-373
-463

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6281
SELECT ALL + - CAST( col2 AS SIGNED ) * col1 + - 35 FROM tab1 AS cor0
----
-1283
-1439
-605

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + - CAST ( col2 AS INTEGER ) * col1 + - 35 FROM tab1 AS cor0
----
-1283
-1439
-605

query I rowsort
SELECT DISTINCT - + ( col2 ) FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6283
SELECT + 89 DIV - 70 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6283
SELECT + 89 / - 70 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 1 + col0 AS col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ( ( - col1 ) ) * + 89 AS col0 FROM tab1 cor0
----
-1157
-2314
-890

onlyif mysql # use DIV operator for integer division
query I rowsort label-6286
SELECT DISTINCT + 4 + - col1 DIV col2 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + 4 + - col1 / col2 FROM tab1 AS cor0
----
4

query I rowsort
SELECT ALL - 2 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ( + col0 ) + - col0 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT col0 * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT + col0 DIV col1 + + col2 * col1 FROM tab0 cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6290
SELECT + col0 / col1 + + col2 * col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL 1 + col2 + - col2 FROM tab1
----
1
1
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1 cor1
----
54 values hashing to 341cdc053c309cf3abe57fa060ecf96e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + tab0.col1 col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT ALL - col0 DIV + col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL - col0 / + col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT + - cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col1 * - col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT tab2.col2 + - col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * - col1 - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT col2 * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - col1 * - tab2.col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6304
SELECT ALL col1 DIV col0 AS col2 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6304
SELECT ALL col1 / col0 AS col2 FROM tab1
----
0
0
8

query I rowsort
SELECT col1 + - col0 AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ( + 21 * col1 ) AS col1 FROM tab1
----
210
273
546

query I rowsort
SELECT ( - col1 + tab0.col0 ) AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT ALL - cor0.col0 * col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6309
SELECT ALL + col1 DIV + ( + col1 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + col1 / + ( + col1 ) AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT 25 FROM tab0
----
25

query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ( col2 ) AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - + col1 * cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor0.col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT - 41 + + col0 FROM tab1 AS cor0
----
-38
23
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT - 0 * col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 60 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1440
-2100
-5340

onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT col1 DIV - tab0.col1 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6320
SELECT col1 / - tab0.col1 AS col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 * col0 / - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 + - col0 col1 FROM tab2
----
-45
40
55

query I rowsort
SELECT DISTINCT col0 * - col2 + + col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL col1 + col2 * + col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-6325
SELECT DISTINCT - col1 + - col0 DIV + col1 AS col0 FROM tab2
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT - col1 + - col0 / + col1 AS col0 FROM tab2
----
-21
-31
-60

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN - col0 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6327
SELECT DISTINCT - col2 * col0 DIV + col2 + col2 * - tab0.col2 AS col2 FROM tab0
----
-1113
-36
-6813

skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - col2 * col0 / + col2 + col2 * - tab0.col2 AS col2 FROM tab0
----
-1113
-36
-6813

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * col0 > NULL
----

query I rowsort
SELECT - col0 * - col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL col2 * col2 FROM tab1 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT ALL - tab2.col2 AS col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT DISTINCT col2 * col1 + col2 DIV + col1 AS col1 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT col2 * col1 + col2 / + col1 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + tab1.col0 * tab1.col2 + + col0 * col2 + col0 AS col1 FROM tab1
----
15440
327
7360

onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT + col0 DIV tab0.col2 + col1 AS col0 FROM tab0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-6334
SELECT + col0 / tab0.col2 + col1 AS col0 FROM tab0
----
132
86
92

query I rowsort
SELECT ALL col0 * col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col1 * tab2.col0 * col2 FROM tab2
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * col2 col2 FROM tab0
----
-35
-7298
-792

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col1 * col1 )
----

query I rowsort
SELECT DISTINCT col1 * tab1.col1 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6340
SELECT DISTINCT + col0 * - col0 * + col2 + + col2 + - col0 DIV + col0 FROM tab2
----
-1297
-158159
-237121

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT + col0 * - col0 * + col2 + + col2 + - col0 / + col0 FROM tab2
----
-1297
-158159
-237121

onlyif mysql # use DIV operator for integer division
query I rowsort label-6341
SELECT DISTINCT - col2 DIV col1 + col1 AS col1 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT - col2 / col1 + col1 AS col1 FROM tab1
----
24
5
6

query I rowsort
SELECT DISTINCT - col2 - - tab0.col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT - col2 + + col0 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL - col1 - - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 + + col1 FROM tab2
----
137
38
96

query I rowsort
SELECT + col1 + + col0 * col2 * - col0 AS col2 FROM tab2
----
-1292
-158125
-237141

query I rowsort
SELECT ALL col1 * col1 + tab0.col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT - col0 * + col2 AS col1 FROM tab0 WHERE NOT col2 NOT IN ( col2 * - col0 )
----

query I rowsort
SELECT - col0 * - col1 + + col1 * col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1209
1649
8142

query I rowsort
SELECT + col2 + - col1 + + col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + - col2 + + col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0
----
54 values hashing to 2a7467bc6f55dbb61fbd4aa2bd0646a9

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col1 + col0 AS col1 FROM tab1 cor0
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 5 col1 FROM tab0 AS cor0
----
5
5
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6356
SELECT DISTINCT - col0 DIV - ( col2 ) AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT - col0 / - ( col2 ) AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col0 * + col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6358
SELECT CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 10 + col2 AS col2 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT 61 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
39406
51057
93574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab1 cor0
----
59

query I rowsort
SELECT DISTINCT - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col2 * + col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col2 + tab2.col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT + col0 + ( tab0.col1 ) * tab0.col0 AS col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT col2 - tab0.col1 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT col1 + - ( col0 + + col0 ) AS col0 FROM tab1
----
-118
-147
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT ALL + col0 DIV + tab1.col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + col0 / + tab1.col1 AS col2 FROM tab1
----
0
6
6

query I rowsort
SELECT DISTINCT + col1 * 61 FROM tab0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT + 18 * + 99 AS col2 FROM tab1
----
1782

query I rowsort
SELECT ALL cor0.col0 + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - - 78 FROM tab2 AS cor0
----
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6374
SELECT - col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6374
SELECT - col1 / + col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT - + ( + 88 ) * col0 FROM tab1 AS cor0
----
-264
-5632
-7040

query I rowsort
SELECT DISTINCT + col1 + - col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + - 70 + + col0 * col1 AS col2 FROM tab1 cor0
----
570
8
970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6378
SELECT ALL - CAST( NULL AS SIGNED ) * col0 + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 32 * col0 FROM tab2 AS cor0
----
-224
-2496
-2528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6380
SELECT ALL + CAST( - 84 AS SIGNED ) * col0 FROM tab2 AS cor0
----
-588
-6552
-6636

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL + CAST ( - 84 AS INTEGER ) * col0 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT 96 * col1 * - ( - col1 ) FROM tab2
----
27744
334176
92256

query I rowsort
SELECT 96 + + col2 AS col0 FROM tab2 AS cor0
----
122
123
134

query I rowsort
SELECT col0 * col0 + - 6 FROM tab1 AS cor0
----
3
4090
6394

query I rowsort
SELECT + cor0.col1 * col0 + - ( - col1 ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT DISTINCT - col2 * + 99 AS col1 FROM tab1 AS cor0
----
-5346
-5643
-9504

onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT + col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6386
SELECT + col2 / col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT ALL - cor0.col2 DIV 86 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL - cor0.col2 / 86 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT tab0.col1 + - ( ( + col1 ) ) AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 * - col2 + col2 * col1 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT + col2 * + cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - col2 + ( cor0.col1 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + + col1 * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT DISTINCT + col1 DIV - 26 col1 FROM tab2 cor0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT + col1 / - 26 col1 FROM tab2 cor0
----
-1
-2
0

query I rowsort
SELECT ALL + cor0.col0 + + 42 * col1 FROM tab0 AS cor0
----
3636
3911
4109

query I rowsort
SELECT DISTINCT + - col0 + 62 AS col2 FROM tab1 AS cor0
----
-18
-2
59

query I rowsort
SELECT ALL + 43 * 15 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 403938c697b879ad006fbbc60b05ff31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col0 FROM tab2, tab1 cor0
----
45

query I rowsort
SELECT ALL + - col1 * + col1 - cor0.col1 * col2 * col2 FROM tab1 AS cor0
----
-119977
-32590
-76492

query I rowsort
SELECT ALL col1 * col0 + + 85 FROM tab1 cor0
----
1125
163
725

query I rowsort
SELECT + - col1 * 48 + - 9 * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-546
5280
8736

query I rowsort
SELECT ALL - - col1 + + 12 AS col2 FROM tab0 AS cor0
----
103
109
98

query I rowsort
SELECT DISTINCT + col1 - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col1 * cor0.col2 * cor0.col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT + col2 + 64 FROM tab1 AS cor0
----
118
121
160

query I rowsort
SELECT ALL - col0 * + ( - col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col1 + col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + col2 * - col2 - 89 AS col1 FROM tab0 AS cor0
----
-1178
-6813
-90

query I rowsort
SELECT DISTINCT col1 + + ( + col2 ) * col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT cor0.col1 * + cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - col0 * - col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6412
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6413
SELECT ALL + - col0 DIV col2 + + col2 AS col0 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-6413
SELECT ALL + - col0 / col2 + + col2 AS col0 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT - col1 * 71 FROM tab1 AS cor0
----
-1846
-710
-923

query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT col1 + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT col2 + - col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT + - 36 * col1 DIV col0 + col1 FROM tab0 AS cor0
----
-2
-43
55

skipif mysql # not compatible
query I rowsort label-6418
SELECT + - 36 * col1 / col0 + col1 FROM tab0 AS cor0
----
-2
-43
55

query I rowsort
SELECT ALL + + 10 + - col2 + + col2 AS col0 FROM tab1 cor0
----
10
10
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col1 ) col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + + col0 * col2 + col1 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + 51 * 2 AS col1 FROM tab2 AS cor0
----
102
102
102

query I rowsort
SELECT col0 * 83 + + col1 * - col2 FROM tab2
----
-256
4940
5911

query I rowsort
SELECT ALL cor0.col0 + + col1 * ( - 66 ) AS col2 FROM tab2 AS cor0
----
-1043
-2039
-3816

query I rowsort
SELECT ALL + 30 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT - tab0.col1 + col0 + + col2 AS col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT ALL 7 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT ALL - - ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - 94 AS col1 FROM tab1 AS cor0
----
-94
-94
-94

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query I rowsort
SELECT col2 + 95 AS col0 FROM tab2
----
121
122
133

query I rowsort
SELECT DISTINCT col0 * col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT ( col0 * col0 ) + col2 AS col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL col0 + - col0 + 1 * tab0.col2 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6435
SELECT DISTINCT - col0 * + col1 + + CAST( + col0 + col2 AS SIGNED ) * col1 AS col0 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-6435
SELECT DISTINCT - col0 * + col1 + + CAST ( + col0 + col2 AS INTEGER ) * col1 AS col0 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6436
SELECT - 42 DIV - tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6436
SELECT - 42 / - tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 + col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col2 col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col0 + - ( col1 ) FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 34 col1 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT - col2 + - tab2.col0 + - 54 FROM tab2
----
-158
-171
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT 91 + + tab2.col1 FROM tab2
----
108
122
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT ALL + tab0.col1 + + col1 DIV - col1 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + tab0.col1 + + col1 / - col1 FROM tab0
----
85
90
96

query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab1
----
121
176
57

query I rowsort
SELECT 13 * + col1 FROM tab1
----
130
169
338

query I rowsort
SELECT 50 * + cor0.col0 FROM tab1 AS cor0
----
150
3200
4000

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a

query I rowsort
SELECT DISTINCT col1 * + col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT + col1 + col0 * 87 FROM tab0 cor0
----
2174
3142
7834

query I rowsort
SELECT 27 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT - + col2 + col0 * 86 FROM tab2 AS cor0
----
575
6682
6756

query I rowsort
SELECT - 12 * 20 + - col1 AS col1 FROM tab1
----
-250
-253
-266

query I rowsort
SELECT + 3 * + col1 FROM tab2 AS cor0
----
177
51
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + 7 col0 FROM tab1 AS cor0
----
-47
-50
-89

query I rowsort
SELECT - - col2 * + col1 - - 35 AS col1 FROM tab0 AS cor0
----
132
2873
7497

query I rowsort
SELECT - col0 + + 57 FROM tab0 AS cor0
----
-32
22
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 68 col0 FROM tab0 AS cor0
----
-35
-67
14

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab2, tab0, tab0 AS cor0
----
44

query I rowsort
SELECT ALL 57 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT ALL 55 AS col0 FROM tab0
----
55
55
55

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 AS col2 FROM tab1, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + ( - tab2.col0 ) FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 52 * - col0 col1 FROM tab2 AS cor0
----
371
4134
4187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 col1 FROM tab1 AS cor0
----
-81
-81
-81

query I rowsort
SELECT col2 + + col1 * + col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT - col0 * col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 50 FROM tab0
----
50
50
50

query I rowsort
SELECT 87 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT ALL + 4 * col1 AS col0 FROM tab2
----
124
236
68

query I rowsort
SELECT - - 99 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT ALL + 12 * 53 AS col0 FROM tab1 AS cor0
----
636
636
636

query I rowsort
SELECT ALL - col0 * + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL 18 * 89 AS col1 FROM tab2 AS cor0
----
1602
1602
1602

query I rowsort
SELECT - cor0.col1 + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT - cor2.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 AS cor2
----
243 values hashing to 7f0405f8197238fbd342972ef0bcee12

query I rowsort
SELECT ALL + col0 * - col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + col1 + + 2 AS col1 FROM tab2 cor0
----
19
33
61

query I rowsort
SELECT DISTINCT 47 * col1 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT ( col0 ) FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6482
SELECT ALL - - col2 DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL - - col2 / + cor0.col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + 75 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6484
SELECT - - CAST( NULL AS SIGNED ) col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6484
SELECT - - CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - col2 * + col2 * + col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT col1 * - col1 + ( col0 ) FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL col0 * - col2 * - col0 - col0 FROM tab1 AS cor0
----
233408
483
614320

query I rowsort
SELECT + + 65 FROM tab0 cor0
----
65
65
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6489
SELECT DISTINCT + ( - col1 ) + col2 DIV col2 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-6489
SELECT DISTINCT + ( - col1 ) + col2 / col2 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT DISTINCT - 74 * ( col0 ) + 9 AS col1 FROM tab0
----
-1767
-2581
-6577

query I rowsort
SELECT + col1 + tab1.col1 * col2 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + 32 + + col1 FROM tab0
----
118
123
129

query I rowsort
SELECT - 88 - col1 AS col1 FROM tab2
----
-105
-119
-147

query I rowsort
SELECT DISTINCT col0 + - col0 * + col1 AS col1 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT + col1 * + col0 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + 50 + 21 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT + 55 - - col1 AS col1 FROM tab1
----
65
68
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6499
SELECT col0 + - col1 * + CAST( - col0 AS SIGNED ) * - tab1.col0 AS col1 FROM tab1
----
-231
-40896
-83120

skipif mysql # not compatible
query I rowsort label-6499
SELECT col0 + - col1 * + CAST ( - col0 AS INTEGER ) * - tab1.col0 AS col1 FROM tab1
----
-231
-40896
-83120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6500
SELECT ALL + col1 DIV + col1 + + 61 DIV + col1 + + col2 AS col2 FROM tab2 AS cor0
----
28
29
42

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL + col1 / + col1 + + 61 / + col1 + + col2 AS col2 FROM tab2 AS cor0
----
28
29
42

query I rowsort
SELECT DISTINCT col2 + cor0.col1 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - 0 * col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6503
SELECT + col1 * col0 + 7 DIV col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6503
SELECT + col1 * col0 + 7 / col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + col1 + - col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT + - col2 DIV col1 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6506
SELECT + - col2 / col1 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT - col0 + + col2 * ( + 46 * - col1 ) AS col2 FROM tab2 AS cor0
----
-29795
-38509
-70642

onlyif mysql # use DIV operator for integer division
query I rowsort label-6508
SELECT 7 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT 7 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 74 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL 18 FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT - col1 * 89 FROM tab0
----
-7654
-8099
-8633

query I rowsort
SELECT - 72 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT + - col2 DIV col0 - col2 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-6513
SELECT + - col2 / col0 - col2 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT - + col0 + 46 AS col0 FROM tab0 AS cor0
----
-43
11
22

query I rowsort
SELECT col0 * cor0.col1 * col2 - col0 AS col0 FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT - col1 + ( - col0 + col2 ) AS col0 FROM tab2 cor0
----
-11
-111
-58

query I rowsort
SELECT + - 2 + - col2 AS col1 FROM tab0 AS cor0
----
-3
-35
-84

query I rowsort
SELECT + + ( col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + ( - cor1.col1 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-86
-91
-97

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372

query I rowsort
SELECT - 23 * - 57 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 90f69f0b9db93625609dbd422a4a87fd

query I rowsort
SELECT + col2 * + col2 AS col0 FROM tab2
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6523
SELECT col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col1 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
177471
329314
736927

query I rowsort
SELECT ALL - - 60 + 20 AS col0 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT DISTINCT + 30 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
30

query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 + col0 * - col2 + - cor0.col1 FROM tab2 cor0
----
-2763
-4463
-949

query I rowsort
SELECT ALL + 48 AS col1 FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - col0 * + col0 * - col0 + - col1 AS col0 FROM tab0 cor0
----
13738
42778
704878

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - - cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col0 * 15 AS col0 FROM tab1 AS cor0
----
-1200
-45
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6533
SELECT ALL - col2 * CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 + - cor0.col0 + + col1 * + col2 FROM tab2 cor0
----
1397
550
799

query I rowsort
SELECT DISTINCT - col0 + col1 * - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6536
SELECT - cor0.col2 DIV 62 AS col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT - cor0.col2 / 62 AS col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - + col0 * col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - - col2 + col1 + col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT + col2 + + tab1.col1 FROM tab1
----
109
67
80

query I rowsort
SELECT col1 + - col0 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6541
SELECT ALL col2 * col0 * + col2 + col1 DIV - tab2.col0 + - 19 * - 43 AS col2 FROM tab2
----
114893
53545
5916

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL col2 * col0 * + col2 + col1 / - tab2.col0 + - 19 * - 43 AS col2 FROM tab2
----
114893
53545
5916

query I rowsort
SELECT - col2 + cor0.col0 + col0 * + col2 FROM tab0 AS cor0
----
69
7305
783

query I rowsort
SELECT ALL - + col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + + col2 + 9 * - col0 AS col1 FROM tab2 AS cor0
----
-36
-673
-676

query I rowsort
SELECT cor0.col0 + - 87 + - col2 * col2 FROM tab2 AS cor0
----
-1452
-685
-809

query I rowsort
SELECT + - cor0.col1 * col2 + + ( col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
-2728
-7282
35

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - - col0 * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ( - col2 ) * col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT 21 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT col2 * + col2 + - col0 FROM tab0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT + col0 * tab1.col2 + col2 DIV - col1 AS col0 FROM tab1
----
160
3643
7673

skipif mysql # not compatible
query I rowsort label-6553
SELECT + col0 * tab1.col2 + col2 / - col1 AS col0 FROM tab1
----
160
3643
7673

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - col2 >= NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN col2 + + tab1.col1 * col1 AND col2 * - col0 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) <= - col0
----

query I rowsort
SELECT ALL col1 * col1 + col1 AS col2 FROM tab1 cor0
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-6558
SELECT DISTINCT col2 DIV col0 col0 FROM tab0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT col2 / col0 col0 FROM tab0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT DISTINCT col2 DIV - col0 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT col2 / - col0 FROM tab2
----
-3
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT ALL col2 DIV - col0 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL col2 / - col0 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT tab0.col2 * - col0 * col0 AS col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + col1 + - col1 * + col2 + col1 AS col1 FROM tab1
----
-1222
-1352
-550

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( + col0 * - col1 * tab2.col0 ) >= col2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + tab1.col0 col2 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT ALL col1 + - tab0.col0 * - tab0.col1 * + col2 + - col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL - col1 + col1 + - col0 * col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col1 * col1 * - 19 + - col2 FROM tab0
----
140491
157257
178770

query I rowsort
SELECT + cor0.col2 * 15 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 655f1e904862adb63a36ade99f031c39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT tab0.col1 DIV col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6569
SELECT tab0.col1 / col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 + + tab0.col2 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - col0 * col2 AS col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6572
SELECT ALL - tab0.col0 DIV + tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - tab0.col0 / + tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col1 + col0 * ( + col0 ) + col0 FROM tab2
----
6221
6337
87

query I rowsort
SELECT DISTINCT cor0.col0 * + 62 FROM tab1, tab0 AS cor0
----
1488
2170
5518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 * + col2 col0 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT DISTINCT + 94 FROM tab2 AS cor0
----
94

query I rowsort
SELECT 23 AS col1 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT - col2 * - col0 + - 38 * cor0.col2 FROM tab0 AS cor0
----
-3
-462
4182

query I rowsort
SELECT DISTINCT + - 1 FROM tab2, tab1 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6580
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6581
SELECT - + cor0.col0 DIV - 11 + 70 FROM tab1 AS cor0
----
70
75
77

skipif mysql # not compatible
query I rowsort label-6581
SELECT - + cor0.col0 / - 11 + 70 FROM tab1 AS cor0
----
70
75
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6582
SELECT DISTINCT - col2 * - col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT - col2 * - col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 + + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL + col0 * - col2 - - 51 FROM tab1 AS cor0
----
-111
-3597
-7629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + cor0.col0 col2 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col0 FROM tab2 AS cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT + - cor0.col1 DIV + col0 + ( col2 ) FROM tab1 AS cor0
----
46
57
96

skipif mysql # not compatible
query I rowsort label-6588
SELECT + - cor0.col1 / + col0 + ( col2 ) FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT DISTINCT - col2 + col0 * - col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT 36 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT - cor0.col1 + 7 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a9e865f36320e2141adcc57e0b08d0d9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * col0 + - col0 col0 FROM tab0 AS cor0
----
-118860
-49560
-720900

query I rowsort
SELECT col0 + 67 AS col0 FROM tab2 AS cor0
----
145
146
74

query I rowsort
SELECT DISTINCT col1 * 95 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT ALL col2 * + 88 * - 41 FROM tab1 AS cor0
----
-194832
-205656
-346368

onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT - col2 DIV col0 + 61 * col1 AS col2 FROM tab0 AS cor0
----
5245
5551
5917

skipif mysql # not compatible
query I rowsort label-6597
SELECT - col2 / col0 + 61 * col1 AS col2 FROM tab0 AS cor0
----
5245
5551
5917

query I rowsort
SELECT - 89 AS col2 FROM tab2
----
-89
-89
-89

query I rowsort
SELECT ALL - + 51 + col0 * col2 FROM tab2 AS cor0
----
138
1977
2951

query I rowsort
SELECT 92 AS col0 FROM tab0
----
92
92
92

query I rowsort
SELECT DISTINCT ( col0 ) * + col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT 80 FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL + - col2 + - 53 * + col2 AS col0 FROM tab0 AS cor0
----
-1782
-4428
-54

query I rowsort
SELECT ALL 51 * col2 FROM tab2 AS cor0
----
1326
1377
1938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6605
SELECT - + CAST( cor0.col2 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-6605
SELECT - + CAST ( cor0.col2 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6606
SELECT ALL col1 DIV col2 + + col1 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL col1 / col2 + + col1 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT DISTINCT - ( col2 ) - - col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 * - col1 + - col0 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL + 37 * + 43 AS col2 FROM tab0 AS cor0
----
1591
1591
1591

onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT + cor0.col2 DIV - col0 + - 6 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6611
SELECT + cor0.col2 / - col0 + - 6 / col1 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL - + col0 * - cor0.col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6613
SELECT ALL - - col0 * col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL - - col0 * col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col1 + - 44 AS col2 FROM tab1 AS cor0
----
34
596
996

query I rowsort
SELECT 36 AS col2 FROM tab0 AS cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col1 col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6617
SELECT ALL 1 / + col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL 1 / + col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col1 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - - ( + col1 ) * - 22 AS col1 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT ALL + 21 * col2 - col1 AS col1 FROM tab0 AS cor0
----
-76
1631
607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col0 * - cor0.col1 col1 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col1 FROM tab1 cor0
----
-81
-81
-81

query I rowsort
SELECT ALL + 54 FROM tab0
----
54
54
54

query I rowsort
SELECT ALL 18 FROM tab1, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6625
SELECT ALL + CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - 88 * - 6 FROM tab2, tab0 AS cor0
----
9 values hashing to dc7b5bedbb876282f2aae3ad3e0ee1ab

query I rowsort
SELECT ALL 31 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - 89 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 64 AS REAL ) FROM tab2 AS cor0
----
64
64
64

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to da83d3eeaeb9e24a3cb14bb7058757dd

query I rowsort
SELECT 79 + col2 AS col2 FROM tab2 cor0
----
105
106
117

query I rowsort
SELECT ALL - + ( col0 ) * cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 68 AS REAL ) AS col2 FROM tab0 AS cor0
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - col1 + - cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col1 * + 74 AS col1 FROM tab2 cor0
----
-1258
-2294
-4366

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6640
SELECT - + col0 + CAST( 41 AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
120
2560
3200

skipif mysql # not compatible
query I rowsort label-6640
SELECT - + col0 + CAST ( 41 AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT - col2 * col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT - col2 * ( col0 ) + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT col0 + 81 * - col2 FROM tab1 AS cor0
----
-4371
-4553
-7696

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + col2 * col2 + ( + col0 ) FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col2 * + ( + col1 ) * + col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + ( + tab0.col1 ) AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - + col0 + col1 + + 39 AS col2 FROM tab1 AS cor0
----
-15
-28
62

query I rowsort
SELECT ALL - - col1 * + col2 * 34 FROM tab0 AS cor0
----
253708
3298
96492

onlyif mysql # use DIV operator for integer division
query I rowsort label-6651
SELECT ALL - + col0 DIV + ( + col2 ) + col2 AS col0 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL - + col0 / + ( + col2 ) + col2 AS col0 FROM tab0 AS cor0
----
-34
33
81

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT DISTINCT + col1 + + ( col0 * + col1 + - col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col2 + - 45 AS col1 FROM tab0 AS cor0
----
-12
-44
37

query I rowsort
SELECT ALL col0 * 97 * col2 FROM tab0
----
3395
707906
76824

query I rowsort
SELECT ALL ( 32 ) + + cor0.col1 * 92 AS col1 FROM tab0 AS cor0
----
7944
8404
8956

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - ( + 21 ) + - cor0.col1 FROM tab1 AS cor0
----
-31
-34
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 88 + col2 AS col0 FROM tab1 AS cor0
----
142
145
184

onlyif mysql # use DIV operator for integer division
query I rowsort label-6661
SELECT DISTINCT + 44 DIV col2 FROM tab0 AS cor0
----
0
1
44

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT + 44 / col2 FROM tab0 AS cor0
----
0
1
44

query I rowsort
SELECT DISTINCT + col1 * col1 + ( tab0.col0 ) * 2 FROM tab0
----
7444
8459
9479

query I rowsort
SELECT tab1.col0 + 6 + col0 AS col1 FROM tab1
----
12
134
166

onlyif mysql # use DIV operator for integer division
query I rowsort label-6664
SELECT tab1.col1 DIV - col0 - col2 * - col1 col0 FROM tab1
----
1248
1396
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6664
SELECT tab1.col1 / - col0 - col2 * - col1 col0 FROM tab1
----
1248
1396
570

query I rowsort
SELECT ALL + col0 + 64 AS col2 FROM tab0
----
153
88
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6666
SELECT DISTINCT col0 + CAST( ( + col2 ) AS SIGNED ) * - 4 * col2 AS col0 FROM tab1
----
-11661
-12932
-36784

skipif mysql # not compatible
query I rowsort label-6666
SELECT DISTINCT col0 + CAST ( ( + col2 ) AS INTEGER ) * - 4 * col2 AS col0 FROM tab1
----
-11661
-12932
-36784

query I rowsort
SELECT DISTINCT - col2 + - ( col1 + + col1 ) AS col1 FROM tab1
----
-106
-122
-77

query I rowsort
SELECT + col2 + + 57 FROM tab0
----
139
58
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6669
SELECT DISTINCT + col2 + + col0 * + col1 + - 45 * col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + col2 + + col0 * + col1 + - 45 * col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * col1 + + col2 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6671
SELECT DISTINCT CAST( 86 + - col2 * + col0 AS SIGNED ) FROM tab1
----
-3562
-7594
-76

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT CAST ( 86 + - col2 * + col0 AS INTEGER ) FROM tab1
----
-3562
-7594
-76

query I rowsort
SELECT ALL - 33 * - 70 AS col1 FROM tab0
----
2310
2310
2310

query I rowsort
SELECT ALL - ( - col0 ) AS col2 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT 97 * - col0 + - 20 FROM tab1 AS cor0
----
-311
-6228
-7780

query I rowsort
SELECT + - col0 * + col2 * cor0.col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL - - 69 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT + 35 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT 34 FROM tab0
----
34
34
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT DISTINCT ( + col1 ) DIV col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT ( + col1 ) / col1 FROM tab1
----
1

query I rowsort
SELECT 21 FROM tab2, tab2 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - col2 * + col1 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - 96 * col1 AS col2 FROM tab2
----
-1632
-2976
-5664

query I rowsort
SELECT + col1 * col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT + 94 * - col0 * ( - col1 ) + + col0 - + col1 * + col0 * - cor0.col2 FROM tab2 AS cor0
----
177355
26264
552318

query I rowsort
SELECT col1 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - - col2 * col1 + + col1 * 54 FROM tab0 AS cor0
----
12376
5335
7482

query I rowsort
SELECT 2 + col0 AS col1 FROM tab2 AS cor0
----
80
81
9

query I rowsort
SELECT col1 + - col1 * - col2 * 5 FROM tab1
----
2860
6253
7046

query I rowsort
SELECT 7 * - col1 * - col2 FROM tab1
----
3990
8736
9828

query I rowsort
SELECT DISTINCT col0 + - ( col1 + - col2 ) * + 35 AS col2 FROM tab0
----
-1831
-226
-3325

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab1.col0 col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - 75 AS col1 FROM tab2
----
-75
-75
-75

query I rowsort
SELECT col0 + tab2.col0 * col0 AS col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT DISTINCT 14 + col0 * col2 FROM tab0
----
49
7312
806

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) + - ( + col2 ) * - tab1.col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT 36 FROM tab1 cor0
----
36

query I rowsort
SELECT 75 * - col1 - cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
-2112
-4398
-8655

query I rowsort
SELECT - - 76 + + col0 AS col1 FROM tab1 AS cor0
----
140
156
79

query I rowsort
SELECT + + col2 * - cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - 76 + + col2 FROM tab2 AS cor0
----
-38
-49
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT ALL col1 DIV col1 + + 30 FROM tab1 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL col1 / col1 + + 30 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - + cor0.col0 - col2 * col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) * ( col2 ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6707
SELECT DISTINCT + ( - col1 ) DIV col1 + + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT + ( - col1 ) / col1 + + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT ALL cor0.col1 * - col2 + col2 * - col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT ALL - + col0 * col1 + 81 AS col0 FROM tab1 AS cor0
----
-559
-959
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 22 + cor0.col0 col1 FROM tab2 AS cor0
----
-15
56
57

query I rowsort
SELECT DISTINCT + - ( col1 ) * - ( col2 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 8 * - col1 + + tab1.col0 FROM tab1
----
-16
-205
-24

query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab0, tab0 AS cor0
----
-79

query I rowsort
SELECT ALL - col0 + col1 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT 74 + + col2 AS col2 FROM tab2
----
100
101
112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT - - ( + col2 ) DIV 33 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6716
SELECT - - ( + col2 ) / 33 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col0 * cor0.col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + col1 * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6720
SELECT ALL col2 * - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL col2 * - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + + cor0.col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + col2 + 95 AS col2 FROM tab1 AS cor0
----
149
152
191

query I rowsort
SELECT + + col2 * - ( - col2 ) * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + + col2 + - cor0.col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + - col1 + col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97

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 + col2 * + col0 col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL - tab0.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6729
SELECT DISTINCT - - col0 * CAST( NULL AS SIGNED ) + col1 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT - - col0 * CAST ( NULL AS INTEGER ) + col1 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + 30 AS col0 FROM tab0 AS cor0
----
-56
-61
-67

query I rowsort
SELECT ALL col0 * + 82 AS col0 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT ALL + col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + cor0.col1 - ( - cor0.col1 ) AS col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - col2 * - ( col1 ) - - col1 * + 31 FROM tab2 AS cor0
----
1173
1798
3363

query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + tab2.col2 - tab2.col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - + col1 + + col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT col2 + col0 DIV + col2 col0 FROM tab0 AS cor0
----
33
36
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6738
SELECT col2 + col0 / + col2 col0 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT DISTINCT - - 4 FROM tab1 AS cor0
----
4

query I rowsort
SELECT 39 * col2 FROM tab2 AS cor0
----
1014
1053
1482

query I rowsort
SELECT DISTINCT - ( + 14 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-238
-434
-826

query I rowsort
SELECT ALL 98 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * + col0 + + tab0.col2 * + tab0.col1 - - 93 col0 FROM tab0
----
1415
15476
3507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 46 + + 92 col0 FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to dfb10745470c658050815d80dd467405

query I rowsort
SELECT 16 * + col2 FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT - col2 * 95 AS col1 FROM tab0 AS cor0
----
-3135
-7790
-95

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + ( + 19 ) FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - 13 * col0 AS col0 FROM tab0 AS cor0
----
-1157
-312
-455

query I rowsort
SELECT ( 95 ) * col0 FROM tab1 AS cor0
----
285
6080
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6752
SELECT + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6752
SELECT + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col2 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - col1 + + col0 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - - col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col1 * + 35 AS col1 FROM tab2
----
-1085
-2065
-595

query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242

query I rowsort
SELECT cor0.col0 * + col2 + - 74 AS col2 FROM tab0 AS cor0
----
-39
718
7224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 61 * + col0 * col0 col1 FROM tab2 AS cor0
----
-2989
-371124
-380701

query I rowsort
SELECT col0 * - col0 AS col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL tab1.col2 + 57 FROM tab1, tab1 cor0
----
9 values hashing to 2caa5bde633830082d14373d28dcc1a9

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1, tab1 cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

query I rowsort
SELECT DISTINCT - cor0.col1 + + col0 * col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6764
SELECT DISTINCT + + col1 * CAST( - col1 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT + + col1 * CAST ( - col1 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
97

query I rowsort
SELECT + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col1 + 49 FROM tab2 cor0
----
108
66
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col0 * + 49 FROM tab2 AS cor0
----
343
3822
3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( 44 * + col1 + col1 ) col2 FROM tab0 AS cor0
----
332820
372645
423405

query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b

query I rowsort
SELECT + col0 * col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col0 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT ( tab2.col2 ) DIV + col0 AS col2 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6774
SELECT ( tab2.col2 ) / + col0 AS col2 FROM tab2
----
0
0
3

query I rowsort
SELECT DISTINCT 12 FROM tab1
----
12

query I rowsort
SELECT DISTINCT 41 FROM tab1
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6777
SELECT DISTINCT - 67 + col0 DIV + 32 AS col0 FROM tab0
----
-65
-66
-67

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT - 67 + col0 / + 32 AS col0 FROM tab0
----
-65
-66
-67

query I rowsort
SELECT - col1 * - col2 + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + 11 * col2 FROM tab1 cor0
----
1056
594
627

query I rowsort
SELECT - - col2 * + col0 + + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col1 + - col2 * 56 AS col1 FROM tab0 AS cor0
----
-1762
-4501
41

query I rowsort
SELECT col0 * - 75 * - col2 FROM tab0
----
2625
547350
59400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6783
SELECT col1 DIV 60 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6783
SELECT col1 / 60 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT - col2 * - ( col2 ) AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT 3 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
3

query I rowsort
SELECT DISTINCT col0 - + col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 75 FROM tab2, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT - col1 + - ( + col2 ) FROM tab0 AS cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * cor0.col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ( 50 ) * + col2 AS col1 FROM tab1 AS cor0
----
2700
2850
4800

query I rowsort
SELECT + col1 * + col1 - - col1 * + col0 AS col1 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT ALL 41 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT col1 * col2 - + col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT + - col2 * col1 + + col2 * - 8 FROM tab1 AS cor0
----
-1026
-1836
-2016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6797
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 12 col0 FROM tab0, tab2, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT CAST ( NULL AS REAL ) * 12 col0 FROM tab0, tab2, tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6798
SELECT DISTINCT - CAST( NULL AS SIGNED ) - tab2.col1 col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - tab2.col1 col0 FROM tab2
----
NULL

query I rowsort
SELECT 89 + col2 * tab2.col2 - col1 AS col1 FROM tab2
----
1516
706
787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 * col2 - - col1 col1 FROM tab0
----
-1762
-4501
41

query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6802
SELECT DISTINCT - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - ( - col0 ) FROM tab1 cor0
----
3
64
80

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830

query I rowsort
SELECT - ( cor0.col1 ) + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + + col1 - - col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + ( - col1 ) + + col1 * + 90 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT DISTINCT - col2 + col1 * col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL col0 * cor0.col2 AS col0 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT + col2 DIV - cor0.col0 + + 28 AS col2 FROM tab2 AS cor0
----
25
28
28

skipif mysql # not compatible
query I rowsort label-6810
SELECT + col2 / - cor0.col0 + + 28 AS col2 FROM tab2 AS cor0
----
25
28
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT ALL + col1 DIV - col0 + + 55 + 13 FROM tab1 AS cor0
----
60
68
68

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL + col1 / - col0 + + 55 + 13 FROM tab1 AS cor0
----
60
68
68

query I rowsort
SELECT + + cor0.col1 + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - col0 + - col2 AS col0 FROM tab1 cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 + col0 * 11 * + col0 - + col1 col0 FROM tab0 AS cor0
----
13400
6272
87062

query I rowsort
SELECT DISTINCT - 68 + col0 AS col1 FROM tab0 AS cor0
----
-33
-44
21

query I rowsort
SELECT - col2 * col1 * - col1 + col2 AS col0 FROM tab2 cor0
----
11020
25974
90532

query I rowsort
SELECT DISTINCT - - col1 + col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6818
SELECT ALL + col0 * cor0.col2 DIV - col1 - col0 FROM tab2 AS cor0
----
-112
-13
-255

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL + col0 * cor0.col2 / - col1 - col0 FROM tab2 AS cor0
----
-112
-13
-255

query I rowsort
SELECT ALL + 54 AS col0 FROM tab0
----
54
54
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( col1 ) - ( + col0 ) * col2 * + col1 col1 FROM tab1
----
-101088
-37050
-5616

query I rowsort
SELECT ALL + - cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 75 AS col1 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + 67 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT ALL 90 + - cor0.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 93a6deec4d89bb1e2b552c076bf2920b

query I rowsort
SELECT + cor0.col1 + + 96 * + col1 FROM tab2 AS cor0
----
1649
3007
5723

query I rowsort
SELECT ALL + + cor0.col0 FROM tab1 cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6828
SELECT col2 + + CAST( NULL AS SIGNED ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT col2 + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * - 64 FROM tab2 AS cor0
----
-1088
-1984
-3776

query I rowsort
SELECT col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col2 * ( + 58 ) AS col1 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT ALL + 25 * col0 AS col1 FROM tab2
----
175
1950
1975

query I rowsort
SELECT ALL col0 + 71 * - 68 FROM tab0 AS cor0
----
-4739
-4793
-4804

query I rowsort
SELECT ALL - cor0.col1 * 50 AS col1 FROM tab2 cor0
----
-1550
-2950
-850

query I rowsort
SELECT - 93 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1436
-310
-4695

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + ( + col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col0 + + ( - col2 ) FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6839
SELECT ALL col2 DIV tab2.col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL col2 / tab2.col0 AS col0 FROM tab2
----
0
0
3

query I rowsort
SELECT ALL + ( col0 ) * col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT + - col1 * 41 - cor0.col0 FROM tab2 AS cor0
----
-1278
-2497
-776

query I rowsort
SELECT - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - col2 * - col1 - 88 FROM tab1
----
1160
1316
482

query I rowsort
SELECT - - cor0.col0 + 68 AS col1 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to cf1f4ea8c014744ce957dfb36a77a1c2

query I rowsort
SELECT + 38 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT ALL col2 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT col2 * col1 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - + 83 + col0 AS col0 FROM tab1 cor0
----
-19
-3
-80

query I rowsort
SELECT tab0.col2 + col2 * - 1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT col0 DIV + col2 + tab0.col0 * + 86 AS col1 FROM tab0
----
2064
3045
7655

skipif mysql # not compatible
query I rowsort label-6850
SELECT col0 / + col2 + tab0.col0 * + 86 AS col1 FROM tab0
----
2064
3045
7655

query I rowsort
SELECT ALL col0 * col0 AS col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT DISTINCT - ( col0 + ( - col2 ) ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT - + col1 + ( + 27 ) FROM tab1 AS cor0
----
1
14
17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6854
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + 40 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
117
2496
3120

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1, tab2 cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT - ( 68 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6858
SELECT DISTINCT + col0 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT + col0 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - - col1 + 63 AS col2 FROM tab1 AS cor0
----
73
76
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6862
SELECT ALL + col0 * col1 DIV - col1 + col2 * col2 col2 FROM tab0 AS cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL + col0 * col1 / - col1 + col2 * col2 col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT + - cor0.col0 * - ( 52 ) * col2 + 93 + col0 * col2 FROM tab2 AS cor0
----
10110
107577
159199

query I rowsort
SELECT ALL + col1 * 78 + + cor0.col1 FROM tab2 AS cor0
----
1343
2449
4661

query I rowsort
SELECT - col1 + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + ( - ( - col2 ) ) * - cor0.col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - + col2 * 85 FROM tab2 AS cor0
----
-2210
-2295
-3230

query I rowsort
SELECT + - col2 - 51 FROM tab1 AS cor0
----
-105
-108
-147

query I rowsort
SELECT DISTINCT col2 * + 64 + + 50 FROM tab2 AS cor0
----
1714
1778
2482

query I rowsort
SELECT - + col1 * ( col1 ) + - col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT - col0 * col1 * + col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL 21 FROM tab2, tab1 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + - 28 FROM tab1 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL - col2 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL 12 + cor0.col0 AS col0 FROM tab2 AS cor0
----
19
90
91

query I rowsort
SELECT ( - cor0.col2 ) + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - cor0.col2 AS REAL ) + col2 * col2 * + 75 AS col1 FROM tab0 AS cor0
----
504218
74
81642

query I rowsort
SELECT ALL col0 * col1 + col1 + - col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6879
SELECT ALL + - 79 DIV 75 - + col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL + - 79 / 75 - + col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6880
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - 72 + col1 * - col0 FROM tab0 AS cor0
----
-1992
-3323
-8027

query I rowsort
SELECT DISTINCT ( 2 ) + - col1 AS col0 FROM tab1 cor0
----
-11
-24
-8

query I rowsort
SELECT DISTINCT - col2 + + ( col2 * col0 ) + - col1 * + cor0.col2 * - 30 AS col2 FROM tab0 AS cor0
----
231076
2944
85899

query I rowsort
SELECT - - ( col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - - col0 * col0 - - col2 * - ( + col2 * cor0.col2 + - 36 ) AS col1 FROM tab2 AS cor0
----
-10556
-18662
-47263

query I rowsort
SELECT ALL col2 * ( + col0 + - col1 ) * col2 AS col0 FROM tab0 cor0
----
-13448
-62
-67518

query I rowsort
SELECT ALL - 42 AS col2 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT 56 FROM tab1 cor0
----
56

query I rowsort
SELECT ALL - 82 * + col1 * + col2 FROM tab2 AS cor0
----
-125788
-52972
-68634

query I rowsort
SELECT - col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT cor0.col0 - + col0 AS col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * col2 + col0 + + col1 * + col1 col0 FROM tab1 AS cor0
----
-406
-725
-999

query I rowsort
SELECT ALL 25 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-6894
SELECT - 52 + + col0 DIV - CAST( 36 + - col1 AS SIGNED ) FROM tab2 AS cor0
----
-49
-53
-56

skipif mysql # not compatible
query I rowsort label-6894
SELECT - 52 + + col0 / - CAST ( 36 + - col1 AS INTEGER ) FROM tab2 AS cor0
----
-49
-53
-56

query I rowsort
SELECT + + 19 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-45
-61
16

query I rowsort
SELECT DISTINCT col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT DISTINCT - col2 * col2 - - col1 DIV col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT - col2 * col2 - - col1 / col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ( + cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col1 + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + 53 FROM tab1, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + col0 * - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6904
SELECT ALL - + cor0.col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - + cor0.col2 / - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col0 + - cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158

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 - 16 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-16

query I rowsort
SELECT 55 * - 46 FROM tab1, tab2 AS cor0
----
9 values hashing to 8411d50d5a17bf73ee0c928ff9f9bbb1

query I rowsort
SELECT col0 * - ( + cor0.col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab0
----
35

query I rowsort
SELECT - + cor0.col2 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT DISTINCT 27 FROM tab0, tab1 AS cor0, tab0 cor1
----
27

query I rowsort
SELECT + - col0 * + col2 * col0 + + ( + col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-1224
-17919
-642798

onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT + CAST( 86 AS SIGNED ) * cor0.col2 DIV - col0 + + col1 FROM tab1 AS cor0
----
-1522
-66
-90

skipif mysql # not compatible
query I rowsort label-6916
SELECT + CAST ( 86 AS INTEGER ) * cor0.col2 / - col0 + + col1 FROM tab1 AS cor0
----
-1522
-66
-90

query I rowsort
SELECT ALL + 76 + - cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4d8715a542d1d6a33302b02c4e22dcd0

query I rowsort
SELECT + - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 0 - 44 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 9c887509d218271b9365009eba440976

query I rowsort
SELECT - 45 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6922
SELECT col1 + tab2.col2 DIV col0 + + col2 FROM tab2
----
55
61
85

skipif mysql # not compatible
query I rowsort label-6922
SELECT col1 + tab2.col2 / col0 + + col2 FROM tab2
----
55
61
85

query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
-31

query I rowsort
SELECT ALL - + cor2.col2 + - 77 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 5931ae39452b9ee90b279a4a34f60892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 82 col0 FROM tab1
----
246
5248
6560

query I rowsort
SELECT + 81 * - 87 * + tab2.col2 FROM tab2
----
-183222
-190269
-267786

query I rowsort
SELECT 74 FROM tab2, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT - tab2.col1 * col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col2 * col0 * - col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT 12 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT - + ( cor0.col1 ) + col0 * col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6933
SELECT DISTINCT - + col1 * ( - col0 * - CAST( col0 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT - + col1 * ( - col0 * - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL - col2 * - col0 * col1 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL + 50 * col2 FROM tab0
----
1650
4100
50

query I rowsort
SELECT ( + ( - col2 ) ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + 49 + + col1 AS col2 FROM tab1 cor0
----
59
62
75

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6939
SELECT + ( + col2 ) * - col0 * + col1 + - ( col0 ) * ( - col1 + + col0 ) * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT + ( + col2 ) * - col0 * + col1 + - ( col0 ) * ( - col1 + + col0 ) * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 68 + - 83 * col2 col1 FROM tab2 cor0
----
-2090
-2173
-3086

query I rowsort
SELECT + col1 * 11 + col2 FROM tab1 AS cor0
----
167
239
340

query I rowsort
SELECT - col0 * + col1 * col2 - 48 FROM tab1 AS cor0
----
-36528
-4260
-99888

onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT - col0 + - tab1.col0 DIV + col0 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-6943
SELECT - col0 + - tab1.col0 / + col0 FROM tab1
----
-4
-65
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT col1 * + 96 + - cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
0
1092
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col2 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT + cor0.col0 * - ( - col0 ) - + col1 * - col0 FROM tab1 AS cor0
----
4736
7440
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6948
SELECT ALL + + CAST( NULL AS SIGNED ) + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT ALL + + CAST ( NULL AS INTEGER ) + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6949
SELECT DISTINCT + col2 * + col1 + col1 - CAST( NULL AS DECIMAL ) / col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT + col2 * + col1 + col1 - CAST ( NULL AS REAL ) / col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - ( col0 ) * col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT ( col0 ) + - 59 * + col1 FROM tab1 AS cor0
----
-1531
-526
-687

query I rowsort
SELECT DISTINCT + col0 + + col1 * + col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + tab0.col2 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - 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 + - col2 * col2 * + col0 col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT - + col2 * + col0 + + 5 AS col1 FROM tab0 AS cor0
----
-30
-7293
-787

query I rowsort
SELECT 88 AS col2 FROM tab1
----
88
88
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6959
SELECT DISTINCT tab0.col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT tab0.col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - tab2.col0 AS col1 FROM tab2, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col1 * 19 * - col2 FROM tab2
----
12274
15903
29146

onlyif mysql # use DIV operator for integer division
query I rowsort label-6962
SELECT 47 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6962
SELECT 47 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 29 * - cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT ALL - ( col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT col0 - ( - 67 * col2 ) AS col0 FROM tab2
----
1816
1820
2625

query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1 WHERE NOT NULL <= NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6967
SELECT DISTINCT CAST( - cor0.col0 AS SIGNED ) FROM tab1, tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT CAST ( - cor0.col0 AS INTEGER ) FROM tab1, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL ( + col2 ) + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - col0 - 9 * - col0 FROM tab1
----
24
512
640

query I rowsort
SELECT ALL col2 - - tab2.col2 FROM tab2
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col0 FROM tab1, tab1 AS cor0
----
62

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 1260d4dbe7a8d809e8010586a3c398c5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6973
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * 73 AS col0 FROM tab1 AS cor0
----
-1898
-730
-949

onlyif mysql # use DIV operator for integer division
query I rowsort label-6975
SELECT ALL - 98 + col1 DIV + col0 FROM tab1 cor0
----
-90
-98
-98

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL - 98 + col1 / + col0 FROM tab1 cor0
----
-90
-98
-98

query I rowsort
SELECT + 72 * 41 FROM tab0 AS cor0
----
2952
2952
2952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6977
SELECT DISTINCT + CAST( + 65 AS SIGNED ) * col0 col2 FROM tab1 AS cor0
----
195
4160
5200

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6977
SELECT DISTINCT + CAST ( + 65 AS INTEGER ) * col0 col2 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT ALL + 58 AS col1 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab2 AS cor0
----
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6980
SELECT ALL CAST( NULL AS SIGNED ) * - 65 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL CAST ( NULL AS INTEGER ) * - 65 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col2 * + 65 AS col0 FROM tab1
----
3536
3715
6253

query I rowsort
SELECT DISTINCT + col0 * col2 + + col0 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL - cor0.col0 + + ( - 28 * col2 ) + + col2 FROM tab0 AS cor0
----
-2303
-62
-915

query I rowsort
SELECT DISTINCT col2 * + 26 AS col2 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT ALL - + col0 * + col1 + 66 * col2 AS col0 FROM tab2 AS cor0
----
-2886
1165
1565

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 DISTINCT - + cor0.col0 * ( col0 ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL col2 + - cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT col0 + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 * + col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1621
2600
55

query I rowsort
SELECT - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6993
SELECT ALL - - col2 + col2 DIV + col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - - col2 + col2 / + col1 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT DISTINCT + - col0 * col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - col2 * + tab1.col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + - col0 * col1 + - col2 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - + col1 * + ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col2 * - 85 AS col0 FROM tab2 AS cor0
----
-2210
-2295
-3230

onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT ALL - - cor0.col1 DIV col1 + ( col2 + + col1 ) AS col2 FROM tab0 AS cor0
----
120
174
99

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL - - cor0.col1 / col1 + ( col2 + + col1 ) AS col2 FROM tab0 AS cor0
----
120
174
99

query I rowsort
SELECT col0 + + col0 * ( + col0 * col0 ) AS col0 FROM tab1 AS cor0
----
262208
30
512080

query I rowsort
SELECT - - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 56 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7005
SELECT ALL - col1 + + col1 * - CAST( + ( col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-110
-182
-702

skipif mysql # not compatible
query I rowsort label-7005
SELECT ALL - col1 + + col1 * - CAST ( + ( col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT - - cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 93 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT ALL + + ( + col2 ) FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT col1 DIV col2 AS col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7009
SELECT col1 / col2 AS col2 FROM tab0
----
1
2
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 NOT IN ( tab1.col1 )
----

query I rowsort
SELECT + col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - - 51 AS col0 FROM tab1 AS cor0
----
51
51
51

query I rowsort
SELECT tab1.col2 AS col1 FROM tab1 WHERE NULL NOT IN ( col1 - col1 * - col1 )
----

query I rowsort
SELECT ALL - 2 * + col2 AS col0 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL - 31 AS col0 FROM tab2
----
-31
-31
-31

query I rowsort
SELECT ALL col0 * + col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - 91 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT - + col1 * + 55 AS col0 FROM tab1 AS cor0
----
-1430
-550
-715

query I rowsort
SELECT + 17 FROM tab1
----
17
17
17

query I rowsort
SELECT ALL - 60 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT + col2 * tab0.col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL col2 + - col2 + + col0 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT col2 * col1 + col1 * - col0 DIV - col0 + col2 * tab2.col2 FROM tab2
----
1597
2107
2269

skipif mysql # not compatible
query I rowsort label-7024
SELECT col2 * col1 + col1 * - col0 / - col0 + col2 * tab2.col2 FROM tab2
----
1597
2107
2269

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + col2 * col2 + col2 FROM tab1
----
2970
3306
9312

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <> col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL - col1 - + col2 * tab2.col0 * + col2 AS col0 FROM tab2
----
-114093
-5134
-52787

query I rowsort
SELECT DISTINCT tab0.col0 + + tab0.col0 + - col2 FROM tab0
----
15
69
96

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT IN ( - col0 * - col0 + - col1 + + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL tab2.col2 * + tab2.col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col0 * col1 + + col1 + - col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT col1 * + col2 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + col0 + + col2 AS col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT - col0 DIV - col1 + col0 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7035
SELECT - col0 / - col1 + col0 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + col2 / + col1 FROM tab2 WHERE ( + col2 + col0 ) = + col2 + - col1
----

query I rowsort
SELECT ALL col0 * tab1.col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + tab2.col1 AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( col1 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7039
SELECT ALL col2 DIV + col2 + tab0.col2 * col0 * col0 + - col2 FROM tab0
----
1225
18976
649441

skipif mysql # not compatible
query I rowsort label-7039
SELECT ALL col2 / + col2 + tab0.col2 * col0 * col0 + - col2 FROM tab0
----
1225
18976
649441

query I rowsort
SELECT ALL - col0 * + col1 AS col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT - col0 DIV + col1 AS col2 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7041
SELECT - col0 / + col1 AS col2 FROM tab1
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT col2 * + col0 AS col2 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + col2 * col2 - col2 * + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + tab1.col0 FROM tab1
----
121
176
57

query I rowsort
SELECT + col2 * col2 + col0 AS col1 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL col1 * - col0 + + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT tab2.col0 + + col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col1 + col1 * tab1.col2 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT col2 + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + col2 + + col1 * col1 AS col0 FROM tab2
----
327
3507
988

query I rowsort
SELECT DISTINCT - col2 + - col0 * col1 AS col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT col2 + + col0 * + tab0.col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT + col0 * col2 + col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT - col2 + + tab0.col0 FROM tab0 WHERE NOT col1 < col2
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT ALL + tab1.col0 + col2 DIV - col1 FROM tab1
----
1
59
73

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + tab1.col0 + col2 / - col1 FROM tab1
----
1
59
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7058
SELECT DISTINCT col2 + tab1.col1 DIV + col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT col2 + tab1.col1 / + col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - 50 FROM tab1, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT + ( - 67 * + col0 ) AS col1 FROM tab1
----
-201
-4288
-5360

query I rowsort
SELECT 19 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL - + col0 * 18 AS col2 FROM tab2 AS cor0
----
-126
-1404
-1422

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + 9 AS REAL ) * col1 + - ( + col1 ) col1 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT 34 FROM tab1, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT + col1 * - tab2.col0 * col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT + col1 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT + col0 * col2 * 14 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
115200
2430
54720

query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - + 6 + - col2 FROM tab1 AS cor0
----
-102
-60
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT + col1 DIV col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7070
SELECT + col1 / col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 + + cor0.col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT - 2 + col2 AS col2 FROM tab0 AS cor0
----
-1
31
80

query I rowsort
SELECT - 59 * + col1 + col2 + col0 FROM tab1 cor0
----
-1477
-469
-591

onlyif mysql # use DIV operator for integer division
query I rowsort label-7074
SELECT + col2 DIV col0 + col1 AS col1 FROM tab2 cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-7074
SELECT + col2 / col0 + col1 AS col1 FROM tab2 cor0
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT - ( + col0 ) DIV ( - col2 ) FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7075
SELECT - ( + col0 ) / ( - col2 ) FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT col2 + col0 * - ( - cor0.col0 ) FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT ALL + col1 * - ( + col2 ) + col1 * - col2 FROM tab0 AS cor0
----
-14924
-194
-5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-7078
SELECT + col2 DIV + col0 - col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-7078
SELECT + col2 / + col0 - col0 FROM tab2 AS cor0
----
-4
-78
-79

query I rowsort
SELECT cor0.col1 * col1 + + col1 AS col0 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT ALL + col2 * 97 * + 83 FROM tab2 AS cor0
----
209326
217377
305938

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
-26
-27
-38

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 8e89a67df0eeeac4bb0eedb403f6bb3e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * - col2 col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT - col0 * col2 * + col2 + + col1 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT DISTINCT cor0.col2 + 60 FROM tab2 AS cor0
----
86
87
98

query I rowsort
SELECT col1 - - ( + col0 ) AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - col0 * - col0 AS col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT - col2 + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7089
SELECT CAST( col1 AS SIGNED ) * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7089
SELECT CAST ( col1 AS INTEGER ) * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - 53 + - col0 AS col2 FROM tab0 AS cor0
----
-142
-77
-88

query I rowsort
SELECT ALL 28 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT + 64 FROM tab2 cor0
----
64
64
64

query I rowsort
SELECT + 22 * - col1 FROM tab0 AS cor0
----
-1892
-2002
-2134

query I rowsort
SELECT + tab2.col2 + - col2 * + col1 + + col2 AS col2 FROM tab2
----
-1482
-570
-783

query I rowsort
SELECT - cor0.col0 * - 92 FROM tab0, tab1 AS cor0
----
9 values hashing to d9f91b4f2fe0b891f0f8ae75454401ec

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to e7ea8a30caeb35409d15d2ce0abbd5a6

query I rowsort
SELECT ALL 95 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT - tab1.col0 * - col0 - + col2 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT + cor0.col1 + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT 64 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT ALL - + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + - col2 * + 87 FROM tab1 AS cor0
----
-4698
-4959
-8352

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - col2 ) col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT 73 + + col0 * - col2 + - 99 * 84 FROM tab2 AS cor0
----
-10271
-11245
-8432

onlyif mysql # use DIV operator for integer division
query I rowsort label-7105
SELECT + cor0.col2 DIV - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7105
SELECT + cor0.col2 / - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + 70 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT 92 FROM tab2, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - - 70 * col0 FROM tab1 AS cor0
----
210
4480
5600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7109
SELECT - + CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT - + CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 49 + + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2a78a473c5c68bf77fdd9420edcac638

query I rowsort
SELECT - - cor0.col0 + + col1 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col0 + ( + col2 ) col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL ( - col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL ( - 99 ) AS col1 FROM tab0
----
-99
-99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * col1 * col0 col2 FROM tab1
----
5760
702
9360

query I rowsort
SELECT ALL + 47 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

query I rowsort
SELECT + col1 - 59 AS col2 FROM tab1
----
-33
-46
-49

query I rowsort
SELECT DISTINCT - 38 FROM tab1
----
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7119
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7119
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col2 * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT col2 + col1 + - col2 DIV + col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-7121
SELECT col2 + col1 + - col2 / + col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT DISTINCT col0 DIV - col0 + cor0.col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT col0 / - col0 + cor0.col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col1 * - col2 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL 64 FROM tab1, tab2 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL 16 * col1 FROM tab2
----
272
496
944

query I rowsort
SELECT - 82 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

query I rowsort
SELECT DISTINCT 98 FROM tab1
----
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7130
SELECT 12 DIV + col2 + + 21 AS col2 FROM tab1
----
21
21
21

skipif mysql # not compatible
query I rowsort label-7130
SELECT 12 / + col2 + + 21 AS col2 FROM tab1
----
21
21
21

query I rowsort
SELECT - col2 - col1 AS col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT - col2 - col0 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT + 31 AS col2 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + 88 FROM tab0 cor0
----
88

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col1 * col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 + - col1 - - col2 AS col1 FROM tab0
----
-20
-95
73

query I rowsort
SELECT DISTINCT + 13 FROM tab2, tab1 AS cor0
----
13

query I rowsort
SELECT DISTINCT col2 - col0 * 43 AS col0 FROM tab0
----
-1504
-3745
-999

query I rowsort
SELECT DISTINCT col0 * ( col1 ) - col1 * col1 AS col1 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT ALL - col0 - - 25 AS col0 FROM tab1
----
-39
-55
22

query I rowsort
SELECT - col0 * - ( - col0 * col1 ) + ( - ( col2 ) ) + ( ( - col0 ) ) FROM tab2
----
-106214
-1553
-359060

query I rowsort
SELECT + col0 + + col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col2 col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 + - cor0.col1 + ( + col2 * - col2 ) FROM tab0 AS cor0
----
-383
-63
483

query I rowsort
SELECT + - col2 + col1 * col1 + ( 63 ) AS col0 FROM tab2 AS cor0
----
314
3518
997

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT col0 + - col1 + + col0 AS col2 FROM tab0 cor0
----
-27
-38
87

query I rowsort
SELECT DISTINCT 85 FROM tab2 AS cor0
----
85

query I rowsort
SELECT + + col1 + - ( + col2 ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + - cor0.col1 * - col2 * col1 + 34 + + col0 AS col0 FROM tab0 AS cor0
----
244126
679165
9478

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT ( col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - cor0.col0 + 30 * col0 FROM tab2 AS cor0
----
203
2262
2291

onlyif mysql # use DIV operator for integer division
query I rowsort label-7156
SELECT - col0 * + col1 + col2 + + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-2029
-3297
-8016

skipif mysql # not compatible
query I rowsort label-7156
SELECT - col0 * + col1 + col2 + + col1 / col2 AS col1 FROM tab0 AS cor0
----
-2029
-3297
-8016

query I rowsort
SELECT col2 * 74 AS col1 FROM tab1 AS cor0
----
3996
4218
7104

onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT DISTINCT + col2 DIV + col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + col2 / + col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col2 * - 93 FROM tab1 AS cor0
----
-5022
-5301
-8928

query I rowsort
SELECT ALL + col2 * tab2.col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL col2 + + cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col1 + - cor0.col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT col0 + 18 AS col0 FROM tab1 cor0
----
21
82
98

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 * ( - col0 ) + ( - col2 + + col0 ) * 17 * + col1 FROM tab2 AS cor0
----
-3813
323674
34680

query I rowsort
SELECT ALL - - col1 * col2 - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - + 34 AS col1 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT + col0 * 23 * + cor0.col0 FROM tab2 AS cor0
----
1127
139932
143543

query I rowsort
SELECT DISTINCT col2 + 81 * col1 * + cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
229935
604593
7893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + - col1 col2 FROM tab2 AS cor0
----
-1
-15
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * + col0 * - col1 + - col0 col2 FROM tab1 AS cor0
----
-263
-41034
-83293

query I rowsort
SELECT - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7172
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7173
SELECT tab1.col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT tab1.col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col0 * - 19 * + col1 + + col1 AS col2 FROM tab2
----
-25500
-4092
-87379

query I rowsort
SELECT + col1 + col1 * + col0 * - col2 AS col0 FROM tab1
----
-36470
-4186
-99827

query I rowsort
SELECT - col0 * - tab1.col0 + + col2 FROM tab1
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-7177
SELECT cor0.col1 DIV 1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif mysql # not compatible
query I rowsort label-7177
SELECT cor0.col1 / 1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT col2 + col1 * 89 FROM tab1 AS cor0
----
1253
2368
947

query I rowsort
SELECT DISTINCT + + 62 FROM tab1 AS cor0
----
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7180
SELECT col1 + + col0 * col2 DIV col2 AS col0 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7180
SELECT col1 + + col0 * col2 / col2 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL 32 AS col2 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT ALL - col1 + - col2 * col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT + col0 + col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - + col2 * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - col1 * - col2 - - ( 49 ) * col1 AS col2 FROM tab0 AS cor0
----
11921
4850
7052

query I rowsort
SELECT col0 + col1 * + 16 FROM tab1 AS cor0
----
224
288
419

query I rowsort
SELECT ALL + 65 * cor0.col2 FROM tab0 AS cor0
----
2145
5330
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - cor0.col1 * - 57 col1 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT - col1 - col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL - 78 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT - - col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - + col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 77 + col1 FROM tab2 cor0
----
108
136
94

query I rowsort
SELECT col1 - - col0 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + 52 + - col2 + col2 FROM tab1
----
52
52
52

query I rowsort
SELECT ALL + col0 * + col1 - + col0 FROM tab0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT DISTINCT + col0 + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-7197
SELECT DISTINCT + col0 + col0 / col2 AS col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT ALL - col0 + col2 * 49 FROM tab1 AS cor0
----
2643
2729
4624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + + col2 * - col0 col1 FROM tab0
----
-132
-14760
-3630

query I rowsort
SELECT ALL - tab1.col0 + + col2 * - col1 + + 79 AS col0 FROM tab1
----
-1249
-1328
-555

query I rowsort
SELECT DISTINCT - col2 + - col2 * + col2 * - col1 + col0 * + col2 AS col0 FROM tab2
----
22761
27512
41886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7202
SELECT DISTINCT CAST( - 46 AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT CAST ( - 46 AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

query I rowsort
SELECT DISTINCT - - col0 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL ( + col0 ) * col0 + - ( col1 ) FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT col2 * + col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + - col1 * 10 + col0 AS col1 FROM tab0 AS cor0
----
-821
-836
-935

query I rowsort
SELECT + col2 * - 26 * col2 + - col2 FROM tab0 AS cor0
----
-174906
-27
-28347

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT 92 AS col0 FROM tab2
----
92
92
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7210
SELECT + ( + col1 ) DIV - tab0.col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-7210
SELECT + ( + col1 ) / - tab0.col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT col0 + col1 + ( 90 + col0 ) AS col0 FROM tab2
----
135
265
305

query I rowsort
SELECT ALL col1 + - col2 * - col2 AS col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT 10 AS col1 FROM tab0
----
10
10
10

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT + 50 * col1 AS col2 FROM tab0
----
4300
4550
4850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 * - col1 + - col0 * 75 col2 FROM tab1
----
-2721
-5760
-7248

onlyif mysql # use DIV operator for integer division
query I rowsort label-7217
SELECT - 49 DIV - tab0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eff82df49d5880477456e4901e030e04

skipif mysql # not compatible
query I rowsort label-7217
SELECT - 49 / - tab0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eff82df49d5880477456e4901e030e04

query I rowsort
SELECT - col0 + - 85 FROM tab0 AS cor0
----
-109
-120
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 96 + col1 + + col0 * + col2 col0 FROM tab2 AS cor0
----
-2756
-3577
1387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - cor0.col0 * 10 AS col2 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT - + col0 + - ( 19 ) FROM tab0 AS cor0
----
-108
-43
-54

query I rowsort
SELECT col1 + col0 + - 95 FROM tab2 AS cor0
----
-57
1
42

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab2, tab1 AS cor0
----
8

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT ALL 73 * - 17 + + col2 + 54 * col0 AS col0 FROM tab2 AS cor0
----
-836
2997
3063

query I rowsort
SELECT + ( + 75 ) AS col1 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7228
SELECT ALL - - CAST( NULL AS SIGNED ) + ( col1 * col1 ) + + 31 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL - - CAST ( NULL AS INTEGER ) + ( col1 * col1 ) + + 31 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 59 + col0 AS col1 FROM tab1 AS cor0
----
-56
21
5

query I rowsort
SELECT ALL - - col0 * - 73 + col0 AS col0 FROM tab1 cor0
----
-216
-4608
-5760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7231
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 39 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 39 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col1 * cor0.col1 + + 30 AS col1 FROM tab0 AS cor0
----
-7366
-8251
-9379

query I rowsort
SELECT ALL - + cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL 91 AS col2 FROM tab0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - col2 col2 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT DISTINCT ( cor0.col1 ) * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT ( cor0.col1 ) * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT DISTINCT + 95 DIV col0 + - ( cor0.col2 * col2 + col1 ) FROM tab2 AS cor0
----
-1460
-734
-747

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + 95 / col0 + - ( cor0.col2 * col2 + col1 ) FROM tab2 AS cor0
----
-1460
-734
-747

query I rowsort
SELECT ALL 52 AS col1 FROM tab1, tab2 cor0, tab0, tab2 AS cor1
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d

query I rowsort
SELECT 84 + - col1 FROM tab0
----
-13
-2
-7

query I rowsort
SELECT + + 45 FROM tab2 AS cor0
----
45
45
45

query I rowsort
SELECT ALL - - ( col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - + col1 + ( - cor0.col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7247
SELECT + 55 DIV col2 FROM tab0 AS cor0
----
0
1
55

skipif mysql # not compatible
query I rowsort label-7247
SELECT + 55 / col2 FROM tab0 AS cor0
----
0
1
55

query I rowsort
SELECT 46 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + col1 - col1 * col2 AS col0 FROM tab1
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7250
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * col2 + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * col2 + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + ( col1 ) * - col0 AS col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT - - cor0.col1 + 34 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b8407c908b7e3e3964bc1de7194e3928

query I rowsort
SELECT ALL col1 * - 57 FROM tab2
----
-1767
-3363
-969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7254
SELECT CAST( NULL AS SIGNED ) - ( + col1 + col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7254
SELECT CAST ( NULL AS INTEGER ) - ( + col1 + col2 ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col1 FROM tab2
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col2 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT DISTINCT + 50 FROM tab1 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - 45 ) * col2 col1 FROM tab2 AS cor0
----
-1170
-1215
-1710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 22 AS col1 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + cor0.col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 40 + + col1 FROM tab2 cor0
----
57
71
99

query I rowsort
SELECT - 46 * + col0 + col0 FROM tab0 AS cor0
----
-1080
-1575
-4005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 - - cor0.col0 * - 52 * - col2 col1 FROM tab0 AS cor0
----
1785
372198
40392

onlyif mysql # use DIV operator for integer division
query I rowsort label-7266
SELECT + - col1 * col1 DIV - 8 + + col1 FROM tab2 cor0
----
151
494
53

skipif mysql # not compatible
query I rowsort label-7266
SELECT + - col1 * col1 / - 8 + + col1 FROM tab2 cor0
----
151
494
53

query I rowsort
SELECT - 36 * col2 - - col0 * 13 FROM tab0 AS cor0
----
-1795
-876
419

query I rowsort
SELECT ALL - 96 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7269
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * - 97 + - col2 AS col0 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT DISTINCT + + col0 + - col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7272
SELECT ALL col1 + - col2 * col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL col1 + - col2 * col0 / - col0 AS col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7273
SELECT + + col2 / - CAST( NULL AS SIGNED ) - cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT + + col2 / - CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7275
SELECT col2 * + CAST( + col0 * col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7275
SELECT col2 * + CAST ( + col0 * col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + tab0.col0 * + col0 + col2 AS col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT + + col1 AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT cor0.col0 - col1 * 21 AS col2 FROM tab0 AS cor0
----
-1782
-1822
-2002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7279
SELECT ALL + + cor0.col2 * - col1 + ( - cor0.col0 + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + + cor0.col2 * - col1 + ( - cor0.col0 + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - col0 + ( - col0 ) FROM tab2 AS cor0
----
-120
-130
13

query I rowsort
SELECT ALL + cor0.col2 * 46 FROM tab2 AS cor0
----
1196
1242
1748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7282
SELECT + col0 + - CAST( + 36 AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
-245
-2730
-2765

skipif mysql # not compatible
query I rowsort label-7282
SELECT + col0 + - CAST ( + 36 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT - cor0.col1 * col2 * col1 - - col2 FROM tab2 cor0
----
-10944
-25920
-90480

query I rowsort
SELECT DISTINCT + + cor0.col0 + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - + cor0.col1 - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT + col2 * col1 * - col0 + col2 FROM tab2 AS cor0
----
-119626
-50996
-5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT ALL col2 + - col2 DIV col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
152
258
728

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL col2 + - col2 / col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
152
258
728

query I rowsort
SELECT ALL col2 * ( col0 ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + - col2 + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col2 col0 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT ALL - - CAST( NULL AS DECIMAL ) * col2 + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL - - CAST ( NULL AS REAL ) * col2 + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 + ( col0 ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - col0 - col0 FROM tab2 cor0
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-7294
SELECT + ( + col0 ) + col1 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-7294
SELECT + ( + col0 ) + col1 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
11
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7295
SELECT ALL 37 DIV 49 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL 37 / 49 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 + - col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + col0 + col0 * + cor0.col1 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT col0 + ( - col2 ) * col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT col1 * + col1 + - col1 * - tab2.col0 AS col1 FROM tab2
----
1178
1632
8083

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 042fa16c43ab365359ee93c064e44127

query I rowsort
SELECT ALL 20 FROM tab1, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - col1 * ( col0 ) - col2 AS col0 FROM tab2
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7304
SELECT DISTINCT - col2 + + col2 * tab2.col1 * - col0 + - CAST( - col0 AS SIGNED ) FROM tab2
----
-119600
-50993
-5879

skipif mysql # not compatible
query I rowsort label-7304
SELECT DISTINCT - col2 + + col2 * tab2.col1 * - col0 + - CAST ( - col0 AS INTEGER ) FROM tab2
----
-119600
-50993
-5879

query I rowsort
SELECT 44 FROM tab1 cor0
----
44
44
44

query I rowsort
SELECT DISTINCT - - col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL cor0.col0 * + cor0.col2 + cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a00411e02a7c55c84f4ddc85cbc45b4b

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab2 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7309
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7309
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT - - 63 AS col0 FROM tab0 AS cor0
----
63

query I rowsort
SELECT cor0.col1 * cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

query I rowsort
SELECT DISTINCT ( 32 ) AS col0 FROM tab0, tab1 cor0
----
32

query I rowsort
SELECT DISTINCT - - col0 + + col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - 80 FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL + col2 - tab2.col0 AS col2 FROM tab2
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7316
SELECT CAST( - 36 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

skipif mysql # not compatible
query I rowsort label-7316
SELECT CAST ( - 36 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT col0 - + tab0.col0 * + 33 AS col0 FROM tab0
----
-1120
-2848
-768

query I rowsort
SELECT DISTINCT col1 + ( ( - col2 ) ) FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT - cor0.col2 * col1 + - 17 AS col2 FROM tab1 AS cor0
----
-1265
-1421
-587

query I rowsort
SELECT - col2 * 90 + + 32 FROM tab0 AS cor0
----
-2938
-58
-7348

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7321
SELECT + CAST( NULL AS SIGNED ) * tab1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7321
SELECT + CAST ( NULL AS INTEGER ) * tab1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - ( col0 ) + + 13 AS col1 FROM tab0
----
-11
-22
-76

query I rowsort
SELECT col1 * cor0.col1 - col2 AS col0 FROM tab2 cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col0 * ( ( - col1 ) ) col2 FROM tab1
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-7325
SELECT ALL 16 DIV + col0 + + col1 + - ( + tab0.col2 + col1 ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7325
SELECT ALL 16 / + col0 + + col1 + - ( + tab0.col2 + col1 ) FROM tab0
----
-1
-33
-82

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT + 98 * - col1 FROM tab1
----
-1274
-2548
-980

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT + ( col2 ) + col0 * 3 * - col2 + - col2 AS col0 FROM tab2
----
-567
-6084
-9006

query I rowsort
SELECT DISTINCT 37 + col2 * col2 + col0 FROM tab2
----
1560
773
791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7331
SELECT + + CAST( - col1 AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-7331
SELECT + + CAST ( - col1 AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7332
SELECT ALL + CAST( ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7332
SELECT ALL + CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7333
SELECT - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7333
SELECT - col1 / col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 + col0 FROM tab1
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

query I rowsort
SELECT ALL + 82 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT - col0 + - cor0.col2 * - 60 + col2 AS col0 FROM tab0 AS cor0
----
1989
26
4913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7338
SELECT - ( cor0.col2 ) + + CAST( NULL AS SIGNED ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT - ( cor0.col2 ) + + CAST ( NULL AS INTEGER ) + col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 82 AS col0 FROM tab1 AS cor0
----
82

query I rowsort
SELECT + - 31 + col0 * - ( - col2 * + col2 ) FROM tab1 AS cor0
----
207905
737249
8717

query I rowsort
SELECT col2 * cor0.col1 + + col0 * - col2 FROM tab1 cor0
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT 4 FROM tab0, tab0 AS cor0
----
4

query I rowsort
SELECT ALL 12 FROM tab0, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ALL - cor0.col0 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT ALL col2 + - ( - col0 ) + + col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT ALL + 86 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT - col0 * + col2 + ( - col1 ) * ( 80 ) FROM tab2 AS cor0
----
-2669
-4362
-6748

query I rowsort
SELECT ALL + col0 - + ( - col0 ) * - col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - col0 * col1 - - col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - col2 * + col0 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT ALL + col2 * col1 + + 10 * col2 FROM tab2 AS cor0
----
1026
1107
1794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + cor0.col2 + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + cor0.col2 + 87 AS col1 FROM tab0 AS cor0
----
120
169
88

query I rowsort
SELECT - ( col2 ) - - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7356
SELECT ALL - col0 DIV 32 AS col0 FROM tab1 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL - col0 / 32 AS col0 FROM tab1 AS cor0
----
-2
-2
0

query I rowsort
SELECT DISTINCT + 41 + - 86 AS col2 FROM tab1 AS cor0
----
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7358
SELECT cor0.col1 * - ( + col2 ) - col0 DIV col1 FROM tab1 AS cor0
----
-1254
-1404
-576

skipif mysql # not compatible
query I rowsort label-7358
SELECT cor0.col1 * - ( + col2 ) - col0 / col1 FROM tab1 AS cor0
----
-1254
-1404
-576

query I rowsort
SELECT + ( + 94 ) FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT ( cor0.col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - + ( + 63 ) + col2 AS col1 FROM tab0 AS cor0
----
-30
-62
19

query I rowsort
SELECT DISTINCT - col2 + + 75 * + col0 FROM tab1 AS cor0
----
171
4743
5904

query I rowsort
SELECT ALL - 42 AS col1 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + + cor0.col1 + + 39 * - col1 * 50 FROM tab0 AS cor0
----
-167614
-177359
-189053

query I rowsort
SELECT col0 * cor0.col0 - col2 AS col2 FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT ALL 56 * - col1 + cor0.col0 FROM tab0 AS cor0
----
-4792
-5007
-5397

query I rowsort
SELECT DISTINCT ( 30 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT - - 88 + + 51 * col2 AS col1 FROM tab2 AS cor0
----
1414
1465
2026

onlyif mysql # use DIV operator for integer division
query I rowsort label-7370
SELECT col0 DIV 60 + + col1 * tab0.col0 FROM tab0
----
2064
3395
8100

skipif mysql # not compatible
query I rowsort label-7370
SELECT col0 / 60 + + col1 * tab0.col0 FROM tab0
----
2064
3395
8100

query I rowsort
SELECT 63 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT - 29 FROM tab2
----
-29
-29
-29

query I rowsort
SELECT + ( col0 ) FROM tab1 cor0
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT ALL + col1 + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT - col2 * + col0 - + 78 FROM tab0 AS cor0
----
-113
-7376
-870

query I rowsort
SELECT ALL - 25 + col0 AS col1 FROM tab2 AS cor0
----
-18
53
54

query I rowsort
SELECT + 92 - + col0 * + 91 AS col0 FROM tab2 AS cor0
----
-545
-7006
-7097

query I rowsort
SELECT tab2.col1 * - col0 * + col2 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-7380
SELECT DISTINCT + 38 * 52 + col2 DIV - col1 AS col1 FROM tab0
----
1976

skipif mysql # not compatible
query I rowsort label-7380
SELECT DISTINCT + 38 * 52 + col2 / - col1 AS col1 FROM tab0
----
1976

query I rowsort
SELECT col1 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + 74 + - col1 FROM tab0 AS cor0
----
-12
-17
-23

query I rowsort
SELECT - ( tab0.col1 ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - tab0.col0 * - col2 AS col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + ( 79 ) FROM tab1
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - tab0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ( 8 ) * col1 FROM tab1
----
104
208
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7390
SELECT - col1 DIV + col0 AS col1 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7390
SELECT - col1 / + col0 AS col1 FROM tab2
----
-4
0
0

query I rowsort
SELECT 6 * 16 AS col0 FROM tab1
----
96
96
96

query I rowsort
SELECT - - col2 * col1 * 69 AS col0 FROM tab1 AS cor0
----
39330
86112
96876

query I rowsort
SELECT col0 + 94 + 68 * col0 AS col1 FROM tab2 AS cor0
----
5476
5545
577

query I rowsort
SELECT + col2 + - tab1.col1 FROM tab1
----
28
47
83

query I rowsort
SELECT col1 * 94 AS col1 FROM tab1 AS cor0
----
1222
2444
940

query I rowsort
SELECT - - col0 * + 34 FROM tab1 AS cor0
----
102
2176
2720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7397
SELECT - col2 * CAST( NULL AS SIGNED ) + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT - col2 * CAST ( NULL AS INTEGER ) + + col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * tab1.col2 AS col0 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-7399
SELECT tab0.col1 DIV col0 + + 47 DIV tab0.col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7399
SELECT tab0.col1 / col0 + + 47 / tab0.col1 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + cor0.col1 - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col0 + - cor0.col0 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 54 * - col1 col2 FROM tab0 AS cor0
----
153252
402948
5238

query I rowsort
SELECT DISTINCT + + 43 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-129
-2752
-3440

query I rowsort
SELECT ALL + 22 AS col0 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT ALL - col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - 39 * cor0.col0 + + col2 + + col2 FROM tab1 cor0
----
-2382
-2928
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col0 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7410
SELECT DISTINCT + ( col2 ) DIV col2 col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7410
SELECT DISTINCT + ( col2 ) / col2 col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - col0 + - col2 * + col2 FROM tab2 AS cor0
----
-1523
-736
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 5 + col2 + col1 FROM tab0 AS cor0
----
103
124
178

query I rowsort
SELECT + col1 + col2 * col0 * col2 AS col1 FROM tab0 AS cor0
----
132
26222
598527

query I rowsort
SELECT + + col0 + + cor0.col0 + col1 AS col1 FROM tab1 cor0
----
138
173
32

query I rowsort
SELECT ALL + col2 * - 14 FROM tab1
----
-1344
-756
-798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * col1 col2 FROM tab1
----
1612
620
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 col1 FROM tab2, tab0 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT + ( col0 ) FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - 70 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT DISTINCT - col2 + col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL + - cor0.col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7423
SELECT DISTINCT + CAST( col2 AS SIGNED ) FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT + CAST ( col2 AS INTEGER ) FROM tab2
----
26
27
38

query I rowsort
SELECT ALL tab0.col0 * col0 AS col1 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL col1 + + col0 * tab2.col2 AS col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT + cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

query I rowsort
SELECT + 40 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col2 * + col0 + tab2.col2 AS col0 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT cor0.col1 DIV col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7431
SELECT cor0.col1 / col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7432
SELECT DISTINCT - 44 DIV - 29 AS col0 FROM tab2, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - 44 / - 29 AS col0 FROM tab2, tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col1 + 65 - + tab1.col1 * tab1.col1 AS col2 FROM tab1
----
-25
-585
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7434
SELECT ALL - CAST( col0 AS SIGNED ) FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL - CAST ( col0 AS INTEGER ) FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7435
SELECT col2 - col2 DIV col0 AS col2 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-7435
SELECT col2 - col2 / col0 AS col2 FROM tab2
----
24
26
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7436
SELECT - - CAST( NULL AS SIGNED ) * - ( - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT - - CAST ( NULL AS INTEGER ) * - ( - col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - - 30 * + cor0.col1 col0 FROM tab1 AS cor0
----
243
294
726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7439
SELECT - CAST( NULL AS DECIMAL ) + + col2 + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7439
SELECT - CAST ( NULL AS REAL ) + + col2 + col2 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 + cor0.col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 - + col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT col0 + col0 + tab0.col2 FROM tab0
----
260
71
81

query I rowsort
SELECT DISTINCT + col2 - - col2 * tab1.col2 FROM tab1
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT - col1 DIV + col1 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7444
SELECT - col1 / + col1 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col2 * - col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT + col1 * cor0.col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT DISTINCT col2 DIV col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT col2 / col1 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col0 col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col0 * col0 * col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT DISTINCT tab0.col0 * col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 > NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT cor0.col1 - cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7463
SELECT - col0 DIV + col0 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7463
SELECT - col0 / + col0 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col0 * - col1 * + col0 - col1 FROM tab0
----
-118922
-49622
-720902

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT + col0 + + col1 DIV col2 AS col0 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-7466
SELECT + col0 + + col1 / col2 AS col0 FROM tab0
----
132
26
90

query I rowsort
SELECT DISTINCT + col0 * + col2 * - tab1.col1 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7468
SELECT DISTINCT col0 + col0 * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT col0 + col0 * col2 / col2 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - cor0.col2 - + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL col2 + - col1 - - cor0.col2 FROM tab1 AS cor0
----
104
179
82

query I rowsort
SELECT ALL + + cor0.col2 * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT cor0.col2 + + col0 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col2 * col2 + + col2 AS col0 FROM tab1 cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + + col1 + + col0 - - col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT col1 * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7477
SELECT DISTINCT + col1 * - col0 + - col2 DIV col1 FROM tab2 AS cor0
----
-1345
-217
-4602

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT + col1 * - col0 + - col2 / col1 FROM tab2 AS cor0
----
-1345
-217
-4602

query I rowsort
SELECT ALL + - col2 * + col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + - col2 + - col0 * + cor0.col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - col2 * col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * - col1 * + col2 + + col0 * - col2 FROM tab0 AS cor0
----
-3430
-671416
-68904

onlyif mysql # use DIV operator for integer division
query I rowsort label-7484
SELECT ALL - col2 DIV - col1 + + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - col2 / - col1 + + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT cor0.col0 * col0 - col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT - col0 - col2 FROM tab2
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + - col1 * tab1.col1 col0 FROM tab1
----
-1352
-200
-338

query I rowsort
SELECT + col0 * - col0 * - col0 + col0 AS col0 FROM tab2
----
350
474630
493118

query I rowsort
SELECT - col2 - + col1 AS col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT col1 - col0 AS col1 FROM tab0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT - cor0.col2 + - col2 DIV - col0 - + col1 AS col2 FROM tab2 AS cor0
----
-55
-55
-85

skipif mysql # not compatible
query I rowsort label-7491
SELECT - cor0.col2 + - col2 / - col0 - + col1 AS col2 FROM tab2 AS cor0
----
-55
-55
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7492
SELECT col0 + + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7492
SELECT col0 + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - col0 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - tab0.col1 + col1 * + col0 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL - tab0.col1 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - col2 + + 16 * col0 FROM tab1
----
-6
1184
967

query I rowsort
SELECT - - col2 + col1 * + cor0.col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT ALL - cor0.col2 * 36 AS col0 FROM tab0 cor0
----
-1188
-2952
-36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7499
SELECT - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7499
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7501
SELECT ALL + col0 + + col0 - ( col0 ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL + col0 + + col0 - ( col0 ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 80 AS col1 FROM tab1
----
80
80
80

query I rowsort
SELECT 19 + + col1 AS col0 FROM tab1
----
29
32
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7504
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col1 + tab1.col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + tab0.col1 * - 90 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e761f859a7f0d3dd0629c2a99d2be84c

query I rowsort
SELECT + 37 FROM tab1
----
37
37
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7508
SELECT DISTINCT - ( + col2 + - col0 ) DIV + ( + col0 ) FROM tab1
----
-17
0

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT - ( + col2 + - col0 ) / + ( + col0 ) FROM tab1
----
-17
0

query I rowsort
SELECT DISTINCT 24 AS col1 FROM tab0
----
24

query I rowsort
SELECT DISTINCT + 46 * - 52 + col0 AS col0 FROM tab2 AS cor0
----
-2313
-2314
-2385

query I rowsort
SELECT - 93 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + + col2 * col1 col2 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT ALL ( - col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - ( col2 ) + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7516
SELECT DISTINCT - 64 DIV col1 FROM tab1 AS cor0
----
-2
-4
-6

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT - 64 / col1 FROM tab1 AS cor0
----
-2
-4
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col2 col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-7519
SELECT + + 15 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-7519
SELECT + + 15 / col2 AS col1 FROM tab0 AS cor0
----
0
0
15

query I rowsort
SELECT + 29 AS col1 FROM tab1 cor0
----
29
29
29

query I rowsort
SELECT - cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7522
SELECT ( 41 ) * - tab2.col0 - + CAST( NULL AS SIGNED ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT ( 41 ) * - tab2.col0 - + CAST ( NULL AS INTEGER ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7523
SELECT - ( + col0 ) / - tab0.col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7523
SELECT - ( + col0 ) / - tab0.col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 21 col2 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT + - ( col2 ) * - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 + - col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - + col0 * - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + 34 FROM tab2
----
34
34
34

query I rowsort
SELECT 39 + + cor0.col0 FROM tab2 cor0
----
117
118
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-7532
SELECT + col2 + col1 DIV col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7532
SELECT + col2 + col1 / col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + 60 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT + col0 * - 42 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT + col0 + - 49 FROM tab0 AS cor0
----
-14
-25
40

query I rowsort
SELECT ALL - 65 AS col2 FROM tab2
----
-65
-65
-65

query I rowsort
SELECT DISTINCT 3 AS col0 FROM tab1
----
3

query I rowsort
SELECT col0 + + ( - col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7540
SELECT + cor0.col0 DIV col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7540
SELECT + cor0.col0 / col0 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - col0 * col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - 99 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
190
3382
862

query I rowsort
SELECT - col0 + 38 * col2 AS col0 FROM tab1 cor0
----
2049
2102
3568

query I rowsort
SELECT + - 15 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT + + ( - col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT col2 * col1 + col2 * col0 AS col0 FROM tab2 AS cor0
----
1026
3562
3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7548
SELECT + + CAST( NULL AS SIGNED ) * col2 * col2 + + col0 * + col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT + + CAST ( NULL AS INTEGER ) * col2 * col2 + + col0 * + col1 * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 4 + + 59 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT DISTINCT 64 - - col0 FROM tab1 AS cor0
----
128
144
67

query I rowsort
SELECT - 29 * - cor0.col0 FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT ALL - col0 * 55 FROM tab2 AS cor0
----
-385
-4290
-4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7554
SELECT - col1 DIV col0 + - col2 * - col1 FROM tab0
----
2835
7461
95

skipif mysql # not compatible
query I rowsort label-7554
SELECT - col1 / col0 + - col2 * - col1 FROM tab0
----
2835
7461
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL col0 + col0 * col1 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT + ( cor0.col0 ) + col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL 93 AS col1 FROM tab1
----
93
93
93

query I rowsort
SELECT + + col2 + col2 * ( col2 ) FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-7560
SELECT col2 + col0 DIV col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-7560
SELECT col2 + col0 / col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col1 FROM tab1, tab1 cor0, tab0, tab0 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT DISTINCT - 7 FROM tab0
----
-7

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 CROSS JOIN tab1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

query I rowsort
SELECT ALL 5 * col1 - + col1 FROM tab1
----
104
40
52

query I rowsort
SELECT - ( col2 ) * col0 - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT ALL - ( col0 ) - col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT col0 - tab1.col2 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT ALL 84 * - col1 AS col2 FROM tab1 AS cor0
----
-1092
-2184
-840

query I rowsort
SELECT ALL + col0 * cor0.col2 * + col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7571
SELECT - CAST( NULL AS SIGNED ) * 85 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT - CAST ( NULL AS INTEGER ) * 85 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 15 col0 FROM tab1 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col2 FROM tab0 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 8 * 76 - + col2 * 30 col2 FROM tab1 cor0
----
-2228
-2318
-3488

query I rowsort
SELECT ALL + ( - cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7576
SELECT - + cor0.col2 DIV cor0.col0 + - col1 FROM tab0 cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-7576
SELECT - + cor0.col2 / cor0.col0 + - col1 FROM tab0 cor0
----
-87
-91
-97

query I rowsort
SELECT DISTINCT - 33 + + col1 AS col1 FROM tab1 cor0
----
-20
-23
-7

query I rowsort
SELECT DISTINCT + - 81 + + cor0.col0 + - 54 * col1 FROM tab0 AS cor0
----
-4701
-4906
-5284

query I rowsort
SELECT + col2 + col2 + 68 AS col2 FROM tab1 AS cor0
----
176
182
260

query I rowsort
SELECT ALL - col0 * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + col2 * col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT 19 - - col1 * + col2 AS col2 FROM tab0 cor0
----
116
2857
7481

query I rowsort
SELECT ALL - col0 + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-118
-147
20

query I rowsort
SELECT DISTINCT - - col0 * col1 * - col0 + col0 * col1 + 61 FROM tab1 AS cor0
----
-40259
-82099
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab0
----
21
21
21

query I rowsort
SELECT ALL 99 * - col0 - col1 * + ( col0 ) * col2 FROM tab2
----
-127374
-58855
-6552

query I rowsort
SELECT cor0.col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col2 - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col1 + - 96 * - col1 AS col2 FROM tab0 cor0
----
8342
8827
9409

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL col1 + + col2 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col2 * + 82 FROM tab0 cor0
----
2706
6724
82

query I rowsort
SELECT - + col2 * + ( - cor0.col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL 60 FROM tab1
----
60
60
60

query I rowsort
SELECT ALL + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7598
SELECT - col2 / + col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col1 * - col0 + - 7 FROM tab0 AS cor0
----
-2071
-3402
-8106

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7600
SELECT ALL - - CAST( - cor0.col1 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT ALL - - CAST ( - cor0.col1 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7601
SELECT DISTINCT CAST( - ( col0 ) AS SIGNED ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT CAST ( - ( col0 ) AS INTEGER ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + ( + 43 ) AS col0 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT + col2 + - col1 * col0 * + ( - col0 ) AS col2 FROM tab1 AS cor0
----
288
41017
83296

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 cor3
----
3645 values hashing to ca91d1f523a87017f672304548e91a77

query I rowsort
SELECT ALL col1 * 49 FROM tab0
----
4214
4459
4753

query I rowsort
SELECT DISTINCT 4 FROM tab1 AS cor0
----
4

query I rowsort
SELECT + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7609
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * 31 AS col1 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT DISTINCT - ( - col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - - col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 89 AS col0 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT - ( + col2 ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col0 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT col0 + 60 FROM tab0
----
149
84
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT DISTINCT col0 DIV col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT col0 / col0 FROM tab0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7619
SELECT col1 + - tab1.col1 * col2 DIV + col1 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-7619
SELECT col1 + - tab1.col1 * col2 / + col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col0 - tab2.col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT - col2 * - tab1.col1 AS col2 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT DISTINCT - col1 * - col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ( 25 ) FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT + - col0 AS col2 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7626
SELECT DISTINCT - col1 DIV + cor0.col2 + col0 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT - col1 / + cor0.col2 + col0 FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT DISTINCT ( + 42 ) AS col2 FROM tab0 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col2 ) + col0 col0 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 99 ) * - col1 - + col2 col2 FROM tab2 AS cor0
----
-1721
-3096
-5867

query I rowsort
SELECT - col0 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col1 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + col2 * + col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7633
SELECT - CAST( col1 * col1 AS SIGNED ) col2 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7633
SELECT - CAST ( col1 * col1 AS INTEGER ) col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + 51 - - col0 AS col1 FROM tab2 AS cor0
----
129
130
58

query I rowsort
SELECT ALL - 51 + col2 * col0 AS col2 FROM tab2 AS cor0
----
138
1977
2951

query I rowsort
SELECT DISTINCT - tab0.col1 + + col0 FROM tab0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7637
SELECT ALL 69 DIV tab1.col2 + - col0 * ( col1 ) + col1 * col0 DIV tab1.col2 FROM tab1
----
-1030
-628
-76

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL 69 / tab1.col2 + - col0 * ( col1 ) + col1 * col0 / tab1.col2 FROM tab1
----
-1030
-628
-76

query I rowsort
SELECT - tab2.col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + col1 * col1 + - col0 * col0 FROM tab2 AS cor0
----
-2603
-5952
912

query I rowsort
SELECT + + col2 + - col0 + - cor0.col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT col2 * cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7642
SELECT col0 * col1 + - col0 + - col1 DIV col2 col0 FROM tab1 AS cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7642
SELECT col0 * col1 + - col0 + - col1 / col2 col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + - col1 * ( col0 ) AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + cor0.col1 * + col0 + 55 AS col0 FROM tab2 AS cor0
----
1398
272
4657

query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT col0 * - 49 AS col0 FROM tab1 AS cor0
----
-147
-3136
-3920

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - - col0 * col2 + + col1 * + col1 * col0 AS col1 FROM tab2 AS cor0
----
25833
273546
6916

query I rowsort
SELECT DISTINCT + - col2 * - col1 + ( cor0.col0 ) FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - - col0 + + col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT + col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT 66 FROM tab2 AS cor0
----
66

query I rowsort
SELECT ALL - 6 * col1 FROM tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT ALL col2 - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 67 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7657
SELECT DISTINCT col0 + - col2 - col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-10
33
6

skipif mysql # not compatible
query I rowsort label-7657
SELECT DISTINCT col0 + - col2 - col0 / + col0 AS col0 FROM tab0 AS cor0
----
-10
33
6

query I rowsort
SELECT + ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + ( col0 ) * col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 33 FROM tab0 cor0
----
33
33
33

query I rowsort
SELECT - ( + col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - + 58 FROM tab0 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 4 * 35 FROM tab2, tab2 AS cor0
----
9 values hashing to ec2e101908a0c2a3287de7292cabaa57

query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT 26 * col0 FROM tab2
----
182
2028
2054

onlyif mysql # use DIV operator for integer division
query I rowsort label-7667
SELECT - col0 + col0 * + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7667
SELECT - col0 + col0 * + col1 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 70 * col0 AS col0 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col2 + col2 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # support