sqllogictest
Artifact Content
Not logged in

Artifact a211f587933e911f966a0b9c94f55cf4b117eaad:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 + col0 + 75 * cor0.col1 FROM tab0 AS cor0
----
6560
7005
7407

query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 + 74 FROM tab0 AS cor0
----
-718
-7224
39

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

query I rowsort
SELECT DISTINCT + - 29 * + col0 FROM tab2 AS cor0
----
-203
-2262
-2291

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

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

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

query I rowsort
SELECT - col0 * - 72 FROM tab0 cor0
----
1728
2520
6408

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

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT + col1 + + CAST ( - col2 + - col2 AS INTEGER ) FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT + + col1 + - 71 FROM tab2 AS cor0
----
-12
-40
-54

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

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

query I rowsort
SELECT DISTINCT cor0.col2 - 19 AS col0 FROM tab0 AS cor0
----
-18
14
63

query I rowsort
SELECT ALL + col2 + + 10 * 43 AS col0 FROM tab1 AS cor0
----
484
487
526

onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT + col0 DIV - col1 + - ( - col2 ) col0 FROM tab2 AS cor0
----
25
27
34

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-15
SELECT DISTINCT col0 + - CAST( - 67 AS SIGNED ) FROM tab1 AS cor0
----
131
147
70

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT col0 + - CAST ( - 67 AS INTEGER ) FROM tab1 AS cor0
----
131
147
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-16
SELECT ALL col0 + + CAST( 8 AS SIGNED ) FROM tab1 AS cor0
----
11
72
88

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL col0 + + CAST ( 8 AS INTEGER ) FROM tab1 AS cor0
----
11
72
88

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

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

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

query I rowsort
SELECT DISTINCT col0 - + 8 FROM tab0 AS cor0
----
16
27
81

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

query I rowsort
SELECT ALL - ( col2 ) * + col2 - - col1 * col0 FROM tab0
----
1375
3394
975

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

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

query I rowsort
SELECT - col0 * 6 AS col2 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT tab0.col1 * 67 AS col2 FROM tab0
----
5762
6097
6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 73 col0 FROM tab0
----
6278
6643
7081

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

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

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

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab0 cor1, tab1, tab1 cor2
----
3645 values hashing to 90e25bbdedfdeba1119139dab203aeea

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

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

query I rowsort
SELECT + cor0.col1 + - 91 FROM tab1 AS cor0
----
-65
-78
-81

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

query I rowsort
SELECT col2 + 49 FROM tab0 AS cor0
----
131
50
82

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

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

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

skipif mysql # not compatible
query I rowsort label-38
SELECT 32 / - 51 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 78 * col1 * + col1 col0 FROM tab0 cor0
----
-576921
-646000
-733903

query I rowsort
SELECT DISTINCT col0 + - tab0.col2 + - col1 FROM tab0
----
-63
-84
-95

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

query I rowsort
SELECT + col2 * + ( - col2 ) FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col0 + col1 + + 99 FROM tab1
----
128
173
192

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

query I rowsort
SELECT DISTINCT col0 * col2 + ( + 63 ) AS col2 FROM tab2 AS cor0
----
2091
252
3065

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

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

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

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

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

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

query I rowsort
SELECT 60 * col1 AS col0 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT DISTINCT + 70 AS col2 FROM tab2 cor0
----
70

query I rowsort
SELECT DISTINCT + + 72 AS col0 FROM tab2 AS cor0
----
72

query I rowsort
SELECT ALL col1 * cor0.col1 * col1 FROM tab2 AS cor0
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + + 48 * - col1 FROM tab0 AS cor0
----
-4128
-4368
-4656

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

query I rowsort
SELECT ALL + 95 + - col1 FROM tab1 AS cor0
----
69
82
85

query I rowsort
SELECT DISTINCT - ( col2 ) + - 66 + + cor0.col0 FROM tab0 AS cor0
----
-32
-59
-75

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

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

query I rowsort
SELECT + col1 - + col0 * - col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT ALL - ( + col2 ) + + 83 DIV 5 col0 FROM tab0 AS cor0
----
-17
-66
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-65
SELECT ALL - ( + col2 ) + + 83 / 5 col0 FROM tab0 AS cor0
----
-17
-66
15

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-73
SELECT DISTINCT - col2 DIV tab1.col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT - col2 / tab1.col2 FROM tab1
----
-1

query I rowsort
SELECT + tab2.col0 / col2 AS col2 FROM tab2 WHERE - col1 > NULL
----

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN - col0 + + col2 / - col0 + + col2 AND NULL
----
7
31
27

query I rowsort
SELECT ALL 37 + + col1 FROM tab0
----
123
128
134

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

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

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

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

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

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

query I rowsort
SELECT ALL - col0 * + col0 FROM tab1 WHERE NOT col1 * col2 IN ( + col0 * + tab1.col1 * + col2 ) AND NOT NULL IN ( - col2 )
----

query I rowsort
SELECT + cor0.col0 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + - col2 * + cor0.col2 + + col0 + + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-2708
-5200
-939

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

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

query I rowsort
SELECT DISTINCT - - col0 + - col1 * + col1 - - col2 AS col2 FROM tab0 AS cor0
----
-7339
-8110
-9373

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * + col2 < NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 * + col2 * col1 col0 FROM tab0
----
-3430
-664207
-68136

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

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

query I rowsort
SELECT ALL + col2 * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL - col2 * col2 * + tab1.col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE NULL = ( - col1 )
----

query I rowsort
SELECT ALL - col0 * - col2 + col1 - col2 AS col0 FROM tab2
----
193
2061
2981

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col2 * - col2 )
----

query I rowsort
SELECT col0 + col1 * - col1 + + col2 FROM tab2
----
-172
-3377
-927

onlyif mysql # use DIV operator for integer division
query I rowsort label-107
SELECT DISTINCT col0 DIV col1 + + col1 + col1 * col0 FROM tab1
----
104
1059
656

skipif mysql # not compatible
query I rowsort label-107
SELECT DISTINCT col0 / col1 + + col1 + col1 * col0 FROM tab1
----
104
1059
656

query I rowsort
SELECT ALL tab2.col0 + tab2.col1 + col1 * col2 FROM tab2
----
1671
742
875

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

query I rowsort
SELECT + col1 * - col1 - - tab1.col0 FROM tab1
----
-36
-673
-89

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

query I rowsort
SELECT DISTINCT + col2 * col0 * col2 FROM tab1
----
207936
737280
8748

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

query I rowsort
SELECT - col0 - col2 FROM tab0
----
-171
-36
-57

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

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

query I rowsort
SELECT DISTINCT col2 * col0 + 66 * + 50 FROM tab0 cor0
----
10598
3335
4092

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col1 )
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-121
SELECT DISTINCT col0 DIV col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT col0 / col2 FROM tab1
----
0
1

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

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

query I rowsort
SELECT col0 + + col1 + tab1.col1 FROM tab1
----
106
55
84

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IN ( + col1 )
----

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 * col2 + - col2 )
----

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-132
SELECT ALL tab2.col0 + - col0 DIV col1 FROM tab2
----
7
75
77

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL tab2.col0 + - col0 / col1 FROM tab2
----
7
75
77

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

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

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

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

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

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

query I rowsort
SELECT ALL col2 * col2 - col2 * col0 AS col1 FROM tab1
----
-399
1536
2754

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

query I rowsort
SELECT DISTINCT col1 / col0 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

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

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

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

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

query I rowsort
SELECT ALL 46 + 11 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

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

query I rowsort
SELECT ALL - col0 * + col1 + + 13 AS col0 FROM tab0 AS cor0
----
-2051
-3382
-8086

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

query I rowsort
SELECT ALL col1 + + col2 * - 67 + 13 FROM tab2 AS cor0
----
-1670
-1765
-2516

query I rowsort
SELECT + 66 * - col1 + 45 AS col2 FROM tab1 AS cor0
----
-1671
-615
-813

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

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + - ( cor0.col1 + col0 ) AS col1 FROM tab1 AS cor0
----
-20
4022
6307

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

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

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

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

query I rowsort
SELECT + col2 * col2 + + col1 AS col0 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT + 68 + + col2 FROM tab0
----
101
150
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 * + 72 col0 FROM tab2
----
-1145
-2225
-4170

query I rowsort
SELECT ALL - cor0.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

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

query I rowsort
SELECT ALL + 77 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT DISTINCT + tab0.col2 + col1 + - col2 * - col2 AS col0 FROM tab0
----
1208
6897
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-164
SELECT DISTINCT - - col1 + cor0.col1 DIV + 26 + col2 FROM tab1 AS cor0
----
109
67
81

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - - col1 + cor0.col1 / + 26 + col2 FROM tab1 AS cor0
----
109
67
81

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

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

query I rowsort
SELECT ALL 91 + col1 * col1 FROM tab1
----
191
260
767

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

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

query I rowsort
SELECT ( + col1 ) + - col2 * col0 * col2 FROM tab2
----
-114059
-5072
-52669

onlyif mysql # use DIV operator for integer division
query I rowsort label-170
SELECT + col0 + - col1 DIV + col0 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-170
SELECT + col0 + - col1 / + col0 FROM tab0
----
21
33
88

query I rowsort
SELECT DISTINCT + col0 * col1 + ( tab0.col1 ) FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab0 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - 72 * + col1 + col2 FROM tab2 AS cor0
----
-1186
-2205
-4222

query I rowsort
SELECT DISTINCT + ( col2 ) - - cor0.col0 * ( 30 ) FROM tab0 AS cor0
----
1051
2752
753

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT + col0 * - 40 FROM tab1
----
-120
-2560
-3200

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * CAST ( col0 * col0 AS REAL ) FROM tab0
----
118825
49536
720811

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

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

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab0 AS cor0
----
76

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-185
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - 89 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - CAST ( NULL AS REAL ) * - 89 FROM tab1 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL col1 + - col2 * + col2 * - col2 FROM tab0 cor0
----
36023
551459
98

query I rowsort
SELECT DISTINCT + col2 * + 30 AS col1 FROM tab2 AS cor0
----
1140
780
810

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

query I rowsort
SELECT DISTINCT 41 * - 31 AS col0 FROM tab1 AS cor0
----
-1271

onlyif mysql # use DIV operator for integer division
query I rowsort label-192
SELECT - ( ( col1 ) ) DIV col2 - col0 * col1 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif mysql # not compatible
query I rowsort label-192
SELECT - ( ( col1 ) ) / col2 - col0 * col1 * + col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - + 63 * col0 + col0 AS col1 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT 40 AS col1 FROM tab1 AS cor0
----
40
40
40

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

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

query I rowsort
SELECT - col0 * 61 + col2 FROM tab0 AS cor0
----
-1431
-2134
-5347

query I rowsort
SELECT ALL ( - ( - col1 ) ) * + 26 AS col1 FROM tab1 cor0
----
260
338
676

query I rowsort
SELECT DISTINCT - 96 * ( - col1 ) FROM tab1 AS cor0
----
1248
2496
960

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

query I rowsort
SELECT - col2 + - 67 * + tab0.col2 * tab0.col1 AS col2 FROM tab0
----
-190179
-500036
-6500

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

query I rowsort
SELECT ALL - 53 * col2 + col0 + col0 * col2 AS col0 FROM tab0
----
-933
17
3041

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + 63 * + col1 * col1 FROM tab0 AS cor0
----
465948
521703
592767

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

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

query I rowsort
SELECT 45 FROM tab0 AS cor0
----
45
45
45

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) * col2 FROM tab2
----
1444
676
729

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

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

query I rowsort
SELECT ALL + - 78 - - col2 AS col1 FROM tab1 cor0
----
-21
-24
18

query I rowsort
SELECT - col2 * col2 * col0 + + col1 FROM tab0 AS cor0
----
-26050
-598345
62

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

query I rowsort
SELECT + col0 * + col0 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT DISTINCT 61 AS col2 FROM tab1
----
61

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-221
SELECT DISTINCT + + col0 * - col1 + - col0 DIV col2 FROM tab1 AS cor0
----
-1040
-641
-78

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT + + col0 * - col1 + - col0 / col2 FROM tab1 AS cor0
----
-1040
-641
-78

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-223
SELECT DISTINCT + + cor0.col2 + col2 DIV - col1 - - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + + cor0.col2 + col2 / - col1 - - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

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

query I rowsort
SELECT ALL ( - col0 ) * tab1.col0 * - tab1.col0 - col2 * col0 FROM tab1
----
-135
258496
504320

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

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

query I rowsort
SELECT + col2 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
244068
679042
9409

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 * + col2 col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - - col0 * + 90 FROM tab2 AS cor0
----
630
7020
7110

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

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

query I rowsort
SELECT DISTINCT cor0.col0 * col0 * - col1 + + col2 AS col0 FROM tab0 cor0
----
-118824
-49503
-720729

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

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

query I rowsort
SELECT + col0 + - 34 AS col1 FROM tab2 cor0
----
-27
44
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + 10 col2 FROM tab2 AS cor0
----
-21
-49
-7

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

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

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

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT - col1 / + col0 FROM tab0 cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + - 76 col1 FROM tab1 AS cor0
----
-1324
-1480
-646

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-245
SELECT - + cor0.col1 DIV 9 + + col1 * col2 * 95 - col1 AS col0 FROM tab1 cor0
----
118546
133352
54139

skipif mysql # not compatible
query I rowsort label-245
SELECT - + cor0.col1 / 9 + + col1 * col2 * 95 - col1 AS col0 FROM tab1 cor0
----
118546
133352
54139

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

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

skipif mysql # not compatible
query I rowsort label-247
SELECT - + col1 + + 76 / + col0 AS col2 FROM tab2 AS cor0
----
-17
-21
-59

query I rowsort
SELECT ( - cor0.col0 ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT col2 * 21 + col0 DIV - col2 + - col1 FROM tab1 cor0
----
1108
1186
2003

skipif mysql # not compatible
query I rowsort label-249
SELECT col2 * 21 + col0 / - col2 + - col1 FROM tab1 cor0
----
1108
1186
2003

query I rowsort
SELECT col2 * col2 + - cor0.col1 * + 47 FROM tab0 AS cor0
----
-2953
-4558
2447

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

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

query I rowsort
SELECT + 35 + + col0 AS col0 FROM tab0 AS cor0
----
124
59
70

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

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

query I rowsort
SELECT col1 + 4 AS col0 FROM tab2 AS cor0
----
21
35
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + cor0.col0 col0 FROM tab2 cor0
----
14
156
158

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

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

query I rowsort
SELECT + 87 * cor1.col1 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 0fe1f22f3d79954631ee3dfb474773c4

query I rowsort
SELECT 84 FROM tab0, tab0 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT + col1 * + 16 FROM tab0
----
1376
1456
1552

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

query I rowsort
SELECT DISTINCT - ( - 58 ) + + col2 FROM tab2 cor0
----
84
85
96

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

query I rowsort
SELECT DISTINCT + col2 * 85 FROM tab2 AS cor0
----
2210
2295
3230

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

query I rowsort
SELECT - - col0 * cor0.col0 + col0 - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-2238
1163
548

query I rowsort
SELECT + 87 + cor0.col2 - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-535
14
44

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

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

query I rowsort
SELECT + 73 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT + col1 + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-45
40
55

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

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

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

query I rowsort
SELECT + 43 * - col0 + + col2 + 9 AS col2 FROM tab0 AS cor0
----
-1495
-3736
-990

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

skipif mysql # not compatible
query I rowsort
SELECT - cor0.col0 * + CAST ( 86 AS REAL ) + col1 - col0 FROM tab2 AS cor0
----
-578
-6727
-6856

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 2 + - col1 FROM tab1 AS cor0
----
104
179
82

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

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

query I rowsort
SELECT - col1 - 61 * - col0 AS col1 FROM tab0 AS cor0
----
1378
2038
5338

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

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

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

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

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

query I rowsort
SELECT ALL + col0 + ( - 86 ) FROM tab0 cor0
----
-51
-62
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 60 * 85 col1 FROM tab2 AS cor0
----
-5021
-5022
-5093

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

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

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

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

query I rowsort
SELECT + + cor0.col2 * 23 - + 19 * - col1 FROM tab2 AS cor0
----
1197
1210
1719

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

query I rowsort
SELECT ALL + cor0.col1 * ( cor0.col1 + col0 ) AS col2 FROM tab2 AS cor0
----
1178
1632
8083

onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT + col2 * + 77 - col1 DIV + col2 FROM tab0 AS cor0
----
-20
2539
6313

skipif mysql # not compatible
query I rowsort label-298
SELECT + col2 * + 77 - col1 / + col2 FROM tab0 AS cor0
----
-20
2539
6313

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-300
SELECT - col1 DIV - cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-300
SELECT - col1 / - cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT DISTINCT + col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL + col0 * tab0.col1 - col1 AS col2 FROM tab0
----
1978
3298
8008

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

query I rowsort
SELECT ALL + + col1 * - 81 AS col2 FROM tab2 cor0
----
-1377
-2511
-4779

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

query I rowsort
SELECT DISTINCT - col2 + - ( 94 ) + + col2 FROM tab1
----
-94

query I rowsort
SELECT ALL 43 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 9f059abb74645264a8907ee97b850de4

query I rowsort
SELECT ALL - cor1.col2 * + 44 + - 47 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 805a9894c68571b305a5de6382c371d2

query I rowsort
SELECT 80 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c

query I rowsort
SELECT col1 + - col0 * 94 AS col2 FROM tab2 AS cor0
----
-627
-7273
-7409

query I rowsort
SELECT ALL + - 9 + col0 AS col2 FROM tab1 AS cor0
----
-6
55
71

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

query I rowsort
SELECT + - 15 AS col0 FROM tab1 AS cor0
----
-15
-15
-15

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

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

query I rowsort
SELECT ALL 69 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + 51 AS col0 FROM tab2
----
51
51
51

query I rowsort
SELECT ALL + 90 FROM tab1
----
90
90
90

query I rowsort
SELECT 57 + col1 FROM tab1
----
67
70
83

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

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

query I rowsort
SELECT ( col2 ) - - 66 * col0 * - col1 FROM tab2
----
-14295
-303706
-88600

query I rowsort
SELECT DISTINCT 31 FROM tab2
----
31

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - 79 FROM tab2
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + tab0.col2 * col2 col1 FROM tab0
----
-1
-35937
-551368

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-329
SELECT ALL col0 / col1 col2 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT + 38 * col2 FROM tab2 AS cor0
----
1026
1444
988

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

query I rowsort
SELECT - + 91 * col1 + col2 FROM tab1 AS cor0
----
-1087
-2312
-853

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

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

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

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 + 49 * + 10 + - col0 * - col2 FROM tab1
----
4138
652
8170

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

query I rowsort
SELECT ALL + - 41 * - col2 AS col0 FROM tab2 cor0
----
1066
1107
1558

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

query I rowsort
SELECT DISTINCT 68 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
1742
670
871

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

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

query I rowsort
SELECT DISTINCT - 58 FROM tab0 AS cor0
----
-58

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * 39 FROM tab1 AS cor0
----
-1014
-390
-507

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

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

query I rowsort
SELECT + col2 + cor0.col2 + 21 FROM tab1 AS cor0
----
129
135
213

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

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

query I rowsort
SELECT - 9 * + 18 FROM tab1
----
-162
-162
-162

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

query I rowsort
SELECT DISTINCT - col1 + 35 AS col1 FROM tab1 AS cor0
----
22
25
9

query I rowsort
SELECT ALL 80 * cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 22b9425e09ee8bd0a2a63c6f914fa897

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

query I rowsort
SELECT 73 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

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

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

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

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

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

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

query I rowsort
SELECT - col1 * col2 * + col2 + col2 * col1 FROM tab0
----
-604422
-90816
0

query I rowsort
SELECT DISTINCT + col1 * ( - ( col0 ) + 50 ) * - col0 FROM tab0
----
-50925
-53664
315861

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

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

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

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

query I rowsort
SELECT DISTINCT - + 78 * - 92 FROM tab1 AS cor0
----
7176

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-372
SELECT + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-372
SELECT + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-373
SELECT ALL col1 DIV + 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL col1 / + 80 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + 10 * - col1 FROM tab1
----
-117
-234
-90

query I rowsort
SELECT DISTINCT col0 + 77 AS col1 FROM tab1 AS cor0
----
141
157
80

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) * col0 FROM tab0 AS cor0
----
2064
3395
8099

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

query I rowsort
SELECT - 17 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

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

query I rowsort
SELECT tab1.col2 + - tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 48730a4f3ae72ef34da4083404b84d99

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

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

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

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

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

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

query I rowsort
SELECT - 4 FROM tab2, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + ( - 75 ) AS col2 FROM tab0
----
-75
-75
-75

query I rowsort
SELECT - 26 AS col2 FROM tab1
----
-26
-26
-26

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

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

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

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

query I rowsort
SELECT + 6 * col2 + + col1 FROM tab2
----
193
215
245

query I rowsort
SELECT 4 AS col2 FROM tab1
----
4
4
4

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 63 * - col2 AS col2 FROM tab0 AS cor0
----
-2079
-5166
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 + 95 col2 FROM tab1, tab0, tab2 cor0, tab2
----
81 values hashing to 8b108e2e6e657bc168a5076ef2c0ae5f

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab0.col1 col0 FROM tab0
----
7396
8281
9409

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

query I rowsort
SELECT DISTINCT + col0 + 50 FROM tab2 AS cor0
----
128
129
57

query I rowsort
SELECT DISTINCT + col2 * - 38 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1033
-1066
-1523

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT ALL + cor0.col0 DIV - ( cor0.col1 * + col0 + cor0.col1 * 19 ) FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + cor0.col0 / - ( cor0.col1 * + col0 + cor0.col1 * 19 ) FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * 88 FROM tab1
----
1144
2288
880

query I rowsort
SELECT - col0 + 66 * col1 * - col0 FROM tab2 AS cor0
----
-14329
-303810
-88717

query I rowsort
SELECT + col0 + + 79 FROM tab1 cor0
----
143
159
82

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-417
SELECT ALL - col1 * ( col2 ) DIV - col0 + + ( col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
1351
336
4621

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL - col1 * ( col2 ) / - col0 + + ( col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
1351
336
4621

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

query I rowsort
SELECT DISTINCT col1 * 85 + - col2 FROM tab1 AS cor0
----
1009
2156
793

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

query I rowsort
SELECT ALL - col1 * col1 - col2 FROM tab1 AS cor0
----
-157
-265
-730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-422
SELECT + col0 + - CAST( - 38 AS SIGNED ) FROM tab1 cor0
----
102
118
41

skipif mysql # not compatible
query I rowsort label-422
SELECT + col0 + - CAST ( - 38 AS INTEGER ) FROM tab1 cor0
----
102
118
41

query I rowsort
SELECT 22 * - col1 AS col2 FROM tab1
----
-220
-286
-572

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

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

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

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

query I rowsort
SELECT + 39 FROM tab0, tab1 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

query I rowsort
SELECT ALL + col2 * + col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col1 * + col0 - - col1 * - 4 FROM tab1 cor0
----
-26
600
988

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - + 72 * + 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d5134ee21ec5ee25612e3041332a6fcd

query I rowsort
SELECT 91 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

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

query I rowsort
SELECT - 68 + col2 AS col2 FROM tab2 AS cor0
----
-30
-41
-42

query I rowsort
SELECT + 80 * - cor0.col2 - cor0.col2 FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT - - 86 + - col2 + ( - col1 ) FROM tab1 AS cor0
----
-23
19
6

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

skipif mysql # not compatible
query I rowsort label-439
SELECT + col0 / - col2 - - col0 AS col0 FROM tab1 AS cor0
----
3
63
80

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

query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b

query I rowsort
SELECT tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # use DIV operator for integer division
query I rowsort label-443
SELECT - cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-443
SELECT - cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col0 * 22 AS col2 FROM tab1
----
1408
1760
66

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

query I rowsort
SELECT + 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-451
SELECT + - col0 * col2 DIV 51 FROM tab2 AS cor0
----
-3
-39
-58

skipif mysql # not compatible
query I rowsort label-451
SELECT + - col0 * col2 / 51 FROM tab2 AS cor0
----
-3
-39
-58

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

query I rowsort
SELECT + + 69 * col1 * col0 - + 43 FROM tab1 AS cor0
----
44117
5339
71717

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

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

skipif mysql # not compatible
query I rowsort label-455
SELECT + ( col1 ) / col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT + 40 + + 4 AS col2 FROM tab0 AS cor0
----
44
44
44

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

query I rowsort
SELECT ALL + 29 + - 94 * col1 FROM tab0 cor0
----
-8055
-8525
-9089

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 29 * col2 col1 FROM tab0 AS cor0
----
2378
29
957

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

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

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

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT CAST ( col2 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col2 + 41 AS col0 FROM tab0 AS cor0
----
123
42
74

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-466
SELECT - 58 + 91 DIV + col1 FROM tab0 AS cor0
----
-57
-57
-58

skipif mysql # not compatible
query I rowsort label-466
SELECT - 58 + 91 / + col1 FROM tab0 AS cor0
----
-57
-57
-58

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

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

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

query I rowsort
SELECT + - 76 + col0 FROM tab0 AS cor0
----
-41
-52
13

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

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

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT ALL 35 AS col2 FROM tab2 AS cor0
----
35
35
35

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

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

query I rowsort
SELECT - col2 * - cor0.col2 + + ( col1 ) * + col2 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT - 43 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 * + cor0.col2 col2 FROM tab0 AS cor0
----
-1003
-6633
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT 63 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT + col2 * + col2 * + ( - tab1.col0 * + col0 ) FROM tab1
----
-13307904
-26244
-58982400

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

query I rowsort
SELECT DISTINCT - 84 * + tab1.col2 AS col0 FROM tab1
----
-4536
-4788
-8064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 26 col2 FROM tab0
----
112
117
123

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

query I rowsort
SELECT DISTINCT col0 + + ( 2 ) * col2 AS col0 FROM tab0
----
253
37
90

query I rowsort
SELECT tab2.col1 + - 26 * col2 AS col2 FROM tab2
----
-617
-671
-971

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab2
----
-65

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

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL tab1.col2 / + col1 FROM tab1
----
2
5
7

query I rowsort
SELECT 8 * col1 * col0 AS col1 FROM tab0 AS cor0
----
16512
27160
64792

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

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

query I rowsort
SELECT - 77 + col0 * + ( col0 ) * + col0 FROM tab1 AS cor0
----
-50
262067
511923

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

query I rowsort
SELECT 49 + col0 * + 68 FROM tab0
----
1681
2429
6101

query I rowsort
SELECT DISTINCT 55 FROM tab2
----
55

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

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

skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + col2 / 41 + - col0 AS col1 FROM tab1 cor0
----
-2
-63
-78

query I rowsort
SELECT ALL - - col0 + - 42 * col2 AS col0 FROM tab0 cor0
----
-1362
-3355
-7

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

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

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

query I rowsort
SELECT col0 + 25 FROM tab1 AS cor0
----
105
28
89

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

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

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

query I rowsort
SELECT - col2 + + 92 FROM tab1 cor0
----
-4
35
38

query I rowsort
SELECT ALL + cor0.col0 - col2 * + 15 AS col1 FROM tab2 AS cor0
----
-312
-398
-491

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

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

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

query I rowsort
SELECT DISTINCT - tab2.col2 * - 32 AS col0 FROM tab2
----
1216
832
864

query I rowsort
SELECT + - ( - 66 ) * + col0 + + col1 AS col2 FROM tab0 AS cor0
----
1670
2407
5965

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

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

query I rowsort
SELECT ( col0 + tab0.col0 ) AS col2 FROM tab0
----
178
48
70

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

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

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

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

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

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

query I rowsort
SELECT + + col0 + ( col2 * - ( - cor0.col2 ) + + col2 ) AS col0 FROM tab2 cor0
----
1561
763
780

query I rowsort
SELECT ALL 87 * - 87 + + col1 * 11 FROM tab1 AS cor0
----
-7283
-7426
-7459

query I rowsort
SELECT DISTINCT - - 87 FROM tab0 AS cor0
----
87

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

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

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

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

query I rowsort
SELECT ALL + 31 * + col1 FROM tab1 AS cor0
----
310
403
806

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

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

query I rowsort
SELECT + - col2 * cor0.col1 + 85 FROM tab2 AS cor0
----
-1449
-561
-752

query I rowsort
SELECT DISTINCT + ( + col2 ) + - col0 * + cor0.col1 * col1 FROM tab1 AS cor0
----
-13424
-1974
-6343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 - + col1 col0 FROM tab1 AS cor0
----
51
64
67

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

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

query I rowsort
SELECT + 83 AS col2 FROM tab1
----
83
83
83

query I rowsort
SELECT - 84 - + col1 AS col1 FROM tab0
----
-170
-175
-181

query I rowsort
SELECT 32 + + tab2.col2 FROM tab2
----
58
59
70

query I rowsort
SELECT ALL - ( 83 ) FROM tab1, tab0, tab1 cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

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

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

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

query I rowsort
SELECT DISTINCT col2 + - 39 FROM tab1
----
15
18
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-544
SELECT ( ( - tab1.col0 ) ) * + 46 + 48 DIV - col1 AS col0 FROM tab1
----
-139
-2948
-3683

skipif mysql # not compatible
query I rowsort label-544
SELECT ( ( - tab1.col0 ) ) * + 46 + 48 / - col1 AS col0 FROM tab1
----
-139
-2948
-3683

query I rowsort
SELECT ALL + 99 + + col1 AS col1 FROM tab2 AS cor0
----
116
130
158

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

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

query I rowsort
SELECT - + 43 * col0 + + col1 FROM tab0 AS cor0
----
-1408
-3736
-946

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

query I rowsort
SELECT DISTINCT + 70 + + col2 * col2 * 77 FROM tab0
----
147
517818
83923

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

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

query I rowsort
SELECT ALL + tab1.col0 * + tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 02081120b66025475df9f31f465bcbe4

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 46 * 91 FROM tab2 AS cor0
----
-4186
-4186
-4186

query I rowsort
SELECT DISTINCT - col2 * - 94 AS col2 FROM tab0 AS cor0
----
3102
7708
94

query I rowsort
SELECT + ( - col1 ) + + col1 * 97 FROM tab2 AS cor0
----
1632
2976
5664

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-567
SELECT tab2.col1 + - col0 DIV col1 + col1 FROM tab2
----
117
30
62

skipif mysql # not compatible
query I rowsort label-567
SELECT tab2.col1 + - col0 / col1 + col1 FROM tab2
----
117
30
62

query I rowsort
SELECT ALL - col2 + ( + ( + col2 ) ) * 17 FROM tab2
----
416
432
608

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

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

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

query I rowsort
SELECT DISTINCT col0 * - col1 + ( col1 * + col2 ) FROM tab1
----
-70
1326
208

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

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

query I rowsort
SELECT ALL - col1 * col0 + + 51 FROM tab1
----
-27
-589
-989

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

query I rowsort
SELECT - 49 FROM tab2, tab2 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT + tab1.col1 * + 40 FROM tab1
----
1040
400
520

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

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

query I rowsort
SELECT - 19 + col0 AS col1 FROM tab1 AS cor0
----
-16
45
61

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

query I rowsort
SELECT + 59 * + col1 * + col0 + col0 * col1 * - col0 AS col2 FROM tab0 AS cor0
----
-242970
72240
81480

query I rowsort
SELECT ALL - - cor0.col1 * + 78 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT DISTINCT - col0 * 93 + col0 + 88 * col1 FROM tab0 cor0
----
-180
5316
5360

query I rowsort
SELECT ALL - col0 * col2 - cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-587
SELECT DISTINCT - - ( 41 ) * - col0 + CAST( + col0 AS SIGNED ) * + col1 DIV col1 FROM tab2 cor0
----
-280
-3120
-3160

skipif mysql # not compatible
query I rowsort label-587
SELECT DISTINCT - - ( 41 ) * - col0 + CAST ( + col0 AS INTEGER ) * + col1 / col1 FROM tab2 cor0
----
-280
-3120
-3160

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 * + col0 col2 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-591
SELECT DISTINCT CAST( col0 AS SIGNED ) * cor0.col0 + + 71 FROM tab0 AS cor0
----
1296
647
7992

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT CAST ( col0 AS INTEGER ) * cor0.col0 + + 71 FROM tab0 AS cor0
----
1296
647
7992

query I rowsort
SELECT DISTINCT col2 * 22 - + col1 FROM tab1 AS cor0
----
1162
1244
2099

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

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

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

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

query I rowsort
SELECT DISTINCT + - col0 + + col0 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT - cor0.col0 + - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-597
SELECT - cor0.col0 + - col2 / - col0 AS col0 FROM tab1 AS cor0
----
-64
-79
15

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-602
SELECT ALL tab0.col0 DIV col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL tab0.col0 / col2 FROM tab0
----
0
1
35

query I rowsort
SELECT DISTINCT tab1.col1 AS col0 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-604
SELECT ALL col0 DIV - col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL col0 / - col1 FROM tab1
----
-6
-6
0

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

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

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

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

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

query I rowsort
SELECT + 11 * col2 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT ALL 89 * col0 + - col2 FROM tab2 AS cor0
----
596
6916
6993

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col0 + + col0 + + col0 * + tab2.col1 FROM tab2
----
1501
231
4758

query I rowsort
SELECT - col0 * col0 * + col2 FROM tab2 WHERE NOT NULL IN ( - tab2.col0 * - col1 + col0 )
----

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT col1 * col0 * + col0 FROM tab1
----
234
40960
83200

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

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT + col2 > NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-634
SELECT cor0.col2 + - col0 / - cor0.col0 col1 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT + col2 * - col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL col1 * + col1 + + col1 AS col2 FROM tab0
----
7482
8372
9506

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

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

query I rowsort
SELECT ALL col1 / - col1 + col0 FROM tab1 WHERE NULL IN ( col2 * - col1 )
----

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

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

query I rowsort
SELECT DISTINCT + tab0.col1 * col0 + + tab0.col2 FROM tab0 WHERE + col0 <= NULL
----

query I rowsort
SELECT DISTINCT - tab0.col0 AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT tab0.col2 AS col1 FROM tab0 WHERE NOT col1 BETWEEN - col0 AND ( + col0 )
----
1
33
82

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

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

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

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

query I rowsort
SELECT + col0 * tab2.col1 FROM tab2 WHERE col0 > ( NULL )
----

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

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE + col0 = col2 / col1
----

query I rowsort
SELECT ALL + col1 - + col1 FROM tab0 WHERE col2 <= + col0
----
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-653
SELECT ALL col0 - col1 DIV col2 AS col2 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-653
SELECT ALL col0 - col1 / col2 AS col2 FROM tab0
----
-62
22
88

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-656
SELECT + col0 + col0 - col1 DIV + col2 FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-656
SELECT + col0 + col0 - col1 / + col2 FROM tab1
----
128
160
6

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

query I rowsort
SELECT ALL col0 * tab0.col1 + + col2 * col0 * col1 + - col1 FROM tab0
----
6693
672126
70090

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-664
SELECT col1 + - col0 / cor0.col2 FROM tab1 cor0
----
13
26
9

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE col0 - - col1 = col0 * - col2
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT ALL col2 DIV col1 + - col1 DIV col0 - col0 AS col2 FROM tab1
----
-59
-73
-9

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL col2 / col1 + - col1 / col0 - col0 AS col2 FROM tab1
----
-59
-73
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + - col1 < NULL
----

query I rowsort
SELECT - 4 + 54 * + col2 AS col2 FROM tab0 AS cor0
----
1778
4424
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * - 22 col0 FROM tab0 AS cor0
----
-594
-594
-594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 + 27 col0 FROM tab1 AS cor0
----
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-679
SELECT + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-679
SELECT + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82

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

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

query I rowsort
SELECT ALL col1 * col2 + col1 * - 70 AS col1 FROM tab0 AS cor0
----
-3182
-6693
1092

query I rowsort
SELECT + + 51 AS col0 FROM tab1 AS cor0
----
51
51
51

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

query I rowsort
SELECT - 44 + - col0 FROM tab0 AS cor0
----
-133
-68
-79

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

query I rowsort
SELECT col2 + col1 * + 33 AS col2 FROM tab1
----
387
525
912

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 96 * + col0 + + col0 col1 FROM tab0
----
-198120
-325885
-777415

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-693
SELECT CAST( - 89 + col1 AS SIGNED ) FROM tab2
----
-30
-58
-72

skipif mysql # not compatible
query I rowsort label-693
SELECT CAST ( - 89 + col1 AS INTEGER ) FROM tab2
----
-30
-58
-72

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

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

query I rowsort
SELECT - 12 + - col2 AS col2 FROM tab0 AS cor0
----
-13
-45
-94

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

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * col0 + col1 FROM tab1 AS cor0
----
104
1053
650

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

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d

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

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-706
SELECT + col2 + CAST( 84 AS SIGNED ) FROM tab1 AS cor0
----
138
141
180

skipif mysql # not compatible
query I rowsort label-706
SELECT + col2 + CAST ( 84 AS INTEGER ) FROM tab1 AS cor0
----
138
141
180

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

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

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

query I rowsort
SELECT col2 + - col1 * 34 + - col0 AS col0 FROM tab0
----
-2915
-3101
-3332

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

query I rowsort
SELECT ALL col2 + cor0.col1 * 56 FROM tab0 AS cor0
----
4849
5178
5433

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

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

query I rowsort
SELECT DISTINCT col2 * - 64 + 43 AS col0 FROM tab2 cor0
----
-1621
-1685
-2389

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

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 + col2 * col1 * col2 - col1 FROM tab2 AS cor0
----
22568
24531
39825

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

query I rowsort
SELECT + - col1 * col0 + col2 + - col2 * - col2 FROM tab2 AS cor0
----
-3900
139
539

query I rowsort
SELECT - col0 * + 70 - + col0 FROM tab2 AS cor0
----
-497
-5538
-5609

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

skipif mysql # not compatible
query I rowsort label-722
SELECT + col0 * + ( - col0 ) - + col1 / + col0 AS col1 FROM tab2 AS cor0
----
-53
-6084
-6241

query I rowsort
SELECT ALL + col1 * ( 16 ) AS col1 FROM tab0 AS cor0
----
1376
1456
1552

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

query I rowsort
SELECT + col0 * - 18 - + 86 FROM tab0 cor0
----
-1688
-518
-716

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

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

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

query I rowsort
SELECT 25 + + col2 AS col2 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT - + col1 * - 88 * col0 + col1 AS col1 FROM tab1 AS cor0
----
56330
6890
91533

query I rowsort
SELECT + 16 + + col2 AS col0 FROM tab0 AS cor0
----
17
49
98

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

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

query I rowsort
SELECT DISTINCT - 88 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT 91 FROM tab1 AS cor0
----
91
91
91

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

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

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

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

query I rowsort
SELECT 40 + - 76 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT col1 + - ( - 17 ) AS col1 FROM tab1 AS cor0
----
27
30
43

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

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

query I rowsort
SELECT - + col0 * col1 + - ( + col2 ) + - col2 * - col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
118672
31793
75684

query I rowsort
SELECT + cor0.col1 + + 28 + + col1 FROM tab2 cor0
----
146
62
90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * col0 col0 FROM tab2
----
672
7488
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT ALL 35 DIV - col1 AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL 35 / - col1 AS col1 FROM tab2
----
-1
-2
0

query I rowsort
SELECT + 2 + col2 * + col2 FROM tab1
----
2918
3251
9218

onlyif mysql # use DIV operator for integer division
query I rowsort label-749
SELECT DISTINCT + 81 DIV col1 col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT + 81 / col1 col1 FROM tab0
----
0

query I rowsort
SELECT + + 57 + + col1 FROM tab0 AS cor0
----
143
148
154

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

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

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

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

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

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

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

query I rowsort
SELECT 73 * col2 AS col1 FROM tab2 AS cor0
----
1898
1971
2774

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

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

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

query I rowsort
SELECT DISTINCT col0 + - 41 AS col1 FROM tab2 AS cor0
----
-34
37
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-761
SELECT DISTINCT col2 DIV - tab2.col1 AS col1 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-761
SELECT DISTINCT col2 / - tab2.col1 AS col1 FROM tab2
----
-2
0

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-764
SELECT 30 * - col1 - - col2 * - CAST( - 99 + col0 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
12426
28370
66138

skipif mysql # not compatible
query I rowsort label-764
SELECT 30 * - col1 - - col2 * - CAST ( - 99 + col0 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
12426
28370
66138

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

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

skipif mysql # not compatible
query I rowsort label-766
SELECT + ( + col1 ) * + col0 + + CAST ( ( - col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
24
583
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-767
SELECT 64 * cor0.col1 DIV - col1 + col0 FROM tab0 AS cor0
----
-29
-40
25

skipif mysql # not compatible
query I rowsort label-767
SELECT 64 * cor0.col1 / - col1 + col0 FROM tab0 AS cor0
----
-29
-40
25

query I rowsort
SELECT - col2 + col2 * + 39 + + col1 AS col2 FROM tab0
----
1340
135
3207

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

query I rowsort
SELECT ALL - 20 FROM tab0, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT tab1.col0 * + tab1.col1 * + col0 FROM tab1
----
234
40960
83200

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-774
SELECT CAST( - col0 AS SIGNED ) * col2 * col1 AS col1 FROM tab2
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-774
SELECT CAST ( - col0 AS INTEGER ) * col2 * col1 AS col1 FROM tab2
----
-119652
-51034
-5859

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 58 + cor0.col2 col1 FROM tab2 AS cor0
----
-20
-31
-32

query I rowsort
SELECT - - ( ( col1 ) ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT 85 FROM tab1
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-779
SELECT DISTINCT + col2 DIV + 49 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT + col2 / + 49 AS col2 FROM tab0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT DISTINCT + + col0 + + col2 + col1 DIV col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT + + col0 + + col2 + col1 / col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
27
28
39

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

query I rowsort
SELECT tab1.col2 * - 8 * - col1 FROM tab1
----
11232
4560
9984

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

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

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

query I rowsort
SELECT + 11 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2827
-7451
-86

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

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

query I rowsort
SELECT + 50 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT ALL - col1 + + col0 - col1 FROM tab2 AS cor0
----
-40
-55
45

query I rowsort
SELECT 58 * + col2 AS col0 FROM tab2
----
1508
1566
2204

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-793
SELECT CAST( + col2 AS SIGNED ) - - col0 * 83 col2 FROM tab2
----
608
6500
6595

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-793
SELECT CAST ( + col2 AS INTEGER ) - - col0 * 83 col2 FROM tab2
----
608
6500
6595

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-795
SELECT DISTINCT col2 * col0 + tab1.col1 DIV + tab1.col1 FROM tab1
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT col2 * col0 + tab1.col1 / + tab1.col1 FROM tab1
----
163
3649
7681

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

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

skipif mysql # not compatible
query I rowsort label-797
SELECT CAST ( NULL AS INTEGER ) / col2 + col1 / - ( + 60 ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * 74 + col1 col2 FROM tab0
----
6006
6011
6017

query I rowsort
SELECT + 25 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + col0 + col1 col2 FROM tab0
----
1357
686
8101

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

query I rowsort
SELECT - col0 * - col1 + 3 AS col0 FROM tab0 cor0
----
2067
3398
8102

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

query I rowsort
SELECT DISTINCT - col2 * col1 + 93 - col2 FROM tab0 AS cor0
----
-2778
-5
-7451

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

query I rowsort
SELECT 50 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2114
3445
8149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 + col0 * 70 col0 FROM tab2 cor0
----
395
5365
5435

query I rowsort
SELECT DISTINCT + + col0 + col1 * col0 * 92 + col2 AS col1 FROM tab2 cor0
----
123673
19998
423488

query I rowsort
SELECT ALL + + 97 - - col1 FROM tab0 AS cor0
----
183
188
194

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

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

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

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

query I rowsort
SELECT + col1 + + 37 FROM tab1
----
47
50
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-816
SELECT - CAST( 63 AS SIGNED ) FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 0a6489496517f27fb746473909f2b76b

skipif mysql # not compatible
query I rowsort label-816
SELECT - CAST ( 63 AS INTEGER ) FROM tab0, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 0a6489496517f27fb746473909f2b76b

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-818
SELECT + col0 DIV - 36 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-818
SELECT + col0 / - 36 FROM tab1 AS cor0
----
-1
-2
0

query I rowsort
SELECT + col2 + + 79 FROM tab1 cor0
----
133
136
175

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

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

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

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

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

query I rowsort
SELECT + col0 + + 75 FROM tab2
----
153
154
82

query I rowsort
SELECT DISTINCT + 40 * + 99 + cor0.col2 AS col0 FROM tab2 AS cor0
----
3986
3987
3998

query I rowsort
SELECT DISTINCT + + 46 * - 6 - col2 FROM tab0 AS cor0
----
-277
-309
-358

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 38 col0 FROM tab0 AS cor0
----
3268
3458
3686

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - 29 FROM tab1 AS cor0
----
-1566
-1653
-2784

query I rowsort
SELECT - cor0.col1 * + 88 + 60 FROM tab1 AS cor0
----
-1084
-2228
-820

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * - col1 col0 FROM tab1 AS cor0
----
156
60
78

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query I rowsort
SELECT + col1 * - col0 + col0 * + ( 77 ) FROM tab2 cor0
----
1404
322
4740

query I rowsort
SELECT ALL col0 * + ( + col2 + col0 ) FROM tab2
----
238
8112
9243

query I rowsort
SELECT ALL tab2.col0 + - col1 + - 94 FROM tab2
----
-118
-32
-75

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

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

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

query I rowsort
SELECT 39 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

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

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE col1 BETWEEN col1 AND col0 * col1
----
-1
-33
-82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT DISTINCT col2 + col0 * tab0.col1 DIV - tab0.col1 FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT col2 + col0 * tab0.col1 / - tab0.col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL - tab2.col0 AS col1 FROM tab2 WHERE ( NULL ) <> col1
----

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

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

query I rowsort
SELECT DISTINCT + ( + col1 ) + 5 AS col0 FROM tab1
----
15
18
31

query I rowsort
SELECT + 50 AS col1 FROM tab0
----
50
50
50

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

query I rowsort
SELECT ALL 38 + tab0.col2 AS col2 FROM tab0
----
120
39
71

query I rowsort
SELECT ALL + 27 + col0 AS col1 FROM tab0
----
116
51
62

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

query I rowsort
SELECT DISTINCT - 87 * - 6 FROM tab1, tab1 cor0
----
522

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-883
SELECT ALL - 93 + - col2 DIV 80 FROM tab0 AS cor0
----
-93
-93
-94

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL - 93 + - col2 / 80 FROM tab0 AS cor0
----
-93
-93
-94

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

query I rowsort
SELECT ALL ( col2 ) * 89 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
0
2145
54

query I rowsort
SELECT 93 * - col2 FROM tab0
----
-3069
-7626
-93

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

query I rowsort
SELECT DISTINCT + col2 * + col0 + 40 FROM tab1 AS cor0
----
202
3688
7720

query I rowsort
SELECT - - col2 * ( 56 ) AS col0 FROM tab0 AS cor0
----
1848
4592
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + 27 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to baa760800c5e29dae30037995a6e3929

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

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

query I rowsort
SELECT ALL 6 FROM tab2
----
6
6
6

query I rowsort
SELECT ALL + 17 FROM tab1, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

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

query I rowsort
SELECT col0 * - col0 * col1 - + col1 FROM tab0 AS cor0
----
-118922
-49622
-720902

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

query I rowsort
SELECT col2 * - col1 + 73 AS col1 FROM tab0 AS cor0
----
-24
-2765
-7389

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

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

query I rowsort
SELECT ALL 2 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL - 46 + + col2 * + col0 FROM tab2 cor0
----
143
1982
2956

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

query I rowsort
SELECT ( 23 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1472
1840
69

query I rowsort
SELECT DISTINCT 70 * col0 AS col1 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT ALL - 83 AS col2 FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT - 49 * col0 + col1 AS col0 FROM tab1 AS cor0
----
-121
-3126
-3907

query I rowsort
SELECT DISTINCT + 24 * col2 * col0 AS col0 FROM tab1 AS cor0
----
184320
3888
87552

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 * + col0 col2 FROM tab1 AS cor0
----
-12
-4160
-6480

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

query I rowsort
SELECT - 33 FROM tab2 AS cor0
----
-33
-33
-33

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-919
SELECT ALL - 58 DIV + col0 FROM tab1
----
-19
0
0

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL - 58 / + col0 FROM tab1
----
-19
0
0

query I rowsort
SELECT - + 89 * col0 FROM tab2 AS cor0
----
-623
-6942
-7031

query I rowsort
SELECT + - ( - col1 ) * - col1 * - col1 AS col0 FROM tab1 AS cor0
----
1000
17576
2197

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

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

query I rowsort
SELECT - col0 * + 27 AS col1 FROM tab2
----
-189
-2106
-2133

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - 33 * col1 FROM tab0 AS cor0
----
-2838
-3003
-3201

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

query I rowsort
SELECT col0 - + 34 * + col2 * tab0.col0 AS col2 FROM tab0
----
-1155
-248043
-26904

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

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

query I rowsort
SELECT ALL - 88 * + col0 + + cor0.col1 FROM tab1 AS cor0
----
-238
-5622
-7027

query I rowsort
SELECT + + ( 67 ) * cor0.col0 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT ALL 42 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

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

query I rowsort
SELECT + col0 + + 78 AS col2 FROM tab1 AS cor0
----
142
158
81

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

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

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

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

query I rowsort
SELECT ALL col2 * col2 + tab0.col1 * tab0.col1 * col0 - col1 * tab0.col2 * col1 FROM tab0
----
-65475
319907
64691

query I rowsort
SELECT ALL + 40 * col2 AS col2 FROM tab0
----
1320
3280
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

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

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

query I rowsort
SELECT DISTINCT + col1 * + 48 FROM tab0 AS cor0
----
4128
4368
4656

query I rowsort
SELECT ALL + - col1 + 57 FROM tab0 AS cor0
----
-29
-34
-40

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

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + 13 FROM tab0 AS cor0
----
2077
3408
8112

onlyif mysql # use DIV operator for integer division
query I rowsort label-948
SELECT + col1 * - col1 + 31 DIV - col1 AS col1 FROM tab2 AS cor0
----
-290
-3481
-962

skipif mysql # not compatible
query I rowsort label-948
SELECT + col1 * - col1 + 31 / - col1 AS col1 FROM tab2 AS cor0
----
-290
-3481
-962

query I rowsort
SELECT - cor0.col1 + - 93 AS col1 FROM tab0 AS cor0
----
-179
-184
-190

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

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

query I rowsort
SELECT DISTINCT + 43 FROM tab1
----
43

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

query I rowsort
SELECT ALL - - cor0.col1 + - col2 + 30 FROM tab2 cor0
----
34
63
9

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT DISTINCT - - cor0.col2 * col2 - - 35 DIV - col1 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT - - cor0.col2 * col2 - - 35 / - col1 FROM tab0 AS cor0
----
1
1089
6724

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL + col1 / 96 + - col1 / - col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL cor0.col1 + 84 FROM tab1 AS cor0
----
110
94
97

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

query I rowsort
SELECT DISTINCT - tab1.col0 * 17 FROM tab1, tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT DISTINCT - tab1.col0 + + col1 * col1 + - col0 AS col0 FROM tab1
----
-28
670
9

query I rowsort
SELECT + + cor0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 70 col1 FROM tab2 AS cor0
----
-490
-5460
-5530

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

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

query I rowsort
SELECT ALL + cor0.col1 + 24 FROM tab0 AS cor0
----
110
115
121

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

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

query I rowsort
SELECT ALL + col1 - - 37 AS col1 FROM tab2
----
54
68
96

query I rowsort
SELECT ALL col1 * - 22 - + 52 AS col1 FROM tab0
----
-1944
-2054
-2186

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

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

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

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

query I rowsort
SELECT ALL - + 36 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1116
-2124
-612

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

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

query I rowsort
SELECT ALL - - 75 + + cor0.col0 * + col2 + - 89 FROM tab2 AS cor0
----
175
2014
2988

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

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

query I rowsort
SELECT DISTINCT - 39 + - col2 FROM tab2 AS cor0
----
-65
-66
-77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * 87 * tab1.col0 col0 FROM tab1, tab1 cor0
----
9 values hashing to 99bdb50c5370819f681338e422387384

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

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

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

query I rowsort
SELECT ALL cor1.col0 * cor1.col1 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to aff311fa1b3948e179779cc03c1fade4

query I rowsort
SELECT ALL + col1 + + 11 + + col0 FROM tab0
----
121
143
191

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

query I rowsort
SELECT ALL - + 92 - - cor0.col1 AS col1 FROM tab0 AS cor0
----
-1
-6
5

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

query I rowsort
SELECT ALL col2 - + col2 * col2 * - col1 FROM tab1 AS cor0
----
119904
32547
75870

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0
----
-10
-13
-26

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

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

query I rowsort
SELECT ALL + - ( - col0 ) * - ( + 95 ) FROM tab1 cor0
----
-285
-6080
-7600

query I rowsort
SELECT DISTINCT + ( col2 ) + cor0.col1 + + col1 FROM tab1 AS cor0
----
106
122
77

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

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

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

query I rowsort
SELECT - - 25 FROM tab0 AS cor0
----
25
25
25

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

query I rowsort
SELECT ALL + cor0.col0 * col2 + 5 FROM tab1 AS cor0
----
167
3653
7685

query I rowsort
SELECT ALL col0 + - 61 * + col0 FROM tab2
----
-420
-4680
-4740

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT + 55 - col0 DIV + col0 FROM tab1
----
54
54
54

skipif mysql # not compatible
query I rowsort label-1007
SELECT + 55 - col0 / + col0 FROM tab1
----
54
54
54

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

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

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

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

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

query I rowsort
SELECT + 62 * col2 FROM tab1 AS cor0
----
3348
3534
5952

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

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

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

query I rowsort
SELECT DISTINCT + cor1.col0 + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d713273c58b5bb3663f6ea2d5129db59

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

query I rowsort
SELECT DISTINCT col2 + + col2 * col0 + col2 * + col1 AS col0 FROM tab1
----
1620
4275
9024

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 * + col1 ) col1 FROM tab0
----
-7396
-8281
-9409

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1023
SELECT ALL + 65 + ( + tab0.col0 ) DIV 23 AS col0 FROM tab0
----
66
66
68

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + 65 + ( + tab0.col0 ) / 23 AS col0 FROM tab0
----
66
66
68

query I rowsort
SELECT - col2 + col2 + col0 AS col1 FROM tab2
----
7
78
79

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + col2 + col1 * col1 AS col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT col0 - col0 * 93 FROM tab0 AS cor0
----
-2208
-3220
-8188

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

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

query I rowsort
SELECT + col1 * cor0.col0 - - col0 * col2 AS col1 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT DISTINCT + 25 * - col2 AS col0 FROM tab2 cor0
----
-650
-675
-950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col1 + cor0.col1 col1 FROM tab1 cor0
----
104
1053
650

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

query I rowsort
SELECT ALL col0 * col0 + 97 * 72 FROM tab0 AS cor0
----
14905
7560
8209

query I rowsort
SELECT col0 * col2 - + 68 * cor0.col1 FROM tab1 AS cor0
----
-1606
2968
6796

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

query I rowsort
SELECT 16 FROM tab0, tab2 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1043
SELECT - - 34 DIV col1 - col0 FROM tab1 AS cor0
----
-2
-61
-78

skipif mysql # not compatible
query I rowsort label-1043
SELECT - - 34 / col1 - col0 FROM tab1 AS cor0
----
-2
-61
-78

query I rowsort
SELECT - 9 - col0 * ( - cor0.col0 * cor0.col0 ) AS col1 FROM tab0 cor0
----
13815
42866
704960

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT ALL cor0.col1 DIV ( 88 ) + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 25ecf5041eff54cf1860bc53b71d1052

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL cor0.col1 / ( 88 ) + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 25ecf5041eff54cf1860bc53b71d1052

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

query I rowsort
SELECT - col2 * 9 + 10 AS col0 FROM tab2 AS cor0
----
-224
-233
-332

onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT DISTINCT - cor0.col0 DIV + 68 col0 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - cor0.col0 / + 68 col0 FROM tab0 AS cor0
----
-1
0

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

query I rowsort
SELECT ALL + - cor0.col2 FROM tab1 cor0
----
-54
-57
-96

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1055
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 71 col1 FROM tab1 AS cor0
----
-3834
-4047
-6816

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1060
SELECT + col1 + + ( col1 ) DIV ( cor0.col2 ) FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-1060
SELECT + col1 + + ( col1 ) / ( cor0.col2 ) FROM tab0 AS cor0
----
194
88
92

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1063
SELECT - col1 DIV + col0 + - col0 * + 98 * 53 + col1 AS col0 FROM tab1 AS cor0
----
-15564
-332406
-415507

skipif mysql # not compatible
query I rowsort label-1063
SELECT - col1 / + col0 + - col0 * + 98 * 53 + col1 AS col0 FROM tab1 AS cor0
----
-15564
-332406
-415507

onlyif mysql # use DIV operator for integer division
query I rowsort label-1064
SELECT + 32 DIV col0 AS col0 FROM tab1 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-1064
SELECT + 32 / col0 AS col0 FROM tab1 AS cor0
----
0
0
10

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

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

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

query I rowsort
SELECT ( - 35 ) FROM tab2
----
-35
-35
-35

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

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

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

query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab1
----
-76

query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL 42 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

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

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

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

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

query I rowsort
SELECT col0 + 58 FROM tab1 AS cor0
----
122
138
61

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

query I rowsort
SELECT 52 * - col1 FROM tab1
----
-1352
-520
-676

query I rowsort
SELECT - 75 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT col0 * - 18 AS col0 FROM tab1
----
-1152
-1440
-54

query I rowsort
SELECT ALL - + col2 + ( + 52 ) + + col0 AS col0 FROM tab0 AS cor0
----
43
59
86

query I rowsort
SELECT DISTINCT col1 + 54 AS col2 FROM tab1 AS cor0
----
64
67
80

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

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

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1092
SELECT ALL + col0 + - col1 DIV ( + col0 ) + col0 * + col2 FROM tab0
----
68
7386
813

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + col0 + - col1 / ( + col0 ) + col0 * + col2 FROM tab0
----
68
7386
813

query I rowsort
SELECT DISTINCT + 32 + tab2.col2 + 29 FROM tab2
----
87
88
99

query I rowsort
SELECT ALL - 17 + - col1 FROM tab2
----
-34
-48
-76

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

query I rowsort
SELECT DISTINCT - col1 * - col1 + + 42 FROM tab2
----
1003
331
3523

query I rowsort
SELECT + col1 * + col2 + + 97 FROM tab0 cor0
----
194
2935
7559

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

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

query I rowsort
SELECT + 71 * cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ba0073b29b2011dfaebe56df3667c42

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

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

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

query I rowsort
SELECT ( - 17 ) + + col0 - - col0 FROM tab1
----
-11
111
143

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

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

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

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

query I rowsort
SELECT + 78 + col2 AS col0 FROM tab0 AS cor0
----
111
160
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1109
SELECT ALL - 14 DIV - 70 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL - 14 / - 70 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 23 * + 84 * + col1 FROM tab0
----
166152
175812
187404

onlyif mysql # use DIV operator for integer division
query I rowsort label-1111
SELECT col2 + col2 DIV - col1 FROM tab2
----
26
27
36

skipif mysql # not compatible
query I rowsort label-1111
SELECT col2 + col2 / - col1 FROM tab2
----
26
27
36

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 62 * - col1 col1 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT + 75 + 49 * - col2 AS col1 FROM tab1 AS cor0
----
-2571
-2718
-4629

query I rowsort
SELECT ALL - 92 FROM tab2 cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT + + col1 + ( col1 ) FROM tab2 AS cor0
----
118
34
62

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

query I rowsort
SELECT + + 84 * col0 + + col2 FROM tab2 AS cor0
----
615
6578
6674

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1124
SELECT ALL cor0.col2 * cor0.col0 - - col0 DIV 51 AS col2 FROM tab2 cor0
----
189
2029
3003

skipif mysql # not compatible
query I rowsort label-1124
SELECT ALL cor0.col2 * cor0.col0 - - col0 / 51 AS col2 FROM tab2 cor0
----
189
2029
3003

query I rowsort
SELECT ALL 30 + - col0 FROM tab0 AS cor0
----
-5
-59
6

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col1 - col2 FROM tab1 AS cor0
----
-157
-265
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

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

query I rowsort
SELECT + cor0.col1 * + col0 + + cor0.col2 + ( cor0.col2 ) FROM tab1 AS cor0
----
1232
186
754

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 - cor0.col0 * col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 99 * col2 FROM tab1 AS cor0
----
5346
5643
9504

query I rowsort
SELECT + + col1 * col1 - ( col2 + cor0.col2 ) FROM tab2 cor0
----
213
3429
907

query I rowsort
SELECT + col2 * + 68 - col0 AS col1 FROM tab2
----
1690
1829
2505

query I rowsort
SELECT ALL 50 FROM tab1
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-1136
SELECT ALL + col2 + col1 DIV - 28 + - col0 FROM tab2 AS cor0
----
-41
-54
19

skipif mysql # not compatible
query I rowsort label-1136
SELECT ALL + col2 + col1 / - 28 + - col0 FROM tab2 AS cor0
----
-41
-54
19

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) - - col0 col1 FROM tab2
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col0 FROM tab0
----
1
33
82

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

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

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

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

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab2 cor0
----
7
78
79

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 DISTINCT - - col0 + + col2 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT + col2 + 42 FROM tab1 AS cor0
----
138
96
99

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

query I rowsort
SELECT DISTINCT - - col0 * + 38 FROM tab1 AS cor0
----
114
2432
3040

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

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

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

query I rowsort
SELECT ALL - col2 + - 66 * col1 FROM tab2 AS cor0
----
-1160
-2073
-3920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT DISTINCT - col0 DIV 97 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT - col0 / 97 + + col2 AS col2 FROM tab2 AS cor0
----
26
27
38

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

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

query I rowsort
SELECT ALL - col2 * 49 + - col1 AS col1 FROM tab1 AS cor0
----
-2672
-2803
-4717

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

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

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

query I rowsort
SELECT ALL - + 58 * + col0 AS col2 FROM tab2 AS cor0
----
-406
-4524
-4582

query I rowsort
SELECT ALL col0 + + 4 FROM tab1
----
68
7
84

query I rowsort
SELECT ALL - tab1.col0 FROM tab1, tab2 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

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

query I rowsort
SELECT ALL + col0 * + 40 + 87 FROM tab1 cor0
----
207
2647
3287

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1169
SELECT ALL - col1 DIV - col0 + + col2 + col1 FROM tab1 cor0
----
109
67
88

skipif mysql # not compatible
query I rowsort label-1169
SELECT ALL - col1 / - col0 + + col2 + col1 FROM tab1 cor0
----
109
67
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1170
SELECT ALL + + cor0.col2 * CAST( 57 AS SIGNED ) + - col2 DIV + 67 AS col1 FROM tab0 AS cor0
----
1881
4673
57

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + + cor0.col2 * CAST ( 57 AS INTEGER ) + - col2 / + 67 AS col1 FROM tab0 AS cor0
----
1881
4673
57

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

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

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

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

query I rowsort
SELECT + col2 * + 96 * col0 FROM tab2 AS cor0
----
18144
194688
288192

query I rowsort
SELECT ALL + - 77 * col2 FROM tab0 AS cor0
----
-2541
-6314
-77

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

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 68 FROM tab2 AS cor0
----
NULL

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

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

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

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

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

query I rowsort
SELECT - - 29 * - 45 + col2 AS col1 FROM tab2 AS cor0
----
-1267
-1278
-1279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT + 76 * - col1 AS col1 FROM tab0 AS cor0
----
-6536
-6916
-7372

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

query I rowsort
SELECT ALL + 20 * - col1 AS col2 FROM tab2 cor0
----
-1180
-340
-620

query I rowsort
SELECT + + 70 * - col0 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT + 31 * col0 FROM tab0 AS cor0
----
1085
2759
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + col1 * cor0.col2 col2 FROM tab2 AS cor0
----
1475
629
806

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

query I rowsort
SELECT - 71 FROM tab1 AS cor0
----
-71
-71
-71

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

query I rowsort
SELECT ALL 85 * + col1 AS col0 FROM tab0 AS cor0
----
7310
7735
8245

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

query I rowsort
SELECT 17 * col2 * col2 FROM tab2 AS cor0
----
11492
12393
24548

query I rowsort
SELECT ALL - ( + col0 ) + + col1 * 62 FROM tab2
----
1915
3580
975

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT 17 - col2 FROM tab1
----
-37
-40
-79

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1203
SELECT ALL + 48 DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + 48 / + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 84 * - col1 AS col2 FROM tab2 AS cor0
----
-1428
-2604
-4956

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + col1 col0 FROM tab1 AS cor0
----
13
16
29

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

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

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

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

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

query I rowsort
SELECT + col2 + - ( - col2 + - col0 ) FROM tab0 cor0
----
253
37
90

query I rowsort
SELECT - ( - col0 ) + - col1 * ( 69 ) AS col2 FROM tab1 AS cor0
----
-1791
-626
-817

query I rowsort
SELECT col0 + + cor0.col2 * col0 - 7 FROM tab1 AS cor0
----
158
3705
7753

onlyif mysql # use DIV operator for integer division
query I rowsort label-1215
SELECT - 40 DIV col0 FROM tab1 cor0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-1215
SELECT - 40 / col0 FROM tab1 cor0
----
-13
0
0

query I rowsort
SELECT ( ( - col0 ) ) + - 28 * + 27 FROM tab2 cor0
----
-763
-834
-835

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

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

query I rowsort
SELECT - 94 - col1 FROM tab1 AS cor0
----
-104
-107
-120

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

query I rowsort
SELECT 98 * - 21 AS col2 FROM tab2
----
-2058
-2058
-2058

query I rowsort
SELECT DISTINCT - 60 AS col0 FROM tab1
----
-60

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-1223
SELECT col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

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

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

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

query I rowsort
SELECT ( + col0 ) + + col0 + + 16 FROM tab0
----
194
64
86

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

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

query I rowsort
SELECT DISTINCT 59 * col2 AS col2 FROM tab0 AS cor0
----
1947
4838
59

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1231
SELECT + 5 DIV - 56 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1231
SELECT + 5 / - 56 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * + tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1d94ea086ff4b04d01d3c46ff83c5c3d

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

query I rowsort
SELECT 43 AS col0 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT - ( - 77 ) AS col0 FROM tab1
----
77
77
77

query I rowsort
SELECT ( - col0 ) * col1 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT ALL + ( 33 ) DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL + ( 33 ) / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col1 * 77 FROM tab0 cor0
----
-6622
-7007
-7469

query I rowsort
SELECT DISTINCT ( - 13 ) * - col1 * + col0 AS col2 FROM tab1 AS cor0
----
1014
13520
8320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1241
SELECT ALL CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-1241
SELECT ALL CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

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

query I rowsort
SELECT ALL + + 78 * 41 AS col2 FROM tab2 AS cor0
----
3198
3198
3198

query I rowsort
SELECT - 15 * 52 FROM tab2 AS cor0
----
-780
-780
-780

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

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

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

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

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

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

query I rowsort
SELECT col0 - 92 FROM tab2
----
-13
-14
-85

query I rowsort
SELECT ALL 29 FROM tab2, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + 47 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * 30 col1 FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT DISTINCT - col1 + 4 AS col2 FROM tab2 AS cor0
----
-13
-27
-55

query I rowsort
SELECT ALL - 45 FROM tab2, tab1 cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

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

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

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

query I rowsort
SELECT DISTINCT 9 FROM tab1, tab0 cor0
----
9

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

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

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

query I rowsort
SELECT - col0 + col1 * - 80 FROM tab2 AS cor0
----
-1439
-2487
-4798

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

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

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT ALL + 64 * + 40 AS col1 FROM tab0 AS cor0
----
2560
2560
2560

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

query I rowsort
SELECT DISTINCT - col2 + - 88 AS col0 FROM tab1 AS cor0
----
-142
-145
-184

query I rowsort
SELECT + 33 * col0 AS col2 FROM tab2 AS cor0
----
231
2574
2607

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

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

query I rowsort
SELECT + cor1.col0 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col2 * 75 * col0 + col2 FROM tab2
----
14202
152126
225188

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

query I rowsort
SELECT ALL + 55 * cor0.col2 FROM tab1 cor0
----
2970
3135
5280

query I rowsort
SELECT DISTINCT + 59 + col2 * - col1 FROM tab2 AS cor0
----
-1475
-587
-778

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * - col1 + 51 AS col1 FROM tab0
----
-2013
-3344
-8048

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1289
SELECT 64 DIV col0 - col0 * - col0 * + col2 FROM tab0 AS cor0
----
1226
19010
649522

skipif mysql # not compatible
query I rowsort label-1289
SELECT 64 / col0 - col0 * - col0 * + col2 FROM tab0 AS cor0
----
1226
19010
649522

query I rowsort
SELECT + 82 * - col0 - 52 * col2 AS col1 FROM tab2 AS cor0
----
-1978
-7748
-8454

query I rowsort
SELECT DISTINCT + - ( col0 ) * cor0.col1 - + 51 * - col2 FROM tab0 AS cor0
----
-3344
-381
-3917

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

query I rowsort
SELECT - col0 + + col0 + ( - col1 + col2 ) * + col2 FROM tab0 AS cor0
----
-1749
-738
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 col2 FROM tab2
----
52
54
76

query I rowsort
SELECT 32 FROM tab0, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT + + 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 + col1 col1 FROM tab0 AS cor0
----
86
91
97

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

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

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

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

query I rowsort
SELECT ALL col1 + - 51 * cor0.col2 * - col0 + + col0 FROM tab1 AS cor0
----
186122
391773
8291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + 23 col2 FROM tab1 AS cor0
----
230
299
598

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

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

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

query I rowsort
SELECT cor0.col0 * + col1 * + cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
231
40896
83120

query I rowsort
SELECT DISTINCT col2 * - col2 + col0 - - col1 AS col2 FROM tab2 AS cor0
----
-1348
-539
-691

query I rowsort
SELECT DISTINCT + cor0.col0 * ( cor0.col0 ) + - col2 * + col1 FROM tab1 cor0
----
-1395
3526
5152

query I rowsort
SELECT ALL 68 FROM tab0
----
68
68
68

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

query I rowsort
SELECT ALL + - col0 * col1 * + ( cor0.col2 ) + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-36544
-4215
-99920

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

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

query I rowsort
SELECT + col2 * - 49 + - 58 AS col2 FROM tab0 cor0
----
-107
-1675
-4076

onlyif mysql # use DIV operator for integer division
query I rowsort label-1315
SELECT ALL - cor0.col1 DIV ( + col2 ) + + col1 col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL - cor0.col1 / ( + col2 ) + + col1 col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1316
SELECT DISTINCT col2 * - col0 + + col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT col2 * - col0 + + col0 / + col0 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

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 ALL + tab2.col0 * col1 * 14 FROM tab2
----
18802
3038
64428

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

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

skipif mysql # not compatible
query I rowsort label-1320
SELECT col0 / + col0 FROM tab2 cor0
----
1
1
1

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * - col2 + - col2 + + col2 * - col1 <= NULL
----

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

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

query I rowsort
SELECT - 64 * col0 AS col2 FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT DISTINCT + ( - 25 ) FROM tab1, tab0 cor0, tab2 cor1
----
-25

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

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

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

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

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

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

query I rowsort
SELECT ALL 29 AS col0 FROM tab1
----
29
29
29

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

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

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL col2 / tab0.col0 FROM tab0
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT col0 / - col1 FROM tab0
----
0

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

skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT + col0 / - col2 FROM tab1
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1338
SELECT ALL col0 + col2 * - col1 - + col2 DIV - col0 FROM tab0
----
-2813
-62
-7373

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL col0 + col2 * - col1 - + col2 / - col0 FROM tab0
----
-2813
-62
-7373

query I rowsort
SELECT + col2 / + col2 FROM tab2 WHERE NOT NULL NOT IN ( col2 * col0 )
----

query I rowsort
SELECT DISTINCT + col0 * + tab1.col2 + tab1.col1 - - col0 AS col0 FROM tab1
----
191
3722
7773

query I rowsort
SELECT ALL - col2 * + col0 * col1 + - col0 * - col0 * + col1 + col1 * col2 AS col0 FROM tab0
----
-15738
115527
64155

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

query I rowsort
SELECT + tab0.col0 - - col0 * + col1 * - col1 FROM tab0
----
-177480
-329280
-736920

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL = ( NULL )
----

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

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

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

query I rowsort
SELECT col0 * tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT col1 * - tab1.col1 + col0 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT ALL col2 + col1 AS col1 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1357
SELECT col2 DIV col2 - col2 * tab0.col0 AS col1 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-1357
SELECT col2 / col2 - col2 * tab0.col0 AS col1 FROM tab0
----
-34
-7297
-791

query I rowsort
SELECT col2 * - tab2.col2 + col1 * col0 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT DISTINCT - col1 + tab1.col2 * - col0 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL + col1 * col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col1 * col2 + col2 * + col2 * + col0 AS col0 FROM tab0
----
132
28974
605898

query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col0 - + col1 AS col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT ALL col0 + + tab1.col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT - col0 + col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT col2 * col2 + + col0 * - col2 FROM tab0
----
-34
-574
297

query I rowsort
SELECT DISTINCT col2 * - tab2.col2 - + col2 FROM tab2
----
-1482
-702
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-1367
SELECT ALL - col2 - + col0 DIV - col0 col1 FROM tab1
----
-53
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - col2 - + col0 / - col0 col1 FROM tab1
----
-53
-56
-95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * - col1 ) NOT BETWEEN + col2 / col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT 31 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT col1 * col1 * + col2 AS col1 FROM tab1
----
16224
36504
5700

query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT - 55 * 25 FROM tab1
----
-1375
-1375
-1375

query I rowsort
SELECT DISTINCT - + 49 + + col1 AS col1 FROM tab1 AS cor0
----
-23
-36
-39

query I rowsort
SELECT ALL + + cor0.col2 * - col0 + - col2 * col2 FROM tab1 AS cor0
----
-16896
-3078
-6897

query I rowsort
SELECT DISTINCT col2 + col0 * - col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT 99 * col2 + col1 * + tab0.col0 + tab0.col2 * + col0 AS col2 FROM tab0
----
23515
3529
6123

query I rowsort
SELECT - 14 * col2 FROM tab2
----
-364
-378
-532

query I rowsort
SELECT - + col0 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - 10 AS col2 FROM tab0
----
-10

onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT ALL 60 DIV 19 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL 60 / 19 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT col1 * col0 * ( + col0 ) + col2 AS col0 FROM tab0 AS cor0
----
118826
49569
720893

query I rowsort
SELECT - + col1 + col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT - col0 * col2 + col2 AS col1 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT 97 + + col2 * ( - 20 ) AS col0 FROM tab1
----
-1043
-1823
-983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col0 * cor0.col1 + col0 col1 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT + col2 * col1 + + 4 * col0 FROM tab0 AS cor0
----
237
2934
7818

query I rowsort
SELECT + 1 + col0 FROM tab2 cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1390
SELECT ALL col1 DIV col0 + + 66 FROM tab2 AS cor0
----
66
66
70

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL col1 / col0 + + 66 FROM tab2 AS cor0
----
66
66
70

query I rowsort
SELECT + col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + - ( col1 ) * 89 + ( col2 ) FROM tab0 AS cor0
----
-7621
-8017
-8632

query I rowsort
SELECT - col1 * + col2 * + col2 AS col2 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT + col2 * - ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col0 + col0 * col0 * col0 AS col2 FROM tab0 AS cor0
----
13800
42840
704880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1396
SELECT col0 DIV - 82 - - col2 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1396
SELECT col0 / - 82 - - col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT + - cor0.col0 * + 91 - - col0 * + ( - col1 + col2 ) AS col0 FROM tab1 cor0
----
-189
-2816
-640

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
-10
-13
-26

query I rowsort
SELECT 54 * 53 + + col1 * ( + col1 ) FROM tab1 AS cor0
----
2962
3031
3538

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( 84 AS REAL ) FROM tab1 AS cor0
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * col1 + + col2 col1 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT ALL col1 * - tab1.col0 AS col2 FROM tab1
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - - 80 AS col1 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT + 28 * - col2 * ( ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
-204344
-22176
-980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1406
SELECT - ( cor0.col1 ) * CAST( col1 AS SIGNED ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

skipif mysql # not compatible
query I rowsort label-1406
SELECT - ( cor0.col1 ) * CAST ( col1 AS INTEGER ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT + col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + - col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - col0 * + col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col0 * - ( col2 ) FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 + ( col2 ) * 84 FROM tab0 AS cor0
----
154
2820
7066

query I rowsort
SELECT cor1.col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 * - cor1.col0 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d5ac3cced4c7369f6064241bede2f35d

query I rowsort
SELECT + 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1417
SELECT DISTINCT col1 DIV - CAST( cor0.col1 AS SIGNED ) + - col0 DIV ( col1 ) + - col1 * 59 FROM tab1 cor0
----
-1535
-597
-774

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT col1 / - CAST ( cor0.col1 AS INTEGER ) + - col0 / ( col1 ) + - col1 * 59 FROM tab1 cor0
----
-1535
-597
-774

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d

query I rowsort
SELECT DISTINCT col2 * + 37 + + 2 FROM tab0 AS cor0
----
1223
3036
39

query I rowsort
SELECT ALL cor0.col1 + 83 * col2 - - col1 * + col2 FROM tab2 AS cor0
----
3109
3751
3817

query I rowsort
SELECT + 31 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
2642
2732
2972

query I rowsort
SELECT - col1 + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL col0 + + 8 AS col1 FROM tab2 AS cor0
----
15
86
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-1424
SELECT - col2 DIV - 73 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1424
SELECT - col2 / - 73 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 67 AS col1 FROM tab2 cor0
----
67
67
67

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 79 * + ( cor0.col0 ) FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT - - cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL col1 * - col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * + tab1.col2 * + 15 col1 FROM tab1
----
138240
43740
48735

query I rowsort
SELECT DISTINCT + col0 * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT col2 + - col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL - col0 + + col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 4 * - col2 * 86 AS col0 FROM tab2 AS cor0
----
13072
8944
9288

query I rowsort
SELECT ALL - 31 AS col0 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + - col2 + - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + cor0.col1 * 10 col1 FROM tab2 AS cor0
----
303
512
91

query I rowsort
SELECT DISTINCT + + 23 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL col2 * - 35 FROM tab0
----
-1155
-2870
-35

query I rowsort
SELECT - 8 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL - ( col1 ) AS col0 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col2 - + cor0.col2 col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT + - 59 * + col2 FROM tab1 AS cor0
----
-3186
-3363
-5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-1445
SELECT ALL - - col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL - - col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1446
SELECT 6 + + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1446
SELECT 6 + + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * cor0.col2 + - 93 * + col1 AS col2 FROM tab2 AS cor0
----
-137
-2154
-4811

query I rowsort
SELECT DISTINCT - 58 * - col2 * 19 FROM tab1 AS cor0
----
105792
59508
62814

query I rowsort
SELECT DISTINCT - - 90 AS col2 FROM tab2 AS cor0
----
90

query I rowsort
SELECT ALL cor0.col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col1 FROM tab2
----
55
55
55

query I rowsort
SELECT + col1 * + tab2.col2 + + col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT col2 * - col0 + col1 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col1 FROM tab1
----
97
97
97

query I rowsort
SELECT col1 + cor0.col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col2 + col0 * 4 + col1 FROM tab0
----
215
238
529

query I rowsort
SELECT col0 + + col0 * + 43 FROM tab1
----
132
2816
3520

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 * + 36 AS col1 FROM tab1
----
-1344
-4800
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-1459
SELECT ALL - tab1.col2 DIV col0 AS col2 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL - tab1.col2 / col0 AS col2 FROM tab1
----
-1
-18
0

query I rowsort
SELECT ALL - 49 AS col1 FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT 36 + col1 * - col0 FROM tab0 AS cor0
----
-2028
-3359
-8063

query I rowsort
SELECT ALL - col1 * + col2 + - ( - 91 ) FROM tab2 AS cor0
----
-1443
-555
-746

query I rowsort
SELECT - col1 * + col1 + - col0 AS col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT 32 * - tab0.col0 AS col0 FROM tab0
----
-1120
-2848
-768

query I rowsort
SELECT col1 + col1 AS col2 FROM tab1
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1466
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 + 77 AS col1 FROM tab1
----
-19
20
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT - col0 DIV col2 - - col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3248
9216

skipif mysql # not compatible
query I rowsort label-1468
SELECT - col0 / col2 - - col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3248
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1469
SELECT ALL - col2 DIV - col2 + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL - col2 / - col2 + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT + + 99 AS col2 FROM tab1 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col1 FROM tab0 AS cor0
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 * cor0.col1 - + col0 * + col2 col2 FROM tab1 AS cor0
----
-3588
-6
-7602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT + col2 DIV - tab2.col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1473
SELECT + col2 / - tab2.col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT col0 * 99 FROM tab0 cor0
----
2376
3465
8811

query I rowsort
SELECT ALL + + 65 * - ( col1 ) * col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-10905
-43937
-6436

onlyif mysql # use DIV operator for integer division
query I rowsort label-1476
SELECT DISTINCT cor0.col2 DIV cor0.col0 + + col0 FROM tab1 cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT cor0.col2 / cor0.col0 + + col0 FROM tab1 cor0
----
21
64
81

query I rowsort
SELECT DISTINCT 56 * + col1 AS col0 FROM tab0 AS cor0
----
4816
5096
5432

query I rowsort
SELECT ALL ( col2 ) * col1 + - ( 54 ) * + col1 * - col1 AS col1 FROM tab0 AS cor0
----
402222
454636
508183

query I rowsort
SELECT col0 + col2 * - col1 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - 62 * col2 + col1 FROM tab1 AS cor0
----
-3322
-3524
-5939

query I rowsort
SELECT + 19 AS col2 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + - col2 * col0 + col2 AS col0 FROM tab1 cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1483
SELECT + + CAST( 25 AS SIGNED ) + + col0 AS col1 FROM tab2 cor0
----
103
104
32

skipif mysql # not compatible
query I rowsort label-1483
SELECT + + CAST ( 25 AS INTEGER ) + + col0 AS col1 FROM tab2 cor0
----
103
104
32

query I rowsort
SELECT ALL + 8 FROM tab1 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 57 * + col2 col2 FROM tab1 AS cor0
----
-3075
-3185
-5392

query I rowsort
SELECT ALL - 45 * - col1 + + col1 AS col2 FROM tab1 cor0
----
1196
460
598

query I rowsort
SELECT DISTINCT - ( + col2 ) + + col1 FROM tab0 AS cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1488
SELECT ALL tab0.col2 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL tab0.col2 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col0 * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + + col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col1 * tab1.col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2, tab1 AS cor0
----
29

query I rowsort
SELECT DISTINCT - col1 * + tab1.col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + col2 + 18 AS col0 FROM tab0 AS cor0
----
100
19
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1496
SELECT col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1496
SELECT col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + col1 - col2 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT ALL - cor0.col0 + ( - cor0.col1 ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + + col1 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL col1 + - cor0.col0 * - cor0.col0 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-1501
SELECT col2 DIV 7 FROM tab0 AS cor0
----
0
11
4

skipif mysql # not compatible
query I rowsort label-1501
SELECT col2 / 7 FROM tab0 AS cor0
----
0
11
4

query I rowsort
SELECT + 45 + + 3 + col0 FROM tab0 AS cor0
----
137
72
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1504
SELECT 50 DIV + col1 + col0 * 6 FROM tab0 cor0
----
144
210
534

skipif mysql # not compatible
query I rowsort label-1504
SELECT 50 / + col1 + col0 * 6 FROM tab0 cor0
----
144
210
534

query I rowsort
SELECT col2 * + cor0.col0 + col1 * + 71 FROM tab0 AS cor0
----
13759
6898
6922

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1506
SELECT + CAST( - col0 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-1506
SELECT + CAST ( - col0 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * + tab2.col2 * col2 + col0 * col0 col2 FROM tab2
----
120355
5179
58838

query I rowsort
SELECT 18 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT tab2.col1 * - col1 * col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + - col0 * col2 + + col0 * col0 FROM tab2 AS cor0
----
-140
3239
4056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + cor0.col1 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1516
SELECT ALL - - col0 + + col2 * - CAST( - 2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
156
193
88

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL - - col0 + + col2 * - CAST ( - 2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
156
193
88

query I rowsort
SELECT - ( col2 ) AS col0 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1518
SELECT ALL col1 + - col0 DIV + col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-1518
SELECT ALL col1 + - col0 / + col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT ALL - - 92 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1132
170
732

query I rowsort
SELECT DISTINCT - ( col2 ) * - col2 + + col1 * + cor0.col1 * + ( col0 * col2 ) AS col2 FROM tab2 AS cor0
----
182358
7060144
869022

query I rowsort
SELECT + + col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + 44 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT DISTINCT + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 1 + - col2 * col0 FROM tab1 AS cor0
----
-161
-3647
-7679

query I rowsort
SELECT + col1 + + col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL - tab1.col1 * - col0 AS col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1527
SELECT + - 10 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1527
SELECT + - 10 / cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT col0 * + col0 * col0 FROM tab0 AS cor0
----
13824
42875
704969

query I rowsort
SELECT 1 * cor0.col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + tab2.col1 + + col2 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1531
SELECT ALL + 21 + - col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL + 21 + - col1 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL - - cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab1, tab0 cor0, tab2 cor1
----
43

query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col0 + col1 col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - 91 * + col2 FROM tab1
----
-4914
-5187
-8736

query I rowsort
SELECT 62 FROM tab2
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT ALL - tab0.col1 DIV - 96 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL - tab0.col1 / - 96 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT ALL + col1 * tab2.col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2, tab1 cor1
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query I rowsort
SELECT + col0 * 87 FROM tab1
----
261
5568
6960

query I rowsort
SELECT 70 * + 7 FROM tab1, tab0 AS cor0
----
9 values hashing to 2be91aedcd6529aeebac9d902e8a8f5e

query I rowsort
SELECT 88 FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT col0 - 83 FROM tab1 AS cor0
----
-19
-3
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 92 * col2 col1 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT + col0 - - 69 AS col0 FROM tab2 AS cor0
----
147
148
76

query I rowsort
SELECT - - col0 AS col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT col1 * - 9 + - col0 AS col2 FROM tab1
----
-154
-197
-237

query I rowsort
SELECT DISTINCT col0 - 11 FROM tab1
----
-8
53
69

query I rowsort
SELECT + col0 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab1
----
3
64
80

query I rowsort
SELECT 34 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT col2 * 68 AS col1 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT - - 46 + + 42 FROM tab0 AS cor0
----
88

query I rowsort
SELECT + + 24 * col0 * col0 + + col0 FROM tab1 AS cor0
----
153680
219
98368

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1, tab0 cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT - + 22 * col2 AS col1 FROM tab0 AS cor0
----
-1804
-22
-726

query I rowsort
SELECT - 4 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT 45 AS col1 FROM tab1
----
45
45
45

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT 71 + - col1 FROM tab0 AS cor0
----
-15
-20
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1565
SELECT DISTINCT - 63 + + col0 DIV cor0.col0 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT - 63 + + col0 / cor0.col0 FROM tab2 AS cor0
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col1 ) + + col1 * - ( + col1 ) col2 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT ALL - 79 * - col1 + + col0 * 59 FROM tab0 AS cor0
----
12440
8210
9728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col2 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT DISTINCT - col2 + + 58 * + col2 * col2 FROM tab1 AS cor0
----
169074
188385
534432

query I rowsort
SELECT ALL + ( - col2 ) + + col0 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1572
SELECT DISTINCT CAST( - 97 AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
-11
-6
0

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT CAST ( - 97 AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
-11
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 90 col2 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT ALL + col0 + + 6 * col0 * col2 + ( 59 ) * col2 FROM tab1
----
25315
4161
51824

query I rowsort
SELECT DISTINCT - col0 + + 97 AS col2 FROM tab0
----
62
73
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1576
SELECT ALL - col0 * 22 DIV - ( + tab1.col2 * + tab1.col1 ) + col0 + tab1.col2 AS col0 FROM tab1
----
123
177
57

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL - col0 * 22 / - ( + tab1.col2 * + tab1.col1 ) + col0 + tab1.col2 AS col0 FROM tab1
----
123
177
57

query I rowsort
SELECT ALL - tab2.col2 + + col1 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT col2 + - ( col1 ) AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
5

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT DISTINCT - 34 + - col0 + col2 AS col2 FROM tab0
----
-25
-41
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-1582
SELECT + 38 DIV ( col2 ) + - ( 53 ) FROM tab1
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-1582
SELECT + 38 / ( col2 ) + - ( 53 ) FROM tab1
----
-53
-53
-53

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c

query I rowsort
SELECT ALL + + col1 + 71 * - col0 FROM tab2 AS cor0
----
-466
-5479
-5592

onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT col0 + col0 + - col0 DIV - 38 FROM tab0 AS cor0
----
180
48
70

skipif mysql # not compatible
query I rowsort label-1585
SELECT col0 + col0 + - col0 / - 38 FROM tab0 AS cor0
----
180
48
70

query I rowsort
SELECT ALL + 45 * + 70 FROM tab2 AS cor0
----
3150
3150
3150

query I rowsort
SELECT DISTINCT - - col0 + col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + + col1 * + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 83 AS col0 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT - - ( col2 ) * + col2 + - 91 + col1 * col0 FROM tab2 AS cor0
----
2696
5187
855

query I rowsort
SELECT - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1593
SELECT DISTINCT + CAST( cor0.col2 AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT + CAST ( cor0.col2 AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1594
SELECT DISTINCT + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1594
SELECT DISTINCT + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 81 * 20 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1637
1651
1679

query I rowsort
SELECT - 93 * - col2 AS col1 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT ALL 74 FROM tab0 cor0
----
74
74
74

query I rowsort
SELECT + + 97 * - ( col1 ) + - col1 + + col1 * col1 FROM tab0 AS cor0
----
-1032
-637
-97

query I rowsort
SELECT + 35 + - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-102
-3
-61

query I rowsort
SELECT DISTINCT - col2 * - 70 * - col1 FROM tab0 AS cor0
----
-198660
-522340
-6790

query I rowsort
SELECT DISTINCT - col1 - + col0 * - 86 * 41 FROM tab1
----
10552
225654
282067

query I rowsort
SELECT + col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + + cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col0 - - 58 AS col1 FROM tab0 AS cor0
----
147
82
93

query I rowsort
SELECT - col0 + 63 AS col0 FROM tab2 AS cor0
----
-15
-16
56

query I rowsort
SELECT DISTINCT + + col0 - ( + col0 ) * cor0.col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL col0 + + tab0.col1 FROM tab0
----
110
132
180

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07

query I rowsort
SELECT ALL + - col2 * ( col0 ) + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - col1 * 88 FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT DISTINCT col1 * - ( col1 ) AS col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - col0 * 13 * - col2 FROM tab2 AS cor0
----
2457
26364
39026

query I rowsort
SELECT + col1 * col2 - - col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - col2 * - ( - 87 ) FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT DISTINCT - col2 * 68 + tab0.col2 FROM tab0
----
-2211
-5494
-67

query I rowsort
SELECT + + col2 + 51 FROM tab1 cor0
----
105
108
147

query I rowsort
SELECT DISTINCT - col2 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + col2 - - col2 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1619
SELECT DISTINCT + + col2 DIV - cor0.col1 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + + col2 / - cor0.col1 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col2 + + 70 AS col2 FROM tab1 AS cor0
----
124
127
166

query I rowsort
SELECT DISTINCT - cor0.col2 * - 28 FROM tab0 cor0
----
2296
28
924

query I rowsort
SELECT ALL - + col2 + + ( col1 ) + cor0.col1 * - cor0.col2 * col1 FROM tab1 AS cor0
----
-16307
-36532
-5747

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1624
SELECT DISTINCT + col0 * + CAST( - col2 AS SIGNED ) - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + col0 * + CAST ( - col2 AS INTEGER ) - col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT - col2 - col2 FROM tab2 cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col1 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT ALL + 28 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

query I rowsort
SELECT + 98 + - col2 AS col2 FROM tab2 cor0
----
60
71
72

query I rowsort
SELECT DISTINCT 33 * + col2 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT + - 44 * - col0 FROM tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT ALL + ( col1 ) FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 43 col0 FROM tab2 cor0
----
-43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1633
SELECT DISTINCT - col0 * col2 + + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1633
SELECT DISTINCT - col0 * col2 + + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 97 + col0 AS col0 FROM tab2 AS cor0
----
-18
-19
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1635
SELECT col1 + + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1635
SELECT col1 + + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT - ( col1 ) + col0 DIV - 40 AS col1 FROM tab1
----
-11
-15
-26

skipif mysql # not compatible
query I rowsort label-1636
SELECT - ( col1 ) + col0 / - 40 AS col1 FROM tab1
----
-11
-15
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT ALL col0 DIV + col0 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL col0 / + col0 col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1638
SELECT DISTINCT col1 DIV tab2.col0 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT col1 / tab2.col0 FROM tab2
----
0
4

query I rowsort
SELECT - col1 * 75 AS col2 FROM tab0 AS cor0
----
-6450
-6825
-7275

query I rowsort
SELECT - - col2 * - 53 AS col0 FROM tab1 cor0
----
-2862
-3021
-5088

query I rowsort
SELECT + 91 - col0 FROM tab1
----
11
27
88

query I rowsort
SELECT ALL + tab1.col1 * - col2 * col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT + tab1.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 3 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + 10 * - col0 AS col2 FROM tab2
----
-70
-780
-790

query I rowsort
SELECT + 36 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT + - col2 * + col1 * col0 - 77 FROM tab2 AS cor0
----
-119729
-51111
-5936

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT DISTINCT - - col1 * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 22 FROM tab0, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT 29 FROM tab1, tab0 AS cor0, tab1 cor1
----
29

query I rowsort
SELECT DISTINCT - col1 * col2 + + 1 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT cor0.col0 * + 69 FROM tab2, tab1 AS cor0
----
9 values hashing to 3762d28f1db31c7f7d977029e0f28049

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a

query I rowsort
SELECT ( - col1 ) * - col0 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT - col2 + col2 * + ( col1 ) FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - 20 col1 FROM tab1 AS cor0
----
-1080
-1140
-1920

query I rowsort
SELECT + cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col1 * + 10 AS col0 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT col0 + col1 * col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT + + cor0.col1 * ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + col2 + + col1 * col0 + + col1 * - col1 FROM tab2 AS cor0
----
-717
1092
1147

query I rowsort
SELECT DISTINCT col1 * col1 + col1 - col1 * col2 * - col2 AS col1 FROM tab2 cor0
----
23591
24854
43424

query I rowsort
SELECT + - 76 AS col0 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col0 + col1 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT col1 + - col2 * - col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - ( + cor0.col1 ) + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 61 AS REAL ) * col1 AS col0 FROM tab1 cor0
----
1586
610
793

query I rowsort
SELECT DISTINCT ( col1 ) * col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ( col2 ) * - tab0.col1 + col2 * col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ( tab1.col2 + - col1 ) FROM tab1
----
28
47
83

query I rowsort
SELECT - 9 * col1 * - col1 + - 26 AS col1 FROM tab1
----
1495
6058
874

query I rowsort
SELECT 26 + 34 * tab0.col0 FROM tab0
----
1216
3052
842

query I rowsort
SELECT - 4 FROM tab1
----
-4
-4
-4

query I rowsort
SELECT col2 - col0 * col2 * col0 AS col1 FROM tab2
----
-1296
-158158
-237120

query I rowsort
SELECT - ( + col2 ) + col0 * col0 FROM tab2
----
22
6058
6203

query I rowsort
SELECT - 19 AS col0 FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT + col0 * 24 AS col1 FROM tab1 AS cor0
----
1536
1920
72

query I rowsort
SELECT + col2 * + 98 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT ALL - + cor0.col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + cor0.col1 * 70 * col1 AS col0 FROM tab1 AS cor0
----
11830
47320
7000

query I rowsort
SELECT - + col2 * cor0.col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL - + col1 * + col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - col2 + - cor0.col2 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-1689
SELECT ALL + col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL + col1 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 3 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL 73 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT ALL tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1694
SELECT CAST( - 88 AS SIGNED ) FROM tab0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-1694
SELECT CAST ( - 88 AS INTEGER ) FROM tab0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT ( tab0.col1 ) FROM tab0
----
86
91
97

query I rowsort
SELECT - col0 + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col0 * 51 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT col0 + col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + - col1 * 5 + - col0 * col2 * - ( cor0.col0 + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
1313185
4135
86690

query I rowsort
SELECT ( col0 ) * ( 17 * - col2 ) FROM tab2
----
-3213
-34476
-51034

query I rowsort
SELECT tab1.col2 + - col1 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT + 78 FROM tab0
----
78
78
78

query I rowsort
SELECT + 66 FROM tab2
----
66
66
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT DISTINCT col1 DIV - col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT col1 / - col1 FROM tab1
----
-1

query I rowsort
SELECT 7 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1706
SELECT ALL + + CAST( NULL AS SIGNED ) / + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1706
SELECT ALL + + CAST ( NULL AS INTEGER ) / + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 5 + - tab2.col2 ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 19c7ceca12025378733077de58962f4a

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf

query I rowsort
SELECT tab0.col2 * 99 FROM tab0
----
3267
8118
99

query I rowsort
SELECT - col1 * - ( 67 ) AS col2 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - 20 FROM tab0 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col0 FROM tab0 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 * col2 col2 FROM tab0 AS cor0
----
-1551
-3854
-47

query I rowsort
SELECT ALL - col0 + cor0.col1 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * col1 col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 + - col0 col0 FROM tab2 AS cor0
----
-105
-106
-34

query I rowsort
SELECT + col0 * - col0 + - col0 * - col2 - - col2 * col2 FROM tab0 AS cor0
----
-1189
1305
6101

query I rowsort
SELECT ALL 1 * + cor0.col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + + col1 + col2 + col2 AS col2 FROM tab2 AS cor0
----
111
85
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT ALL + 87 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL + 87 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-5

query I rowsort
SELECT + col0 + + col0 - col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - 87 + - col1 FROM tab2 AS cor0
----
-104
-118
-146

query I rowsort
SELECT DISTINCT col1 * 17 FROM tab1
----
170
221
442

query I rowsort
SELECT + 31 * + col1 * col0 FROM tab2
----
142662
41633
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT ALL - col2 DIV col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - col2 / col0 FROM tab2
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1731
SELECT ALL + - col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL + - col2 / + col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT + - ( - cor0.col2 ) + cor0.col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + col1 * col1 AS col0 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-1734
SELECT + col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1734
SELECT + col1 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + col1 * + col2 + col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT ALL - tab0.col2 + col1 + col0 AS col1 FROM tab0
----
131
77
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1737
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1737
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT DISTINCT - + 38 * col0 + - col1 DIV col2 AS col2 FROM tab0 cor0
----
-1427
-3383
-914

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT - + 38 * col0 + - col1 / col2 AS col2 FROM tab0 cor0
----
-1427
-3383
-914

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - 22 + col2 * + col0 + + col1 FROM tab1 AS cor0
----
166
3636
7671

query I rowsort
SELECT DISTINCT + - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col2 * + cor0.col0 - cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT - 43 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL - 59 * + 81 AS col1 FROM tab1 AS cor0
----
-4779
-4779
-4779

query I rowsort
SELECT DISTINCT + 58 + 40 AS col0 FROM tab0 cor0
----
98

query I rowsort
SELECT + 87 FROM tab2, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT col1 * 0 + col2 * + col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL - ( col0 ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL - 40 AS col2 FROM tab2
----
-40
-40
-40

query I rowsort
SELECT col2 + - 0 + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT - 90 * + col1 + - col1 FROM tab2
----
-1547
-2821
-5369

query I rowsort
SELECT ALL + 25 FROM tab0, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL - + ( col0 ) + + col1 * + col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT + ( col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1755
SELECT CAST( col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-1755
SELECT CAST ( col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 17 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1
----
54 values hashing to b010e320d66ab5b2711fc14e8fb58b01

query I rowsort
SELECT + col2 * col0 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1760
SELECT col2 DIV col0 - - col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-1760
SELECT col2 / col0 - - col0 FROM tab1
----
21
64
81

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL col0 * - col1 - + col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT - - col0 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - col0 + + col2 * cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
2009
213
2940

query I rowsort
SELECT cor0.col2 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL - col2 + col0 * + cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
-27
262087
511904

query I rowsort
SELECT + + cor0.col0 * col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col0 - - col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT - tab2.col0 * col2 + col0 AS col1 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + col2 - - col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - col2 + - col2 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL col1 - col0 AS col1 FROM tab0 AS cor0
----
2
62
62

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < ( cor0.col2 )
----

query I rowsort
SELECT ALL + col0 * - col0 AS col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + col0 - + col1 * - tab0.col2 * + col2 AS col1 FROM tab0
----
132
611973
93678

query I rowsort
SELECT tab0.col0 * + tab0.col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + col1 * + col1 - col0 * + col2 * col0 AS col0 FROM tab1
----
-233372
-614231
190

query I rowsort
SELECT + col2 - - col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + col0 * + cor0.col2 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - col1 + col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1786
SELECT DISTINCT col1 + col0 DIV col2 col1 FROM tab0 AS cor0
----
132
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT col1 + col0 / col2 col1 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT ALL + cor0.col1 * col1 * col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT - + col1 * - col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col1 * col1 AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT - col0 + - col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL + tab2.col0 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT tab0.col1 * col0 + + col2 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT - col1 * - col1 + col1 * + tab1.col1 AS col0 FROM tab1
----
1352
200
338

onlyif mysql # use DIV operator for integer division
query I rowsort label-1794
SELECT DISTINCT + cor0.col1 + cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT + cor0.col1 + cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - - col1 * + col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + cor0.col1 - + col2 * - col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + + cor0.col1 + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT col0 * col0 * col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - col2 * col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT DISTINCT + col0 DIV col0 AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + col0 / col0 AS col0 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL col0 * - col2 FROM tab0 cor0
----
-35
-7298
-792

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = ( NULL ) OR NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT cor0.col1 * + col0 - cor0.col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT DISTINCT - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - col2 / col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + col1 + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + - cor0.col2 * + cor0.col1 * col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT col1 - + col2 FROM tab0
----
53
9
96

query I rowsort
SELECT + col0 * - col0 * tab2.col2 + tab2.col2 * col2 FROM tab2
----
-157508
-235714
-594

onlyif mysql # use DIV operator for integer division
query I rowsort label-1812
SELECT DISTINCT + col0 + - col1 * + col0 DIV tab2.col0 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT + col0 + - col1 * + col0 / tab2.col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT + col1 + col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT - col1 * tab2.col1 - + col2 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT DISTINCT + col2 + col0 * - col0 FROM tab1
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab1.col2 + + col0 * tab1.col0 col1 FROM tab1
----
-1280
-153
448

query I rowsort
SELECT col0 + tab0.col1 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1818
SELECT DISTINCT + 6 DIV + col2 AS col2 FROM tab0
----
0
6

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT + 6 / + col2 AS col2 FROM tab0
----
0
6

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1820
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + cor0.col1 col1 FROM tab0, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + cor0.col1 col1 FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 + col0 FROM tab2
----
14
156
158

query I rowsort
SELECT + 20 FROM tab1, tab1 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1823
SELECT ALL + + col1 DIV ( - col1 + + col0 ) FROM tab0 AS cor0
----
-1
-1
-45

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL + + col1 / ( - col1 + + col0 ) FROM tab0 AS cor0
----
-1
-1
-45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1824
SELECT - - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT - - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + 14 FROM tab1
----
1344
756
798

query I rowsort
SELECT + col2 + + 46 AS col2 FROM tab1
----
100
103
142

query I rowsort
SELECT + col1 * - col0 * + col1 + - col2 + - col2 AS col1 FROM tab2
----
-22907
-271570
-6781

query I rowsort
SELECT 50 AS col1 FROM tab1
----
50
50
50

query I rowsort
SELECT - 73 * + col2 + col0 FROM tab2 AS cor0
----
-1820
-1964
-2695

query I rowsort
SELECT - col2 + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + col2 * col2 * - col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT + tab0.col0 + + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL 43 FROM tab1, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1834
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1835
SELECT ALL - col2 * ( col1 ) - - col1 DIV ( col1 + 38 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL - col2 * ( col1 ) - - col1 / ( col1 + 38 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + ( cor0.col1 ) + col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1837
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1838
SELECT ALL CAST( - col0 * col0 AS SIGNED ) FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL CAST ( - col0 * col0 AS INTEGER ) FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT ( - col0 + col0 * col2 ) AS col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT - 54 AS col0 FROM tab2
----
-54
-54
-54

query I rowsort
SELECT + col2 * col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - - 68 + col0 AS col1 FROM tab2 AS cor0
----
146
147
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1843
SELECT - - col0 * - col2 + CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-1843
SELECT - - col0 * - col2 + CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + - col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + col2 * + col2 + col1 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT 95 * col0 - + col1 FROM tab1 AS cor0
----
259
6070
7587

query I rowsort
SELECT ALL + ( + col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col1 * - col1 + 45 AS col0 FROM tab2 AS cor0
----
-244
-3436
-916

query I rowsort
SELECT ALL 34 * col0 + - col2 FROM tab0 AS cor0
----
1189
2944
783

query I rowsort
SELECT ALL 10 + cor0.col2 AS col2 FROM tab2 AS cor0
----
36
37
48

query I rowsort
SELECT DISTINCT - col1 + + col2 * col0 AS col1 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT - + col0 + col0 * + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col1 + ( col1 ) col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - ( col0 ) * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT + 49 * col0 + 23 FROM tab2 AS cor0
----
366
3845
3894

query I rowsort
SELECT + col0 * - cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + cor0.col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col0 * + 77 * + col1 FROM tab1 cor0
----
49280
6006
80080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 26 col0 FROM tab2 AS cor0
----
-182
-2028
-2054

query I rowsort
SELECT DISTINCT - col1 + col1 * + col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL col1 + - cor0.col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - col1 * ( - col0 ) + + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + - 21 + - ( - col2 ) * col1 * cor0.col0 FROM tab0 AS cor0
----
3374
664097
68091

query I rowsort
SELECT + col1 - col0 * col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - ( col1 ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1868
SELECT - col0 DIV col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT - col0 / col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT col0 + col1 + + col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT - + 21 - + cor0.col0 FROM tab1 AS cor0
----
-101
-24
-85

query I rowsort
SELECT ALL - 41 * - 96 FROM tab1, tab0 cor0
----
9 values hashing to 6d4e8b72d37bdb838dd6181d1ea24218

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 60 AS REAL ) + col1 FROM tab1 cor0
----
70
73
86

query I rowsort
SELECT - col2 * col0 + - cor0.col2 * col0 FROM tab0 cor0
----
-14596
-1584
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + + col2 * + col1 * - ( col1 ) + col0 * + col1 FROM tab1 AS cor0
----
-15184
-36426
-5060

query I rowsort
SELECT cor0.col2 * cor0.col0 + - 79 AS col1 FROM tab2 AS cor0
----
110
1949
2923

query I rowsort
SELECT tab1.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL 42 AS col1 FROM tab0
----
42
42
42

query I rowsort
SELECT + 94 + col1 FROM tab2
----
111
125
153

query I rowsort
SELECT ( + 0 ) + - col2 * col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL 1 FROM tab2, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT + col1 + col0 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + 69 + col2 FROM tab1 cor0
----
123
126
165

query I rowsort
SELECT DISTINCT + 75 * 37 + - col2 FROM tab1 AS cor0
----
2679
2718
2721

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - col2 * 31 + + col1 * - 60 + 24 FROM tab2 AS cor0
----
-2174
-2673
-4322

query I rowsort
SELECT ALL - - col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - - col1 * + col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col0 * + col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT - + col0 * col1 - + col0 DIV 17 FROM tab2 AS cor0
----
-1347
-217
-4606

skipif mysql # not compatible
query I rowsort label-1891
SELECT - + col0 * col1 - + col0 / 17 FROM tab2 AS cor0
----
-1347
-217
-4606

query I rowsort
SELECT DISTINCT - + col1 - + col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + - ( + col2 ) col1 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT cor0.col2 - - col1 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + 65 FROM tab2 AS cor0
----
1509
741
794

query I rowsort
SELECT - col1 * col2 + 48 * - cor0.col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-144742
-98878
-9909

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1897
SELECT DISTINCT + - col1 * - cor0.col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT + - col1 * - cor0.col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * + col2 - - col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL 72 * col2 * + cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
209955
233992
663632

query I rowsort
SELECT - 3 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL + - col1 + col0 * - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT col1 * + col2 - + ( col2 ) AS col1 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1903
SELECT - col2 * + col0 - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT - col2 * + col0 - - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + col1 col0 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1905
SELECT ( tab2.col2 ) - + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT ( tab2.col2 ) - + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 92 + - col2 AS col2 FROM tab2
----
54
65
66

query I rowsort
SELECT + 37 FROM tab0
----
37
37
37

query I rowsort
SELECT ALL + + col1 * cor0.col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 32 + + col1 * - col1 * col0 FROM tab2 AS cor0
----
-22799
-271486
-6695

query I rowsort
SELECT + - 81 + + col1 * + col1 FROM tab0 AS cor0
----
7315
8200
9328

query I rowsort
SELECT ALL - - col1 * col2 * - ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT DISTINCT cor0.col0 * col0 DIV col2 AS col1 FROM tab0 cor0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT cor0.col0 * col0 / col2 AS col1 FROM tab0 cor0
----
1225
17
96

query I rowsort
SELECT DISTINCT 40 * col0 AS col0 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT ALL col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + - col1 + col1 * 18 AS col0 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT DISTINCT cor0.col1 * + 90 FROM tab1 cor0
----
1170
2340
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT + col1 DIV 65 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT + col1 / 65 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + 86 + col0 FROM tab0 AS cor0
----
7420
7915
8377

query I rowsort
SELECT - - col0 + col0 * 83 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT ALL - - cor0.col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * + 35 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT DISTINCT - col0 * ( 75 ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-307200
-480000
-675

query I rowsort
SELECT + tab2.col0 * col2 AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - + col2 * + 34 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT ALL + + col1 * - 97 FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT + - col1 * - ( + col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + col2 * - ( + col2 ) + + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1929
SELECT ALL + - col1 - + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL + - col1 - + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col2 + 76 FROM tab1 AS cor0
----
-20
19
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 58 ) col0 FROM tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 - col0 col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT ALL cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT DISTINCT + 15 * ( - col0 ) - col2 DIV 89 AS col2 FROM tab2 AS cor0
----
-105
-1170
-1185

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + 15 * ( - col0 ) - col2 / 89 AS col2 FROM tab2 AS cor0
----
-105
-1170
-1185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1935
SELECT + + CAST( NULL AS SIGNED ) * 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT + + CAST ( NULL AS INTEGER ) * 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 56 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT 23 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT 73 FROM tab1, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # use DIV operator for integer division
query I rowsort label-1940
SELECT + - 16 DIV + 4 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-1940
SELECT + - 16 / + 4 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL + 13 AS col0 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT ALL 31 + + col0 FROM tab0 AS cor0
----
120
55
66

query I rowsort
SELECT ALL + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1944
SELECT - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1944
SELECT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1945
SELECT DISTINCT cor0.col2 DIV - 69 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT cor0.col2 / - 69 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT - col2 + + col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT + cor0.col0 * 52 * + tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 13629bd14c6410e9e592be3f4b45f8ec

onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT DISTINCT + tab2.col0 + 8 DIV tab2.col0 AS col1 FROM tab2
----
78
79
8

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + tab2.col0 + 8 / tab2.col0 AS col1 FROM tab2
----
78
79
8

query I rowsort
SELECT + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 col0 FROM tab2
----
-63

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT 87 AS col1 FROM tab0
----
87
87
87

query I rowsort
SELECT ALL - 63 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT DISTINCT - 3 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - 52 * - 21 AS col1 FROM tab1 AS cor0
----
1092

query I rowsort
SELECT ALL - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 46 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1104
-1610
-4094

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1958
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 36 * col2 FROM tab2
----
-1368
-936
-972

query I rowsort
SELECT ALL - col0 + - col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT 70 + cor0.col0 AS col2 FROM tab0 AS cor0
----
105
159
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * 76 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 012fb40cd5a7b6d4b1192f9744e7efd2

query I rowsort
SELECT ALL col1 + col0 * col0 + ( col2 ) FROM tab2
----
107
6169
6296

onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT col0 * + col1 + + col0 DIV - col1 col2 FROM tab1
----
1034
634
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1964
SELECT col0 * + col1 + + col0 / - col1 col2 FROM tab1
----
1034
634
78

query I rowsort
SELECT + col1 + - col1 * col1 * col1 AS col1 FROM tab0 cor0
----
-635970
-753480
-912576

query I rowsort
SELECT ALL col0 * 40 AS col2 FROM tab2
----
280
3120
3160

query I rowsort
SELECT ALL - col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT - col2 DIV col2 col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1968
SELECT - col2 / col2 col1 FROM tab0 AS cor0
----
-1
-1
-1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5

query I rowsort
SELECT ALL 35 FROM tab0, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1971
SELECT + cor0.col1 + + CAST( col0 AS SIGNED ) * + col0 * CAST( - col0 * - col0 AS SIGNED ) FROM tab1 AS cor0
----
107
16777226
40960013

skipif mysql # not compatible
query I rowsort label-1971
SELECT + cor0.col1 + + CAST ( col0 AS INTEGER ) * + col0 * CAST ( - col0 * - col0 AS INTEGER ) FROM tab1 AS cor0
----
107
16777226
40960013

query I rowsort
SELECT ALL col0 * - col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 80 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT + cor0.col1 * + col2 + + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query I rowsort
SELECT - + 44 * col2 * - cor0.col0 FROM tab0 AS cor0
----
1540
321112
34848

query I rowsort
SELECT + 28 AS col2 FROM tab0
----
28
28
28

query I rowsort
SELECT DISTINCT 14 * + col0 FROM tab1
----
1120
42
896

query I rowsort
SELECT - 18 + - col2 AS col2 FROM tab2 AS cor0
----
-44
-45
-56

query I rowsort
SELECT - cor0.col0 * + cor0.col1 * + 65 FROM tab2 AS cor0
----
-14105
-299130
-87295

query I rowsort
SELECT - - col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 52 + - col0 * - cor0.col1 FROM tab0 AS cor0
----
2116
3447
8151

query I rowsort
SELECT + + col1 * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col2 + + 93 AS col0 FROM tab2 AS cor0
----
119
120
131

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT + col2 + col0 - cor0.col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - col2 * col2 + + col1 * - 96 + - col0 FROM tab2 AS cor0
----
-3155
-3712
-6418

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

query I rowsort
SELECT + 62 FROM tab1, tab1 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab2
----
86

query I rowsort
SELECT + 65 + - col1 FROM tab2
----
34
48
6

query I rowsort
SELECT + 25 AS col1 FROM tab1
----
25
25
25

query I rowsort
SELECT col0 * + col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 37 AS col0 FROM tab1
----
-37
-37
-37

query I rowsort
SELECT DISTINCT tab1.col0 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT - 15 AS col2 FROM tab0, tab2 cor0
----
-15

query I rowsort
SELECT DISTINCT + tab2.col0 * ( col0 + col1 ) AS col2 FROM tab2
----
10686
266
7584

query I rowsort
SELECT - 99 + - col1 AS col2 FROM tab1 AS cor0
----
-109
-112
-125

query I rowsort
SELECT - + col2 + col1 * + col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL - ( - col0 ) + - col1 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL 92 FROM tab0
----
92
92
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2004
SELECT - - cor0.col1 * - col2 - + col2 DIV - 65 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-2004
SELECT - - cor0.col1 * - col2 - + col2 / - 65 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT DISTINCT + + 28 DIV + 33 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT + + 28 / + 33 AS col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * 12 col2 FROM tab2
----
372
372
372

query I rowsort
SELECT - 74 AS col1 FROM tab0
----
-74
-74
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2008
SELECT - CAST( tab1.col1 AS SIGNED ) * - col1 AS col2 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-2008
SELECT - CAST ( tab1.col1 AS INTEGER ) * - col1 AS col2 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab2
----
26
27
38

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 DISTINCT - col2 + col1 col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col2 ) + col0 * 14 - col2 col1 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT DISTINCT + + 21 FROM tab0 AS cor0
----
21

query I rowsort
SELECT ALL - col2 + col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - cor1.col2 FROM tab0, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT DISTINCT + col1 + col0 * + ( 67 ) FROM tab2
----
500
5285
5310

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL ( tab1.col1 ) * + col2 + - tab1.col0 + col0 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - - col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + cor0.col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2021
SELECT DISTINCT - col1 DIV col1 + 88 * + col2 FROM tab1
----
4751
5015
8447

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - col1 / col1 + 88 * + col2 FROM tab1
----
4751
5015
8447

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2022
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2022
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab0, tab2 AS cor0
----
43

query I rowsort
SELECT - col1 * 14 + cor0.col2 AS col1 FROM tab0 cor0
----
-1171
-1192
-1357

query I rowsort
SELECT DISTINCT col2 * - tab1.col1 * - col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT col2 - + 88 FROM tab0
----
-55
-6
-87

query I rowsort
SELECT + col1 - col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT - + col0 + cor0.col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2029
SELECT + CAST( NULL AS SIGNED ) * - col2 + + col2 * 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2029
SELECT + CAST ( NULL AS INTEGER ) * - col2 + + col2 * 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2030
SELECT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT 33 * col2 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT ALL + - 44 * col2 + - col0 + + 86 FROM tab1 AS cor0
----
-2293
-2486
-4218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col2 * 49 + - col0 + col2 AS col1 FROM tab0 AS cor0
----
15
1626
4011

query I rowsort
SELECT ALL 61 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT - ( 27 ) * - col2 AS col0 FROM tab1 cor0
----
1458
1539
2592

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL tab0.col2 * + 34 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 162f363b10ac4da0f1af554f398dcfca

query I rowsort
SELECT + 59 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col2 - col1 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL 71 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT + 61 + col2 * - cor0.col2 FROM tab2 cor0
----
-1383
-615
-668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 * col0 col2 FROM tab0
----
1424
384
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 * - col0 + + ( - col0 ) ) col1 FROM tab0
----
1190
552
7832

query I rowsort
SELECT DISTINCT 21 FROM tab1
----
21

query I rowsort
SELECT 27 FROM tab0
----
27
27
27

query I rowsort
SELECT DISTINCT col2 * + tab1.col0 AS col2 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT DISTINCT + col1 + col1 DIV 40 AS col2 FROM tab2 cor0
----
17
31
60

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + col1 + col1 / 40 AS col2 FROM tab2 cor0
----
17
31
60

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - col2 - col0 AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + col1 * col0 * - cor0.col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL cor0.col2 + cor0.col2 + - 73 AS col2 FROM tab2 AS cor0
----
-19
-21
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2056
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0
----
NULL

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0, tab0 AS cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT col2 + - 76 * + col1 * col1 AS col0 FROM tab2 AS cor0
----
-21926
-264530
-73009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 87 + - 23 * col2 * - 54 col0 FROM tab2 AS cor0
----
34143
39078
54069

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 96 col2 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT DISTINCT - - col2 * - col1 + + 46 AS col2 FROM tab1 AS cor0
----
-1202
-1358
-524

query I rowsort
SELECT + col0 + 74 FROM tab2 AS cor0
----
152
153
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2063
SELECT ALL + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2064
SELECT ALL - + col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2064
SELECT ALL - + col0 / col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( + col1 ) - col1 * col1 FROM tab0 AS cor0
----
-14792
-16562
-18818

query I rowsort
SELECT ALL - col0 * 55 AS col2 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT + cor0.col2 * ( ( col0 ) ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - ( 91 * - col0 ) + + col1 * col2 + - col0 FROM tab1
----
1674
6330
8448

query I rowsort
SELECT DISTINCT 97 AS col1 FROM tab2, tab2 AS cor0
----
97

query I rowsort
SELECT - ( + ( - col0 ) ) + + col1 * - col0 - cor0.col2 FROM tab2 AS cor0
----
-1302
-237
-4550

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

query I rowsort
SELECT ALL + col2 + 82 AS col1 FROM tab0 AS cor0
----
115
164
83

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-2074
SELECT DISTINCT + 77 - - col2 * col0 DIV - col2 FROM tab1 AS cor0
----
-3
13
74

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT + 77 - - col2 * col0 / - col2 FROM tab1 AS cor0
----
-3
13
74

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 18 - - col1 AS col1 FROM tab0 AS cor0
----
68
73
79

query I rowsort
SELECT + 58 * col1 FROM tab2 AS cor0
----
1798
3422
986

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2078
SELECT DISTINCT - ( col2 ) * cor0.col1 - - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT - ( col2 ) * cor0.col1 - - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - 68 + col2 AS col1 FROM tab1 cor0
----
-11
-14
28

query I rowsort
SELECT + ( col1 ) - - col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + ( 59 ) * - col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
-1155
-24
2460

onlyif mysql # use DIV operator for integer division
query I rowsort label-2082
SELECT - col2 + 34 + - col0 DIV + 34 AS col1 FROM tab2 AS cor0
----
-6
6
7

skipif mysql # not compatible
query I rowsort label-2082
SELECT - col2 + 34 + - col0 / + 34 AS col1 FROM tab2 AS cor0
----
-6
6
7

query I rowsort
SELECT 49 - col2 AS col0 FROM tab0 AS cor0
----
-33
16
48

query I rowsort
SELECT DISTINCT 87 * col2 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT ALL + 37 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 55 AS col1 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT + col1 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + 33 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - 51 + + col0 FROM tab0
----
-16
-27
38

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-2093
SELECT - + 42 DIV - col1 FROM tab1 AS cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-2093
SELECT - + 42 / - col1 FROM tab1 AS cor0
----
1
3
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2094
SELECT col1 / col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2094
SELECT col1 / col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 95 * - col1 AS col2 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT DISTINCT ( - col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2097
SELECT col1 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2097
SELECT col1 / col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col2 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT + 84 AS col0 FROM tab0
----
84
84
84

query I rowsort
SELECT ALL col0 * col1 * - 45 AS col1 FROM tab0 AS cor0
----
-152775
-364455
-92880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 * col1 + col0 col1 FROM tab1 AS cor0
----
1563
664
860

query I rowsort
SELECT DISTINCT 84 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1092
-2184
-840

query I rowsort
SELECT col0 * col2 + - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL - col2 * col0 - - col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT + 72 AS col0 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT col0 * + col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col1 + 20 * + 11 col0 FROM tab0 AS cor0
----
3058
317
7682

query I rowsort
SELECT DISTINCT + ( col1 ) + 85 * 35 FROM tab1 AS cor0
----
2985
2988
3001

query I rowsort
SELECT - cor0.col1 * + ( - col0 ) + col1 * + cor0.col0 FROM tab0 AS cor0
----
16198
4128
6790

skipif mysql # not compatible
query I rowsort
SELECT - col1 + tab1.col0 * + CAST ( - col1 AS REAL ) FROM tab1
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2111
SELECT DISTINCT - 77 DIV cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT - 77 / cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-2
-5
-7

query I rowsort
SELECT + 17 FROM tab1, tab2 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - cor0.col0 + col0 col2 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2116
SELECT + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2116
SELECT + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT - col2 * cor0.col2 + - col2 + - ( col2 ) DIV + col1 AS col0 FROM tab1 cor0
----
-2972
-3311
-9319

skipif mysql # not compatible
query I rowsort label-2118
SELECT - col2 * cor0.col2 + - col2 + - ( col2 ) / + col1 AS col0 FROM tab1 cor0
----
-2972
-3311
-9319

onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT DISTINCT + - 96 DIV + col0 FROM tab0 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT + - 96 / + col0 FROM tab0 AS cor0
----
-1
-2
-4

query I rowsort
SELECT DISTINCT + + col1 + 31 * - col2 FROM tab0 AS cor0
----
-2451
-937
66

query I rowsort
SELECT - col1 + - 93 - cor0.col0 FROM tab0 AS cor0
----
-203
-225
-273

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
54
57
96

query I rowsort
SELECT col0 * ( + 74 ) + + col2 AS col0 FROM tab0
----
1809
2591
6668

query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL + ( + col0 ) + col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - 16 + - col1 FROM tab1
----
-26
-29
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT col0 + col2 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 93 + col1 + col1 AS col1 FROM tab1
----
113
119
145

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab0 cor2
----
3645 values hashing to e7ea8a30caeb35409d15d2ce0abbd5a6

query I rowsort
SELECT col2 * + col0 + - col2 - col1 AS col0 FROM tab0 AS cor0
----
-63
673
7125

query I rowsort
SELECT ALL + col1 + + col1 * col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT 75 + + 39 * col0 AS col2 FROM tab1
----
192
2571
3195

onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT col0 DIV col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2139
SELECT col0 / col0 FROM tab2
----
1
1
1

query I rowsort
SELECT + 10 * + 22 FROM tab0
----
220
220
220

query I rowsort
SELECT DISTINCT col2 * + 62 FROM tab0 AS cor0
----
2046
5084
62

query I rowsort
SELECT 84 FROM tab1, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2143
SELECT ALL cor0.col0 + 61 * col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL cor0.col0 + 61 * col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 17 FROM tab0
----
1394
17
561

query I rowsort
SELECT + col0 * ( - col1 ) * - cor0.col1 - 57 FROM tab0 AS cor0
----
177447
329258
736952

query I rowsort
SELECT - + col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col1 + - cor0.col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + col0 + + 56 * - col1 FROM tab2 AS cor0
----
-1687
2780
5289

query I rowsort
SELECT DISTINCT col1 * 82 * + tab1.col2 AS col2 FROM tab1
----
102336
115128
46740

onlyif mysql # use DIV operator for integer division
query I rowsort label-2150
SELECT DISTINCT - col2 + - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-2150
SELECT DISTINCT - col2 + - col2 / - col2 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT + col1 * - col2 - - col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col2 * - col0 col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT 87 * - col2 + col1 FROM tab2 AS cor0
----
-2203
-2318
-3289

query I rowsort
SELECT - + 91 + - col0 FROM tab1 cor0
----
-155
-171
-94

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4406ccc71f02ae9c1e947ffcd89b0db7

query I rowsort
SELECT - col2 + tab1.col1 AS col2 FROM tab1
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2157
SELECT - CAST( NULL AS DECIMAL ) * 13 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2157
SELECT - CAST ( NULL AS REAL ) * 13 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) + col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + + cor0.col2 col1 FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab0 cor2
----
243 values hashing to 199f39f92b5db4cd807308427a356df2

query I rowsort
SELECT ALL - + 3 * col0 * 70 AS col2 FROM tab2 AS cor0
----
-1470
-16380
-16590

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 + cor0.col1 col1 FROM tab2 AS cor0
----
-21
-49
-63

query I rowsort
SELECT DISTINCT 75 * - col0 FROM tab1 AS cor0
----
-225
-4800
-6000

query I rowsort
SELECT DISTINCT - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 56 AS col1 FROM tab2
----
56
56
56

query I rowsort
SELECT DISTINCT 11 + - cor1.col2 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
-43
-46
-85

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col1 * - col2 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - - 16 + + col2 * cor0.col0 AS col2 FROM tab1 cor0
----
178
3664
7696

query I rowsort
SELECT col1 + - 99 AS col0 FROM tab2 AS cor0
----
-40
-68
-82

query I rowsort
SELECT ALL - col0 * col2 + col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL 61 + + col1 FROM tab1
----
71
74
87

query I rowsort
SELECT - - col0 + + ( - col1 + - col2 * col0 ) FROM tab1 AS cor0
----
-185
-3594
-7613

query I rowsort
SELECT + 53 FROM tab1
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col1 FROM tab1
----
73
73
73

query I rowsort
SELECT DISTINCT 86 + + tab0.col2 * - col2 AS col2 FROM tab0
----
-1003
-6638
85

query I rowsort
SELECT - col0 * + 13 AS col0 FROM tab0 cor0
----
-1157
-312
-455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2177
SELECT col0 * CAST( col2 AS SIGNED ) * - cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-2177
SELECT col0 * CAST ( col2 AS INTEGER ) * - cor0.col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + col1 * - ( cor0.col0 + col0 ) FROM tab0 AS cor0
----
-16198
-4128
-6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT DISTINCT + col0 DIV cor0.col0 + col0 col0 FROM tab1 cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + col0 / cor0.col0 + col0 col0 FROM tab1 cor0
----
4
65
81

query I rowsort
SELECT DISTINCT - + col1 * 59 + - 84 FROM tab0 AS cor0
----
-5158
-5453
-5807

query I rowsort
SELECT + col0 * ( 77 ) AS col0 FROM tab1 AS cor0
----
231
4928
6160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2182
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2182
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 85 * - 6 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to aab2be19f25ca873297e15374a97f6ee

onlyif mysql # use DIV operator for integer division
query I rowsort label-2184
SELECT - col2 DIV 91 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2184
SELECT - col2 / 91 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col2 * - 50 AS col0 FROM tab1
----
-2700
-2850
-4800

query I rowsort
SELECT ALL + col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col1 * 48 + col0 AS col2 FROM tab0 AS cor0
----
4152
4457
4691

query I rowsort
SELECT DISTINCT + - 14 AS col0 FROM tab1 AS cor0
----
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT DISTINCT 54 DIV + 97 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT 54 / + 97 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL 7 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT - + 72 * col0 + - col1 * - 54 FROM tab1 AS cor0
----
-4068
-5058
1188

query I rowsort
SELECT - col2 - - col1 * + col0 AS col2 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 - - col0 col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT 59 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT col0 - col2 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + col1 * col2 + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT - ( + cor0.col1 ) + - 30 * cor0.col2 FROM tab2 AS cor0
----
-1157
-839
-841

query I rowsort
SELECT ALL col2 * cor0.col1 * - 10 + ( + col0 ) FROM tab1 cor0
----
-12400
-14037
-5636

onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT ALL + col0 DIV + tab2.col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL + col0 / + tab2.col0 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT - 3 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT ALL - 61 AS col0 FROM tab2
----
-61
-61
-61

query I rowsort
SELECT 45 AS col1 FROM tab0
----
45
45
45

query I rowsort
SELECT + 58 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT 16 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col1 col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT 78 * + col0 FROM tab0 AS cor0
----
1872
2730
6942

onlyif mysql # use DIV operator for integer division
query I rowsort label-2209
SELECT 81 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-11

skipif mysql # not compatible
query I rowsort label-2209
SELECT 81 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-11

query I rowsort
SELECT ALL - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 * col2 * col2 FROM tab0 AS cor0
----
194
611975
93740

onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT + + 43 DIV + col1 + - col0 col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2212
SELECT + + 43 / + col1 + - col0 col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL - - cor0.col0 * - cor0.col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + - 83 * col0 * col1 FROM tab2 AS cor0
----
-111469
-18011
-381966

query I rowsort
SELECT + ( + col2 ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 - tab2.col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT col0 + 71 + col1 AS col2 FROM tab2
----
109
167
208

query I rowsort
SELECT + col1 + + col2 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT - tab2.col0 * + col1 + col2 AS col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT - 63 - + col2 * + col2 AS col0 FROM tab0
----
-1152
-64
-6787

query I rowsort
SELECT DISTINCT 34 * - col0 * col2 AS col0 FROM tab2
----
-102068
-6426
-68952

query I rowsort
SELECT DISTINCT col0 * + ( + tab2.col2 ) FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 81 AS REAL ) + col1 * col2 AS col2 FROM tab1
----
1167
1323
489

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab1 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2227
SELECT DISTINCT + ( col1 ) DIV col0 FROM tab1
----
0
8

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT + ( col1 ) / col0 FROM tab1
----
0
8

query I rowsort
SELECT 42 AS col2 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT col1 * - 29 FROM tab1 AS cor0
----
-290
-377
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col2 col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - - 93 FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + 43 FROM tab1, tab1 AS cor0
----
43

query I rowsort
SELECT col1 + 36 AS col2 FROM tab0
----
122
127
133

query I rowsort
SELECT - 31 - col0 FROM tab1
----
-111
-34
-95

query I rowsort
SELECT - col1 + col2 * col2 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT + cor0.col0 + col1 * col1 - col0 * + col1 AS col0 FROM tab0 cor0
----
271
5356
6049

query I rowsort
SELECT - col2 + - col2 - ( + col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
2808
3135
9024

query I rowsort
SELECT DISTINCT + col1 * - col2 + - col2 + - cor0.col1 FROM tab2 AS cor0
----
-1619
-701
-895

query I rowsort
SELECT - - col0 + col0 * + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL - + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col2 + + 43 - col2 AS col2 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT ALL - col0 + - 59 AS col1 FROM tab1 cor0
----
-123
-139
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col1 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT ALL - col0 * + col0 AS col1 FROM tab0
----
-1225
-576
-7921

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 cor0, tab2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT ALL - 82 FROM tab1
----
-82
-82
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2248
SELECT ALL col2 DIV ( - tab1.col1 ) + + col1 + + col2 FROM tab1
----
102
62
78

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL col2 / ( - tab1.col1 ) + + col1 + + col2 FROM tab1
----
102
62
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2249
SELECT ALL cor0.col1 DIV col2 + - cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
-1087
-6723
96

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL cor0.col1 / col2 + - cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
-1087
-6723
96

query I rowsort
SELECT DISTINCT + col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + 99 + 49 - cor0.col2 FROM tab1, tab2 cor0
----
9 values hashing to 924c1419b05e02a3e0cf7cbe631ea4f7

query I rowsort
SELECT - - cor0.col2 * col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL + cor0.col0 + 7 * + col2 FROM tab1 AS cor0
----
381
463
752

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - col1 * col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT DISTINCT col0 DIV + col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT col0 / + col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col1 + - ( + col0 ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col1 - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - col0 + - col2 * - tab0.col0 AS col0 FROM tab0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col1 * + col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab2
----
-21
33
4

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL - col0 + - tab0.col1 AS col2 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + col0 * col2 + - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL + + col1 * col0 + + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-2271
SELECT col0 * col0 DIV col2 AS col1 FROM tab0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-2271
SELECT col0 * col0 / col2 AS col1 FROM tab0
----
1225
17
96

query I rowsort
SELECT ALL + col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - - col0 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT ALL col2 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL col2 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 + + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT + + col0 * cor0.col0 - + col2 * + col1 * - col0 AS col2 FROM tab0 cor0
----
4620
672039
68688

query I rowsort
SELECT DISTINCT col2 * col2 * col0 + col2 FROM tab1 cor0
----
207993
737376
8802

query I rowsort
SELECT + col1 * col1 + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT DISTINCT col2 DIV col2 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT col2 / col2 AS col1 FROM tab0
----
1

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 - + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 + + cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL cor0.col2 - cor0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 68f26bab54a791428e6ed5816df96945

onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT DISTINCT - col1 * + cor0.col2 + col0 DIV + col0 FROM tab2 AS cor0
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT - col1 * + cor0.col2 + col0 / + col0 FROM tab2 AS cor0
----
-1533
-645
-836

query I rowsort
SELECT col1 * + col0 + - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT + cor0.col1 + + col2 DIV col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2286
SELECT + cor0.col1 + + col2 / col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT - cor0.col0 - + col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * - col2 col0 FROM tab2 AS cor0
----
-1365
-598
-722

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-2290
SELECT DISTINCT col1 + - col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT col1 + - col2 / - col2 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL - - 37 AS col2 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT + col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 95 FROM tab2
----
-95
-95
-95

query I rowsort
SELECT col1 + + col0 * + col1 AS col1 FROM tab0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col0 * + col2 col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + + col1 + - col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 83 * col1 FROM tab1 AS cor0
----
-1079
-2158
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL 68 + col2 AS col1 FROM tab0 AS cor0
----
101
150
69

query I rowsort
SELECT ALL + + col0 + cor0.col2 * + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL col0 * col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT + 51 DIV col2 - - col1 AS col1 FROM tab0 AS cor0
----
148
87
91

skipif mysql # not compatible
query I rowsort label-2305
SELECT + 51 / col2 - - col1 AS col1 FROM tab0 AS cor0
----
148
87
91

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col0 AS REAL ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL 47 * + col2 FROM tab0
----
1551
3854
47

query I rowsort
SELECT DISTINCT - 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2309
SELECT ALL - 97 DIV + col0 FROM tab0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - 97 / + col0 FROM tab0
----
-1
-2
-4

query I rowsort
SELECT 22 + cor0.col1 - col2 FROM tab2 AS cor0
----
1
26
55

query I rowsort
SELECT - col0 - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + 27 - col2 * + col0 FROM tab0 AS cor0
----
-7271
-765
-8

query I rowsort
SELECT + col2 * - col1 + 32 + 30 FROM tab1 AS cor0
----
-1186
-1342
-508

query I rowsort
SELECT - col0 + col2 + 62 * - col2 FROM tab2 AS cor0
----
-1654
-1664
-2397

query I rowsort
SELECT + tab1.col1 * + col2 + - col2 * - col2 FROM tab1
----
10464
3819
4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2316
SELECT DISTINCT cor0.col0 DIV - 75 AS col2 FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2316
SELECT DISTINCT cor0.col0 / - 75 AS col2 FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
-1
0

query I rowsort
SELECT 84 + - cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 94f0694196ba0536fe9eb368beb41ef3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2318
SELECT + + col1 / CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2318
SELECT + + col1 / CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 41 + col0 * + col2 FROM tab0 cor0
----
7421
77
866

query I rowsort
SELECT ALL cor0.col1 * 76 AS col0 FROM tab1 AS cor0
----
1976
760
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-2321
SELECT DISTINCT - cor0.col2 DIV + 38 + 41 AS col2 FROM tab1 cor0
----
39
40

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT - cor0.col2 / + 38 + 41 AS col2 FROM tab1 cor0
----
39
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2322
SELECT + - CAST( - col1 AS SIGNED ) * col1 DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
12

skipif mysql # not compatible
query I rowsort label-2322
SELECT + - CAST ( - col1 AS INTEGER ) * col1 / col2 AS col1 FROM tab1 AS cor0
----
1
1
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-2323
SELECT + 97 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-2323
SELECT + 97 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-3
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2324
SELECT ALL + 65 DIV 26 AS col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL + 65 / 26 AS col0 FROM tab1
----
2
2
2

query I rowsort
SELECT DISTINCT - 13 * col0 AS col1 FROM tab2
----
-1014
-1027
-91

query I rowsort
SELECT ( col1 + + col2 ) AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT - tab0.col0 * col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + 13 FROM tab0, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1, tab2 cor1
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT - ( + col1 ) FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2333
SELECT ALL - - col1 * ( col1 ) * CAST( col1 * + col0 AS SIGNED ) + + col1 * col2 FROM tab0 AS cor0
----
15268182
31943652
67075281

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - - col1 * ( col1 ) * CAST ( col1 * + col0 AS INTEGER ) + + col1 * col2 FROM tab0 AS cor0
----
15268182
31943652
67075281

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2334
SELECT DISTINCT - CAST( col1 AS SIGNED ) - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT - CAST ( col1 AS INTEGER ) - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( col2 * + 94 ) + - 9 * + col0 col2 FROM tab2 AS cor0
----
-144898
-61435
-78741

query I rowsort
SELECT - + ( col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + + 38 AS col2 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT + ( + col1 ) + col1 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 + + cor0.col0 + col2 col1 FROM tab1 AS cor0
----
-1072
-1347
-449

query I rowsort
SELECT - 72 AS col1 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + + 85 * + col0 * col0 - col1 AS col2 FROM tab1 cor0
----
348150
543987
739

query I rowsort
SELECT DISTINCT col0 + col0 + col0 AS col1 FROM tab0 AS cor0
----
105
267
72

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT ALL - col2 + cor0.col2 + col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - col2 + cor0.col2 + col1 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - + col0 - - col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - ( 61 ) + col2 - col1 col0 FROM tab2 AS cor0
----
-431
-4791
-4798

query I rowsort
SELECT ALL + col2 + tab1.col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL - cor0.col2 * + 75 AS col0 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT DISTINCT - col0 * ( col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL col2 + - col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2352
SELECT - cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT - cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2353
SELECT + CAST( NULL AS DECIMAL ) * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2353
SELECT + CAST ( NULL AS REAL ) * cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2354
SELECT col0 + col0 DIV col0 col2 FROM tab1 AS cor0
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2354
SELECT col0 + col0 / col0 col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL + 84 - col1 AS col2 FROM tab0 AS cor0
----
-13
-2
-7

query I rowsort
SELECT + tab0.col0 * + col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL tab2.col1 * col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab1 cor0
----
75

query I rowsort
SELECT ALL + ( + col0 ) + cor0.col1 * 7 FROM tab2 AS cor0
----
198
224
491

query I rowsort
SELECT + + cor0.col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2362
SELECT DISTINCT 7 - + col2 DIV col1 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT 7 - + col2 / col1 FROM tab0 cor0
----
7

query I rowsort
SELECT ALL + 27 + col1 * - col2 * - 75 FROM tab0 AS cor0
----
212877
559677
7302

query I rowsort
SELECT + col2 + - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 * - col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + 2 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2367
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * cor0.col1 + - col0 DIV - 97 FROM tab2 AS cor0
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-2367
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * cor0.col1 + - col0 / - 97 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2368
SELECT ALL - CAST( NULL AS SIGNED ) col2 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-2368
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - tab2.col1 - col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ( cor0.col0 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2371
SELECT ALL + cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * ( - 51 ) FROM tab2 AS cor0
----
1326
1377
1938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2373
SELECT DISTINCT + col1 * - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + col1 * - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 29 + - col0 col1 FROM tab0 AS cor0
----
-6
2289
933

onlyif mysql # use DIV operator for integer division
query I rowsort label-2375
SELECT ALL + + col1 DIV - col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL + + col1 / - col1 FROM tab2 AS cor0
----
-1
-1
-1

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT ALL + 75 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL + - cor0.col2 * + ( - ( col1 ) ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - + col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT col2 - - ( - ( col2 ) ) * - ( col0 ) FROM tab2 AS cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col1 col1 FROM tab2 cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2382
SELECT col2 DIV + 96 - + 4 DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT col2 / + 96 - + 4 / col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2383
SELECT DISTINCT cor0.col0 + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT cor0.col0 + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab1 cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2385
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 94 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 94 FROM tab1, tab0 AS cor0
----
NULL

query I rowsort
SELECT + 92 * col1 + - cor0.col2 * col2 AS col2 FROM tab2 cor0
----
120
2123
4752

query I rowsort
SELECT DISTINCT - col2 * 51 * + col2 + 47 AS col0 FROM tab1 AS cor0
----
-148669
-165652
-469969

query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 * - col0 * - col2 AS col1 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT ALL + ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col2 * cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL - - 96 AS col0 FROM tab2 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT 36 + ( col0 ) FROM tab2 AS cor0
----
114
115
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT DISTINCT + col2 DIV + col2 + - col2 + col1 AS col2 FROM tab0 AS cor0
----
10
54
97

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT + col2 / + col2 + - col2 + col1 AS col2 FROM tab0 AS cor0
----
10
54
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2394
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( ( col1 ) ) + 29 - 5 FROM tab0 AS cor0
----
110
115
121

query I rowsort
SELECT ALL tab2.col0 + + col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - col1 * 68 AS col2 FROM tab1
----
-1768
-680
-884

query I rowsort
SELECT col2 * - col1 * + ( col2 ) FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - col0 * col1 + - col2 * - col1 FROM tab2
----
-3068
-697
620

query I rowsort
SELECT ALL col1 + col0 * col2 * - col1 FROM tab2
----
-119593
-51017
-5828

query I rowsort
SELECT ALL col0 + 58 AS col2 FROM tab1
----
122
138
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - ( tab2.col0 ) col2 FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-2403
SELECT + - col0 DIV col2 AS col1 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2403
SELECT + - col0 / col2 AS col1 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT - col1 * - col1 + + 64 * col2 FROM tab2 AS cor0
----
2689
2721
5145

onlyif mysql # use DIV operator for integer division
query I rowsort label-2405
SELECT - col0 DIV - col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2405
SELECT - col0 / - col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - + cor0.col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT - - 9 + - cor0.col0 DIV col2 FROM tab1 AS cor0
----
8
9
9

skipif mysql # not compatible
query I rowsort label-2407
SELECT - - 9 + - cor0.col0 / col2 FROM tab1 AS cor0
----
8
9
9

query I rowsort
SELECT ALL col2 + - col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT 54 * col1 * col0 FROM tab1 cor0
----
34560
4212
56160

query I rowsort
SELECT + ( - tab1.col1 ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col2 * col2 AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT - col2 + + col1 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - 61 * - col2 AS col2 FROM tab0 AS cor0
----
2013
5002
61

query I rowsort
SELECT DISTINCT + 83 * col0 * 35 FROM tab2
----
20335
226590
229495

query I rowsort
SELECT ALL + 7 + 17 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col1 FROM tab2
----
51

query I rowsort
SELECT - + col2 + col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + cor0.col2 + - col1 * - col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col0 * col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col0 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 78 + + col2 col1 FROM tab0 AS cor0
----
-45
-77
4

query I rowsort
SELECT DISTINCT col0 * + col2 AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab1
----
-4

query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2427
SELECT - + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2427
SELECT - + col0 / col1 AS col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT - 57 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab0.col1 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL - 90 * - col2 * - col2 FROM tab1
----
-262440
-292410
-829440

query I rowsort
SELECT DISTINCT + tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 41 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT ALL + 83 AS col2 FROM tab2
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 * 46 col2 FROM tab2, tab0 cor0
----
9 values hashing to 71030054a2f7edae0872be4ada2cc17c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( + col2 ) + + col0 col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT - + col1 + 79 FROM tab0 AS cor0
----
-12
-18
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2437
SELECT DISTINCT col1 DIV cor0.col1 + - col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT col1 / cor0.col1 + - col2 FROM tab0 AS cor0
----
-32
-81
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT DISTINCT - col2 + cor0.col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT - col2 + cor0.col1 / + col1 AS col2 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT - col1 * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 + cor0.col2 * col1 col1 FROM tab0 AS cor0
----
-3263
-548
798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2441
SELECT ALL - CAST( + col0 * + col2 AS SIGNED ) AS col1 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-2441
SELECT ALL - CAST ( + col0 * + col2 AS INTEGER ) AS col1 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT - + col1 DIV - cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-2442
SELECT - + col1 / - cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT + + ( + 38 ) + - col2 * ( - ( col0 ) + 23 ) AS col1 FROM tab2 AS cor0
----
-394
1468
2166

query I rowsort
SELECT DISTINCT - ( + col0 ) * + cor0.col2 + ( + col2 ) * + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1378
-1596
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT DISTINCT + 82 DIV + cor0.col0 col2 FROM tab2 AS cor0
----
1
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT + 82 / + cor0.col0 col2 FROM tab2 AS cor0
----
1
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-2446
SELECT + col0 * - col0 + col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-1227
-579
-7922

skipif mysql # not compatible
query I rowsort label-2446
SELECT + col0 * - col0 + col1 / - cor0.col0 FROM tab0 AS cor0
----
-1227
-579
-7922

query I rowsort
SELECT ALL - - 65 AS col0 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2448
SELECT CAST( col0 AS SIGNED ) * col2 col0 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2448
SELECT CAST ( col0 AS INTEGER ) * col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL 20 * col1 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT ALL + + ( col1 ) * cor0.col1 + + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + + col1 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + - col2 + col2 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * cor0.col1 * + 6 AS col1 FROM tab0 AS cor0
----
44376
49686
56454

query I rowsort
SELECT ALL 80 + + col2 FROM tab0 AS cor0
----
113
162
81

query I rowsort
SELECT DISTINCT + col0 * col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + - col2 AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col0 + 99 * + col1 FROM tab2
----
1762
3076
5919

query I rowsort
SELECT DISTINCT - 33 + - col2 FROM tab2 AS cor0
----
-59
-60
-71

query I rowsort
SELECT ALL + col2 + col0 * col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT 3 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT + + col2 * + col2 FROM tab0 cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 * + col2 col1 FROM tab0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT tab0.col2 - - tab0.col0 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT + col2 * + col0 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col1 + col1 AS col0 FROM tab0
----
172
182
194

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col0 IN ( col0 * + col0 + + tab2.col2 )
----

query I rowsort
SELECT tab1.col0 + - col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT ( col1 ) > col1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - tab2.col1 col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col1 FROM tab1 WHERE NULL = col0
----

query I rowsort
SELECT + col1 * col2 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col0 + col0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( NULL ) NOT IN ( tab0.col1 * col1 - + col2 * col2 )
----

query I rowsort
SELECT ALL col2 - + tab2.col0 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + tab0.col1 * - col0 AS col1 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT col0 - + tab1.col2 DIV tab1.col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2478
SELECT col0 - + tab1.col2 / tab1.col2 FROM tab1
----
2
63
79

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE ( col2 * col0 * - col1 ) IN ( tab0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + tab1.col0 col0 FROM tab1
----
0

query I rowsort
SELECT ALL + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 77 * cor0.col2 AS col0 FROM tab1 AS cor0
----
4158
4389
7392

onlyif mysql # use DIV operator for integer division
query I rowsort label-2483
SELECT ALL - 23 * col2 - col2 DIV - col1 FROM tab0 AS cor0
----
-1886
-23
-759

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - 23 * col2 - col2 / - col1 FROM tab0 AS cor0
----
-1886
-23
-759

query I rowsort
SELECT + col2 + + col0 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT col0 * + col0 + + col0 AS col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT + col0 / tab2.col2 AS col0 FROM tab2 WHERE col2 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + + col0 * col0 FROM tab0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-2488
SELECT col2 DIV - col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT col2 / - col0 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT col2 + - col2 * col1 + col2 FROM tab2
----
-1482
-570
-783

query I rowsort
SELECT ALL - col2 + col0 * tab1.col1 FROM tab1
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 + tab2.col0 col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT NULL < - col2
----

query I rowsort
SELECT col2 - col1 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT tab1.col2 + - tab1.col0 FROM tab1
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 AS cor0 WHERE ( + col2 + col2 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col0 * - cor0.col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - col1 * - col2 + + col1 FROM tab2 cor0 WHERE ( NULL ) IN ( col0 * + col2 )
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col1 * col1 + - col0 FROM tab2
----
-3559
-368
-968

query III rowsort
SELECT * FROM tab2 WHERE col0 <> NULL
----

query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab2
----
137
38
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 < col0 + col1
----

query I rowsort
SELECT DISTINCT + tab2.col2 AS col0 FROM tab2 WHERE - col1 * col2 * + col1 <= + col2
----
26
27
38

query I rowsort
SELECT col1 * + col2 FROM tab1 WHERE NULL > + col0
----

query I rowsort
SELECT - col1 * - col2 - col2 * col2 FROM tab0
----
1749
738
96

query I rowsort
SELECT ALL cor0.col0 + + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to af3a539c18b07c0d2d3147e1b73e81ac

query I rowsort
SELECT - 8 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT - - ( ( - cor0.col2 ) ) * 30 * - col0 AS col1 FROM tab0 AS cor0
----
1050
218940
23760

query I rowsort
SELECT + + 67 * - col1 AS col2 FROM tab1 AS cor0
----
-1742
-670
-871

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 * cor0.col2 FROM tab0 AS cor0
----
1
35937
551368

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT - + col2 + cor0.col0 FROM tab0 cor0
----
-9
34
7

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2515
SELECT - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2515
SELECT - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL ( tab0.col2 ) AS col2 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2518
SELECT ALL - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + col1 * + col1 AS col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + + ( - col0 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ( 52 ) + + col1 + + cor0.col1 * + 33 AS col1 FROM tab1 AS cor0
----
392
494
936

query I rowsort
SELECT + col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT cor1.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - col2 * col0 * col1 - col2 AS col2 FROM tab0
----
-3396
-664200
-68145

query I rowsort
SELECT ALL - col0 * + col1 - col1 * col0 AS col2 FROM tab0
----
-16198
-4128
-6790

query I rowsort
SELECT 32 FROM tab0
----
32
32
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-2527
SELECT col1 DIV col1 - + 67 AS col2 FROM tab2 AS cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-2527
SELECT col1 / col1 - + 67 AS col2 FROM tab2 AS cor0
----
-66
-66
-66

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 90e25bbdedfdeba1119139dab203aeea

query I rowsort
SELECT ( col2 ) - cor0.col1 * col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - 6 * col1 + + 19 FROM tab2 AS cor0
----
-167
-335
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col0 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT col0 + - col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + - ( 11 ) AS col1 FROM tab0 AS cor0
----
-100
-35
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * cor0.col0 + - cor0.col0 * + col2 col1 FROM tab1 AS cor0
----
-3008
-6640
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2535
SELECT ALL col1 + + CAST( NULL AS SIGNED ) / - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) / - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT DISTINCT + - col0 + 14 DIV 69 col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + - col0 + 14 / 69 col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + 28 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT DISTINCT col2 - ( - 38 ) FROM tab2 AS cor0
----
64
65
76

query I rowsort
SELECT ALL - cor0.col0 * - 55 * + col1 FROM tab0 AS cor0
----
113520
186725
445445

query I rowsort
SELECT DISTINCT cor0.col1 + 40 * ( + col2 * - 15 ) + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-19628
-406
-49018

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 - col2 * ( - cor0.col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + tab2.col2 + col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT - col2 + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 34 AS col1 FROM tab1 AS cor0
----
34
34
34

query I rowsort
SELECT ALL ( + 92 ) - - col0 AS col0 FROM tab2 cor0
----
170
171
99

query I rowsort
SELECT - cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 63 * 56 AS col2 FROM tab0 AS cor0
----
3528
3528
3528

query I rowsort
SELECT ALL + - 29 + - col1 FROM tab2 AS cor0
----
-46
-60
-88

query I rowsort
SELECT col0 + - col1 * + col0 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ( 37 ) + - col1 * + col2 FROM tab1
----
-1211
-1367
-533

query I rowsort
SELECT + + 64 + - col0 AS col0 FROM tab2 AS cor0
----
-14
-15
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT ALL col2 + col0 DIV + 61 FROM tab2 AS cor0
----
27
27
39

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL col2 + col0 / + 61 FROM tab2 AS cor0
----
27
27
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2555
SELECT - + 97 * cor0.col0 + col1 * col0 DIV - col2 + ( 6 ) AS col1 FROM tab1 AS cor0
----
-286
-6213
-7764

skipif mysql # not compatible
query I rowsort label-2555
SELECT - + 97 * cor0.col0 + col1 * col0 / - col2 + ( 6 ) AS col1 FROM tab1 AS cor0
----
-286
-6213
-7764

query I rowsort
SELECT DISTINCT + 18 * - col1 FROM tab0 AS cor0
----
-1548
-1638
-1746

onlyif mysql # use DIV operator for integer division
query I rowsort label-2557
SELECT DISTINCT col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT col0 / - col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 88 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT 23 + - col0 FROM tab1 AS cor0
----
-41
-57
20

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60

query I rowsort
SELECT 4 FROM tab0 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + col2 col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + cor0.col0 + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - col1 - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col1 * - ( cor0.col0 ) FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 + col0 * 42 * + col2 AS col0 FROM tab0 AS cor0
----
1505
306605
33288

query I rowsort
SELECT 49 FROM tab2, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT + 98 - + 85 FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL col1 * + 50 FROM tab1 cor0
----
1300
500
650

query I rowsort
SELECT ( cor0.col0 ) FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT - col1 * - 32 FROM tab1 AS cor0
----
320
416
832

query I rowsort
SELECT ALL + ( cor0.col0 ) * + col2 + 74 FROM tab1 AS cor0
----
236
3722
7754

query I rowsort
SELECT DISTINCT 56 FROM tab1 AS cor0
----
56

query I rowsort
SELECT + 25 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT + 54 * col2 - + col1 AS col2 FROM tab2 AS cor0
----
1345
1427
2035

query I rowsort
SELECT ALL + cor0.col1 * 6 AS col0 FROM tab1 AS cor0
----
156
60
78

query I rowsort
SELECT DISTINCT - + col1 * - 45 + col2 FROM tab1 AS cor0
----
1224
507
681

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2579
SELECT ALL - CAST( - 79 AS SIGNED ) + + cor0.col1 AS col1 FROM tab2 AS cor0
----
110
138
96

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - CAST ( - 79 AS INTEGER ) + + cor0.col1 AS col1 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT ALL - col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + ( - 13 ) * + col0 + + col1 AS col0 FROM tab1 cor0
----
-1027
-13
-822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - ( - col0 ) col1 FROM tab0
----
110
132
180

query I rowsort
SELECT + col2 - ( + col2 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - 11 * + 60 FROM tab2, tab2 AS cor0
----
9 values hashing to 3f6b6214a88ff036f83f4f6f7ac1f492

onlyif mysql # use DIV operator for integer division
query I rowsort label-2585
SELECT + col1 - + col1 DIV + tab1.col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2585
SELECT + col1 - + col1 / + tab1.col2 FROM tab1
----
10
13
26

query I rowsort
SELECT + + 8 * - cor0.col1 FROM tab0 AS cor0
----
-688
-728
-776

query I rowsort
SELECT - col1 * - 34 AS col1 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT - col0 + cor0.col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + + ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 42 * col1 FROM tab2
----
1302
2478
714

query I rowsort
SELECT 98 * col0 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT + cor0.col1 * - col1 * - col2 AS col0 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL - 35 * col1 FROM tab1
----
-350
-455
-910

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab2 AS cor0
----
-1
-33
-82

query I rowsort
SELECT 66 FROM tab0
----
66
66
66

query I rowsort
SELECT 73 FROM tab0
----
73
73
73

query I rowsort
SELECT + cor0.col1 + - col0 * col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - + col2 + 98 AS col0 FROM tab2 AS cor0
----
60
71
72

query I rowsort
SELECT col2 * + 26 + col0 FROM tab0 AS cor0
----
2221
61
882

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 35 col2 FROM tab0 AS cor0
----
-51
-56
-62

query I rowsort
SELECT + cor0.col1 * - cor0.col1 * col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-2606
SELECT + cor0.col0 + + 63 DIV 17 FROM tab2 AS cor0
----
10
81
82

skipif mysql # not compatible
query I rowsort label-2606
SELECT + cor0.col0 + + 63 / 17 FROM tab2 AS cor0
----
10
81
82

query I rowsort
SELECT - ( col1 ) AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col1 + col2 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT + col2 + + tab0.col2 + col0 * + 44 FROM tab0
----
1122
1542
4080

query I rowsort
SELECT ALL - col1 * tab2.col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT 84 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
84

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT - col1 * 93 * - col0 + - col0 AS col0 FROM tab2 AS cor0
----
124820
20174
427908

query I rowsort
SELECT ALL - col1 * + 13 AS col1 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT col0 + - 68 AS col1 FROM tab1 cor0
----
-4
-65
12

query I rowsort
SELECT - col2 * 53 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT ALL col2 * - col0 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL col2 * + col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT - col0 - + cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - - cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( cor0.col1 ) col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT col2 * ( col0 ) AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col0 + - ( + col1 ) * col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + col2 + - col0 * 23 FROM tab2 AS cor0
----
-134
-1768
-1779

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL 80 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT - 25 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT 28 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL - tab2.col2 + - tab2.col0 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT + ( + col0 ) + - 66 AS col1 FROM tab1 AS cor0
----
-2
-63
14

query I rowsort
SELECT - - col1 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - col2 + + cor0.col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2634
SELECT - + col1 DIV 13 FROM tab2 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2634
SELECT - + col1 / 13 FROM tab2 cor0
----
-1
-2
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2635
SELECT ALL + - col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + - col1 / + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + 39 FROM tab1 AS cor0
----
103
119
42

query I rowsort
SELECT ALL - col0 + 15 FROM tab1 AS cor0
----
-49
-65
12

query I rowsort
SELECT - col2 * - col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT 72 FROM tab2
----
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2640
SELECT CAST( 33 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

skipif mysql # not compatible
query I rowsort label-2640
SELECT CAST ( 33 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + - col2 + - 47 AS col1 FROM tab1 cor0
----
-101
-104
-143

query I rowsort
SELECT DISTINCT + col0 * - col1 + 45 AS col2 FROM tab1 AS cor0
----
-33
-595
-995

query I rowsort
SELECT DISTINCT col1 + + 12 AS col1 FROM tab1 AS cor0
----
22
25
38

query I rowsort
SELECT DISTINCT + - col0 + + ( col0 ) * - col0 AS col2 FROM tab2 cor0
----
-56
-6162
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 52 col2 FROM tab1 cor0
----
26
39
42

query I rowsort
SELECT ALL - cor0.col2 + + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - - col0 * - col1 - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + - col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2649
SELECT - CAST( NULL AS SIGNED ) * + col2 * - col0 - CAST( col2 + col2 AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2649
SELECT - CAST ( NULL AS INTEGER ) * + col2 * - col0 - CAST ( col2 + col2 AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2650
SELECT - col0 DIV + col1 - + col0 FROM tab1 AS cor0
----
-3
-70
-86

skipif mysql # not compatible
query I rowsort label-2650
SELECT - col0 / + col1 - + col0 FROM tab1 AS cor0
----
-3
-70
-86

query I rowsort
SELECT 10 AS col0 FROM tab2 cor0
----
10
10
10

query I rowsort
SELECT - col0 * col2 + col0 * + 37 AS col0 FROM tab1 AS cor0
----
-1280
-4720
-51

query I rowsort
SELECT - - col2 + - col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT - ( - col2 ) * col0 + col2 + col2 AS col2 FROM tab1 cor0
----
270
3762
7872

query I rowsort
SELECT ALL + col1 + - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - col2 + + cor0.col2 * - 14 FROM tab1 AS cor0
----
-1440
-810
-855

query I rowsort
SELECT DISTINCT ( tab2.col0 ) FROM tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 53 + - col2 AS col2 FROM tab0 AS cor0
----
-29
20
52

query I rowsort
SELECT ALL - 82 * + col1 AS col2 FROM tab0
----
-7052
-7462
-7954

query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT DISTINCT + - col2 + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL 90 AS col1 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT - + col0 * + col1 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT + 44 DIV - cor0.col0 + + col0 FROM tab2 AS cor0
----
1
78
79

skipif mysql # not compatible
query I rowsort label-2665
SELECT + 44 / - cor0.col0 + + col0 FROM tab2 AS cor0
----
1
78
79

query I rowsort
SELECT col2 + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + - ( col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col0 * col0 + col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT DISTINCT + - cor0.col0 DIV - cor0.col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT + - cor0.col0 / - cor0.col1 FROM tab0 cor0
----
0

query I rowsort
SELECT - ( - col0 ) * + col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 * - col1 AS col1 FROM tab2
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2673
SELECT DISTINCT CAST( col0 + col0 AS SIGNED ) FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT CAST ( col0 + col0 AS INTEGER ) FROM tab1
----
128
160
6

query I rowsort
SELECT col1 * - col1 + - col1 * 7 + + 64 AS col1 FROM tab0
----
-10024
-7934
-8854

query I rowsort
SELECT - + 67 AS col1 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - col0 + col1 - col2 FROM tab1 AS cor0
----
-111
-163
-31

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 - col2 + - col2 + col2 * - 17 FROM tab1 AS cor0
----
-1026
-1083
-1824

query I rowsort
SELECT + 70 * + 85 FROM tab0
----
5950
5950
5950

query I rowsort
SELECT - tab0.col2 * tab0.col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ( col2 ) - col1 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col0 * tab0.col0 AS col0 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-2683
SELECT 26 DIV col1 col1 FROM tab1
----
1
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2683
SELECT 26 / col1 col1 FROM tab1
----
1
2
2

query I rowsort
SELECT + 25 * - col2 * - col2 FROM tab2
----
16900
18225
36100

onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT ALL - col2 DIV + 69 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL - col2 / + 69 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT + - col2 + + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - ( + col0 ) + col2 * - ( col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL - - ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + 56 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT + col2 * col1 - - col2 DIV + tab0.col2 FROM tab0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-2691
SELECT + col2 * col1 - - col2 / + tab0.col2 FROM tab0
----
2839
7463
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2692
SELECT DISTINCT CAST( 11 AS SIGNED ) FROM tab1, tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT CAST ( 11 AS INTEGER ) FROM tab1, tab0 AS cor0
----
11

query I rowsort
SELECT col1 - + col0 * + col2 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - 31 - col2 FROM tab1
----
-127
-85
-88

query I rowsort
SELECT ALL - col2 + - col0 - - col0 AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL 37 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2697
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2697
SELECT + 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-2698
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2698
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col0 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT - cor0.col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + - 45 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT - col1 + - ( 52 * + col2 ) FROM tab1
----
-2834
-2974
-5005

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2705
SELECT ALL + col2 * CAST( NULL AS SIGNED ) / - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2706
SELECT col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2706
SELECT col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 81 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT - col1 + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT col2 + - ( - col0 + col2 ) FROM tab2
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2711
SELECT DISTINCT col1 DIV col2 + - col2 AS col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT col1 / col2 + - col2 AS col2 FROM tab1
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2712
SELECT DISTINCT CAST( + col2 AS SIGNED ) + - tab2.col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - tab2.col2 AS col2 FROM tab2
----
0

query I rowsort
SELECT - 66 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT ALL - col0 * col1 + + col2 + + col0 FROM tab1
----
-21
-519
-864

query I rowsort
SELECT DISTINCT col1 + - col0 * + col2 + col2 FROM tab2
----
-131
-1943
-2947

query I rowsort
SELECT ALL col0 * + col0 + col2 * + ( col0 + col2 ) AS col0 FROM tab0
----
1261
21943
2457

query I rowsort
SELECT ALL + - col1 - 97 FROM tab1 AS cor0
----
-107
-110
-123

query I rowsort
SELECT ALL - + 35 * col1 + - col0 AS col0 FROM tab1 AS cor0
----
-414
-535
-913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 41 + - col0 * col0 col1 FROM tab0 AS cor0
----
-1266
-617
-7962

query I rowsort
SELECT - ( - col1 ) * col2 AS col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2721
SELECT 88 + + col1 DIV col0 + col2 AS col1 FROM tab0
----
124
171
91

skipif mysql # not compatible
query I rowsort label-2721
SELECT 88 + + col1 / col0 + col2 AS col1 FROM tab0
----
124
171
91

query I rowsort
SELECT ALL - col2 + + col0 AS col2 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2723
SELECT DISTINCT col2 DIV - col0 + - col0 FROM tab2
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT col2 / - col0 + - col0 FROM tab2
----
-10
-78
-79

query I rowsort
SELECT DISTINCT + col1 + - col0 FROM tab0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + col0 col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - + 63 * cor0.col2 FROM tab2 AS cor0
----
-1638
-1701
-2394

query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT 66 * + col0 + + col0 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT DISTINCT - 14 * col2 FROM tab1 AS cor0
----
-1344
-756
-798

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + 6 FROM tab0 AS cor0
----
-29
-7292
-786

query I rowsort
SELECT DISTINCT - - 5 + - cor0.col2 + ( + col0 ) FROM tab1 cor0
----
-11
-46
12

query I rowsort
SELECT ALL - col2 * - col2 + ( - col1 ) * + cor0.col1 FROM tab1 AS cor0
----
2240
3149
9047

query I rowsort
SELECT - ( - col1 ) + 5 * - col0 AS col2 FROM tab2 AS cor0
----
-331
-378
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL + - col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - col2 * col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col1 * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT col2 * + col1 - - col2 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL 92 * 36 + col0 + + 3 FROM tab0
----
3339
3350
3404

query I rowsort
SELECT col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 58 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col0 col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL - ( col0 ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2747
SELECT DISTINCT - col1 * col0 + + ( col0 + col2 ) DIV - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-1042
-641
-97

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT - col1 * col0 + + ( col0 + col2 ) / - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-1042
-641
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2748
SELECT ALL ( col0 ) DIV col2 + - col2 + col1 FROM tab0 cor0
----
10
131
53

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL ( col0 ) / col2 + - col2 + col1 FROM tab0 cor0
----
10
131
53

query I rowsort
SELECT + col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + 61 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT col1 * - col2 + 24 FROM tab0 AS cor0
----
-2814
-73
-7438

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
17
31
59

query I rowsort
SELECT DISTINCT - 20 + col0 - col2 * - col2 AS col2 FROM tab0 cor0
----
1093
16
6793

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT + ( col1 ) * + col1 FROM tab2
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT cor0.col1 * col2 DIV + cor0.col2 - + 61 DIV col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2756
SELECT cor0.col1 * col2 / + cor0.col2 - + 61 / col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + 98 + + col2 FROM tab0 AS cor0
----
131
180
99

query I rowsort
SELECT + + cor0.col2 + cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT + - col1 * + col1 + + col1 * + col2 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT + col0 + - ( + col0 * + col1 ) FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-2761
SELECT tab0.col2 DIV cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2761
SELECT tab0.col2 / cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col0 * col0 + - ( 58 ) AS col0 FROM tab1
----
-49
4038
6342

query I rowsort
SELECT DISTINCT + + 96 * + col2 AS col0 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT - col0 * + col2 * col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - col2 * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 87 FROM tab2 AS cor0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2767
SELECT ALL + col1 DIV col0 AS col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL + col1 / col0 AS col0 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT ALL + - 59 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1947
-4838
-59

query I rowsort
SELECT cor0.col2 * - col0 - - col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ( col0 ) + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ( col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - ( + 52 ) * col0 AS col1 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL col1 * - col0 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2775
SELECT DISTINCT tab0.col0 * CAST( col1 * + col1 AS SIGNED ) AS col0 FROM tab0
----
177504
329315
737009

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT tab0.col0 * CAST ( col1 * + col1 AS INTEGER ) AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT - + col0 * col0 + - col2 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

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-2778
SELECT + ( 44 ) DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2778
SELECT + ( 44 ) / col0 AS col2 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT + 52 * 12 FROM tab2
----
624
624
624

query I rowsort
SELECT cor0.col1 * 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccd04658f10b0222c7967b3123db10b

query I rowsort
SELECT - col1 * col2 FROM tab2 cor0
----
-1534
-646
-837

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2, tab0 AS cor1
----
3645 values hashing to ca4c79a162f92454e0544707b897521a

query I rowsort
SELECT ALL 76 * - col1 - - col2 AS col0 FROM tab2 AS cor0
----
-1254
-2329
-4458

query I rowsort
SELECT ALL + 94 FROM tab0
----
94
94
94

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 CROSS JOIN tab0
----
243 values hashing to 3a953203ced079e372111d61dbd9e35f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2786
SELECT DISTINCT - col0 DIV 87 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT - col0 / 87 AS col1 FROM tab0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2787
SELECT - tab2.col1 DIV 57 AS col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT - tab2.col1 / 57 AS col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT + col1 * + ( 45 * col0 ) AS col2 FROM tab2
----
207090
60435
9765

query I rowsort
SELECT - 16 * + col2 AS col1 FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 68 * + col0 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-485
1823
5083

query I rowsort
SELECT ALL + 2 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT tab2.col2 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 - + col1 * - 0 * tab0.col1 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL tab0.col1 - - col2 * ( + col2 ) * + col2 FROM tab0
----
36023
551459
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-2796
SELECT ALL col0 DIV col1 - ( - col2 * + 94 ) AS col2 FROM tab2
----
2445
2538
3576

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL col0 / col1 - ( - col2 * + 94 ) AS col2 FROM tab2
----
2445
2538
3576

query I rowsort
SELECT tab2.col2 * 2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883

onlyif mysql # use DIV operator for integer division
query I rowsort label-2798
SELECT + CAST( + col1 AS SIGNED ) * col0 + ( - col0 ) DIV col2 AS col0 FROM tab1 AS cor0
----
1040
639
78

skipif mysql # not compatible
query I rowsort label-2798
SELECT + CAST ( + col1 AS INTEGER ) * col0 + ( - col0 ) / col2 AS col0 FROM tab1 AS cor0
----
1040
639
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2799
SELECT + col2 DIV + col2 col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2799
SELECT + col2 / + col2 col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) * + col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - 68 + + col2 FROM tab0
----
-35
-67
14

query I rowsort
SELECT col0 - col2 AS col1 FROM tab2
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2803
SELECT - ( + col0 ) + + col0 * - CAST( + col0 + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-14160
-174
-7808

skipif mysql # not compatible
query I rowsort label-2803
SELECT - ( + col0 ) + + col0 * - CAST ( + col0 + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-14160
-174
-7808

query I rowsort
SELECT ALL + + col2 * col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + 66 FROM tab1 AS cor0
----
66

query I rowsort
SELECT 26 AS col2 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT + - 54 * col0 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT + col2 * cor0.col2 + 95 FROM tab1 AS cor0
----
3011
3344
9311

query I rowsort
SELECT + 21 FROM tab0, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

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 - cor1.col0 + - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5b9cceefef23d4ffdf9852fd8d61bb

query I rowsort
SELECT DISTINCT col2 + - 6 FROM tab2 AS cor0
----
20
21
32

query I rowsort
SELECT + col0 + + cor0.col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT 61 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT - tab2.col2 + CAST( col0 AS SIGNED ) * tab2.col1 col1 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2817
SELECT - tab2.col2 + CAST ( col0 AS INTEGER ) * tab2.col1 col1 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT - + col0 + col0 * 37 FROM tab0 AS cor0
----
1260
3204
864

query I rowsort
SELECT ALL col2 + col1 * ( col1 * - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-177471
-329314
-736927

query I rowsort
SELECT ALL + col2 + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + col0 * + ( - 64 ) FROM tab0 AS cor0
----
-1536
-2240
-5696

onlyif mysql # use DIV operator for integer division
query I rowsort label-2822
SELECT ALL col0 * + col2 + + cor0.col2 - + col1 DIV + ( + col2 ) AS col1 FROM tab1 AS cor0
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL col0 * + col2 + + cor0.col2 - + col1 / + ( + col2 ) AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - cor0.col2 + col0 * + col2 FROM tab0 AS cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 96 * - ( + col2 ) col2 FROM tab0 AS cor0
----
-131
-3192
-7961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2825
SELECT ALL - col0 * CAST( 72 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-504
-5616
-5688

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL - col0 * CAST ( 72 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-504
-5616
-5688

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( + 32 AS REAL ) AS col1 FROM tab2 AS cor0
----
224
2496
2528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 * cor0.col0 col2 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col1 * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT 38 * - 67 FROM tab0 AS cor0
----
-2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT ALL + + col2 * col1 + cor0.col0 DIV col2 AS col2 FROM tab1 cor0
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL + + col2 * col1 + cor0.col0 / col2 AS col2 FROM tab1 cor0
----
1248
1404
571

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a

query I rowsort
SELECT + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - 18 * + ( col2 ) * ( - col1 * col1 ) + - col2 FROM tab0 AS cor0
----
12222674
169361
4393191

query I rowsort
SELECT DISTINCT 8 * + 48 AS col2 FROM tab0 AS cor0
----
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 - + 33 col1 FROM tab2
----
-6
-7
5

query I rowsort
SELECT + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col0 * col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - - col0 + + col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2842
SELECT + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col1 * col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + col2 + col1 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2845
SELECT 77 DIV cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 3daf191600c64328f2c60722189235c6

skipif mysql # not compatible
query I rowsort label-2845
SELECT 77 / cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 3daf191600c64328f2c60722189235c6

query I rowsort
SELECT ALL + 73 FROM tab2
----
73
73
73

query I rowsort
SELECT DISTINCT 92 * col0 FROM tab1
----
276
5888
7360

query I rowsort
SELECT + 68 AS col2 FROM tab2 cor0
----
68
68
68

query I rowsort
SELECT col2 - col1 * col1 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT - 58 FROM tab2
----
-58
-58
-58

query I rowsort
SELECT + 18 * col0 - 13 FROM tab2
----
113
1391
1409

query I rowsort
SELECT - 32 FROM tab0
----
-32
-32
-32

query I rowsort
SELECT ALL col1 * + col1 - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT + + col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2855
SELECT DISTINCT col1 DIV + col2 AS col0 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2855
SELECT DISTINCT col1 / + col2 AS col0 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT ALL - + col0 * col0 + + 52 + + cor0.col0 * - col1 AS col2 FROM tab2 AS cor0
----
-10634
-214
-7532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + col0 col2 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 - + col1 col2 FROM tab1 AS cor0
----
26
39
42

query I rowsort
SELECT DISTINCT - 51 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL col1 * + col1 + + col0 * cor0.col0 FROM tab0 AS cor0
----
10634
16202
7972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2861
SELECT DISTINCT - + col0 + cor0.col0 * + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - + col0 + cor0.col0 * + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + ( col1 ) + + col0 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + col2 * col2 + + col0 * - 58 * col2 - + col2 * col2 * col1 FROM tab2
----
-156832
-197220
-32832

query I rowsort
SELECT 60 + col2 AS col1 FROM tab1
----
114
117
156

query I rowsort
SELECT ALL col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT cor0.col1 + - col1 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT ALL col1 DIV col0 + + col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL col1 / col0 + + col0 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT DISTINCT - + col1 * - col0 - - col1 * 27 AS col2 FROM tab0 cor0
----
10556
4386
6014

query I rowsort
SELECT + 44 - col0 AS col1 FROM tab2 AS cor0
----
-34
-35
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + 59 AS col1 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT - col1 * - col1 + + col0 AS col2 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT col2 * + col0 + - 1 FROM tab0 AS cor0
----
34
7297
791

query I rowsort
SELECT - - 65 AS col2 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT cor0.col2 + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + - col0 * col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 95 + + 10 FROM tab0 cor0
----
105
105
105

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 cor1, tab0, tab2 cor2
----
3645 values hashing to 61a671f1b5048e339ad9838f68ebbba4

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2880
SELECT - - 69 DIV cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
4
65
80

skipif mysql # not compatible
query I rowsort label-2880
SELECT - - 69 / cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
4
65
80

query I rowsort
SELECT ALL 49 FROM tab0 cor0
----
49
49
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2882
SELECT ALL + CAST( + 58 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-2882
SELECT ALL + CAST ( + 58 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT 4 FROM tab1, tab1 AS cor0
----
4

query I rowsort
SELECT 42 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT ALL 7 + + tab1.col1 AS col1 FROM tab1
----
17
20
33

query I rowsort
SELECT DISTINCT - col0 + + 15 AS col1 FROM tab2
----
-63
-64
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2887
SELECT ( + col1 ) * - col1 + CAST( NULL AS SIGNED ) * col2 / + col1 + 8 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2887
SELECT ( + col1 ) * - col1 + CAST ( NULL AS INTEGER ) * col2 / + col1 + 8 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT ALL - - col2 DIV col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - - col2 / col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 55 + 35 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT DISTINCT col1 - 2 * col0 FROM tab1 AS cor0
----
-118
-147
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2891
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - ( col0 * - col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - ( col0 * - col0 ) AS col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT col1 DIV tab0.col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2892
SELECT col1 / tab0.col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * 23 AS col2 FROM tab1 AS cor0
----
230
299
598

query I rowsort
SELECT DISTINCT + col2 + 26 FROM tab0
----
108
27
59

query I rowsort
SELECT - 25 + - col1 * col1 FROM tab2
----
-314
-3506
-986

query I rowsort
SELECT 6 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL 70 + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f2ad1dc45bbdb140214fb94e294a72e1

query I rowsort
SELECT ALL + col2 + + 51 AS col0 FROM tab1
----
105
108
147

query I rowsort
SELECT ( + ( col1 ) ) AS col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT + col1 DIV + col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2900
SELECT + col1 / + col0 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT - tab2.col0 * - col1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2902
SELECT ALL - tab2.col0 DIV - ( 91 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - tab2.col0 / - ( 91 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT - - 79 * col2 * + col1 + + 61 DIV + col1 - cor0.col0 AS col0 FROM tab2 AS cor0
----
121109
50958
66117

skipif mysql # not compatible
query I rowsort label-2903
SELECT - - 79 * col2 * + col1 + + 61 / + col1 - cor0.col0 AS col0 FROM tab2 AS cor0
----
121109
50958
66117

onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT - - col1 * cor0.col1 DIV + col1 col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2904
SELECT - - col1 * cor0.col1 / + col1 col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col0 + col0 + - col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 * + 54 FROM tab2
----
378
4212
4266

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 25 * + 87 col1 FROM tab0 AS cor0
----
187050
197925
210975

query I rowsort
SELECT col1 * - 32 AS col0 FROM tab1 AS cor0
----
-320
-416
-832

query I rowsort
SELECT DISTINCT + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT 37 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1406
-962
-999

query I rowsort
SELECT ALL - ( col2 ) + + col1 * ( cor0.col1 ) AS col0 FROM tab0 cor0
----
7363
8199
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT - 26 DIV col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT - 26 / col1 AS col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL 50 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT + 86 * ( col0 ) AS col2 FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT - 1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - 2 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + 48 + + col1 AS col2 FROM tab2 AS cor0
----
107
65
79

query I rowsort
SELECT ALL col2 * col1 FROM tab2 cor0
----
1534
646
837

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 <> ( col1 * col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + col0 - col1 AS col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL tab2.col1 * tab2.col0 FROM tab2 WHERE NOT ( + col0 ) IN ( col1 + + col2 )
----
1343
217
4602

query I rowsort
SELECT col2 * - col1 * + col2 AS col0 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT col0 * - tab2.col0 AS col1 FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT + col0 DIV tab2.col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2927
SELECT + col0 / tab2.col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - tab0.col1 * col1 - col2 * - col1 FROM tab0
----
-4558
-819
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-2929
SELECT col0 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT col0 / + col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT DISTINCT + col1 DIV - col0 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + col1 / - col0 FROM tab2
----
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2931
SELECT col2 DIV tab1.col1 + col1 AS col2 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-2931
SELECT col2 / tab1.col1 + col1 AS col2 FROM tab1
----
15
20
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT + col0 DIV col1 + col2 * + tab2.col2 FROM tab2
----
1448
677
729

skipif mysql # not compatible
query I rowsort label-2932
SELECT + col0 / col1 + col2 * + tab2.col2 FROM tab2
----
1448
677
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT ALL - col1 DIV + col0 AS col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL - col1 / + col0 AS col0 FROM tab1
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT DISTINCT - col0 DIV col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - col0 / col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT - + col2 * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL - col1 * - col1 AS col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT col1 * + col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col1 * + col1 * + col1 FROM tab0 AS cor0
----
636056
753571
912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-2940
SELECT DISTINCT - - col1 DIV - col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - - col1 / - col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - tab1.col2 col0 FROM tab1
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2943
SELECT ALL col2 DIV tab2.col1 col1 FROM tab2
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL col2 / tab2.col1 col1 FROM tab2
----
0
0
2

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 + col1 ) < ( + col0 + - col2 - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2945
SELECT - - cor0.col0 DIV col0 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2945
SELECT - - cor0.col0 / col0 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - cor0.col2 + - col2 FROM tab0 cor0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT col2 DIV - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2947
SELECT col2 / - col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 * col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + - cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2950
SELECT - 96 * col1 + 46 * + tab0.col1 DIV col1 AS col2 FROM tab0
----
-8210
-8690
-9266

skipif mysql # not compatible
query I rowsort label-2950
SELECT - 96 * col1 + 46 * + tab0.col1 / col1 AS col2 FROM tab0
----
-8210
-8690
-9266

query I rowsort
SELECT 71 AS col0 FROM tab1
----
71
71
71

query I rowsort
SELECT + 2 AS col0 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL + col0 * 92 FROM tab0 AS cor0
----
2208
3220
8188

query I rowsort
SELECT DISTINCT - cor0.col2 + ( col1 ) FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + 26 + cor0.col2 FROM tab2, tab0, tab2 AS cor0
----
52
53
64

query I rowsort
SELECT - 28 FROM tab1
----
-28
-28
-28

query I rowsort
SELECT ALL 19 * col0 AS col1 FROM tab2
----
133
1482
1501

query I rowsort
SELECT - col2 * - col1 * - col2 + + col0 FROM tab2
----
-22592
-24469
-39806

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ( col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 92 col1 FROM tab0 cor0
----
92
92
92

query I rowsort
SELECT col2 + + col2 AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT col2 + - tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 64 + col0 * ( tab1.col1 ) AS col0 FROM tab1
----
1104
142
704

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT col0 * col2 DIV - col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2965
SELECT col0 * col2 / - col2 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2966
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2966
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d

query I rowsort
SELECT + tab2.col0 + + 71 * col0 AS col2 FROM tab2
----
504
5616
5688

query I rowsort
SELECT ALL + col1 + - col0 * 5 AS col1 FROM tab0 AS cor0
----
-34
-354
-78

query I rowsort
SELECT - cor0.col0 + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col1 * cor0.col1 + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
1922
578
6962

query I rowsort
SELECT DISTINCT col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + + col0 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col0 * 66 FROM tab2 cor0
----
462
5148
5214

query I rowsort
SELECT - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

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 ALL + col2 * - tab2.col0 FROM tab2
----
-189
-2028
-3002

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col0 IN ( + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL tab0.col1 + col0 * col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col0 * tab2.col1 + - col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT ALL col1 * col2 AS col1 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT ALL col2 * col2 - - col2 DIV col0 FROM tab0
----
1
1090
6724

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL col2 * col2 - - col2 / col0 FROM tab0
----
1
1090
6724

query I rowsort
SELECT DISTINCT tab2.col1 * col0 AS col2 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2985
SELECT + col2 * - col1 DIV - col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2985
SELECT + col2 * - col1 / - col1 FROM tab1
----
54
57
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1 - - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2987
SELECT ALL + col2 + - col0 * col2 * - col1 + col2 DIV - col2 AS col1 FROM tab1
----
36536
4265
99935

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL + col2 + - col0 * col2 * - col1 + col2 / - col2 AS col1 FROM tab1
----
36536
4265
99935

query I rowsort
SELECT - tab2.col1 * col1 + + col0 * col1 AS col1 FROM tab2
----
-744
1054
1121

query I rowsort
SELECT DISTINCT col0 * - tab2.col0 AS col0 FROM tab2
----
-49
-6084
-6241

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 + col0 * col2 ) <> + col0 * col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = NULL
----

query I rowsort
SELECT ALL - col2 * col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col0 * + col2 * - col1 + tab0.col2 FROM tab0
----
-3394
-664036
-68079

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT col2 * col1 + col0 DIV + col1 col1 FROM tab2
----
1535
650
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2994
SELECT col2 * col1 + col0 / + col1 col1 FROM tab2
----
1535
650
837

query I rowsort
SELECT ALL col0 - tab0.col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL BETWEEN col2 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + col0 > + col2 + - col2 + col2 * + col0
----

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL col0 * col2 - - col0 FROM tab0
----
70
7387
816

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + - col0 NOT BETWEEN NULL AND + col2 * - col0 + - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT col2 DIV col2 - - col2 DIV col1 AS col0 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-3001
SELECT col2 / col2 - - col2 / col1 AS col0 FROM tab1
----
3
6
8

query I rowsort
SELECT tab0.col1 * col0 * - col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT + tab2.col1 * col0 * col1 + col0 * - tab2.col0 FROM tab2
----
16590
265434
6678

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT 76 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT ( + col0 ) + 47 AS col0 FROM tab2 AS cor0
----
125
126
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-3008
SELECT ALL - cor0.col2 DIV col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL - cor0.col2 / col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT - + cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL col2 * col2 + col2 FROM tab2
----
1482
702
756

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3013
SELECT DISTINCT + col2 * col0 + + tab1.col0 + - col2 DIV col0 FROM tab1
----
147
3712
7759

skipif mysql # not compatible
query I rowsort label-3013
SELECT DISTINCT + col2 * col0 + + tab1.col0 + - col2 / col0 FROM tab1
----
147
3712
7759

query I rowsort
SELECT DISTINCT tab1.col2 * col0 + col2 * + col0 + - col0 * col1 FROM tab1
----
14320
246
6656

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT tab1.col0 + col2 * col1 - col1 AS col0 FROM tab1
----
1315
1381
624

onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT col0 DIV col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3017
SELECT col0 / col2 FROM tab0
----
0
1
35

query I rowsort
SELECT ALL col0 + col0 + - tab2.col1 AS col0 FROM tab2
----
-17
141
97

query I rowsort
SELECT ALL col0 * + col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL - - cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + col0 * cor0.col0 * - 59 AS col2 FROM tab2 AS cor0
----
-2891
-358956
-368219

query I rowsort
SELECT DISTINCT + 87 + col1 * ( - 35 ) FROM tab2 cor0
----
-1978
-508
-998

query I rowsort
SELECT + + cor0.col2 * col2 + + col1 AS col1 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT - col0 - + col1 AS col2 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL col0 * - col2 - - col1 AS col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT ALL + col0 + - tab1.col2 AS col1 FROM tab1
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3028
SELECT DISTINCT - CAST( 73 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
-73

skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT - CAST ( 73 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
-73

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT DISTINCT + col2 DIV col1 col0 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT + col2 / col1 col0 FROM tab0 cor0
----
0

query I rowsort
SELECT col1 * cor0.col2 - - 44 AS col2 FROM tab1 AS cor0
----
1292
1448
614

query I rowsort
SELECT ALL + cor0.col2 + + col0 * cor0.col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT + col0 * + 74 AS col1 FROM tab1 cor0
----
222
4736
5920

query I rowsort
SELECT ALL - + col0 - - ( - col0 ) FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + - col2 * col2 - 72 FROM tab2 AS cor0
----
-1516
-748
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col2 * 95 AS col2 FROM tab1 AS cor0
----
-5130
-5415
-9120

query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT ALL + col0 * - ( + col2 * - col0 ) + - ( 32 ) DIV col0 AS col0 FROM tab1 AS cor0
----
233472
476
614400

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL + col0 * - ( + col2 * - col0 ) + - ( 32 ) / col0 AS col0 FROM tab1 AS cor0
----
233472
476
614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3040
SELECT ALL col0 - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL col0 - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - 88 + col2 FROM tab0 AS cor0
----
2145
3081
7914

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT ALL cor0.col1 DIV 41 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL cor0.col1 / 41 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 + - col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - col2 * - col1 - + 48 FROM tab0 AS cor0
----
2790
49
7414

onlyif mysql # use DIV operator for integer division
query I rowsort label-3045
SELECT DISTINCT - col2 * col0 DIV col1 + + col0 AS col0 FROM tab2 cor0
----
-97
1
44

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT - col2 * col0 / col1 + + col0 AS col0 FROM tab2 cor0
----
-97
1
44

query I rowsort
SELECT DISTINCT col1 * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3047
SELECT DISTINCT + col2 DIV - col1 + 44 * - col2 FROM tab1 AS cor0
----
-2378
-2513
-4231

skipif mysql # not compatible
query I rowsort label-3047
SELECT DISTINCT + col2 / - col1 + 44 * - col2 FROM tab1 AS cor0
----
-2378
-2513
-4231

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT 24 * - 32 FROM tab2 AS cor0
----
-768
-768
-768

query I rowsort
SELECT ALL - col2 + cor0.col2 * col0 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT col2 * + ( + col2 ) + + CAST( NULL AS SIGNED ) * - col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT col2 * + ( + col2 ) + + CAST ( NULL AS INTEGER ) * - col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3052
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + col1 * col0 FROM tab1 AS cor0
----
1027
52
630

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + col1 * col0 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + ( col0 ) col2 FROM tab0
----
-1065
-6635
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3054
SELECT col1 * + 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-3054
SELECT col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3055
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) + - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) + - col2 FROM tab2
----
NULL

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0

query I rowsort
SELECT - - col1 + + ( col2 ) * col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT col0 * + 20 * + 21 + col2 * - col0 FROM tab2
----
2751
30178
30732

query I rowsort
SELECT + + 90 * - col2 + + col2 * col2 FROM tab1 cor0
----
-1881
-1944
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT ALL - - col1 + + col1 DIV - 32 AS col2 FROM tab2 AS cor0
----
17
31
58

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - - col1 + + col1 / - 32 AS col2 FROM tab2 AS cor0
----
17
31
58

query I rowsort
SELECT ALL - + 97 FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT col2 + + col2 * ( - 29 ) FROM tab0 AS cor0
----
-2296
-28
-924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * col2 col0 FROM tab0 AS cor0
----
12
396
984

query I rowsort
SELECT DISTINCT + 51 + - col0 FROM tab2 AS cor0
----
-27
-28
44

query I rowsort
SELECT DISTINCT 23 FROM tab1, tab0 AS cor0
----
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-3066
SELECT + 3 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3066
SELECT + 3 / col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + tab0.col2 * col1 col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 55 + col1 * 33 FROM tab2
----
1892
506
968

query I rowsort
SELECT col2 * + col2 + - 52 AS col1 FROM tab1
----
2864
3197
9164

onlyif mysql # use DIV operator for integer division
query I rowsort label-3072
SELECT - col2 * tab2.col0 + col1 DIV + col0 AS col1 FROM tab2
----
-185
-2028
-3002

skipif mysql # not compatible
query I rowsort label-3072
SELECT - col2 * tab2.col0 + col1 / + col0 AS col1 FROM tab2
----
-185
-2028
-3002

query I rowsort
SELECT ALL - tab0.col2 * + col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + + col2 + + col2 AS col0 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT + + col1 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT 22 FROM tab2
----
22

query I rowsort
SELECT ALL - 67 * + col0 AS col1 FROM tab2
----
-469
-5226
-5293

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0, tab2 cor1
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 col1 FROM tab2, tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + ( 45 * - col0 ) col0 FROM tab2 AS cor0
----
-135090
-8505
-91260

query I rowsort
SELECT - col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 31 col1 FROM tab2
----
1829
527
961

query I rowsort
SELECT ALL col2 * 88 + + 51 AS col0 FROM tab0
----
139
2955
7267

query I rowsort
SELECT ALL - col1 + - 60 FROM tab0
----
-146
-151
-157

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3085
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 * - 67 FROM tab2 cor0
----
469
5226
5293

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab1
----
73

query I rowsort
SELECT - 60 * + col1 + tab1.col2 FROM tab1
----
-1506
-543
-684

query I rowsort
SELECT 13 FROM tab2
----
13
13
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3090
SELECT DISTINCT CAST( + 50 AS SIGNED ) * + col2 FROM tab1
----
2700
2850
4800

skipif mysql # not compatible
query I rowsort label-3090
SELECT DISTINCT CAST ( + 50 AS INTEGER ) * + col2 FROM tab1
----
2700
2850
4800

query I rowsort
SELECT tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + ( col0 + - col2 ) * + col0 FROM tab0
----
-216
1190
623

query I rowsort
SELECT 5 * tab2.col0 + col0 * - 97 FROM tab2
----
-644
-7176
-7268

query I rowsort
SELECT 14 AS col0 FROM tab2
----
14
14
14

query I rowsort
SELECT ALL - ( - tab0.col1 ) FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT + col0 + col0 DIV col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3096
SELECT + col0 + col0 / col0 FROM tab0
----
25
36
90

query I rowsort
SELECT ALL + 3 FROM tab1
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 1 + col0 * + col0 + col0 * + col1 col1 FROM tab0 AS cor0
----
16019
2639
4619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * 10 * col0 col1 FROM tab2 AS cor0
----
13447
2201
46079

query I rowsort
SELECT DISTINCT + 19 * + col2 FROM tab2 AS cor0
----
494
513
722

query I rowsort
SELECT col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - 41 AS col2 FROM tab0 cor0
----
-41
-41
-41

query I rowsort
SELECT - 95 FROM tab0
----
-95
-95
-95

query I rowsort
SELECT + 16 + col0 FROM tab0 AS cor0
----
105
40
51

query I rowsort
SELECT DISTINCT - - 74 FROM tab2 AS cor0
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT + col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3106
SELECT + col1 / + col1 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL cor0.col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT col0 + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + 73 + col2 * col1 AS col2 FROM tab0
----
170
2911
7535

query I rowsort
SELECT + col0 + 57 AS col0 FROM tab0
----
146
81
92

query I rowsort
SELECT + 88 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e

query I rowsort
SELECT - + ( - col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - - 92 + + col0 FROM tab1 AS cor0
----
156
172
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3115
SELECT DISTINCT - 31 * - col2 + + CAST( NULL AS SIGNED ) + + col2 col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3115
SELECT DISTINCT - 31 * - col2 + + CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT - col2 DIV cor0.col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3116
SELECT - col2 / cor0.col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 92 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT - 97 * + col1 + + ( - col0 ) FROM tab2 AS cor0
----
-1728
-3014
-5801

query I rowsort
SELECT 2 FROM tab2, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL tab1.col2 * col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + col0 + col2 * - col0 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3122
SELECT ALL CAST( - col1 + + col0 AS SIGNED ) FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-3122
SELECT ALL CAST ( - col1 + + col0 AS INTEGER ) FROM tab2
----
-24
19
62

query I rowsort
SELECT + cor0.col0 * + col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3124
SELECT - col2 DIV + col1 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-3124
SELECT - col2 / + col1 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + col2 * - 68 + + 45 * col0 AS col1 FROM tab0 AS cor0
----
-1164
-1571
1507

query I rowsort
SELECT - ( + col2 ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col0 * + col2 * col2 FROM tab0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3128
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL CAST ( NULL AS REAL ) FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + col0 + + 86 AS col2 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT - 48 * - col0 FROM tab0
----
1152
1680
4272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col0 FROM tab0
----
18
18
18

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT + 9 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3134
SELECT ALL col2 * - ( col1 ) * - col2 + - cor0.col0 * cor0.col1 * - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-108927
-118728
44118

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL col2 * - ( col1 ) * - col2 + - cor0.col0 * cor0.col1 * - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-108927
-118728
44118

query I rowsort
SELECT - 63 FROM tab1, tab1 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT DISTINCT + col2 * tab0.col0 + + col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + col2 AS col2 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3138
SELECT + col0 DIV ( + 88 ) AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3138
SELECT + col0 / ( + 88 ) AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 38 FROM tab1 cor0
----
38

query I rowsort
SELECT ALL - - col2 * + 52 AS col1 FROM tab0 cor0
----
1716
4264
52

query I rowsort
SELECT + - cor0.col2 + col0 AS col2 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3142
SELECT ALL + - col2 + ( col2 ) DIV ( col2 ) FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + - col2 + ( col2 ) / ( col2 ) FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT + ( col1 ) + + col0 * - ( col0 ) + + col2 AS col1 FROM tab0 AS cor0
----
-1127
-457
-7748

query I rowsort
SELECT ALL - col0 * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 98 + + col1 FROM tab2 AS cor0
----
-39
-67
-81

query I rowsort
SELECT ALL - 28 AS col1 FROM tab0 AS cor0
----
-28
-28
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3147
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3147
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT ( + col2 ) + - col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT 32 + col2 AS col1 FROM tab0 AS cor0
----
114
33
65

query I rowsort
SELECT ALL - col2 * - 24 AS col1 FROM tab2 AS cor0
----
624
648
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3151
SELECT ALL - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 46 * col0 + col0 - 23 AS col0 FROM tab1
----
29481
3568
47897

query I rowsort
SELECT ALL col0 + - col1 * col0 * col0 FROM tab0
----
-118790
-49512
-720722

onlyif mysql # use DIV operator for integer division
query I rowsort label-3154
SELECT DISTINCT + col1 * col2 + tab1.col2 * + col1 DIV ( col1 ) col0 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + col1 * col2 + tab1.col2 * + col1 / ( col1 ) col0 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL - col0 + + ( - col0 ) AS col2 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT 44 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT 75 + + 97 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 0d80a8b22673319a06ba355fa8643ea8

query I rowsort
SELECT + - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2, tab1 AS cor1
----
3645 values hashing to 5e27196f2932b25a5297ddec46b8b8f1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT cor0.col0 * + col1 + + col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT ALL + col0 * col2 * col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT ALL - col1 + + col1 * col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT 62 AS col0 FROM tab2 AS cor0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT DISTINCT + 51 DIV - col0 AS col2 FROM tab1 AS cor0
----
-17
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + 51 / - col0 AS col2 FROM tab1 AS cor0
----
-17
0

query I rowsort
SELECT DISTINCT - ( 75 ) * col0 AS col2 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT DISTINCT - 95 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT ALL + 52 AS col0 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT + + 4 + 22 * col2 AS col1 FROM tab0 AS cor0
----
1808
26
730

query I rowsort
SELECT DISTINCT + + col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + ( col0 ) * col1 + - col1 * col1 AS col2 FROM tab2 cor0
----
-1178
-1632
-8083

query I rowsort
SELECT DISTINCT col2 + cor0.col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - ( + col0 ) * col0 * 71 FROM tab2 AS cor0
----
-3479
-431964
-443111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3174
SELECT - CAST( - col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-3174
SELECT - CAST ( - col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - - cor0.col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL - col2 - - col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 + col1 * 31 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT DISTINCT col2 * col2 + + 88 FROM tab1
----
3004
3337
9304

query I rowsort
SELECT - - col2 * + ( + cor0.col2 ) * col0 - col0 * + cor0.col2 FROM tab2 AS cor0
----
111074
4914
50700

query I rowsort
SELECT DISTINCT - + col2 + + col1 * 36 FROM tab1 AS cor0
----
303
372
882

query I rowsort
SELECT - - col1 * + col1 - cor0.col2 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT DISTINCT - col2 - col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - + col1 * 90 AS col2 FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT DISTINCT 95 FROM tab2, tab2 AS cor0
----
95

query I rowsort
SELECT ALL + col0 + - 46 * - col2 FROM tab2 AS cor0
----
1249
1274
1827

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 * - 60 FROM tab2 AS cor0
----
11340
121680
180120

query I rowsort
SELECT DISTINCT + 93 * col0 FROM tab0
----
2232
3255
8277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3188
SELECT - CAST( col0 * - col2 AS SIGNED ) + col0 * tab0.col1 FROM tab0
----
15397
2856
3430

skipif mysql # not compatible
query I rowsort label-3188
SELECT - CAST ( col0 * - col2 AS INTEGER ) + col0 * tab0.col1 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT + 45 + col2 AS col2 FROM tab1
----
102
141
99

query I rowsort
SELECT DISTINCT - col0 * + 50 AS col1 FROM tab1
----
-150
-3200
-4000

query I rowsort
SELECT - + col1 + + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - 19 * cor0.col0 FROM tab1 AS cor0
----
-1216
-1520
-57

query I rowsort
SELECT ALL ( - col2 ) * + col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL - cor0.col0 * - 68 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to a71750b6e3f5e5e1a81ec8fdeb5c0ca1

query I rowsort
SELECT - ( - 31 ) AS col2 FROM tab0
----
31
31
31

query I rowsort
SELECT DISTINCT - ( - 89 ) * col0 AS col2 FROM tab2
----
623
6942
7031

query I rowsort
SELECT tab2.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT 92 * 30 * + col0 AS col0 FROM tab0
----
245640
66240
96600

query I rowsort
SELECT + 51 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT + tab0.col1 * col1 * - col2 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT cor0.col1 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + cor0.col2 + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT ALL - col1 + - col2 DIV 50 FROM tab0 AS cor0
----
-86
-92
-97

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - col1 + - col2 / 50 FROM tab0 AS cor0
----
-86
-92
-97

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT - col1 * col0 DIV col0 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3206
SELECT - col1 * col0 / col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT + - ( cor0.col1 ) * 14 FROM tab1 AS cor0
----
-140
-182
-364

onlyif mysql # use DIV operator for integer division
query I rowsort label-3208
SELECT DISTINCT + + col1 + + 93 DIV col1 col1 FROM tab0 AS cor0
----
87
92
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT + + col1 + + 93 / col1 col1 FROM tab0 AS cor0
----
87
92
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3209
SELECT - col2 + - CAST( + cor0.col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-3209
SELECT - col2 + - CAST ( + cor0.col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - ( + col2 ) col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + col0 + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 + col0 + + col0 * col0 FROM tab2 AS cor0
----
29
6136
6282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3213
SELECT ALL col1 * col2 + 66 * col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL col1 * col2 + 66 * 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 - + cor0.col1 col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL cor0.col1 + 74 FROM tab1 cor0
----
100
84
87

query I rowsort
SELECT DISTINCT col1 + - cor0.col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT DISTINCT + cor0.col1 + - 87 * - col2 AS col2 FROM tab0 AS cor0
----
184
2957
7225

query I rowsort
SELECT ALL col1 * + col1 + - col2 AS col1 FROM tab2 cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL cor0.col2 + + 64 AS col2 FROM tab1 cor0
----
118
121
160

query I rowsort
SELECT cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL - 83 + 44 AS col2 FROM tab2 cor0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 * + col1 col2 FROM tab1 AS cor0
----
350
455
910

query I rowsort
SELECT ALL + col2 * col0 + col1 * + 89 FROM tab0 AS cor0
----
15397
8446
8668

query I rowsort
SELECT DISTINCT - 27 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT + 98 + cor0.col2 AS col2 FROM tab0 AS cor0
----
131
180
99

query I rowsort
SELECT + 29 * col2 AS col1 FROM tab0 AS cor0
----
2378
29
957

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3228
SELECT - CAST( + col2 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3228
SELECT - CAST ( + col2 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - ( tab2.col2 ) AS col2 FROM tab2
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3230
SELECT CAST( NULL AS SIGNED ) * + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT CAST ( NULL AS INTEGER ) * + 66 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3231
SELECT + - CAST( NULL AS SIGNED ) + + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT + - CAST ( NULL AS INTEGER ) + + cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col1 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + 65 FROM tab1
----
65
65
65

query I rowsort
SELECT col0 * 83 FROM tab2 AS cor0
----
581
6474
6557

query I rowsort
SELECT - - col1 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + 72 FROM tab2, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT 93 * tab1.col2 FROM tab1
----
5022
5301
8928

query I rowsort
SELECT ALL + + 62 AS col0 FROM tab2 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT + - ( + cor0.col2 ) + + ( + 79 * col1 ) AS col1 FROM tab2 AS cor0
----
1305
2422
4635

query I rowsort
SELECT + col2 * + col1 + col2 * cor0.col1 FROM tab1 cor0
----
1140
2496
2808

query I rowsort
SELECT col2 - col0 * 56 AS col0 FROM tab1 AS cor0
----
-114
-3527
-4384

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 cor1
----
243 values hashing to 5c33e96b85afe1ea51bb6d4e9fa6f993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT 37 * col2 + - ( col0 ) AS col0 FROM tab2
----
1327
884
992

query I rowsort
SELECT + 43 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT col0 DIV col2 - cor0.col1 FROM tab0 cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-3247
SELECT col0 / col2 - cor0.col1 FROM tab0 cor0
----
-62
-86
-90

query I rowsort
SELECT + 48 + + col1 FROM tab1 AS cor0
----
58
61
74

query I rowsort
SELECT + 33 * + col2 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT - cor0.col1 + col2 AS col0 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL + cor0.col0 * 0 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

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 col0 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + col2 + + col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - col0 * + col2 * + col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT + col2 * col0 * + col0 AS col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT DISTINCT - 28 * col1 FROM tab1
----
-280
-364
-728

query I rowsort
SELECT 13 * - col2 FROM tab1
----
-1248
-702
-741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3259
SELECT DISTINCT - CAST( + 43 AS SIGNED ) FROM tab2, tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT - CAST ( + 43 AS INTEGER ) FROM tab2, tab1 AS cor0
----
-43

query I rowsort
SELECT ALL + col1 * + col0 * 19 FROM tab1
----
12160
1482
19760

query I rowsort
SELECT - 93 + - tab0.col2 * col0 FROM tab0
----
-128
-7391
-885

query I rowsort
SELECT + cor0.col2 + + ( - 10 ) * col1 FROM tab0 AS cor0
----
-827
-828
-969

query I rowsort
SELECT col2 + col0 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + tab1.col1 * 49 + col0 FROM tab1
----
1277
554
717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3265
SELECT - col0 * CAST( + col0 AS SIGNED ) * + tab1.col0 + - col0 AS col2 FROM tab1
----
-262208
-30
-512080

skipif mysql # not compatible
query I rowsort label-3265
SELECT - col0 * CAST ( + col0 AS INTEGER ) * + tab1.col0 + - col0 AS col2 FROM tab1
----
-262208
-30
-512080

query I rowsort
SELECT ALL col0 * 82 FROM tab1 cor0
----
246
5248
6560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3267
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

onlyif mysql # use DIV operator for integer division
query I rowsort label-3269
SELECT DISTINCT col2 DIV col2 + + col0 * col2 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT col2 / col2 + + col0 * col2 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 * + col0 * cor0.col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL + col0 - col1 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT + ( 28 ) + col1 FROM tab0 AS cor0
----
114
119
125

query I rowsort
SELECT + 41 * - tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 84d5486b2a480f7d919eea0dc8b9b553

query I rowsort
SELECT DISTINCT 97 FROM tab0
----
97

query I rowsort
SELECT ALL + col1 - ( + col2 + 87 ) FROM tab0
----
-34
-78
9

query I rowsort
SELECT col0 + tab1.col0 + - col1 AS col2 FROM tab1
----
-20
118
147

query I rowsort
SELECT - - 21 * + col0 FROM tab1 AS cor0
----
1344
1680
63

query I rowsort
SELECT + col2 - col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT 17 * + col2 + + col0 AS col1 FROM tab0 cor0
----
1483
52
585

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3281
SELECT col2 * col2 + + CAST( - 2 AS SIGNED ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
2917
3311
9294

skipif mysql # not compatible
query I rowsort label-3281
SELECT col2 * col2 + + CAST ( - 2 AS INTEGER ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
2917
3311
9294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 93 col1 FROM tab2 cor0
----
93

query I rowsort
SELECT - 78 + col0 FROM tab2 AS cor0
----
-71
0
1

query I rowsort
SELECT 14 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2078
3409
8113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + col1 col1 FROM tab0 AS cor0
----
103
108
114

query I rowsort
SELECT - tab1.col2 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ( + 87 ) AS col2 FROM tab0
----
87
87
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3288
SELECT col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3288
SELECT col0 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT ALL - + 38 + col1 FROM tab1 AS cor0
----
-12
-25
-28

query I rowsort
SELECT ALL + - col1 + + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + 36 + + col1 FROM tab2 cor0
----
53
67
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT cor1.col1 DIV + 78 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-3292
SELECT cor1.col1 / + 78 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - cor0.col2 - - col1 * col1 FROM tab0 cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT + - ( col0 ) FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + cor0.col2 col0 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT DISTINCT + col0 + col1 DIV ( 34 ) AS col2 FROM tab2 cor0
----
7
79

skipif mysql # not compatible
query I rowsort label-3296
SELECT DISTINCT + col0 + col1 / ( 34 ) AS col2 FROM tab2 cor0
----
7
79

query I rowsort
SELECT ALL col1 + col1 * 41 FROM tab1
----
1092
420
546

query I rowsort
SELECT DISTINCT - tab1.col1 + - col0 + col2 FROM tab1
----
-17
25
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3299
SELECT DISTINCT col0 DIV - col1 + - 93 AS col2 FROM tab1
----
-93
-99

skipif mysql # not compatible
query I rowsort label-3299
SELECT DISTINCT col0 / - col1 + - 93 AS col2 FROM tab1
----
-93
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT ALL - ( + col1 ) + 61 DIV + col1 AS col0 FROM tab1 AS cor0
----
-24
-4
-9

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL - ( + col1 ) + 61 / + col1 AS col0 FROM tab1 AS cor0
----
-24
-4
-9

query I rowsort
SELECT col0 + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + + col1 * col1 - + 10 AS col0 FROM tab2 AS cor0
----
279
3471
951

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

query I rowsort
SELECT + + cor0.col1 * + col1 - - ( col0 ) FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT - cor0.col2 - + col2 * - col0 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 2 * col1 - + cor0.col2 col0 FROM tab1 AS cor0
----
-106
-122
-77

query I rowsort
SELECT ALL tab2.col0 + col0 * 41 FROM tab2
----
294
3276
3318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3308
SELECT ALL col0 * + col2 + CAST( NULL AS DECIMAL ) * tab2.col1 * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL col0 * + col2 + CAST ( NULL AS REAL ) * tab2.col1 * - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 64 + 69 col1 FROM tab2 AS cor0
----
1157
2053
3845

query I rowsort
SELECT DISTINCT - col1 * 5 AS col0 FROM tab2 AS cor0
----
-155
-295
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT - col2 * - 48 * col1 + cor0.col0 * CAST( col0 * col0 AS SIGNED ) FROM tab0 AS cor0
----
1063145
150048
47531

skipif mysql # not compatible
query I rowsort label-3311
SELECT - col2 * - 48 * col1 + cor0.col0 * CAST ( col0 * col0 AS INTEGER ) FROM tab0 AS cor0
----
1063145
150048
47531

query I rowsort
SELECT ALL - cor0.col1 + + 89 FROM tab2 AS cor0
----
30
58
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3313
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) + + ( - col2 + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3313
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) + + ( - col2 + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * - 21 AS col2 FROM tab0 cor0
----
-1722
-21
-693

query I rowsort
SELECT + + cor0.col1 + + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT col0 + + col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT ( col1 ) * + col2 * col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT + - col1 - + 91 AS col2 FROM tab1 AS cor0
----
-101
-104
-117

onlyif mysql # use DIV operator for integer division
query I rowsort label-3320
SELECT DISTINCT - - col2 DIV - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - - col2 / - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-81

query I rowsort
SELECT - 1 + + 34 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 - col1 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + 40 AS col2 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT - ( - col1 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + - 37 * col2 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT DISTINCT + + ( + 97 ) * - col2 AS col1 FROM tab1 AS cor0
----
-5238
-5529
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT ALL + 12 + + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
14
17
19

skipif mysql # not compatible
query I rowsort label-3329
SELECT ALL + 12 + + col2 / col1 AS col2 FROM tab1 AS cor0
----
14
17
19

query I rowsort
SELECT cor0.col0 * - col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT - + col2 * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 58 * col1 col1 FROM tab1 AS cor0
----
39208
5800
9802

query I rowsort
SELECT DISTINCT 6 + 96 FROM tab1 AS cor0
----
102

query I rowsort
SELECT ALL - ( col1 ) + - col2 * col1 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT ALL + col2 + col1 + col2 FROM tab2 cor0
----
111
85
93

query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT col2 * 42 * + 30 - col1 FROM tab1
----
120947
68014
71810

query I rowsort
SELECT - col0 - ( - tab0.col2 ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT col2 * tab0.col0 AS col1 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3340
SELECT ALL - tab1.col0 DIV - tab1.col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL - tab1.col0 / - tab1.col0 FROM tab1
----
1
1
1

query I rowsort
SELECT 47 * cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 08462efec61ad7595c77d42eb47b8c2e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3342
SELECT DISTINCT + CAST( + 76 AS SIGNED ) FROM tab2, tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT + CAST ( + 76 AS INTEGER ) FROM tab2, tab1 cor0
----
76

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col2 AS REAL ) FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - col0 - + col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT - - cor1.col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3346
SELECT + CAST( NULL AS SIGNED ) * + cor0.col0 * col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col0 * col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 42 * + col2 AS col0 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col0 * + 39 FROM tab1 cor0
----
117
2496
3120

query I rowsort
SELECT DISTINCT - col1 * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col0 * col1 + + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + - col1 + - col0 * 94 FROM tab2 AS cor0
----
-689
-7391
-7443

query I rowsort
SELECT + col0 * 19 FROM tab2 AS cor0
----
133
1482
1501

query I rowsort
SELECT ALL col0 * 3 * 18 AS col2 FROM tab0 AS cor0
----
1296
1890
4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3355
SELECT DISTINCT col2 DIV col0 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3355
SELECT DISTINCT col2 / col0 AS col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT col1 + + ( - 35 ) AS col1 FROM tab1 AS cor0
----
-22
-25
-9

query I rowsort
SELECT ALL col0 * ( 11 ) + + col0 + + col2 * col2 FROM tab0 cor0
----
1377
421
7792

query I rowsort
SELECT - cor0.col1 * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col2 + col1 + + col0 * + cor0.col1 FROM tab1 AS cor0
----
1149
158
707

query I rowsort
SELECT ALL 59 * - col2 * col1 AS col1 FROM tab0
----
-167442
-440258
-5723

query I rowsort
SELECT DISTINCT - ( - col0 ) * + 79 FROM tab0
----
1896
2765
7031

query I rowsort
SELECT - col1 * col0 + col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT - col1 * + 64 + col2 * col2 AS col0 FROM tab2
----
-1255
-3100
356

onlyif mysql # use DIV operator for integer division
query I rowsort label-3364
SELECT tab0.col1 DIV col1 + - col2 AS col0 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-3364
SELECT tab0.col1 / col1 + - col2 AS col0 FROM tab0
----
-32
-81
0

query I rowsort
SELECT + col2 * + 93 * col2 AS col0 FROM tab1 AS cor0
----
271188
302157
857088

query I rowsort
SELECT + col2 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col1 FROM tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col1 col2 FROM tab0 cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - ( - 3 ) col1 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT DISTINCT + col0 * - ( + col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

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 col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1 cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT + - cor0.col0 + - col0 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-3375
SELECT + - cor0.col0 + - col0 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
-24
-70
-90

query I rowsort
SELECT ALL + + col0 * col1 AS col1 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 79 * + col2 col1 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT 48 * col2 FROM tab0
----
1584
3936
48

query I rowsort
SELECT + 19 AS col2 FROM tab0
----
19
19
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3381
SELECT - tab0.col2 + col1 * + CAST( - tab0.col1 AS SIGNED ) * col2 FROM tab0
----
-244101
-679124
-9410

skipif mysql # not compatible
query I rowsort label-3381
SELECT - tab0.col2 + col1 * + CAST ( - tab0.col1 AS INTEGER ) * col2 FROM tab0
----
-244101
-679124
-9410

query I rowsort
SELECT col0 * tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 * col2 col2 FROM tab0
----
1148
14
462

query I rowsort
SELECT DISTINCT - + col2 + col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + 67 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT ALL col1 + col2 * 84 FROM tab1 AS cor0
----
4562
4798
8077

query I rowsort
SELECT ALL + - col1 + cor0.col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - - col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT 67 * + col2 AS col0 FROM tab1
----
3618
3819
6432

query I rowsort
SELECT + 73 * - col1 - + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-160
-494
299

query I rowsort
SELECT - 60 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT - col1 - + col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + col0 + - col1 * col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
119888
32554
75819

query I rowsort
SELECT ALL + + 33 + col0 * col2 + col1 FROM tab1 AS cor0
----
221
3691
7726

query I rowsort
SELECT + + col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT col2 + + col1 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL - col0 + tab0.col1 * - col0 AS col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL + - col2 + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - - col1 * col2 + - cor0.col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + tab2.col1 AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + - col0 * - col0 AS col1 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + - 37 + + col1 FROM tab1 AS cor0
----
-11
-24
-27

query I rowsort
SELECT DISTINCT 3 * + col1 + + col1 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT + 27 AS col0 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT - - col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL col2 - + col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + ( - col1 ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT 52 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT + col1 * + 54 AS col2 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + col0 - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + + col2 * col0 + - cor0.col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL - col1 + - col2 FROM tab2
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3417
SELECT - - col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3417
SELECT - - col0 / col0 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col0 + col1 * col1 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-3419
SELECT - cor0.col2 DIV + cor0.col2 + - col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-3419
SELECT - cor0.col2 / + cor0.col2 + - col1 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT + + cor0.col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL ( - col1 + col2 ) FROM tab2
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3422
SELECT - ( + col1 ) DIV - col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3422
SELECT - ( + col1 ) / - col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + 49 + col0 FROM tab1
----
113
129
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 21 col1 FROM tab1
----
1134
1197
2016

query I rowsort
SELECT ALL 58 + - col1 AS col1 FROM tab2
----
-1
27
41

query I rowsort
SELECT ALL - 15 + 27 FROM tab0
----
12
12
12

query I rowsort
SELECT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab0 AS cor0
----
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3429
SELECT - CAST( - 69 AS SIGNED ) + - col2 DIV ( col2 * col2 + + ( + ( col0 ) ) ) AS col2 FROM tab2 cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-3429
SELECT - CAST ( - 69 AS INTEGER ) + - col2 / ( col2 * col2 + + ( + ( col0 ) ) ) AS col2 FROM tab2 cor0
----
69
69
69

query I rowsort
SELECT ALL - cor0.col2 + + col1 - - col2 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 54 AS col1 FROM tab2 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col0 * col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 + - col2 AS col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT tab2.col1 AS col1 FROM tab2, tab1 cor0
----
17
31
59

query I rowsort
SELECT 97 FROM tab2, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL 91 * col2 + col1 FROM tab1
----
4940
5197
8749

query I rowsort
SELECT + tab1.col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL tab2.col2 * - col2 + col1 FROM tab2
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + - col1 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL 59 + + 72 AS col0 FROM tab2
----
131
131
131

query I rowsort
SELECT + tab2.col2 * - cor0.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to dc69da44d5a43e91816c3670493ea5ac

query I rowsort
SELECT 49 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT ALL + 45 FROM tab0
----
45
45
45

query I rowsort
SELECT DISTINCT - 53 * col2 FROM tab0
----
-1749
-4346
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT ALL col1 DIV - col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL col1 / - col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT cor0.col2 * ( - 49 ) AS col1 FROM tab2, tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT col1 + + col0 * + ( tab0.col1 ) FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - tab2.col0 + col0 * col1 AS col0 FROM tab2
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT col2 DIV - col0 + col1 FROM tab0 cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-3450
SELECT col2 / - col0 + col1 FROM tab0 cor0
----
85
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT + col0 + + 34 DIV - col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-3451
SELECT + col0 + + 34 / - col0 FROM tab2 AS cor0
----
3
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3452
SELECT ALL + col0 - CAST( 71 AS SIGNED ) FROM tab0
----
-36
-47
18

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + col0 - CAST ( 71 AS INTEGER ) FROM tab0
----
-36
-47
18

query I rowsort
SELECT col0 + ( - col2 ) + - tab0.col1 AS col1 FROM tab0
----
-63
-84
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT + col2 DIV col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3454
SELECT + col2 / col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3455
SELECT DISTINCT col2 * + CAST( - 77 AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
-112
-2565
-6403

skipif mysql # not compatible
query I rowsort label-3455
SELECT DISTINCT col2 * + CAST ( - 77 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
-112
-2565
-6403

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-3457
SELECT ALL + col2 + - CAST( - col2 AS SIGNED ) DIV col0 + ( - col0 ) FROM tab2 AS cor0
----
-41
-52
23

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL + col2 + - CAST ( - col2 AS INTEGER ) / col0 + ( - col0 ) FROM tab2 AS cor0
----
-41
-52
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + 60 col1 FROM tab1 AS cor0
----
-34
-47
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + col2 * col0 + 25 col2 FROM tab0 AS cor0
----
15422
2881
3455

onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT + - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-3460
SELECT + - col0 / + col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT ALL 3 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT tab0.col1 * col1 + col1 FROM tab0
----
7482
8372
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3463
SELECT - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 + + col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3465
SELECT DISTINCT + col2 DIV - 19 + + col2 + + col0 AS col2 FROM tab1 AS cor0
----
118
171
55

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + col2 / - 19 + + col2 + + col0 AS col2 FROM tab1 AS cor0
----
118
171
55

query I rowsort
SELECT ALL - 19 FROM tab2, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT ALL col1 + + ( - 34 * + col2 ) AS col0 FROM tab0 AS cor0
----
-1036
-2697
63

query I rowsort
SELECT ALL - 75 FROM tab0, tab0 cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT - col0 * 50 + + 41 * col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-2354
-2808
784

query I rowsort
SELECT DISTINCT - 78 * + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
6708
7098
7566

query I rowsort
SELECT - - 43 * + cor0.col0 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
490
5382
6399

query I rowsort
SELECT 29 + col0 * - col1 - - col1 AS col1 FROM tab2 AS cor0
----
-1297
-157
-4514

query I rowsort
SELECT ALL + col0 + + 86 AS col0 FROM tab2 cor0
----
164
165
93

query I rowsort
SELECT + 64 * - col1 + col1 FROM tab0 cor0
----
-5418
-5733
-6111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col1 FROM tab2 AS cor0
----
-27

query I rowsort
SELECT ALL + + col2 * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + ( col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col0 - + col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + 42 FROM tab2 AS cor0
----
42
42
42

query I rowsort
SELECT ALL - ( + 60 ) + col2 AS col0 FROM tab0 AS cor0
----
-27
-59
22

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col1 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - + col2 * 36 * + col0 AS col1 FROM tab2 AS cor0
----
-108072
-6804
-73008

query I rowsort
SELECT - tab2.col1 + ( col2 ) * col1 AS col0 FROM tab2
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3484
SELECT ALL - col1 * 78 + - col1 + - CAST( + cor0.col1 + cor0.col0 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
2666
5141
9191

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - col1 * 78 + - col1 + - CAST ( + cor0.col1 + cor0.col0 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
2666
5141
9191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 43 col0 FROM tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT cor0.col0 + ( - col1 ) FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3487
SELECT + + CAST( NULL AS SIGNED ) + - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3487
SELECT + + CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 28 + - col1 FROM tab0 cor0
----
-114
-119
-125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3489
SELECT DISTINCT cor0.col0 * - col2 + CAST( 9 * + col2 AS SIGNED ) + ( - col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1071
-1251
-14481

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT cor0.col0 * - col2 + CAST ( 9 * + col2 AS INTEGER ) + ( - col0 ) * col0 AS col0 FROM tab0 AS cor0
----
-1071
-1251
-14481

query I rowsort
SELECT ALL + - col2 * + col0 + + col2 * - cor0.col2 FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT + + 88 + + col2 FROM tab2 AS cor0
----
114
115
126

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3492
SELECT ALL + col1 * + cor0.col1 + + CAST( col0 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
3748
7849
838

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + col1 * + cor0.col1 + + CAST ( col0 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
3748
7849
838

onlyif mysql # use DIV operator for integer division
query I rowsort label-3493
SELECT DISTINCT + - 19 + col0 DIV col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT + - 19 + col0 / col1 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT + - col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + - col2 * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col0 * + col1 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - 60 * + col0 AS col2 FROM tab1
----
-180
-3840
-4800

query I rowsort
SELECT + 66 FROM tab1
----
66
66
66

query I rowsort
SELECT ALL - cor0.col1 * + col1 - - col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT - col2 * + col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3502
SELECT ALL col0 DIV - col2 + col0 * + 86 AS col2 FROM tab1 AS cor0
----
258
5503
6880

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL col0 / - col2 + col0 * + 86 AS col2 FROM tab1 AS cor0
----
258
5503
6880

onlyif mysql # use DIV operator for integer division
query I rowsort label-3503
SELECT + ( col0 ) * + 18 + - col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
1158
1446
54

skipif mysql # not compatible
query I rowsort label-3503
SELECT + ( col0 ) * + 18 + - col0 / - col1 AS col1 FROM tab1 AS cor0
----
1158
1446
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - + 29 * col1 AS col2 FROM tab2 AS cor0
----
-1711
-493
-899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3506
SELECT DISTINCT + + col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT + + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT - - col0 * - col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + cor0.col2 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - col2 * - 22 FROM tab2 cor0
----
572
594
836

query I rowsort
SELECT ALL + + cor0.col1 + + 80 FROM tab0 AS cor0
----
166
171
177

query I rowsort
SELECT DISTINCT - col0 * - col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - col0 * col2 * 3 AS col2 FROM tab0
----
-105
-21894
-2376

query I rowsort
SELECT ( col2 ) * + 70 * col2 FROM tab2
----
101080
47320
51030

query I rowsort
SELECT 53 AS col1 FROM tab0
----
53
53
53

query I rowsort
SELECT + 50 AS col2 FROM tab0 AS cor0
----
50
50
50

query I rowsort
SELECT ALL col2 * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + 35 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT - col1 + ( col1 * col2 ) + - 34 AS col2 FROM tab1 AS cor0
----
1201
1344
526

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + col1 * ( 32 ) + col2 * + col2 + - 17 * col2 AS col1 FROM tab1 AS cor0
----
2600
2830
8000

query I rowsort
SELECT + + col0 * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT col1 - - 49 AS col2 FROM tab2 AS cor0
----
108
66
80

query I rowsort
SELECT ALL + cor0.col0 * - 13 + - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1402
-1443
-2288

query I rowsort
SELECT DISTINCT - - col1 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3527
SELECT DISTINCT + - ( + 33 ) * col1 + CAST( - cor0.col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1054
-2006
-578

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + - ( + 33 ) * col1 + CAST ( - cor0.col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1054
-2006
-578

query I rowsort
SELECT ALL + 37 AS col1 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-3529
SELECT - ( ( col2 ) ) - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-3529
SELECT - ( ( col2 ) ) - col0 / col0 AS col2 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT col2 + - col2 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col2 * col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT - 5 DIV + col0 - - col0 * - 87 FROM tab1 AS cor0
----
-262
-5568
-6960

skipif mysql # not compatible
query I rowsort label-3533
SELECT - 5 / + col0 - - col0 * - 87 FROM tab1 AS cor0
----
-262
-5568
-6960

query I rowsort
SELECT ALL col2 * col2 + cor0.col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT DISTINCT + col1 * - tab0.col0 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + tab2.col2 + + col0 * - col0 * col1 AS col0 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT + - 42 FROM tab0 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col0 * - CAST ( cor1.col1 AS REAL ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9dd217b6385bf38f78d8b6e6b7864578

query I rowsort
SELECT + 27 + + col2 AS col1 FROM tab0
----
109
28
60

query I rowsort
SELECT 4 * col0 AS col1 FROM tab2
----
28
312
316

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0, tab2 AS cor1
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL 90 + 88 * + col2 AS col2 FROM tab2
----
2378
2466
3434

query I rowsort
SELECT cor0.col1 * + col2 * - ( 25 ) + - col1 * + col2 FROM tab0 cor0
----
-194012
-2522
-73788

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3546
SELECT DISTINCT 64 * + col1 - - CAST( - col1 AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
-1638
2666
6111

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT 64 * + col1 - - CAST ( - col1 AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
-1638
2666
6111

query I rowsort
SELECT ALL - col2 * col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL - - col2 * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col1 - col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3553
SELECT col2 + col2 * CAST( NULL AS DECIMAL ) * - col1 + - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT col2 + col2 * CAST ( NULL AS REAL ) * - col1 + - col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT ALL - 10 DIV + 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL - 10 / + 93 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 97 FROM tab2, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ( 39 * col0 ) FROM tab2
----
273
3042
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3557
SELECT ALL ( col2 ) + + col2 * + ( col0 ) DIV + col0 AS col1 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-3557
SELECT ALL ( col2 ) + + col2 * + ( col0 ) / + col0 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL - ( 93 ) AS col0 FROM tab2
----
-93
-93
-93

query I rowsort
SELECT ALL + 5 FROM tab2
----
5
5
5

query I rowsort
SELECT ALL col0 * + col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL 50 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL + 28 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col2 * + 86 col0 FROM tab2 AS cor0
----
2314
2329
3347

query I rowsort
SELECT col1 * col2 * + col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL 31 AS col1 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 0bb6d1445d82a11417f7bb2ec248ca9c

query I rowsort
SELECT - 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT + 85 AS col0 FROM tab1, tab1 AS cor0, tab0, tab2 cor1
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb

onlyif mysql # use DIV operator for integer division
query I rowsort label-3568
SELECT DISTINCT + col2 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT + col2 / cor0.col2 AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL + - col2 * col1 * col0 + + cor0.col2 + + cor0.col0 * col1 FROM tab1 AS cor0
----
-35783
-4080
-98704

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col1 * col0 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - - col0 * - 99 FROM tab1 cor0
----
-297
-6336
-7920

query I rowsort
SELECT - 80 * 15 AS col2 FROM tab1 AS cor0
----
-1200
-1200
-1200

query I rowsort
SELECT - + 29 AS col0 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT 23 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT 91 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT col1 * + ( + tab0.col1 ) FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - 36 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
-370
-481
-962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 13 + 46 * col1 col1 FROM tab0 AS cor0
----
3969
4199
4475

query I rowsort
SELECT - + 40 + - 98 FROM tab2 AS cor0
----
-138
-138
-138

query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col2 * ( col2 ) + cor0.col0 + + 18 AS col2 FROM tab0 AS cor0
----
1131
54
6831

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3583
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3584
SELECT ALL col0 - col2 DIV col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL col0 - col2 / col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + - col0 * ( - 39 ) - col2 AS col2 FROM tab0 AS cor0
----
1364
3389
903

query I rowsort
SELECT col2 * col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + col0 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + - col2 * 78 + - col2 AS col0 FROM tab1 AS cor0
----
-4266
-4503
-7584

query I rowsort
SELECT ALL col2 * - 81 * col2 + col2 FROM tab2 AS cor0
----
-116926
-54730
-59022

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 85 col2 FROM tab0 AS cor0
----
-4
50
61

query I rowsort
SELECT + - cor0.col1 AS col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - - col2 * ( - col2 ) - - cor0.col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL - col2 * + col2 * col0 FROM tab2 cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 + col0 * col2 col2 FROM tab1 AS cor0
----
168
3654
7686

query I rowsort
SELECT col2 * col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - cor0.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL + 59 AS col0 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT ALL + 56 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT 24 FROM tab2, tab2 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 - - cor0.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 14d5564270ff6545a23d1e15904ed7c9

query I rowsort
SELECT + 61 - col2 AS col1 FROM tab1 AS cor0
----
-35
4
7

query I rowsort
SELECT ALL cor0.col1 * + col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + - ( + cor0.col1 ) - - col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3606
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) / col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT - - CAST ( NULL AS REAL ) / col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 - col2 AS col0 FROM tab0
----
53
9
96

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b

query I rowsort
SELECT + + 18 AS col0 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT col1 + + cor0.col0 + + col0 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT ALL + - col2 + col2 * ( 0 ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + + 90 * - col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3614
SELECT - + 10 * - col1 * CAST( + col0 * + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1060970
15190
3589560

skipif mysql # not compatible
query I rowsort label-3614
SELECT - + 10 * - col1 * CAST ( + col0 * + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1060970
15190
3589560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3615
SELECT DISTINCT - + 25 + col2 * CAST( 36 + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
10225
1955
46

skipif mysql # not compatible
query I rowsort label-3615
SELECT DISTINCT - + 25 + col2 * CAST ( 36 + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
10225
1955
46

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT - 19 AS col2 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT col2 * + 28 FROM tab2
----
1064
728
756

query I rowsort
SELECT DISTINCT - 7 + - cor0.col0 * + 19 AS col0 FROM tab0 AS cor0
----
-1698
-463
-672

query I rowsort
SELECT + col1 * - 23 AS col2 FROM tab1 AS cor0
----
-230
-299
-598

query I rowsort
SELECT ALL + ( col0 * + 22 ) AS col2 FROM tab1
----
1408
1760
66

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col1 FROM tab1
----
128
160
6

query I rowsort
SELECT + - 86 * col2 FROM tab2 AS cor0
----
-2236
-2322
-3268

query I rowsort
SELECT - col0 - col0 AS col2 FROM tab1
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 col1 FROM tab1, tab2, tab1 AS cor0
----
19

query I rowsort
SELECT col2 + - col0 * - ( + col0 ) AS col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT ( - ( - cor0.col0 ) + ( 97 ) ) FROM tab2, tab2 AS cor0
----
104
175
176

query I rowsort
SELECT + col2 * - ( + 83 ) AS col0 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT DISTINCT - cor0.col0 * ( col2 ) * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3631
SELECT DISTINCT - col2 + ( - col0 ) DIV + col1 FROM tab1 cor0
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT - col2 + ( - col0 ) / + col1 FROM tab1 cor0
----
-102
-54
-63

query I rowsort
SELECT DISTINCT - 85 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - tab2.col0 AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT col0 * - col0 + + col0 * col2 * col0 AS col2 FROM tab2
----
1274
152100
230917

query I rowsort
SELECT tab2.col2 + tab2.col0 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 8a206af99264e378e55b667df888459e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * 93 * 24 col1 FROM tab2
----
58032
60264
84816

query I rowsort
SELECT DISTINCT - tab2.col0 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-7
-78
-79

query I rowsort
SELECT ALL - col2 + 64 * + col2 * col0 FROM tab0 AS cor0
----
2239
466990
50655

onlyif mysql # use DIV operator for integer division
query I rowsort label-3640
SELECT ALL col0 DIV CAST( 73 AS SIGNED ) FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL col0 / CAST ( 73 AS INTEGER ) FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col0 + 4 FROM tab0
----
28
39
93

query I rowsort
SELECT + ( 50 ) + + col1 + ( + ( tab1.col2 ) + col2 ) FROM tab1
----
174
184
255

onlyif mysql # use DIV operator for integer division
query I rowsort label-3645
SELECT ALL 31 DIV ( - col0 ) + ( col2 ) FROM tab1
----
44
57
96

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL 31 / ( - col0 ) + ( col2 ) FROM tab1
----
44
57
96

query I rowsort
SELECT - col1 * + ( cor0.col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col2 ) + col1 * + ( - col2 ) * col2 col2 FROM tab0 cor0
----
-611966
-93687
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT DISTINCT - 82 DIV col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
16
20
58

skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT - 82 / col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
16
20
58

query I rowsort
SELECT col0 + col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT - - col0 * 86 - cor0.col0 * - ( col0 + + col0 ) FROM tab1 AS cor0
----
13696
19680
276

query I rowsort
SELECT DISTINCT - + 34 + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2062
-223
-3036

query I rowsort
SELECT - tab0.col0 * + cor0.col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 094ec191d4a978f7a19a3ae6fc2135d6

query I rowsort
SELECT ALL 14 * + col1 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT ALL + ( col1 ) * ( + 32 ) FROM tab1 cor0
----
320
416
832

query I rowsort
SELECT + col0 * col2 + + 78 AS col1 FROM tab2 AS cor0
----
2106
267
3080

query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT DISTINCT 75 DIV - col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-3657
SELECT DISTINCT 75 / - col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT ALL - cor0.col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 39 + + col1 AS col1 FROM tab1
----
49
52
65

query I rowsort
SELECT DISTINCT + - 29 FROM tab0 AS cor0
----
-29

query I rowsort
SELECT DISTINCT + cor0.col1 + + col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + col1 * col1 + - col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL 34 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
1146
2877
69

query I rowsort
SELECT DISTINCT - col1 + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3665
SELECT - + col1 + - col2 * + CAST( + 77 * col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2792
-562037
-61070

skipif mysql # not compatible
query I rowsort label-3665
SELECT - + col1 + - col2 * + CAST ( + 77 * col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2792
-562037
-61070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col2 FROM tab1 AS cor0
----
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3667
SELECT - + col0 + - col2 + CAST( NULL AS SIGNED ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3667
SELECT - + col0 + - col2 + CAST ( NULL AS INTEGER ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + 71 * col0 FROM tab1 AS cor0
----
213
4544
5680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3670
SELECT - col0 + col1 * CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
36
673
89

skipif mysql # not compatible
query I rowsort label-3670
SELECT - col0 + col1 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT + 82 * col1 FROM tab1 AS cor0
----
1066
2132
820

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT ALL ( cor0.col1 ) + + col2 DIV 68 FROM tab1 AS cor0
----
10
14
26

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL ( cor0.col1 ) + + col2 / 68 FROM tab1 AS cor0
----
10
14
26

query I rowsort
SELECT - - 33 * + col2 FROM tab0 AS cor0
----
1089
2706
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3674
SELECT tab2.col1 + 67 * 99 + + col2 DIV ( + col0 ) FROM tab2
----
6650
6667
6692

skipif mysql # not compatible
query I rowsort label-3674
SELECT tab2.col1 + 67 * 99 + + col2 / ( + col0 ) FROM tab2
----
6650
6667
6692

query I rowsort
SELECT DISTINCT col1 + - col2 * - col2 AS col1 FROM tab2
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3676
SELECT - col0 * col0 DIV + col0 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-3676
SELECT - col0 * col0 / + col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT col2 * - 71 AS col2 FROM tab0
----
-2343
-5822
-71

query I rowsort
SELECT col1 * - col2 + + col2 * - col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT DISTINCT - + col0 * - ( + col0 ) + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT col0 * + cor0.col1 - - ( col0 ) AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col2 + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3682
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 85 FROM tab0, tab0 AS cor0
----
85

query I rowsort
SELECT DISTINCT cor0.col0 * - 59 FROM tab0 AS cor0
----
-1416
-2065
-5251

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3685
SELECT + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3685
SELECT + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 + cor0.col2 * + col0 * + col2 FROM tab0 AS cor0
----
26169
36
598518

onlyif mysql # use DIV operator for integer division
query I rowsort label-3687
SELECT + - col0 DIV - col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3687
SELECT + - col0 / - col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + 30 + col1 AS col2 FROM tab0 AS cor0
----
116
121
127

query I rowsort
SELECT - 70 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT ALL col0 DIV tab1.col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3690
SELECT ALL col0 / tab1.col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab2, tab1 AS cor0
----
98

query I rowsort
SELECT + 83 FROM tab1
----
83
83
83

query I rowsort
SELECT ALL - 5 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT 28 * col2 + col0 AS col2 FROM tab0 cor0
----
2385
63
948

query I rowsort
SELECT ALL - + ( - cor0.col0 ) + col2 * 37 AS col1 FROM tab1 cor0
----
2001
2173
3632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + - col2 col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ( col2 ) + col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT - + 52 - col2 AS col1 FROM tab0 AS cor0
----
-134
-53
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT col1 DIV ( + cor0.col1 + col1 ) AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3699
SELECT col1 / ( + cor0.col1 + col1 ) AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3700
SELECT + 10 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3700
SELECT + 10 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3701
SELECT 99 DIV - cor0.col0 FROM tab0 cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-3701
SELECT 99 / - cor0.col0 FROM tab0 cor0
----
-1
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 col2 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 + - 67 col2 FROM tab1 AS cor0
----
-58
4029
6333

query I rowsort
SELECT DISTINCT - col1 + + col2 * + cor0.col2 AS col1 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT - 79 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-79

query I rowsort
SELECT ALL + 50 * col2 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-33800
-36450
-72200

query I rowsort
SELECT + - ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + + 67 AS col1 FROM tab2 AS cor0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT 61 * col0 * ( - ( - col2 ) ) FROM tab0 AS cor0
----
2135
445178
48312

query I rowsort
SELECT + + 82 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT ALL col0 * col2 + col1 AS col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL + 46 + + col2 AS col1 FROM tab0 AS cor0
----
128
47
79

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - + ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT DISTINCT - col2 + + col2 DIV 73 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT - col2 + + col2 / 73 FROM tab0 AS cor0
----
-1
-33
-81

query I rowsort
SELECT 40 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT DISTINCT + + col1 DIV - col2 + + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT + + col1 / - col2 + + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - col1 + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 63 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3722
SELECT ALL + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col1 * 10 AS col2 FROM tab2 AS cor0
----
2890
34810
9610

query I rowsort
SELECT ALL - ( cor0.col2 ) AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL 83 FROM tab1
----
83
83
83

query I rowsort
SELECT + 59 AS col1 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3727
SELECT DISTINCT col0 DIV - 83 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT col0 / - 83 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col2 * + 90 AS col0 FROM tab2 AS cor0
----
2340
2430
3420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 + col0 col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT 92 * cor1.col1 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1a13594c46aa306834d8b373549e25bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + col2 * col1 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT + col1 DIV + cor0.col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3735
SELECT + col1 / + cor0.col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) AS col0 FROM tab2, tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - cor0.col2 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - 87 AS col2 FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT ALL + ( 65 ) * + col0 * col2 AS col0 FROM tab0
----
2275
474370
51480

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + col2 col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - - ( - col2 ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - col2 * 18 FROM tab0 AS cor0
----
-1476
-18
-594

query I rowsort
SELECT ALL - 73 * + col0 * col1 - 63 * + 11 AS col0 FROM tab0 cor0
----
-151365
-248528
-591920

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3748
SELECT DISTINCT + 76 DIV - col2 FROM tab0 AS cor0
----
-2
-76
0

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT + 76 / - col2 FROM tab0 AS cor0
----
-2
-76
0

query I rowsort
SELECT col0 * - ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - 23 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - ( cor0.col0 ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL + cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - + 12 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL + - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + ( + col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3759
SELECT DISTINCT + + col0 * + col2 + CAST( - col1 + + col2 AS SIGNED ) * ( 18 * + col1 ) FROM tab1 AS cor0
----
12108
13266
27102

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + + col0 * + col2 + CAST ( - col1 + + col2 AS INTEGER ) * ( 18 * + col1 ) FROM tab1 AS cor0
----
12108
13266
27102

query I rowsort
SELECT col2 + ( + col2 ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT 74 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3762
SELECT + col1 * - col2 + cor0.col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-3762
SELECT + col1 * - col2 + cor0.col2 / + col1 AS col2 FROM tab1 AS cor0
----
-1241
-1402
-565

onlyif mysql # use DIV operator for integer division
query I rowsort label-3763
SELECT DISTINCT + col0 DIV col2 + col0 FROM tab1
----
3
65
80

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT + col0 / col2 + col0 FROM tab1
----
3
65
80

query I rowsort
SELECT col2 + col1 * + col1 AS col2 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT col2 + col2 * - 51 AS col0 FROM tab2 AS cor0
----
-1300
-1350
-1900

query I rowsort
SELECT ALL - - col0 * 17 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT ALL - col2 + 6 * col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT ALL cor0.col0 * col2 * col2 + + 98 * 74 * cor0.col2 FROM tab0 AS cor0
----
1193100
265452
7287

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + col1 col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col2 FROM tab0, tab0 AS cor0
----
47

query I rowsort
SELECT + cor0.col1 * + 75 + col2 * col0 AS col2 FROM tab0 AS cor0
----
14123
7242
7310

query I rowsort
SELECT ALL - col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3773
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3773
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 14 ) FROM tab2 AS cor0
----
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3775
SELECT ALL CAST( 36 AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
118
37
69

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL CAST ( 36 AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
118
37
69

query I rowsort
SELECT DISTINCT + col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + col2 + - col0 * col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - - 52 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7448
8333
9461

query I rowsort
SELECT + 82 * col0 + col1 AS col2 FROM tab1 AS cor0
----
272
5258
6573

query I rowsort
SELECT DISTINCT + col0 * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - 35 FROM tab0, tab2 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT + tab1.col0 + + col1 AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + col2 + - col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT - col0 * 53 AS col0 FROM tab0
----
-1272
-1855
-4717

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT CAST( NULL AS DECIMAL ) * - tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3785
SELECT CAST ( NULL AS REAL ) * - tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT DISTINCT 88 * ( + col0 ) FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT ALL - 15 + 77 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT ALL - - 25 * - col2 AS col2 FROM tab0 AS cor0
----
-2050
-25
-825

query I rowsort
SELECT col0 * + 52 * col0 AS col1 FROM tab1 AS cor0
----
212992
332800
468

query I rowsort
SELECT DISTINCT + col0 + col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT + col2 + - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3795
SELECT DISTINCT + col0 + - CAST( NULL AS SIGNED ) * col0 * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT + col0 + - CAST ( NULL AS INTEGER ) * col0 * col2 FROM tab0
----
NULL

query I rowsort
SELECT ( - col2 ) AS col1 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 - cor0.col1 * + 79 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ceffdf53050c5c7d13bea41262447c79

query I rowsort
SELECT - col0 + col1 * ( + 96 ) FROM tab2 AS cor0
----
1553
2969
5586

query I rowsort
SELECT DISTINCT col2 * - 48 FROM tab0
----
-1584
-3936
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT + 82 * - 16 FROM tab1
----
-1312

query I rowsort
SELECT 61 AS col1 FROM tab0
----
61
61
61

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab1 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - ( 26 ) AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

query I rowsort
SELECT DISTINCT + col1 - - col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ( + col1 ) + - 14 - + ( + col1 ) AS col0 FROM tab0
----
-14
-14
-14

query I rowsort
SELECT col1 - col0 * - col2 FROM tab1
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * col1 col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT cor0.col0 * ( - col2 ) * + col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT cor0.col2 * - ( 85 ) FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT ALL - col1 + + col2 + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
2
37
70

query I rowsort
SELECT + col0 + - 27 FROM tab0 AS cor0
----
-3
62
8

query I rowsort
SELECT ALL - - cor0.col0 * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col2 - col0 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT - tab2.col0 - - col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT col1 * col2 + - col0 - 15 FROM tab0
----
2799
47
7358

query I rowsort
SELECT DISTINCT tab0.col2 - col1 * - col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - col0 + col2 - ( - col0 ) * + col2 AS col0 FROM tab1
----
213
3641
7696

query I rowsort
SELECT 26 + - tab0.col1 FROM tab0
----
-60
-65
-71

query I rowsort
SELECT DISTINCT col2 * + col0 + + 48 * col0 FROM tab1
----
11520
306
6720

query I rowsort
SELECT ALL - + col2 + + col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - col1 + ( - col0 ) * col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL + col1 + col0 * + 49 FROM tab2 AS cor0
----
374
3881
3888

onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT DISTINCT + col2 DIV 84 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3825
SELECT DISTINCT + col2 / 84 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col1 + ( col2 * col1 ) FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - col2 * + col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3828
SELECT + col2 + + CAST( NULL AS SIGNED ) - - col2 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT + col2 + + CAST ( NULL AS INTEGER ) - - col2 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3829
SELECT DISTINCT col1 DIV + col1 col0 FROM tab1 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT col1 / + col1 col0 FROM tab1 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 * - col1 * col1 col2 FROM tab2 cor0
----
10999
25978
90565

query I rowsort
SELECT col1 * - col0 + + col1 - - col2 * col0 * - col0 AS col0 FROM tab1 AS cor0
----
-234102
-538
-615427

query I rowsort
SELECT ALL - - col1 * col0 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3833
SELECT col1 + - CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT col1 + - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 33 AS col0 FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * - cor0.col2 * 77 col0 FROM tab2 AS cor0
----
-150150
-155925
-219450

query I rowsort
SELECT cor0.col2 + + col1 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + + 27 AS col2 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab0
----
28

query I rowsort
SELECT ( col1 ) AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT - 24 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT ALL col1 + - tab1.col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab0, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - ( - col0 * tab2.col1 ) FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT + tab1.col0 DIV col2 + - col1 AS col1 FROM tab1
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-3844
SELECT + tab1.col0 / col2 + - col1 AS col1 FROM tab1
----
-13
-26
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3845
SELECT col1 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3845
SELECT col1 / col0 AS col0 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col2 * col1 + - col0 FROM tab1
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3848
SELECT - col2 * col0 + + tab1.col0 * + col1 DIV - ( col2 * col2 ) AS col1 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3848
SELECT - col2 * col0 + + tab1.col0 * + col1 / - ( col2 * col2 ) AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col0 + + ( 68 ) FROM tab2
----
146
147
75

query I rowsort
SELECT col2 * + tab2.col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT col2 * + col0 * col1 AS col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT + col2 * - 68 + col0 * cor0.col0 FROM tab2 cor0
----
-1787
3657
4316

query I rowsort
SELECT - col2 + col1 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT tab1.col2 * 77 FROM tab1
----
4158
4389
7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + 53 * ( + col1 ) + col2 - 23 * + col1 FROM tab1 cor0
----
357
486
834

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3857
SELECT - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 21 ) FROM tab2 AS cor0
----
-21
-21
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * - col0 + col1 col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 12 * 26 FROM tab0 AS cor0
----
312
312
312

query I rowsort
SELECT ALL + col1 + - col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + 42 * col0 * col0 AS col1 FROM tab2 cor0
----
2058
255528
262122

query I rowsort
SELECT ALL - - 37 AS col2 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT + 69 FROM tab2
----
69
69
69

query I rowsort
SELECT + 78 AS col1 FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT - 64 + col1 FROM tab1 AS cor0
----
-38
-51
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT DISTINCT ( + 27 ) * + col0 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT ( + 27 ) * + col0 + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 5 + - col0 * col0 - col2 FROM tab1 cor0
----
-4148
-58
-6491

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3869
SELECT + CAST( - ( - col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3869
SELECT + CAST ( - ( - col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL ( col1 ) AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL 33 + + 89 AS col2 FROM tab2
----
122
122
122

query I rowsort
SELECT 63 FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL 14 FROM tab1
----
14
14
14

query I rowsort
SELECT + 46 AS col1 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT - ( - cor0.col1 ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + ( 50 ) - col0 FROM tab0
----
-39
15
26

query I rowsort
SELECT ALL col1 + col1 * + col0 AS col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT ALL col1 + 3 AS col1 FROM tab0
----
100
89
94

query I rowsort
SELECT - - 10 * + col2 AS col2 FROM tab1 AS cor0
----
540
570
960

query I rowsort
SELECT - col2 + col2 * - col0 * + col2 FROM tab1 cor0
----
-207993
-737376
-8802

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) + - col1 * col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + col0 * + col1 + col2 * - col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT DISTINCT - 95 FROM tab2 AS cor0
----
-95

query I rowsort
SELECT + ( + col1 ) * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3886
SELECT ALL - 48 + + col1 DIV - col2 FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - 48 + + col1 / - col2 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col0 * col0 * + col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL col2 + col2 * cor0.col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - - col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 * - col2 - + 86 * col0 AS col1 FROM tab0 AS cor0
----
-14378
-3011
-3153

query I rowsort
SELECT - + col2 * + col1 - + ( + cor0.col0 ) FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3893
SELECT col1 * + CAST( col2 * col0 AS SIGNED ) AS col2 FROM tab2
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-3893
SELECT col1 * + CAST ( col2 * col0 AS INTEGER ) AS col2 FROM tab2
----
119652
51034
5859

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 82e15d5967b272804e574774895a0222

query I rowsort
SELECT ALL + col2 - col0 * col0 FROM tab1
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + col2 - + ( + cor0.col1 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - col2 * - col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col1 - + 53 * cor0.col1 FROM tab0 cor0
----
-4472
-4732
-5044

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 72 * 0 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT cor0.col1 * - col2 + - 28 FROM tab1 cor0
----
-1276
-1432
-598

query I rowsort
SELECT - col2 * - ( col1 ) + - col1 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-3903
SELECT ALL - 29 DIV + 59 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3903
SELECT ALL - 29 / + 59 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 93 + col0 AS col1 FROM tab1 AS cor0
----
157
173
96

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
-10
-13
-26

query I rowsort
SELECT - 46 FROM tab0, tab2 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL + col0 * col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + - col1 + - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT col0 * ( 42 ) AS col2 FROM tab0 AS cor0
----
1008
1470
3738

query I rowsort
SELECT ALL + + cor0.col0 + - col0 * col1 * + col0 AS col0 FROM tab0 cor0
----
-118790
-49512
-720722

query I rowsort
SELECT DISTINCT col1 * + cor0.col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ( col0 ) * - 47 AS col1 FROM tab0
----
-1128
-1645
-4183

query I rowsort
SELECT + 44 AS col0 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL - tab1.col2 + + 71 * ( cor0.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 34702ed989eb640337bdc8f59a49cb18

query I rowsort
SELECT 29 - + 27 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col1 * 93 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT DISTINCT - col1 * + 15 FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT DISTINCT - - col2 + + 95 * + col1 FROM tab2 cor0
----
1653
2972
5631

query I rowsort
SELECT + col1 * 2 * - 12 AS col1 FROM tab0 AS cor0
----
-2064
-2184
-2328

query I rowsort
SELECT ALL col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col0 * 66 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT ALL - col2 + col0 + col1 FROM tab2
----
11
111
58

query I rowsort
SELECT ALL + col2 + - col0 AS col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT col2 + 18 AS col0 FROM tab1
----
114
72
75

query I rowsort
SELECT DISTINCT - col2 * - tab1.col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 * + col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT + col1 * ( - 76 ) FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT + - col2 * - col1 + - col0 AS col2 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT - + col1 * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col1 + ( col1 ) * col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + 76 + - 23 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL - - col0 + ( col0 ) AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( cor0.col2 ) + + col2 * 63 col0 FROM tab2 AS cor0
----
2538
3040
3172

query I rowsort
SELECT ALL - + col1 * - col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + col1 * - col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL col2 * - col1 + col0 + col2 AS col1 FROM tab1 AS cor0
----
-1072
-1347
-449

query I rowsort
SELECT DISTINCT col2 - - col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab1, tab0 AS cor1
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT ALL 71 * col2 FROM tab2
----
1846
1917
2698

query I rowsort
SELECT - col0 + col0 * col0 - + col0 AS col2 FROM tab2 AS cor0
----
35
5928
6083

onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT - col1 + col0 DIV col2 FROM tab0 AS cor0
----
-62
-86
-90

skipif mysql # not compatible
query I rowsort label-3944
SELECT - col1 + col0 / col2 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT 13 + cor0.col0 - + col1 FROM tab1 AS cor0
----
-10
67
80

query I rowsort
SELECT + col0 + - 64 + + col2 * + 27 AS col0 FROM tab2 AS cor0
----
1041
672
716

query I rowsort
SELECT DISTINCT - + 18 + col2 FROM tab0 AS cor0
----
-17
15
64

query I rowsort
SELECT DISTINCT 18 + col0 * ( col2 ) FROM tab1
----
180
3666
7698

query I rowsort
SELECT ALL - col2 + + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT tab2.col2 + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - col1 + col0 * - ( - col0 * col0 ) FROM tab1
----
262191
512083
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3952
SELECT ALL + CAST( NULL AS SIGNED ) * + 87 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + CAST ( NULL AS INTEGER ) * + 87 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab2.col2 col2 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT col1 + col2 DIV col1 + col0 col0 FROM tab2 AS cor0
----
137
38
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3954
SELECT col1 + col2 / col1 + col0 col0 FROM tab2 AS cor0
----
137
38
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3955
SELECT ALL + 79 DIV col1 AS col2 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + 79 / col1 AS col2 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT DISTINCT + col1 * - col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT DISTINCT - cor0.col2 + col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - 32 + col1 AS col0 FROM tab1 AS cor0
----
-19
-22
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3960
SELECT DISTINCT + cor0.col2 DIV col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT + cor0.col2 / col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT 12 * - col0 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT ALL 20 * - tab1.col2 + - 56 AS col0 FROM tab1
----
-1136
-1196
-1976

query I rowsort
SELECT - - col1 + col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT 13 * + col0 AS col2 FROM tab1
----
1040
39
832

query I rowsort
SELECT - tab0.col0 * - tab0.col0 AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT col1 * col0 - 40 AS col1 FROM tab1 cor0
----
1000
38
600

query I rowsort
SELECT ALL col1 + - col2 FROM tab2 cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT ALL - - cor0.col1 DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - - cor0.col1 / col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col0 * + col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - col2 * - col2 + 7 AS col2 FROM tab1 AS cor0
----
2923
3256
9223

onlyif mysql # use DIV operator for integer division
query I rowsort label-3971
SELECT + cor0.col2 DIV col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-3971
SELECT + cor0.col2 / col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - - col1 + - col0 * + col1 * col0 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT DISTINCT - col2 + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + col2 + - ( col1 + - cor0.col2 * cor0.col2 ) FROM tab1 AS cor0
----
2944
3296
9299

query I rowsort
SELECT ALL - cor0.col0 * col0 * col1 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - + cor0.col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT ( col2 ) + - col2 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3978
SELECT + cor0.col1 + + col2 DIV col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-3978
SELECT + cor0.col1 + + col2 / col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 * + cor0.col0 col2 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT + ( + ( cor0.col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + + col2 + 49 FROM tab1 AS cor0
----
103
106
145

query I rowsort
SELECT - ( - col1 ) * + col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT DISTINCT + - col0 DIV 12 + - col2 FROM tab0 AS cor0
----
-3
-35
-89

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT + - col0 / 12 + - col2 FROM tab0 AS cor0
----
-3
-35
-89

query I rowsort
SELECT ALL + 94 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT ALL + 34 + - col0 * cor0.col2 - + 18 FROM tab0 AS cor0
----
-19
-7282
-776

query I rowsort
SELECT cor0.col0 * col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col0 - + ( col2 * - col2 ) FROM tab1
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT ALL + - 89 * col2 + cor0.col0 FROM tab0 AS cor0
----
-2913
-54
-7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-3993
SELECT ALL - + cor0.col1 + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL - + cor0.col1 + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-15
-20
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
92

query I rowsort
SELECT 22 FROM tab0, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - 19 + col2 * + col2 AS col2 FROM tab1
----
2897
3230
9197

query I rowsort
SELECT - 2 AS col0 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT 52 + tab2.col1 FROM tab2
----
111
69
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT DISTINCT col0 * col1 DIV tab1.col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3999
SELECT DISTINCT col0 * col1 / tab1.col1 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4000
SELECT + cor0.col2 * + col2 + CAST( NULL AS DECIMAL ) * - 94 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT + cor0.col2 * + col2 + CAST ( NULL AS REAL ) * - 94 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * cor0.col1 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
177537
329316
737091

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 30 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT 50 FROM tab2, tab2 AS cor0
----
50

query I rowsort
SELECT - 35 * + 76 AS col1 FROM tab2 AS cor0
----
-2660
-2660
-2660

query I rowsort
SELECT - - 35 FROM tab0 AS cor0
----
35
35
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4007
SELECT + CAST( + cor0.col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4007
SELECT + CAST ( + cor0.col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4008
SELECT DISTINCT + col0 * + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4008
SELECT DISTINCT + col0 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL 1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + 35 FROM tab2
----
35
35
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4011
SELECT + tab0.col2 DIV 52 + + col0 col2 FROM tab0
----
24
35
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4011
SELECT + tab0.col2 / 52 + + col0 col2 FROM tab0
----
24
35
90

query I rowsort
SELECT 44 AS col0 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4014
SELECT ALL CAST( - 93 AS SIGNED ) FROM tab0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL CAST ( - 93 AS INTEGER ) FROM tab0
----
-93
-93
-93

query I rowsort
SELECT - + cor0.col2 AS col1 FROM tab0 cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 69 col1 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT DISTINCT - tab1.col1 * - col1 + 37 FROM tab1
----
137
206
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col2 + col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + col0 + - col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4021
SELECT ALL + - col0 DIV - ( col0 ) FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL + - col0 / - ( col0 ) FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - col1 * + ( col0 ) - + col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4023
SELECT col2 * CAST( NULL AS SIGNED ) + - col0 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT col2 * CAST ( NULL AS INTEGER ) + - col0 * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col0 col2 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4025
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL col1 + - 47 * + col0 * cor0.col1 FROM tab1 AS cor0
----
-30070
-3640
-48867

onlyif mysql # use DIV operator for integer division
query I rowsort label-4028
SELECT DISTINCT + tab1.col1 DIV tab1.col1 col0 FROM tab1, tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + tab1.col1 / tab1.col1 col0 FROM tab1, tab1 AS cor0
----
1

query I rowsort
SELECT - col2 * + ( + col2 ) + - col1 * + col2 * col1 AS col2 FROM tab0 AS cor0
----
-245157
-685766
-9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT DISTINCT col0 DIV - col0 - - col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT col0 / - col0 - - col0 FROM tab2 AS cor0
----
6
77
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4031
SELECT - col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT - col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 89 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-4033
SELECT col0 DIV 71 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4033
SELECT col0 / 71 FROM tab1
----
0
0
1

query I rowsort
SELECT + col2 * - col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col1 + col0 * + col2 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4037
SELECT col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4037
SELECT col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 46 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT DISTINCT - 30 - tab1.col1 FROM tab1, tab0 AS cor0
----
-40
-43
-56

query I rowsort
SELECT DISTINCT col0 + col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - - 48 AS col2 FROM tab1, tab1 cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT + col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - tab0.col2 * + col1 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT 32 AS col0 FROM tab1
----
32
32
32

query I rowsort
SELECT + 3 AS col2 FROM tab1
----
3
3
3

query I rowsort
SELECT - col0 + col1 * col0 * 73 AS col0 FROM tab1 AS cor0
----
46656
5691
75840

query I rowsort
SELECT + ( col2 ) * - col2 + + col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT ALL + + 49 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT - + ( + col1 ) FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - 62 * col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

query I rowsort
SELECT + + col1 * + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + 59 FROM tab2
----
59

query I rowsort
SELECT - 30 FROM tab0 AS cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + - col0 + col1 * - 49 FROM tab0 AS cor0
----
-4238
-4548
-4788

query I rowsort
SELECT + cor0.col2 + ( col2 ) - cor0.col0 AS col1 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT ALL + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT col0 DIV 67 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4058
SELECT col0 / 67 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT - col0 - + col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL - cor0.col0 + - col0 + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1286
520
715

query I rowsort
SELECT + - cor0.col0 * - col2 + col0 * col2 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT ALL - - cor0.col1 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT col2 - - col0 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 col0 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + col0 + col1 col1 FROM tab0 AS cor0
----
-682
-7118
97

query I rowsort
SELECT DISTINCT - col1 - col1 AS col0 FROM tab1
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4068
SELECT DISTINCT + cor0.col0 DIV - tab0.col1 FROM tab0, tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT + cor0.col0 / - tab0.col1 FROM tab0, tab2 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT DISTINCT col1 * col0 DIV col1 - - col1 col2 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT col1 * col0 / col1 - - col1 col2 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 + - col2 col0 FROM tab2
----
-4
35
92

query I rowsort
SELECT tab0.col2 * + col2 AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4074
SELECT - - col1 - + col0 DIV col0 AS col1 FROM tab2 cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4074
SELECT - - col1 - + col0 / col0 AS col1 FROM tab2 cor0
----
16
30
58

query I rowsort
SELECT DISTINCT - - col1 + col0 + + col0 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
-1093
-18898
-649342

query I rowsort
SELECT DISTINCT col0 * cor0.col2 + + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT + col2 * - col1 + + col1 - col0 DIV - col1 FROM tab2
----
-1474
-625
-806

skipif mysql # not compatible
query I rowsort label-4077
SELECT + col2 * - col1 + + col1 - col0 / - col1 FROM tab2
----
-1474
-625
-806

query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab1 cor0 CROSS JOIN tab0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT ALL col1 DIV + col1 + + col1 col0 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL col1 / + col1 + + col1 col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL + col1 * col1 * col2 + col1 * col2 AS col0 FROM tab2 AS cor0
----
11628
26784
92040

query I rowsort
SELECT col1 + - col2 * col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT tab0.col1 * + col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL + col1 + + col0 * - col1 FROM tab0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col1 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT col1 + - col0 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT col0 + + col1 * tab2.col2 FROM tab2
----
1612
725
844

query I rowsort
SELECT col2 * col2 + col2 + - col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - col1 * - col0 * - col0 AS col1 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT - col0 * - col0 AS col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - tab2.col1 * - tab2.col0 AS col1 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col0 col2 FROM tab0
----
110
132
180

query I rowsort
SELECT col1 * col2 * + tab2.col2 + + tab2.col2 AS col0 FROM tab2
----
22626
24586
39910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - tab0.col0 * + col1 col2 FROM tab0
----
-118825
-49536
-720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 + - col2 col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL col2 + + tab0.col2 FROM tab0
----
164
2
66

query I rowsort
SELECT col2 - col0 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT tab0.col1 * col2 + - col2 + + col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + col2 * + col2 + col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT DISTINCT col1 + col1 - + col0 FROM tab0
----
148
159
93

query I rowsort
SELECT DISTINCT - col0 - col1 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col1 * col2 * + col2 - - col0 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT col2 * col0 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 + col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT col2 + + tab1.col1 AS col0 FROM tab1 WHERE NOT + col0 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col0 FROM tab0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT ALL - col0 + + col2 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT - col2 + - col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT col2 * - col2 AS col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT col1 + - tab1.col2 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col0 + col2 * col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL + col2 - col1 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - col0 + + tab1.col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + tab2.col2 * + col0 AS col2 FROM tab2
----
189
2028
3002

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 col0 FROM tab1 WHERE + col2 / col0 >= ( NULL )
----

query I rowsort
SELECT DISTINCT cor0.col1 + 22 FROM tab2, tab1 AS cor0
----
32
35
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-4118
SELECT ALL 58 + + col0 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL 58 + + col0 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) * - col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - col2 + - col2 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT 98 - col1 FROM tab1 AS cor0
----
72
85
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4122
SELECT - tab2.col1 * - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT - tab2.col1 * - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col1 * col1 AS col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT + 33 * col2 AS col0 FROM tab1 AS cor0
----
1782
1881
3168

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col1 + col2 - - col2 * + col0 AS col1 FROM tab2 AS cor0
----
185
1995
3023

query I rowsort
SELECT DISTINCT + - 7 AS col1 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT + - col1 - col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4130
SELECT col2 DIV col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4130
SELECT col2 / col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 * col1 * + col2 FROM tab1 AS cor0
----
36480
4212
99840

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT - col0 + + tab2.col1 FROM tab2
----
-19
-62
24

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( + col0 * col2 * - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT ALL + col2 DIV + col1 - - col0 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL + col2 / + col1 - - col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4140
SELECT cor0.col2 DIV + col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4140
SELECT cor0.col2 / + col1 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4141
SELECT ALL col0 DIV - col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL col0 / - col1 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE - col0 * col1 < NULL
----

query I rowsort
SELECT col0 + + col0 * - col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col2 + tab1.col1 FROM tab1 WHERE NOT + col0 / col0 > col0 + - col1 * col1
----

query I rowsort
SELECT - tab2.col2 - - col1 * + col0 FROM tab2
----
1305
190
4576

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 * + col1 + col2 * col1 + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + tab1.col0 + + col1 AS col0 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT + col1 + + col2 DIV col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-4148
SELECT + col1 + + col2 / col1 FROM tab2
----
19
31
59

query I rowsort
SELECT DISTINCT col1 - col1 AS col0 FROM tab1
----
0

query I rowsort
SELECT col2 + col2 FROM tab2 WHERE NOT ( - col2 ) BETWEEN NULL AND + col0 + + tab2.col2 * col2 + - tab2.col1
----

query I rowsort
SELECT - col1 + - col2 + + col2 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4152
SELECT col2 DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4152
SELECT col2 / col2 FROM tab1
----
1
1
1

query I rowsort
SELECT - col0 * - tab0.col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT tab0.col0 + col1 AS col2 FROM tab0
----
110
132
180

query I rowsort
SELECT + col0 * + col2 AS col1 FROM tab1 WHERE NULL IN ( + col0 )
----

query I rowsort
SELECT - 99 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT col2 - + col2 * 53 AS col0 FROM tab0 AS cor0
----
-1716
-4264
-52

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + - 73 * col2 * + col1 FROM tab2 AS cor0
----
-111982
-47158
-61101

query I rowsort
SELECT col2 + - ( 99 ) * col1 FROM tab0 cor0
----
-8481
-8927
-9602

query I rowsort
SELECT - - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col0 * + ( - cor0.col0 ) * - col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT + col1 * ( col0 ) + col0 AS col2 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + cor0.col0 * 63 FROM tab2, tab0 cor0
----
9 values hashing to 3eadb7476105ce17c2616cae257b117a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4166
SELECT ALL - col0 * CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * - ( 28 ) col1 FROM tab2 AS cor0
----
-196
-2184
-2212

query I rowsort
SELECT + col2 * - 64 AS col0 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT ALL + ( col0 ) + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL ( col2 ) * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT 28 - col0 * cor0.col0 FROM tab1 AS cor0
----
-4068
-6372
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * + col2 col0 FROM tab2 AS cor0
----
2028
2106
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col0 FROM tab2
----
-67
-67
-67

query I rowsort
SELECT - ( - col0 ) + + cor0.col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4177
SELECT - CAST( 37 AS SIGNED ) FROM tab1 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-4177
SELECT - CAST ( 37 AS INTEGER ) FROM tab1 AS cor0
----
-37
-37
-37

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

query I rowsort
SELECT ALL - 9 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049

query I rowsort
SELECT cor0.col1 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col0 - cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 + - col2 * col1 AS col2 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT + 40 AS col2 FROM tab2
----
40
40
40

query I rowsort
SELECT - col1 + col2 AS col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4185
SELECT + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4185
SELECT + col1 / col1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ( - col0 ) + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT + 74 DIV 39 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4187
SELECT + 74 / 39 FROM tab0
----
1
1
1

query I rowsort
SELECT 9 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT ALL - 29 FROM tab0, tab2 cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + 94 * col0 AS col0 FROM tab2 AS cor0
----
658
7332
7426

query I rowsort
SELECT + 51 * - cor0.col1 + col0 FROM tab1 AS cor0
----
-1323
-446
-583

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab0 cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4194
SELECT ALL + col2 + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL + col2 + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col0 ) + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL col1 * - cor0.col0 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT 18 * col1 FROM tab1
----
180
234
468

query I rowsort
SELECT + - col2 * - col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4199
SELECT DISTINCT col2 + CAST( + 30 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1796
548
957

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT col2 + CAST ( + 30 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1796
548
957

query I rowsort
SELECT - col0 + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

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 + col0 * ( - col0 ) + + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4203
SELECT DISTINCT + - col2 * + CAST( NULL AS SIGNED ) + 67 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4203
SELECT DISTINCT + - col2 * + CAST ( NULL AS INTEGER ) + 67 + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - cor0.col2 + col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT DISTINCT + col1 - - col0 DIV ( + col1 ) FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-4205
SELECT DISTINCT + col1 - - col0 / ( + col1 ) FROM tab2
----
21
31
60

query I rowsort
SELECT col0 + col2 + 73 * - col2 FROM tab2
----
-1794
-1937
-2657

onlyif mysql # use DIV operator for integer division
query I rowsort label-4207
SELECT + col2 * - tab2.col1 * col2 + - col0 DIV col1 FROM tab2
----
-22599
-24552
-39885

skipif mysql # not compatible
query I rowsort label-4207
SELECT + col2 * - tab2.col1 * col2 + - col0 / col1 FROM tab2
----
-22599
-24552
-39885

query I rowsort
SELECT ALL cor0.col2 * cor0.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489

onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT DISTINCT ( + col2 ) DIV + col1 + - 20 - col0 * col1 * - col1 col1 FROM tab0
----
177484
329295
736989

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT ( + col2 ) / + col1 + - 20 - col0 * col1 * - col1 col1 FROM tab0
----
177484
329295
736989

query I rowsort
SELECT - 19 * tab2.col0 - col0 FROM tab2
----
-140
-1560
-1580

query I rowsort
SELECT 98 + col0 * - col1 - + col1 FROM tab1
----
-552
-6
-955

query I rowsort
SELECT DISTINCT - col2 - + col2 * col2 * + tab0.col1 AS col1 FROM tab0
----
-611966
-93687
-98

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * - col0 FROM tab2 cor0
----
-22
-6058
-6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT ALL col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL col2 / - cor0.col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT + col1 + - 16 * col1 AS col1 FROM tab0 cor0
----
-1290
-1365
-1455

query I rowsort
SELECT 93 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT + 47 * 63 FROM tab1 AS cor0
----
2961
2961
2961

query I rowsort
SELECT DISTINCT + - ( col1 ) * + col0 + - col1 FROM tab2 cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col1 * - cor0.col2 * + col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + - col2 * 41 AS col0 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT DISTINCT - col0 * 55 * col2 AS col1 FROM tab2
----
-10395
-111540
-165110

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 AS cor0, tab0 AS cor1
----
972 values hashing to 5e655b1287771868a8f868574a94d749

query I rowsort
SELECT + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - 19 * tab2.col1 FROM tab2, tab2 cor0
----
9 values hashing to 4ffcc0543824bfd0794019f60c80ad17

query I rowsort
SELECT - - 46 * - col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT + - col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 74 AS col0 FROM tab1 cor0
----
74
74
74

query I rowsort
SELECT DISTINCT 20 * 23 AS col1 FROM tab1, tab2 AS cor0
----
460

query I rowsort
SELECT DISTINCT col2 * ( tab2.col1 ) * - tab2.col2 AS col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT - - cor0.col1 + + col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL cor0.col1 FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4233
SELECT ALL + + col2 + - cor0.col0 DIV 65 AS col1 FROM tab1 AS cor0
----
54
57
95

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + + col2 + - cor0.col0 / 65 AS col1 FROM tab1 AS cor0
----
54
57
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

onlyif mysql # use DIV operator for integer division
query I rowsort label-4235
SELECT + - cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4235
SELECT + - cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT - cor0.col1 DIV 18 AS col1 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4236
SELECT - cor0.col1 / 18 AS col1 FROM tab2 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 + + col2 + + col1 AS col2 FROM tab1 AS cor0
----
242
3715
7789

query I rowsort
SELECT ALL 23 AS col2 FROM tab2 cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT - col2 DIV + col0 + col0 - 81 FROM tab0 AS cor0
----
-46
-58
8

skipif mysql # not compatible
query I rowsort label-4239
SELECT - col2 / + col0 + col0 - 81 FROM tab0 AS cor0
----
-46
-58
8

query I rowsort
SELECT ALL - ( col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - + 36 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT ALL + ( + col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4243
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4244
SELECT ALL - col2 * col1 DIV col0 FROM tab2 AS cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - col2 * col1 / col0 FROM tab2 AS cor0
----
-119
-19
-8

query I rowsort
SELECT - - col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4246
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + + col0 * cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - col1 - 73 FROM tab0
----
-159
-164
-170

onlyif mysql # use DIV operator for integer division
query I rowsort label-4251
SELECT col2 * 92 + col1 + col1 * tab1.col2 DIV + col1 AS col2 FROM tab1
----
5048
5311
8941

skipif mysql # not compatible
query I rowsort label-4251
SELECT col2 * 92 + col1 + col1 * tab1.col2 / + col1 AS col2 FROM tab1
----
5048
5311
8941

query I rowsort
SELECT col2 + ( - 71 ) FROM tab2
----
-33
-44
-45

query I rowsort
SELECT - tab2.col2 - + 4 FROM tab2
----
-30
-31
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) + - col0 * + col2 - + col0 col2 FROM tab0 AS cor0
----
-69
-7305
-783

query I rowsort
SELECT DISTINCT - 41 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1066
-410
-533

query I rowsort
SELECT + - col1 * + col1 + + col2 - col2 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT DISTINCT col0 DIV col1 - col2 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT col0 / col1 - col2 FROM tab2 AS cor0
----
-25
-27
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT DISTINCT col1 * col0 - - ( + col0 ) DIV col0 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT col1 * col0 - - ( + col0 ) / col0 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT ALL - ( col0 ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - - 42 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1092
420
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col1 ) + - col1 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * - col2 col1 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT - 68 + col1 AS col1 FROM tab2 AS cor0
----
-37
-51
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT ALL col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL col1 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + - cor0.col1 + col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT ALL - - col1 + col0 DIV 14 FROM tab2 cor0
----
22
31
64

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - - col1 + col0 / 14 FROM tab2 cor0
----
22
31
64

query I rowsort
SELECT ALL + 8 FROM tab1
----
8
8
8

query I rowsort
SELECT + ( cor0.col1 + 46 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b6c0eb6378776032a2bbfce0400de2d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 * col2 + + col1 * + cor0.col1 col0 FROM tab1 AS cor0
----
16393
37180
5800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT - + col1 DIV col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4272
SELECT - + col1 / col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT + 23 * col0 + 69 FROM tab2 AS cor0
----
1863
1886
230

onlyif mysql # use DIV operator for integer division
query I rowsort label-4274
SELECT DISTINCT col1 + col2 DIV 30 AS col1 FROM tab2 AS cor0
----
18
31
59

skipif mysql # not compatible
query I rowsort label-4274
SELECT DISTINCT col1 + col2 / 30 AS col1 FROM tab2 AS cor0
----
18
31
59

query I rowsort
SELECT DISTINCT 73 + - col2 FROM tab1 AS cor0
----
-23
16
19

query I rowsort
SELECT ALL - - cor0.col0 * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col2 + + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 51 * cor0.col2 + ( col1 ) AS col0 FROM tab0 AS cor0
----
148
1769
4273

query I rowsort
SELECT ALL + col2 * col2 * - col1 AS col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + - col1 + + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + + col0 + 93 * col0 FROM tab2 cor0
----
658
7332
7426

query I rowsort
SELECT tab1.col0 - col1 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL - - col2 + + 33 FROM tab1 AS cor0
----
129
87
90

query I rowsort
SELECT ALL + - cor0.col2 + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4286
SELECT DISTINCT - col0 + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT - col0 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * col1 * 92 + col2 col1 FROM tab2 AS cor0
----
-141102
-59394
-76977

query I rowsort
SELECT DISTINCT col1 + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col2 + - 37 * col1 FROM tab0 AS cor0
----
-3149
-3285
-3588

query I rowsort
SELECT ALL col2 * col0 * - 62 - col2 AS col2 FROM tab1 AS cor0
----
-10098
-226233
-476256

query I rowsort
SELECT - col1 * - 3 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT 31 * col0 AS col0 FROM tab1
----
1984
2480
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col1 + - cor0.col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col0 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col1 + - 7 FROM tab0
----
-104
-93
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4298
SELECT DISTINCT + - col1 DIV - ( col0 * + col1 ) + + 29 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT + - col1 / - ( col0 * + col1 ) + + 29 FROM tab2 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col2 + 52 * col2 col1 FROM tab0 AS cor0
----
-3034
17
924

query I rowsort
SELECT col1 * + cor0.col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col2 + col1 + - 70 AS col0 FROM tab0 AS cor0
----
-17
-61
26

query I rowsort
SELECT ALL - col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4303
SELECT ALL + col0 * CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 - + 32 col1 FROM tab0
----
-99
-99
-99

skipif mysql # not compatible
query I rowsort
SELECT + 32 * col1 + - col2 + CAST ( + col1 AS REAL ) FROM tab0
----
2805
2921
3200

query I rowsort
SELECT + col0 * - col0 AS col1 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col1 + col1 FROM tab1
----
0

query I rowsort
SELECT ALL + 66 * + col2 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT DISTINCT - 65 * - col1 FROM tab0 AS cor0
----
5590
5915
6305

onlyif mysql # use DIV operator for integer division
query I rowsort label-4310
SELECT - col1 DIV + col2 + + col0 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-4310
SELECT - col1 / + col2 + + col0 FROM tab0
----
-62
22
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * tab1.col2 + 55 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 25e84c7739e95d5f17df02e39bb9bc5f

query I rowsort
SELECT DISTINCT ( tab1.col0 ) * tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + - 97 * + col1 FROM tab0 cor0
----
-8342
-8827
-9409

query I rowsort
SELECT ALL - - 58 + col1 FROM tab0 AS cor0
----
144
149
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * col1 col0 FROM tab2 AS cor0
----
102
186
354

query I rowsort
SELECT 95 + + col1 AS col1 FROM tab0 AS cor0
----
181
186
192

query I rowsort
SELECT DISTINCT - 98 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT ALL + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4319
SELECT tab0.col1 * - CAST( 85 AS SIGNED ) FROM tab0
----
-7310
-7735
-8245

skipif mysql # not compatible
query I rowsort label-4319
SELECT tab0.col1 * - CAST ( 85 AS INTEGER ) FROM tab0
----
-7310
-7735
-8245

query I rowsort
SELECT DISTINCT + col2 * - tab0.col1 * col1 + - col2 AS col0 FROM tab0
----
-244101
-679124
-9410

query I rowsort
SELECT ALL - col1 * - col2 * - tab2.col1 AS col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL 61 FROM tab1, tab2 cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + tab2.col2 * + 20 FROM tab2
----
520
540
760

query I rowsort
SELECT DISTINCT + col1 * - tab2.col2 * + col0 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT - ( - col2 + + col1 ) * - col2 FROM tab2
----
-798
108
858

query I rowsort
SELECT - 13 * 17 * + col1 FROM tab1
----
-2210
-2873
-5746

query I rowsort
SELECT DISTINCT - col1 * - col2 - col1 FROM tab1
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT ( col1 ) DIV - tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4328
SELECT ( col1 ) / - tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + 11 * - col2 FROM tab1
----
-1056
-594
-627

query I rowsort
SELECT - 65 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1290
-641
-7986

query I rowsort
SELECT 23 + - cor0.col2 FROM tab2 AS cor0
----
-15
-3
-4

query I rowsort
SELECT ALL - 88 FROM tab2
----
-88
-88
-88

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab2 AS cor0, tab2 AS cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

query I rowsort
SELECT col0 + - col2 * 43 FROM tab0
----
-1395
-3437
-8

query I rowsort
SELECT + tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - 87 FROM tab2
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - col0 + col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4339
SELECT ALL + col0 DIV - tab2.col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + col0 / - tab2.col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) + 12 FROM tab2 AS cor0
----
29
43
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col2 FROM tab2 cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT + + ( col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - + col0 * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col2 + - col1 * + col1 * + col0 FROM tab2 AS cor0
----
-22793
-271492
-6700

query I rowsort
SELECT DISTINCT - tab0.col1 * - col2 * + col1 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT - + col1 DIV 98 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4346
SELECT - + col1 / 98 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 69 FROM tab1
----
-69
-69
-69

query I rowsort
SELECT DISTINCT - 92 FROM tab0
----
-92

query I rowsort
SELECT - - col1 + + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col0 * 42 AS col1 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT - col0 * ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4352
SELECT - col2 + + col1 DIV col0 FROM tab0 AS cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-4352
SELECT - col2 + + col1 / col0 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT cor0.col2 * + ( + col0 * col2 ) FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL + cor0.col0 * - col1 - - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT col0 + col2 * - col2 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 3 FROM tab0, tab2 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4358
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 - + cor0.col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 - + cor0.col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 54 FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL + 32 * - col1 FROM tab1 AS cor0
----
-320
-416
-832

query I rowsort
SELECT + ( col0 ) + cor0.col0 * ( 6 ) AS col1 FROM tab0 cor0
----
168
245
623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4362
SELECT ALL CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 + + 9 FROM tab1 AS cor0
----
-55
-71
6

query I rowsort
SELECT ALL - ( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 93 FROM tab2 AS cor0
----
93

query I rowsort
SELECT DISTINCT + + col0 + + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - - 75 * - 39 AS col0 FROM tab1 AS cor0
----
-2925
-2925
-2925

query I rowsort
SELECT + + 95 AS col2 FROM tab1 cor0
----
95
95
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4369
SELECT ALL - col2 * col1 * + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL - col2 * col1 * + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT - 73 * - col1 + ( col0 ) AS col1 FROM tab1 AS cor0
----
1029
1901
794

query I rowsort
SELECT - ( col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + 71 AS col2 FROM tab1 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 44 col2 FROM tab0 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - cor0.col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 63 * col0 * col1 AS col2 FROM tab1 cor0
----
-40320
-4914
-65520

query I rowsort
SELECT ( + cor0.col2 ) * col0 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - tab1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * + col1 col0 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 95 + col2 AS col2 FROM tab0 cor0
----
-13
-62
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT DISTINCT - ( col0 ) + + col0 DIV - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-122
-177
-58

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT - ( col0 ) + + col0 / - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-122
-177
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4383
SELECT ALL - col1 DIV col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - col1 / col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 36 + col1 * + col0 FROM tab0 AS cor0
----
2028
3359
8063

query I rowsort
SELECT ALL col2 * - col0 AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + 20 FROM tab1 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT - tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT tab0.col2 * + col1 + 2 FROM tab0
----
2840
7464
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT col1 * cor0.col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - - 2 + cor0.col2 FROM tab1 AS cor0
----
56
59
98

query I rowsort
SELECT + ( - 21 ) + col2 FROM tab1
----
33
36
75

query I rowsort
SELECT + 17 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 71801088bb30ca6eac036729ebfbbace

query I rowsort
SELECT ALL - 5 FROM tab0, tab1 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL - 68 * + col1 AS col1 FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT col0 + - col1 * col1 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT + 33 * - ( - col1 ) + 53 AS col1 FROM tab1
----
383
482
911

query I rowsort
SELECT + 87 + col0 AS col2 FROM tab0 AS cor0
----
111
122
176

query I rowsort
SELECT ALL cor0.col1 + - col1 * - 64 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT ALL + 8 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT ALL col2 * col1 * 12 FROM tab0 AS cor0
----
1164
34056
89544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 * col2 * col2 + 4 col0 FROM tab0 AS cor0
----
-477400
-67
-77315

query I rowsort
SELECT DISTINCT - 64 - col1 * + col0 FROM tab0 cor0
----
-2128
-3459
-8163

query I rowsort
SELECT - 89 AS col2 FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT + 67 * col2 AS col1 FROM tab0
----
2211
5494
67

query I rowsort
SELECT - tab0.col0 + tab0.col0 * col2 FROM tab0
----
0
7209
768

query I rowsort
SELECT ( col1 ) FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * col2 * col0 col2 FROM tab0 AS cor0
----
1855
386794
41976

onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT + - col1 DIV - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4409
SELECT + - col1 / - col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT col1 + - col2 * + ( - col0 ) FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT + 14 * - col2 + + col1 FROM tab2 AS cor0
----
-305
-347
-515

query I rowsort
SELECT ALL + + 33 * col1 FROM tab2 AS cor0
----
1023
1947
561

query I rowsort
SELECT DISTINCT ( col1 ) * + ( - col0 ) + col1 * col1 * 83 FROM tab2 AS cor0
----
22644
284321
79546

query I rowsort
SELECT ALL col1 * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + 22 AS col0 FROM tab2 cor0
----
-22
-22
-22

query I rowsort
SELECT ALL + col2 * + col1 + + 81 FROM tab2 AS cor0
----
1615
727
918

query I rowsort
SELECT DISTINCT 43 * + col1 + 88 FROM tab2 AS cor0
----
1421
2625
819

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 19a23ac6b759f8988954bf75ba7c431a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4419
SELECT col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4419
SELECT col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4420
SELECT + col1 + tab1.col0 + + col0 DIV col2 FROM tab1
----
29
75
93

skipif mysql # not compatible
query I rowsort label-4420
SELECT + col1 + tab1.col0 + + col0 / col2 FROM tab1
----
29
75
93

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c

query I rowsort
SELECT ALL + + cor0.col1 + col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT ALL - - col1 + CAST( col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - - col1 + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + col0 + + ( + 84 ) FROM tab2 AS cor0
----
162
163
91

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 FROM tab1 AS cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - + cor0.col0 - 50 FROM tab1 AS cor0
----
-114
-130
-53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4428
SELECT col2 * + CAST( NULL AS DECIMAL ) + - 41 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4428
SELECT col2 * + CAST ( NULL AS REAL ) + - 41 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * + col0 + col1 + cor0.col0 FROM tab1 AS cor0
----
191
3722
7773

query I rowsort
SELECT - - col0 * + 92 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT ALL col1 + col1 * + 39 AS col1 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 AS col2 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( - 59 AS REAL ) + col2 * + col0 col2 FROM tab2 cor0
----
2087
248
3061

query I rowsort
SELECT 68 * col0 FROM tab2 AS cor0
----
476
5304
5372

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4435
SELECT - - CAST( NULL AS SIGNED ) + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4435
SELECT - - CAST ( NULL AS INTEGER ) + col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col1 FROM tab2 cor0
----
-72

query I rowsort
SELECT DISTINCT tab2.col0 + col0 * 80 + col2 AS col1 FROM tab2
----
594
6344
6437

query I rowsort
SELECT ALL - cor1.col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT cor0.col1 + 14 + - cor0.col1 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT - 5 FROM tab2, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL + col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4442
SELECT + - CAST( NULL AS SIGNED ) * - 77 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT + - CAST ( NULL AS INTEGER ) * - 77 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 45 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-19
-35
42

query I rowsort
SELECT ALL - cor0.col1 * - col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT DISTINCT ( 17 ) DIV col1 + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT ( 17 ) / col1 + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col1 AS col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL + + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col1 + - col2 + - col1 FROM tab1 AS cor0
----
-106
-122
-77

query I rowsort
SELECT ALL + - cor0.col2 * 27 FROM tab1 AS cor0
----
-1458
-1539
-2592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL ( ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 72 * + 0 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 96 + - col1 FROM tab1 AS cor0
----
70
83
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-4456
SELECT DISTINCT + - ( - col1 ) * - col0 DIV col0 - 18 FROM tab1 AS cor0
----
-28
-31
-44

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT + - ( - col1 ) * - col0 / col0 - 18 FROM tab1 AS cor0
----
-28
-31
-44

query I rowsort
SELECT + + 40 FROM tab2 AS cor0
----
40
40
40

query I rowsort
SELECT - 8 + - col2 * + col0 * - ( col2 + - col0 ) FROM tab2 AS cor0
----
-105464
-123090
3772

query I rowsort
SELECT - col2 + 69 AS col1 FROM tab1 AS cor0
----
-27
12
15

query I rowsort
SELECT - - ( + cor0.col0 ) * col2 + ( col0 * + col0 ) FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT + - 31 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT + + ( col1 ) * col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576

skipif mysql # not compatible
query I rowsort
SELECT + - col0 * col2 + - CAST ( + col0 AS REAL ) AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT tab1.col0 * col1 AS col2 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4465
SELECT DISTINCT - tab0.col2 DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT - tab0.col2 / col1 FROM tab0
----
0

query I rowsort
SELECT + 77 * col2 * col0 FROM tab1
----
12474
280896
591360

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL - col2 + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + 67 FROM tab0 AS cor0
----
1608
2345
5963

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4471
SELECT + - col1 * + CAST( NULL AS SIGNED ) / col0 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4471
SELECT + - col1 * + CAST ( NULL AS INTEGER ) / col0 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col0 - + col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL 50 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + col0 + - col2 AS col1 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4477
SELECT ALL + col0 * 35 + + col1 DIV + col2 FROM tab1 AS cor0
----
105
2240
2800

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL + col0 * 35 + + col1 / + col2 FROM tab1 AS cor0
----
105
2240
2800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4478
SELECT ALL + col1 - + CAST( col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL + col1 - + CAST ( col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - - col1 - - col0 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + col1 - - col2 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT + col0 DIV + tab1.col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4481
SELECT + col0 / + tab1.col1 FROM tab1
----
0
6
6

query I rowsort
SELECT col0 * - ( col0 * col0 ) FROM tab0
----
-13824
-42875
-704969

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT + col2 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4483
SELECT + col2 / col0 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT + col0 + 42 AS col2 FROM tab2 AS cor0
----
120
121
49

query I rowsort
SELECT + col1 * + col0 * - col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 * ( - col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 * ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT 1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + col0 col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + cor0.col1 * - 26 AS col0 FROM tab1 AS cor0
----
-260
-338
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col1 + col0 col1 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4494
SELECT + CAST( ( col0 ) AS SIGNED ) * col0 - col0 * + cor0.col1 FROM tab1 AS cor0
----
-69
3456
5360

skipif mysql # not compatible
query I rowsort label-4494
SELECT + CAST ( ( col0 ) AS INTEGER ) * col0 - col0 * + cor0.col1 FROM tab1 AS cor0
----
-69
3456
5360

query I rowsort
SELECT ALL + 42 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + 68 AS col1 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT ALL + - 22 * cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
-546
-567
-798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4500
SELECT - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4500
SELECT - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 57 + col0 * col2 FROM tab1 AS cor0
----
219
3705
7737

query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1
----
10
13
26

query I rowsort
SELECT + 28 * cor0.col2 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT - + col0 * + col0 * 37 FROM tab1 AS cor0
----
-151552
-236800
-333

query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 * + col0 FROM tab0
----
0

query I rowsort
SELECT col1 + - col2 AS col2 FROM tab0 WHERE NOT - col1 > ( NULL )
----

query I rowsort
SELECT + col2 - col0 * + col1 AS col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + tab1.col0 + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL + col2 * col1 + - col0 AS col1 FROM tab0
----
2814
62
7373

query I rowsort
SELECT + col1 + col0 * - col1 AS col0 FROM tab1
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4512
SELECT DISTINCT - col0 DIV - col1 + + col0 * - col1 FROM tab2
----
-1339
-217
-4601

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - col0 / - col1 + + col0 * - col1 FROM tab2
----
-1339
-217
-4601

query I rowsort
SELECT + + 0 AS col0 FROM tab2 AS cor0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col2 FROM tab2
----
68
68
68

query I rowsort
SELECT ALL - col0 + + tab1.col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col1 col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4519
SELECT DISTINCT + cor0.col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + cor0.col0 / col1 AS col1 FROM tab0 AS cor0
----
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 38896d3a4bd953cc78f93d73ae064cbd

query I rowsort
SELECT 75 + + col1 AS col2 FROM tab0 cor0
----
161
166
172

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * ( col1 ) * - tab0.col0 FROM tab0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT ALL col1 * - ( + col1 * col0 ) FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT - + col0 * 94 AS col2 FROM tab0 AS cor0
----
-2256
-3290
-8366

query I rowsort
SELECT ALL + col0 + col0 * - col1 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-101
-586
-973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - ( col1 ) col0 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT ALL 54 + - cor2.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to b9ad740590ea4e31718301499c9870b8

query I rowsort
SELECT DISTINCT + + col0 + + ( col0 + - col0 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - cor0.col0 + 57 * col2 FROM tab0 AS cor0
----
1857
22
4585

query I rowsort
SELECT ALL + col1 * + col2 - + col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT - 93 + - col2 AS col1 FROM tab1
----
-147
-150
-189

query I rowsort
SELECT ALL - col0 - + col2 AS col2 FROM tab0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4535
SELECT col1 DIV + col2 + col2 * 0 * + col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4535
SELECT col1 / + col2 + col2 * 0 * + col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT col2 - col0 FROM tab2
----
-41
-52
20

query I rowsort
SELECT DISTINCT + 7 - col2 AS col0 FROM tab0
----
-26
-75
6

query I rowsort
SELECT + + col2 * col2 + cor0.col2 - - col0 FROM tab1 AS cor0
----
2973
3370
9392

query I rowsort
SELECT - ( cor0.col1 ) + + col1 - col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT DISTINCT + + 20 DIV col1 AS col2 FROM tab1 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT + + 20 / col1 AS col2 FROM tab1 cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4542
SELECT + 46 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4542
SELECT + 46 / col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4543
SELECT cor0.col0 DIV col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4543
SELECT cor0.col0 / col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT + - 47 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7443
-8328
-9456

query I rowsort
SELECT DISTINCT - - ( + col0 ) AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - + cor0.col2 * col1 + + ( col2 ) FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + - col0 * + col0 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4550
SELECT 55 DIV - col0 AS col1 FROM tab2 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-4550
SELECT 55 / - col0 AS col1 FROM tab2 AS cor0
----
-7
0
0

query I rowsort
SELECT ( - 40 * - col2 ) FROM tab0
----
1320
3280
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4552
SELECT - ( + col0 ) DIV + col1 AS col0 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4552
SELECT - ( + col0 ) / + col1 AS col0 FROM tab2
----
-1
-4
0

query I rowsort
SELECT - 15 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) * col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - + 7 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT DISTINCT col2 * col1 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * - col0 col1 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 77 * col0 FROM tab0 cor0
----
1848
2695
6853

query I rowsort
SELECT DISTINCT + - 5 + col1 * col2 * col2 AS col0 FROM tab0 AS cor0
----
611879
92
93649

query I rowsort
SELECT DISTINCT + 7 * tab0.col2 AS col0 FROM tab0
----
231
574
7

query I rowsort
SELECT + col1 + - cor0.col1 * - col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4563
SELECT DISTINCT + col1 DIV - col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT + col1 / - col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL col2 * - col2 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-35904
-551286
0

query I rowsort
SELECT ALL col2 + tab1.col2 * col1 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col0 * col0 + col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT + col0 + col2 * - tab1.col0 AS col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - col1 + - col0 * col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + - col2 col2 FROM tab2
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT DISTINCT + col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT + col0 / + col1 AS col0 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT DISTINCT - col0 * col1 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 * - tab1.col0 * - col2 FROM tab1
----
233472
486
614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4573
SELECT DISTINCT CAST( NULL AS DECIMAL ) - - tab2.col2 / + col1 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT CAST ( NULL AS REAL ) - - tab2.col2 / + col1 AS col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4574
SELECT + 69 * + col1 + col0 DIV + col1 - col2 FROM tab0
----
5901
6197
6692

skipif mysql # not compatible
query I rowsort label-4574
SELECT + 69 * + col1 + col0 / + col1 - col2 FROM tab0
----
5901
6197
6692

query I rowsort
SELECT + col2 + col0 - + tab1.col0 AS col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 94 ) - + tab0.col2 * col0 col1 FROM tab0
----
-698
-7204
59

query I rowsort
SELECT + tab1.col2 + + col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL - cor0.col2 * col1 + + col0 * + col2 + + col1 * col0 AS col2 FROM tab1 cor0
----
-1164
3718
7472

query I rowsort
SELECT + - col0 - - col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col0 - col0 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT ALL + 10 AS col2 FROM tab1 cor0
----
10
10
10

query I rowsort
SELECT col1 + - col2 + tab0.col2 * tab0.col2 FROM tab0
----
1142
6733
97

query I rowsort
SELECT DISTINCT 34 + col0 FROM tab0
----
123
58
69

query I rowsort
SELECT ALL 62 FROM tab0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT - col1 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4585
SELECT - col1 / col2 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 - - col2 col1 FROM tab2
----
119
120
131

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4587
SELECT CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4587
SELECT CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 - + ( col0 * col1 ) AS col2 FROM tab0
----
-2150
-3492
-8190

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4590
SELECT DISTINCT 97 DIV + col0 + + col1 AS col0 FROM tab0
----
90
92
99

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT 97 / + col0 + + col1 AS col0 FROM tab0
----
90
92
99

query I rowsort
SELECT ALL 47 + + col1 * + col0 + col1 AS col1 FROM tab0
----
2197
3539
8237

query I rowsort
SELECT + - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab0 AS cor0
----
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT DISTINCT + tab2.col1 * - col1 DIV tab2.col1 + col2 AS col1 FROM tab2
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-4594
SELECT DISTINCT + tab2.col1 * - col1 / tab2.col1 + col2 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ( + col0 ) + col1 + - col2 * col2 * col0 FROM tab1
----
-207862
-737187
-8719

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 + col2 col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL col1 * - col1 + + col0 * col1 FROM tab1 AS cor0
----
-598
540
871

query I rowsort
SELECT DISTINCT - 72 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
1992
3323
8027

query I rowsort
SELECT - 78 AS col0 FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL - + col0 * + col1 - cor0.col1 FROM tab1 cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 + col0 col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL - - 69 * col1 AS col2 FROM tab2 AS cor0
----
1173
2139
4071

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + - col0 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4604
SELECT - col0 DIV col0 + col2 AS col0 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-4604
SELECT - col0 / col0 + col2 AS col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT + + col1 * - col1 + col1 * + col0 FROM tab2 AS cor0
----
-744
1054
1121

query I rowsort
SELECT ALL + + col0 + - cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 - - col2 AS col2 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 * tab0.col2 col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1 WHERE NOT NULL >= ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 col0 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4611
SELECT col0 * col2 DIV - col0 + col1 * col1 FROM tab2
----
251
3455
934

skipif mysql # not compatible
query I rowsort label-4611
SELECT col0 * col2 / - col0 + col1 * col1 FROM tab2
----
251
3455
934

query I rowsort
SELECT - col1 * col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col2 - + col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL + col1 * col1 * col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL col1 + col1 FROM tab1
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4616
SELECT ALL - col2 - + col2 DIV col0 FROM tab2
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL - col2 - + col2 / col0 FROM tab2
----
-26
-30
-38

query I rowsort
SELECT cor0.col0 + + col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4618
SELECT DISTINCT + col0 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT + col0 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4620
SELECT - col1 DIV + col0 + - col0 FROM tab1
----
-11
-64
-80

skipif mysql # not compatible
query I rowsort label-4620
SELECT - col1 / + col0 + - col0 FROM tab1
----
-11
-64
-80

query I rowsort
SELECT ALL - col0 - + tab0.col1 FROM tab0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4623
SELECT - tab2.col2 DIV - tab2.col1 AS col2 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4623
SELECT - tab2.col2 / - tab2.col1 AS col2 FROM tab2
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT DISTINCT col0 * col0 + + col1 + col1 DIV col0 col0 FROM tab2
----
6143
6258
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT col0 * col0 + + col1 + col1 / col0 col0 FROM tab2
----
6143
6258
84

query I rowsort
SELECT - tab2.col0 + - col2 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT col2 - + col1 * + col2 FROM tab0
----
-2805
-7380
-96

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( - col2 / col1 + col0 * col1 * col0 )
----

query I rowsort
SELECT DISTINCT + col2 * - col1 * col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col1 - col0 AS col1 FROM tab0
----
2
62

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) NOT BETWEEN ( NULL ) AND - col2 + - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + tab1.col2 * + col1 + col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL + col1 + - col2 * col0 FROM tab2
----
-158
-1969
-2985

query III rowsort
SELECT * FROM tab1 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + col0 * + col1 * + col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT ALL tab2.col1 * col0 AS col1 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * + col0 * + col0 col0 FROM tab2
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 col0 FROM tab2 WHERE col0 + + col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * tab1.col0 col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT col0 DIV - col1 + col1 FROM tab1
----
26
4
7

skipif mysql # not compatible
query I rowsort label-4639
SELECT col0 / - col1 + col1 FROM tab1
----
26
4
7

query I rowsort
SELECT ALL - col1 * col0 * + col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - col2 * col2 + - col1 * + col1 / - col2 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT - tab1.col2 * - col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col2 FROM tab1 WHERE NULL IN ( + col0 * col0 / col0 + col2 )
----

query I rowsort
SELECT ALL + col1 * col0 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT + col1 + - col1 + + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT col0 * - col2 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - + col1 * - col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT col1 / col0 IN ( + col0 * tab0.col1 + tab0.col2 )
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - - col0 * col0 + + col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT - + col0 + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - col0 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - - col0 + + col0 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col0 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4654
SELECT + col0 * - cor0.col0 DIV + col0 col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4654
SELECT + col0 * - cor0.col0 / + col0 col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4656
SELECT DISTINCT + col1 DIV col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT + col1 / col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT ALL - col1 + col0 * - col2 AS col2 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL col1 + - col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT - - col2 * - cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col0 * col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col1 * col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab2
----
7
78
79

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0
----
54 values hashing to 3352c458f45211cf9aa3236c2cd6dd38

query I rowsort
SELECT ALL col1 - + col1 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT - col1 + + col2 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT 80 - + col0 AS col2 FROM tab1
----
0
16
77

query I rowsort
SELECT - ( - col1 ) + col0 + col0 * - 33 AS col0 FROM tab2 cor0
----
-193
-2437
-2511

query I rowsort
SELECT + 39 AS col1 FROM tab2
----
39
39
39

query I rowsort
SELECT DISTINCT ( + tab2.col1 * - tab2.col2 ) FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT + - col0 * 61 FROM tab1 cor0
----
-183
-3904
-4880

query I rowsort
SELECT - ( - col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - col1 * - ( col2 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 + col2 + col1 * + 13 FROM tab2 AS cor0
----
276
461
852

query I rowsort
SELECT - + col2 * + col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT DISTINCT + ( + col0 ) * tab0.col2 DIV col0 col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4678
SELECT DISTINCT + ( + col0 ) * tab0.col2 / col0 col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + 59 + + col0 * + 86 FROM tab0 AS cor0
----
2123
3069
7713

query I rowsort
SELECT - cor0.col2 * col1 + 97 * col0 FROM tab1 AS cor0
----
-1113
5638
6512

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4683
SELECT + col1 + - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4683
SELECT + col1 + - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 53 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query I rowsort
SELECT DISTINCT - 94 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4686
SELECT col0 DIV - col2 + col1 col1 FROM tab1 AS cor0
----
13
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4686
SELECT col0 / - col2 + col1 col1 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT col1 * 7 * 47 AS col0 FROM tab0
----
28294
29939
31913

query I rowsort
SELECT 82 * - col2 + + col1 FROM tab1 AS cor0
----
-4402
-4664
-7859

query I rowsort
SELECT + + 85 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1258
-132
-4517

query I rowsort
SELECT col1 * ( col0 ) FROM tab1
----
1040
640
78

query I rowsort
SELECT + + col1 * + ( - col2 ) - + col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT col0 * 93 AS col2 FROM tab2
----
651
7254
7347

query I rowsort
SELECT ALL 54 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT ALL - - ( col2 ) * - col1 * 82 AS col1 FROM tab1 cor0
----
-102336
-115128
-46740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4695
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL 90 FROM tab0 AS cor0
----
90
90
90

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9

query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + - 53 + + col2 FROM tab0 AS cor0
----
-20
-52
29

query I rowsort
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4702
SELECT DISTINCT cor1.col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT cor1.col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT + - col2 + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT - col1 * 95 AS col0 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT ALL 68 * + col1 * col1 AS col2 FROM tab2
----
19652
236708
65348

query I rowsort
SELECT ALL + tab1.col1 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT tab0.col0 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + col1 * - col0 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT 23 - col0 AS col1 FROM tab2
----
-55
-56
16

query I rowsort
SELECT - 99 + col1 FROM tab0
----
-13
-2
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4711
SELECT - col2 * + CAST( 99 AS SIGNED ) - - col1 * col1 col0 FROM tab1 AS cor0
----
-4670
-5543
-9335

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4711
SELECT - col2 * + CAST ( 99 AS INTEGER ) - - col1 * col1 col0 FROM tab1 AS cor0
----
-4670
-5543
-9335

query I rowsort
SELECT + col1 * + col1 * - col2 - col1 FROM tab0 cor0
----
-244154
-679133
-9506

query I rowsort
SELECT col2 + + cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT - - col1 + + 5 * col1 + + col2 * - cor0.col0 FROM tab0 AS cor0
----
-276
-6752
547

query I rowsort
SELECT + col0 - + col1 AS col1 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT - - col2 DIV - 24 - + col2 col1 FROM tab0 AS cor0
----
-1
-34
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4716
SELECT - - col2 / - 24 - + col2 col1 FROM tab0 AS cor0
----
-1
-34
-85

query I rowsort
SELECT DISTINCT + col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col2 + + col1 * col1 AS col2 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT - col0 * - cor0.col1 + - col2 * + col1 * col1 + col0 FROM tab0 AS cor0
----
-241980
-5979
-670854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT - - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT - - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + - 87 FROM tab1 cor0
----
-23
-7
-84

query I rowsort
SELECT - col1 - ( col0 ) AS col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4724
SELECT DISTINCT col1 * CAST( 10 AS SIGNED ) FROM tab0 AS cor0
----
860
910
970

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT col1 * CAST ( 10 AS INTEGER ) FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT col0 + 47 * cor0.col0 FROM tab1 AS cor0
----
144
3072
3840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4726
SELECT DISTINCT + col1 - + CAST( NULL AS SIGNED ) * 74 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + col1 - + CAST ( NULL AS INTEGER ) * 74 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 28 - cor0.col1 * - ( + 70 * col1 ) FROM tab0 AS cor0
----
517748
579698
658658

query I rowsort
SELECT DISTINCT + col0 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT ALL - 98 DIV col1 FROM tab2 cor0
----
-1
-3
-5

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - 98 / col1 FROM tab2 cor0
----
-1
-3
-5

query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4732
SELECT DISTINCT col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT col2 / - col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab2 AS cor0
----
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4734
SELECT col0 * col2 - + CAST( NULL AS DECIMAL ) * + 13 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT col0 * col2 - + CAST ( NULL AS REAL ) * + 13 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + cor0.col2 * + 92 AS col0 FROM tab1 AS cor0
----
4971
5308
8912

query I rowsort
SELECT 88 * 42 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1b62566f6cdc43df6398c24ba69cfe3a

query I rowsort
SELECT + + col1 + + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + - col0 + ( col1 ) * cor0.col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT DISTINCT + col0 * + col2 + col1 * + col1 AS col0 FROM tab2 cor0
----
1150
3291
5509

query I rowsort
SELECT ALL - - col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - + col2 * - col1 + - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 65 AS col2 FROM tab2
----
65
65
65

query I rowsort
SELECT ALL + col1 * - cor0.col2 - col2 FROM tab1 cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT col2 * 4 + col1 * 18 AS col2 FROM tab1 AS cor0
----
408
618
684

query I rowsort
SELECT + 70 AS col2 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT + ( + 45 ) FROM tab2 AS cor0
----
45

query I rowsort
SELECT + - cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - - col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 + ( col1 ) * 21 FROM tab1 cor0
----
267
369
600

query I rowsort
SELECT DISTINCT col0 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + - cor0.col1 * + 83 - col2 FROM tab0 AS cor0
----
-7171
-7635
-8052

query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT + col0 + 50 * col2 FROM tab0 cor0
----
1674
4189
85

query I rowsort
SELECT ALL col2 * - col2 + - col0 * col1 AS col0 FROM tab1 cor0
----
-10256
-2994
-3889

query I rowsort
SELECT ALL - 7 * col1 FROM tab2 cor0
----
-119
-217
-413

query I rowsort
SELECT DISTINCT + col1 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ( col0 ) * col0 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + 76 col1 FROM tab1 AS cor0
----
140
156
79

query I rowsort
SELECT ALL - - col2 + 91 * col1 FROM tab1 AS cor0
----
1279
2420
967

query I rowsort
SELECT + tab0.col1 + - col2 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL - 3 - 42 AS col1 FROM tab1
----
-45
-45
-45

query I rowsort
SELECT DISTINCT ( ( col2 ) ) + 15 * - 39 FROM tab0 AS cor0
----
-503
-552
-584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4764
SELECT ALL + CAST( col0 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL + CAST ( col0 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - + 6 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL - col0 + + ( - col0 * - ( cor0.col0 ) ) AS col2 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL ( 13 ) AS col2 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT - ( col0 ) * - cor0.col1 + cor0.col2 + col0 FROM tab1 AS cor0
----
1216
135
761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c

query I rowsort
SELECT + 90 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT - 83 FROM tab1
----
-83
-83
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4773
SELECT CAST( col2 AS SIGNED ) + col0 AS col2 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4773
SELECT CAST ( col2 AS INTEGER ) + col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + 80 * col1 + col1 FROM tab1
----
1053
2106
810

query I rowsort
SELECT - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 71 FROM tab1
----
71

query I rowsort
SELECT DISTINCT ( tab2.col2 ) AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT - col0 * + tab2.col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT DISTINCT - 68 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-68

query I rowsort
SELECT - col2 * + col0 AS col2 FROM tab1
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4782
SELECT DISTINCT + + col1 * col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT + + col1 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 * + col1 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT DISTINCT + col2 + - col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col1 * - col1 + + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4786
SELECT DISTINCT + col2 * col1 / + col1 + - col2 * + col2 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + col2 * col1 / + col1 + - col2 * + col2 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 - + cor0.col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - + 91 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + ( + col1 + - col0 ) col1 FROM tab2 AS cor0
----
-648
2356
494

query I rowsort
SELECT DISTINCT + + col2 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col2 * col1 + + 23 * + cor0.col0 FROM tab2 AS cor0
----
-676
1171
260

onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT ALL - col1 DIV ( + cor0.col2 ) col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - col1 / ( + cor0.col2 ) col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col1 + - col2 + - 40 FROM tab0 AS cor0
----
-138
-159
-213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col1 * 7 * col0 FROM tab1 AS cor0
----
4480
546
7280

query I rowsort
SELECT DISTINCT col1 * 55 FROM tab0 AS cor0
----
4730
5005
5335

query I rowsort
SELECT ALL + col1 * - ( ( col0 ) ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 * + cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4799
SELECT CAST( - ( col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4799
SELECT CAST ( - ( col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - tab2.col1 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT + 76 + 23 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4804
SELECT col0 + - CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-4804
SELECT col0 + - CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT + 58 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
58

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( cor0.col1 AS REAL ) AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT 13 FROM tab0 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT + tab0.col1 * - col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - 35 * col0 * - col0 FROM tab2
----
1715
212940
218435

query I rowsort
SELECT DISTINCT - col1 * + col2 + - cor0.col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4811
SELECT col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4811
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-4812
SELECT DISTINCT - - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT - - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4813
SELECT DISTINCT - col2 * CAST( NULL AS DECIMAL ) * - 64 - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT DISTINCT - col2 * CAST ( NULL AS REAL ) * - 64 - col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 89 - - tab0.col1 AS col1 FROM tab0
----
175
180
186

query I rowsort
SELECT tab1.col0 * + col0 AS col0 FROM tab1
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4816
SELECT col2 * CAST( NULL AS SIGNED ) * - col0 + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT col2 * CAST ( NULL AS INTEGER ) * - col0 + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + col0 + ( tab0.col2 ) * col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL - ( + 99 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT - + col1 + + ( 79 ) * col2 AS col2 FROM tab2 AS cor0
----
1995
2102
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4821
SELECT col1 * - CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT col1 * - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col1 + + CAST ( - col0 AS REAL ) * col0 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL + col0 + + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + - col2 + 96 AS col2 FROM tab1 AS cor0
----
0
39
42

query I rowsort
SELECT ( ( col1 ) ) * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - 13 + 87 FROM tab0 AS cor0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) * + col1 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 24 FROM tab0 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 - + col2 col1 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT col2 * + col1 - ( col0 ) FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - - col1 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT + 97 + col1 FROM tab1 AS cor0
----
107
110
123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col1 FROM tab0
----
7

query I rowsort
SELECT DISTINCT + 70 * col1 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT ALL 42 AS col2 FROM tab0 AS cor0
----
42
42
42

query I rowsort
SELECT + ( + col2 ) - + col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - col2 * - col2 + + 90 FROM tab1 cor0
----
3006
3339
9306

query I rowsort
SELECT col2 - - col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT DISTINCT - - col0 DIV + col0 + + cor0.col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - - col0 / + col0 + + cor0.col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL cor0.col0 * + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4829ede06f586935ff95a5b0dfdb9199

query I rowsort
SELECT ALL - + col1 + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT + - ( + col2 ) DIV + col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4844
SELECT + - ( + col2 ) / + col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 33 FROM tab2 cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4848
SELECT col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4848
SELECT col1 / col0 AS col1 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - 4 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
28
312
316

onlyif mysql # use DIV operator for integer division
query I rowsort label-4850
SELECT ALL + col2 * - col2 + ( - col1 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + col2 * - col2 + ( - col1 ) / - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - - col1 + col1 + + col2 * col0 FROM tab1 AS cor0
----
214
3668
7706

query I rowsort
SELECT ALL + 19 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4854
SELECT col0 + cor0.col2 DIV - ( col0 + + col2 ) FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4854
SELECT col0 + cor0.col2 / - ( col0 + + col2 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - + col2 * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - + 71 + - col2 * col0 FROM tab2 AS cor0
----
-2099
-260
-3073

query I rowsort
SELECT ALL cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT - col0 DIV + ( + col0 * cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4858
SELECT - col0 / + ( + col0 * cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT DISTINCT col1 + 26 DIV 31 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT col1 + 26 / 31 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4860
SELECT + cor0.col2 DIV col0 AS col1 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4860
SELECT + cor0.col2 / col0 AS col1 FROM tab0 cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT ALL - - col0 + col0 DIV + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4861
SELECT ALL - - col0 + col0 / + col0 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT cor0.col0 DIV - 83 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4862
SELECT cor0.col0 / - 83 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - col1 * - col1 - col2 FROM tab1
----
43
622
73

query I rowsort
SELECT + ( - cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT ALL + col0 * col1 + col2 DIV col0 col2 FROM tab2 AS cor0
----
1343
220
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL + col0 * col1 + col2 / col0 col2 FROM tab2 AS cor0
----
1343
220
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4868
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( col0 + - col0 ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4868
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( col0 + - col0 ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL - col2 + col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT 82 FROM tab0, tab1 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab0
----
13

query I rowsort
SELECT + - 57 + - cor0.col2 FROM tab1 AS cor0
----
-111
-114
-153

query I rowsort
SELECT ALL - 13 FROM tab0 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab1
----
13

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT - 42 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT - + 99 * col0 FROM tab1 AS cor0
----
-297
-6336
-7920

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to 635619591835474e6aa6acdff4ab166c

query I rowsort
SELECT ALL + - cor0.col2 * - 4 FROM tab1 cor0
----
216
228
384

query I rowsort
SELECT + col0 * - col2 * + 29 FROM tab0 AS cor0
----
-1015
-211642
-22968

query I rowsort
SELECT DISTINCT cor0.col0 + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + - col2 * col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - - col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + col2 * cor0.col1 - - col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - 74 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - - col2 + col2 + col0 FROM tab0 AS cor0
----
253
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 45 col2 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT 94 * - tab2.col0 * + col0 AS col0 FROM tab2
----
-4606
-571896
-586654

query I rowsort
SELECT - 67 - - 12 * col1 AS col2 FROM tab1 AS cor0
----
245
53
89

query I rowsort
SELECT DISTINCT - 71 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
17
31
59

query I rowsort
SELECT col0 * col0 * + col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - col1 - + 32 AS col1 FROM tab2 AS cor0
----
-49
-63
-91

query I rowsort
SELECT col1 * - col0 - - col1 * 58 AS col0 FROM tab0 AS cor0
----
-2821
2231
2924

onlyif mysql # use DIV operator for integer division
query I rowsort label-4897
SELECT - 8 DIV + col2 + - col2 col0 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4897
SELECT - 8 / + col2 + - col2 col0 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4898
SELECT DISTINCT col2 * tab0.col2 DIV col0 FROM tab0
----
0
45
75

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT col2 * tab0.col2 / col0 FROM tab0
----
0
45
75

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 66 col2 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT + ( + col1 ) FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT + 34 FROM tab2
----
34

query I rowsort
SELECT - 5 + - col1 * col1 FROM tab1
----
-105
-174
-681

query I rowsort
SELECT ALL + - col1 + col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT 43 FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT ALL col2 + + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - + 71 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT DISTINCT 51 + + col1 FROM tab0 AS cor0
----
137
142
148

query I rowsort
SELECT - 27 AS col1 FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-4910
SELECT - col2 DIV - ( - cor0.col1 + - col0 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4910
SELECT - col2 / - ( - cor0.col1 + - col0 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT - col2 * 43 FROM tab2 AS cor0
----
-1118
-1161
-1634

query I rowsort
SELECT DISTINCT + col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT cor0.col0 * 44 * col1 FROM tab1 AS cor0
----
28160
3432
45760

query I rowsort
SELECT DISTINCT - col1 + 73 AS col0 FROM tab1 AS cor0
----
47
60
63

query I rowsort
SELECT ALL - + col1 * - col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - + tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT col0 + - col1 AS col0 FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4921
SELECT ALL - col0 DIV col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - col0 / col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT ALL - col2 * - ( col0 * + tab1.col2 + col1 ) AS col0 FROM tab1
----
10152
208506
738528

query I rowsort
SELECT + col1 * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT ( - cor1.col2 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4926
SELECT - + CAST( + col0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-4926
SELECT - + CAST ( + col0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 75 - 8 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - 45 AS col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 1f0df66b2151954f18c5f227a321bf0c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 44 * - cor0.col0 FROM tab0 AS cor0
----
-1056
-1540
-3916

query I rowsort
SELECT + 4 + + col2 AS col2 FROM tab0 AS cor0
----
37
5
86

query I rowsort
SELECT 77 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - - col0 col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - 50 + col1 FROM tab2 cor0
----
-19
-33
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4936
SELECT + col1 * col2 + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4936
SELECT + col1 * col2 + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 26 + col0 AS col1 FROM tab1
----
-23
38
54

query I rowsort
SELECT ALL - col2 * col1 * + col1 + - col0 * 2 AS col1 FROM tab2
----
-11140
-25961
-90662

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 46 AS REAL ) + col1 * ( + ( col0 ) * ( col0 ) ) AS col2 FROM tab2
----
106143
1565
359002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT ALL ( - tab1.col2 ) DIV - col2 + col1 * + 17 col0 FROM tab1
----
171
222
443

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL ( - tab1.col2 ) / - col2 + col1 * + 17 col0 FROM tab1
----
171
222
443

query I rowsort
SELECT ALL + 87 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL - 76 AS col2 FROM tab0
----
-76
-76
-76

query I rowsort
SELECT ALL 4 * + col0 + - col0 FROM tab1 AS cor0
----
192
240
9

query I rowsort
SELECT ALL - col1 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col1 + + col2 + cor0.col2 * col0 FROM tab2 AS cor0
----
2113
247
3057

query I rowsort
SELECT DISTINCT + 83 AS col2 FROM tab2 AS cor0
----
83

query I rowsort
SELECT + col1 * - col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + - 38 + col2 FROM tab2 AS cor0
----
-11
-12
0

query I rowsort
SELECT + - col0 + col1 * + 97 AS col0 FROM tab1 AS cor0
----
1181
2519
906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + col1 col2 FROM tab0 AS cor0
----
104
93
98

query I rowsort
SELECT ALL + - col0 - + 35 FROM tab2 AS cor0
----
-113
-114
-42

query I rowsort
SELECT + cor0.col2 * cor0.col1 + + cor0.col1 * + ( + cor0.col0 ) * col1 FROM tab1 AS cor0
----
14768
3432
6970

onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT DISTINCT col0 * + col1 + - col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
1039
60
640

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT col0 * + col1 + - col2 / + col0 AS col0 FROM tab1 AS cor0
----
1039
60
640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) * + cor0.col2 col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4956
SELECT ALL col0 DIV col1 - + col1 col0 FROM tab1 cor0
----
-26
-4
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL col0 / col1 - + col1 col0 FROM tab1 cor0
----
-26
-4
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4957
SELECT CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 6 * col0 AS col1 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT - col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - + cor0.col0 * 90 AS col2 FROM tab2 AS cor0
----
-630
-7020
-7110

query I rowsort
SELECT + col1 * - ( + col2 ) * - ( col0 ) - col0 * - col1 FROM tab2 AS cor0
----
124254
52377
6076

query I rowsort
SELECT - - col1 * + 95 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT + ( + col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - 4 AS col0 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT 13 FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - 86 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0
----
1
33
82

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9

query I rowsort
SELECT col0 + col1 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + col1 - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * - 3 * col1 FROM tab2 AS cor0
----
-2017
-2518
-4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4972
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab2
----
53

query I rowsort
SELECT col2 * col2 AS col1 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT 85 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + tab1.col0 * - 72 - 96 * + col2 FROM tab1
----
-10080
-14976
-5400

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 tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT col2 * 51 FROM tab0
----
1683
4182
51

query I rowsort
SELECT col1 + - 47 * col2 FROM tab1 AS cor0
----
-2512
-2669
-4499

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT DISTINCT col2 DIV col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT col2 / col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT - + col2 * col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - col0 + + col0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col2 AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + + 22 * col0 AS col2 FROM tab0 AS cor0
----
1958
528
770

query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col2 + + col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + ( col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4994
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 98 * - col0 AS col1 FROM tab2 AS cor0
----
-686
-7644
-7742

onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT DISTINCT + - 82 * + col0 - + cor0.col2 DIV col1 FROM tab1 cor0
----
-248
-5253
-6567

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT + - 82 * + col0 - + cor0.col2 / col1 FROM tab1 cor0
----
-248
-5253
-6567

query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab2, tab1 AS cor0
----
21

query I rowsort
SELECT DISTINCT + cor0.col2 + cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
9 values hashing to 8d15ca9b890db6bb93b9a05b04326ed3

query I rowsort
SELECT - cor0.col1 * - col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col2 + col2 AS col1 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT ( + col0 ) + + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + 43 AS col2 FROM tab1 AS cor0
----
43

query I rowsort
SELECT - + 67 + - col0 * - ( + col2 * + col0 ) FROM tab2 AS cor0
----
1256
158117
237091

query I rowsort
SELECT DISTINCT - ( + col1 ) * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col0 + - 85 * + col1 AS col0 FROM tab0 AS cor0
----
-7334
-7824
-8280

query I rowsort
SELECT ALL + col1 * 43 + col1 AS col1 FROM tab2 AS cor0
----
1364
2596
748

onlyif mysql # use DIV operator for integer division
query I rowsort label-5008
SELECT DISTINCT cor0.col2 DIV ( - col2 ) + - col2 FROM tab0 cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT cor0.col2 / ( - col2 ) + - col2 FROM tab0 cor0
----
-2
-34
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT col2 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5009
SELECT col2 / col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - 40 col1 FROM tab2 AS cor0
----
280
3120
3160

query I rowsort
SELECT DISTINCT + col2 * 91 + ( col1 ) * col2 FROM tab0 cor0
----
14924
188
5841

skipif mysql # not compatible
query I rowsort
SELECT - + col0 * CAST ( 3 * + col2 AS REAL ) FROM tab1 AS cor0
----
-10944
-23040
-486

query I rowsort
SELECT ALL - col1 * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - col0 * + col2 + + col0 * col2 + col2 * col2 * col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ALL tab2.col0 + col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - 63 + col0 FROM tab2
----
-56
15
16

query I rowsort
SELECT - 86 * col0 AS col1 FROM tab2
----
-602
-6708
-6794

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col0 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT col0 + + col1 * + ( 48 ) FROM tab2 AS cor0
----
1495
2910
895

query I rowsort
SELECT - 35 AS col0 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT + col2 + + col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL + ( col2 ) * - cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 * col2 + - 69 col2 FROM tab1 AS cor0
----
4251
4491
7611

query I rowsort
SELECT ALL - - cor0.col1 * - col1 * - col1 + + 59 * col0 AS col1 FROM tab2 cor0
----
209981
30204
9574

query I rowsort
SELECT ALL 38 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT ALL col2 + - col2 * 10 + col1 * + tab0.col0 AS col0 FROM tab0
----
1767
3386
7361

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5027
SELECT ALL col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + col1 * - col0 AS col1 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT DISTINCT col0 DIV + 85 + + 30 AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT col0 / + 85 + + 30 AS col2 FROM tab2
----
30

query I rowsort
SELECT col2 * + col0 + - tab1.col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT + col0 * 60 FROM tab2
----
420
4680
4740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 + col2 col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT col2 * col2 - - col2 * col2 * + ( - col1 ) AS col1 FROM tab0 cor0
----
-605160
-92565
-96

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-5035
SELECT ALL col2 + + col2 DIV col2 AS col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL col2 + + col2 / col2 AS col1 FROM tab1
----
55
58
97

query I rowsort
SELECT DISTINCT + col2 * + 95 * col2 + col0 AS col2 FROM tab2
----
137259
64298
69262

query I rowsort
SELECT ALL tab1.col0 * tab1.col0 + - col2 * col1 AS col0 FROM tab1
----
-1395
3526
5152

query I rowsort
SELECT col2 * cor0.col2 AS col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5039
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - 22 + - col0 FROM tab2 AS cor0
----
-100
-101
-29

query I rowsort
SELECT ALL - - col2 * ( + col0 ) AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - 81 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ALL + 77 * col2 FROM tab0 AS cor0
----
2541
6314
77

query I rowsort
SELECT + col2 + + col1 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + 76 * 51 FROM tab2 AS cor0
----
3876
3876
3876

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5046
SELECT + CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT + CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + + 44 AS col2 FROM tab1 AS cor0
----
44

query I rowsort
SELECT DISTINCT cor0.col1 * + ( col0 * cor0.col2 ) AS col1 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 + 30 * col0 col1 FROM tab1 AS cor0
----
1914
2394
84

query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + - cor0.col2 + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT 46 * + col2 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT - ( col1 ) + - cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + + 55 * + col2 FROM tab0 cor0
----
1815
4510
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5056
SELECT DISTINCT 94 DIV + col1 + - col0 + col0 AS col2 FROM tab1 cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT 94 / + col1 + - col0 + col0 AS col2 FROM tab1 cor0
----
3
7
9

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5058
SELECT col0 * + col2 + - col1 DIV + ( col1 ) AS col1 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-5058
SELECT col0 * + col2 + - col1 / + ( col1 ) AS col1 FROM tab1 AS cor0
----
161
3647
7679

query I rowsort
SELECT ALL - - 52 + 18 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5060
SELECT ALL - col2 * col2 - + col0 * - CAST( 3 AS SIGNED ) FROM tab2 AS cor0
----
-1207
-442
-708

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - col2 * col2 - + col0 * - CAST ( 3 AS INTEGER ) FROM tab2 AS cor0
----
-1207
-442
-708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 * + col1 - - col1 col0 FROM tab1 AS cor0
----
1105
2210
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 col0 FROM tab2
----
5

query I rowsort
SELECT + ( - 68 ) FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

query I rowsort
SELECT ALL - ( 35 ) AS col1 FROM tab0
----
-35
-35
-35

query I rowsort
SELECT 57 + - col1 FROM tab1 AS cor0
----
31
44
47

query I rowsort
SELECT DISTINCT - + col1 * + col2 + cor0.col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT col2 * + 36 FROM tab2
----
1368
936
972

query I rowsort
SELECT + 27 * col1 AS col1 FROM tab1
----
270
351
702

query I rowsort
SELECT + 80 * + col2 * col0 FROM tab0
----
2800
583840
63360

query I rowsort
SELECT ( col0 * - col1 ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + + col0 * - ( + col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT 48 * + 54 FROM tab2 AS cor0
----
2592
2592
2592

query I rowsort
SELECT DISTINCT - + col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5074
SELECT CAST( NULL AS DECIMAL ) * - col1 + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT CAST ( NULL AS REAL ) * - col1 + - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + col1 ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 * - 51 AS col0 FROM tab0 AS cor0
----
-4386
-4641
-4947

query I rowsort
SELECT + - col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 96 * cor0.col0 AS col0 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT - 69 + + col1 + col0 AS col2 FROM tab1 AS cor0
----
-40
24
5

query I rowsort
SELECT + col2 + + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * 7 col0 FROM tab2
----
-385
-385
-385

query I rowsort
SELECT - 94 AS col2 FROM tab2
----
-94
-94
-94

query I rowsort
SELECT ALL + ( col0 ) * + col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT + 59 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT - - col1 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 82 FROM tab0
----
82
82
82

query I rowsort
SELECT ALL - - cor0.col0 * ( - 18 * + cor0.col2 ) + + ( ( - col1 ) + + col0 ) FROM tab0 cor0
----
-131366
-14318
-692

query I rowsort
SELECT + - col0 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + col1 * - 52 AS col2 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT + - col2 + + col1 * col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - + col2 + - col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - col1 * col0 + + ( + cor0.col2 ) FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col0 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5094
SELECT ALL col1 + 66 DIV + col1 col1 FROM tab2 AS cor0
----
20
33
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL col1 + 66 / + col1 col1 FROM tab2 AS cor0
----
20
33
60

query I rowsort
SELECT + col1 * - ( - col2 ) + - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - tab1.col1 + col2 * + col2 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT - col2 * ( col1 ) - - col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL - 38 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + ( col1 ) col2 FROM tab1
----
20
26
52

query I rowsort
SELECT + col1 * - 49 FROM tab1
----
-1274
-490
-637

query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - tab0.col0 + + col2 * 9 FROM tab0
----
-26
273
649

query I rowsort
SELECT DISTINCT + tab0.col1 + - ( col2 ) FROM tab0
----
53
9
96

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

onlyif mysql # use DIV operator for integer division
query I rowsort label-5105
SELECT - cor0.col2 DIV - col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5105
SELECT - cor0.col2 / - col1 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5106
SELECT + cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT + cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT DISTINCT + col2 DIV col1 AS col0 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT + col2 / col1 AS col0 FROM tab2
----
0
2

query I rowsort
SELECT DISTINCT col2 * - tab0.col0 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5109
SELECT DISTINCT cor0.col2 + CAST( + col0 AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
6110
6279
76

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT cor0.col2 + CAST ( + col0 AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL cor0.col0 * col0 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 + 29 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT - + cor0.col0 * ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT 58 FROM tab1 AS cor0
----
58
58
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5114
SELECT DISTINCT - CAST( - cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5114
SELECT DISTINCT - CAST ( - cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + - cor0.col1 + + 84 * col1 AS col1 FROM tab0 cor0
----
7138
7553
8051

query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT + - cor0.col2 DIV + ( col2 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5117
SELECT + - cor0.col2 / + ( col2 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + 25 * 20 AS col2 FROM tab2 AS cor0
----
500
500
500

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + 76 + 28 * col0 AS col2 FROM tab2 AS cor0
----
2260
2288
272

query I rowsort
SELECT DISTINCT - - 41 FROM tab1 AS cor0
----
41

query I rowsort
SELECT ALL - - col0 * col0 * + col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT + ( - 12 ) - col0 FROM tab0 AS cor0
----
-101
-36
-47

query I rowsort
SELECT ALL + col2 * + 98 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT + col0 + + col0 AS col0 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * col0 col1 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5128
SELECT - cor0.col1 DIV - 25 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5128
SELECT - cor0.col1 / - 25 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5129
SELECT - + CAST( NULL AS DECIMAL ) + 83 * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5129
SELECT - + CAST ( NULL AS REAL ) + 83 * - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT ALL col0 + + 25 DIV col1 AS col2 FROM tab1 AS cor0
----
3
66
81

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL col0 + + 25 / col1 AS col2 FROM tab1 AS cor0
----
3
66
81

query I rowsort
SELECT 94 + col1 FROM tab1 AS cor0
----
104
107
120

query I rowsort
SELECT col1 + col1 + - col0 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT col1 + col1 * col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT col0 * col1 + cor0.col0 * + col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT + col1 * + col2 * + col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL - ( + col1 ) * + col0 + 70 FROM tab0 AS cor0
----
-1994
-3325
-8029

query I rowsort
SELECT + col0 + - col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT - 72 AS col2 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL - col1 * - col2 + - col2 - - ( col0 ) AS col2 FROM tab0 AS cor0
----
131
2829
7469

query I rowsort
SELECT DISTINCT 82 AS col2 FROM tab2, tab1 AS cor0
----
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT ALL + col0 DIV col2 AS col0 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL + col0 / col2 AS col0 FROM tab0
----
0
1
35

query I rowsort
SELECT + + col2 * + cor0.col0 * 3 AS col1 FROM tab1 cor0
----
10944
23040
486

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT + col2 DIV col1 AS col2 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5144
SELECT + col2 / col1 AS col2 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * - col0 + col0 col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + col0 * - col1 - - cor0.col0 * - col1 FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT + col1 * col2 + col2 * col1 * - col2 FROM tab1 cor0
----
-118560
-31920
-74412

query I rowsort
SELECT ALL + + col1 + + col1 * 17 FROM tab1 AS cor0
----
180
234
468

onlyif mysql # use DIV operator for integer division
query I rowsort label-5149
SELECT - + col0 DIV + col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5149
SELECT - + col0 / + col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + + CAST ( - col1 AS REAL ) * + col2 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5151
SELECT DISTINCT + cor0.col0 * - CAST( + col0 AS SIGNED ) col0 FROM tab2 cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT + cor0.col0 * - CAST ( + col0 AS INTEGER ) col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL cor0.col0 * + 93 + - 57 * col1 FROM tab2 AS cor0
----
-1116
3891
6378

query I rowsort
SELECT ALL + col2 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT col1 * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5155
SELECT DISTINCT - col2 DIV ( + col1 ) AS col1 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT - col2 / ( + col1 ) AS col1 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT ALL + cor0.col1 + ( col2 * - cor0.col1 ) FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + + col2 + - ( col2 ) * cor0.col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT 39 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 * - col1 col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL 93 * + col0 * + col0 + col1 * col0 FROM tab2
----
4774
570414
581756

query I rowsort
SELECT ALL col0 * col1 + 42 * 27 * - col0 AS col1 FROM tab0
----
-25152
-36295
-92827

query I rowsort
SELECT ALL col1 + col2 AS col1 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 * col1 + col0 * - col0 * col2 col0 FROM tab1
----
-269952
-4698
-714240

query I rowsort
SELECT col0 * col2 + tab2.col1 + + col2 AS col0 FROM tab2
----
2113
247
3057

query I rowsort
SELECT ( 26 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT col1 * - ( + col1 ) + - col0 AS col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col2 + ( col1 ) AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - col0 + - 56 * 17 FROM tab2 AS cor0
----
-1030
-1031
-959

query I rowsort
SELECT DISTINCT - col0 + + col2 AS col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - + col1 * 18 + - col1 * + col0 FROM tab0 AS cor0
----
-3612
-5141
-9737

query I rowsort
SELECT col0 * col0 AS col0 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5173
SELECT ALL + col1 DIV + 44 AS col0 FROM tab0 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL + col1 / + 44 AS col0 FROM tab0 cor0
----
1
2
2

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + cor0.col2 * cor0.col0 * - col2 FROM tab0 AS cor0
----
-18740
-590155
9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5175
SELECT col0 + + CAST( + col0 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-5175
SELECT col0 + + CAST ( + col0 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + col1 + - col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT 47 * - cor0.col2 FROM tab2, tab1 AS cor0
----
-2538
-2679
-4512

query I rowsort
SELECT ALL 4 * col0 - + col2 FROM tab2
----
1
278
286

query I rowsort
SELECT ALL - cor1.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL + - 85 AS col2 FROM tab0, tab1 cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col1 * ( cor0.col1 ) + + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT + + ( col0 ) * col0 * - 7 + cor0.col2 FROM tab1 AS cor0
----
-28615
-44704
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5184
SELECT DISTINCT col0 + + col1 * col0 - - CAST( 73 AS SIGNED ) * - col2 AS col2 FROM tab2
----
-1352
-1747
2782

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT col0 + + col1 * col0 - - CAST ( 73 AS INTEGER ) * - col2 AS col2 FROM tab2
----
-1352
-1747
2782

query I rowsort
SELECT 67 * col2 FROM tab1
----
3618
3819
6432

query I rowsort
SELECT ALL 28 * col0 * + col0 FROM tab2 AS cor0
----
1372
170352
174748

onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT DISTINCT - col0 DIV col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5187
SELECT DISTINCT - col0 / col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - ( + col1 ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT col2 * + col1 + - ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL + + col0 + col2 * - 74 FROM tab2 AS cor0
----
-1846
-1991
-2733

query I rowsort
SELECT + 55 AS col2 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5192
SELECT DISTINCT - ( - col0 ) + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT - ( - col0 ) + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT - + ( - col2 ) + - ( - 85 * - col1 ) FROM tab0 AS cor0
----
-7277
-7653
-8244

query I rowsort
SELECT - col2 + - cor0.col0 AS col0 FROM tab1 cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 85 col0 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col1 * col1 + col1 * 24 FROM tab1 AS cor0
----
-52
140
143

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - - 86 AS col0 FROM tab2 AS cor0
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5201
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - + ( 22 ) * - col1 FROM tab0 AS cor0
----
1892
2002
2134

query I rowsort
SELECT DISTINCT + + 60 FROM tab1 AS cor0
----
60

query I rowsort
SELECT - col2 * col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + ( - col2 ) + - col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col1 * 85 * col2 FROM tab0 AS cor0
----
241230
634270
8245

query I rowsort
SELECT + + 24 * + 6 AS col1 FROM tab1 AS cor0
----
144
144
144

query I rowsort
SELECT DISTINCT - - col1 + + col0 AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5209
SELECT ALL col2 * 19 + + col1 * col1 DIV + col1 + - col1 FROM tab2 AS cor0
----
494
513
722

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL col2 * 19 + + col1 * col1 / + col1 + - col1 FROM tab2 AS cor0
----
494
513
722

query I rowsort
SELECT 82 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT - + ( - col1 ) * col1 + - 72 FROM tab0 AS cor0
----
7324
8209
9337

query I rowsort
SELECT + 30 * + col2 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
1617
1646
2800

query I rowsort
SELECT - - 70 * col0 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT col1 + col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT 22 * col0 FROM tab1 AS cor0
----
1408
1760
66

query I rowsort
SELECT + 92 FROM tab1, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + col1 + + col0 * 49 FROM tab0 AS cor0
----
1262
1812
4452

query I rowsort
SELECT cor0.col2 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - + col0 - - cor0.col1 * + col1 FROM tab0 AS cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + ( col0 ) * - cor0.col1 col0 FROM tab0 cor0
----
177504
329315
737009

query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

onlyif mysql # use DIV operator for integer division
query I rowsort label-5222
SELECT ALL + + col2 + col1 DIV 74 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL + + col2 + col1 / 74 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - col2 + - col1 * col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL tab0.col0 - tab0.col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 + + col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL - col0 + 88 FROM tab1
----
24
8
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT col0 + + 27 DIV 15 + col0 FROM tab1
----
129
161
7

skipif mysql # not compatible
query I rowsort label-5227
SELECT col0 + + 27 / 15 + col0 FROM tab1
----
129
161
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5228
SELECT DISTINCT + col2 / tab0.col0 + 79 * col1 * + col2 + + ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5228
SELECT DISTINCT + col2 / tab0.col0 + 79 * col1 * + col2 + + ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - cor1.col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT DISTINCT col1 + 25 * - 94 FROM tab2
----
-2291
-2319
-2333

query I rowsort
SELECT + + col2 * + ( ( col0 ) ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - cor0.col2 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 * 60 FROM tab0 AS cor0
----
-1440
-2100
-5340

onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT ALL col1 + ( 58 + - col2 ) DIV 2 FROM tab2 AS cor0
----
27
46
75

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL col1 + ( 58 + - col2 ) / 2 FROM tab2 AS cor0
----
27
46
75

query I rowsort
SELECT DISTINCT - col1 * 7 * + 64 FROM tab1 AS cor0
----
-11648
-4480
-5824

onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT DISTINCT - col2 DIV col1 + 57 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT - col2 / col1 + 57 FROM tab0 AS cor0
----
57

query I rowsort
SELECT ALL - col0 + 49 FROM tab1
----
-15
-31
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5238
SELECT col0 DIV - ( + 65 ) AS col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT col0 / - ( + 65 ) AS col2 FROM tab2
----
-1
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5239
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5239
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col2 FROM tab1, tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL 49 FROM tab2, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5242
SELECT + col0 DIV - 82 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT + col0 / - 82 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT 42 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
42

query I rowsort
SELECT tab0.col1 * + 5 * + col2 FROM tab0
----
14190
37310
485

onlyif mysql # use DIV operator for integer division
query I rowsort label-5245
SELECT - ( 79 ) DIV tab1.col2 col1 FROM tab1
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5245
SELECT - ( 79 ) / tab1.col2 col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT + tab1.col0 - - col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT + 61 - - tab0.col1 * col0 DIV + col1 AS col1 FROM tab0
----
150
85
96

skipif mysql # not compatible
query I rowsort label-5247
SELECT + 61 - - tab0.col1 * col0 / + col1 AS col1 FROM tab0
----
150
85
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col1 FROM tab2
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5249
SELECT DISTINCT CAST( - col0 AS SIGNED ) FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT CAST ( - col0 AS INTEGER ) FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col1 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col2 - + col2 * col1 col0 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT 68 FROM tab2
----
68
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col1 FROM tab1
----
87
87
87

query I rowsort
SELECT ALL 98 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT + - col2 + - 47 AS col0 FROM tab1 AS cor0
----
-101
-104
-143

query I rowsort
SELECT DISTINCT + - col1 - + 1 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5257
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + ( 12 ) AS col0 FROM tab2 AS cor0
----
19
90
91

query I rowsort
SELECT ALL - 44 AS col0 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79

query I rowsort
SELECT 45 + tab2.col1 * + tab2.col1 FROM tab2
----
1006
334
3526

query I rowsort
SELECT + col0 * col0 + col0 * + col2 * col2 FROM tab2
----
120317
5152
58812

query I rowsort
SELECT + col1 + col2 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col2 * 45 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT ALL col1 + col0 FROM tab2
----
137
38
96

query I rowsort
SELECT + + cor0.col1 * - cor0.col2 AS col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 9fc71e55d98c21fc68f4af540b1d7651

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 cor0, tab1 AS cor1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT ALL - tab0.col2 + - tab0.col1 DIV col2 AS col1 FROM tab0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - tab0.col2 + - tab0.col1 / col2 AS col1 FROM tab0
----
-35
-83
-98

query I rowsort
SELECT ALL + ( col0 ) + col0 + 8 FROM tab1
----
136
14
168

query I rowsort
SELECT + - col0 + + 22 AS col2 FROM tab1 AS cor0
----
-42
-58
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5272
SELECT - ( col0 ) + - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-5272
SELECT - ( col0 ) + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL - col2 * - cor0.col1 + - 15 AS col0 FROM tab2 AS cor0
----
1519
631
822

query I rowsort
SELECT col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 + col0 - col0 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - ( + col1 ) + - 28 FROM tab2 AS cor0
----
-45
-59
-87

query I rowsort
SELECT 73 FROM tab0, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL + - cor0.col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT cor0.col1 + + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - 68 + col0 FROM tab2 AS cor0
----
-61
10
11

query I rowsort
SELECT + - col2 + col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col2 + col2 AS col0 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT ALL - 25 - col0 AS col1 FROM tab1 AS cor0
----
-105
-28
-89

query I rowsort
SELECT + + cor0.col1 * col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col2 * col2 - + col0 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT - col1 - - col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - ( - 68 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT col1 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT col1 / - col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT + col1 DIV - ( - col1 ) AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5289
SELECT + col1 / - ( - col1 ) AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5290
SELECT col0 * col1 / + col1 + col1 * CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT col0 * col1 / + col1 + col1 * CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 * - 61 AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856

onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT ALL - col0 * ( + cor0.col1 ) DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - col0 * ( + cor0.col1 ) / + cor0.col1 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col1 + 96 * col2 AS col0 FROM tab1 cor0
----
5210
5482
9229

query I rowsort
SELECT + + cor0.col2 * col2 + cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT + ( + col0 ) * col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + 89 + 16 + col2 FROM tab1 AS cor0
----
159
162
201

query I rowsort
SELECT ALL - col0 * - col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + 86 * col0 AS col1 FROM tab1 AS cor0
----
-258
-5504
-6880

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 72eb3d4d523f5d0c69d1b855edd18f4a

query I rowsort
SELECT ALL 1 * cor0.col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT - + CAST( 36 AS SIGNED ) DIV + col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5301
SELECT - + CAST ( 36 AS INTEGER ) / + col0 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT - 55 * - col1 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - 40 FROM tab1 AS cor0
----
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5305
SELECT col1 + ( col2 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT col1 + ( col2 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab2.col0 * col2 AS col1 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5307
SELECT ALL - CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - CAST ( NULL AS REAL ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + col0 + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - col0 + col2 + col1 AS col0 FROM tab0 cor0
----
63
84
95

query I rowsort
SELECT + 52 + col0 FROM tab2 cor0
----
130
131
59

query I rowsort
SELECT DISTINCT - + 7 * + 30 + col2 AS col2 FROM tab0 cor0
----
-128
-177
-209

query I rowsort
SELECT DISTINCT - ( ( cor0.col0 ) ) + - col1 * + col1 + - cor0.col2 FROM tab1 cor0
----
-221
-345
-733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5314
SELECT - CAST( NULL AS SIGNED ) + 67 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5314
SELECT - CAST ( NULL AS INTEGER ) + 67 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 + col2 * col1 AS col2 FROM tab0 cor0
----
14924
194
5676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5316
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 84 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT - col0 * col2 * col1 - - col1 * + col0 AS col2 FROM tab0
----
-656019
-66048
0

query I rowsort
SELECT + tab2.col1 + 43 + col0 * - col1 FROM tab2
----
-1283
-143
-4500

query I rowsort
SELECT ALL + 11 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1236
587
7932

query I rowsort
SELECT ALL + 12 - ( - cor0.col1 ) FROM tab0 AS cor0
----
103
109
98

query I rowsort
SELECT col1 - 19 FROM tab0 AS cor0
----
67
72
78

query I rowsort
SELECT + col1 * + col2 * - col2 AS col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - col0 * ( col1 ) + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - - ( 3 ) * + cor0.col0 FROM tab2 AS cor0
----
21
234
237

onlyif mysql # use DIV operator for integer division
query I rowsort label-5326
SELECT DISTINCT + tab0.col1 DIV + col2 + col1 * 83 AS col0 FROM tab0
----
7140
7554
8148

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT + tab0.col1 / + col2 + col1 * 83 AS col0 FROM tab0
----
7140
7554
8148

query I rowsort
SELECT tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - 74 + 34 + col1 FROM tab0
----
46
51
57

query I rowsort
SELECT + 89 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT col2 * + col0 + col2 + col1 AS col2 FROM tab2
----
2113
247
3057

onlyif mysql # use DIV operator for integer division
query I rowsort label-5331
SELECT DISTINCT - col0 + + ( + col2 ) DIV col1 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT - col0 + + ( + col2 ) / col1 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT + + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5333
SELECT ALL - + col1 - col1 DIV 89 FROM tab0 AS cor0
----
-86
-92
-98

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - + col1 - col1 / 89 FROM tab0 AS cor0
----
-86
-92
-98

query I rowsort
SELECT ( col1 ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT tab0.col1 + ( col2 ) * + col1 AS col0 FROM tab0
----
194
2924
7553

query I rowsort
SELECT col2 + ( ( + tab0.col0 ) ) FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT tab1.col2 - 87 AS col1 FROM tab1
----
-30
-33
9

query I rowsort
SELECT + col1 + col2 * 48 FROM tab1
----
2618
2746
4621

query I rowsort
SELECT DISTINCT col0 - + col2 AS col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL col1 + - col0 AS col1 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5341
SELECT ALL - + col1 + col0 DIV col0 + cor0.col2 * ( - 10 * col2 + ( 87 ) ) FROM tab0 AS cor0
----
-19
-60196
-8104

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL - + col1 + col0 / col0 + cor0.col2 * ( - 10 * col2 + ( 87 ) ) FROM tab0 AS cor0
----
-19
-60196
-8104

query I rowsort
SELECT DISTINCT - cor0.col1 - - 8 * col2 AS col2 FROM tab2 AS cor0
----
149
185
287

query I rowsort
SELECT ALL - cor0.col0 * - col0 + - 34 AS col1 FROM tab2 AS cor0
----
15
6050
6207

query I rowsort
SELECT + col1 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - col2 - - cor0.col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT - - col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - ( cor0.col1 ) * - 36 FROM tab0 cor0
----
3096
3276
3492

query I rowsort
SELECT + 4 + + col2 * col1 FROM tab0 AS cor0
----
101
2842
7466

query I rowsort
SELECT - col2 + + col2 - - col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + ( + col0 ) + cor0.col0 * ( - col0 ) * cor0.col2 - + ( + col2 + - ( cor0.col2 ) ) * col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT DISTINCT - - ( + col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * ( - col2 ) FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5356
SELECT + 81 * + col1 + + CAST( 46 AS SIGNED ) FROM tab2 AS cor0
----
1423
2557
4825

skipif mysql # not compatible
query I rowsort label-5356
SELECT + 81 * + col1 + + CAST ( 46 AS INTEGER ) FROM tab2 AS cor0
----
1423
2557
4825

query I rowsort
SELECT ALL - - cor0.col2 + col1 * - 18 AS col2 FROM tab2 AS cor0
----
-1036
-268
-531

onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT + 47 DIV cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
57
69
96

skipif mysql # not compatible
query I rowsort label-5358
SELECT + 47 / cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
57
69
96

query I rowsort
SELECT DISTINCT + col1 + col1 AS col1 FROM tab0 cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5360
SELECT ( - col0 ) - + col1 DIV col1 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-5360
SELECT ( - col0 ) - + col1 / col1 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + col2 + + ( - cor0.col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col0 * col0 * col2 FROM tab1 cor0
----
233472
486
614400

query I rowsort
SELECT ALL - 35 + - cor1.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 553e80a948704f0418aa78aa2e7cf616

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5366
SELECT DISTINCT + col1 + col0 * CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT + col1 + col0 * CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5367
SELECT + CAST( col2 AS SIGNED ) + col2 * + 5 AS col1 FROM tab1 AS cor0
----
324
342
576

skipif mysql # not compatible
query I rowsort label-5367
SELECT + CAST ( col2 AS INTEGER ) + col2 * + 5 AS col1 FROM tab1 AS cor0
----
324
342
576

query I rowsort
SELECT DISTINCT col0 + col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + ( + 39 ) + col2 AS col0 FROM tab2 AS cor0
----
65
66
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 * + col0 col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT + col1 + col1 * + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT 34 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col2 * col1 + - 71 * + col2 col2 FROM tab0 AS cor0
----
1722
27
528

query I rowsort
SELECT ALL - col2 * 80 - col1 FROM tab1 AS cor0
----
-4346
-4570
-7693

query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 * - col2 + + col0 AS col2 FROM tab2 AS cor0
----
-371
-3978
-5925

query I rowsort
SELECT - 48 AS col0 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab2
----
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5378
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT ALL + - CAST( - tab0.col1 AS SIGNED ) AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL + - CAST ( - tab0.col1 AS INTEGER ) AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + col0 * - col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 59 * col2 FROM tab2 AS cor0
----
1534
1593
2242

query I rowsort
SELECT 20 * + cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 65dc52da6e4ddedde5a12e424f735abb

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab0
----
38

query I rowsort
SELECT DISTINCT + 61 * + 65 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
3965

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5386
SELECT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5386
SELECT - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col1 * col2 * + 89 + col0 - + 75 FROM tab1 AS cor0
----
111077
124884
50719

query I rowsort
SELECT DISTINCT cor0.col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT + - col0 DIV - col0 col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5390
SELECT + - col0 / - col0 col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col0 * - 79 FROM tab2
----
-553
-6162
-6241

query I rowsort
SELECT + col0 + - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col1 * + ( col1 + col1 ) * - cor0.col1 FROM tab2 AS cor0
----
410758
59582
9826

query I rowsort
SELECT cor0.col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 47 + - col0 + cor0.col2 col2 FROM tab2 AS cor0
----
349
3614
3672

query I rowsort
SELECT - 26 * tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ba5ed24ccd3e72d2130b750bb54ec154

query I rowsort
SELECT DISTINCT + col1 - + 55 FROM tab2 AS cor0
----
-24
-38
4

query I rowsort
SELECT ALL - ( - 67 ) * col2 FROM tab2 cor0
----
1742
1809
2546

query I rowsort
SELECT DISTINCT + ( + ( + col0 ) ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + ( 69 ) + + col2 FROM tab1 AS cor0
----
123
126
165

query I rowsort
SELECT + ( cor0.col1 ) * col2 + col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - 88 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5404
SELECT - CAST( NULL AS SIGNED ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT - CAST ( NULL AS INTEGER ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * 30 FROM tab2 AS cor0
----
-210
-2340
-2370

onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT DISTINCT + cor0.col0 + - 71 DIV + 38 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT + cor0.col0 + - 71 / + 38 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT DISTINCT - col1 + col0 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2776
35
7460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - + col1 + + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + 2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL col2 * - col2 + 87 * - col1 AS col0 FROM tab1
----
-10347
-4119
-5178

query I rowsort
SELECT ALL + col0 + 11 + 37 FROM tab0
----
137
72
83

query I rowsort
SELECT + 70 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - cor0.col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5415
SELECT ALL col0 * + 48 + 1 DIV + col2 col0 FROM tab0
----
1152
1681
4272

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL col0 * + 48 + 1 / + col2 col0 FROM tab0
----
1152
1681
4272

onlyif mysql # use DIV operator for integer division
query I rowsort label-5416
SELECT ALL + col1 + ( + 61 ) DIV tab2.col1 FROM tab2
----
20
32
60

skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL + col1 + ( + 61 ) / tab2.col1 FROM tab2
----
20
32
60

query I rowsort
SELECT DISTINCT col1 + 40 AS col1 FROM tab1
----
50
53
66

query I rowsort
SELECT + col0 + + 75 FROM tab1
----
139
155
78

query I rowsort
SELECT ALL - 21 * 29 AS col1 FROM tab0
----
-609
-609
-609

query I rowsort
SELECT 81 AS col2 FROM tab0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5421
SELECT ALL col2 DIV cor0.col0 + ( - col0 ) + - col0 FROM tab0 AS cor0
----
-178
-47
-70

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL col2 / cor0.col0 + ( - col0 ) + - col0 FROM tab0 AS cor0
----
-178
-47
-70

query I rowsort
SELECT + 63 + - col1 AS col0 FROM tab2
----
32
4
46

query I rowsort
SELECT - 22 - tab0.col2 FROM tab0
----
-104
-23
-55

query I rowsort
SELECT + - col0 + col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + col0 * ( col1 ) col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT 7 * col2 + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1320
7298
8

query I rowsort
SELECT + - 83 AS col2 FROM tab0 cor0
----
-83
-83
-83

query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT + col1 DIV col0 - col1 FROM tab0 cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-5429
SELECT + col1 / col0 - col1 FROM tab0 cor0
----
-83
-90
-95

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5431
SELECT DISTINCT + - col2 DIV + col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT + - col2 / + col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT ALL - - col2 * + col2 + 15 FROM tab1 AS cor0
----
2931
3264
9231

query I rowsort
SELECT + - 39 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT ALL + - cor0.col1 + col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5435
SELECT + col1 - + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT + col1 - + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 32 + col0 FROM tab2 AS cor0
----
110
111
39

query I rowsort
SELECT DISTINCT col0 * cor0.col2 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 28 + + col1 AS col1 FROM tab0 AS cor0
----
114
119
125

query I rowsort
SELECT - - col2 * - col1 - - 83 FROM tab1 AS cor0
----
-1165
-1321
-487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

query I rowsort
SELECT DISTINCT + 3 - col1 FROM tab1
----
-10
-23
-7

query I rowsort
SELECT - tab0.col1 * + col2 + tab0.col0 FROM tab0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT + 87 DIV col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5445
SELECT + 87 / col1 FROM tab0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5446
SELECT DISTINCT CAST( NULL AS SIGNED ) - + cor1.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + cor1.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - - col1 - - col2 * 51 AS col0 FROM tab2 cor0
----
1385
1408
1955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col0 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT ALL + ( col1 ) * + col2 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col2 * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - cor0.col1 * col0 + - 14 AS col0 FROM tab0 cor0
----
2050
3381
8085

query I rowsort
SELECT + col2 + - col1 - col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - col2 * - 3 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT col2 + - 90 FROM tab0 cor0
----
-57
-8
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5458
SELECT DISTINCT - col0 DIV + 77 col1 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT - col0 / + 77 col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5459
SELECT ALL + - col2 * - col0 - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL + - col2 * - col0 - col2 / - col2 AS col0 FROM tab1 AS cor0
----
163
3649
7681

onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT ALL + cor0.col1 DIV + 25 + + col2 FROM tab2 AS cor0
----
28
28
38

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + cor0.col1 / + 25 + + col2 FROM tab2 AS cor0
----
28
28
38

query I rowsort
SELECT ALL + - col2 + ( col1 ) * + col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT + cor0.col1 - - col1 * - ( col1 ) FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT - - col1 - - 12 * col1 * col0 AS col1 FROM tab0 AS cor0
----
24854
40837
97279

query I rowsort
SELECT DISTINCT - col2 + col1 - - col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL 89 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT 4 * col1 + col0 + + 37 AS col2 FROM tab2
----
168
184
351

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT ALL cor0.col1 DIV col0 FROM tab2 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL cor0.col1 / col0 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT - + 44 * - col1 FROM tab1 AS cor0
----
1144
440
572

query I rowsort
SELECT ALL - 95 + - col0 * - col2 AS col1 FROM tab0 cor0
----
-60
697
7203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col0 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL + + 35 + - cor0.col2 FROM tab0 AS cor0
----
-47
2
34

query I rowsort
SELECT ALL - col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col2 * col2 + + col1 AS col2 FROM tab2 AS cor0
----
1461
735
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col2 FROM tab1, tab0 cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT ALL - 11 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT + + ( + col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 65 * 48 FROM tab2 AS cor0
----
3120
3120
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5479
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 86 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 86 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + 21 AS col0 FROM tab0 AS cor0
----
-1806
-1911
-2037

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5481
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT + CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 64 FROM tab2 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + col2 col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 * col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col0 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5488
SELECT CAST( NULL AS SIGNED ) * 36 / col1 + - tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5488
SELECT CAST ( NULL AS INTEGER ) * 36 / col1 + - tab0.col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col2 * col2 + 58 FROM tab1 AS cor0
----
-2858
-3191
-9158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT + ( + col0 * - col2 ) - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT + ( + col0 * - col2 ) - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5492
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab0, tab2 cor0
----
79

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( tab2.col2 ) col2 FROM tab2
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5496
SELECT + - CAST( NULL AS SIGNED ) * + cor0.col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT + - CAST ( NULL AS INTEGER ) * + cor0.col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( 73 ) AS col0 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + 96 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT 8 AS col2 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT ALL ( + cor0.col1 ) FROM tab1, tab0 cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - 8 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363

query I rowsort
SELECT - 47 FROM tab0, tab2 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT ( - 68 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + col0 + + col1 AS col2 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT col0 DIV + col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5505
SELECT col0 / + col0 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT ( + col2 ) * + col1 AS col0 FROM tab1
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 * cor0.col0 - + col2 col0 FROM tab1 AS cor0
----
1863
2304
36

query I rowsort
SELECT + col1 + ( + col1 + - 13 ) FROM tab2 cor0
----
105
21
49

query I rowsort
SELECT ( cor0.col1 ) - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 - col0 col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT + col0 - 79 FROM tab1 AS cor0
----
-15
-76
1

query I rowsort
SELECT ALL 74 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5513
SELECT ( col1 ) + - col1 DIV ( col1 ) FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5513
SELECT ( col1 ) + - col1 / ( col1 ) FROM tab0
----
85
90
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5514
SELECT + + CAST( NULL AS SIGNED ) * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5514
SELECT + + CAST ( NULL AS INTEGER ) * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 28 * tab1.col2 AS col1 FROM tab1
----
1512
1596
2688

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 48 * col1 AS col1 FROM tab2 AS cor0
----
1488
2832
816

query I rowsort
SELECT + + col1 + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - cor0.col1 + + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 62 * cor0.col0 + ( col1 ) FROM tab0 cor0
----
-1402
-2073
-5427

query I rowsort
SELECT ALL 51 * + col2 FROM tab2 AS cor0
----
1326
1377
1938

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col1 * cor0.col0 * - col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + col1 * 14 + - 45 * cor0.col2 FROM tab0 AS cor0
----
-2416
-281
1313

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5525
SELECT DISTINCT col0 + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT col0 + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab0, tab0 AS cor0
----
20

query I rowsort
SELECT - col2 * ( col0 ) * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT + col2 * - 81 * + col2 FROM tab0 AS cor0
----
-544644
-81
-88209

query I rowsort
SELECT cor0.col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col1 + 20 AS col0 FROM tab0
----
-66
-71
-77

query I rowsort
SELECT + col0 * + cor0.col0 + - 87 FROM tab2 AS cor0
----
-38
5997
6154

query I rowsort
SELECT col1 + col1 + + cor0.col1 FROM tab1 cor0
----
30
39
78

query I rowsort
SELECT + - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + col0 * 85 + col2 * col2 + cor0.col1 FROM tab2 AS cor0
----
1355
7365
8176

query I rowsort
SELECT ALL + 29 * + col2 FROM tab0 AS cor0
----
2378
29
957

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 80b3ced88f886d6e15182ebf21c93987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 col0 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-5541
SELECT ALL - CAST( 11 AS SIGNED ) col2 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to b479c2926237a341642edb92c755a9f3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL - CAST ( 11 AS INTEGER ) col2 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to b479c2926237a341642edb92c755a9f3

query I rowsort
SELECT + 18 FROM tab2, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT 11 + col0 AS col0 FROM tab0 AS cor0
----
100
35
46

query I rowsort
SELECT - + col1 + col0 * 41 FROM tab1 AS cor0
----
2614
3267
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5545
SELECT + col2 DIV + tab1.col2 + col2 * 23 AS col1 FROM tab1
----
1243
1312
2209

skipif mysql # not compatible
query I rowsort label-5545
SELECT + col2 / + tab1.col2 + col2 * 23 AS col1 FROM tab1
----
1243
1312
2209

query I rowsort
SELECT + 66 * col2 AS col0 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT - 72 FROM tab2
----
-72
-72
-72

query I rowsort
SELECT ALL col2 * col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT 9 FROM tab1
----
9
9
9

query I rowsort
SELECT DISTINCT 10 AS col2 FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 84 * col0 col0 FROM tab2 AS cor0
----
15876
170352
252168

skipif mysql # not compatible
query I rowsort
SELECT - col1 + CAST ( + col0 AS REAL ) + col2 FROM tab1 cor0
----
111
163
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5553
SELECT DISTINCT col2 DIV col1 AS col0 FROM tab2 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT col2 / col1 AS col0 FROM tab2 cor0
----
0
2

query I rowsort
SELECT DISTINCT + col0 * col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + 65 FROM tab2
----
65
65
65

query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT col0 * col0 * col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT + 36 * col1 AS col2 FROM tab1
----
360
468
936

query I rowsort
SELECT 51 * col0 FROM tab1
----
153
3264
4080

query I rowsort
SELECT DISTINCT + col0 + - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + col1 * - col0 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT col2 * - col1 + + ( cor0.col1 ) * col0 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT + tab2.col2 * - col2 FROM tab2 WHERE ( - col0 * - col1 ) IN ( col2 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( NULL ) = col1
----

query I rowsort
SELECT + col2 * + col2 - 18 * - col1 AS col1 FROM tab1 AS cor0
----
3384
3429
9450

query I rowsort
SELECT ALL + 53 FROM tab1 cor0
----
53
53
53

query I rowsort
SELECT ALL + 6 - - col2 AS col1 FROM tab0 AS cor0
----
39
7
88

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab1 AS cor0
----
61

query I rowsort
SELECT ALL - 45 FROM tab1
----
-45
-45
-45

query I rowsort
SELECT - col1 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL - - col1 * - ( 63 * + col1 ) FROM tab1 AS cor0
----
-10647
-42588
-6300

query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - col1 + + col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * 9 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT DISTINCT 33 * + tab2.col0 - - col1 * col2 AS col1 FROM tab2
----
1068
3253
4108

query I rowsort
SELECT DISTINCT 80 + - tab0.col0 - col2 FROM tab0
----
-91
23
44

query I rowsort
SELECT DISTINCT - col2 + - col1 AS col0 FROM tab2
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 + 98 col1 FROM tab2
----
132
160
216

query I rowsort
SELECT col0 + + col0 * - col0 FROM tab0
----
-1190
-552
-7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT 91 DIV col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5580
SELECT 91 / col2 FROM tab1
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5581
SELECT ALL - col1 DIV - col1 + col1 AS col2 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL - col1 / - col1 + col1 AS col2 FROM tab0
----
87
92
98

query I rowsort
SELECT ALL tab2.col2 FROM tab2 WHERE - col1 < NULL
----

query I rowsort
SELECT ALL col0 - col1 FROM tab0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5584
SELECT col2 DIV - col0 + col2 + + tab0.col0 AS col1 FROM tab0
----
171
36
56

skipif mysql # not compatible
query I rowsort label-5584
SELECT col2 / - col0 + col2 + + tab0.col0 AS col1 FROM tab0
----
171
36
56

query I rowsort
SELECT ALL + col1 + col2 - col0 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - col1 )
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - col2 + - tab2.col2 AS col2 FROM tab2
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT DISTINCT + col1 DIV col2 + - tab0.col2 FROM tab0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT + col1 / col2 + - tab0.col2 FROM tab0
----
-31
-81
96

query I rowsort
SELECT ALL - tab0.col2 AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL + col2 - tab0.col2 * + col2 AS col0 FROM tab0
----
-1056
-6642
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > ( col2 - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col1 + - col1 * + col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT + col0 + col2 * - tab2.col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT - col2 + col1 * col1 FROM tab1
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT tab1.col0 DIV - col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT tab1.col0 / - col1 FROM tab1
----
-6
-6
0

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE - tab0.col0 IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT ALL - col0 * - col0 DIV + col0 + col2 * col0 FROM tab2
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-5598
SELECT ALL - col0 * - col0 / + col0 + col2 * col0 FROM tab2
----
196
2106
3081

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT tab2.col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 * + col0 AS col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col2 + col1 / - col0 FROM tab2 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT - col1 * + col2 + - col0 + - col2 * - col0 FROM tab1
----
-1245
3014
6352

query I rowsort
SELECT DISTINCT tab1.col1 + col2 * + col2 AS col0 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT col1 * - tab1.col0 FROM tab1
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5606
SELECT ALL - col1 DIV tab2.col0 + + col1 * - col2 FROM tab2
----
-1534
-646
-841

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL - col1 / tab2.col0 + + col1 * - col2 FROM tab2
----
-1534
-646
-841

query I rowsort
SELECT DISTINCT + col0 * col0 + col1 AS col0 FROM tab1
----
35
4106
6413

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5609
SELECT - tab0.col0 DIV col2 AS col0 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5609
SELECT - tab0.col0 / col2 AS col0 FROM tab0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT col0 * col1 + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT tab0.col0 * - col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 68 FROM tab1, tab1 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab0
----
7

query I rowsort
SELECT ( col2 ) + - 89 FROM tab2 AS cor0
----
-51
-62
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5616
SELECT col2 + col2 DIV - col0 AS col2 FROM tab1
----
36
57
95

skipif mysql # not compatible
query I rowsort label-5616
SELECT col2 + col2 / - col0 AS col2 FROM tab1
----
36
57
95

query I rowsort
SELECT - 29 + ( - col0 + col2 * - 22 ) FROM tab2
----
-630
-679
-944

query I rowsort
SELECT ALL + col1 + col2 * col2 FROM tab0 cor0
----
1175
6815
98

query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - ( - col2 ) + - col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ALL + - 77 - + col1 * - ( col0 + col1 ) FROM tab2 AS cor0
----
1101
1555
8006

query I rowsort
SELECT DISTINCT + + col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + col1 * col1 + ( col1 ) AS col0 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL col2 + - col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - 20 AS col2 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT DISTINCT + - 25 - + col2 FROM tab1 AS cor0
----
-121
-79
-82

query I rowsort
SELECT - + 79 FROM tab2 AS cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - col2 + - col0 * ( col2 ) col2 FROM tab2 AS cor0
----
-185
-1995
-3023

query I rowsort
SELECT - 67 * + col2 FROM tab0 AS cor0
----
-2211
-5494
-67

query I rowsort
SELECT ALL 70 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT ALL - - col1 + - col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + - col0 * - col0 + - 36 FROM tab2 AS cor0
----
13
6048
6205

query I rowsort
SELECT DISTINCT 25 * - col0 + - col1 * - 88 AS col2 FROM tab2 AS cor0
----
-479
2553
3242

query I rowsort
SELECT ALL + 26 * col1 + col0 AS col0 FROM tab2 cor0
----
1612
521
813

query I rowsort
SELECT + col1 * - col0 * - col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL - 50 * col0 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-357
-3978
-4029

query I rowsort
SELECT + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + + col0 * col2 col1 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5642
SELECT DISTINCT - 76 DIV + col1 AS col0 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT - 76 / + col1 AS col0 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT - + 27 * + col0 FROM tab0 cor0
----
-2403
-648
-945

query I rowsort
SELECT DISTINCT - col0 + tab1.col1 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col2 * + 3 FROM tab1
----
162
171
288

query I rowsort
SELECT col2 + - col2 + - 98 * - col0 FROM tab2
----
686
7644
7742

query I rowsort
SELECT ALL + cor0.col1 * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col0 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + + col2 + - 57 * + col1 FROM tab1 AS cor0
----
-1428
-513
-645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * + 16 col1 FROM tab2 cor0
----
112
1248
1264

query I rowsort
SELECT col1 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5653
SELECT - col2 + + ( col2 + col1 ) DIV ( 77 ) FROM tab1 AS cor0
----
-53
-57
-95

skipif mysql # not compatible
query I rowsort label-5653
SELECT - col2 + + ( col2 + col1 ) / ( 77 ) FROM tab1 AS cor0
----
-53
-57
-95

query I rowsort
SELECT - cor0.col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col0 * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5657
SELECT + cor0.col1 + col1 * + ( + col0 ) DIV ( + col0 ) FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-5657
SELECT + cor0.col1 + col1 * + ( + col0 ) / ( + col0 ) FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT DISTINCT col0 * - col0 DIV 1 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT col0 * - col0 / 1 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT ALL + 33 DIV 60 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + 33 / 60 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5660
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab1 cor1, tab2 cor2
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT DISTINCT 92 + + cor0.col2 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT DISTINCT - 30 * - 86 FROM tab0 AS cor0
----
2580

query I rowsort
SELECT - 38 * + 50 FROM tab2 AS cor0
----
-1900
-1900
-1900

query I rowsort
SELECT ALL + 29 + col1 * + col2 FROM tab0 AS cor0
----
126
2867
7491

query I rowsort
SELECT DISTINCT 23 * col0 AS col0 FROM tab2 AS cor0
----
161
1794
1817

onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT DISTINCT - col0 + - col2 DIV 15 AS col2 FROM tab2
----
-79
-8
-81

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT - col0 + - col2 / 15 AS col2 FROM tab2
----
-79
-8
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5668
SELECT ALL + ( col1 ) DIV - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5668
SELECT ALL + ( col1 ) / - col0 AS col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT + + ( cor0.col2 ) + + col1 AS col1 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT ALL CAST( + 73 AS SIGNED ) col1 FROM tab2 AS cor0
----
73
73
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL CAST ( + 73 AS INTEGER ) col1 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT + col0 * 0 FROM tab1
----
0
0
0

query I rowsort
SELECT + + 96 AS col0 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT + + ( + col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 64 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT DISTINCT + + col0 * col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5677
SELECT col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5677
SELECT col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + col1 * - col1 FROM tab0 cor0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-5679
SELECT + ( - col2 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5679
SELECT + ( - col2 ) / - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 77 * + col0 * col0 FROM tab0 AS cor0
----
44352
609917
94325

query I rowsort
SELECT DISTINCT - + col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col2 + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - col1 * + tab0.col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5684
SELECT DISTINCT + ( - col1 ) DIV col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT + ( - col1 ) / col0 FROM tab1
----
-8
0

query I rowsort
SELECT - col2 + + 52 FROM tab2
----
14
25
26

query I rowsort
SELECT + - 76 AS col2 FROM tab0 cor0
----
-76
-76
-76

query I rowsort
SELECT tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - col1 * + cor0.col2 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT 95 AS col0 FROM tab0
----
95
95
95

query I rowsort
SELECT ALL - 10 FROM tab0 cor0
----
-10
-10
-10

query I rowsort
SELECT - col2 * + col1 + - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - - 47 AS col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2, tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col0 FROM tab1
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT DISTINCT - col2 DIV col0 + - col0 AS col2 FROM tab0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT - col2 / col0 + - col0 AS col2 FROM tab0
----
-25
-35
-89

query I rowsort
SELECT - tab2.col1 * col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT 91 AS col2 FROM tab1 cor0
----
91
91
91

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5701
SELECT + col1 DIV + col0 AS col1 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5701
SELECT + col1 / + col0 AS col1 FROM tab1
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT col0 DIV - tab0.col1 + ( col2 ) + + col1 AS col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-5702
SELECT col0 / - tab0.col1 + ( col2 ) + + col1 AS col2 FROM tab0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5703
SELECT + CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT + CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 + col2 ) AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT - 70 * - col1 FROM tab1
----
1820
700
910

query I rowsort
SELECT + ( tab0.col0 ) FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-17
-31
-59

query I rowsort
SELECT 74 * - col1 + col2 AS col0 FROM tab1
----
-1870
-683
-866

query I rowsort
SELECT DISTINCT ( 44 ) AS col2 FROM tab1
----
44

query I rowsort
SELECT ALL + col2 * 88 AS col2 FROM tab0 AS cor0
----
2904
7216
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5711
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5711
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5712
SELECT DISTINCT - CAST( + cor0.col2 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5712
SELECT DISTINCT - CAST ( + cor0.col2 AS INTEGER ) / col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab0 AS cor0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col2 FROM tab2 WHERE col1 + + col0 NOT BETWEEN - col0 AND ( col2 + + col0 / + col1 )
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5715
SELECT DISTINCT + col0 DIV col0 FROM tab2 WHERE col2 - - col2 <> ( + col1 )
----
1

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + col0 / col0 FROM tab2 WHERE col2 - - col2 <> ( + col1 )
----
1

query I rowsort
SELECT DISTINCT - col2 * + tab1.col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col1 * - tab2.col2 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL - tab0.col2 * - tab0.col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + col0 * col2 + - cor0.col2 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + cor0.col1 * col0 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
-118824
-49503
-720729

query I rowsort
SELECT + - col0 * - col2 + col0 * col2 FROM tab2 AS cor0
----
378
4056
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-5723
SELECT + col1 + + col0 * + col0 - + tab2.col2 DIV tab2.col1 AS col2 FROM tab2
----
6143
6256
80

skipif mysql # not compatible
query I rowsort label-5723
SELECT + col1 + + col0 * + col0 - + tab2.col2 / tab2.col1 AS col2 FROM tab2
----
6143
6256
80

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT tab1.col0 * col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT ALL + col1 * - col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5732
SELECT ALL - col0 * col1 + - col2 DIV col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL - col0 * col1 + - col2 / col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 + - col1 * + col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col0 + + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col2 * + tab2.col1 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col1 * - col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - - col0 + col2 * + col2 - col0 * col2 AS col0 FROM tab1 cor0
----
-335
1616
2757

query I rowsort
SELECT + + col2 + col0 - - col0 FROM tab2 AS cor0
----
182
196
41

query I rowsort
SELECT ALL + col0 * col0 * col0 FROM tab2
----
343
474552
493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT col0 * col1 AS col1 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT col0 + col1 DIV col2 AS col2 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5745
SELECT col0 + col1 / col2 AS col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + + col0 * + col1 + col2 - + cor0.col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT + - col2 + col0 * col1 DIV col2 AS col2 FROM tab0 AS cor0
----
16
29
3394

skipif mysql # not compatible
query I rowsort label-5747
SELECT + - col2 + col0 * col1 / col2 AS col2 FROM tab0 AS cor0
----
16
29
3394

onlyif mysql # use DIV operator for integer division
query I rowsort label-5748
SELECT - col1 DIV col0 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5748
SELECT - col1 / col0 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT - col0 + - col1 * col2 + - col2 * + col2 FROM tab2 AS cor0
----
-1573
-2169
-2288

query I rowsort
SELECT + col0 * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - - cor0.col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col2 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab2
----
26
27
38

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0, tab1 cor2, tab2 AS cor3
----
13122 values hashing to f0ffd3c82753160c41277864f42b73c1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5756
SELECT + + col0 * CAST( + ( + col2 ) AS SIGNED ) * - col0 FROM tab2 cor0
----
-1323
-158184
-237158

skipif mysql # not compatible
query I rowsort label-5756
SELECT + + col0 * CAST ( + ( + col2 ) AS INTEGER ) * - col0 FROM tab2 cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT col2 * 17 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT - col0 * + 81 FROM tab0 cor0
----
-1944
-2835
-7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT ALL col1 DIV cor0.col1 + col2 col1 FROM tab2 cor0
----
27
28
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL col1 / cor0.col1 + col2 col1 FROM tab2 cor0
----
27
28
39

query I rowsort
SELECT DISTINCT - cor0.col1 + ( - col1 ) * col1 - 26 AS col1 FROM tab2 AS cor0
----
-1018
-332
-3566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 72 col2 FROM tab1
----
1872
720
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT DISTINCT + col0 + - col0 * col1 DIV + cor0.col0 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT + col0 + - col0 * col1 / + cor0.col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - - col2 - col0 * - col1 FROM tab1 cor0
----
1136
132
697

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT + cor0.col1 * - cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 79ea663c5f468cc57a869fc826cf04a5

query I rowsort
SELECT ALL + col2 + - tab0.col0 * + col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - - col0 - + col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col0 * col2 col1 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5770
SELECT DISTINCT + - CAST( col1 AS SIGNED ) * + col1 - - col1 * - col1 FROM tab1 cor0
----
-1352
-200
-338

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) * + col1 - - col1 * - col1 FROM tab1 cor0
----
-1352
-200
-338

query I rowsort
SELECT DISTINCT - - col0 + + 85 FROM tab2 cor0
----
163
164
92

query I rowsort
SELECT - - col0 + - col1 * + col2 * 96 FROM tab1 AS cor0
----
-119728
-134781
-54656

query I rowsort
SELECT DISTINCT + - 76 FROM tab1 AS cor0
----
-76

query I rowsort
SELECT ALL + 80 * col1 * - col2 + + col1 FROM tab1 AS cor0
----
-112294
-45590
-99827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5775
SELECT + + ( 14 ) + col0 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5775
SELECT + + ( 14 ) + col0 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( + col0 ) + + cor0.col1 * + ( col2 * - cor0.col0 ) FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT - 22 * + col0 FROM tab2 AS cor0
----
-154
-1716
-1738

onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT ALL col0 DIV col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL col0 / col0 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT - ( col1 ) * - ( col0 + cor0.col0 ) FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT + - col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL col0 * + col0 + + col1 FROM tab0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT ALL - tab2.col0 DIV - col0 + + CAST( 98 AS SIGNED ) FROM tab2
----
99
99
99

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL - tab2.col0 / - col0 + + CAST ( 98 AS INTEGER ) FROM tab2
----
99
99
99

query I rowsort
SELECT ALL col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5786
SELECT ALL + col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + col2 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + - 82 FROM tab2 AS cor0
----
-1043
-3563
-371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5788
SELECT + 8 * col0 * - CAST( col2 AS SIGNED ) + + col1 * col0 + col2 AS col2 FROM tab2 cor0
----
-11596
-1268
-22635

skipif mysql # not compatible
query I rowsort label-5788
SELECT + 8 * col0 * - CAST ( col2 AS INTEGER ) + + col1 * col0 + col2 AS col2 FROM tab2 cor0
----
-11596
-1268
-22635

query I rowsort
SELECT ALL - 48 + 80 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT + col2 * ( cor0.col0 + - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT ALL + cor0.col2 * - 6 FROM tab2 AS cor0
----
-156
-162
-228

query I rowsort
SELECT cor0.col0 + 66 FROM tab2 AS cor0
----
144
145
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + ( col2 * + col0 ) - - col2 col0 FROM tab0 AS cor0
----
133
7471
911

query I rowsort
SELECT ALL + col1 * - cor0.col0 + - cor0.col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( cor0.col1 ) col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col0 + 3 AS col1 FROM tab2 cor0
----
10
81
82

query I rowsort
SELECT DISTINCT + col1 - + ( col2 ) * col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL 67 + col2 + + 42 AS col0 FROM tab0
----
110
142
191

query I rowsort
SELECT + col2 * - tab2.col0 + col2 FROM tab2
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5801
SELECT CAST( NULL AS SIGNED ) * - 75 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5801
SELECT CAST ( NULL AS INTEGER ) * - 75 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + col2 * tab1.col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT ALL - tab2.col2 DIV + tab2.col0 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL - tab2.col2 / + tab2.col0 FROM tab2
----
-3
0
0

query I rowsort
SELECT DISTINCT col2 * col0 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT - tab2.col1 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col0 * 27 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT ALL - col2 + + cor0.col0 * col2 FROM tab0 AS cor0
----
34
7216
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + ( + 97 ) col1 FROM tab1 AS cor0
----
107
110
123

query I rowsort
SELECT col0 * + 92 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT tab2.col1 * tab2.col1 + col0 AS col2 FROM tab2
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT ALL col0 DIV 64 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL col0 / 64 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + tab0.col1 * 30 AS col2 FROM tab0
----
2580
2730
2910

query I rowsort
SELECT 27 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT ALL col2 - + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + - col1 * - cor0.col0 * col1 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT + cor0.col1 * + col1 * + ( - col2 ) - + cor0.col0 FROM tab0 cor0
----
-244092
-679131
-9444

query I rowsort
SELECT ALL 66 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT DISTINCT - - cor0.col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - 52 + col1 * + 14 * col2 AS col0 FROM tab2 AS cor0
----
11666
21424
8992

query I rowsort
SELECT 81 * ( col0 ) + - col2 FROM tab0
----
1911
2834
7127

query I rowsort
SELECT DISTINCT col1 + 10 AS col1 FROM tab2
----
27
41
69

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT 56 * col0 + col1 AS col2 FROM tab2
----
423
4427
4441

query I rowsort
SELECT ALL - tab1.col2 + + col1 AS col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - 82 * col2 * - col2 - col2 * 78 FROM tab0
----
4
544972
86724

query I rowsort
SELECT ( col0 ) * col0 + 18 AS col2 FROM tab0
----
1243
594
7939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * + tab0.col1 col1 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to f572af600cf7142c065e03dbee8e8651

query I rowsort
SELECT 73 + + col0 * tab2.col1 FROM tab2
----
1416
290
4675

query I rowsort
SELECT ALL 84 AS col1 FROM tab1
----
84
84
84

query I rowsort
SELECT DISTINCT - - 94 * cor0.col0 + col0 + col0 AS col0 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT ALL + cor0.col1 * col2 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 ) + col2 col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT - col2 * - cor0.col1 + + col0 DIV col2 FROM tab1 AS cor0
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-5835
SELECT - col2 * - cor0.col1 + + col0 / col2 FROM tab1 AS cor0
----
1248
1404
571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + + col2 * col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * col0 - - ( cor0.col2 + + col1 ) col2 FROM tab1 AS cor0
----
353
5891
7389

onlyif mysql # use DIV operator for integer division
query I rowsort label-5839
SELECT ALL - - col2 DIV + col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - - col2 / + col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * - col0 col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col2 + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + + 62 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT ALL - + col1 + + col2 + + ( col0 ) FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col1 * col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + + 84 * + col2 * - col2 + 47 FROM tab2 AS cor0
----
-121249
-56737
-61189

query I rowsort
SELECT DISTINCT col1 - col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ( col1 ) * col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + ( - ( col1 ) * - ( - 69 ) + - col1 ) FROM tab0
----
-6020
-6370
-6790

query I rowsort
SELECT DISTINCT tab1.col1 * col0 AS col2 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col2 col2 FROM tab2 cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5852
SELECT - + ( ( + col0 ) ) * - CAST( cor0.col0 AS SIGNED ) + - cor0.col2 AS col1 FROM tab0 AS cor0
----
1224
543
7839

skipif mysql # not compatible
query I rowsort label-5852
SELECT - + ( ( + col0 ) ) * - CAST ( cor0.col0 AS INTEGER ) + - cor0.col2 AS col1 FROM tab0 AS cor0
----
1224
543
7839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5853
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5854
SELECT col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5854
SELECT col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - 64 + + col2 * col0 AS col0 FROM tab1 cor0
----
3584
7616
98

query I rowsort
SELECT col1 + - col2 * col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT 56 * + cor0.col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
153
1934
4683

query I rowsort
SELECT 5 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - col1 + tab0.col1 * col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT col2 * tab2.col2 FROM tab2
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5862
SELECT DISTINCT + + col2 * col0 DIV + 25 AS col1 FROM tab0 AS cor0
----
1
291
31

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT + + col2 * col0 / + 25 AS col1 FROM tab0 AS cor0
----
1
291
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5863
SELECT col0 DIV 96 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5863
SELECT col0 / 96 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 + col0 - - col2 AS col2 FROM tab0 AS cor0
----
133
143
262

skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( - col1 AS REAL ) - col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col0 * 99 AS col1 FROM tab2 AS cor0
----
693
7722
7821

query I rowsort
SELECT + - col1 + - ( + col2 ) FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - col2 + col0 * - col0 AS col1 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT 4 FROM tab0
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5870
SELECT - col1 * - col0 + - 87 DIV + col1 + - 0 * cor0.col2 FROM tab0 AS cor0
----
2063
3395
8099

skipif mysql # not compatible
query I rowsort label-5870
SELECT - col1 * - col0 + - 87 / + col1 + - 0 * cor0.col2 FROM tab0 AS cor0
----
2063
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - ( - col0 ) + + cor0.col1 col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - cor0.col2 * - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 6ed0b6feb543f25f03c87c0bfe584717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 * col0 col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 * 67 + - col0 col0 FROM tab1 AS cor0
----
-4693
-4754
-4770

query I rowsort
SELECT + 78 FROM tab2, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT - 36 * 78 + col0 FROM tab0 cor0
----
-2719
-2773
-2784

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT ALL + tab0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT DISTINCT col0 * 24 FROM tab1 AS cor0
----
1536
1920
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5881
SELECT ALL + ( ( + col1 / + CAST( NULL AS SIGNED ) / col1 / - col0 / + ( - col0 ) / col0 ) ) * col1 * 42 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL + ( ( + col1 / + CAST ( NULL AS INTEGER ) / col1 / - col0 / + ( - col0 ) / col0 ) ) * col1 * 42 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5882
SELECT - col2 * + col1 + col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5882
SELECT - col2 * + col1 + col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 46 * 64 AS col1 FROM tab2 AS cor0
----
2944
2944
2944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( cor0.col2 ) + col2 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5885
SELECT DISTINCT col1 DIV col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT col1 / col1 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + + col2 * col2 - + col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL + col1 + - 38 FROM tab1 AS cor0
----
-12
-25
-28

query I rowsort
SELECT + - 44 FROM tab2 cor0
----
-44
-44
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5889
SELECT DISTINCT + CAST( + 0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + CAST ( + 0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + ( - col0 ) + + cor0.col2 * + col2 * col1 FROM tab2 AS cor0
----
22592
24469
39806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5891
SELECT - 3 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5891
SELECT - 3 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * + col1 + cor0.col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL + + 0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5894
SELECT + - CAST( - 41 AS SIGNED ) FROM tab1 AS cor0
----
41
41
41

skipif mysql # not compatible
query I rowsort label-5894
SELECT + - CAST ( - 41 AS INTEGER ) FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 64 * col0 AS col0 FROM tab2
----
448
4992
5056

query I rowsort
SELECT - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + - col0 + col1 * col1 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT - 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT + - col2 + + ( + 3 ) + + col0 AS col2 FROM tab1 AS cor0
----
-13
-48
10

query I rowsort
SELECT 41 * col2 AS col0 FROM tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT + 36 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + 50 AS col2 FROM tab0
----
50

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
86

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 cor1, tab2, tab2 cor2
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae

query I rowsort
SELECT + col2 * + col0 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + 19 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5908
SELECT CAST( NULL AS SIGNED ) * 77 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT CAST ( NULL AS INTEGER ) * 77 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + ( tab1.col0 ) FROM tab1
----
0

query I rowsort
SELECT + + 62 + cor0.col0 * col0 FROM tab2 AS cor0
----
111
6146
6303

query I rowsort
SELECT tab2.col1 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT - col2 + + tab2.col0 AS col0 FROM tab2
----
-20
41
52

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 * + col0 + + ( + 1 ) col2 FROM tab1
----
1473
1841
70

query I rowsort
SELECT ALL + 6 FROM tab1
----
6
6
6

query I rowsort
SELECT + - 50 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL - - col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - col0 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5919
SELECT DISTINCT - 27 DIV col2 AS col0 FROM tab0 AS cor0
----
-27
0

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT - 27 / col2 AS col0 FROM tab0 AS cor0
----
-27
0

query I rowsort
SELECT - 42 AS col0 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + - 34 * col0 AS col2 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 FROM tab0 AS cor0
----
110
132
180

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

query I rowsort
SELECT 81 AS col0 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT 0 + + col2 * col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL col2 - col1 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - col2 * - 51 AS col2 FROM tab1
----
2754
2907
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 98 col2 FROM tab2
----
-39
-67
-81

query I rowsort
SELECT tab0.col2 + + col0 AS col2 FROM tab0
----
171
36
57

query I rowsort
SELECT - - col2 + col0 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + col2 * col1 - cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT DISTINCT - cor2.col1 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
-10
-13
-26

query I rowsort
SELECT ( 96 ) * - col0 + + 26 * col1 FROM tab1 AS cor0
----
-5884
-7342
388

onlyif mysql # use DIV operator for integer division
query I rowsort label-5934
SELECT ALL + col1 DIV - 61 + col0 col1 FROM tab0 AS cor0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + col1 / - 61 + col0 col1 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL + 24 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT DISTINCT 26 AS col0 FROM tab1 AS cor0
----
26

query I rowsort
SELECT ( - col0 ) + + col0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - - col2 + 36 * - col2 * 12 AS col2 FROM tab0 AS cor0
----
-14223
-35342
-431

onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT DISTINCT - col0 * + 36 - - cor0.col0 DIV + col1 FROM tab2 cor0
----
-252
-2807
-2840

skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - col0 * + 36 - - cor0.col0 / + col1 FROM tab2 cor0
----
-252
-2807
-2840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5940
SELECT ALL ( col2 ) DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL ( col2 ) / col0 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - col0 + 75 FROM tab1 AS cor0
----
-5
11
72

query I rowsort
SELECT DISTINCT - - 37 * col0 FROM tab0 AS cor0
----
1295
3293
888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT + + CAST( col1 AS SIGNED ) FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5943
SELECT + + CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + - ( 27 ) AS col0 FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT DISTINCT col1 * tab2.col2 DIV + 97 FROM tab2
----
15
6
8

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT col1 * tab2.col2 / + 97 FROM tab2
----
15
6
8

query I rowsort
SELECT ALL + 67 FROM tab2, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT 38 + + 16 DIV + col1 FROM tab0 cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-5947
SELECT 38 + + 16 / + col1 FROM tab0 cor0
----
38
38
38

query I rowsort
SELECT ALL + + col0 + 62 FROM tab1 AS cor0
----
126
142
65

query I rowsort
SELECT + 64 AS col2 FROM tab2 cor0
----
64
64
64

query I rowsort
SELECT ALL - 37 + col0 FROM tab0 AS cor0
----
-13
-2
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT DISTINCT col0 DIV col1 AS col2 FROM tab1 cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-5951
SELECT DISTINCT col0 / col1 AS col2 FROM tab1 cor0
----
0
6

query I rowsort
SELECT - + 48 * + cor0.col1 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT col1 - - col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - - cor0.col1 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT + col1 + col1 DIV col2 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5957
SELECT + col1 + col1 / col2 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5958
SELECT CAST( - col2 AS SIGNED ) + col2 + ( tab2.col2 ) * + col1 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-5958
SELECT CAST ( - col2 AS INTEGER ) + col2 + ( tab2.col2 ) * + col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT 0 * - 11 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 86 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e219687f6f4ab6f7ee442792edcebca9

query I rowsort
SELECT 20 * + col0 + - col2 FROM tab2 AS cor0
----
113
1534
1542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5963
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5963
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + + cor0.col0 * col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ( - col0 ) * + ( col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5967
SELECT DISTINCT + 52 DIV 18 + tab0.col0 AS col0 FROM tab0
----
26
37
91

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT + 52 / 18 + tab0.col0 AS col0 FROM tab0
----
26
37
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col2 FROM tab0, tab1, tab0 AS cor0
----
65

query I rowsort
SELECT DISTINCT + ( 14 ) * tab2.col1 + col2 * - col2 + col1 AS col1 FROM tab2
----
-1189
-264
209

query I rowsort
SELECT + tab1.col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 + col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
12805
16462
9493

query I rowsort
SELECT 24 + col1 AS col2 FROM tab0 AS cor0
----
110
115
121

query I rowsort
SELECT DISTINCT + 57 + col2 * col0 + col2 FROM tab2 cor0
----
2111
273
3097

query I rowsort
SELECT ALL - - cor0.col0 - - col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + - 51 * cor0.col0 FROM tab2 AS cor0
----
-357
-3978
-4029

query I rowsort
SELECT - + col1 * col1 FROM tab0 cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5977
SELECT - - 64 DIV cor0.col1 + - ( - col2 ) DIV col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5977
SELECT - - 64 / cor0.col1 + - ( - col2 ) / col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + ( - 16 ) + col0 * col0 * + col2 FROM tab2
----
1307
158168
237142

query I rowsort
SELECT ALL - col1 + col0 * col1 + tab2.col0 AS col0 FROM tab2
----
1405
193
4621

query I rowsort
SELECT col2 * tab2.col2 + col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL 33 + tab1.col1 + + col0 FROM tab1
----
107
126
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5982
SELECT - CAST( col1 AS SIGNED ) - + col0 * col1 FROM tab2
----
-1360
-248
-4661

skipif mysql # not compatible
query I rowsort label-5982
SELECT - CAST ( col1 AS INTEGER ) - + col0 * col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT 25 * 81 + col2 * ( 62 ) FROM tab2
----
3637
3699
4381

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5984
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + col0 + col0 FROM tab1
----
-48
64
71

skipif mysql # not compatible
query I rowsort label-5984
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + col0 + col0 FROM tab1
----
-48
64
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5985
SELECT DISTINCT + col2 DIV 92 + + 55 * cor0.col0 + + 52 AS col0 FROM tab1 AS cor0
----
217
3572
4453

skipif mysql # not compatible
query I rowsort label-5985
SELECT DISTINCT + col2 / 92 + + 55 * cor0.col0 + + 52 AS col0 FROM tab1 AS cor0
----
217
3572
4453

query I rowsort
SELECT ALL col1 * ( - col2 ) + + col1 * + col1 AS col0 FROM tab1 cor0
----
-1079
-470
-728

query I rowsort
SELECT ALL + col0 * ( cor0.col2 + col1 ) AS col0 FROM tab0 AS cor0
----
15397
2856
3430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - - col2 + ( - col0 + cor0.col1 ) AS col0 FROM tab2 cor0
----
-24
51
7

query I rowsort
SELECT col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col1 * 60 AS col1 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT DISTINCT - col0 * col1 * + col1 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - col0 * 2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5994
SELECT ALL + + cor0.col0 * + CAST( NULL AS SIGNED ) + 21 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL + + cor0.col0 * + CAST ( NULL AS INTEGER ) + 21 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col0 AS col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT 90 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT ALL ( col2 ) * 25 * col2 FROM tab2
----
16900
18225
36100

query I rowsort
SELECT DISTINCT + + col1 + col1 + - col2 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT ALL + 96 FROM tab2, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT + col0 - col1 * - col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - - col0 * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - - col0 * + 58 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT - col0 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 1751d8ec783486b9121baa2709745253

query I rowsort
SELECT - + 86 * + 87 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to e309bd111c718d9d6b3ea624826d5479

query I rowsort
SELECT ALL col2 + - col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL - 3 * - tab0.col0 * + 30 FROM tab0
----
2160
3150
8010

query I rowsort
SELECT ALL + col2 + - col1 * - ( ( - col0 ) ) FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - 25 FROM tab2, tab2 cor0, tab0 cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

query I rowsort
SELECT - col1 - cor0.col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6011
SELECT ALL 17 DIV col2 AS col0 FROM tab0 cor0
----
0
0
17

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL 17 / col2 AS col0 FROM tab0 cor0
----
0
0
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-6012
SELECT DISTINCT - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT - col2 / col2 AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + ( col1 ) * 8 + - cor0.col1 FROM tab0 AS cor0
----
602
637
679

query I rowsort
SELECT ALL - 0 - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + col0 * - col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6016
SELECT - - cor0.col2 + + CAST( + col2 AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-6016
SELECT - - cor0.col2 + + CAST ( + col2 AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + ( col2 ) * - col0 col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - cor0.col2 + + col0 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
-118826
-49569
-720893

query I rowsort
SELECT DISTINCT 37 FROM tab1, tab2 AS cor0
----
37

query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + col0 + 96 + - 68 AS col0 FROM tab2 cor0
----
-50
-51
21

query I rowsort
SELECT col0 * - 56 FROM tab1 AS cor0
----
-168
-3584
-4480

onlyif mysql # use DIV operator for integer division
query I rowsort label-6023
SELECT - - col2 * - 11 + - ( col1 + col1 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
-205
-368
-904

skipif mysql # not compatible
query I rowsort label-6023
SELECT - - col2 * - 11 + - ( col1 + col1 ) / + col2 AS col1 FROM tab0 AS cor0
----
-205
-368
-904

query I rowsort
SELECT cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * col2 col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + col2 * + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col0 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - 28 FROM tab0 AS cor0
----
-28
-28
-28

query I rowsort
SELECT + ( cor0.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-6031
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 6 * - col1 AS col0 FROM tab0 AS cor0
----
-516
-546
-582

onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT + col2 DIV + ( col1 ) FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6033
SELECT + col2 / + ( col1 ) FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT ALL - col1 * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col0 + - 58 AS col1 FROM tab2 AS cor0
----
-51
20
21

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + cor0.col2 * col0 + col2 FROM tab0 cor0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6038
SELECT CAST( NULL AS SIGNED ) / - col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT CAST ( NULL AS INTEGER ) / - col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6039
SELECT + 46 * - col1 - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6039
SELECT + 46 * - col1 - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 52 * col0 - 73 * col0 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT - 80 * col1 - - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-160
-2002
0

query I rowsort
SELECT + col0 * tab1.col2 + + col1 * col0 AS col0 FROM tab1
----
240
4288
8720

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - ( + cor0.col0 ) * + 5 FROM tab0 cor0
----
-120
-175
-445

onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT - col0 + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-6045
SELECT - col0 + col2 / + col0 AS col1 FROM tab1 AS cor0
----
-64
-79
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab2.col1 col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + cor0.col0 + + col1 * col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 + col1 AS REAL ) AS col2 FROM tab0
----
-172
-182
-194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6051
SELECT - col2 DIV col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6051
SELECT - col2 / col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT ALL + 96 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4000
-6304
87

query I rowsort
SELECT - col1 - col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col1 + + ( - cor0.col2 ) FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col2 * col1 * col2 + + ( + col1 ) * + col2 AS col2 FROM tab0 cor0
----
-604422
-90816
0

query I rowsort
SELECT + 1 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT col1 * ( 24 ) AS col1 FROM tab1
----
240
312
624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT ALL col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col2 + col2 ) * + col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 75 AS col0 FROM tab1
----
-75

query I rowsort
SELECT 60 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT ALL 35 DIV tab1.col0 FROM tab1
----
0
0
11

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL 35 / tab1.col0 FROM tab1
----
0
0
11

query I rowsort
SELECT - col2 * col2 FROM tab2 cor0
----
-1444
-676
-729

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d

query I rowsort
SELECT DISTINCT + tab1.col1 + + tab1.col0 FROM tab1
----
29
74
93

query I rowsort
SELECT col1 + - col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * + col2 * col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ALL - col1 + - col2 * col2 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT + col0 + + col1 * - col0 * - col0 AS col1 FROM tab1 WHERE NOT - col1 NOT IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT DISTINCT - col2 DIV - col0 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT - col2 / - col0 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT DISTINCT col2 - col2 AS col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT - col1 * col0 DIV col1 AS col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6074
SELECT - col1 * col0 / col1 AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - col1 + col2 + - col2 FROM tab1
----
-10
-13
-26

query III rowsort
SELECT * FROM tab1 WHERE col2 / + col2 NOT BETWEEN ( NULL ) AND + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6077
SELECT ALL col0 - - col0 DIV tab1.col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL col0 - - col0 / tab1.col1 FROM tab1
----
3
70
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col0 FROM tab1
----
162
3648
7680

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT + col0 * + col0 + col2 * tab1.col0 AS col2 FROM tab1
----
14080
171
7744

query I rowsort
SELECT - col1 * - col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT col2 + col2 + col0 AS col1 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL tab2.col0 + col1 FROM tab2
----
137
38
96

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * + col1 + + col2 <> NULL
----

query I rowsort
SELECT + col2 * tab2.col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL - col1 + - tab1.col0 * col2 AS col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT - 53 + - cor0.col0 - ( cor0.col1 ) * - col1 * col2 FROM tab1 AS cor0
----
16091
36448
5583

query I rowsort
SELECT ALL + col0 * + col0 AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL - col1 + - tab2.col1 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT DISTINCT + col2 * col0 FROM tab2 WHERE NOT ( NULL ) <= ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL - col1 * - col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col1 - - col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - col2 + + tab0.col1 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL col1 * + col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE ( + col2 + col2 ) <= NULL
----

query I rowsort
SELECT + col0 * + tab1.col0 AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col2 * col1 * + col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT tab0.col1 - + tab0.col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * tab2.col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col0 * col0 * - col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL - col2 - + col1 * + col2 AS col1 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT + col1 * col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL col2 * col2 + - col0 * - col0 - + col0 * + cor0.col2 FROM tab2 cor0
----
4683
4732
589

query I rowsort
SELECT ALL + col2 * col2 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT + col0 * col2 + col2 AS col0 FROM tab0
----
36
7380
825

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2
----
54 values hashing to fe43263cad63144a098cccb9cd58c32a

query I rowsort
SELECT ALL + tab2.col2 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - tab0.col0 + col0 * col1 * col1 <= col0 * col2
----
1
33
82

query I rowsort
SELECT ALL + col0 + col2 + - col1 * + col0 AS col2 FROM tab2
----
-1226
-183
-4498

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * - col2 + + col0 + col2 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * - tab0.col2 * col1 col2 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT col2 DIV col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6114
SELECT col2 / col1 FROM tab1
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT ALL + col1 DIV col0 AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL + col1 / col0 AS col2 FROM tab0
----
1
2
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( tab2.col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT DISTINCT - col1 DIV - tab2.col0 col0 FROM tab2
----
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT - col1 / - tab2.col0 col0 FROM tab2
----
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6118
SELECT DISTINCT - col1 * tab1.col0 DIV col1 AS col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - col1 * tab1.col0 / col1 AS col2 FROM tab1
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT ALL col0 * col2 DIV col1 AS col1 FROM tab1
----
364
590
6

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL col0 * col2 / col1 AS col1 FROM tab1
----
364
590
6

query I rowsort
SELECT DISTINCT + cor0.col2 / cor0.col1 - col0 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6121
SELECT DISTINCT col1 DIV col1 + + col1 col1 FROM tab2 AS cor0
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT col1 / col1 + + col1 col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT ALL col1 * col0 + col2 * - col1 FROM tab1 AS cor0
----
-1326
-208
70

query I rowsort
SELECT DISTINCT cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + col2 + col1 + + col2 FROM tab0 cor0 WHERE ( - col1 ) = NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col2 - - col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL col2 + ( 13 ) * col1 AS col0 FROM tab1 AS cor0
----
187
265
392

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + col0 * 15 AS col0 FROM tab2
----
105
1170
1185

query I rowsort
SELECT DISTINCT - ( 28 * col1 ) AS col1 FROM tab0
----
-2408
-2548
-2716

query I rowsort
SELECT ALL + 44 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + ( col0 ) + cor0.col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - ( col0 ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - 40 * - col2 AS col1 FROM tab2 AS cor0
----
1040
1080
1520

query I rowsort
SELECT + ( - 36 ) * - col1 - 33 FROM tab1 AS cor0
----
327
435
903

query I rowsort
SELECT ALL + 12 FROM tab1
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-6138
SELECT col1 * + col2 + ( col2 + col1 ) * - col1 DIV + col1 AS col1 FROM tab0
----
-1
2719
7289

skipif mysql # not compatible
query I rowsort label-6138
SELECT col1 * + col2 + ( col2 + col1 ) * - col1 / + col1 AS col1 FROM tab0
----
-1
2719
7289

query I rowsort
SELECT 92 + - col2 FROM tab0 AS cor0
----
10
59
91

query I rowsort
SELECT DISTINCT cor0.col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

query I rowsort
SELECT DISTINCT - ( col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + 5 + col0 FROM tab0 AS cor0
----
29
40
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6144
SELECT + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6144
SELECT + col0 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT ALL - + col1 DIV + col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - + col1 / + col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL + + 85 AS col0 FROM tab0 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 * col0 * - col0 col0 FROM tab1 AS cor0
----
-117
-53248
-83200

query I rowsort
SELECT ALL - col1 + - col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to b62c1ebc681aca72d13feadb888b3be7

query I rowsort
SELECT ALL - + col2 + + 29 FROM tab1 AS cor0
----
-25
-28
-67

query I rowsort
SELECT DISTINCT + + col2 + 81 FROM tab1 AS cor0
----
135
138
177

query I rowsort
SELECT col1 + 85 FROM tab0 AS cor0
----
171
176
182

query I rowsort
SELECT DISTINCT + cor0.col2 + 81 FROM tab0 AS cor0
----
114
163
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT DISTINCT + + col2 + 87 * col0 DIV col0 AS col2 FROM tab1 AS cor0
----
141
144
183

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT + + col2 + 87 * col0 / col0 AS col2 FROM tab1 AS cor0
----
141
144
183

query I rowsort
SELECT DISTINCT - - col2 - + col2 AS col0 FROM tab1 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6156
SELECT + + col1 * CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6156
SELECT + + col1 * CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + 81 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT + tab1.col2 + col0 FROM tab1
----
121
176
57

query I rowsort
SELECT col2 + ( cor0.col0 ) * cor0.col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL ( tab1.col2 ) * + ( - col0 ) AS col2 FROM tab1
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6162
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6163
SELECT col2 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6163
SELECT col2 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - col2 * - col1 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - - cor0.col2 * 20 + - col0 FROM tab0 AS cor0
----
-15
1551
636

query I rowsort
SELECT + ( + col0 ) + - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT ( 87 ) + - cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c8ac3306ed0eabc6bf009c4678fe677

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query I rowsort
SELECT ALL ( - ( - tab2.col1 ) ) FROM tab2
----
17
31
59

query I rowsort
SELECT ALL 10 FROM tab2
----
10
10
10

query I rowsort
SELECT ALL 83 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT ( - col2 ) * + col0 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 73 - col1 FROM tab1
----
47
60
63

query I rowsort
SELECT col2 + + 75 FROM tab0
----
108
157
76

query I rowsort
SELECT ALL col1 * col2 * + col1 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT - 37 DIV 60 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6177
SELECT - 37 / 60 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 82 AS col0 FROM tab2
----
82
82
82

query I rowsort
SELECT ALL + 93 FROM tab2
----
93
93
93

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

query I rowsort
SELECT + col1 + ( ( col1 ) ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - + col1 * cor0.col2 * col0 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + 54 * + col1 AS col1 FROM tab2
----
1674
3186
918

query I rowsort
SELECT ALL - tab1.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 * + 30 + col2 FROM tab2 AS cor0
----
-19342
-25083
-45994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6188
SELECT col2 + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6188
SELECT col2 + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col1 + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col0 + 61 AS col0 FROM tab2 AS cor0
----
139
140
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab2 cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6193
SELECT + + cor0.col1 * CAST( col0 AS SIGNED ) FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6193
SELECT + + cor0.col1 * CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL col1 + - col2 FROM tab0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col1 FROM tab0
----
110
132
180

query I rowsort
SELECT - col0 - - col1 AS col0 FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL + col0 + col1 * col0 * col0 AS col2 FROM tab2
----
106176
1526
359034

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + col1 * col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT cor0.col2 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL col0 * - col2 + col1 * + col0 AS col1 FROM tab2
----
-1659
2574
28

query I rowsort
SELECT ALL tab0.col0 + + tab0.col1 * tab0.col1 AS col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT ALL - col0 * + cor0.col0 + - col1 + col1 * col1 FROM tab0 AS cor0
----
269
6734
8087

query I rowsort
SELECT - col2 + - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT col2 - col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + col1 * col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 - col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - + col2 + col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6209
SELECT DISTINCT + col0 + col1 DIV col2 + + col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT + col0 + col1 / col2 + + col2 / - col0 AS col1 FROM tab1 AS cor0
----
-15
64
79

query I rowsort
SELECT DISTINCT + col1 + col0 + col0 * col0 * - col2 AS col1 FROM tab1 cor0
----
-233398
-457
-614307

query I rowsort
SELECT DISTINCT + + col1 + + col2 * - cor0.col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + col0 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT 25 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-10
-7273
-767

query I rowsort
SELECT - + 28 - col2 AS col0 FROM tab1 AS cor0
----
-124
-82
-85

query I rowsort
SELECT ALL 53 + - tab0.col2 * + col1 AS col2 FROM tab0
----
-2785
-44
-7409

query I rowsort
SELECT - + 3 AS col2 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL + + col1 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * cor0.col2 col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + 17 + + col0 * - col0 * col0 FROM tab1 AS cor0
----
-10
-262127
-511983

query I rowsort
SELECT DISTINCT + cor0.col0 * col2 + col1 + cor0.col1 AS col0 FROM tab0 cor0
----
229
7480
964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 8 + - col2 * - col0 - + col2 * - col0 col2 FROM tab2 AS cor0
----
386
4064
6012

query I rowsort
SELECT - 29 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT - 49 + cor0.col0 AS col2 FROM tab1 cor0
----
-46
15
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-6226
SELECT + col1 DIV + cor0.col1 + - col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-6226
SELECT + col1 / + cor0.col1 + - col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT - - col2 + - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + col0 + + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT ALL + col0 DIV col2 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + col0 / col2 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT + tab0.col1 * col1 + tab0.col0 AS col0 FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND col2 + - col1 ) AND NOT col2 <= col1
----

query I rowsort
SELECT ALL col0 * tab1.col1 AS col0 FROM tab1
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6237
SELECT + col0 DIV col0 - col0 DIV - cor0.col1 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-6237
SELECT + col0 / col0 - col0 / - cor0.col1 FROM tab2 AS cor0
----
1
2
5

query I rowsort
SELECT - cor0.col2 * col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - - 32 * + col2 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT ALL + cor0.col0 + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT col1 + cor0.col0 - col0 * + col1 FROM tab0 AS cor0
----
-1954
-3263
-7919

query I rowsort
SELECT DISTINCT - col2 * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6243
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - 1 * + col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + - col0 * col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + col0 + col2 AS col1 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT 81 AS col1 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6249
SELECT DISTINCT - col2 DIV - col1 + + ( - cor0.col0 * + col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3000

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT - col2 / - col1 + + ( - cor0.col0 * + col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3000

onlyif mysql # use DIV operator for integer division
query I rowsort label-6250
SELECT DISTINCT 98 + col0 DIV + CAST( + 23 * + col0 AS SIGNED ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-6250
SELECT DISTINCT 98 + col0 / + CAST ( + 23 * + col0 AS INTEGER ) FROM tab0 AS cor0
----
98

query I rowsort
SELECT - col0 + col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - + ( - cor0.col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + 94 + + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
142
164
272

query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6255
SELECT - + col1 + - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6255
SELECT - + col1 + - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + ( col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col1 * - cor0.col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT cor0.col2 * + ( col1 ) AS col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT ALL - - col2 DIV + ( cor0.col0 ) col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6260
SELECT ALL - - col2 / + ( cor0.col0 ) col0 FROM tab0 AS cor0
----
0
0
1

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

query I rowsort
SELECT col1 + - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - col2 * - col2 + 2 - - col1 AS col0 FROM tab0 AS cor0
----
100
1177
6817

query I rowsort
SELECT DISTINCT + - 30 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-30

query I rowsort
SELECT ALL 78 + + col1 FROM tab1
----
104
88
91

query I rowsort
SELECT ALL - 45 AS col1 FROM tab1 cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9

query I rowsort
SELECT ALL ( col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - ( 18 ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT DISTINCT 12 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
12

query I rowsort
SELECT DISTINCT + col1 * + col0 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL 81 + col0 * + col1 AS col1 FROM tab0 cor0
----
2145
3476
8180

query I rowsort
SELECT - ( 52 ) FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT - col0 * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 79 FROM tab2 AS cor0
----
-79

query I rowsort
SELECT ALL col0 * col0 * col2 AS col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT + 44 * + col0 FROM tab0 cor0
----
1056
1540
3916

query I rowsort
SELECT 66 + - col1 FROM tab2
----
35
49
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT CAST( 74 AS SIGNED ) * + col1 + col0 DIV - col0 col2 FROM tab1
----
1923
739
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6280
SELECT CAST ( 74 AS INTEGER ) * + col1 + col0 / - col0 col2 FROM tab1
----
1923
739
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT + col1 + col1 DIV col2 AS col1 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-6281
SELECT + col1 + col1 / col2 AS col1 FROM tab0
----
194
88
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6282
SELECT CAST( NULL AS DECIMAL ) 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-6282
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

query I rowsort
SELECT DISTINCT 74 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
74

query I rowsort
SELECT ( - 78 ) AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

query I rowsort
SELECT - 59 AS col1 FROM tab2
----
-59
-59
-59

query I rowsort
SELECT DISTINCT - + 85 AS col1 FROM tab1, tab0, tab0 AS cor0
----
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT DISTINCT 36 DIV col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT 36 / col1 FROM tab1
----
1
2
3

query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL ( + col0 ) * + cor0.col2 * - 33 + - col0 + col1 FROM tab1 AS cor0
----
-120438
-253507
-5323

query I rowsort
SELECT ALL 52 * + col1 + + ( + 74 + + col2 ) * ( + cor0.col2 ) FROM tab2 AS cor0
----
4339
5140
5668

query I rowsort
SELECT ALL - - col2 * col2 AS col1 FROM tab2 cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-6292
SELECT - col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6292
SELECT - col1 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 19 FROM tab2 cor0
----
-19
-19
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6294
SELECT DISTINCT - 6 * + cor0.col0 + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - 6 * + cor0.col0 + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 5 + cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
22
36
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - tab1.col2 + + ( col1 ) AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL col1 * 66 + + col2 * + col0 AS col1 FROM tab1
----
1878
4308
8538

query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6300
SELECT DISTINCT tab0.col0 + + ( 1 ) DIV - col1 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT tab0.col0 + + ( 1 ) / - col1 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + col1 * - col2 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT tab2.col1 * + ( + ( col0 ) ) + 90 FROM tab2
----
1433
307
4692

query I rowsort
SELECT col0 + + ( - 17 ) AS col1 FROM tab1
----
-14
47
63

query I rowsort
SELECT ALL + col2 + + 31 FROM tab0 cor0
----
113
32
64

query I rowsort
SELECT DISTINCT - - col2 + - col1 * 66 FROM tab1 AS cor0
----
-1662
-603
-762

query I rowsort
SELECT ALL - col1 * col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + col1 + + 51 * - col2 - col1 FROM tab1 AS cor0
----
-2754
-2907
-4896

query I rowsort
SELECT DISTINCT + col2 * + ( 32 ) FROM tab0 AS cor0
----
1056
2624
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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 DISTINCT - - col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col1 * + ( + cor0.col0 * col1 ) + ( col2 ) FROM tab1 cor0
----
13616
2082
6457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6313
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 18 * col0 + + cor0.col0 col2 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT DISTINCT + col1 * + col0 - + col0 * + ( col1 * + col0 ) FROM tab0 AS cor0
----
-115430
-47472
-712712

query I rowsort
SELECT 72 * col1 + + cor0.col1 * - col2 AS col0 FROM tab2 AS cor0
----
1395
2714
578

query I rowsort
SELECT ALL + + col0 + col0 AS col2 FROM tab1 cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - + 95 * col1 AS col1 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT + 75 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT + - col0 * col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + col2 FROM tab1 AS cor0
----
1136
132
697

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + ( col1 ) AS REAL ) * - cor0.col0 * 62 FROM tab0 AS cor0
----
127968
210490
502138

query I rowsort
SELECT ALL + 25 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
16150
20925
38350

query I rowsort
SELECT DISTINCT + + 44 + col0 AS col0 FROM tab2 AS cor0
----
122
123
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT ALL 5 DIV - col0 - col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL 5 / - col0 - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT 58 + + col2 * + col1 * cor0.col0 FROM tab0 AS cor0
----
3453
664176
68170

onlyif mysql # use DIV operator for integer division
query I rowsort label-6328
SELECT ALL 71 * col2 - - col1 * 71 DIV + col0 FROM tab1 AS cor0
----
4058
4449
6827

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL 71 * col2 - - col1 * 71 / + col0 FROM tab1 AS cor0
----
4058
4449
6827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6329
SELECT + + CAST( col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6329
SELECT + + CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + 42 + cor0.col2 AS col2 FROM tab1 AS cor0
----
138
96
99

query I rowsort
SELECT - col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - + tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT + col1 * + ( + cor0.col0 ) FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6335
SELECT col2 + + CAST( NULL AS SIGNED ) + 91 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT col2 + + CAST ( NULL AS INTEGER ) + 91 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 AS col1 FROM tab0 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL ( - col0 ) * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6338
SELECT - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-6338
SELECT - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6339
SELECT DISTINCT + col1 DIV - 53 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT + col1 / - 53 AS col2 FROM tab1
----
0

query I rowsort
SELECT 62 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab1 AS cor0
----
17
31
59

query I rowsort
SELECT - 68 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT col1 * + cor0.col2 * - ( + col2 * col2 ) FROM tab0 AS cor0
----
-3090582
-50174488
-97

query I rowsort
SELECT - + 78 + + cor0.col1 + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
110
3580
7615

onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT - + cor0.col2 DIV col1 AS col2 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6345
SELECT - + cor0.col2 / col1 AS col2 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + - 7 * col1 + + 68 + 32 FROM tab2 AS cor0
----
-117
-19
-313

query I rowsort
SELECT + cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - + cor0.col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + ( + col0 ) + + 8 + col2 AS col2 FROM tab2 cor0
----
112
125
42

query I rowsort
SELECT + 35 FROM tab1, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT DISTINCT - col2 + - col1 AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL col1 + - col0 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT + col0 * 24 AS col1 FROM tab2
----
168
1872
1896

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT ALL + 18 * + col2 FROM tab2
----
468
486
684

query I rowsort
SELECT DISTINCT - ( 30 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-30

query I rowsort
SELECT + col2 + + cor0.col1 * + ( ( col0 ) ) FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL + col2 + col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + ( + cor0.col1 ) AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - - ( + col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL - 54 + - 8 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2
----
29

query I rowsort
SELECT - 14 * col2 AS col2 FROM tab0
----
-1148
-14
-462

query I rowsort
SELECT DISTINCT 87 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
87

query I rowsort
SELECT ALL + - col0 + 40 * - col0 FROM tab1 AS cor0
----
-123
-2624
-3280

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 + CAST ( 11 AS REAL ) * - col0 AS col0 FROM tab2 AS cor0
----
-46
-799
-852

onlyif mysql # use DIV operator for integer division
query I rowsort label-6370
SELECT - cor0.col1 DIV col1 + col1 AS col0 FROM tab1 cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-6370
SELECT - cor0.col1 / col1 + col1 AS col0 FROM tab1 cor0
----
12
25
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6371
SELECT DISTINCT - + col1 * CAST( NULL AS DECIMAL ) * + ( - col0 ) + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT - + col1 * CAST ( NULL AS REAL ) * + ( - col0 ) + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + col1 * + 79 - - 40 AS col0 FROM tab1
----
1147
2097
894

query I rowsort
SELECT - cor1.col0 * - 45 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to db7fd0259ce74d788b1379cb20124324

query I rowsort
SELECT DISTINCT 27 - col2 AS col1 FROM tab0
----
-55
-6
26

query I rowsort
SELECT + tab2.col2 + - col2 * col1 FROM tab2
----
-1508
-608
-810

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 62086d53b7dd9376121857c3d03027d6

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to 566180e0144350a78b0ef3318e8f4c00

query I rowsort
SELECT DISTINCT - 49 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
-49

query I rowsort
SELECT col2 - - tab2.col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - - col0 + + col2 * - 20 FROM tab1 AS cor0
----
-1076
-1077
-1840

query I rowsort
SELECT DISTINCT - + col2 + 53 FROM tab0 AS cor0
----
-29
20
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6382
SELECT CAST( col0 AS SIGNED ) * col0 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-6382
SELECT CAST ( col0 AS INTEGER ) * col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - 18 * - col0 * tab1.col1 FROM tab1
----
11520
1404
18720

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( ( col1 ) AS REAL ) FROM tab1
----
10
13
26

query I rowsort
SELECT + 8 * col1 * + col2 FROM tab0 AS cor0
----
22704
59696
776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6386
SELECT CAST( col2 AS SIGNED ) * col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT CAST ( col2 AS INTEGER ) * col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col1 * + col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + - col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor1.col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + ( col1 ) + + col0 AS col2 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT - col0 * col0 - col2 DIV - ( + cor0.col2 ) FROM tab1 AS cor0
----
-4095
-6399
-8

skipif mysql # not compatible
query I rowsort label-6392
SELECT - col0 * col0 - col2 / - ( + cor0.col2 ) FROM tab1 AS cor0
----
-4095
-6399
-8

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0, tab0 cor1
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

query I rowsort
SELECT + cor0.col1 * - col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT 34 + cor0.col1 FROM tab2, tab1 cor0
----
44
47
60

query I rowsort
SELECT DISTINCT - 38 FROM tab0, tab2 AS cor0
----
-38

query I rowsort
SELECT + + cor0.col2 + + col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 * + 50 AS col1 FROM tab1
----
-2700
-2850
-4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + + col2 col2 FROM tab2
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6400
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) + 31 * col0 / + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) + 31 * col0 / + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col2 + col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6403
SELECT DISTINCT + ( - ( + col0 ) ) + 24 DIV col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + ( - ( + col0 ) ) + 24 / col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab2 AS cor0
----
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6405
SELECT + 35 + ( col0 ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT + 35 + ( col0 ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - cor0.col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 70 * 67 FROM tab0 AS cor0
----
4690
4690
4690

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6408
SELECT DISTINCT - col2 * + col1 + - col0 * + CAST( ( + col2 ) + + ( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1357
-22681
-4206

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT - col2 * + col1 + - col0 * + CAST ( ( + col2 ) + + ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1357
-22681
-4206

query I rowsort
SELECT ALL col1 * tab2.col2 * - tab2.col2 + col1 FROM tab2
----
-22568
-24531
-39825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6410
SELECT ALL CAST( - col2 AS SIGNED ) + + tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL CAST ( - col2 AS INTEGER ) + + tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( - col2 ) + col1 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + 86 AS col2 FROM tab1, tab2 cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL - + col0 * - 94 + col1 * ( - 13 ) * col1 + - 52 * - 42 FROM tab0 AS cor0
----
-116843
-91708
-97103

query I rowsort
SELECT ALL ( 24 ) AS col0 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT + - 38 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT ALL - - cor0.col2 * - ( col2 ) + + cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT + 97 + col2 AS col2 FROM tab2 AS cor0
----
123
124
135

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 + - col0 + 5 AS col0 FROM tab1 AS cor0
----
164
3589
7605

query I rowsort
SELECT + cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - 27 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2106
-2133

query I rowsort
SELECT DISTINCT + col2 + 37 * col2 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT DISTINCT - - col0 * cor0.col2 + - col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6423
SELECT ALL CAST( - 41 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL CAST ( - 41 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL 51 + + col0 FROM tab2 AS cor0
----
129
130
58

query I rowsort
SELECT 29 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - col1 + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col1 * + tab2.col0 + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT col1 * - col2 + + col1 AS col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT + + col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - ( + col1 ) * + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 36 * col2 col1 FROM tab1 AS cor0
----
1944
2052
3456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + + col0 * + col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT col1 DIV col2 AS col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6435
SELECT col1 / col2 AS col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT + col1 * - cor0.col0 + - ( + 58 + - col1 ) * 69 * - cor0.col2 AS col1 FROM tab2 cor0
----
-6396
106159
50084

query I rowsort
SELECT ( col0 ) + + 72 AS col0 FROM tab1 AS cor0
----
136
152
75

query I rowsort
SELECT ALL - col2 * col2 * + cor0.col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL + - ( col0 ) * - ( col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 39 * cor0.col1 + 9 FROM tab2 AS cor0
----
1218
2310
672

query I rowsort
SELECT DISTINCT + 87 FROM tab1 AS cor0
----
87

query I rowsort
SELECT ALL - col1 * + col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - 64 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

query I rowsort
SELECT ALL + col2 + - col0 + ( cor0.col1 ) FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col1 * col1 * col0 AS col2 FROM tab2 AS cor0
----
-22752
-271440
-6720

query I rowsort
SELECT ALL + - col0 + ( - col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - 89 * col2 + - 53 + tab0.col0 FROM tab0
----
-107
-2966
-7262

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26

query I rowsort
SELECT + col2 + col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

query I rowsort
SELECT ALL - col2 * + 37 AS col0 FROM tab1 AS cor0
----
-1998
-2109
-3552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6452
SELECT - col1 + CAST( NULL AS SIGNED ) * - 78 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT - col1 + CAST ( NULL AS INTEGER ) * - 78 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT ALL + cor0.col1 DIV ( - col0 ) FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL + cor0.col1 / ( - col0 ) FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT + col0 * ( col2 + + col1 ) FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT + col0 * - col0 + 25 + col1 * 90 AS col1 FROM tab2 AS cor0
----
-4686
-749
2766

query I rowsort
SELECT ALL col0 - + col0 * 0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - col0 * - 50 FROM tab1 cor0
----
-150
-3200
-4000

onlyif mysql # use DIV operator for integer division
query I rowsort label-6458
SELECT - col0 DIV + ( col1 * - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT - col0 / + ( col1 * - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + 73 AS col0 FROM tab0 AS cor0
----
-1752
-2555
-6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-6460
SELECT col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-6460
SELECT col1 / - col0 AS col1 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT col0 + col2 * + col1 * + col2 FROM tab1 AS cor0
----
119888
32554
75819

query I rowsort
SELECT cor0.col0 + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col2 + ( - col0 ) FROM tab1 AS cor0
----
-7
16
51

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query I rowsort
SELECT ALL + cor1.col1 - 47 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2fa05f22cb1151d8864c242ecbad25d

query I rowsort
SELECT + + 83 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT + 18 FROM tab0, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query IIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

query I rowsort
SELECT 80 FROM tab2, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT tab0.col1 * 0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 6 * + col1 AS col0 FROM tab2 cor0
----
-102
-186
-354

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6472
SELECT + - ( - cor0.col1 ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6472
SELECT + - ( - cor0.col1 ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 9 + 50 AS col2 FROM tab2, tab2 AS cor0
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT - 76 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
1
25

skipif mysql # not compatible
query I rowsort label-6474
SELECT - 76 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
1
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT 49 DIV + col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6475
SELECT 49 / + col1 col1 FROM tab0 AS cor0
----
0
0
0

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6477
SELECT ALL + ( - col2 ) / CAST( NULL AS SIGNED ) + + col0 * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + ( - col2 ) / CAST ( NULL AS INTEGER ) + + col0 * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( tab2.col1 ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT ALL col0 + col2 + col2 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL ( col2 ) * col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL + 87 AS col0 FROM tab0
----
87
87
87

query I rowsort
SELECT - col2 + col1 AS col1 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col2 FROM tab1
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6485
SELECT - col0 + - col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6485
SELECT - col0 + - col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - col0 FROM tab0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6487
SELECT DISTINCT col2 * + col2 * - col2 + 39 DIV col0 AS col1 FROM tab2
----
-17576
-19678
-54872

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT col2 * + col2 * - col2 + 39 / col0 AS col1 FROM tab2
----
-17576
-19678
-54872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * col1 * + 58 col1 FROM tab0 AS cor0
----
164604
174174
185658

query I rowsort
SELECT ALL + col0 + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + 55 * col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT ALL col0 * - col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT + col0 * 84 AS col2 FROM tab2
----
588
6552
6636

query I rowsort
SELECT ALL + 62 FROM tab0, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT 90 FROM tab2, tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT - + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT ALL - 81 FROM tab1
----
-81
-81
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6497
SELECT CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6497
SELECT CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT col2 * col1 + + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT + 49 * + col1 * + col1 + - cor0.col2 FROM tab2 AS cor0
----
14123
170543
47062

query I rowsort
SELECT - 84 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6502
SELECT + - col1 DIV + col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6502
SELECT + - col1 / + col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + - col1 * 97 FROM tab2 cor0
----
-1666
-3038
-5782

query I rowsort
SELECT DISTINCT 14 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
14

query I rowsort
SELECT DISTINCT col1 * col0 * - col1 + col2 * col0 FROM tab0 AS cor0
----
-176712
-329280
-729711

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab2 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - col1 * col0 / col0 + col2 - CAST ( col1 + col2 AS REAL ) FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6508
SELECT col0 - + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT col0 - + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - + col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col0 * col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + + col1 + ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 46 AS REAL ) + cor0.col1 FROM tab1 AS cor0
----
56
59
72

query I rowsort
SELECT - col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - ( cor0.col2 ) * cor0.col2 + 49 AS col0 FROM tab2 AS cor0
----
-1395
-627
-680

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 67 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT - 84 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( + 22 ) + + tab2.col1 * + col2 * + tab2.col0 col1 FROM tab2
----
120224
51870
6453

query I rowsort
SELECT ALL + 53 + col1 - col1 FROM tab0 AS cor0
----
53
53
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6521
SELECT + col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT + col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6522
SELECT CAST( 0 AS SIGNED ) * + cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6522
SELECT CAST ( 0 AS INTEGER ) * + cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab0, tab0 AS cor0
----
78

query I rowsort
SELECT ALL + + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

query I rowsort
SELECT + col0 * + col2 + col1 * - 54 * col0 AS col1 FROM tab2
----
-11529
-246480
-69520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 41 + - col1 + + col2 col2 FROM tab1 AS cor0
----
-13
42
6

query I rowsort
SELECT + col0 * 47 AS col0 FROM tab1 AS cor0
----
141
3008
3760

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 ALL ( 65 ) + col1 FROM tab0 AS cor0
----
151
156
162

query I rowsort
SELECT DISTINCT 74 * + ( col2 ) FROM tab2 cor0
----
1924
1998
2812

query I rowsort
SELECT + 85 FROM tab2, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT DISTINCT ( - col0 ) - + col2 * tab2.col0 * ( col1 ) AS col0 FROM tab2
----
-119730
-51113
-5866

query I rowsort
SELECT + + 92 * + col1 * cor0.col1 FROM tab0 AS cor0
----
680432
761852
865628

query I rowsort
SELECT DISTINCT col1 + + col2 * 87 * cor0.col0 AS col0 FROM tab1 AS cor0
----
14120
317386
668173

query I rowsort
SELECT - 74 AS col2 FROM tab2 cor0
----
-74
-74
-74

query I rowsort
SELECT ALL - col0 - col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - - col2 - col1 AS col2 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 + + col1 col1 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT DISTINCT - 60 * - col2 - col2 FROM tab0 cor0
----
1947
4838
59

query I rowsort
SELECT DISTINCT - + 54 AS col1 FROM tab2 AS cor0
----
-54

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 cor1
----
243 values hashing to 098e223d780e18b6582523fd6f55eec9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6544
SELECT 86 * + col1 + + col1 * CAST( 35 AS SIGNED ) + - col0 AS col0 FROM tab0
----
10382
10922
11702

skipif mysql # not compatible
query I rowsort label-6544
SELECT 86 * + col1 + + col1 * CAST ( 35 AS INTEGER ) + - col0 AS col0 FROM tab0
----
10382
10922
11702

query I rowsort
SELECT 7 + ( - col1 * col1 ) FROM tab2
----
-282
-3474
-954

query I rowsort
SELECT tab1.col0 + - col1 + col0 FROM tab1
----
-20
118
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col1 + col2 - col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab2.col0 - + col0 * 35 * col1 col1 FROM tab2
----
-160966
-46888
-7561

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6550
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6551
SELECT - col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6551
SELECT - col0 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT 78 FROM tab2
----
78
78
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT DISTINCT + col2 DIV + col0 + col1 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + col2 / + col0 + col1 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT + - col2 * 25 AS col2 FROM tab0 AS cor0
----
-2050
-25
-825

query I rowsort
SELECT - cor0.col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 16 AS col1 FROM tab1
----
16
16
16

query I rowsort
SELECT ALL tab2.col0 * 28 FROM tab2, tab2 AS cor0
----
9 values hashing to 166d748b976ff954adc2c70a99a30acc

query I rowsort
SELECT DISTINCT 60 + - col1 FROM tab1
----
34
47
50

query I rowsort
SELECT ALL col0 * col0 + ( - 54 ) * col1 FROM tab2
----
-1625
2898
5323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 col1 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6561
SELECT DISTINCT + tab0.col0 DIV + tab0.col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6561
SELECT DISTINCT + tab0.col0 / + tab0.col2 FROM tab0
----
0
1
35

query I rowsort
SELECT 97 FROM tab0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 - col0 col0 FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 col0 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6565
SELECT - col1 * col2 DIV cor0.col2 col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6565
SELECT - col1 * col2 / cor0.col2 col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6566
SELECT cor0.col0 DIV ( col0 ) AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6566
SELECT cor0.col0 / ( col0 ) AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6567
SELECT ALL + col2 + col0 * + 54 + - col1 DIV - col0 FROM tab1 AS cor0
----
224
3513
4416

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + col2 + col0 * + 54 + - col1 / - col0 FROM tab1 AS cor0
----
224
3513
4416

query I rowsort
SELECT - + 34 + - col1 + - 96 FROM tab0 AS cor0
----
-216
-221
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 + col2 * - col1 col1 FROM tab0 cor0
----
-1322
-15383
-3414

onlyif mysql # use DIV operator for integer division
query I rowsort label-6570
SELECT DISTINCT - cor0.col1 + col1 DIV 81 FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6570
SELECT DISTINCT - cor0.col1 + col1 / 81 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col1 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + col1 * - col0 + col1 * col2 + cor0.col2 FROM tab0 AS cor0
----
-3297
-555
807

query I rowsort
SELECT + col1 + + col1 * - col1 FROM tab0
----
-7310
-8190
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT ALL - CAST( - col1 AS SIGNED ) + tab2.col0 FROM tab2
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL - CAST ( - col1 AS INTEGER ) + tab2.col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT ALL 38 + + col1 DIV col2 col1 FROM tab0
----
135
39
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL 38 + + col1 / col2 col1 FROM tab0
----
135
39
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-6576
SELECT DISTINCT - col1 DIV + col0 + tab2.col2 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-6576
SELECT DISTINCT - col1 / + col0 + tab2.col2 FROM tab2
----
23
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT tab2.col2 + col1 DIV tab2.col0 AS col2 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-6577
SELECT tab2.col2 + col1 / tab2.col0 AS col2 FROM tab2
----
26
31
38

query I rowsort
SELECT DISTINCT tab1.col0 + col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT col1 - col1 * 91 AS col0 FROM tab0
----
-7740
-8190
-8730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6580
SELECT ( col0 + + CAST( col0 AS SIGNED ) ) FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-6580
SELECT ( col0 + + CAST ( col0 AS INTEGER ) ) FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT - - cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col2 * - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( col1 ) + 18 FROM tab2 AS cor0
----
35
49
77

query I rowsort
SELECT DISTINCT - + 98 * col0 + col0 * col2 * col1 AS col0 FROM tab1 AS cor0
----
30208
3918
92000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6585
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6585
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6586
SELECT - - col2 DIV col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6586
SELECT - - col2 / col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - ( + 12 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-6588
SELECT DISTINCT - cor0.col0 DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT - cor0.col0 / - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * + col1 * cor0.col0 + - col0 * col0 FROM tab0 AS cor0
----
-178080
-330540
-744930

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 * cor0.col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT DISTINCT col1 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6594
SELECT ALL CAST( NULL AS SIGNED ) * col1 + + col2 + - 41 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + + col2 + - 41 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col1 col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL - ( col1 ) + col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT col2 + - col0 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + cor0.col1 col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - ( 79 ) FROM tab2 AS cor0
----
-79

query I rowsort
SELECT - cor0.col0 * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + - 48 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL col2 + ( - col2 ) * 76 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT DISTINCT + ( col0 * tab2.col1 + 44 * + tab2.col1 ) FROM tab2
----
1581
2091
7198

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col2 * 42 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT + 82 - ( + col1 * cor0.col2 ) AS col1 FROM tab1 cor0
----
-1166
-1322
-488

query I rowsort
SELECT ALL - + cor0.col1 * + ( + col1 * 55 ) FROM tab2 cor0
----
-15895
-191455
-52855

query I rowsort
SELECT + ( col1 ) * col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + ( col0 ) * + col1 * + col1 AS col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - ( col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - 1 + col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL - 11 AS col2 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT - - col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6615
SELECT ALL + col0 * col1 DIV col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL + col0 * col1 / col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ( ( col2 ) ) + 0 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col1 * col1 + col2 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT ALL 62 AS col0 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT DISTINCT - col0 + col2 * - col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + 41 + + col2 AS col0 FROM tab0 AS cor0
----
123
42
74

query I rowsort
SELECT ALL - ( col1 ) * - 51 + - 87 AS col1 FROM tab1 cor0
----
1239
423
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6622
SELECT DISTINCT 26 DIV - col0 AS col1 FROM tab2 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-6622
SELECT DISTINCT 26 / - col0 AS col1 FROM tab2 AS cor0
----
-3
0

query I rowsort
SELECT DISTINCT - col2 + col1 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT - + col0 * col1 + 88 FROM tab1 AS cor0
----
-552
-952
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT - col2 + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-6625
SELECT - col2 + col2 / col0 AS col1 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - cor0.col1 col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - cor0.col0 * col2 * - ( - col0 ) FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT ALL + col1 * - 93 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6631
SELECT + col1 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-6631
SELECT + col1 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT DISTINCT cor0.col0 DIV + 82 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT cor0.col0 / + 82 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - + col2 + - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col1 * ( + 18 ) AS col2 FROM tab0 AS cor0
----
-1548
-1638
-1746

query I rowsort
SELECT - + col2 - col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6637
SELECT col0 * col1 - col1 DIV ( + col0 ) col0 FROM tab1 AS cor0
----
1040
640
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6637
SELECT col0 * col1 - col1 / ( + col0 ) col0 FROM tab1 AS cor0
----
1040
640
70

query I rowsort
SELECT - - 73 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT ALL + 35 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + col1 + col1 + col1 * - col1 FROM tab1
----
-143
-624
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6641
SELECT DISTINCT - col1 DIV + col0 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-6641
SELECT DISTINCT - col1 / + col0 FROM tab2
----
-4
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6642
SELECT col1 * + col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6642
SELECT col1 * + col0 / - col0 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT ALL + col1 DIV ( + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL + col1 / ( + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6644
SELECT + col1 DIV tab2.col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6644
SELECT + col1 / tab2.col1 FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT - col0 DIV - col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6645
SELECT - col0 / - col0 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT 40 * + col2 FROM tab2
----
1040
1080
1520

query I rowsort
SELECT DISTINCT + col0 * - 81 AS col1 FROM tab1
----
-243
-5184
-6480

query I rowsort
SELECT - tab1.col2 * 63 * - col1 FROM tab1
----
35910
78624
88452

query I rowsort
SELECT + cor0.col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT col2 + col2 AS col0 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT + col1 * + tab2.col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT + + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col1 * - col2 - 13 FROM tab0 AS cor0
----
-110
-2851
-7475

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 AS cor0, tab2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT - 97 AS col2 FROM tab2
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-7
-78
-79

query I rowsort
SELECT ( col1 ) + col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col2 * - col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - ( + col0 ) * + col2 * - ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL + - cor0.col0 + - 55 FROM tab2 AS cor0
----
-133
-134
-62

query I rowsort
SELECT ALL 4 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT col1 * col1 + + 86 FROM tab2 AS cor0
----
1047
3567
375

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 + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - col2 - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - - cor0.col0 * + col1 + + col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT 89 + col1 DIV - col2 FROM tab1
----
89
89
89

skipif mysql # not compatible
query I rowsort label-6668
SELECT 89 + col1 / - col2 FROM tab1
----
89
89
89

query I rowsort
SELECT 46 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT 96 * - col1 FROM tab2
----
-1632
-2976
-5664

query I rowsort
SELECT + ( col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL col2 * + col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + col0 + col1 * 67 AS col1 FROM tab0
----
5786
6186
6534

query I rowsort
SELECT - cor0.col0 + - col2 * 52 FROM tab2 AS cor0
----
-1411
-1430
-2055

query I rowsort
SELECT - col2 * cor0.col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + - 48 * + col0 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT ALL - col2 + + col1 + - 7 FROM tab0 AS cor0
----
2
46
89

query I rowsort
SELECT - + col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col0 * + 85 + - 50 FROM tab2 AS cor0
----
545
6580
6665

query I rowsort
SELECT - + col0 + - col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + col0 * ( + 97 ) - - col2 FROM tab1 AS cor0
----
345
6265
7856

query I rowsort
SELECT - col0 * + ( + 97 ) + col1 * + col2 FROM tab2 cor0
----
-6032
-7017
158

query I rowsort
SELECT ALL + cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( - col0 ) + col0 col1 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT ALL + + col0 - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col0 + + 11 FROM tab2 AS cor0
----
18
89
90

query I rowsort
SELECT ALL - col1 * 42 - col2 FROM tab2 AS cor0
----
-1329
-2504
-752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6688
SELECT col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + cor0.col2 * - col1 * - 85 FROM tab2 AS cor0
----
-130390
-54910
-71145

query I rowsort
SELECT ALL col0 * 73 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
11778
12008
560

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 + - 88 FROM tab2 AS cor0
----
-1532
-764
-817

query I rowsort
SELECT DISTINCT - - col0 - - ( - col0 ) * + col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT + col2 + col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + + col0 * cor0.col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT 49 FROM tab1
----
49
49
49

query I rowsort
SELECT ALL + cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 53 AS col2 FROM tab0
----
-53
-53
-53

query I rowsort
SELECT - - ( - 32 ) * + col2 AS col2 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT - - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - ( 10 ) + col2 FROM tab1 AS cor0
----
44
47
86

query I rowsort
SELECT - + ( - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - - ( col0 ) * + col2 + col1 + cor0.col0 FROM tab0 AS cor0
----
167
7478
902

query I rowsort
SELECT col2 + col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL col2 + + 29 * + col0 AS col1 FROM tab0 cor0
----
1016
2663
729

query I rowsort
SELECT - 28 + 42 FROM tab0 AS cor0
----
14
14
14

query I rowsort
SELECT ALL + col2 + + col2 * col2 * + 58 AS col2 FROM tab0 AS cor0
----
390074
59
63195

query I rowsort
SELECT ALL 59 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT ALL - 60 + + cor0.col1 AS col2 FROM tab0 cor0
----
26
31
37

query I rowsort
SELECT ALL + 13 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6710
SELECT ALL + - col2 * cor0.col0 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6710
SELECT ALL + - col2 * cor0.col0 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT DISTINCT + 9 DIV col2 - + col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT + 9 / col2 - + col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col1 FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 * col0 col1 FROM tab1 cor0
----
-2048
-2560
-96

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL 84 * - col1 + - col0 * ( col2 * col1 + - 46 ) FROM tab2
----
-121020
-48828
-8141

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-6718
SELECT CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6718
SELECT CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6720
SELECT ALL + cor0.col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL + cor0.col0 / - col2 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab2 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - tab2.col2 * - 36 FROM tab2
----
1368
936
972

onlyif mysql # use DIV operator for integer division
query I rowsort label-6723
SELECT + col0 + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-6723
SELECT + col0 + col2 / col0 AS col2 FROM tab2 AS cor0
----
10
78
79

query I rowsort
SELECT DISTINCT - col2 - col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL + col0 + ( col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + ( - 14 ) FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ALL ( - 87 ) + col2 * - cor0.col2 FROM tab1 AS cor0
----
-3003
-3336
-9303

query I rowsort
SELECT + col2 + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col2 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT 50 + - col0 AS col0 FROM tab2 AS cor0
----
-28
-29
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 col1 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) * - ( 23 ) col0 FROM tab1 cor0
----
230
299
598

query I rowsort
SELECT + cor0.col2 * + col2 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-96
35851
551277

onlyif mysql # use DIV operator for integer division
query I rowsort label-6734
SELECT + ( col1 ) + col1 DIV + 75 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6734
SELECT + ( col1 ) + col1 / + 75 FROM tab2
----
17
31
59

query I rowsort
SELECT + 69 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 + - col0 col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT col0 - tab2.col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 44 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT 24 - 6 * tab1.col0 AS col2 FROM tab1, tab2, tab2 AS cor0
----
-360
-456
6

query I rowsort
SELECT + ( col2 ) + + col2 AS col1 FROM tab0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT ALL col2 DIV col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL col2 / col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort
SELECT + + col2 + + CAST ( - 54 AS REAL ) * - col2 FROM tab0 AS cor0
----
1815
4510
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 53 col1 FROM tab1 AS cor0
----
2862
3021
5088

query I rowsort
SELECT - + col0 + cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 * + col0 * col0 AS col2 FROM tab2 cor0
----
-343
-474552
-493039

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6749
SELECT DISTINCT - + col2 + - CAST( 66 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-164
-185
-239

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT - + col2 + - CAST ( 66 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-164
-185
-239

query I rowsort
SELECT ALL - - tab0.col0 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + col1 + + col1 AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL 41 * col2 * 25 AS col0 FROM tab2
----
26650
27675
38950

query I rowsort
SELECT ALL + col0 * + col2 - col2 AS col2 FROM tab1
----
108
3591
7584

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 48366b93fe9110d617672483a489e89c

query I rowsort
SELECT - - col1 + + col0 * col2 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT - - cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - + col2 + 34 - - 88 FROM tab2 AS cor0
----
84
95
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT DISTINCT + col0 DIV + 66 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT + col0 / + 66 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - col1 + - tab0.col1 + ( tab0.col0 ) * - 70 AS col1 FROM tab0
----
-1852
-2644
-6412

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6763
SELECT + CAST( 97 AS SIGNED ) AS col0 FROM tab2 cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-6763
SELECT + CAST ( 97 AS INTEGER ) AS col0 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT + ( col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + cor0.col1 * cor0.col0 - cor0.col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-6766
SELECT DISTINCT - col0 DIV - tab1.col1 col1 FROM tab1
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT - col0 / - tab1.col1 col1 FROM tab1
----
0
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6767
SELECT col1 + + col2 DIV + col0 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6767
SELECT col1 + + col2 / + col0 FROM tab2
----
17
34
59

query I rowsort
SELECT 91 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT 40 * - col0 FROM tab1
----
-120
-2560
-3200

query I rowsort
SELECT + cor0.col2 + + ( - col1 * - col2 ) AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ( + 2 ) AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL - 30 * + col0 FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT 82 * col1 + + col2 FROM tab1 AS cor0
----
1162
2186
877

query I rowsort
SELECT - - col2 + 24 * col2 + ( - col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
122
3663
9512

query I rowsort
SELECT DISTINCT + 96 AS col2 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 * + col2 + cor0.col1 col1 FROM tab2 AS cor0
----
1411
1435
1993

query I rowsort
SELECT ALL ( col2 ) * - col1 - ( + col0 ) FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT ALL - col1 - - col2 * + 59 FROM tab0 AS cor0
----
-38
1861
4747

query I rowsort
SELECT ALL - + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - cor0.col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col1 - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 95 * 48 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
4560

query I rowsort
SELECT ALL ( - col1 ) * ( col1 * - col2 ) + + ( col2 ) AS col0 FROM tab0 AS cor0
----
244101
679124
9410

query I rowsort
SELECT + 54 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1674
3186
918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * ( - col2 * - cor0.col2 ) col1 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT col1 * - 5 AS col0 FROM tab2 AS cor0
----
-155
-295
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT DISTINCT col1 DIV col0 + col1 + col1 FROM tab1 AS cor0
----
20
26
60

skipif mysql # not compatible
query I rowsort label-6787
SELECT DISTINCT col1 / col0 + col1 + col1 FROM tab1 AS cor0
----
20
26
60

query I rowsort
SELECT ALL - + col1 + - 85 * ( col0 ) FROM tab0 AS cor0
----
-2126
-3072
-7656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col1 FROM tab0 cor0
----
-52
-52
-52

query I rowsort
SELECT cor0.col1 + col1 * + cor0.col2 AS col1 FROM tab1 cor0
----
1261
1430
580

query I rowsort
SELECT + + col2 * col1 * ( col0 ) FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col2 col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + - col2 * col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT ( + col1 ) AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 21 FROM tab1, tab1 cor0
----
21

query I rowsort
SELECT - 20 * + col2 AS col1 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT + col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + - col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT 10 * - col0 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT - col0 + ( col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6801
SELECT ALL col1 * CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL col1 * CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col0 * - 60 AS col0 FROM tab0 AS cor0
----
-1440
-2100
-5340

query I rowsort
SELECT - col2 * col1 * col1 + - col1 AS col0 FROM tab0
----
-244154
-679133
-9506

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT - cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 + + col2 col1 FROM tab0 AS cor0
----
127
176
95

query I rowsort
SELECT ALL - + ( + col1 ) AS col2 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT - - 62 * + col0 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT - + ( - col2 ) + + col2 FROM tab0 AS cor0
----
164
2
66

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 489dc4a89dc53914f025e2426f93a929

query I rowsort
SELECT + 79 + + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3a35b3eb13156514ce6822d08335b841

query I rowsort
SELECT - tab0.col1 * 43 + tab0.col0 FROM tab0
----
-3674
-3824
-4136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT ( 78 ) * + col2 FROM tab1
----
4212
4446
7488

query I rowsort
SELECT - tab0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT - 17 AS col2 FROM tab2
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col2 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT - 30 * + col2 FROM tab1 AS cor0
----
-1620
-1710
-2880

query I rowsort
SELECT - col0 + - col1 FROM tab2
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT ALL ( 83 ) DIV col1 AS col0 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL ( 83 ) / col1 AS col0 FROM tab1
----
3
6
8

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 + tab1.col0 + col1 col1 FROM tab1
----
-2887
-3175
-9123

query I rowsort
SELECT ALL + + cor0.col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col2 + col1 FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col0 + - 33 AS col0 FROM tab0 cor0
----
-9
2
56

query I rowsort
SELECT DISTINCT col1 * + tab1.col2 + col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT 3 * - col0 * col2 - - 71 * - col1 * col0 AS col1 FROM tab0
----
-148920
-241150
-596923

query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab1, tab0, tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * col0 col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6831
SELECT ALL - ( col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL - ( col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT - - 2 FROM tab2 AS cor0
----
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6834
SELECT + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6834
SELECT + col2 / col2 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT - 59 + - col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-6835
SELECT - 59 + - col2 / col1 AS col1 FROM tab0 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT - - col0 * - col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b

query I rowsort
SELECT + col0 + + 56 * col0 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT DISTINCT + col2 * + col0 + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT - col0 + 21 FROM tab2
----
-57
-58
14

query I rowsort
SELECT - col0 * 55 AS col0 FROM tab2
----
-385
-4290
-4345

query I rowsort
SELECT DISTINCT col2 * - ( + col1 ) - col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT col2 - col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT cor0.col0 * ( - col1 ) + + cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - 19 + - col0 + col0 AS col2 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT ALL 88 AS col1 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT col0 + + col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - - col1 * col0 + + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL - 95 AS col1 FROM tab0 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL + ( - col1 ) * col2 + cor0.col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT 67 + - col1 FROM tab0 AS cor0
----
-19
-24
-30

query I rowsort
SELECT ALL + + ( + ( - col1 ) ) * col0 + col0 FROM tab0 cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col2 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT ( 73 ) * - col1 AS col2 FROM tab0 AS cor0
----
-6278
-6643
-7081

onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT ALL 49 DIV - 10 FROM tab2, tab0 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL 49 / - 10 FROM tab2, tab0 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT - 95 * - 48 + - col1 * + 90 FROM tab1 AS cor0
----
2220
3390
3660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6858
SELECT col2 * ( col0 ) + - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
7209
768

skipif mysql # not compatible
query I rowsort label-6858
SELECT col2 * ( col0 ) + - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6859
SELECT ALL + + CAST( NULL AS SIGNED ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * cor0.col0 * col2 + ( cor0.col0 * col1 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
-24048
-590248
3395

query I rowsort
SELECT - - ( + col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6862
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 78 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT CAST ( NULL AS REAL ) * 78 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 - + col1 * 0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - col0 - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + + 99 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6868
SELECT DISTINCT + + col0 * ( col1 ) + - col1 * CAST( - col2 + col0 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + + col0 * ( col1 ) + - col1 * CAST ( - col2 + col0 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col0 + 19 AS col2 FROM tab0 AS cor0
----
108
43
54

query I rowsort
SELECT DISTINCT + col0 * - 6 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT ALL cor0.col1 + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT col0 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT DISTINCT col0 DIV cor0.col1 + 93 DIV - col1 AS col1 FROM tab2 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT col0 / cor0.col1 + 93 / - col1 AS col1 FROM tab2 cor0
----
-1
-3
0

query I rowsort
SELECT ALL + - col2 * + ( 96 ) - + col1 * col1 AS col1 FROM tab2 AS cor0
----
-3553
-3937
-5977

query I rowsort
SELECT ALL col0 * col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6877
SELECT - col1 + 95 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-23
-6

skipif mysql # not compatible
query I rowsort label-6877
SELECT - col1 + 95 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-23
-6

query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL col0 * col0 - col2 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
212032
743680
8757

query I rowsort
SELECT ALL - col2 + + 95 FROM tab0 AS cor0
----
13
62
94

query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 FROM tab0 AS cor0
----
7310
8190
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 - 10 col2 FROM tab0
----
1215
566
7911

query I rowsort
SELECT col1 + col0 * - col2 + + col1 AS col0 FROM tab2
----
-127
-1910
-2968

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col0 * col1 - - col1 * col1 FROM tab2 AS cor0
----
1178
1632
8083

query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 * + col1 + ( + col1 ) * + col0 FROM tab1 AS cor0
----
100880
37120
4290

query I rowsort
SELECT ALL + 66 * - col0 - - col0 * + ( ( col1 ) ) FROM tab0 AS cor0
----
1085
2225
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col2 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT ALL + - 14 * + col0 FROM tab1 AS cor0
----
-1120
-42
-896

query I rowsort
SELECT ALL ( - cor0.col0 ) - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT + 41 AS col1 FROM tab1 cor0
----
41
41
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6892
SELECT ALL CAST( - col2 AS SIGNED ) + col0 AS col2 FROM tab0 cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL CAST ( - col2 AS INTEGER ) + col0 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + 76 FROM tab0 AS cor0
----
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6894
SELECT ALL 48 * 90 DIV - col1 AS col1 FROM tab2 AS cor0
----
-139
-254
-73

skipif mysql # not compatible
query I rowsort label-6894
SELECT ALL 48 * 90 / - col1 AS col1 FROM tab2 AS cor0
----
-139
-254
-73

query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - 93 + + col2 - + col2 * col2 * col0 AS col0 FROM tab0 cor0
----
-127
-26196
-598447

query I rowsort
SELECT DISTINCT + - 55 AS col2 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT ALL ( col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col0 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT ( + col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col0 * - 91 FROM tab2
----
-637
-7098
-7189

query I rowsort
SELECT ALL + cor0.col0 * - col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + ( col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab2 cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6906
SELECT ALL + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - col0 * + 61 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT col0 + + col1 + col2 * col2 FROM tab0 AS cor0
----
1199
133
6904

query I rowsort
SELECT ALL + 35 AS col2 FROM tab1 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 * + cor0.col0 col2 FROM tab0 AS cor0
----
1225
3115
840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6911
SELECT CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6911
SELECT CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * col0 col2 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT DISTINCT 67 AS col2 FROM tab0, tab2 AS cor0
----
67

query I rowsort
SELECT + col0 + tab1.col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col2 + col0 * + 76 * - col1 FROM tab2 cor0
----
-102030
-16465
-349726

query I rowsort
SELECT ALL cor0.col2 - - col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT 40 + - col2 AS col2 FROM tab1
----
-14
-17
-56

query I rowsort
SELECT col2 + col2 * - col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab2 AS cor0, tab1, tab2 cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6922
SELECT + 1 DIV col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6922
SELECT + 1 / col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 22 AS col2 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT col0 + cor0.col2 * - ( - col1 ) * col2 FROM tab1 AS cor0
----
119888
32554
75819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + 51 FROM tab0, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - - col0 * ( cor0.col1 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6929
SELECT ALL cor0.col1 + - cor0.col2 * CAST( ( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
1593
663
868

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL cor0.col1 + - cor0.col2 * CAST ( ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - 0 * col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 16 AS col0 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - - 25 + col2 FROM tab1 AS cor0
----
121
79
82

query I rowsort
SELECT DISTINCT + + 3 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
6
67
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

query I rowsort
SELECT ALL + col0 * 84 + + col2 FROM tab0
----
2049
2941
7558

query I rowsort
SELECT + + 98 * cor0.col2 AS col0 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT - col2 * + 66 AS col2 FROM tab1
----
-3564
-3762
-6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-6938
SELECT col1 DIV + col0 AS col1 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-6938
SELECT col1 / + col0 AS col1 FROM tab2
----
0
0
4

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT col2 * - col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + 88 AS col2 FROM tab2 cor0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT ALL - col1 DIV - 12 AS col0 FROM tab0 AS cor0
----
7
7
8

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL - col1 / - 12 AS col0 FROM tab0 AS cor0
----
7
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 4 AS col1 FROM tab0
----
4
4
4

query I rowsort
SELECT + ( tab1.col1 ) + tab1.col0 FROM tab1
----
29
74
93

query I rowsort
SELECT - 73 AS col0 FROM tab2
----
-73
-73
-73

query I rowsort
SELECT - 97 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT - 98 + - col2 * - col0 FROM tab1 AS cor0
----
3550
64
7582

query I rowsort
SELECT DISTINCT + + col1 + col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 30 col0 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT - 34 AS col2 FROM tab0 cor0
----
-34

query I rowsort
SELECT - 16 * + col1 FROM tab0 AS cor0
----
-1376
-1456
-1552

query I rowsort
SELECT DISTINCT + 32 AS col0 FROM tab2 AS cor0
----
32

query I rowsort
SELECT - 67 + + col0 FROM tab1 cor0
----
-3
-64
13

query I rowsort
SELECT + cor1.col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + - 52 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT + - col2 * ( + col1 ) + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col0 * - ( col1 * - col2 ) FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + col2 * col1 AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6961
SELECT col0 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT col0 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + - 2 * - 45 + - col1 + col1 AS col1 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT - ( 39 * cor2.col1 ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to f6c8c2d304a3e09629b9a45b5d57988d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * - 22 * col1 col1 FROM tab0 AS cor0
----
-66220
-70070
-74690

query I rowsort
SELECT DISTINCT - - col1 * col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT 85 * - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-14365
-57460
-8500

query I rowsort
SELECT - ( - col2 ) * 72 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT + 28 * + col1 AS col0 FROM tab2 AS cor0
----
1652
476
868

query I rowsort
SELECT ALL ( - 64 ) AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

query I rowsort
SELECT - col2 * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 82 + - col1 FROM tab2 AS cor0
----
-113
-141
-99

query I rowsort
SELECT + + 82 * col0 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT - + col0 + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + 59 * col2 AS col1 FROM tab0
----
1980
4920
60

query I rowsort
SELECT 40 FROM tab1, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab1, tab2 cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79

query I rowsort
SELECT + ( - col0 ) * col1 + + 38 * col1 FROM tab1 AS cor0
----
-260
-546
910

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0, tab2 AS cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col2 FROM tab2
----
78
78
78

query I rowsort
SELECT + - col2 * - ( + cor0.col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - + col0 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL cor0.col1 + ( ( col0 ) ) * + col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT col1 * ( + 25 ) FROM tab2 cor0
----
1475
425
775

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - 50 * col1 FROM tab0
----
-4300
-4550
-4850

query I rowsort
SELECT 37 * + col0 + col1 FROM tab2
----
290
2940
2945

query I rowsort
SELECT 73 * col1 AS col1 FROM tab1
----
1898
730
949

query I rowsort
SELECT DISTINCT - cor0.col1 + 51 FROM tab2, tab2 AS cor0
----
-8
20
34

query I rowsort
SELECT DISTINCT col2 + + col0 * - 61 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-125871
-207094
-493957

query I rowsort
SELECT - col0 * col2 * + col2 + - col1 + col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT + - col2 + col2 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6993
SELECT ALL - - col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6993
SELECT ALL - - col1 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT cor0.col2 + - col1 * + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + + col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + 35 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

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-6999
SELECT ALL - CAST( NULL AS SIGNED ) + 6 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL - CAST ( NULL AS INTEGER ) + 6 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 * + col1 * + 5 FROM tab1
----
3380
500
845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7001
SELECT - col1 * CAST( + col1 AS SIGNED ) + col2 FROM tab2
----
-251
-3455
-934

skipif mysql # not compatible
query I rowsort label-7001
SELECT - col1 * CAST ( + col1 AS INTEGER ) + col2 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT col1 * - ( + col1 ) + - col2 * ( - col2 ) FROM tab0 AS cor0
----
-1557
-6307
-9408

query I rowsort
SELECT DISTINCT + col1 * - 13 AS col2 FROM tab1 cor0
----
-130
-169
-338

query I rowsort
SELECT ALL + col2 + - col0 + 43 AS col0 FROM tab1
----
36
59
94

query I rowsort
SELECT DISTINCT - 68 * tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
-1768
-680
-884

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT ALL - 68 * 91 AS col2 FROM tab0
----
-6188
-6188
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + col1 * 13 col2 FROM tab2 AS cor0
----
300
410
845

query I rowsort
SELECT + - col1 + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + - col2 * - col0 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7011
SELECT + CAST( - col0 AS SIGNED ) * col0 AS col2 FROM tab0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-7011
SELECT + CAST ( - col0 AS INTEGER ) * col0 AS col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT + tab0.col2 + + 59 FROM tab0
----
141
60
92

query I rowsort
SELECT col0 * col0 + col2 FROM tab2
----
6110
6279
76

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT + 87 - col1 FROM tab2
----
28
56
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * + col0 + col2 col2 FROM tab1
----
318
5689
7136

onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7017
SELECT col1 / col1 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - + col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - - col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + - 72 + - col1 AS col1 FROM tab1 AS cor0
----
-82
-85
-98

query I rowsort
SELECT ALL - - col2 * - col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + - 72 - col1 * col1 FROM tab1 AS cor0
----
-172
-241
-748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + cor0.col0 col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - 47 + + cor0.col0 * + col1 * col2 FROM tab0 AS cor0
----
3348
664071
68065

onlyif mysql # use DIV operator for integer division
query I rowsort label-7025
SELECT ALL col0 DIV col0 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL col0 / col0 AS col2 FROM tab1 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT DISTINCT - col2 * + col0 + ( + ( cor0.col2 ) ) DIV col1 FROM tab2 AS cor0
----
-189
-2028
-3000

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT - col2 * + col0 + ( + ( cor0.col2 ) ) / col1 FROM tab2 AS cor0
----
-189
-2028
-3000

query I rowsort
SELECT ALL + - col0 + - col0 + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1088
1398
442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - col0 * cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT 41 FROM tab0 AS cor0
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT + - ( col0 ) - - ( col1 ) DIV + col1 col1 FROM tab0 AS cor0
----
-23
-34
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7031
SELECT + - ( col0 ) - - ( col1 ) / + col1 col1 FROM tab0 AS cor0
----
-23
-34
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT + 15 DIV - cor0.col2 FROM tab0 AS cor0
----
-15
0
0

skipif mysql # not compatible
query I rowsort label-7032
SELECT + 15 / - cor0.col2 FROM tab0 AS cor0
----
-15
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 - - ( col0 + + col0 ) col2 FROM tab0 AS cor0
----
167
2886
7640

query I rowsort
SELECT ALL 26 AS col1 FROM tab1 AS cor0
----
26
26
26

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2, tab0 AS cor1
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT col2 * - col1 + 82 AS col1 FROM tab1
----
-1166
-1322
-488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab0
----
24
35
89

query I rowsort
SELECT - col1 * col0 + col2 * col0 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab1, tab1 cor0
----
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-7040
SELECT - col1 * ( + tab0.col1 ) DIV + col0 + col2 * - col2 + col1 AS col1 FROM tab0
----
-1311
-172
-6726

skipif mysql # not compatible
query I rowsort label-7040
SELECT - col1 * ( + tab0.col1 ) / + col0 + col2 * - col2 + col1 AS col1 FROM tab0
----
-1311
-172
-6726

query I rowsort
SELECT + ( - 72 ) FROM tab2
----
-72
-72
-72

query I rowsort
SELECT + 32 FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - 30 FROM tab1, tab1 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) AS col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7045
SELECT ALL 34 DIV 46 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL 34 / 46 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - - cor0.col0 * + col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + - ( - col0 ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL 39 FROM tab2
----
39
39
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7049
SELECT - + CAST( col2 AS SIGNED ) * col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7049
SELECT - + CAST ( col2 AS INTEGER ) * col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7050
SELECT ALL + CAST( NULL AS DECIMAL ) + col2 * cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL + CAST ( NULL AS REAL ) + col2 * cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7051
SELECT ALL + col1 * tab0.col1 DIV 13 + + ( - tab0.col2 * ( + 89 ) ) FROM tab0
----
-2369
-6661
634

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL + col1 * tab0.col1 / 13 + + ( - tab0.col2 * ( + 89 ) ) FROM tab0
----
-2369
-6661
634

query I rowsort
SELECT ALL ( col1 ) + col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + + ( - col0 ) * col1 + + ( col2 ) FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - col0 * + cor0.col2 + - 42 FROM tab0 AS cor0
----
-7340
-77
-834

query I rowsort
SELECT ALL - - 26 + - col0 AS col0 FROM tab0 AS cor0
----
-63
-9
2

query I rowsort
SELECT ALL + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + 59 AS col1 FROM tab1
----
59
59
59

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - + col1 + - 19 FROM tab1 AS cor0
----
-29
-32
-45

query I rowsort
SELECT ALL - col1 + + 30 * + col2 AS col1 FROM tab2 AS cor0
----
1123
721
779

query I rowsort
SELECT cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-57

query I rowsort
SELECT - col1 * - col0 + 1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + - col1 * col2 * col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT + col1 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7068
SELECT + col1 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col2 * + col1 + + ( - col1 ) AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT + col1 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7071
SELECT + col0 DIV CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7071
SELECT + col0 / CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT col2 * - 45 * cor0.col0 + col0 * ( - 13 ) DIV - col1 FROM tab0 cor0
----
-1571
-328398
-35637

skipif mysql # not compatible
query I rowsort label-7072
SELECT col2 * - 45 * cor0.col0 + col0 * ( - 13 ) / - col1 FROM tab0 cor0
----
-1571
-328398
-35637

query I rowsort
SELECT + tab0.col0 * - 98 FROM tab0
----
-2352
-3430
-8722

query I rowsort
SELECT ALL + col0 * col0 + + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + col2 * + 56 * + 40 - col0 FROM tab2 AS cor0
----
58162
60473
85041

query I rowsort
SELECT - col2 + + 19 FROM tab2 AS cor0
----
-19
-7
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7077
SELECT + CAST( - col2 AS SIGNED ) + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7363
8199
9408

skipif mysql # not compatible
query I rowsort label-7077
SELECT + CAST ( - col2 AS INTEGER ) + + col1 * col1 AS col0 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT - 14 + col2 AS col2 FROM tab0 AS cor0
----
-13
19
68

query I rowsort
SELECT + 74 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-8
41
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7080
SELECT - CAST( col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-7080
SELECT - CAST ( col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
53
9
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT 85 * + 78 * + col1 + ( - 85 ) AS col1 FROM tab2 cor0
----
112625
205445
391085

query I rowsort
SELECT col0 + col1 * col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT col2 + col2 * col1 + + 78 AS col0 FROM tab2 AS cor0
----
1638
762
942

query I rowsort
SELECT DISTINCT 39 * - cor0.col1 AS col2 FROM tab0 cor0
----
-3354
-3549
-3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 8 * + col2 + - col1 FROM tab0 AS cor0
----
-89
178
565

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 ALL + + col2 + - col0 * + col2 FROM tab0 AS cor0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-7090
SELECT DISTINCT - col0 DIV - col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7090
SELECT DISTINCT - col0 / - col0 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col1 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 * + col2 - CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + col2 * - col2 + - col0 FROM tab2
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT col2 + 47 + - col2 AS col0 FROM tab0
----
47

query I rowsort
SELECT + + cor0.col1 + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT 4 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT - - col2 + 60 FROM tab1 AS cor0
----
114
117
156

query I rowsort
SELECT col1 * - col0 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL - ( + col1 ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab2
----
72

query I rowsort
SELECT ALL 13 * ( + col2 ) * tab1.col2 FROM tab1
----
119808
37908
42237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 * col1 col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL + 23 + col2 FROM tab2 AS cor0
----
49
50
61

query I rowsort
SELECT ALL - col0 * col0 + ( col0 + col2 ) FROM tab1 AS cor0
----
-3975
-6224
48

query I rowsort
SELECT DISTINCT - - 86 FROM tab2 AS cor0
----
86

query I rowsort
SELECT DISTINCT 24 + col1 FROM tab2
----
41
55
83

query I rowsort
SELECT DISTINCT + 75 + col2 FROM tab2
----
101
102
113

query I rowsort
SELECT DISTINCT - 54 + - col1 * col1 FROM tab0
----
-7450
-8335
-9463

query I rowsort
SELECT + ( - 50 ) * col2 AS col0 FROM tab0
----
-1650
-4100
-50

query I rowsort
SELECT 31 + col2 * + 2 AS col1 FROM tab0 AS cor0
----
195
33
97

query I rowsort
SELECT + col2 * - col0 + + col1 + 3 AS col2 FROM tab0 cor0
----
-703
-7204
65

query I rowsort
SELECT ALL - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + - col2 + col0 + - col1 FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT DISTINCT col2 * + col0 + 12 * col1 * + col0 + 38 FROM tab1 cor0
----
1136
11366
20198

onlyif mysql # use DIV operator for integer division
query I rowsort label-7115
SELECT + col2 DIV col2 + col0 * - col0 + + col2 AS col1 FROM tab1 AS cor0
----
-4038
-6303
46

skipif mysql # not compatible
query I rowsort label-7115
SELECT + col2 / col2 + col0 * - col0 + + col2 AS col1 FROM tab1 AS cor0
----
-4038
-6303
46

query I rowsort
SELECT - col1 * tab1.col0 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT col0 * + col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col0 AS REAL ) * + col1 * - 54 - - col1 FROM tab2 cor0
----
11749
248567
72539

query I rowsort
SELECT 75 AS col1 FROM tab1 AS cor0
----
75
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col2 * + col1 col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + - ( - col0 ) * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 * col1 * col2 AS col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + 77 * - col2 FROM tab1 AS cor0
----
-4158
-4389
-7392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7126
SELECT DISTINCT + - CAST( ( - col1 ) AS SIGNED ) * col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-7126
SELECT DISTINCT + - CAST ( ( - col1 ) AS INTEGER ) * col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 87 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT - - ( 85 ) + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
2113
274
3087

query I rowsort
SELECT ALL + 45 + + 50 * col0 FROM tab2 AS cor0
----
3945
395
3995

onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT - col1 * col1 + col0 DIV - 34 FROM tab0 AS cor0
----
-7396
-8283
-9410

skipif mysql # not compatible
query I rowsort label-7131
SELECT - col1 * col1 + col0 / - 34 FROM tab0 AS cor0
----
-7396
-8283
-9410

query I rowsort
SELECT ALL - 46 * 77 AS col1 FROM tab2 AS cor0
----
-3542
-3542
-3542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7134
SELECT ALL + + 46 DIV + col2 + - col2 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL + + 46 / + col2 + - col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col1 * 66 - - col1 AS col2 FROM tab2 AS cor0
----
1139
2077
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 56 * + col2 + - col0 col0 FROM tab0 AS cor0
----
1824
21
4503

query I rowsort
SELECT DISTINCT col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 40 + + 34 AS col2 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT - - cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - ( col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col2 + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - 0 * - col0 - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT cor0.col1 * - ( - col0 ) + ( + col1 ) FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + 49 * col2 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT ALL + col0 * + 89 + - col2 + - cor0.col0 AS col0 FROM tab2 cor0
----
589
6838
6914

query I rowsort
SELECT + 33 + + col1 AS col1 FROM tab0 AS cor0
----
119
124
130

query I rowsort
SELECT ALL + + col1 + - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + 95 AS col2 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT ALL - col1 * col1 - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT col0 + + cor0.col0 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT col0 + + col2 DIV col0 AS col2 FROM tab0 cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-7152
SELECT col0 + + col2 / col0 AS col2 FROM tab0 cor0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - cor0.col1 col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 + col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col1 * + cor0.col0 + col0 AS col2 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL - + 62 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT + col1 + 19 AS col0 FROM tab1
----
29
32
45

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab1, tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT + + col0 + - 39 AS col2 FROM tab2 AS cor0
----
-32
39
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-7162
SELECT DISTINCT + col1 + + 92 DIV 36 AS col2 FROM tab2 cor0
----
19
33
61

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT + col1 + + 92 / 36 AS col2 FROM tab2 cor0
----
19
33
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + ( + col2 ) * - col2 col2 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7164
SELECT - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col2 * 76 AS col1 FROM tab0 AS cor0
----
2508
6232
76

query I rowsort
SELECT ALL - - col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - col1 - tab1.col1 * + col2 AS col2 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - + 55 * + col2 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT ALL - ( + 89 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-623
-6942
-7031

query I rowsort
SELECT ALL - 66 + 42 * col2 FROM tab0 AS cor0
----
-24
1320
3378

query I rowsort
SELECT DISTINCT + col2 + col2 * + col2 * - col2 FROM tab0 cor0
----
-35904
-551286
0

query I rowsort
SELECT + cor0.col1 * + 53 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 81b191200f3cb1721594ff604da49844

query I rowsort
SELECT col0 * - 92 + + col0 AS col2 FROM tab0
----
-2184
-3185
-8099

query I rowsort
SELECT ALL - col0 * col1 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 64 FROM tab2, tab0 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT col1 + - 39 FROM tab1
----
-13
-26
-29

query I rowsort
SELECT + cor0.col1 * col2 * col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 + col0 col0 FROM tab2 AS cor0
----
21
234
237

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN col2 AND col1 * + col1 - - col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT cor0.col2 * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - col1 + + col1 + col2 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col0 * + tab1.col2 + + col0 + + col1 FROM tab1
----
191
3722
7773

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) = - col1 * col0 + + col1 * col2
----

query I rowsort
SELECT - col1 + + col2 * - cor0.col1 + + col1 * col0 AS col0 FROM tab2 AS cor0
----
-651
3009
680

query I rowsort
SELECT tab2.col1 AS col1 FROM tab2 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT col0 * + tab2.col1 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col2 * col0 AS col1 FROM tab2 WHERE NULL >= col1 + + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7189
SELECT + col1 DIV col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7189
SELECT + col1 / col2 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL col0 + + tab1.col0 AS col1 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab0.col1 col1 FROM tab0 WHERE NULL IN ( tab0.col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 - + col1 col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + col2 * + col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 + tab1.col0 AS col2 FROM tab1
----
128
160
6

query I rowsort
SELECT col2 + col0 * col1 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - tab2.col1 col0 FROM tab2
----
0

query I rowsort
SELECT + + col0 * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT ALL col0 + col1 - col0 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col0 - tab0.col0 * col1 AS col2 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + col1 * + tab2.col1 - + col0 AS col1 FROM tab2
----
210
3403
954

query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT + col1 + + col1 FROM tab0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-7204
SELECT DISTINCT col1 + + tab0.col2 DIV + tab0.col0 AS col1 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT col1 + + tab0.col2 / + tab0.col0 AS col1 FROM tab0
----
87
91
97

query I rowsort
SELECT + col2 * - col1 * col0 + - tab2.col2 FROM tab2
----
-119678
-51072
-5886

query I rowsort
SELECT tab1.col1 * + col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT col0 + col2 * col0 - col2 AS col0 FROM tab0
----
69
7305
783

query I rowsort
SELECT DISTINCT + col0 + - col2 + col2 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 + + col0 * + col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col1 * col2 + + tab0.col2 * col2 AS col0 FROM tab0
----
14186
3927
98

query I rowsort
SELECT col0 + col1 + - col0 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT - tab2.col2 + + tab2.col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 + col1 + col0 AS col1 FROM tab0
----
133
143
262

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - col0 * + col1 )
----

query I rowsort
SELECT ALL col0 + + col0 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col1 * + cor0.col0 col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL col1 * col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + col0 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * cor0.col0 col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - col1 + + col2 * - col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + cor0.col2 + col1 * - col1 FROM tab1 AS cor0
----
-43
-622
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7226
SELECT + - col2 + + col2 DIV + col1 + col0 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-7226
SELECT + - col2 + + col2 / + col1 + col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7227
SELECT ALL - col2 DIV col2 col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7227
SELECT ALL - col2 / col2 col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - tab0.col0 * - 47 + + tab1.col2 FROM tab0, tab2, tab2 AS cor0, tab1
----
9 values hashing to c20a1cdec7390e13fe585c5537bd3093

query I rowsort
SELECT DISTINCT col0 + col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL + tab1.col1 + col1 AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT col1 + - col2 + - col2 FROM tab0
----
-73
20
95

query I rowsort
SELECT + 12 * - col1 * - 42 FROM tab1
----
13104
5040
6552

query I rowsort
SELECT ALL + 95 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT + 53 * col0 + - 56 * + col2 AS col0 FROM tab2 AS cor0
----
-1141
2059
2678

query I rowsort
SELECT DISTINCT + - col1 * - cor0.col0 + + col1 AS col1 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT col1 - + col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - ( - col0 ) AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT - + col0 * col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col1 + - 97 + - col1 FROM tab1 cor0
----
-117
-123
-149

query I rowsort
SELECT DISTINCT - 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-22

query I rowsort
SELECT + col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT col1 * - col0 + + ( - col0 + - 13 ) * - col0 FROM tab1 AS cor0
----
-30
4288
6400

query I rowsort
SELECT + - cor0.col0 + - cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + - col2 + + 88 AS col0 FROM tab1 AS cor0
----
-8
31
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col1 col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE - col2 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) <= NULL
----

query I rowsort
SELECT ALL - col0 + + col2 AS col2 FROM tab0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * - col2 col0 FROM tab1
----
-2942
-3259
-9229

query III rowsort
SELECT * FROM tab2 WHERE + col0 IN ( col1 + + col2 )
----

query I rowsort
SELECT col0 + tab1.col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL col2 * col1 + - col1 FROM tab0
----
0
2752
7371

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - col0 / col2
----

query I rowsort
SELECT DISTINCT col2 + - col1 AS col2 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7257
SELECT - tab2.col0 DIV + col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7257
SELECT - tab2.col0 / + col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL + tab0.col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT col1 + tab1.col0 - col0 FROM tab1
----
10
13
26

query I rowsort
SELECT col2 + col0 AS col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7261
SELECT + col2 DIV + col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7261
SELECT + col2 / + col2 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT col1 - tab0.col2 * col1 AS col2 FROM tab0
----
-2752
-7371
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + tab2.col1 col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT - col2 * - col1 AS col0 FROM tab0
----
2838
7462
97

query III rowsort
SELECT * FROM tab0 WHERE col0 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 AS col2 FROM tab2
----
22
6058
6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 * col1 col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT col0 * - col1 + col2 + tab2.col2 AS col1 FROM tab2
----
-1267
-163
-4550

onlyif mysql # use DIV operator for integer division
query I rowsort label-7270
SELECT ALL - tab0.col2 DIV - col2 + - col2 AS col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - tab0.col2 / - col2 + - col2 AS col2 FROM tab0
----
-32
-81
0

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <> + col1
----

query I rowsort
SELECT + col1 + col1 + - col2 AS col2 FROM tab1
----
-2
-37
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7273
SELECT DISTINCT col2 * + CAST( NULL AS DECIMAL ) / 44 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT col2 * + CAST ( NULL AS REAL ) / 44 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * 27 FROM tab2 AS cor0
----
-189
-2106
-2133

query I rowsort
SELECT ALL + - col0 + col1 * - col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT - col2 * - cor0.col2 - col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT + - col2 * + col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7278
SELECT + + col0 DIV + col1 AS col0 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7278
SELECT + + col0 / + col1 AS col0 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT - + col0 + + 91 - - ( col0 ) AS col1 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT - col2 * - col0 + col0 - - col1 FROM tab1 AS cor0
----
191
3722
7773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT col0 * col2 + + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL 88 AS col0 FROM tab0
----
88
88
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7284
SELECT ALL col1 * col2 DIV col0 AS col0 FROM tab1
----
15
468
8

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL col1 * col2 / col0 AS col0 FROM tab1
----
15
468
8

query I rowsort
SELECT ALL ( + col1 ) AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + cor2.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0, tab0 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2

query I rowsort
SELECT ALL - col2 + + ( + col2 ) * col1 * + col2 FROM tab0
----
611802
93621
96

query I rowsort
SELECT ALL + col0 * 73 FROM tab2
----
511
5694
5767

onlyif mysql # use DIV operator for integer division
query I rowsort label-7289
SELECT + col1 DIV col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7289
SELECT + col1 / col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT - 30 AS col1 FROM tab2, tab2 AS cor0
----
-30

query I rowsort
SELECT 53 AS col2 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT + ( cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT 18 FROM tab0
----
18

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - col0 + + col0 * + ( col1 + col1 ) FROM tab2 AS cor0
----
2607
427
9126

query I rowsort
SELECT ALL 23 - col2 FROM tab2
----
-15
-3
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7298
SELECT ALL + - col0 DIV - cor0.col1 + 39 * col1 + + col1 * - col1 FROM tab1 cor0
----
296
338
344

skipif mysql # not compatible
query I rowsort label-7298
SELECT ALL + - col0 / - cor0.col1 + 39 * col1 + + col1 * - col1 FROM tab1 cor0
----
296
338
344

onlyif mysql # use DIV operator for integer division
query I rowsort label-7299
SELECT + - 53 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
-17
0
0

skipif mysql # not compatible
query I rowsort label-7299
SELECT + - 53 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
-17
0
0

query I rowsort
SELECT ALL cor0.col1 + cor0.col0 * cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4884ac485c33b13943cd0b856224515c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col0 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT - ( col2 ) + + col2 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT ALL + + ( + cor0.col1 ) DIV col2 + + col0 - - col0 FROM tab0 AS cor0
----
167
179
50

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL + + ( + cor0.col1 ) / col2 + + col0 - - col0 FROM tab0 AS cor0
----
167
179
50

query I rowsort
SELECT 85 * - col1 AS col2 FROM tab2 AS cor0
----
-1445
-2635
-5015

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 87 + - col1 AS col1 FROM tab1 AS cor0
----
61
74
77

query I rowsort
SELECT + col0 * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + 54 * col0 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT + 15 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * + cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
-194
-611975
-93740

onlyif mysql # use DIV operator for integer division
query I rowsort label-7311
SELECT + col0 DIV col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-7311
SELECT + col0 / col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7313
SELECT + col1 * col0 DIV - col0 col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7313
SELECT + col1 * col0 / - col0 col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT + col2 * col2 * col0 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT col1 * col2 + col1 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-7316
SELECT + col2 DIV + tab1.col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7316
SELECT + col2 / + tab1.col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - tab0.col0 + + tab0.col1 FROM tab0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7318
SELECT ALL tab1.col2 DIV col1 + + col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-7318
SELECT ALL tab1.col2 / col1 + + col1 FROM tab1
----
15
20
28

query I rowsort
SELECT ALL col2 + - col2 * col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + + col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col2 - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - + col1 * col0 + col2 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 col1 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 col0 FROM tab1 cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col1 FROM tab1 cor0
----
18
18
18

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 61a671f1b5048e339ad9838f68ebbba4

query I rowsort
SELECT ALL - col1 * + col2 + - tab0.col1 AS col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT ALL + 14 AS col2 FROM tab2
----
14
14
14

query I rowsort
SELECT DISTINCT + - 31 + - col0 FROM tab1 AS cor0
----
-111
-34
-95

query I rowsort
SELECT - + col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7331
SELECT ALL CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 65 * + col2 * - cor0.col1 FROM tab2 AS cor0
----
-41990
-54405
-99710

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7333
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + + col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 + + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-14022
-1881
-36

query I rowsort
SELECT DISTINCT - 45 FROM tab2
----
-45

query I rowsort
SELECT 65 + - col0 FROM tab0 AS cor0
----
-24
30
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-7339
SELECT ALL - col0 DIV col0 col1 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL - col0 / col0 col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 4 FROM tab0 cor0
----
-4

query I rowsort
SELECT - 33 FROM tab1 AS cor0
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col0 FROM tab2
----
32
32
32

query I rowsort
SELECT ALL - 98 + col1 * col2 FROM tab2
----
1436
548
739

onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT - tab1.col1 DIV 23 + + col0 FROM tab1
----
2
64
80

skipif mysql # not compatible
query I rowsort label-7344
SELECT - tab1.col1 / 23 + + col0 FROM tab1
----
2
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7345
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - col2 FROM tab2
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - col2 FROM tab2
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7346
SELECT ALL 31 DIV 41 + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL 31 / 41 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 + col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + 53 FROM tab2, tab1 AS cor0
----
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7349
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 * + col2 col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 * + col2 col2 FROM tab0
----
NULL

query I rowsort
SELECT + ( + col0 ) + + col2 AS col0 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 * - col0 col2 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT 96 * - tab1.col1 * col0 FROM tab1
----
-61440
-7488
-99840

query I rowsort
SELECT - tab0.col1 * 7 * col1 FROM tab0
----
-51772
-57967
-65863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7354
SELECT ALL - 28 + + ( col0 ) + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
148
29
93

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL - 28 + + ( col0 ) + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
148
29
93

query I rowsort
SELECT DISTINCT 22 * + col2 - + col1 FROM tab1 AS cor0
----
1162
1244
2099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col2 ) + col0 col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - + col1 + col0 FROM tab0 AS cor0
----
-2
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7358
SELECT + + col2 * col0 + col0 * - ( col0 + col1 * CAST( - col1 AS SIGNED ) ) FROM tab2 cor0
----
19592
267462
6867

skipif mysql # not compatible
query I rowsort label-7358
SELECT + + col2 * col0 + col0 * - ( col0 + col1 * CAST ( - col1 AS INTEGER ) ) FROM tab2 cor0
----
19592
267462
6867

query I rowsort
SELECT ALL + + 85 + + col0 FROM tab0 AS cor0
----
109
120
174

query I rowsort
SELECT DISTINCT - + col0 * + 34 + + col0 FROM tab1 cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT - + 76 + col0 * - col2 AS col0 FROM tab0 AS cor0
----
-111
-7374
-868

query I rowsort
SELECT ALL col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - - 48 AS col0 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab1 AS cor0
----
25

query I rowsort
SELECT ALL + - ( - col0 ) + col1 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col2 FROM tab2 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + - col1 * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + col2 + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - 97 + + cor0.col2 FROM tab1 cor0
----
-1
-40
-43

query I rowsort
SELECT DISTINCT + 2 FROM tab2 AS cor0
----
2

query I rowsort
SELECT ALL - 67 FROM tab2, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7372
SELECT DISTINCT CAST( col0 AS SIGNED ) + + col1 AS col1 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT CAST ( col0 AS INTEGER ) + + col1 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT 60 * col0 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT ALL - cor0.col0 + - 11 FROM tab1 AS cor0
----
-14
-75
-91

query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7376
SELECT - CAST( + 34 AS SIGNED ) FROM tab0, tab2 cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

skipif mysql # not compatible
query I rowsort label-7376
SELECT - CAST ( + 34 AS INTEGER ) FROM tab0, tab2 cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT + col0 + col0 * + col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - - col1 + ( - 40 ) FROM tab2 AS cor0
----
-23
-9
19

query I rowsort
SELECT - col0 * + 6 FROM tab0 AS cor0
----
-144
-210
-534

onlyif mysql # use DIV operator for integer division
query I rowsort label-7380
SELECT 26 DIV + 60 + + col2 AS col1 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7380
SELECT 26 / + 60 + + col2 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL - col0 + ( - col0 ) FROM tab1
----
-128
-160
-6

query I rowsort
SELECT - + col0 + 44 FROM tab1 AS cor0
----
-20
-36
41

query I rowsort
SELECT - 11 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT col1 + ( + col0 + tab0.col2 ) FROM tab0
----
133
143
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7385
SELECT + col0 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7385
SELECT + col0 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7386
SELECT ALL col0 + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL col0 + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col0 * col2 + - 36 AS col1 FROM tab1
----
-198
-3684
-7716

query I rowsort
SELECT col1 * + 98 + - col0 + - col1 * col1 AS col0 FROM tab0
----
1008
548
62

query I rowsort
SELECT DISTINCT + tab1.col1 + + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT col1 + + tab0.col1 + - tab0.col0 * col0 AS col1 FROM tab0
----
-1031
-404
-7739

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7391
SELECT col2 * + cor0.col2 * col2 + CAST( NULL AS SIGNED ) / - col0 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT col2 * + cor0.col2 * col2 + CAST ( NULL AS INTEGER ) / - col0 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 83 - - col0 FROM tab0 AS cor0
----
-48
-59
6

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
972 values hashing to f8fe28681e8720551e1ec173631fc529

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT ALL - 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - 94 * + col0 + ( - 45 ) ) FROM tab0
----
-2301
-3335
-8411

query I rowsort
SELECT 10 FROM tab2, tab0 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # use DIV operator for integer division
query I rowsort label-7398
SELECT col0 + cor0.col1 DIV 57 FROM tab2 AS cor0
----
7
79
79

skipif mysql # not compatible
query I rowsort label-7398
SELECT col0 + cor0.col1 / 57 FROM tab2 AS cor0
----
7
79
79

query I rowsort
SELECT DISTINCT + col2 + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-7401
SELECT + tab0.col1 DIV - 59 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7401
SELECT + tab0.col1 / - 59 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL 48 * col0 FROM tab2
----
336
3744
3792

query I rowsort
SELECT ALL col1 - - 4 FROM tab1
----
14
17
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-7404
SELECT - + 9 * col0 - col0 DIV ( + col2 * cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-216
-350
-801

skipif mysql # not compatible
query I rowsort label-7404
SELECT - + 9 * col0 - col0 / ( + col2 * cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-216
-350
-801

query I rowsort
SELECT col2 * col0 * - col1 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL 65 FROM tab1
----
65
65
65

query I rowsort
SELECT DISTINCT - + 24 * - 75 AS col2 FROM tab1, tab2, tab2 AS cor0
----
1800

onlyif mysql # use DIV operator for integer division
query I rowsort label-7408
SELECT ALL 75 DIV - 92 - col1 DIV + 39 AS col2 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL 75 / - 92 - col1 / + 39 AS col2 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL 33 AS col1 FROM tab0
----
33
33
33

query I rowsort
SELECT + - col0 + - ( + col0 ) FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ALL + col2 * + col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL cor0.col0 + 57 * col2 FROM tab1 AS cor0
----
3081
3313
5552

query I rowsort
SELECT ALL 65 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7416
SELECT + col2 * + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-7416
SELECT + col2 * + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7417
SELECT + col1 DIV ( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7417
SELECT + col1 / ( + ( col2 ) ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + 50 FROM tab0 AS cor0
----
1650
4100
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + col2 * + 39 AS col1 FROM tab2 cor0
----
1014
1053
1482

onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT + col1 DIV 46 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7422
SELECT + col1 / 46 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * + col2 - col2 FROM tab0
----
34
7216
759

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 ALL + 26 FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT 59 + + col2 AS col0 FROM tab1 AS cor0
----
113
116
155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + - ( ( - col1 ) ) - - 54 * - 24 col2 FROM tab0 AS cor0
----
-1102
1628
6257

query I rowsort
SELECT DISTINCT + - 37 + + col0 * + col1 FROM tab1 AS cor0
----
1003
41
603

query I rowsort
SELECT + - 42 FROM tab1 AS cor0
----
-42
-42
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 94 * + cor0.col2 col0 FROM tab2 AS cor0
----
-2444
-2538
-3572

query I rowsort
SELECT DISTINCT + col1 - - col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + + cor0.col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL col2 * col0 + cor0.col0 * cor0.col2 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT DISTINCT - col1 - + 93 FROM tab2 AS cor0
----
-110
-124
-152

query I rowsort
SELECT DISTINCT col0 * + col0 + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
1260
1368
15219

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7436
SELECT - col1 * - CAST( + cor0.col1 * col0 AS SIGNED ) - - ( - col1 + col0 ) AS col2 FROM tab2 AS cor0
----
22893
271537
6703

skipif mysql # not compatible
query I rowsort label-7436
SELECT - col1 * - CAST ( + cor0.col1 * col0 AS INTEGER ) - - ( - col1 + col0 ) AS col2 FROM tab2 AS cor0
----
22893
271537
6703

query I rowsort
SELECT ALL cor0.col0 + 90 AS col0 FROM tab1 AS cor0
----
154
170
93

query I rowsort
SELECT DISTINCT - - col1 - col2 * col1 * cor0.col0 AS col1 FROM tab2 cor0
----
-119593
-51017
-5828

onlyif mysql # use DIV operator for integer division
query I rowsort label-7439
SELECT + col1 DIV ( 67 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT + col1 / ( 67 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 * col2 + 85 AS col1 FROM tab1 cor0
----
247
3733
7765

query I rowsort
SELECT ALL + col0 * + col0 * + col1 + cor0.col1 * - col2 * col2 FROM tab1 AS cor0
----
-36608
-75582
8470

onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT DISTINCT - + col2 + + ( col0 ) DIV + col1 AS col0 FROM tab1 cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-7442
SELECT DISTINCT - + col2 + + ( col0 ) / + col1 AS col0 FROM tab1 cor0
----
-51
-54
-90

query I rowsort
SELECT col2 * + ( + 51 ) - col1 FROM tab2 AS cor0
----
1267
1346
1921

query I rowsort
SELECT ALL col1 * col1 + - ( + col2 + 96 ) AS col2 FROM tab1 AS cor0
----
-23
-53
526

query I rowsort
SELECT ALL + 36 FROM tab2
----
36
36
36

query I rowsort
SELECT ALL + 47 FROM tab0
----
47
47
47

query I rowsort
SELECT + col1 + cor0.col2 * + col0 - + cor0.col0 * ( - col1 * - col2 ) AS col1 FROM tab1 AS cor0
----
-32822
-4024
-92147

query I rowsort
SELECT DISTINCT + - col2 + + 51 FROM tab0 AS cor0
----
-31
18
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-7449
SELECT col0 DIV - col0 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7449
SELECT col0 / - col0 AS col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - 65 + col2 AS col0 FROM tab1 AS cor0
----
-11
-8
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT - - col2 + col2 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7451
SELECT - - col2 + col2 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - + ( + 10 ) FROM tab1 AS cor0
----
-10

query I rowsort
SELECT col2 + 20 AS col1 FROM tab0 AS cor0
----
102
21
53

query I rowsort
SELECT 25 * + col0 AS col2 FROM tab0 AS cor0
----
2225
600
875

query I rowsort
SELECT ALL - col1 + ( - cor0.col1 ) FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + col1 + + ( col2 ) + + col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT col0 - col1 AS col1 FROM tab0 AS cor0
----
-2
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) * - col2 + - col2 col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - col1 + + 28 FROM tab1 AS cor0
----
15
18
2

query I rowsort
SELECT DISTINCT + col0 * - 41 - col1 * col1 FROM tab1 AS cor0
----
-2724
-3449
-799

query I rowsort
SELECT ALL 3 * - col1 + - ( - 3 ) AS col2 FROM tab0 AS cor0
----
-255
-270
-288

query I rowsort
SELECT ALL - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col1 + + col1 AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT - 71 FROM tab2
----
-71
-71
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT + col1 + - col2 + - cor0.col2 DIV col1 FROM tab1 cor0
----
-30
-52
-90

skipif mysql # not compatible
query I rowsort label-7466
SELECT + col1 + - col2 + - cor0.col2 / col1 FROM tab1 cor0
----
-30
-52
-90

query I rowsort
SELECT - + 76 AS col2 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT col1 + col0 * + 97 AS col2 FROM tab0 AS cor0
----
2414
3492
8724

query I rowsort
SELECT DISTINCT - 36 * col2 AS col1 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT col0 - tab2.col2 AS col1 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7472
SELECT ALL col2 DIV + cor0.col2 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7472
SELECT ALL col2 / + cor0.col2 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - col0 * col2 + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7476
SELECT ALL + - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7476
SELECT ALL + - col1 / col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab0 AS cor0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

query I rowsort
SELECT DISTINCT + 93 + col1 FROM tab1
----
103
106
119

query I rowsort
SELECT ALL + ( + 63 ) + col1 * - 9 * col0 + + col0 AS col0 FROM tab2
----
-11945
-1883
-41277

query I rowsort
SELECT - ( + col2 * + col0 ) AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT 77 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + col2 * col1 * - tab2.col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col2 + col1 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT + 2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT + 89 FROM tab1
----
89

query I rowsort
SELECT + col0 + col1 * 32 AS col0 FROM tab1
----
384
496
835

query I rowsort
SELECT - 40 FROM tab2 cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - 15 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col1 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - col1 * col0 * + ( cor0.col1 ) FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT col1 * ( col1 ) AS col1 FROM tab2
----
289
3481
961

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 6a08afba67ce3272fad6d766e76c67f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7496
SELECT ALL - col1 + tab1.col0 DIV ( col2 ) + - 8 * + col2 * col1 FROM tab1
----
-11258
-4569
-9997

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - col1 + tab1.col0 / ( col2 ) + - 8 * + col2 * col1 FROM tab1
----
-11258
-4569
-9997

query I rowsort
SELECT ALL 84 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT ALL col0 * 60 * + tab0.col0 AS col1 FROM tab0
----
34560
475260
73500

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 71d467ba3372dfdd21847af1687c92e7

query I rowsort
SELECT DISTINCT cor0.col0 + ( + cor0.col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7503
SELECT - 88 + + cor0.col1 DIV col0 + col2 FROM tab0 AS cor0
----
-5
-52
-85

skipif mysql # not compatible
query I rowsort label-7503
SELECT - 88 + + cor0.col1 / col0 + col2 FROM tab0 AS cor0
----
-5
-52
-85

query I rowsort
SELECT - 22 FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - col0 * - cor0.col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 FROM tab0 cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7508
SELECT ALL + ( - 69 ) + col1 * + CAST( + 9 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
210
462
84

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL + ( - 69 ) + col1 * + CAST ( + 9 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
210
462
84

query I rowsort
SELECT ALL - 86 * col1 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT ALL col0 + tab2.col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT - 51 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT ALL - col2 + col2 * col0 FROM tab1
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 + col1 col1 FROM tab1
----
103
106
119

query I rowsort
SELECT DISTINCT - - 31 * - col0 FROM tab1 AS cor0
----
-1984
-2480
-93

query I rowsort
SELECT ALL - - col0 * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + + ( + col0 ) + col1 * - 94 + + col0 FROM tab2 AS cor0
----
-1440
-2900
-5390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - - cor0.col1 - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + 70 + ( cor0.col2 ) FROM tab1 AS cor0
----
-156
-4423
-5504

query I rowsort
SELECT + col1 - 46 * + col1 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT - col0 * 56 AS col2 FROM tab0 AS cor0
----
-1344
-1960
-4984

query I rowsort
SELECT DISTINCT + col0 * + 24 FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT - + col1 - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + col2 * - 30 FROM tab2 AS cor0
----
-1140
-780
-810

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 + ( col1 ) AS col0 FROM tab1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7527
SELECT ALL 80 * tab2.col1 * CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL 80 * tab2.col1 * CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ( col1 * col1 ) AS col1 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col2 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL + 62 AS col1 FROM tab1 AS cor0
----
62
62
62

query I rowsort
SELECT - 33 * + 4 FROM tab0 AS cor0
----
-132
-132
-132

query I rowsort
SELECT DISTINCT + + col1 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - + 76 + cor0.col1 + col0 FROM tab2 AS cor0
----
-38
20
61

query I rowsort
SELECT DISTINCT - + col2 * + col0 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 35 ) * cor0.col1 - 58 col1 FROM tab1 AS cor0
----
292
397
852

query I rowsort
SELECT - + col0 * col2 * col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - - 18 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 + cor0.col1 + 79 FROM tab0 AS cor0
----
273
3003
7632

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7540
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 66 * cor0.col2 + - col0 col0 FROM tab0 AS cor0
----
2154
31
5323

query I rowsort
SELECT + ( - 61 ) FROM tab1 AS cor0
----
-61
-61
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7543
SELECT DISTINCT + + col2 + col1 DIV ( col0 * col0 ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7543
SELECT DISTINCT + + col2 + col1 / ( col0 * col0 ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - - col2 + col2 AS col1 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT - - 46 + + col1 FROM tab2 AS cor0
----
105
63
77

query I rowsort
SELECT ALL + + col0 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - + col1 + + col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT + + 91 FROM tab1 AS cor0
----
91
91
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7549
SELECT ALL - col1 + col2 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL - col1 + col2 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-15
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col0 + col0 + + ( 23 ) AS col1 FROM tab1 AS cor0
----
151
183
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col1 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col2 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL 81 FROM tab2
----
81
81
81

query I rowsort
SELECT DISTINCT + 13 + - cor0.col0 AS col0 FROM tab2, tab0, tab2 AS cor0
----
-65
-66
6

query I rowsort
SELECT + - col1 * + cor0.col1 FROM tab0 cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) * + 31 + 30 col0 FROM tab0 AS cor0
----
1115
2789
774

query I rowsort
SELECT - + 89 * col2 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT col1 * + ( - col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + + col0 * 55 AS col0 FROM tab0 AS cor0
----
1320
1925
4895

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab0 AS cor0, tab2 AS cor1
----
972 values hashing to a9068b700464993db9fae6f630605fde

query I rowsort
SELECT - - col0 * 72 AS col2 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT - col2 * 60 FROM tab2 AS cor0
----
-1560
-1620
-2280

query I rowsort
SELECT 45 FROM tab1
----
45
45
45

query I rowsort
SELECT ALL cor0.col0 * 83 FROM tab1, tab2 AS cor0
----
9 values hashing to f06ed87094e5675d3c269633b2d6daa8

query I rowsort
SELECT ( + col0 ) AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT - cor0.col1 + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - 29 * - cor0.col2 + col2 AS col0 FROM tab2 cor0
----
1140
780
810

query I rowsort
SELECT - col1 + + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - col0 * + 29 + col2 FROM tab2 cor0
----
-176
-2236
-2253

query I rowsort
SELECT - + 93 * cor0.col2 FROM tab2 AS cor0
----
-2418
-2511
-3534

query I rowsort
SELECT ALL ( - 65 ) FROM tab0, tab2 cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT + + ( col2 ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT tab1.col2 + col2 AS col1 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-7576
SELECT + col0 + col1 + - col0 DIV - col1 FROM tab2
----
100
138
38

skipif mysql # not compatible
query I rowsort label-7576
SELECT + col0 + col1 + - col0 / - col1 FROM tab2
----
100
138
38

query I rowsort
SELECT 28 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - ( col1 + + tab0.col1 * 96 ) FROM tab0
----
-8342
-8827
-9409

query I rowsort
SELECT + - ( cor0.col1 ) * + col2 FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7582
SELECT ALL col2 DIV + col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL col2 / + col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab2, tab2 AS cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 38 col2 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7586
SELECT - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7586
SELECT - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7587
SELECT ALL CAST( - 68 AS SIGNED ) * col0 + - col0 AS col0 FROM tab2 AS cor0
----
-483
-5382
-5451

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL CAST ( - 68 AS INTEGER ) * col0 + - col0 AS col0 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT + col1 * + col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + ( col2 ) * col1 + ( + col2 * col1 ) FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT ( - cor0.col1 ) * + col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + ( - 51 ) * + col1 AS col2 FROM tab1 cor0
----
-1326
-510
-663

query I rowsort
SELECT + + 31 * + col1 FROM tab1 AS cor0
----
310
403
806

query I rowsort
SELECT ALL - 81 + - col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1042
-3562
-370

query I rowsort
SELECT - + col0 + 30 FROM tab1 AS cor0
----
-34
-50
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7595
SELECT + 24 * col2 DIV - cor0.col1 FROM tab2 AS cor0
----
-10
-20
-53

skipif mysql # not compatible
query I rowsort label-7595
SELECT + 24 * col2 / - cor0.col1 FROM tab2 AS cor0
----
-10
-20
-53

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab1 cor0
----
76

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT ALL cor0.col0 DIV 94 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL cor0.col0 / 94 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + - col1 * col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT + 32 - col2 AS col1 FROM tab0 cor0
----
-1
-50
31

query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
7
78
79

query I rowsort
SELECT col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + cor0.col1 * - col1 * col1 - + 87 * - col2 AS col0 FROM tab0 AS cor0
----
-633185
-746437
-912586

query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col0 + col0 * col2 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT ALL + col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7607
SELECT DISTINCT 59 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
19

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT 59 / + col0 AS col0 FROM tab1 AS cor0
----
0
19

query I rowsort
SELECT + - col1 - - col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + + col0 * col0 + - col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT + col2 * col2 + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - + col1 * - ( col0 ) + col0 AS col1 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT + col1 + ( - col1 ) * col2 FROM tab1 cor0
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7613
SELECT + + col2 + + CAST( - col0 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif mysql # not compatible
query I rowsort label-7613
SELECT + + col2 + + CAST ( - col0 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT cor0.col1 * ( + col2 ) + + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - + cor0.col1 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT cor1.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + cor0.col0 + 88 AS col2 FROM tab1 AS cor0
----
152
168
91

query I rowsort
SELECT DISTINCT ( col2 + - col2 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - - col2 * + col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT - col2 + - 33 DIV - 94 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7621
SELECT - col2 + - 33 / - 94 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + col2 * + 67 * - 97 FROM tab2 AS cor0
----
-168974
-175473
-246962

onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT - + col0 DIV + ( col2 ) AS col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7623
SELECT - + col0 / + ( col2 ) AS col0 FROM tab1 cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7624
SELECT ALL + col0 DIV col1 + col0 * col1 FROM tab2 AS cor0
----
1347
217
4603

skipif mysql # not compatible
query I rowsort label-7624
SELECT ALL + col0 / col1 + col0 * col1 FROM tab2 AS cor0
----
1347
217
4603

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + CAST ( col0 AS REAL ) * - col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT - col1 * - ( + cor0.col1 + - col2 ) FROM tab0 AS cor0
----
4558
819
9312

query I rowsort
SELECT + col0 * + ( + 77 ) + + col2 FROM tab2 cor0
----
566
6032
6121

skipif mysql # not compatible
query I rowsort
SELECT + - col1 * - CAST ( + 47 AS REAL ) AS col2 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 AS col1 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + - col0 + + col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7632
SELECT + col0 DIV - col0 + - ( - col0 ) FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-7632
SELECT + col0 / - col0 + - ( - col0 ) FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * - col1 col2 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7634
SELECT ALL + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-7636
SELECT ALL col1 - + col0 DIV 44 FROM tab0
----
86
89
97

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL col1 - + col0 / 44 FROM tab0
----
86
89
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7637
SELECT + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7637
SELECT + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 30 * col0 col0 FROM tab1 AS cor0
----
144
1977
2496

query I rowsort
SELECT ALL + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT ALL + ( + col2 ) + + col1 * - col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT - col1 + cor0.col1 * - col0 AS col2 FROM tab2 cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col1 FROM tab2, tab2 cor0
----
-49

query I rowsort
SELECT + + 30 - - cor1.col2 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to d9538569d3651b6ecad05fdce52df98b

query I rowsort
SELECT 89 FROM tab2 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT 34 - col2 AS col1 FROM tab0
----
-48
1
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7650
SELECT DISTINCT CAST( + 15 + - col0 AS SIGNED ) FROM tab1
----
-49
-65
12

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT CAST ( + 15 + - col0 AS INTEGER ) FROM tab1
----
-49
-65
12

query I rowsort
SELECT 92 + col0 + + col2 AS col1 FROM tab2
----
126
196
209

query I rowsort
SELECT DISTINCT col2 + tab1.col0 * + 36 AS col0 FROM tab1
----
162
2361
2976

query I rowsort
SELECT col0 * tab2.col1 + ( + col1 ) * tab2.col2 - col1 AS col0 FROM tab2
----
1023
1972
6077

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7655
SELECT DISTINCT col0 + col2 * - CAST( 45 AS SIGNED ) FROM tab1
----
-2427
-2501
-4240

skipif mysql # not compatible
query I rowsort label-7655
SELECT DISTINCT col0 + col2 * - CAST ( 45 AS INTEGER ) FROM tab1
----
-2427
-2501
-4240

onlyif mysql # use DIV operator for integer division
query I rowsort label-7656
SELECT col0 DIV col1 AS col0 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7656
SELECT col0 / col1 AS col0 FROM tab2
----
0
1
4

query I rowsort
SELECT 94 AS col2 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT col0 * col0 + tab2.col2 + - 78 FROM tab2
----
-2
6032
6201

onlyif mysql # use DIV operator for integer division
query I rowsort label-7659
SELECT tab1.col1 DIV col0 - ( 78 ) FROM tab1
----
-70
-78
-78

skipif mysql # not compatible
query I rowsort label-7659
SELECT tab1.col1 / col0 - ( 78 ) FROM tab1
----
-70
-78
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7660
SELECT